To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Product Support > Koolmoves

Reply
 
Thread Tools Search this Thread Display Modes
Old 11-08-2006, 01:09 PM   #1
bailyesboy
Member
 
Join Date: Jan 2006
Posts: 44
Fade Effect

I've got an image that is 50% transparent. I want there to be no tranparency on it when I put my mouse over it. Any ideas on how to do this?
bailyesboy is offline   Reply With Quote
Old 11-08-2006, 01:57 PM   #2
pherbrick
Senior Member
 
pherbrick's Avatar
 
Join Date: Jul 2004
Location: Los Angeles
Posts: 291
Quick and dirty solution:

1) Convert the image to a button,
2) Copy the Up state to the Over state
3) Set the transparency to 0% on the image in the Over State
4a) If you need a transition from 50% to 0%, before step 1 above, copy the image to a movie clip and create a multiframe clip, w/ image on first frame starting at 50% and image on last frame at 0% transparency. Don't forget to put a stop() on the last frame or you will have a cycling image.
4b) After step 1) above, create a blank Over state and cut and paste the clip from the stage to the button's Over state; disregard steps 2) and 3).
5) Create a Down state.
pherbrick is offline   Reply With Quote
Old 11-08-2006, 02:00 PM   #3
bailyesboy
Member
 
Join Date: Jan 2006
Posts: 44
That's what I tried to start off with but when I play movie it comes up as 0% transparent
bailyesboy is offline   Reply With Quote
Old 11-08-2006, 07:07 PM   #4
Chris_Seahorn
up to my .as in work
 
Chris_Seahorn's Avatar
 
Join Date: Dec 2004
Posts: 4,364
Submitted a scripted example to the Exchange. Should be available soon.

http://flashnow.servebbs.com/example...uttonFade.html
Chris_Seahorn is offline   Reply With Quote
Old 11-08-2006, 07:16 PM   #5
pherbrick
Senior Member
 
pherbrick's Avatar
 
Join Date: Jul 2004
Location: Los Angeles
Posts: 291
Quote:
Originally Posted by bailyesboy
That's what I tried to start off with but when I play movie it comes up as 0% transparent
Did you adjust the transparencies within the states?

I found I ccouldn't keep the Over state from cycling each time the mouse was clicked. For that reason, using a movie clip is better. I was working on a movie clip version when Chris beat me to posting (his looks much nicer than mine).
pherbrick is offline   Reply With Quote
Old 11-08-2006, 07:32 PM   #6
Chris_Seahorn
up to my .as in work
 
Chris_Seahorn's Avatar
 
Join Date: Dec 2004
Posts: 4,364
Mine is just like Peter mentions, a MovieClip as a button. If you want the look of a component button (drop in) but the added benefit of a movieclip just convert your onstage component button to a clip:

http://flashnow.servebbs.com/example...ttonFade2.html


There are literally dozens of ways to skin this cat.
Chris_Seahorn is offline   Reply With Quote
Old 11-08-2006, 10:24 PM   #7
blanius
KoolMoves Moderator
 
blanius's Avatar
 
Join Date: Jul 2001
Location: Atlanta GA
Posts: 4,911
Exchange example approved and ready for download
blanius is offline   Reply With Quote
Old 11-08-2006, 10:42 PM   #8
Chris_Seahorn
up to my .as in work
 
Chris_Seahorn's Avatar
 
Join Date: Dec 2004
Posts: 4,364
Thank you sir
Chris_Seahorn is offline   Reply With Quote
Old 11-09-2006, 11:56 AM   #9
bailyesboy
Member
 
Join Date: Jan 2006
Posts: 44
Thanks
bailyesboy is offline   Reply With Quote
Old 11-09-2006, 03:57 PM   #10
xzerox_xzerox
Senior Member
 
Join Date: Sep 2005
Location: Gothenburg, Sweden
Posts: 357
why dont u guys use "hit test" much more easy

just ad this to any movieclip:

Code:
onClipEvent (enterFrame) { 
t = this.hitTest(_root._xmouse, _root._ymouse, 0); 
//fade out
//_alpha += (10*t*(_alpha<0)-10*!(t)*(_alpha>100)); 
//fade in
_alpha -= (20*!t*(_alpha>0)-20*(t)*(_alpha<100)); 

}
Does anyone know how to use this script but with blur for example? Or is it even possible?
__________________
/xzerox... Take a look at http://www.vmgcomputers.com/h75
xzerox_xzerox is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Product Support > Koolmoves

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump


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


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.