road0001 / tweensy

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

ReferenceError: Error #1069: #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I get the following error code while compiling this (clip 1 is a simple 
rectangle in a clip)

import com.flashdynamix.motion.Tweensy;
Tweensy.to(clip1, {x:500});

ReferenceError: Error #1069: Eigenschaft x für Number nicht gefunden und es 
ist kein 
Standardwert vorhanden.
    at com.flashdynamix.motion.plugins::AbstractTween/translate()
    at com.flashdynamix.motion.plugins::DisplayTween/translate()
    at com.flashdynamix.motion.plugins::AbstractTween/add()
    at com.flashdynamix.motion.plugins::AbstractTween/toTarget()
    at com.flashdynamix.motion::TweensyTimeline/to()
    at com.flashdynamix.motion::TweensyGroup/to()
    at com.flashdynamix.motion::Tweensy$/to()
    at test2_fla::MainTimeline/frame1()

Using TweensyZero everything is ok

I work on a mac with cs3

Original issue reported on code.google.com by ggwebs...@gmail.com on 22 Feb 2009 at 2:08

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I think the error says it all for some reason clip1 doesn't have an x property 
or the x property is not a number 
'Property x for Number not found and there is no Default value.'. 

I'ld say either clip1 is null or clip1 doesn't have an x property for some 
reason or another.

Original comment by flashdyn...@gmail.com on 3 Mar 2009 at 6:32

GoogleCodeExporter commented 8 years ago

Original comment by flashdyn...@gmail.com on 3 Mar 2009 at 6:34

GoogleCodeExporter commented 8 years ago
actually, i think, this IS a bug with a scope.      

putting "this." in a method "translate" in AbstractTween.as fixes this:

line 148: var current : Number = this.current[propName];

Original comment by yakov.al...@gmail.com on 2 Apr 2009 at 1:12

GoogleCodeExporter commented 8 years ago
I can confirm the latest release and beta source from the 0.2.2 ZIP, modifying 
AbstractTween.as as recommended by yakov.alperin DOES fix this bug.

Original comment by ten90jwhite@gmail.com on 12 Apr 2010 at 5:32