# Convert as2 TO as3

**URL:** <https://forum.kirupa.com/t/convert-as2-to-as3/302487>\
**Category:** Uncategorized\
**Created:** [January 1, 2010, 11:38am UTC](https://forum.kirupa.com/t/convert-as2-to-as3/302487 "2010-01-01T11:38:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raaz](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@raaz](https://forum.kirupa.com/u/raaz)\
**Post date:** [January 1, 2010, 11:38am UTC](https://forum.kirupa.com/t/convert-as2-to-as3/302487/1 "2010-01-01T11:38:59Z")

</div>

hi

all

i just create a FLA in AS 2 and found whatever i want but when i change it in AS 3 it did’t work.  
:twoface:

this is my code please help as soon as posiable

**// ACTION SCRIPT 2//**

[COLOR=Navy]fscommand[/COLOR]([COLOR=PaleGreen]“fullscreen”[/COLOR], true);  
[COLOR=Blue]stop/COLOR;

onEnterFrame = function ()  
{  
trace( \_root.mymenu.\_y );  
trace(\_root.\_ymouse);  
//trace ( \_root.botmenu.\_y );  
// set the scroll \_root.\_ymouse\<80 || \_root.botmenu.\_y -= 10;  
if ( \_root.\_ymouse\>700)  
{\_root.mymenu.\_y -= 10; fad.\_alpha = 80; }//ifclose  
//\_root.\_ymouse\>200 &&\_root.botmenu.\_y += 20;  
else if ( \_root.\_ymouse\<700)  
{\_root.mymenu.\_y += 20; fad.\_alpha = 0; }//elseclose

//set the bounds

if (\_root.mymenu.\_y\<=800)  
{\_root.mymenu.\_y = 800;}

```
else if (_root.mymenu._y&gt;=830) 
{_root.mymenu._y = 830; }//elseclose

```

**convert to as3??**  
fscommand(“fullscreen”, “true”);  
stop();

mymenu\_mc.addEventListener(Event.ENTER\_FRAME,myFunction);  
function myFunction(event:Event)  
{  
if ( (root).mouseY\>700)  
{mymenu\_mc.(root).\_y -= 10; fad.\_alpha = 80; }

```
else if ( (root).mouseY&lt;700) 
{mymenu_mc.(root)._y += 20; fad._alpha = 0; }

if (mymenu_mc.(root)._y&lt;=800)
{mymenu_mc.(root)._y = 800;}

else if (mymenu_mc.(root)._y&gt;=830) 
{mymenu_mc.(root)._y = 830; }

```

}  
:genius:

where i was Rong ? for take my result please resolve this

Thanks

RAAz
