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
12
votes
3 answers

AS3 Fastest way to merge multiple arrays

I'm trying to write a function where I can specify any amount of array, and the return value will be an array containing the contents of all of the specified arrays. I've done this, but it seems like a really slow and ugly way of doing it: var…
Marty
  • 39,033
  • 19
  • 93
  • 162
12
votes
7 answers

can an actionscript function find out its own name?

given the following function A(b:Function) { } If function A(), can we determine the name of the function being passed in as parameter 'b' ? Does the answer differ for AS2 and AS3 ?
Rotem Hadary
12
votes
4 answers

Flash security settings panel - Listening for close event?

When using Flash with a microphone or camera, the user is prompted to allow access to those devices. This is done through the built in security settings panel. Is there a way to be notified by an event handler when the user clicks on the close…
J. Volkya
  • 993
  • 3
  • 14
  • 33
12
votes
9 answers

How to debug a runtime stack underflow error?

I'm really struggling to resolve a stack underflow that I'm getting. The traceback I get at runtime is: VerifyError: Error #1024: Stack underflow occurred. at flash.events::EventDispatcher/dispatchEventFunction() at…
Russ
  • 10,835
  • 12
  • 42
  • 57
12
votes
1 answer

Flex 4 two classes in one file

Can I put two or more actionscript classes in one .as file like this: //A.as package classes { public class A { public function A() { var b:B = new B(); } } internal class B { public function B() { …
user578737
  • 133
  • 1
  • 8
12
votes
14 answers

What is the best IDE for actionscript3 development

I am currently using FlashDevelop for my Actionscript3 development. I have also tried my hand with using Flex3 for my Actionscript3 development. I was curious if FDT was superior to the former and that if it's cost out-weighs it's usefulness. Are…
Brian Hodge
  • 2,125
  • 2
  • 19
  • 29
12
votes
2 answers

Re-dispatching event in FLEX

In a FLEX app, I am trying to "re-dispatch" a custom event. I.e. component1 does dispatchEvnet(event), component2 registers a handler for the event, the only function of the handler being, again, dispatch(event). Finally, component3 listens for the…
user8032
  • 1,221
  • 1
  • 9
  • 17
12
votes
5 answers

Open local file with AIR / Flex

I have written an AIR Application that downloads videos and documents from a server. The videos play inside of the application, but I would like the user to be able to open the documents in their native applications. I am looking for a way to prompt…
Shawn
  • 19,465
  • 20
  • 98
  • 152
12
votes
1 answer

What is causing this card to change dimensions? [Video & Code]

I am programming a board game in Starling (Action Script 3). The Starling version that I am using has a class called Sprite3D, which allows me to conveniently and easily code the flipping of the cards used in this game. I am troubled by the fact…
Jared Clemence
  • 1,062
  • 11
  • 26
12
votes
6 answers

Error #1030: Stack depth is unbalanced

I've got this strange problem where this code: private function initLevel():void { var levelMap:Array = [ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,…
Thom Wiggers
  • 6,938
  • 1
  • 39
  • 65
12
votes
1 answer

How do I programmatically trigger a mx:Button click event?

Consider the following mx:Button: Is there some way to programmatically emulate the user clicking the button? One obvious way to do it would simply be to call doSomething() which would give the same…
knorv
  • 49,059
  • 74
  • 210
  • 294
12
votes
3 answers

Action Script Sleep function

Does actionscript 2.0/3.0 have an equivalent of c# sleep() ?
Kemrop
  • 309
  • 2
  • 4
  • 9
12
votes
2 answers

bring object to front flash actionscript 3

I have a menu set up that has about 20 menu items in a circle. When you mouse over each item, a title comes up. The only problem is that because of the depth order, it's hidden behind the other menu items. Is there a way to bring this item to the…
steve
  • 688
  • 6
  • 13
  • 32
12
votes
3 answers

Will duplicate addEventListener calls create duplicate listener entries?

If I have an object that calls addEventListener(Event.ENTER_FRAME, update); addEventListener(Event.ENTER_FRAME, update); will that add 2 listeners?
Pup
  • 10,236
  • 6
  • 45
  • 66
12
votes
3 answers

How can I determine a function's argument count at runtime in Flex 3?

I want to pass an optional data parameter to some callbacks, but only to callbacks that support a single parameter; right now, I have a moderately-sized code base of callbacks that cannot accept a parameter at all. How can I check what parameters a…
Chris R
  • 17,546
  • 23
  • 105
  • 172