Noah Smits

Simple mouseover scaling

Recommended Posts

Alright, I'm losing my mind...

 

I'm new to Animate CC (have worked with AE and multiple other software) and I'm trying to make nice banner ads.

The thing I want is to have a button (a button as in looks, not as in technical name in Animate) scale a bit up when I hover/mouseover it.

 

This video below learned me that the best way to do that is with a movieclip (around 12:40).

 

I copied his code and replaced the symbol name and function name with mine.

 

awesomest_mc.addEventListener(MouseEvent.ROLL_OVER, awesomestOver);

awesomest_mc.addEventListener(MouseEvent.ROLL_OUT, awesomestOut);

 

function awesomestOver(e:MouseEvent):void{     

TweenMax.to(awesomest_mc, .8, {tint:0xCD38CD, scaleX:1.5, scaleY:1.5})   

 }     

 

function awesomestOut(e:MouseEvent):void{     

TweenMax.to(awesomest_mc, .5, {tint:0x379bff, scaleX:1, scaleY:1})   

 }        

 

After a few hours (sigh) I found out that TweenMax doesn't work by default. So I found this awesome video by Greensock how to implement it with the url on this website.

 

But it still doesn't work.. When I preview it it just shows a loading image..

Can someone.. please explain this SUPER easy (for you animation jedi's) effect....? 

 

Thank you!!

 

Noah Smits

 

 

 

 

Screen Shot 2017-09-06 at 19.20.07.png

Screen Shot 2017-09-06 at 19.20.20.png

Screen Shot 2017-09-06 at 19.20.32.png

Share this post


Link to post
Share on other sites

Sorry, not sure how I missed this post for so long. We only check into the archived Flash forums occasionally.

The video you are referencing is about 7 years old and a lot has changed since then. From your post it appears that you are using ActionScript which we really don't support any more. Not sure if you know this, but there is a blog post that goes with that video. You can download the source files from here:

http://www.snorkl.tv/2010/08/flash-movieclip-buttons-vs-simple-buttons-five-ways-to-build-a-button/

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.