Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MovieObject

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Here's my setup. I drew a tv in Macromedia and have it on a stand. The VCR and video tapes are located underneath it. When I click on a video tape, I want the corresponding movie to play on teh TV screen. Inorder to do this I have an empty MovieObject placed in the middle of the screen. When a video is pressed, I preform the removeMovie function on movieObject and then I perform the attachMovie function and attach the corresponding movie. My problem is that I don't want the video to begin playing right away, I want it to show the first frame and stop until a play button is pressed, and then it will play the whole movie, or until teh stop button is pressed. How do I reference the Object that I want to stop. I have Action Scripts in the play and stop buttons that look like:

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

What is wrong with referencing the object in this way? Please respond by emailing me at jasondivis@hotmail.com thank-you!
 
on(press){
_root.movieObject.gotoAndStop(1);
}


to play from a play button..


on(press){
_root.movieObject.gotoAndPlay(2);
}

logo.gif


carlsatterwhite@orlandomediasolutions.com
 
In the first frame of the movie, put a Stop() command, then when the movie is loaded it won't play until you tell it to. [pc3]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top