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
212
votes
18 answers

What is the best way to stop people hacking the PHP-based highscore table of a Flash game

I'm talking about an action game with no upper score limit and no way to verify the score on the server by replaying moves etc. What I really need is the strongest encryption possible in Flash/PHP, and a way to prevent people calling the PHP page…
Iain
  • 9,432
  • 11
  • 47
  • 64
28
votes
4 answers

Test if an object is defined in ActionScript

In ActionScript, how can you test if an object is defined, that is, not null?
Matthew Shanley
  • 1,091
  • 2
  • 11
  • 14
19
votes
6 answers

Cross Domain ExternalInterface "Error calling method on NPObject"

I am trying to enable communication between Javascript and Flash via ExternalInterface across domains. The Javascript works great when it is located on the same domain as the SWF. But in one case, the HTML resides on domain A, the javascript and the…
Josh
  • 10,961
  • 11
  • 65
  • 108
12
votes
7 answers

can an actionscript function find out its own name?

given the following function A(b:Function) { } If function A(), can we determine the name of the function being passed in as parameter 'b' ? Does the answer differ for AS2 and AS3 ?
Rotem Hadary
10
votes
3 answers

Where's the HXML docs?

I've looked all over the Haxe Flash Command-line compiler website but was unable to find any detailed documentation of the HXML files (scroll down to the "Changing SWF properties" section) which describe the compile. Anybody know of a reference…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
8
votes
3 answers

Best practice for ActionScript 2 events - is there a way to simulate ActionScript 3-style events?

I love the AS3 event model - it helps keep my code clean and lossely coupled. When I used to work on AS2 projects, my code was not so neat and classes were more reliant on one another. Due to AS2's strange handling of scope I never really got on…
Iain
  • 9,432
  • 11
  • 47
  • 64
8
votes
5 answers

My computer got stupid. 0 + 20 = 19.921875!!! Help me!

You know it's bugger-all when your computer can't get a sum right! I have not the slightest idea why this is happening: _root.attachMovie("clippy","aClip",_root.getNextHighestDepth()); trace("alpha 1 = "+aClip._alpha); aClip._alpha =…
navand
  • 1,379
  • 1
  • 16
  • 20
8
votes
4 answers

what is dispatchEvent in Flash AS3?

Hi all i want to know what is dispatchEvent in AS3. I didn't get any idea while Googling it. :( So please help me Edit 1: public static const SET_VOLUME:String = "setVolume"; private function onclick(evt:MouseEvent):void { …
coderex
  • 27,225
  • 45
  • 116
  • 170
6
votes
3 answers

What is the difference between ActionScript 2.0 and ActionScript 3.0

What are the main differences between the versions?
Ramu
  • 61
  • 1
  • 1
  • 3
6
votes
2 answers

MouseWheel not working when published movie has wmode="transparent"?

I'm experiencing a bug with a published flash movie. When I embed the movie in an HTML page (with SWFObject 2.1), and assing it the wmode param value of 'transparent', all my functions based on the MouseWheel event stop working. The movie is based…
SolidSmile
  • 3,206
  • 4
  • 21
  • 24
6
votes
1 answer

Unable to do copy/paste on textfields in loaded SWFs in AIR

My AIR app is loading an SWF file which contains a text field for input. I can type into the text field but copying and pasting is broken. When I try to paste something using the keyboard shortcut, the text field becomes like this: (this is not a…
Pleo
  • 309
  • 1
  • 11
5
votes
1 answer

MovieClip vs Sprite in Actionscript 3.0

What more can be done if I extend MainClass with MovieClip rather than Sprite. I know that MovieClip extends Sprite and it has Timeline defined under it. but still how it will be usable to me by MovieClip ? package { import…
Umesh Patil
  • 10,475
  • 16
  • 52
  • 80
5
votes
2 answers

Empty xml response in flash

I'm reversing engineering a old flash game and on login process a POST request is send to server. ActionScript2: req.username = inicial.login_mc.username_txt.text; req.password = inicial.login_mc.password_txt.text; xmlResponse = new…
user6513042
5
votes
3 answers

How to control a flash film with JS/jQuery

i have a project where i have a movie.swf (AS2) and some buttons with js/jQuery in the html part. Now i want the buttons to control the flash. For Example pressing Button1 would do a gotoAndPlay(1) and Button2 gotoAndPlay(150) Button3…
kalimero
  • 107
  • 1
  • 3
  • 7
5
votes
4 answers

Opening a swf file from within another swf with different than default values

Hopefully this won't be taken as asking the same question twice... So I'm working on a Flash website (in AS2) which has an outer index swf which loads sub swf files using loadMovie("subfoo1.swf", placeToShowSwf). These in turn load an xml file which…
mgbennet
  • 622
  • 7
  • 16
1
2 3
99 100