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
25
votes
9 answers

how to make text line break in flex textarea

I have a string var s:String = "This is a line \n This is another line."; this.txtHolder.text = s; //.text has \n, not a new line and i want to put it into a text area, but the new line character is ignored. How can i ensure that the text breaks…
Cameron A. Ellis
  • 3,833
  • 8
  • 38
  • 46
25
votes
2 answers

How to open GPS settings an android device?

I am making GPS android app (with air for android) and what I want is if GPS is off I want to open GPS settings on device or switch GPS on but I don't know how. I want to do it in AS3 or open android settings in Java. Thanks for help!
Tinko
  • 502
  • 1
  • 4
  • 14
25
votes
5 answers

To pass a parameter to event listener in AS3 the simple way... does it exist?

Expected / pseudo example: stage.addEventListener(MouseEvent.CLICK, onClick.someWayToPassParameters(true, 123, 4.56, "string")); function onClick(e:MouseEvent):void { trace("Received " + someWayToRetrieveParameters().b/i/n/s + "."); } For many…
user985358
24
votes
7 answers

Flex Warning: Unable to bind to property 'foo' on class 'Object' (class is not an IEventDispatcher)

I've got an object that contains a dozen or so fields I want to bind to form elements, so that I can use that object to send the data back to the server to be saved. Definition of my container object: private static const emptyLink:Object = { …
Adam Tuttle
  • 19,505
  • 17
  • 80
  • 113
24
votes
5 answers

How to pass arguments into event listener function in flex/actionscript?

Since when using sql lite if you try and do a function at the same moment it throws an error, im just trying to make a function that will check if its executing, and if it is try again in 10 milliseconds, this exact function works fine if i dont…
brybam
  • 5,009
  • 12
  • 51
  • 93
24
votes
1 answer

Setting a default skin for a custom component in Flex 4

How do you set the default value of skinClass for a custom component in Flex? I've extended the DropDownList with my custom component, but I would like to specify a default skin to go with it instead of always setting the skinClass value for each…
Anthony -GISCOE-
  • 618
  • 5
  • 12
24
votes
7 answers

Actionscript 3 - Fastest way to parse yyyy-mm-dd hh:mm:ss to a Date object?

I have been trying to find a really fast way to parse yyyy-mm-dd [hh:mm:ss] into a Date object. Here are the 3 ways I have tried doing it and the times it takes each method to parse 50,000 date time strings. Does anyone know any faster ways of doing…
Matt MacLean
  • 19,410
  • 7
  • 50
  • 53
24
votes
3 answers

Different repositories for each module in intellij IDEA

I'm not sure how to select a different git repo for each different module I have in my IDEA project, I'm not seeing any option for that, all the git options seem to only relate to one git repo. Is there a way to differentiate them?, so: (All inside…
Artemix
  • 8,497
  • 14
  • 48
  • 75
23
votes
7 answers

Getters/setters in Java

I'm new to Java, but have some OOP experience with ActionScript 3, so I'm trying to migrate relying on stuff I know. In ActionScript 3 you can create getters and setters using the get and set keywords, meaning you create a method in the class and…
George Profenza
  • 50,687
  • 19
  • 144
  • 218
23
votes
4 answers

Why doesn't ActionScript have "generics"?

Can anyone tell me why ActionScript 3, a statically typed language, doesn't have generics? Is it too much work? A historical thing? Is there some way to "fake" it that I haven't picked up yet? Edit: thanks a lot for the answers! The Vector class is…
David Wolever
  • 148,955
  • 89
  • 346
  • 502
23
votes
1 answer

Embedding metadata time limit for Flash Builder 4.5.1mobile project?

I am working on a project that requires me to embed metadata on the fly with a recorded stream from a webcam. I am utilizing Flash Builder 4.5.1 creating a mobile project. I am using a simple netStream.send function to set the metadata I want.…
Nikeah
  • 231
  • 1
  • 2
23
votes
7 answers

How can I prevent text displacement for some foreign language fonts?

I have a multilingual project (currently 13 languages), which uses many different font variations of "Helvetica Neue", mostly bold, condensed and regular cuts from the LinoType Pro font set ( which includes western european characters) and the same…
23
votes
2 answers

Get the "key" of an object in Actionscript-3

Given an Object: myObj = {key : 'value'} How do I get the key?
Derek Adair
  • 21,846
  • 31
  • 97
  • 134
23
votes
3 answers

Actionscript 3.0 String With Format?

How can i format a string with supplied variables in AS3? //vars var myNumber:Number = 12; var myString:String = "Months"; var myObject:MovieClip = year; //string myString.txt = "One (?) consists of (?) consecutive (?)", string(myObject),…
Chunky Chunk
  • 16,553
  • 15
  • 84
  • 162
23
votes
8 answers

AS3: How to convert a Vector to an Array

What's the nicest way to convert a Vector to an Array in Actionscript3? The normal casting syntax doesn't work: var myVector:Vector. = new Vector(); var myArray:Array = Array(myVector); // calls the top-level function Array() due to the…
Dan Homerick
  • 4,118
  • 7
  • 28
  • 30