homepage Welcome to WebmasterWorld Guest from 54.197.49.162
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Make image appear on(release)
mightymid




msg:1564752
 2:36 pm on Jul 28, 2004 (gmt 0)

How can I make a button that, when clicked, causes an image to appear elsewhere on the stage?

Example -- We have a button on the left side of the stage labeled "Car." We want the 'car' image to appear on the RIGHT side of the stage when the button is clicked/released.

I have the button and the image ready to go. I just don't understand how to make them work together.

It's probably something very basic... but please bear with me. I'm new to Flash.

Thanks,
Mid

 

benihana




msg:1564753
 3:18 pm on Jul 28, 2004 (gmt 0)

number of ways to do this. one iof the simplest is probably
to :

create a new movieclip with 2 keyframes in, in the first key frame put nothing except the actionscript stop();

in the second keyframe put your image.

put this movieclip on the stage and give it an instance name.

apply an actionscript along the lines of:

onRelease.myMovieclip.gotoAndStop(2);

to the button. (where myMovieclip is the instance name of your the clip with the image in )

good luck!

mightymid




msg:1564754
 3:36 pm on Jul 28, 2004 (gmt 0)

Thanks! I'll give that a try.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved