08-23-2006, 02:50 AM
|
#1
|
|
Senior Member
Join Date: Aug 2006
Posts: 794
|
button help
I have an image that has a blurry verion of it, and a clear version of it.
I want to make a button with the blurry version as the "Up" State, and then when they roll over the button, the blurry fades away to the clear version of it, and then for the "Down" state it'll have a reddish tint to it.
Here's what I've done so far:
Created a new Button
Crated a new layer for the "Up" state and placed the blurry image in that layer
Created a new layer and added a keyframe to the "Down" state. Here I created a new move clip.
Within the movie clip, I have two layers, "blurry" (on top) and "original" (on bottom)
I drag my blurry image onto the blurry layer and the original image onto the original layer. I create a keyframe at frame 15 for both layers.
Now, from here, I want to make the blurry image fade out using tweening.
How do I do that? I've tried it a few different ways, and nothing works...I can't seem to find a way to actually fade the image...there isn't an opactiy changer anywhere...
__________________
-Stomp
===================================
Peter: "Look, my alphabet soup has a message in it! It says 'ooooooo'!"
Brian: "Peter, those are Cheerios."
|
|
|
08-23-2006, 03:08 AM
|
#2
|
|
Martti Dumangeng
Join Date: Mar 2006
Location: Quezon City, Philippines
Posts: 679
|
here's a sample.
|
|
|
08-23-2006, 03:24 AM
|
#3
|
|
Senior Member
Join Date: Aug 2006
Posts: 794
|
OK...I figured it out now actually...
here's my next question:
How do I make it so that when the user rolls the mouse out, that it fades back to the original image instead of just snapping back to it?
I know I have to essentially reverse the animation in frames 16-30, and i need to have
stop ();
in frame 15, followed by the code that will gotoandplay (16) on mouse out...
what would be the exact code for that?
__________________
-Stomp
===================================
Peter: "Look, my alphabet soup has a message in it! It says 'ooooooo'!"
Brian: "Peter, those are Cheerios."
|
|
|
08-23-2006, 03:47 AM
|
#4
|
|
Martti Dumangeng
Join Date: Mar 2006
Location: Quezon City, Philippines
Posts: 679
|
that would require you some codes. here's a post i think is related
blur
|
|
|
08-23-2006, 04:23 AM
|
#5
|
|
Senior Member
Join Date: Aug 2006
Posts: 794
|
there's no way I can just use an "onMouseOut" feature instead of using all the code?
__________________
-Stomp
===================================
Peter: "Look, my alphabet soup has a message in it! It says 'ooooooo'!"
Brian: "Peter, those are Cheerios."
|
|
|
08-23-2006, 04:57 AM
|
#6
|
|
Martti Dumangeng
Join Date: Mar 2006
Location: Quezon City, Philippines
Posts: 679
|
here's an alternative, i've made three MC buttons, blurbtn, clearbtn and transparentbtn. you can experiment with this sample by changing the MC size or opacity.
|
|
|
08-23-2006, 03:02 PM
|
#7
|
|
Senior Member
Join Date: Aug 2006
Posts: 794
|
is there no such thing as an onMouseOut command in action script, or something similar that doesn't require an instance name to work...?
__________________
-Stomp
===================================
Peter: "Look, my alphabet soup has a message in it! It says 'ooooooo'!"
Brian: "Peter, those are Cheerios."
|
|
|
08-23-2006, 11:57 PM
|
#8
|
|
Martti Dumangeng
Join Date: Mar 2006
Location: Quezon City, Philippines
Posts: 679
|
onRollOut? or you mean the up state of the button?
|
|
|
08-24-2006, 12:43 AM
|
#9
|
|
Senior Member
Join Date: Aug 2006
Posts: 794
|
i found onRollOut, but doesn't that require an instance name?
Do I have to give the actual button an instance name, and then use the code within the button or within the main timeline?
Or do I have to go the more complex method and use ActionScripting with alpha values?
Thanks.
__________________
-Stomp
===================================
Peter: "Look, my alphabet soup has a message in it! It says 'ooooooo'!"
Brian: "Peter, those are Cheerios."
|
|
|
08-24-2006, 01:24 AM
|
#10
|
|
Martti Dumangeng
Join Date: Mar 2006
Location: Quezon City, Philippines
Posts: 679
|
if you don't want to use instance names then you can put your code within the buttons. you still need to use actionscript to perform the blur effect. try googling the blur class.
|
|
|
| Thread Tools |
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 12:59 AM.
///
|
|