Jump to content
GreenSock

Hippiesvin

onCompleteListener throws error

Recommended Posts

Hi Jack

 

Using onCompleteListener like code below throws error.

Am I doing something wrong?

 

Best regards HippieSvin

 

... by the way, using Cromebrowser, tried to attach the zippet .fla several times but got Error This upload failed...

 

CODE

 

import com.greensock.easing.*;
import com.greensock.plugins.*;
import com.greensock.TweenMax;
import com.greensock.TimelineMax;
import com.greensock.events.TweenEvent;

var mc:MovieClip = new TestMC(); this.addChild(mc);

trace(TweenMax.version); // TRACES 12

/*
* VERSION: 12.0 beta 5.5
* DATE: 2012-05-25
*/

// NO ANIMATION + THROWS ERROR
TweenMax.from(mc, 1.0, {delay:0.5, x:"300",  ease:Back.easeOut, onCompleteListener:test});

// WORKING
//TweenMax.from(mc, 1.0, {delay:0.5, x:"300",  ease:Back.easeOut, onComplete:test});

function test(e:TweenEvent=null):void {
trace("test");
}

 

ERROR

 

ReferenceError: Error #1069: Property split not found on builtin.as$0.MethodClosure and there is no default value.

at com.greensock::TweenLite/_initProps()

at com.greensock::TweenLite/_init()

at com.greensock::TweenMax/render()

at com.greensock::TweenLite()

at com.greensock::TweenMax()

at com.greensock::TweenMax$/from()

at TEST_OnCompleteListener_fla::MainTimeline/frame1()

Link to comment
Share on other sites

Thanks for pointing this out - it should be fixed in the latest beta.

Link to comment
Share on other sites

Downloaded latest version with the bugfix - works perfect - Thanks :)

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