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
7 answers

Get the type in flex

can someone tell me how I can identify the type of an object in flex? In particular I have an array where I store multiple types in (but all UIComponents) now as I evaluate the array I want to find out whether I have a TextInput Control or a…
Sebastian Müller
  • 5,471
  • 13
  • 51
  • 79
15
votes
8 answers

For VS Foreach on Array performance (in AS3/Flex)

Which one is faster? Why? var messages:Array = [.....] // 1 - for var len:int = messages.length; for (var i:int = 0; i < len; i++) { var o:Object = messages[i]; // ... } // 2 - foreach for each (var o:Object in messages) { // ... }
oshyshko
  • 2,008
  • 2
  • 21
  • 31
14
votes
6 answers

Flex/ActionScript - rotate Sprite around its center

I have created a Sprite in Actionscript and rendered it to a Flex Canvas. Suppose: var fooShape:Sprite = new FooSpriteSubclass(); fooCanvas.rawChildren.addChild(myshape); //Sprite shape renders on screen fooShape.rotation = fooNumber; This will…
meiguoren
  • 204
  • 1
  • 3
  • 8
14
votes
2 answers

Can I create an instance of a class from AS3 just knowing his name?

Can I create an instance of a class from AS3 just knowing it's name? I mean string representation, like FlagFrance
nicks
  • 2,161
  • 8
  • 49
  • 101
14
votes
2 answers

AS3 [Event(name="", type="")], what is the significance?

I develop with FlashDevelop3 R2 and the Flex 3.3 SDK and there are many occasions where I must use the embed metadata tag as such: [Embed(source="path/to/file")] private var Asset:Class; I understand the above all well and good, and I am…
Brian Hodge
  • 2,125
  • 2
  • 19
  • 29
14
votes
4 answers

Catching an unhandled IOErrorEvent in Flash AS3

Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed. That's what I see every time I try to load an image that doesn't exist using a Loader. I'm getting a list of URLs and can't validate if they're pointing to anything…
Yevgeny Simkin
  • 27,946
  • 39
  • 137
  • 236
14
votes
2 answers

Why does ExternalInterface breaks when I pass parameter with JSON like string?

I have a very odd problem with Flash 10 and ExternalInterface. I am currently using a homemade bridge to use RTMFP with Javascript and whenever I try to pass data that contains JSON, I get a wierd Javascript error that comes from Flash : missing )…
HoLyVieR
  • 10,985
  • 5
  • 42
  • 67
14
votes
3 answers

Not receiving onSync delete events for multiple SharedObjects in same SWF

I have an application that uses Remote SharedObjects and I am seeing some strange behaviour. I am writing an ActionScript application in AS3 using Flash Builder and connecting to Wowza Media Server 2. My application is working just fine but I am…
Adam Ullman
  • 1,517
  • 7
  • 12
14
votes
5 answers

Actionscript - Obtain the name of the current function

I want to get the name of a function from inside that function. e.g.: function blah() { //I want to get the string "blah" here, from the function's name } Or at least the Function object?
Fragsworth
  • 33,919
  • 27
  • 84
  • 97
14
votes
3 answers

Flex/AS3 - calling a function dynamically using a String?

Is it possible to call a function in AS3 using a string value as the function name e.g. var functionName:String = "getDetails"; var instance1:MyObject = new MyObject(); instance1.functionName(); // I know this is so wrong, but it gets the point…
Drenai
  • 11,315
  • 9
  • 48
  • 82
14
votes
2 answers

VLC syntax to transcode and stream to stdout?

Goal: I am trying to use VLC as a local server to expand the video capabilities of an app created with Adobe AIR, Flex and Actionscript. I am using VLC to stream to stdoutand reading that output from within my app. VLC Streaming…
spring
  • 18,009
  • 15
  • 80
  • 160
14
votes
3 answers

3D rotation with Axis & Angle

I know 3D rotation is well documented on SO and many other sites, but despite reading countless explanations I still haven't figured out where I'm going wrong. My background is in art and design, not math and programming, and I'm never really…
Casey
  • 1,802
  • 3
  • 22
  • 35
14
votes
3 answers

Flex: when hiding components in flex

When I set a component to visible=false the component hides, but how do I get it to take no space (get the container it belongs to to resize??) ...
Niels Bosma
  • 11,758
  • 29
  • 89
  • 148
14
votes
1 answer

inner class in AS

for example: package{ public class A { var test:String; public function A() } } class B{ } the code is in the same file, we call B is inner class, then how to call the constructor of class B
jason
  • 1,621
  • 6
  • 21
  • 39
14
votes
2 answers

dispatch event to parent ViewController in swift

I'm coming from as AS3 background so it might be easier for me to show you what I'm trying to do with AS3. I have a UIViewController(root) and inside that I have a ContainerView. I am under the impression that the container view's UIViewController…
icekomo
  • 9,328
  • 7
  • 31
  • 59