PDA

View Full Version : Rollover/Rollout effect problem!



FlashON
July 29th, 2007, 10:41 PM
Hello guys, i am a total newbie to the flash scene .... i've been following some of the tutes here at kirupa.com. I am currently making a project for a friend of mine by designing a banner for him in FLASH mainly because i want to add effects and such otherwise i could have done this just in PS and be done with it.

However i have hit a snag trying to follow the rollout/rollover effect tute, i have a banner and i want the name of the website which is written in text to enlarge when the mouse rolls over and to go back to its original shape once it moves out. Simple effect yet its been a pain in the **** for me to create.

Can anyone else do it for me and then explain how they did it? Forget the tute cause its a different scenario while i am trying to do this to independent text rather then a graphic object. I am attaching the file so plz if any of you flash gurus can help me with this i will be EXTREMELY grateful.

Heres a link to d/ld the file : http://www.filefactory.com/file/5ae7aa

Thanks for any help.

FlashON
July 31st, 2007, 03:59 PM
No one willing to help?

geoken
July 31st, 2007, 04:54 PM
Can you post your code?

The easiest way to do it would be to convert the text to a movie clip (select the text and hit F8). Give the movie clip an instance name ("companyName" for example) then add listeners and their corresponding functions.



companyName.addEventListener('mouseOver', cNameOver)

function cNameOver(event:Event){
companyName.scaleX = 1.5;
companyName.scaleY = 1.5;
}



companyName.addEventListener('mouseOut', cNameOut)

function cNameOut(event:Event){
companyName.scaleX = 1;
companyName.scaleY = 1;
}

FlashON
August 1st, 2007, 09:23 PM
Many thanks for replying , as i was beginning to lose hope of getting any help.

The code i am following was provided in the kirupa tute but i dont think thats the problem. The problem is before that.
The code anyway is this:

//stop(); this.onEnterFrame = function(){ if(rewind == true){ prevFrame(); } } this.onRollOver = function(){ rewind = false; play(); } this.onRollOut = function(){ rewind = true; } this.onRelease = function(){ getURL("http://www.kirupa.com","_blank"); }

You can take a gander at it here properly:
http://www.kirupa.com/developer/mx2004/button_effect.htm (http://www.kirupa.com/forum/../developer/mx2004/button_effect.htm)

I shall try your method and see if that works. But one thing ... where do i paste that code you wrote?

FlashON
August 5th, 2007, 07:08 PM
*BUMP*