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

Adobe AIR 512x512 Icons?

correct me if i'm wrong, but Adobe AIR currently only allows applications to have maximum size icon of 256x256. is there a way to supply an application with a 512x512 icon? will 512x512 icons be supported in the new upcoming Adobe AIR 2? update: …
Chunky Chunk
  • 16,553
  • 15
  • 84
  • 162
13
votes
6 answers

Clear a Flex ActionScript Dictionary

Is it possible to clear a Flex flash.utils.Dictionary? I have a Dictionary that I want to clear (remove all elements).
Steve Kuo
  • 61,876
  • 75
  • 195
  • 257
13
votes
1 answer

How can I disable horizontal scrollbars in Flex components?

I have a few GridItem components that gets filled with dynamic data. Sometimes this data longer than the GridItem's fixed width, causing the GridItem to get a horizontal scrollbar. How can I disable this (I'm assuming you can...) Is there a general…
mmattax
  • 27,172
  • 41
  • 116
  • 149
13
votes
4 answers

Best Flash Audio/Video + Interactivity server?

I'm looking for suggestions on Flash realtime servers. Currently, we use a combination of Moock's Unity and Red5, but there are a couple problems. First, we are moving to AS3, and Unity only supports AS2. Secondly, Red5 is pretty flaky for us, we'd…
davr
  • 18,877
  • 17
  • 76
  • 99
13
votes
4 answers

Flex: does painless programmatic data binding exist?

I've only done a bit of Flex development thus far, but I've preferred the approach of creating controls programmatically over mxml files, because (and please, correct me if I'm wrong!) I've gathered that you can't have it both ways -- that is to…
Rytmis
  • 31,467
  • 8
  • 60
  • 69
13
votes
5 answers

Why use custom events instead of direct method calling?

I'm new to programming and I've been checking a lot of game coding tutorials. I've noticed that on most of them they use custom events to trigger methods instead of calling a method directly. What's the reasoning behind this practice? Why aren't…
NPN328
  • 1,863
  • 3
  • 27
  • 47
13
votes
4 answers

Disable Windows 8 edge gestures/hot corners for multi-touch applications while running in full screen

I have a full screen AS3 game maby with Adobe AIR that runs in Windows 7. In this game it may not be easy to exit (think about kiosk mode, only exit by pressing esc and enter a password). Now I want this game to run in Windows 8. The game is working…
Ron van der Heijden
  • 14,803
  • 7
  • 58
  • 82
13
votes
5 answers

How can I find the type of a var/name in Actionscript3?

Erm, that's it!...
user84643
  • 379
  • 2
  • 5
  • 15
13
votes
4 answers

Build Android native library with Adobe Air

I'm currently working on an Android application built with Adobe Air sdk, in AS3. I was wondering if it's possible to compile a kind of UI library that I can import in a Android native application (Java). Basically, I would like to build my UI with…
JBS
  • 269
  • 2
  • 10
13
votes
11 answers

Howto embed images in Actionscript 3 / Flex 3 the right way?

I'm creating a game where a lot of images are being used in Actionscript / Flex 3 (Flash). Now that I've reached the designer stage, I have to work out a structural way of using embedded images (which have to be manipulated with rotation, color,…
Tom
  • 8,536
  • 31
  • 133
  • 232
12
votes
1 answer

AS3 Casting one type to another

I have a base class called Room and a subclass called Attic, and another called Basement. I have a controller class that has an attribute called CurrentLocation which is type Room. The idea is I want to be able to put Attic or Basement in that…
Bruce Van Horn
  • 613
  • 2
  • 6
  • 14
12
votes
1 answer

Actionscript 3: check if string contains another string

How can I check if a string contains another string in flash / Actionscript 3 ? Thanks for help.
Bizboss
  • 7,792
  • 27
  • 109
  • 174
12
votes
5 answers

Are there any benefits when using final in AS3?

I've tried to make a habit recently of using the final keyword wherever logical, like any classes that should never be extended. I've done this purely because I like to maintain a strict and concise coding style. Aside from the obvious advantages in…
Marty
  • 39,033
  • 19
  • 93
  • 162
12
votes
4 answers

How to vertical align a TextField in AS3

I´m trying to vertical align some text in a Monoline TextField in AS3. Not sure if this can be done with TextFormat, but I don´t think so. I´ve looked for a solution but nothing really helpful. Any help is welcome. Thanks!
Hugo A
  • 413
  • 2
  • 6
  • 23
12
votes
1 answer

How to Auto-resize font size to fit text box height / width?

I am trying to have text automatically size its font to fill an entire text component. My current approach is to set font size as a function of the number of text characters and the text components height and width but I can't find the right…
Brandon
  • 6,832
  • 11
  • 38
  • 50