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
0
votes
1 answer

AS2 Attached movie clip over everything

I'm having trouble in as2, I'm using var ThisMC:MovieClip = this.AttachMovieClip("Duck"+rnd_Duck + "_mc", "target" + _global.cDepth, _global.CDepth) This Action is on the Actions layer, first frame bottom of timeline, yet the ducks still…
Coppyhop
  • 23
  • 6
0
votes
1 answer

Actionscript old script _root.link

About 4 years ago I used a flash template with action script to design a website. When it came to navigation from movieclip to movieclip in frame s1 the following code was used: gotoAndPlay("s1"); } on (releaseOutside, rollOut) { …
Benjamin Jones
  • 987
  • 4
  • 22
  • 50
0
votes
1 answer

Flash AS2 getting button with dynamic action into movieClip class

Note this has to be done in ActionScript 2 due to my audience player restricted to flash player 8. I'm trying to build a simple class that extends the base Movieclip class. I'm then applying this class to a movieclip in the library using the…
Darren Crabb
  • 570
  • 2
  • 10
0
votes
1 answer

as2 tweening and consistent speeds

I'm tweening a movieclip from startX to finishX. The value of startX varies but finishX is a constant. But as the startX increases in value the animation appears to be quicker. How do I adjust the speed of the tween to ensure a consistant speed…
Dave
0
votes
1 answer

changing basic actionscript 2.0 code to actionscript 3.0

Okay so I have 10 frames, and on each frame, there is actionscript code which just says stop(); there are also 9 buttons on the frames, ordered top to bottom. So when the top most button is rolled over, it should lead to frame 2 (since frame 1 is…
SilentDev
  • 20,997
  • 28
  • 111
  • 214
0
votes
1 answer

Finding correct scope of an Object for a callback

I'm working on writing a tweening class in as2 that has a callback variable and I can't seem to find a good way to get the scope without specifically passing in a scope variable as well. This tweening class needs to work in classes as well as on the…
Jordan
  • 1,233
  • 2
  • 12
  • 32
0
votes
1 answer

Actionscript 2.0 How to get keyPress working for number 1

I'm trying to get on (keyPress "<1>") working for my calculator so when I press one, the number one appears in the text box. But there is no keyPress "<1>" for the number one, I heard there is something called KeyCode is needed, and I found the…
0
votes
1 answer

Random letters instead of numbers in dynamic text AS 2.0

So I'm trying to program a game using flash, and it's my very first time and I can't get something to work. In the game, a ball will float across the screen and if you click on it you get 2 points. Except when I test it, the first time I click on…
0
votes
1 answer

Return value from actionscript 2 function

I have this function structure: function doStuff():Boolean { variables = new LoadVars(); variables.anything = "xxx"; variables.onLoad = function(success) { if (success) { doStuff; results = true; }…
Jairo Filho
  • 342
  • 5
  • 17
0
votes
1 answer

Flash as2 bullet removing enemy?

I am trying to make a simple as2 shooter but when I try to shoot an enemy the bullet just go thru it and doesn't remove the enemy. I tried to put if (hitTest(_root.vihollinen)==true ){ _root.vihollinen.remove(); …
0
votes
1 answer

What's the best way to resize an FLV without lowering the video quality?

I'm making a flash site. And there's a video playing, and it moves around and changes size as the user navigates around the page. I notice when it gets small, the video quality gets bad on it. Any ideas on how to retain its quality, and resize it in…
Trip
  • 26,756
  • 46
  • 158
  • 277
0
votes
1 answer

ActionScript 2.0 to affect every instance of button

Well I am an absolute begginer on ActionScript, and I am having a doubt here: I need to add some code to my button symbol, created with F8 shortcut (called butplay). I need this code to be on every instance of the button, and there will be lots of…
Gustavo Silva
  • 315
  • 2
  • 4
  • 11
0
votes
1 answer

Continuous audio for Flash CS5 (Actionscript 2.0)

I made a menu which has multiple SWF files. In the first movie, the audio is playing but in the second SWF, my audio is not playing. Is there any way to use only one audio for multiple SWF files without putting the audio on every each one of them?
Evil Mouse
  • 19
  • 2
  • 10
0
votes
1 answer

Making a screen for Flash CS5

I'm making my own gallery which a a collection of SWFs. So far, I've manage to load my swf files in my movieclip, but the problem is that it doesn't look like they are showing in the 'screen' I made. Is there any way to use my 'screen' movieclip…
Evil Mouse
  • 19
  • 2
  • 10
0
votes
1 answer

Action Script 3. How to make floor on the game stage?

I'm creating simple flash game, I just made character controls (move left, right and jump). When I add gravity my character falling down from the stage. I have painted floor, imported to library, but I don't know how code should looks like. My…
user1816133
1 2 3
99
100