views:

351

answers:

2

I'm loading an swf file into my main application using URLLoader, I want to get the background color of the loaded swf file. ( I heard that one solution wold be reading the byte code of the loaded swf )

A: 

You SWF file has to pass it to a web page with JS.

getURL("javascript:setColour(" + DESIRED COLOUR + ")");

The "setColour" function of course must do what you want it to do.

Nick Brooks
OP wants to get the color, not set it. Even if the question was to set the color, how would you do it thru javascript? The SWF is loaded to another SWF, not directly to a web page.
Amarghosh
+4  A: 
bhups
Impecable response and example! Thank you.
Radu