The ide i am using is flash cs3. the as2 swf contains a tween code using mx transitions. when i remove this tween code and hard code it on the enterframe there seems to be no problem. afaik avm2 should fully supports the as2 and as1 code. so i am unable to understand why this disparity when coding a simple tween in as2 swf. i had made a post in the actionscript forums hoping to gain some light on the issue. with a very simple attachment illustrating the issue http://www.actionscript.org/forums/showthread.php3?t=229901 p.s the 2 swf do not interact with each other. the code in as2 file
//~~~~~~~~~~~~~~~~~~~~~~~ with tween class
import mx.transitions.*;
import mx.transitions.easing.*;
function tweenMe(mc, target) {
myTween = new Tween(mc, "_x", Regular.easeOut, mc._x, target, 2, true);
}
tweenMe(mc, 700);
//~~~~~~~~~~~~~~~~~~~~~~~ Simple Hard coded control
/*this.onEnterFrame = function() {
mc._x += (700-mc._x)/10;
};
*/