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
38
votes
5 answers

Fastest way to delete one entry from the middle of Array()

What is the fastest way to delete one specific entry from the middle of Array() Array is large one having Strings. I dont want just to set Array[5] = null, but instead array size should be reduced by one and array[5] should have content of…
Tom
  • 6,725
  • 24
  • 95
  • 159
38
votes
7 answers

What are the key differences between JavaScript and ActionScript 3?

I know both languages are from the same ECMA-262 standard. It seems that the two are becoming very similar with JavaScript adding event listeners for core Object instances through methods like freeze and seal in EMCAScript-262 5th edition and such.…
Todd Moses
  • 10,969
  • 10
  • 47
  • 65
37
votes
8 answers

What is the specifications for Motion JPEG?

I've been googling like mad and can't find any file format specifications for mjpeg. What should the header look like? Do i just append a series of jpegs after the header? I know it's the usually in the .avi container, does that have a…
Robert Sköld
  • 752
  • 2
  • 9
  • 19
37
votes
8 answers

StackTrace in Flash / ActionScript 3.0

I want to see the stack trace in any function of my code, so i made somthing like this to call it and print the stack trace: public function PrintStackTrace() { try { throw new Error('StackTrace'); } catch (e:Error) { …
Lucas Gabriel Sánchez
  • 40,116
  • 20
  • 56
  • 83
36
votes
6 answers

What is the best way to resize a BitmapData object?

Say I have a BitmapData of 600x600 and I want to scale it down to 100x100.
Iain
  • 9,432
  • 11
  • 47
  • 64
35
votes
7 answers

Writing a syntax highlighter

I was hoping to write my own syntax highlighter for a summer project I am thinking of working on but I am not sure how to write my own syntax highlighter. I know that there are bunch of implementations out there but I would like to learn about…
Ian Dallas
  • 12,451
  • 19
  • 58
  • 82
35
votes
2 answers

Can 0.99999999999 be rounded to 1.0 when multiplying?

When multiplying a floating point number that is very close to 1 with an int > 0, can it ever be interpreted as 1. That is, if Math.random() returns its highest possible result (which is 1 step below 1.0), will (int)(Math.random() * 8) be 8 or…
Bart van Heukelom
  • 43,244
  • 59
  • 186
  • 301
35
votes
6 answers

How can I determine what flash player version a swf was published for?

I have a SWF of unknown origin, and I need to know which flash player version it was targeted at when it was published. How do I get this info?
John
  • 3,904
  • 7
  • 31
  • 43
34
votes
6 answers

Static Actionscript code analysis possibilities

I want to see class, function and variable/property, dependencies visually, like NDepend, but for ActionScript 2 or AS3 code. Any programs or ideas? Use doxygen in some way? FlexUnit?
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
34
votes
3 answers

konami code in flex

What would be the best way to implement the konami code into a flex application? I want to create a component to add it on all my proyects, just for fun. thanks UPDATE: I made a simple component, thanks to ZaBlanc
sergiogx
  • 1,562
  • 1
  • 19
  • 36
33
votes
0 answers

AIR Build Server Setup

I am at the point where I am running into incredibly long build times for my project and more projects to come. I would like to make a build server but I have not had any experience with them aside from downloading files from them as an end user. My…
sfxworks
  • 1,031
  • 8
  • 27
32
votes
6 answers

How can I get an instance's "memory location" in ActionScript?

FlexBuilder's debugger will show you the "memory location" (or, I can only assume, something roughly analogous) of any in-scope instance: But I'd like to get this information in code (sort of like Python's id function), so I could very easily trace…
David Wolever
  • 148,955
  • 89
  • 346
  • 502
32
votes
8 answers

What algorithms could I use for audio volume level?

Let's say I have a slider that can go between 0 and 1. The SoundTransform.volume also ranges between 0 (silent) and 1 (full volume), but if I use a linear function, let's say SoundTransform.volume = slider.volume, the result is rather not pleasing -…
evilpenguin
  • 5,448
  • 6
  • 41
  • 49
31
votes
8 answers

How can I get list of properties in an object in Actionscript?

I have a dataprovider and a filterfunction for my array that's assigned to my dataprovider. How can I get a list of the properties that are in each row of the dataprovider (item.data) as it gets passed to the filterfunction? For instance, if my…
GeoffreyF67
  • 11,061
  • 11
  • 46
  • 56
31
votes
4 answers

AS3 - Abstract Classes

How can I make an abstract class in AS3 nicely? I've tried this: public class AnAbstractClass { public function toBeImplemented():void { throw new NotImplementedError(); // I've created this error } } public class…
Lucas Gabriel Sánchez
  • 40,116
  • 20
  • 56
  • 83