Create a button and name it btn_fullsc on stage. Using the following code in action frame.
import flash.display.StageDisplayState;
function toggleFullScreen():void
{
if (stage.displayState == StageDisplayState.NORMAL) {
stage.displayState=StageDisplayState.FULL_SCREEN;
} else {
stag
As being more familiar with JS, we proposed a website using AS3 as View and JS as model.
To make things easier, jquery1.4 is chosen to transfer data between PHP to JS, and there is almost no problem except that the oncomplete function might be executed before loaded JS code is executed
"multiline" has to be placed before "htmlText" or it may cause some problem to the format.
e.g.
function LoadText(txt):void{
var abc:TextField = new TextField();
abc.multiline = true;
abc.htmlText = txt;
}
- 2013
- 2012
- 2011
- 2010
