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
2009-11-16 08:48:47
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
2009-11-16 09:08:51