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

How to use AS3 class in MXML?

How would I use the following AS3 class within MXML? AS3 Class: package mtm { import flash.display.MovieClip; import flash.display.Shape; public class TestClass extends MovieClip { public function TestClass() { var…
Mike Moore
  • 7,228
  • 10
  • 42
  • 63
4
votes
3 answers

Problem finding the difference in days between two dates

I have been using a tidy little routine that I found here to calculate the difference in days between two dates in AS3. I am getting some strange results and I am wondering if any of you inter-codal-mega-lords can shed some light? Why is Q1 of 2010…
James
  • 641
  • 8
  • 17
4
votes
1 answer

Reading server error messages for a URLLoader

I have an URL loader with the following code: public function getUploadURL():void { var request:URLRequest = new URLRequest(); var url:String = getPath(); // Adds time to prevent caching url += "&time=" + new Date().getTime(); …
Rudy
  • 259
  • 1
  • 13
4
votes
3 answers

HTML Special Entity Codes in Actionscript3/Flex

I have a Flex/Actionscript 3 application that displays RSS feeds in a Text element. It strips out any HTML formatting present, but it's not handling HTML special entity codes properly -- it's rendering &mdash as the literal string instead of…
BlairHippo
  • 9,502
  • 10
  • 54
  • 78
4
votes
2 answers

AS3 Function to start download after clicking a button!

I need an actionscript 3 function for my website, that lets people download a document after they have clicked on a button. Couldn't find this anywhere on the net. Thanks! Jennifer
4
votes
3 answers

Learning C++ from AS3

I'm a decent AS3 programmer. I work in games, and that is my reason for programming. While there is much I can accomplish with Adobe AIR, my understanding at this point is that learning C++ is probably a good direction to take. I would learn a lot…
grey
  • 1,150
  • 1
  • 19
  • 35
4
votes
2 answers

How can i stop a mouseevent in javascript?

function pauseScene(evt:MouseEvent):void { stop(); pause_btn.visible = false; play_btn.visible = true; } I have written the above code in Actionscript to stop a mouse event. Now I want to convert that into Javascript so that the scene in flash…
priyanka
  • 197
  • 2
  • 12
4
votes
1 answer

Is it possible to show the download progress of a flash file?

I know how to setup a preloader and I have that working. But when I debug the flash application and simulate a download, it has a blank background until a few seconds have passed. I know it is "downloading" the swf file and I'm wondering if I can…
Ólafur Waage
  • 68,817
  • 22
  • 142
  • 198
4
votes
1 answer

In-App Purchase freshplanet-as3

i am trying to add in app purchase features in my iOS app. i use fresh planet nativeExtension(AirInAppPurchase.ane).while i compiling, it traces "in app purchase is not supported"... Things i used. Adobe Flash pro CS6(AS3). Adobe AIR SDK…
Anand N
  • 41
  • 2
4
votes
7 answers

Coordinates in distorted grid

I have a grid in a 2D system like the one in the before image where all points A,B,C,D,A',B',C',D' are given (meaning I know the respective x- and y-coordinates). I need to calculate the x- and y-coordinates of A(new), B(new), C(new) and D(new) when…
Carsten
  • 593
  • 5
  • 12
4
votes
2 answers

Flex 3 Close UrlLoader throws exception

I am trying to simulate a 'HEAD' method using UrlLoader; essentially, I just want to check for the presence of a file without downloading the entire thing. I figured I would just use HttpStatusEvent, but the following code throws an exception (one…
gmoniey
  • 7,975
  • 4
  • 27
  • 30
4
votes
2 answers

XML As XMLNode in Actionscript/Flex

How do I get the root node of an XML object in Actionscript? One would think that I could say this: var Node:XMLNode = XMLVar as XMLNode; But although XMLVar is of type XML, Node will = null. So how do I do it?
Joshua
  • 6,643
  • 15
  • 55
  • 76
4
votes
1 answer

What does ActionScript mean by 'antiAliasType' in the following context?:

// When I Run The Following Two Lines, I Get The Error Shown Below var B:Button=new Button(); var lineMetrics:TextLineMetrics=B.measureText('Hello World'); // TypeError: Error #2007: Parameter antiAliasType must be non-null. From…
Joshua
  • 6,643
  • 15
  • 55
  • 76
4
votes
3 answers

Implicit vs explicit getters/setters in AS3, which to use and why?

Since the advent of AS3 I have been working like this: private var loggy:String; public function getLoggy ():String { return loggy; } public function setLoggy ( loggy:String ):void { // checking to make sure loggy's new value is kosher etc... …
James
  • 641
  • 8
  • 17
4
votes
2 answers

drag-and-drop problem in a Tilelist using an ItemRenderer

in my flex application, I created a Tilelist. In this Tilelist, I am using an ItemRenderer to create a box consisting of an image and an VSlider in each tile. The tile need to be dragable when you click on the image, but not dragable when you slide…
Blizter
  • 177
  • 4
  • 10