Bulkloader: GetDisplayObjectLoader always return null

Posted by shadow_of__soul | Posted in Uncategorized | Posted on 09-01-2010

0

Hi,

something weird that happened to my 2 days ago, i was working in a component that load images in a slideshow gallery, and like can load images from other url’s that are not where the swf is hosted, you can’t access the content of the loader for the security policies of flash, so the only way to show the loaded images is getting the loader (and in bulkloder the Loader-get(ID).loader don’t work also).

the solution was easy, just update your version of bulkloader to the last revision where this bug has been fixed :D

just i wanted to share this tip so someone else don’t lose time searching for it :)

Regards.

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Actionscript: ExternalInterface

Posted by shadow_of__soul | Posted in Uncategorized | Posted on 16-12-2009

0

Hi,

today in this post i going to explain how to use this helpful class that have the purpose to call and receive the return of javascript functions from the flash enviorment.

Basically the function that make the trick is call(), this static function let you call any existent javascript function in the current document and get the returned value if exist.

in an example:

Flash side:

import flash.external.ExternalInterface;

var result:String=ExternalInterface.call(“alertFunction”,”Hello World”);

trace(result);

Javascript Side:

function alertFunction(message){

if(alert(message)){

return true;

}else{

return false;

}

}

As you see, in the flash part we are calling statically the call functions and passing as first parameter the name of the javascript function and secondly and string, that are the parameter required by the javascript function. there is no limit in the amount of parameter that can be passed to the call function and going to be passed to the javscript function when is called. also as you see, we are storing the value returned by the javascript function in a variable also to use it later.

it’s useful method to manipulate html info or elements from the flash using this function as a bridge.

as far as i know, it work also on actionscript 2 but i’m not sure. also this work on the major browser that have javascript supported but again, i’m not sure if it work in all (example: IE6, IE7 etc..)

i hope it help you to use this function and if you need more reference, just look at the adode docs :D

Regards,

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

New Site: randgame.info

Posted by shadow_of__soul | Posted in Uncategorized | Posted on 11-10-2009

0

Hi,

the other day i was thinking to make a site where you play a random game each time you visit.

so, i have registered a domain and set it up:

Rand Games

need to do a lot of more work on it, i’m still thinking some features i can add and a proper design for it (that need to be light and at the same time, look nice)

As soon i make some changes, i going to post it here :)

Regards,

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

OAuth and REST with AJAX or FLASH

Posted by shadow_of__soul | Posted in Uncategorized | Posted on 06-10-2009

0

Hi,

the last days i was working on a API for project. for that, i was needed to set a OAuth system. all went perfect but i have a problem when i wanted to use the API in a AJAX app.

as you already know, AJAX it’s a technique where you use javascript to request info to a page and show it to the user. as you also know, javascript it’s executed in the user machine, and for OAuth it’s a problem :s

no matter what how it’s implemented the OAuth system in the API that you need to use, you need always to send the $consumer_key and the $consumer_secret encrypted in the signature, also depending of the type of request, also need to send the $token and $token_secret, for that, you can’t include in any javascript way (or in a swf) any of this vars why compromise the security of the consumer, why any with this data can access to the protected resources as you.

for that, the solution it’s to create a bridge between your AJAX/FLASH app and the API/OAuth server.

the process it’s simple, create a php with a code like this:

<?php

//check if the one who are making the call to the bridge it’s trusted

//for that you can use a filter ip, an authenticated session or any method that fits your needs

$consumer_key=”lalala”;

if($trusted){

//making the request

$result=$OAuth->request($url_of_the_server.$_GET['service'],

$consumer_key,$consumer_secret,$_SESSION['token'],$_SESSION['token_secret']);

echo $result;

}

?>

of course the code can be diferent depending of your client library and stuff, but basically that are the steps to make the bridge:

1)check that the one who call the bridge it’s trusted or ahiterized, checking a sesssion var or anything what you have

2)make the request using the $service var that define the service to call to the service

3)print the result of the call and it’s done :D

i hope this give you some help at the time to use OAuth and REST with ajax and flash

Regards,

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

flash plugin 10 available for linux :)

Posted by shadow_of__soul | Posted in News | Posted on 15-10-2008

0

Hi,

today i’m really happy :) it’s available for download in several format the new version of the flash plugin for linux :) it’s a great update, why if you are a developer, can develop and enjor the new improvement of this version, and if you are user, the same but better :P

i already installed it and i noticed a better performance than the version 9.

so, dont waste more time, go now and update your plugin :)

http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&P2_Platform=Linux

Regards,

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Memo Game

Posted by shadow_of__soul | Posted in Uncategorized | Posted on 01-06-2008

0

Hi,

no, i not released a game yet, but a good friend mine yes, and that merit a post :)

he released her first game, i hope you, when you tried, be nice and give a contructive feedback :)

i appear in the credits, only why i help him with some things in AS3 :D

only left enjoy it :)

http://gamesmosaic.net/games/Memo.php

Regards,

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Security update for flash player

Posted by shadow_of__soul | Posted in News, Uncategorized | Posted on 31-03-2008

0

Adobe it’s planing to release a security update for flash player, to protect of cross side scripting and other vulnerabilities what have the swf format, this changes going to affect any new app developed and older content also (also the content for flash player 7), to prevent the broke of your app, need to have some precautions what are detailed in this document:

http://www.adobe.com/devnet/flashplayer/
articles/flash_player9_security_update.html

Read it and make your change before you app or content dont work anymore :p

Regards,
Shadow.


[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]