-
Loading swf inside a loader once swf is already loaded in the loader
Hello,
My page is constructed off of a banner, a menu, and content. Simple design.
Links from my menu open up in my loader(prLoader var name). Now, here's the problem:
Once any link opens in the loader I am having problems linking other .swf's into the same loader.
Example:
Click about us.
About us opens up in a loader beside the menu(its a page)
in About us page I have a link example: Our Sponsors
Now, the link is on About us page which was loaded into the loader
I tried typing
mcSponsors.onRelease = function(){
prLoader.loadClip("Sponsors.swf",prLoader);
}
as well as
mcSponsors.onRelease = function(){
prLoader.contentPath = "Sponsors.swf";
}
Obviously it won't find prLoader because its loaded inside it and it doesn't know what it is.
Do I have to create another loader on top of the about us page? Every content page like About Us or Our Sponsors have the same design.. I just want them all to open in 1 main loader.
-
-
Well the page setup would be as follows...
PHP Code:
mcSponsors.onRelease = function(){
_root.prLoader.contentPath = "Sponsors.swf";
}
You have to have the _root in there otherwise it looks for the loader INSIDE the flash movie you loaded adding _root goes back to the MAIN timeline and looks for prLoader and reloads it with Sponsors.swf
Hope this helps,
Kriogenic.
-
Yup, it worked. Thank you very much!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|