Questions tagged [actionscript]

ActionScript is a scripting language used to create Rich Internet Applications (RIA), mobiles applications, web applications, etc. It is the main language for Flash and Flex.

ActionScript is an object-oriented programming language originally developed by Macromedia (now dissolved into Adobe Systems). Its latest version is ActionScript 3.

It is used to create web applications (including RIAs), desktop applications and mobile applications. The web target is served using the Adobe Flash Player runtime, while the desktop and mobile targets are served using the Adobe AIR (previously Adobe Integrated Runtime).

Popular IDEs are Adobe Animate (rebranded from Adobe Flash), Adobe Flash Builder, FlashDevelop, IntelliJ and others.

Some of the popular compilers are Adobe Animate, Apache Flex, Haxe, OpenFL and others.

Adobe Scout and FlashFirebug can be used to debug the Adobe AIR and the Adobe Flash Player runtimes.

9141 questions
1
vote
2 answers

Setting a Spark list to 100% height inside of a TabbedViewNavigatorApplication

I'm trying to set a Spark list control to 100% height of a View inside of a TabbedViewNavigatorApplication. Using this I can't seem to get the list to fit…
francis
  • 5,889
  • 3
  • 27
  • 51
1
vote
3 answers

Dealing with many objects

I am making a strategy game and came across a kind of problem. Basically, I don't know how to deal with the dynamic creation of the units I need. Should I use some big switch statement or is there a more ideal solution?
MKII
  • 892
  • 11
  • 36
1
vote
4 answers

Know when a hyperlink within a Text Field is clicked?

In Flash, is there any event when the user clicks a hyperlink in a TextField?
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
1
vote
3 answers

How can I control the depth (layer position) of a Flash Video?

I would like to place a video object above one movieClip instance ("mc"), but below another movieClip instance ("mc_top"). I instantiated the _root.flashVid object by dragging a "New Video..." from the Library to the stage, and giving it the…
Matthew Wensing
  • 153
  • 1
  • 2
  • 9
1
vote
2 answers

Flash syntax error

I'm a newbie with flash, what I'm trying to do is make the background scroll with my mouse...but this is giving me a syntax error...where is the error coming from? var movieWidth:Number = stage.stageWidth; menuWidth = nav1.width; nav2.x = nav1.x +…
James Gu
  • 1,382
  • 4
  • 26
  • 39
1
vote
2 answers

int(blah) giving different answer from (blah) as int

Newbie ActionScript 3 question: why does (Math.sqrt((r * r - (r - i) * (r - i)) as Number) * 2) as int give me a different result from int(Math.sqrt((r * r - (r - i) * (r - i)) as Number) * 2)
Archagon
  • 2,470
  • 2
  • 25
  • 38
1
vote
2 answers

Receiving FlexEvent.SHOW events in a ViewStack's grandchildren

The direct children of a ViewStack receive a FlexEvent.SHOW once the respective child view is shown. Unfortunately, the event information is lost at deeper child levels so that the grandchildren of the ViewStack do not receive the SHOW event. Which…
Thilo-Alexander Ginkel
  • 6,898
  • 10
  • 45
  • 58
1
vote
1 answer

AS3 Shoutcast stream doesn't work on server

There's a code that works while I'm trying it in FLASH. It streams shoutcast : var soundOBJ : Sound = new Sound(); soundOBJ.load(new URLRequest("http://176.9.42.221:8000/")); soundOBJ.play( ); When I publish it and deliver on server, shoutcast…
1
vote
0 answers

How can I generate a SWC from asset files dynamically?

Lets say you have 3 swf files in a directory: /game/assets/ 1.swf 2.swf 3.swf What I need to do, is package these up into a SWC File, and then move that SWC file to the libs/ directory. I plan to use ant, so this step must always occur before the…
user1059939
  • 1,613
  • 2
  • 20
  • 37
1
vote
1 answer

Dynamically Get a Variable from HTML in Flash/AS3

I have a case where I have a "drop-down box" in an HTML webpage with some JQuery calculations, looks something like this: