Groups | Blog | Home
all groups > flash actionscript > july 2005 >

flash actionscript : Multiple SWF going at once


radicalrob
7/25/2005 7:56:34 PM
I'm having a small problem, I'm a relative newbie when it comes to Flash
development but through a series of tutorials I was able to create a basic
site. For the navigation of the site I used the loadMovie function and thus
far it works flawlessly. My problem occurs when I create another swf with the
same mechanizm, it doesn't load the movies correctly. Now I think I need to
assign the internal swf a different level but am not sure how to do it. I've
searched through the manuals and this huge encyclopedia by Derek Franklin but
just cant figure it out.

Here is the code for my internal button.

on(release) {
if(_root.currMovie=="undefined"){
_root.currMovie="abt_contact";
abt_container.loadMovie("abt_contact.swf");
}else if (_root.currMovie !="abt_contact"){
if(abt_container._currentframe >= abt_container.midframe){
_root.currMovie="abt_contact";
abt_container.play();
}
}
}

I'm sorry if my explanation of the problem isn't to specific, I'm not sure how
to explain it.
thanks.
myIP
7/26/2005 12:00:00 AM
I think the levels are assigned by Flash automatically, so I would'nt worry
about them. Try putting;

this._lockroot = true;

in the TimeLine of each movie(SWF) being loaded. This is going to prevent
timelines interfering with each other.

radicalrob
7/26/2005 5:59:10 AM
I put that in each swf but it had some other ill effects. My main movies
stopped working correctly. Any other suggestions?
I tried searching for tutorials on loading external movie clips but nothing
specific to this.


myIP
7/26/2005 6:53:56 PM
You paste the code in the incoming SWF?s timelime and it made it more
dysfunctional? What is it doing? Perhaps you?re right about the levels issue.
Try using loadMovieNum( ) which you can specify the level, versus loadMovie(
).
AddThis Social Bookmark Button