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

Check to see if a class has a method

Is it possible to check a class to see whether it has a method or not ? Or even a particular property
numerical25
  • 10,524
  • 36
  • 130
  • 209
12
votes
1 answer

Flex3: Load contents of an embedded text file into a variable

I have a block of html text which is displayed to the user in a TextArea. Currently, the I have embedded the HTML as an XML object within one of my classes, but this seems like a terrible design. I would like to put the HTML in an embedded file…
SorcyCat
  • 1,206
  • 10
  • 19
12
votes
6 answers

Flash - Play movie clip in reverse?

I'm trying to get a movie clip to play in reverse when I mouse_out from it (it plays on mouse_over). My actionscript is as…
Probocop
  • 10,346
  • 28
  • 85
  • 115
12
votes
3 answers

Actionscript 3: Can someone explain to me the concept of static variables and methods?

I'm learning AS3, and am a bit confused as to what a static variable or method does, or how it differs from a method or variable without this keyword. This should be simple enough to answer, I think.
Mike
  • 963
  • 4
  • 16
  • 38
12
votes
4 answers

Flex graphic assets: SWF or SWC?

Which is a better format to store graphic assets for a Flex application, SWF or SWC? Are there any real differences, and if so what are they?
defmeta
  • 1,322
  • 3
  • 11
  • 19
12
votes
3 answers

How to play MP3 sound from buffer (ByteArray/Stream) in ActionScript 3?

So.. I have a buffer with MP3 data (If I would save this buffer and call it buffer.mp3 it would play, but in this situation I should not save it to file system). I have to play it, but I can not, what shall I do? I tried the next code to play that…
Rella
  • 65,003
  • 109
  • 363
  • 636
12
votes
7 answers

Unit testing in flex

Are there any unit testing solutions for Flex? or actionscript 3? If so, what are their features? Any UI testing abilities? Functional testing? Any pointers, examples, libraries or tools that you can share?
Phobis
  • 7,524
  • 10
  • 47
  • 76
12
votes
5 answers

getElementById equivalent in Actionscript?

I want to dynamically access a bunch of objects in my mxml. I can construct their name/id. In Javascript I can do getElementById(ID) to get the object. How can I do this in Actionscript? I really can't do getChildByName because it is too…
sc45
  • 1,916
  • 2
  • 16
  • 25
12
votes
4 answers

Is there something like printf in Action Script 3?

I searched it for while but didn't find anything like printf in Action Script. That makes it a little difficult to generate formated strings.
faceclean
  • 3,781
  • 8
  • 39
  • 58
12
votes
10 answers

Is it possible to create a 'command line' swf?

I'd like to be able to write a .swf file that is runnable as a command line app. In other words, I would be able to create actionscript classes which can interact with stdin and stdout, and could then execute that .swf directly in the command…
Pete Hodgson
  • 15,644
  • 5
  • 38
  • 46
11
votes
3 answers

CI-friendly automated builds for as3/flex projects

Disclaimer: I am relatively unfamiliar with the flash build processes, so some/all of this may be misinformed nonsense. Please feel free to suggest alternative approaches. We're currently developing a flex web app and our build situation is far…
11
votes
2 answers

Two colors in one text field using Actionscript 3

Is it possible to have two text colors in one text field using Actionscript 3.0? ex: how can i make like the first string black and the second string red? Here is my code when using a single color: public function logs(txt) { if…
Khairu Aqsara
  • 1,321
  • 3
  • 14
  • 27
11
votes
4 answers

How to stop simultaneous browser and SWF mouse wheel scrolling in AS3?

Essentially, I have flash content that scrolls on mouse wheel. It works fine, unless there is other content in the browser such that the browser's scrollbar is enabled - when that is the case, both the browser window AND my SWF scroll on mouse…
Sensei James
  • 2,617
  • 30
  • 36
11
votes
3 answers

Would this code cause memory leakage?

Would this cause memory leak ? var mc:MovieClip ; //<<<<<<< OUTSIDE LOOP for ( var i=0 ; i< 1000 ; i++) { mc = new MovieClip() ; mc.addEventListener( MouseEvent.CLICK , onClick) ; } And what about this ? for ( var i=0 ; i< 1000 ; i++) { …
Vishwas
  • 1,533
  • 2
  • 19
  • 40
11
votes
4 answers

AS3: declaring an "undefined" parameter for int, uint or Number

I'd like to implement the following logic: function setMyValue (myVar:int = undefined):void { if (myVar == undefined) { /* Generate a value for myVar */ } else { /* Use the supplied value for myVar */ } } So…
Wikiup
  • 325
  • 1
  • 3
  • 10