Questions tagged [actionscript-3]

ActionScript 3 (AS3) is the open source object oriented programming (OOP) language of the Adobe Flash and AIR Platforms. AS3 is widely used for RIAs, mobile apps, and desktop applications. (ActionScript 3 is a dialect of ECMAScript.)

ActionScript 3 (AS3), developed by Adobe, is an open source, object-oriented programming (OOP) language. It is a dialect of ECMAScript.

AS3 can be used to create web programs deployed using Flash Player, applications for iOS, Android, Blackberry (PlayBook OS and BlackBerry 10), and desktop using Adobe AIR, as well as TV applications using Adobe AIR for TV.

ActionScript is an object-oriented language originally developed by Macromedia Inc. (now owned by Adobe Systems). It is a dialect of ECMAScript (meaning it is a superset of the syntax and semantics of the language more widely known as JavaScript), and is used primarily for the development of websites and software targeting the Adobe Flash Player platform, used on Web pages in the form of embedded SWF files. The language itself is open-source in that its specification is offered free of charge and both an open source compiler (as part of Apache Flex) and open source virtual machine (Mozilla Tamarin) are available.

References:

Books:

Useful Links:

41246 questions
15
votes
2 answers

Lack of operator overloading in ActionScript 3.0

One of the things I miss the most in ActionScript is the lack of operator overloading, in particular ==. I kind of work around this issue by adding a "Compare" method to my classes, but that doesn't help in many cases, like when you want to use…
Andres
  • 1,875
  • 1
  • 19
  • 28
15
votes
4 answers

What is the relationship between Flex, Flash and ActionScript 3.0

I'm working on a project that uses ActionScript 3.0 with Flex SDKs. The project is built using the Eclipse IDE. I wonder if the Flex SDKs are used to support ActionScript 3.0 in Eclipse? What is the relationship between ActionScript 3.0 and Flash?
Anonymous
  • 4,133
  • 10
  • 31
  • 38
15
votes
3 answers

Calling ActionScript 3 function from C#

I have a Flash movie embeded in a Windows Form (using the component "Shockwave Flash Object included with Visual Studio 8). The Flash movie was created with Flash CS4 and uses ActionScript 3. Is it possible to use C# to call an ActionScript function…
William Cousert
15
votes
3 answers

Converting between an ActionScript Array (Object[]) and a Vector.
Are there options for converting an Array to a Vector in ActionScript without iterating the array? What about the other way (converting a Vector to an Array)?
Marty Pitt
  • 28,822
  • 36
  • 122
  • 195
15
votes
3 answers

Accessing the Document class in AS3

How can instantiated classes access the Document class? Even after I name the Document class using the Properties bar in Flash, attempting to access it from other classes usually fails, saying "attempting to access an undefined property... One…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
15
votes
8 answers

Change stage background color in AS3?

I am using pure AS3 to build my project. I was wondering if there are anyways to change the stage background color through AS3...Thanks for the help....
FlyingCat
  • 14,036
  • 36
  • 119
  • 198
15
votes
7 answers

trimming strings with actionscript 3

I'm trying to trim white spaces from front and end of a string. Looks like as3 does not have a trim function. Anyone aware of how it can be done?
donpal
  • 2,112
  • 4
  • 17
  • 20
15
votes
2 answers

StringBuilder in Flex

I'm looking for fast string concatenation class or so in Flex. Like StringBuilder in Java. Thanks
tefozi
  • 5,390
  • 5
  • 38
  • 52
15
votes
4 answers

Remove whitespace in as3

How can one remove whitespace from a string in as3? I would like to be able to remove all carriage returns, spaces, tabs etc.
Derek Adair
  • 21,846
  • 31
  • 97
  • 134
15
votes
3 answers

Breaking a concave polygon into convex ones

I'm using a game physics library (Box2D) which only supports convex polygon shapes. However, I'd like the level builder to be able to just specify concave polygons without having to worry about that. So, how can I automatically break apart a concave…
Bart van Heukelom
  • 43,244
  • 59
  • 186
  • 301
15
votes
3 answers

Is ActionScript 3 Dictionary a hashmap?

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/ The dictionary does what I need but I do need to care about performance. Does anybody know if the Dictionary is implemented as a hashtable? Or more specifically, does it perform in O(1)?
Bart van Heukelom
  • 43,244
  • 59
  • 186
  • 301
15
votes
8 answers

What are some good Flash game frameworks?

Pretty straightforward. Open source is good, but organization and documentation is better. Actionscript 3 is a must, I don't really want to start working with the older versions. I guess that's the crux of my problem using Google, because there are…
Dustman
  • 5,035
  • 10
  • 32
  • 40
15
votes
2 answers

Save video captured from webcam using Flash

I'd like to use Flash to capure video from the user's webcam and then save it on the same server that hosts the Flash file. The web server will be running ASP.Net technology. Seems easy, right? Lot of searches yielded the same lines of code to start…
a7drew
  • 7,801
  • 6
  • 38
  • 39
15
votes
9 answers

ActionScript 3.0 using closures for event handlers

I tried doing this: root.addEventListener("click", function () { navigateToURL(ClickURLRequest,"_self"); }); And it does add the event listener. I like using closures because they work well in this situation, however, removing…
FlySwat
  • 172,459
  • 74
  • 246
  • 311
15
votes
8 answers

Actionscript 3 import package.* vs import package.Class

In Actionscript 3, is there any reel overhead between importing a full package versus importing independant classes? E.g.: import flash.display.* vs. import flash.display.Sprite I know it's a good practice to import only the needed classes from a…
user105813
  • 17,059
  • 4
  • 21
  • 17