package
{
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.text.TextField;
import flash.events.MouseEvent;
import flash.external.;
import fl.transitions.;
import fl.transitions.easing.*;
public class Jsfunction extends MovieClip
{
public function Jsfunction():void
{
stage.addEventListener(MouseEvent.CLICK, clicked);
//The function "listening" to JS
ExternalInterface.addCallback("calledFromJs", calledFromJs);
}
private function clicked(e:MouseEvent):void
{
trace("helloe");
ExternalInterface.call("calledFromAs3","Love JS and Love AS3");
}
public function calledFromJs(theVar):void
{
var tf = new TextField();
//tf.background = true;
addChild(tf);
tf.text = theVar;
var movem:int;
movem = theVar;
TransitionManager.start(ticker, {type:Rotate, direction:Transition.OUT, duration:3, easing:Strong.easeInOut, ccw:false, degrees:movem});
stop();
}
}
}
my question is that when i call the rotation, once it has completed the movie clip disapears. the flash file still remains as i can see the number i have input, its just the movieclip of the arrow thats rotating that disapears
i want it to remain where it has rotated to?
any help?
thanks