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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm trying to make buttons start movie that starts a movie

Status
Not open for further replies.

Cptkirk

Technical User
Mar 18, 2000
1
US
Hello. I am at end of rope here!! I am trying to make a flash movie and need some help. What i specifically am trying to do is make a button that, when mouse evented, will start another movie with shows several items. when any of those items, which i assume would have to be buttons, is mouse evented, i want that in turn to start a movie elsewhere in the overall screen. then i want to be able to mouse event the original button and have the items that showed up in step 2 go away and leave the movie playing elsewhere to continue to play. any suggestions on what i need to do? i have tried several ways to get this to work, but apparently those were not the right ways. i would greatly appreciate any help on this as i have been stumbling over it for 3 weeks now. You can even email me with your helpful hints. Kirkedout@aol.com

thanks!!!! vince
 
First create the first button and add this code
On (Release)
If (pressed)
Begin Tell Target ("/Movie_Items")
Go to and Play ("Show_Items")
End Tell Target
Else
Begin Tell Target ("/Movie_Items")
Go to and Play ("Hide_Items")
End Tell Target
End If
End On

Be sure to replace "/Movie_Items" with the name of the movie that contains the items.
In that movie, there must be a frame defined with the label "Show_Items". In this frame, the items are visible.
And a frame "Hide_Items", wich, of course, doesn't show the items.

Next, put this code behind the various items:
On (Release)
Begin Tell Target ("/Item_MovXYZ")
Play
End Tell Target
End On

Be sure to add this code to ALL the buttons, and replace "/Item_MovXYZ" with e.g. "/Item_Mov1", "/Item_Mov2", "/Item_Mov3", etc...
the different movie that you want to play.

Hope it helps.
When I come back and you didn't get it, i'll make a tutorial for ya.

Gasbag-->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top