creola
Uploaded by
3 SLIDES
168 VUES
30LIKES

ActionScript Basics: Syntax, OOP, and Built-in Types

DESCRIPTION

This guide introduces the foundational concepts of ActionScript, including syntax, object-oriented programming (OOP), and built-in types. It covers essential elements such as package creation and usage, variable declarations, and importing classes. Learn how to declare variables with different types, such as integers, strings, and objects. It also provides examples of defining public classes and functions, as well as initializing arrays. Perfect for beginners looking to grasp the basics of ActionScript programming!

1 / 3

Télécharger la présentation

ActionScript Basics: Syntax, OOP, and Built-in Types

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

Playing audio...

  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