PDA

View Full Version : Problem with scenes and movieclipsss


bonjour
04-11-2003, 02:24 AM
hi , i have created a fla file with 3 scenes, in each of the scene, there are many movie clips. here the problem come:
i used loadmovie to load a swf file at level 5 (the actionscript is written in a frame in scene1) , in this swf file, there are a few buttons also. i would like to use the button to call the movieclip in another scene, so, how can i do that? can anyone help and attach a sample script refer to my problem? thanks a lot.
p/s: so far, what i know is like this :
tellTarget("_root.abc"){gotoAndPlay();} or tellTarget("_levelx") to call a swf file at specified level. thx again

Warrior
04-11-2003, 03:05 AM
tellTarget("_root.abc"){gotoAndPlay();}
don't use the above code because it won't work.

I don't know if I understand you correctly but are you loading a movie that has a button that calls a movie clip on the movie that loaded it which is the _parent movie. If it is then this is your code, on (release) {
_root.YourMovieClip.gotoAndPlay("Frame Lable");
_levelx.gotoAndPlay("Frame Lable");
}


Is this what you want? If not, can you be more specific.

bonjour
04-11-2003, 04:20 AM
hi, warrior thx vy much for ur kindly reply, but i feel like to ask deeper to the problem. I dun fully understand this as u know i am still vy green in flash and the _root and _level always trouble me.

on (release) {
_root.YourMovieClip.gotoAndPlay("Frame Lable");
_levelx.gotoAndPlay("Frame Lable");
}

mayb i talk in this way: NOw, i am in frame 1 of scene 1, and i put an action in frame 1 like this : loadmovienum("abc.swf",5).

In the abc.swf, there is a button.

Mission: if the button is clicked, i hope to jump to a movie clip which i put in scene 3 with a instance name xyz.
so, can u pls kindly write a script for me? thx a lot.

CyanBlue
04-11-2003, 04:24 AM
There is a tutorial in the tutorials section that talks about the paths and levels... You might want to take a look at it... ;)

Warrior
04-11-2003, 02:18 PM
CyanBlue is right. You should look at the tutorials and learn for your self because if people do it for you then you will not understand what they are doing.

However, if poeple help you and show how to do it then you will understand actionscript faster.

This is what you should do,
[Frame 1]

stop();
loadmovienum("abc.swf",5);
button on frame 1,


on (release) {
_root.InstanceNameXYZ.gotoAndPlay("Framelabel")
}If you are still confused I can send you a .fla :cool:

bonjour
04-14-2003, 03:43 AM
hi warrior, again...thanks for ur kindly help, i think i need your fla if possible. i think when i load abc.swf in scene 1, i cant play a particular movie clip in scene 3 by pressing the button in the abc.swf, is this statement correct?

Warrior
04-14-2003, 04:09 AM
Here is the Flash File. If you need any help don't be shy, ask me. If you still cannot get it to work, send me your Flash file and the instructions of what you want :cool: