The moonMap.png graphics file that Flash ActionScript 3.0 code processes
as a bitmap image for the effect.
goToAdobeTutorial_btn.addEventListener(MouseEvent.CLICK, justDoIt);
function justDoIt(evt:MouseEvent) {
var url:String = "http://livedocs.adobe.com/flash/9.0/main/fl_bitmaps_example.pdf";
var request:URLRequest = new URLRequest(url);
var variables:URLVariables = new URLVariables();
variables.exampleSessionId = new Date().getTime();
variables.exampleUserLabel = "guest";
request.data = variables;
navigateToURL(request);
}
import com.example.programmingas3.moon.MoonSphere; // <----- lots of ActionScript in this file!
// It is called a package.
import flash.display.StageAlign;
import flash.display.StageScaleMode;
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
var moon:MoonSphere = new MoonSphere(); // MoonSphere is the name of a class.
function showMoon(event:Event):void
{
addChild(moon);
}
moon.addEventListener(Event.COMPLETE, showMoon);
stop();