fieldsye / actuate

Automatically exported from code.google.com/p/actuate
0 stars 0 forks source link

GenericActuator Warning (Line 88) #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have a loop with multiple onComplete functions and I'll get a warning in 
GenericActuator.as in Line 88:

MotionInternal::onComplete.apply (null, MotionInternal::onCompleteParams);

The warning is:

TypeError: Error #1010: Ein Begriff ist nicht definiert und hat keine 
Eigenschaften.
    at Function/<anonymous>()
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at com.eclecticdesignstudio.motion.actuators::GenericActuator/complete()
    at com.eclecticdesignstudio.motion.actuators::SimpleActuator/update()
    at com.eclecticdesignstudio.motion.actuators::SimpleActuator$/shape_onEnterFrame()

A simple try&error around line 88 will stop the warning, but I think a better 
fix would be appropriate

Original issue reported on code.google.com by bug.me.not.dude@googlemail.com on 4 Aug 2010 at 11:29

GoogleCodeExporter commented 8 years ago
Hey there,

It looks like this may be an error with your handler function. Based on the 
error, it would appear GenericActuator.complete () is firing fine, and apply () 
is firing fine, but the error is occuring in an anonymous function, which must 
be your handler?

Try and double check your complete handler, and see if there's any way it could 
be referencing a variable which becomes undefined, or try and wrap the contents 
of your complete handler in a try/catch statement, to confirm if that's where 
the problem is occurring. 

Original comment by joshuagr...@gmail.com on 10 Aug 2010 at 4:19