PDA

View Full Version : Load Window Component from external swf


Dimitris
07-18-2005, 11:08 AM
Hi,
I have tree swf's.
- The first is called "Component.swf" and it has a Window Component in its library - Linkage Export for Actionscript & Export in the first frame
- The second is the "main stage" of my site its called main.swf has in its library a window component - Linkage Import for runtime sharing, URL= Component.swf .It also has this code in its first frame _root.createEmptyMovieClip("empty",_root.getNextHighestDepth());
empty._lockroot = true;
empty.loadMovie("Component.swf"); according to this http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part_Components.html
- and at last i have an external swf called "a.swf" which loads in the "main.swf" . In "a.swf" also has in its library a window component - Linkage Import for runtime sharing, URL= Component.swf .
It also has this code in its first frame _root.createEmptyMovieClip("empty",_root.getNextHighestDepth());
empty._lockroot = true;
empty.loadMovie("Component.swf");
this , "a.swf" has a button in it which on release creates a PopUpwindow.
Can anyone see the error? No window appears on the main scene
I am confused and If anyone knows and is able to help clear this, I would appreciate a lot.
Thanks in advance