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

Displaying movies or frames on a button click.

Status
Not open for further replies.

aviles22

Programmer
Jun 27, 2000
25
US
I am new to Flash writing an app with buttons on the left side of the screen in a movie. When each button is clicked I want to display the info pertaining to that button on the rigth side of the screen. How can I call a new layer or frame to display the info. Any suggestions would also be very handy. What is the best way to do this?

Thank you much!

 
Hi

I would suggest looking through the tutorials that come with flash as a starting point. There is a nice one about buttons and so forth...bus basically you need to set up a movie clip with the information you want to have on the right. make the first frame blank and assign a "stop" action to a blank keyframe. Start the movie in frame 2.

Drag the movie onto the stage and label it (right click properties makes sure it is a movie and then label it something or other).

On the button on the left hand side assign a "tell target" action and select the movie name you used above, then "on release" of mouse button and use the "go to" frame 2 and play action.

Should look like this:
On Release
Tell Target "whateva"
Go to "frame 2" and play
End On

Let me know if you have any probs.

Justin

 
You could do it as explained above, but there is a simple way if you have just started, depending on what it is you are actually trying to do.
On mouse over or mouse click in the button editing bit, put the info in there so it is part of the button. Put blank keyframes before and after it so it only appears when you rollover or hit the button.
If you edit the button in place and then add the info to it you can see exactly where it will appear on the stage.
Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top