1 / 3

ACtionscript

ACtionscript. Syntax, OOP, built-in types. packages. package samples { public class SampleCode { public var sampleGreeting:String ; public function SampleCode () { //do nothing } } } //import all classes in package import samples.*; //import one class only

creola
Download Presentation

ACtionscript

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ACtionscript Syntax, OOP, built-in types

  2. packages • package samples • { • publicclassSampleCode • { • publicvarsampleGreeting:String; • publicfunctionSampleCode() • { • //do nothing • } • } • } • //import all classes in package • import samples.*; • //import one class only • importsamples.SampleCode;

  3. Variables var i: int; var s: String = "string"; var i: int = 0, s: String = "s"; var u: uint = 0xffffff; //type Object varsomeObject: Object; varsomeObject: Object = {label: 'label'}; //untyped variable varsomeObject: *; vararray: Array; vararray: Array = new Array(); vararray: Array = [1, 2, 3];

More Related