basic flash + actionscript 3

Flash CS3

1. buat sebuah file fla baru, save dengan nama kelas_basic.fla

2. buat sebuah file actionscript 3 baru, beri nama

3. copy kan script berikut ke file

package {
      import flash.display.MovieClip;
      import flash.system.Capabilities;

      public class MainMovie extends MovieClip {
            // Constructor
            public function MainMovie() {

            public function traceCapabilities():void {
                  trace("hasAccessibility:", Capabilities.hasAccessibility);
                  trace("isDebugger:", Capabilities.isDebugger);
                  trace("language:", Capabilities.language);
                  trace("manufacturer:", Capabilities.manufacturer);
                  trace("os:", Capabilities.os);
                  trace("playerType:", Capabilities.playerType);
                  trace("version:", Capabilities.version);


4. kembali ke file kelas_basic.fla, dan isikan MainMovie ke bagian Document class

5. hasil keluaran

Published by


just to remember what i had known :)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s