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 MainMovie.as

3. copy kan script berikut ke file MainMovie.as

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

      public class MainMovie extends MovieClip {
            // Constructor
            public function MainMovie() {
                  traceCapabilities();
            }

            public function traceCapabilities():void {
                  trace(Capabilities);
                  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

G3n1k

just to remember what i had known :)

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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