1 person found this helpful
create a movieclip and label the first frame "up" and attach a stop() and put whatever graphics and text you want to display when your button is up. then add a keyframe on frame 5 and label it "over" and display whatever graphics you want to be seen when the mouse is over your button. do the same for a "down" frame if you want different graphics then the "over" frame.
then you'll need to specify as2 or as3 to see how to code for you movieclip button.
I will start working on what you said to do. I am using Flash CS4 so I can use either as2 or as3. Is it preferable to do with as3?
My tin can keeps spinning. The text works fine.
OK I put a new layer in the movie clip and in frame 1 I added the action to stop.
The tin can does nothing at this point.
Is this correct so far?
I have been posting to the original request and not your response. Maybe it is not getting back to you.
as2 is easier to use and you don't seem to need any as3 features. make sure your stationary (non-spinning) tincan is in the "up" frame and make sure your spinning tincan is in the "over" frame.
you can then drag your movieclip from the library to the main timeline and in the properties panel give it an instance name, say btn1. you can then use:
this.gotoAndStop("hit"); // only needed if you have a hit frame
this.gotoAndStop("over"); // only needed if you have hit frame
//do whatever. if you want to open another html file when this button is clicked you can use:
Thank you so very much. I will have to redo this as I opened an as3 file. It may take me a little while but I will get back to report my success. Again, thank you so very much.
1 person found this helpful
you don't need to redo anything unless you already have as3 code in your swf. if you do, i'll change that code to as3.
if you don't, just change the publish settings to as2.
I did, by the way, change the publish settings to as2. Thanks for that info!
All works but the mouseover. The tin can continuously rotates instead of just once. The text changes color ok but flickers (from up to over) - again and again until mouseout. And the link works when clicked on either text or tin can.
So everything you gave me was correct but I have done something wrong with the over animation.
My movie clip is as follows. The instance is named btn1.
layer 3 = actions layer
layer 2 = text
layer 1 = tin can
frames 1 - 5 labeled "up" with stop action in frame 1.
frames 6 - 10 labeled over with tin can (layer 1) being a 5 frame tween using 1 rotation from the property panel
Scene 1 has 3 layers.
layer 1 = background - locked
layer 2 = btn1 movie clip
layer 3 = actions - with your code in frame 1
Again, any help will be appreciated.
are you using static text? if so, create that text in the "up" frame in a text layer. add a keyframe on the "over" frame in the text layer. highlight the text and in the properties panel select the text color you want to use.
for the tin can: the "over" frame should contain a movieclip of a tincan that spins once. ie, if you use a timeline tween for the tincan, it should have a stop() in its last frame so it doesn't repeatedly spin.
Perfect. It's just as I wanted it - or rather the artist wants it. Now I have to add a sound effects clip to the mouseover. I think those instructions are pretty well defined in the User Guide.
I am so grateful for your help.