Copy link to clipboard
Copied
I can't seem to find a helpful answer for this. I am trying to implement a simple tween in AS3. When I test the movie using Ctrl+Enter my tween does not work, however, if I use File>Publish Preview>Flash to view movie, the tween DOES work. Part of my troubleshooting involved creating a new project with only one object and the code below. Pressing Ctrl+Enter on this test project, the tween works! Moving my library and code to the new test project ultimately ends with the same problem, tween not working. It will initialize and find its starting point (for my example, the object automatically goes to width of 100, where it is on the stage with a different width), so I know it is seeing the tween and at least its starting values, but no motion, at least until I File>Publish Preview>Flash. So I am not sure why it is failing to "play" when I Ctrl+Enter, but DOES play if I File>Publish Preview>Flash.
I am using Adobe Flash Professional CS6, Version 12.0.0.481
Code:
var myTween:Tween = new Tween(myObject, "width", Strong.easeOut, 100, 300, 10, true);
Any ideas I might try??
Thanks!!
Copy link to clipboard
Copied
make sure myObject is not timeline tweened and no other code references its width.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now