The code as you show it works fine for me, though I changed the function just to trace something instead.
it worked for me too until one day ago, without any reason, since i didn't installed anything, no new programs or extensions. It stopped working while i was developing a long project for several hours using the strict declaration without recieving any error message. Flash was opened and never restarted, a moment before it worked, suddendly no more, and still not working if i use strict declaration. Very weird....
thanks for testing anyway.
check your targeted version of your script.
thanks for suggestion,
my settings are still the same, flash player 10 and script 2.0. All fla are using "default" profile for publishing.
right now i have experienced it again, opening an "old" fla that published without problems the swf, instead now gives error on
onMotionFinished is not defined
removing strict type declaration on tween makes it working again.
it appears like some libraries of the main program has been modified somehow, i cant find no other answer for that.