Hey guys, I'm facing a problem in using a preloader while having some
components in the flash project. I searched in the net and found the solution
which is that components are loaded in first frame so i have to uncheck the
"Export in first frame" property for the component, and then change the "Export
frame for classes" property in the "publish settings" to another frame like 2.
This method worked for all components exept the window component. I tried
everything but nothing happens when calling the popup to appear !!! I'll tell u
exactly what i have in the flash file. in the first frame a usual loader that
checks the bytes loaded / bytes total. the second frame is empty and the third
frame contains the following code:
-------------------------------------------------------------------
import mx.managers.PopUpManager;
import mx.containers.Window;
var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true,
{contentPath:"try.swf"});
-------------------------------------------------------------------
I also changed the frame of loading classes to frame 2 , and unchecked the
"load in first frame" for the window !!!! this worked for all components !! why
it doesnt for the window !!!!!!!!!!!
Thanks alot ^_^
clbeech - 08 Jul 2008 23:26 GMT
often when not importing on the first frame, an item must 'exist' on the
timeline in a later frame in order to be constructed - similar 'housing' assets
used for component development. try placing an instance of the window
component 'off Stage' in the second or third frame - you can delete it when
reaching that frame also, but that 'should' make it available to the system.
Ghost Of Death - 09 Jul 2008 07:58 GMT
thaaaaaaaaaaaaaaaaaaaaaaanx maaaan !!!!!! i worked on this for about 2 hours without any results and at the end its that simple !!!!!!!!!!!!!! :S lol thanx alot ^_^
clbeech - 09 Jul 2008 14:05 GMT