Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-23-2006, 02:50 AM   #1
stompwampa
Senior Member
 
Join Date: Aug 2006
Posts: 794
Default 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."
stompwampa is offline   Reply With Quote
Old 08-23-2006, 03:08 AM   #2
icemart525
Martti Dumangeng
 
icemart525's Avatar
 
Join Date: Mar 2006
Location: Quezon City, Philippines
Posts: 679
Default

here's a sample.
Attached Files
File Type: zip button.zip (5.9 KB, 123 views)
icemart525 is offline   Reply With Quote
Old 08-23-2006, 03:24 AM   #3
stompwampa
Senior Member
 
Join Date: Aug 2006
Posts: 794
Default

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."
stompwampa is offline   Reply With Quote
Old 08-23-2006, 03:47 AM   #4
icemart525
Martti Dumangeng
 
icemart525's Avatar
 
Join Date: Mar 2006
Location: Quezon City, Philippines
Posts: 679
Default

that would require you some codes. here's a post i think is related
blur
icemart525 is offline   Reply With Quote
Old 08-23-2006, 04:23 AM   #5
stompwampa
Senior Member
 
Join Date: Aug 2006
Posts: 794
Default

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."
stompwampa is offline   Reply With Quote
Old 08-23-2006, 04:57 AM   #6
icemart525
Martti Dumangeng
 
icemart525's Avatar
 
Join Date: Mar 2006
Location: Quezon City, Philippines
Posts: 679
Default

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.
Attached Files
File Type: zip button.zip (6.4 KB, 123 views)
icemart525 is offline   Reply With Quote
Old 08-23-2006, 03:02 PM   #7
stompwampa
Senior Member
 
Join Date: Aug 2006
Posts: 794
Default

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."
stompwampa is offline   Reply With Quote
Old 08-23-2006, 11:57 PM   #8
icemart525
Martti Dumangeng
 
icemart525's Avatar
 
Join Date: Mar 2006
Location: Quezon City, Philippines
Posts: 679
Default

onRollOut? or you mean the up state of the button?
icemart525 is offline   Reply With Quote
Old 08-24-2006, 12:43 AM   #9
stompwampa
Senior Member
 
Join Date: Aug 2006
Posts: 794
Default

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."
stompwampa is offline   Reply With Quote
Old 08-24-2006, 01:24 AM   #10
icemart525
Martti Dumangeng
 
icemart525's Avatar
 
Join Date: Mar 2006
Location: Quezon City, Philippines
Posts: 679
Default

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.
icemart525 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Button State Bug dratl ActionScript 2.0 3 09-10-2007 04:07 AM
Music on/off toggle button Julia ActionScript 1.0 (and below) 12 04-04-2006 12:54 AM
cool dropdown button spinsykel Other Flash General Questions 0 06-25-2005 12:50 AM
Movieclip plays - despite condition! visualizer29 ActionScript 1.0 (and below) 2 06-17-2004 05:29 PM
_mc button strange behavior after click action on component 303 maddec ActionScript 2.0 2 06-08-2004 02:25 AM


All times are GMT. The time now is 07:25 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.