Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

AS3 Tween Not Working in Test Movie (Ctrl+Enter)

New Here ,
Oct 14, 2016 Oct 14, 2016

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!!

TOPICS
ActionScript
305
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 15, 2016 Oct 15, 2016
LATEST

make sure myObject is not timeline tweened and no other code references its width.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines