Log In · Register

 
 
Closed TopicStart new topic
fairly basic ActionScript question..( I think ), motion tweening(fades) using AS 2.0
wetwilly92
post Jul 31 2007, 07:47 PM
Post #1


Senior Member
***

Group: Member
Posts: 54
Joined: Jul 2007
Member No: 544,170



Okay, I'm fairly certain that this is in the right place since it says flash, so I hope someone can help me out.

Okay I pretty sure that I have no idea what I'm doing, as it seems that I am only getting the basics of actionscripting. but I wanted to try this out.

So now onto the problem:

I have a myspace layout I'm making. I'm using Flash as the basis for displaying information. I would like to make text fade in on Roll Over, and make text fade out on Roll Out of my Buttons. I've figured out how to make it fade-in using this Actionscript:

CODE
mx.transitions.TransitionManager.start(text_mc,

  {type:mx.transitions.Fade, direction:0, duration:1,

  easing:mx.transitions.easing.Regular.easeOut, param1:empty,

  param2:empty});


and fade-out by changing the direction to 1. That fine and all, the only thing is I want it to fade-in/out on ROLLOVER/ROLLOUT. I imagine it's just a matter of targeting properly..

If you can't visualize what I'm describing, Here is a website that basically shows what I'm talking about:

http://www.partnershipfs.com/


Except I would like the text to fade-in and out. I will probably end up just doing the same thing with the text as the site if I can't figure this out.

If you don't mind explaining how your code is able to work, please do..

BTW the button's instance name is: CD-R_BTN if it helps at all..


thanks for any/all help whistling.gif

-Wetwilly92
 

Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: