Jump to content
Search Community

calling tween play or resume in function

mojogar test
Moderator Tag

Recommended Posts

Newbie here, just trying GreenSocks out, so this is my 1st tweens using GS. Im simply trying to call a tween event in a function usig this code;

 

import com.greensock.*;

import com.greensock.easing.*;

 

var gar:TweenLite = new TweenLite(square, 2, {x:200, y:300, alpha:.5, rotation:360, ease:Back.easeOut});

 

gar.pause();

 

square.addEventListener.(MouseEvent.ROLL_OVER, go);

function go(event:MouseEvent):void {

gar.play();

}

 

But not working. Im getting this error;

 

TypeError: Error #1123: Filter operator not supported on type builtin.as$0.MethodClosure.

at greeSockProperties_fla::MainTimeline/frame1()

 

thanks

Link to comment
Share on other sites

It sounds like you have some other error on the first frame of your FLA. I don't think it's related to TweenLite at all. If you're still having trouble, please post your FLA that demonstrates the problem (don't forget to zip it first).

Link to comment
Share on other sites

  • 2 weeks later...

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...