Author:
Password:

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
Tag:
AS3
2 replys / 6672 views.
Reply

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

Tag:
Flash
AS3
JavaScript
0 replys / 1305 views.
Reply

"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;

}

Tag:
Flash
AS3
0 replys / 1056 views.
Reply