# Convert AS 3.0 to AS 2.0

**URL:** <https://forum.kirupa.com/t/convert-as-3-0-to-as-2-0/274801>\
**Category:** Uncategorized\
**Created:** [November 5, 2008, 4:05am UTC](https://forum.kirupa.com/t/convert-as-3-0-to-as-2-0/274801 "2008-11-05T04:05:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mangesh5588](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@mangesh5588](https://forum.kirupa.com/u/mangesh5588)\
**Post date:** [November 5, 2008, 4:05am UTC](https://forum.kirupa.com/t/convert-as-3-0-to-as-2-0/274801/1 "2008-11-05T04:05:29Z")

</div>

**I want convert the below code to AS 2.0 which is in AS 3.0**

code is

this.fullscreen\_btn.addEventListener(MouseEvent.MOUSE\_UP, toggleFullscreen);  
stage.scaleMode = “exactFit”;  
function toggleFullscreen(event:MouseEvent) {  
if (stage.displayState == “fullScreen”) {  
stage.displayState = “normal”;  
} else {  
stage.displayState = “fullScreen”;  
}  
}
