PDA

View Full Version : controlling another swf file throgh present movie


ssjogus
12-23-2002, 04:56 AM
can we change the properties of any loaded movie or control that movie through button?

Like:

Through "loadmovie" i loaded a movie(swf file) on the first frame. and now can i give a command to a button to stop/play the movie clip in that swf file? or can i change any properties of the movie clip in that file ?

on frame i gave--

loadMovieNum ("blBall.swf", 1);

on button i want to give---

on (press)
{
"blBall.swf/mv1".stop();
}

---------------------------------------

so please help me out.

ssjogus.

RanTen
12-23-2002, 08:31 AM
Hi,

Yes you can...you are on the right track

Cheerio

jcgodart
12-23-2002, 09:50 AM
Try this:on(press) {
_level1.stop();
}

pom
12-23-2002, 04:34 PM
What's the mv1 in blBall.swf/mv1? :confused: Looks strange...

ssjogus
12-24-2002, 04:50 AM
no it' not working.

neither with

on(press) {
_level1.stop();
}


nor with

on (press)
{
"blBall.swf/mv1".stop();
}

--------------------------------

i created a mv "blBall.swf". and in this file there will be 2 or more movie clips, they are mv1, mv2, mv3 ...

and now i loaded this swf file in another file called "outer.swf". in this movie i have a button. and on "press" of this button i want to change the properties or control movie clips (mv1,mv2,mv3) from "blBall.swf" file.

hope it is clear what i want to do. but how to do, please help.

shruti.

jcgodart
12-24-2002, 07:57 AM
I see...
You want to control a sub-mc within a loaded swf.

Since you loaded your swf in level 1, its root is _level1, not it's file name.
on(press) {
_level1.mc1.stop();
}

ssjogus
12-25-2002, 04:27 AM
hey thanks,

that solved my problem easily.

shruti.:)