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

Easiest implementation of onReleaseOutside in AS3?

I'm a long-time ActionScript 2 user, now getting started with ActionScript 3. The one thing I'm missing is an easy way to duplicate the functionality of AS2's MovieClip.onReleaseOutside. It is almost always necessary to implement this event,…
davr
  • 18,877
  • 17
  • 76
  • 99
4
votes
5 answers

this.loaderInfo is null in Flex

I have a problem with Flex module. I want to access url variables by this.loaderInfo.url, i call a function in createionComplete handler of module and sometimes it works and sometimes it doesn't. (Can't access... null). Any suggestions? This…
user269474
4
votes
4 answers

Loading a SWF dynamically causes previously loaded SWFs to misbehave

I have run into a very strange problem with Flash and Flex. It appears that under certain circumstances, movie clips from a SWF loaded at runtime (using Loader) cannot be instantiated if another SWF has been loaded in the mean time. Here is the…
Aaron
  • 2,013
  • 16
  • 22
4
votes
7 answers

How to write a LISP interpreter for actionscript 3?

I know there is one, but it's not easy to implement the way I want. I would like to know the steps to interpret the lisp language and what functions are essential to be implemented.
user216441
4
votes
1 answer

AS3 NetstreamInfo Class returning wrong values

I wrote a little swf Container which should load a video file and playback it. I followed the official Adobe documentation and the video plays smoothly. Afterwards I added some ExternalInterface API Callbacks for pausing, playing and resuming the…
madhippie
  • 168
  • 1
  • 9
4
votes
1 answer

Flex - Custom Component - Percentage Width/Height

I am trying to create a Custom Flex Component using the Flex Component framework: http://www.adobe.com/livedocs/flex/3/html/help.html?content=ascomponents_advanced_3.html. All good components allow you to define their dimensions using percentage…
Hamish
  • 796
  • 2
  • 14
  • 25
4
votes
2 answers

AS3 : RegExp exec method in loop problem

I need some help about RegExp in AS3. I have a simple pattern : patternYouTube = new RegExp ( "v(?:\/|=)([A-Z0-9_-]+)", "gi" ); This pattern is looking for the youTube id video. For example : var tmpUrl : String; var result : Object; var toto…
Boun
  • 413
  • 4
  • 17
4
votes
1 answer

AS3 AIR : After stage.addEventListener(MouseEvent.CLICK,... stage width and height changes?

I'm noob and trying some ActionScript3 code and now I'm stuck with this problem. I can't figure out why stage height changes after addEventListener. Can someone help please? I don't know is this code enough to find what's wrong with it. But here's…
ozr3n
  • 81
  • 7
4
votes
3 answers

Trying to capture stage area using BitmapData

I am trying to grab part of stage area using BitmapData and copyPixels method: bmd = new BitmapData(stage.stageWidth, stage.stageHeight); bmdRect = new BitmapData(320, 240); rectangle = new Rectangle(360, 20, 320, 240); bmdRect.copyPixels(bmd,…
Dimitree
  • 211
  • 2
  • 6
  • 15
4
votes
2 answers

AS3 - Can I have access to the object (or function) who call me?

I've asked this same question with Python. Now I like to know if this can be done in AS3. If I have something like this: package { public class SomeClass { private function A():void { C() } private function B():void { C() } …
Lucas Gabriel Sánchez
  • 40,116
  • 20
  • 56
  • 83
4
votes
1 answer

How to catch and exception in a loaded SWF's global$init?

My Flash program's loading a SWF that contains user code which has been compiled in real time. Because it's user code, it may throw exceptions. Unfortunately, I can't seem to catch the exceptions. This code doesn't work: this._loader = new…
DoomGoober
  • 1,533
  • 14
  • 20
4
votes
1 answer

How to initialize Flash ActionScript 3 (AS3) components?

I'm trying to find the correct event to listen for that will ensure that my component parameters are available for use so I can initialize my component. Most examples I have seen online use Event.INIT attached to loaderInfo. …
shawnc
  • 63
  • 1
  • 6
4
votes
1 answer

PNG file validation

I have a Flash web app which displays user submitted PNG files. Files are uploaded to the server via some API prior to being displayed. I'd like to make sure no "bad" files are served to Flash, where "bad" is entirely unspecific. Is there a way to…
Simon
  • 12,018
  • 4
  • 34
  • 39
4
votes
2 answers

Starling Flash automation

Has anybody of you tried automation of Starling (http://gamua.com/starling/) automation? For ordinary AS3 applications I use Genie (http://sourceforge.net/adobe/genie/wiki/Home/), unfortunately this solution doesn't work with Starling app. Genie…
Robert
  • 313
  • 1
  • 2
  • 8
4
votes
3 answers

AS3 - At exactly 23 empty alpha channels, images below stop drawing

I noticed, while trying to draw large numbers of circles, that occasionally, there would be some kind of visual bug where some circles wouldn't draw properly. Well, I narrowed it down, and have noticed that if there is 23 or more objects with 00 for…
1 2 3
99
100