# Rotation question

**URL:** <https://forum.kirupa.com/t/rotation-question/260351>\
**Category:** Uncategorized\
**Created:** [May 14, 2008, 5:08pm UTC](https://forum.kirupa.com/t/rotation-question/260351 "2008-05-14T17:08:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![autumnmedia](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@autumnmedia](https://forum.kirupa.com/u/autumnmedia)\
**Post date:** [May 14, 2008, 5:08pm UTC](https://forum.kirupa.com/t/rotation-question/260351/1 "2008-05-14T17:08:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Alex\_Lexcuk](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@Alex\_Lexcuk](https://forum.kirupa.com/u/Alex_Lexcuk)\
**Post date:** [May 14, 2008, 8:25pm UTC](https://forum.kirupa.com/t/rotation-question/260351/2 "2008-05-14T20:25:09Z")

</div>

Test this.  
[http://dnadillo.dn.ua/php\_flash/MUS/Mus\_1.html](http://dnadillo.dn.ua/php_flash/MUS/Mus_1.html)  
[http://dnadillo.dn.ua/php\_flash/MUS/Mus\_1.rar](http://dnadillo.dn.ua/php_flash/MUS/Mus_1.rar)  
The Answer ask. Works this?

---

<div class="post-metadata">

**Author:** ![autumnmedia](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@autumnmedia](https://forum.kirupa.com/u/autumnmedia)\
**Post date:** [May 14, 2008, 11:25pm UTC](https://forum.kirupa.com/t/rotation-question/260351/3 "2008-05-14T23:25:13Z")

</div>

[quote=Alex Lexcuk;2326295]Test this.  
[http://dnadillo.dn.ua/php\_flash/MUS/Mus\_1.html](http://dnadillo.dn.ua/php_flash/MUS/Mus_1.html)  
[http://dnadillo.dn.ua/php\_flash/MUS/Mus\_1.rar](http://dnadillo.dn.ua/php_flash/MUS/Mus_1.rar)  
The Answer ask. Works this?[/quote]

erm these links arnt loading anyhting??
