all groups > flash actionscript > january 2007 >
You're in the

flash actionscript

group:

referencing loaded clips


referencing loaded clips cokefour
1/16/2007 9:40:44 PM
flash actionscript:
I have an index file which loads he navigation and home page files like this

//create home page holder
this.createEmptyMovieClip ("rotateClip", this.getNextHighestDepth ());
//load homepage
rotateClip.loadMovie ("home.swf", [GET]);
//create nav holder
this.createEmptyMovieClip ("navClip", this.getNextHighestDepth ());
//load navigation
navClip.loadMovie("navigation.swf");
I then load the services page replacing the home page by referencing
rotateClip from the loaded nav file attaching this code to the services button

on (release) {
_root.rotateClip.loadMovie("services.swf");
}

The services page has sub sections which I load in the same way as the home
page. They load fine once services page is loaded like so

on (release) {
_root.rotateClip.loadMovie.servHolder.loadMovie("servMgmt_mc.swf);


}

servHolder is to services what rotateClip is to the index page.

How can I get it to work if the user hasn't loaded the services page?
when I put this line before it or on a preceding frame

_root.rotateClip.loadMovie("services.swf") to make sure services gets loaded
the servHolder doesn't load anything
Re: referencing loaded clips kglad
1/16/2007 9:52:16 PM
what do you think this is doing?



AddThis Social Bookmark Button