maguskrool
Technical User
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.
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.