Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can a swf file begin executing code before loading completely?

Status
Not open for further replies.

maguskrool

Technical User
Dec 11, 2006
77
PT
I have a swf file with a preloader on the stage at authoring time. The preloader centers itself by retrieving the stage dimensions and calculating the coordinates it needs.

This works everytime in Flash preview, but once I put it online it only works sometimes, mostly after I refresh the page. The stage width and height it seems, are considered = 0 when this happens and so my preloader doesn't position itself correctly.

The only reason I can determine for this error is that when the code begins to execute the swf is not fully loaded, and thus it gets wrong stage dimensions. I have exported the swf file to have 100% width and heigth, don't know if there are known issues with this mode of publishing.

Any help on this matter is appreciated, thanks in advance.

 
Ok, I'm guessing it was some problem with the cache or the server I was uploading the site on. Now it "seems" to work fine, once I re-uploaded all again.

There's still some problem with the positioning of another element but I need to take a deeper look at the code. If the problem eludes me I'll post again.

Thank you for your help.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top