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
4
votes
3 answers

How to know if actionscript 1, actionscript 2, or actionscript 3?

I don't have a specific code sample, but is there a general way to guess what version of Actionscript the code snippet is: 1 or 2 or 3? I read somewhere that if it's code in the timeline, it's considered Actionscript 1.
perez
  • 145
  • 2
  • 4
4
votes
2 answers

How does AMF communication work?

How does Flash communicate with services / scripts on servers via AMF? Regarding the AMF libraries for Python / Perl / PHP which are easier to develop than .NET / Java: do they execute script files, whenever Flash sends an Remote Procedure Call? or…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
4
votes
1 answer

can't access stage in flash as3

I just switched to AS3 I am having problem accessing variables of the timeline from MovieClips. In AS2 we used to do _root.myvar, I checked for references, I found _root is root now in AS3. I have a variable isValid on the root timeline and My code…
user1922841
3
votes
1 answer

Simple AS2 problem

I have: (1) this["btn_a"].onRelease = function (){ this._parent[up_mc]._visible = true; this._parent[add_mc].num = random(10)+190; trace(this._parent); } and I change it to (2) function click1(){ this._parent[up_mc]._visible =…
ByulTaeng
  • 1,269
  • 1
  • 21
  • 40
3
votes
2 answers

AS2: call method when new property is set

I have a dynamic Class and what I would like to do is call a method everytime a property is appended to the class during run-time. For example: dynamic class Example { public function Example() { trace("New instance created"); …
George Reith
  • 13,132
  • 18
  • 79
  • 148
3
votes
3 answers

Whats the difference between void and Void in AS3?

I noticed that i can set a return type on a function to 'Void' aswell as 'void' and just wondered if there was and benefit of either?
rorypicko
  • 4,194
  • 3
  • 26
  • 43
3
votes
1 answer

Why would a function state "myVariable = myVariable;"?

In the course of working with some as2 code from our dev team, I came across a baffling handful of statements where variables were set to themselves. Is there some reason for such a redundancy that I'm not thinking of? I'm talking literally like…
josh
  • 339
  • 1
  • 2
  • 6
3
votes
2 answers

Referencing movie clip class instances immediately in Actionscript 2

Here's a really frustrating Actionscript 2 problem I have with movie clips associated with classes that are created on the timeline and need to be referenced in code right away: -- I have a movie clip "C" in my library associated with a class…
DivideByHero
  • 19,715
  • 24
  • 57
  • 64
3
votes
2 answers

External interface and Internet Explorer 9 issue

Boy-oh-boy do I hate external interface. I have a video player that utilizes external interface to control the flash object and to allow the flash object to pass messages to the same javascript. For a time it worked well in all browsers. Then a…
3
votes
3 answers

Comma format a number

I need to format numbers with commas as thousand seperators, for example: 1234 = 1,234 1234.50 = 1,234.50 12345.60 = 12,345.60 123456.70 = 123,456.70 1234567.80 = 1,234,567.80 etc etc This needs to work for numbers with decimal values or…
Paolo Broccardo
  • 1,942
  • 6
  • 34
  • 51
3
votes
1 answer

AS2 receive Java

First....I must confess I know very little about AS2 as only became aware of its existence today!. However, I need to create a Java web application which can accept a data transfer via AS2. Typically I use Spring Boot for web applications, but can…
Jill
  • 95
  • 8
3
votes
2 answers

Flash player doesn't allow script

I am a little new to flash and ActionScript and I have this persistent problem with security I think. The problem is that. I try to use code for a button in ActionScript 2.0 (i must use 2.0) on(rollOver) { …
Olga
  • 1,648
  • 1
  • 22
  • 31
3
votes
1 answer

Why can't I access a combobox in a callback method in Flash CS4?

Check out this code: import mx.core.View; var accordianPane = my_acc.createSegment("mcElectrical", "panel0", "Electrical", "payIcon"); accordianPane.comboBox.addItem("test"); This adds an item with label "test" to a combo box in a movie clip. It…
Shawn
  • 19,465
  • 20
  • 98
  • 152
3
votes
1 answer

Broken toggle-comment in Textmate

I'm having a problem with the Toggle Comment command ("Comment Line / Selection") in TextMate for Actionscript 2 (I know, I know). I've tried completely stripping the language set down to isolate the issue, and tried walking through the Ruby, both…
umop
  • 2,122
  • 2
  • 18
  • 22
3
votes
5 answers

Load AS2 SWF Into AS3 SWF and pass vars in URL

I've got an AS3 SWF that I'm going to be loading other SWFs into. These child SWFs all take a single parameter on the URL. I can't seem to get it working when loading an AS2 child, and it needs to be able to handle both. so I have var…
nerdabilly
  • 1,248
  • 4
  • 15
  • 34