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

Causing images to appear/disappear on button click

I am attempting to use actionscript 2.0 in order to hide an image and cause another image to become visible based on a button click, I can't seem to get anything to work though I just get errors and nothing happens orangeButton.onRelease =…
Hello World
  • 21
  • 1
  • 3
0
votes
1 answer

Flash CS5 & AS2: Can't add actionscript to a button

I am having trouble adding actionscript inside of a button. The publish settings are set to AS2. The actionscript window doesn't let me type anything inside of it. The window says "Current selection cannot have actions applied to it." Any ideas why…
Dustin
  • 4,314
  • 12
  • 53
  • 91
0
votes
1 answer

Printing movieclip with margin

Could someone help me to print a movie clip with custom margin for the paper(A4). I figured the as2 for print.How could I set margin for the print.? btnPrint.onPress = function() { var pj = new PrintJob(); var success = pj.start(); if (success) { …
Fasil
  • 1
  • 1
0
votes
1 answer

how to pass string as variable actionscript 2

Say I have these variables var word1 ='wordA'; var word2 ='wordB'; var word3 ='wordC'; var word4 ='wordD'; var word5 ='wordE'; and I have this loop for (var i=1; i<6; i++) { // make word + i = ''; (an empty string) } how would I go about doing…
user2817200
  • 1,097
  • 2
  • 18
  • 38
0
votes
1 answer

FLASH WRAPPER (INSTALLATION WRAPPER)

Could anyone suggest the best methods and software for wrapping my swf so it can install on a mac and PC? I'm wanting to distribute flash project to run from the desktop with all the icons and bells and whistles etc. Thanks for your help. Regards J
user3082874
  • 61
  • 2
  • 11
0
votes
2 answers

Flash As3 Window resize issue

I have a flash script, i added one move clip via addChild, my movie area is 500x400 and the movieClip i aligned to center. But when am trying to set the size with in browser its not aligned to center. all my calculations are getting wrong. package…
coderex
  • 27,225
  • 45
  • 116
  • 170
0
votes
1 answer

How do I change a fill colour using ActionScript 2?

I have a very simple .fla file. There's a shape on the stage with a fill, and I want to change its colour when the movie starts. Googling seemed to suggest: myColor = new Color(myClip); myColor.setRGB(0xFFFF00); but it didn't seem to work. Any…
izb
  • 50,101
  • 39
  • 117
  • 168
0
votes
1 answer

Actionscript 2 Play animations at random

I have several animations called mc_star_anim, each one is of a star and in each instance is a simple tween which makes it brighter, I have about 20 of these on the page, all with the same name, all tweens start at the same time, so at them moment…
snookian
  • 863
  • 6
  • 13
  • 35
0
votes
1 answer

Flash Action script 2 - Kliment random script

I am using the red flash ecard on this site http://www.flashmint.com/wp/2010/12/free-flash-christmas-e-cards-for-everyone/#more-2206 to send out to some client, but I wanna change some of the things like the colour so I have loaded it up changed the…
snookian
  • 863
  • 6
  • 13
  • 35
0
votes
1 answer

Resizing SWF document size in Flash, flips all the animations

I'm building an animated ad with [Flash] CS6 for adwords, therefore I need the same ad in different dimensions. I find out that clicking the wrench icon within Properties (image 1) I would be able to change the size of the document and also resize…
Dante Pereyra
  • 129
  • 1
  • 1
  • 7
0
votes
1 answer

flash action script 2: getUrl('url',_mylevel) - when using a specific level, swf is not loaded

i want to load another swf that i build and use it's functions. but it seems that when i use getURl('url','_mylevel') it doesn't load the flash file and i get no error. only when i use getUrl('url','_blank') it opens the browser with that url. i…
ufk
  • 30,912
  • 70
  • 235
  • 386
0
votes
2 answers

Flash: Prevent images coming from cache?

We created a simple Flash animation that reads from an XML file in another server. This XML file has tags with the path of several images that will be displayed in the Flash. The xml tag looks like…
user2520528
0
votes
1 answer

Parameter sourceBitmapData must be non-null

I am trying to copy the pixels of a bitmap data. but I keep getting the following error Parameter sourceBitmapData must be non-null. it happens in the method drawImage. exact after my trace that says "got canvas data". …
numerical25
  • 10,524
  • 36
  • 130
  • 209
0
votes
1 answer

Actionscript 2.0: inputting number, add 1 to it, output number

I'm using Actionscript 2.0 because I just need very quick little bits of code to insert into SmartBoard activities. I'm trying to do something soooooooo simple, and I can't believe there isn't a simple solution to it! Basically I want to have a…
0
votes
1 answer

AS2: Getting data from a dynamic text field

I'm trying to make a quiz for my students. I'm going to use it through a projector and the students will raise their choice cards to answer the questions. So there's a button in each frame of question to show the correct answer after the students.…
IceFlame
  • 3
  • 2