Questions tagged [actionscript-2]

ActionScript 2.0 is a scripting language used by the Adobe Flash software, introduced in Flash MX 2004.

ActionScript is an object-oriented language originally developed by Macromedia Inc. (now owned by Adobe Systems). It is a dialect of ECMAScript (meaning it has a superset of the syntax and semantics of the more widely known 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.

Flash MX 2004 introduced ActionScript 2.0, a scripting programming language more suited to the development of Flash applications.

References:

https://en.wikipedia.org/wiki/ActionScript#Timeline_by_ActionScript_version

1963 questions
2
votes
1 answer

Procedurally accessing a function's parameter list in actionscript 2.0

I can already get at all of the functions in a class by doing something like the following. for (var member in obj) { if (obj[member] instanceof Function) { var f:Function = obj[member]; ... } } Is there a way to get at a…
fastcall
  • 2,564
  • 4
  • 20
  • 21
2
votes
2 answers

Get xml attribute using actionscript 2.0

I'm new at actionscript 2.0, and I'd like to know how to read a xml attribute's value while iterating the xml. So far, I can get the xml elements, but I can't get this issue to work. Thanks in advance, Brian
Brian Roisentul
  • 4,590
  • 8
  • 53
  • 81
2
votes
3 answers

How can I get the width/height of a loaded swf's stage in AS2?

I'm using MovieClipLoader to load an external as2 swf file into my as2 flash project, and I'm having trouble getting the original stage size of the loaded swf. When I run the following code: var popup:MovieClip = _root.createEmptyMovieClip("popup",…
loopj
  • 1,599
  • 1
  • 15
  • 12
2
votes
1 answer

get a response from javascript in a google's swiffy content? (flash converted to html5)

I am trying to play with google's swiffy to convert as2 content into html5. so far it has been amazing. using getURL, I can make javascript calls. But, will I be able to get sort of response from a server or javascript?
mkto
  • 4,584
  • 5
  • 41
  • 65
2
votes
2 answers

AS2: There is no property with the name

I am using addProperty() to dynamically populate a Class with getters. Here is a snippet of my code that does just that: for (var i in options) { this.addProperty(i, getOption, null); this._optionCount++; } //a little while…
George Reith
  • 13,132
  • 18
  • 79
  • 148
2
votes
1 answer

As2 and flex sdk

Which version of flex sdk should I use to compile AS2 based projects? Or is there an opensource alternative?
Vlad
  • 2,739
  • 7
  • 49
  • 100
2
votes
2 answers

Can an AS2 swf be loaded into an AS3 swf? How can I add this to the stage and interact with it from As3 swf?

I am trying to load a swf written in AS2 into an AS3 swf - using Loader class and listening for Event.COMPLETE. in my onCompleteHandler function i want to add this to the stage so Im trying - addChild(evt.currentTarget.content) ... but I get the…
undefined
  • 5,190
  • 11
  • 56
  • 90
2
votes
6 answers

AS2 Buttons to AS3

How do I convert these AS2 Buttons to AS3? on (press) { nextFrame(); } on (press) { prevFrame(); }
Rashawn
2
votes
1 answer

Why do MovieClipLoader events not fire when loaded into an AS3 wrapper?

While trying to answer this question: Call to an AS2 function from the AS3 container I have come across a roadblock. The setup is an AS3 SWF which loads an AS2 SWF, which in turn loads another AS2 SWF. Communication between the AS3 SWF and the…
shanethehat
  • 15,460
  • 11
  • 57
  • 87
2
votes
1 answer

Create a darker color

I'm developing an aplication that loads a dynamic color from a XML file. In some ocasions, I need the aplication to get a similar but darker color from the hexadecimal I have. Each value would go down 33 in hex (51 in decimal). Something…
Henrique Müller
  • 157
  • 1
  • 2
  • 11
2
votes
2 answers

Available Options to create android app via Actionscript 2.0

I want to know is there any option to create apps for android with AS2 or not? Flex? Adobe AIR?
Amino
  • 563
  • 1
  • 9
  • 26
2
votes
1 answer

Is my class-less AS2 programming close to OOP in spirit?

So I'm a flash game developer trying to make the transition from AS2 to AS3+OOP, only 3 years or so after everybody else did. There's a plethora of free, very helpful material to go through and I've been spending 2-3 days wrapping my head around…
Marcus
  • 136
  • 2
  • 8
2
votes
1 answer

How to attach a number to a movie clip

This is what I am trying to achieve but I do not remember the syntax in AS2 if someone could please help. public function highlightCan() { var glowId = String(this); var newId = glowId.substring(47); trace ("newId : " + newId); new…
SixfootJames
  • 1,841
  • 5
  • 26
  • 42
2
votes
2 answers

Noob question on how to adapt a code in as2 to flash 5

I have this code in as2, it works great, but I need to adapt it to flash5 myName is the variable asociated to a dinamic text on the flash, it shows the hello but never the good bye even if I comment the line myName="hello"; how can I replicate this…
Saikios
  • 3,623
  • 7
  • 37
  • 51
2
votes
2 answers

Flash Actionscript 2 List Component and selecting multiple items without having to hold CTRL while clicking

I am wondering if there is a way to allow users to select multiple items from my AS2 List component without having to hold CTRL while clicking. So they would be able to select/deselect individual items with a single click - effectively togglling the…
undefined
  • 5,190
  • 11
  • 56
  • 90