Jump to content
Search Community

1061: Call to a possibly undefined method...

codeBeast test
Moderator Tag

Recommended Posts

1061: Call to a possibly undefined method start through a reference with static type gs:TweenLite.

Hi - I want the the button to tween larger then back to its normal state. BUT I get the error above.

 

import gs.TweenLite;

import gs.easing.*;

import gs.events.TweenEvent;

 

var myTween:TweenLite = new TweenLite(button,1,{scaleX:1.05,scaleY:1.05,onComplete:myReverseFunction});

 

button.addEventListener(MouseEvent.ROLL_OVER, rollOverHandler, false, 0, true);

button.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, false, 0, true);

//button.addEventListener(Event.MOUSE_UP, mouseUpHandler);

button.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler, false, 0, true);

 

function rollOverHandler(e:MouseEvent):void

{

//TweenLite.to(button, 1, {scaleX:1.05, scaleY:1.05, ease:Elastic.easeOut});

//TweenLite.to(button,1,{scaleX:1.05,scaleY:1.05,onComplete:myReverseFunction});

myTween.start();

}

function myReverseFunction():void

{

myTween.reverse();

}

Link to comment
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.
×
×
  • Create New...