banner



How To Learn Actionscript 3 From Scratch

Versions

There is a single version of Actionscript iii, named "ActionScript three.0"

Flash Version Codename Changes and Improvements Release Appointment
Flash Role player 9.x Zaphod initial release 2006-06-22
Wink Histrion x.0 Astro introduced the Vector.<T> blazon, the Adobe Pixel Bender shader filters in flash.filters.ShaderFilter form, and its hardware support on multiple CPUs. 2008-10-15
Flash Player 10.1 Argo introduced flash.events.TouchEvent form to work with multitouch devices, and other support of mobile device hardware, such every bit accelerometer. 2010-06-ten
Flash Histrion 10.2 Spicy introduced flash.media.StageVideo class and the general framework to piece of work with stage video playback in AS3. 2011-02-08
Flash Player 11 Serrano adds H.264 support to video streaming over NetStream objects in both directions. Also it adds SSL/TLS support for Flash connexion with SecureSocket course. 2011-10-04
Flash Player 11.iv Brannan introduced flash.arrangement.Worker class and the ability to delegate asynchronous piece of work to other threads on the client. 2012-08-10
Flash Role player 11.8 Harrison removed hardware back up (JIT compilation) for Adobe Pixel Bender shader filters, drastically reducing performance of any Pb shader filter execution. 2013-05-09

Installation Overview

ActionScript 3 tin can be used by installing the Adobe AIR SDK or Apache Flex SDK or as part Adobe's Animate CC production (formerly known as Flash Professional).

Adobe Animate CC is a professional software solution that tin can be used to create AS3 projects using visual tools - once installed, no further steps are necessary to begin creating AS3 projects.

The AIR SDK and Flex SDK can be used with control line tools or with various third political party IDEs.

In improver to Adobe Breathing CC, in that location are iv other popular IDEs capable of working with AS3. These IDEs have their own instructions on how to get started.

  • Flash Builder (By Adobe - based on Eclipse)
  • IntelliJ Thought (By Jetbrains)
  • FlashDevelop
  • FDT (Eclipse Plugin)

A displayed "Hello World" example

          package {     import flash.text.TextField;     import wink.display.Sprite;      public class TextHello extends Sprite {         public function TextHello() {             var tf:TextField = new TextField();             tf.text = "Hello World!"             tf.10 = 50;             tf.y = forty;             addChild(tf);         }     } }                  

This form uses the TextField course to display the text.

Apache Flex Installation

from http://flex.apache.org/doc-getstarted.html

  1. Download the SDK installer

  2. Run the SDK installer. The first question you volition be asked is the installation directory.

    • on a Mac, use /Applications/Adobe Flash Architect iv.7/sdks/4.14.0/
    • on a PC, use C:\Program Files(x86)\Adobe Flash Builder 4.7\sdks\4.xiv.0

    Yous will need to create the 4.14.0 folders. Printing Next. Take SDK Licenses and Install.

IDE Specific Instructions for Apache Flex setup:

  • Flash Builder
  • IntelliJ Idea
  • FlashDevelop
  • FDT

Edifice Flex or Wink projects at the command line using mxmlc

The Flex compiler (mxmlc ) is one of the most important parts of the Flex SDK. Yous can edit AS3 code in any text editor y'all like. Create a main class file that extends from DisplayObject .

Yous can trigger builds at the control line as follows:

          mxmlc -source-path="." -default-size [width in pixels] [meridian in pixels] -default-frame-charge per unit [fps] -o "outputPath.swf" "mainClass.as"                  

If you need to compile a Flash project (equally opposed to Flex) y'all can add together a reference to the Flash library as follows (yous'll demand to have the Adobe Animate IDE installed):

          mxmlc -source-path="." -library-path+="/Applications/Adobe Animate CC 2015.2/Adobe Breathing CC 2015.two.app/Contents/Common/Configuration/ActionScript 3.0/libs" -static-link-runtime-shared-libraries=true -default-size [width in pixels] [meridian in pixels] -default-frame-rate [fps] -o "outputPath.swf" "mainClass.as"                  

Or on Windows:

          mxmlc -source-path="." -library-path+="C:\Program Files\Adobe\Adobe Breathing CC 2015.2\Mutual\Configuration\ActionScript 3.0\libs" -static-link-runtime-shared-libraries=true -default-size [width in pixels] [top in pixels] -default-frame-charge per unit [fps] -o "outputPath.swf" "mainClass.as"                  

Flash Develop Installation

FlashDevelop is a multi-platform open source IDE created in 2005 for Flash developers. With no cost, it'southward a very popular way to get started developing with AS3.

To Install FlashDevelop:

  1. Download The Installation File and run the installer
  2. In one case installation is complete, run FlashDevelop. On the first launch, the App Man window should announced asking you lot to pick what SDK'south and tools to install.

enter image description here If the AppMan doesn't open up automatically, or yous want to add together something after, open up it by choosing 'Install Software' on the 'Tools' carte du jour.

Check the AIR SDK+ ACS 2.0 item (in the 'Compiler' section) and the Flash Thespian (SA) item in the 'Runtimes' department (plus anything else yous'd like to install). Click the install button.

  1. Once the SDK is installed, permit'south test is by creating a hi world project. Start by creating a new project (from the Project menu)

  2. Cull AIR AS3 Projector from the list, and requite it a proper noun/location.

  3. In the project manager panel (choose 'Project Manager' from the view carte if not already visible), expand the src folder, and open the Main.equally file.

  4. In the Master.as file, yous tin can now create a outset example program like Howdy World

  5. Run your project by clicking the play icon, or pressing F5 , or Ctrl+Enter . The project will compile and when finished a bare window should appear (this is your application). In the FlashDevelop output window, you should see the words: Hello World.

Y'all are now ready to start developing AS3 applications with FlashDevelop!

Hi Earth

An instance certificate class that prints "Hi, World" to the debug panel when instantiated.

          import wink.display.Sprite;  public class Main extends Sprite {      public function Principal() {         super();          trace("Howdy, World");     }  }                  



Source: https://riptutorial.com/actionscript-3

Posted by: grahamthein2000.blogspot.com

0 Response to "How To Learn Actionscript 3 From Scratch"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel