Setting browser background to change at specific frame.
I finished working on my stage and now i need to apply a background image that will appear under the flash swf.
Now I know that in the HTML, instead of the color I can just link to my image via background url BUT I need this image to change at a specific time to coincide with the color change in my flash swf.
Basically there is image1 at website startup and after for example 25 frames it becomes image2 and stops there
Hope this makes sense.
Total Universe Mod
You can communicate with your surrounding environment via as3's ExternalInterface class. Read more on it here.
Sorry I don't have time to verify the exact code but will look something like this.
So just before the end of you <head></head> tag you'd have
Then somewhere in your as3 you'd have
document.body.style.background="background-image: url(' + myImg + ') no-repeat";
Click Here to Expand Forum to Full Width
Poll by Flashkit.com