PDA

View Full Version : Move Stop/Go buttons to html page?


wayneM
02-27-2003, 03:06 PM
I have a movie (fla) with one movie clip inside of it. I have a Stop and a Play button in the main movie which work properly.

I would like to delete the Stop/Play buttons in the main movie, and put these buttons in the html page. When i try this and hit the stop button, the main movie stops but the inside movie clip continues to play. I need everyting to stop when the stop button is pressed.

My stop button actionscript:

on (release) {
_root.gotoAndStop("begin");
for (i=1; i<=25; i++) {
_root["depth"+i].removeMovieClip();
}
}


My Play button action script:

on (release) {
_root.gotoAndPlay("begin");
for (i=1; i<=25; i++) {
_root["depth"+i].stop();
}
}

I am using dreamweaverMX.

Thank you for the help,
wayne

CyanBlue
02-28-2003, 09:12 AM
Um... So... Basically when you press the STOP button, it does stops its _root timeline actions, but you still have all those duplicated movieclips left on the screen??? How did you have the stop button on other frame execute the script on the main movie??? LocalConnection??? JavaScript???

Well... To be honest, I don't know what's going on in there...
Why don't you create a new text field on the main timeline, and have your stop button's script to write some text to see if that script is really being executed??? Other than that, I don't know where to start... :(

wayneM
02-28-2003, 04:03 PM
I will check out localConnection. May be the answer. Presently, there is no other code that i am using for the buttons except what i listed in the above thread.

I really want to use the component for my movie that you talk about in a couple other threads:

http://www.flashcomponents.net/component.cfm?nav=2&id=71

but, I have the same trouble when I try to use the component. Cannot get the duplicated movieclips to stop.

thanks,

CyanBlue
02-28-2003, 04:17 PM
Yes... You do that... I think LocalConnection() object might be the one you are looking for...

As for the component... I am not sure how you want to implement that in your movie... What that does is to control the video not the Flash movie itself... As for the removing the instances, I thought that I already gave you an answer on how to do that... Didn't I???

wayneM
02-28-2003, 04:22 PM
ahh...got it!

thanks again. i will let you know how localConnection might work.

wayne