openfl / actuate

Actuate is a flexible, fast "tween" library for animations in Haxe
MIT License
158 stars 66 forks source link

MotionPathActuator not checking correctly for HTML5 Properties #78

Open gddhag opened 7 years ago

gddhag commented 7 years ago

The SimpleActuator does this check in initialize: Reflect.hasField (target, propertyName) #if flash && !untyped (target).hasOwnProperty ("set" + propertyName) #elseif html5 && !(untyped (target).properties && untyped (target).properties["set" + propertyName]) #end

to determine wether it has to use a setter or not the MotionPathActuator just checks for:

if flash false && #end Reflect.hasField (target, propertyName)