Questions tagged [actionscript-3]

Adobe ActionScript is the open source multiparadigm language supporting object oriented, imperative, structural and functional programming and used within Adobe Flash Platform. ActionScript 3 is a dialect of ECMAScript, targeted for Adobe Flash Player 9 and higher.

Adobe ActionScript is the open source multiparadigm language supporting object oriented, imperative, structural and functional programming and used within Adobe Flash Platform. ActionScript 3 is a dialect of ECMAScript, targeted for Adobe Flash Player 9 and higher.

References:

321 questions
5
votes
2 answers

How can I disable the forward/back buttons in AS3?

How can I disable the Flash player forward and back button in AS3? These buttons make it possible to cheat in my game by moving from level to level.
5
votes
1 answer

How to add a movieclip to the stage then make it move down?

I am making a game where i want to spawn zombies then make them move down the screen. I also want to have multiple on the screen at once. I have tried multiple ways now but none of them have worked. Here is my code if ((zombie == 1)||(zombie ==…
user2130844
  • 55
  • 1
  • 6
3
votes
1 answer

In AS3, is it necessary to remove the children from a parent who is also being removed?

My point is this: addChild(parentMC); parentMC.addChild(child1); parentMC.addChild(child2); If I want to then remove parentMC from the current container, is it necessary to also remove child1 and child2 from parentMC in order to properly clean-up?…
EFrog
  • 131
  • 1
3
votes
1 answer

Detect Car Wheel Position?

I have an image: I want to detect wheel empty position dynamically, is it possible? If not possible please let me know, my work involves PHP/XML/Actionscript where actionscript get image url from xml generated by PHP, User uploads car image…
3
votes
3 answers

Blitting in AS3 with anti-aliasing?

What would be the fastest method for doing anti-aliasing for a flash game that is drawn via blitting to a BitmapObject? A method I thought of would be to make games stage smaller than the BitmapObject that the game is drawn to, and then somehow…
AttackingHobo
  • 7,091
  • 4
  • 36
  • 48
3
votes
1 answer

how to draw a dashed curved line to a point in as3?

How can I draw a dashed curved line to a x,y point in as3? Basically I'm creating a game where you have a turret, and I want the arc the turret would fire a projectile along to be displayed as a dashed/dotted line along the arc to wherever the mouse…
Phil
  • 621
  • 1
  • 5
  • 18
3
votes
1 answer

Let enemies blink when hit

I would like to know how can I go about with an approach, that lets the enemies blink after they are hit with a shot/particle? Is it better to pre-render colored enemies into an array for a better performance or is it just okay coloring them during…
drpelz
  • 239
  • 1
  • 9
2
votes
1 answer

What is a good approach for making a relationship between the HUD and Environment?

What is an elegant / common way to build a relationship between the game scene / environment / world and the HUD that usually sits on top of it? I have thought about this for a while, and though there are ways to accomplish this that are easy to…
Marty
  • 49
  • 6
2
votes
2 answers

Tiny Wings - Placing items

I'm currently developing a Flash game like 'Tiny Wings'. I have a lot of work done, but i'm currently working on placing the items ( coins and obstacles ) on the terrain. My player it is moving on a auto-generated terrain (based on Emanuele…
2
votes
1 answer

Rotating sprite to face cursor

Given the sprites X and Y values, and the mouses X and Y values, how can I make the sprite face the mouse cursor? I tried doing this in my move method which I found in another SO question: private function move(mousePosX:Number,…
Joe Simpson
  • 23
  • 1
  • 4
2
votes
2 answers

Best way to create neon glow line effect in AS3?

What's the best way to create a neon glow line effect in Flash AS3? Say similar to what's going on in the game gravitron360 on the xbox 360? Would it be a good idea to create movieclips with plain lines drawn in them and then apply a glow filter to…
Phil
  • 621
  • 1
  • 5
  • 18
1
vote
2 answers

Animate/Interpolate and wait for completion.

I'm implementing a blackjack game in flash and so far the logic is fine but there is no animation for the cards so they just appear and disappear which doesn't look very pleasing to the eye. I want to add some animations for when cards are dealt…
Jordan
  • 11
  • 1
1
vote
3 answers

Target tracking with a small delay (actionscript 3.0)

I'm having trouble thinking of a good method to track my character with an enemy attack. Of course, I don't want the attack to track my character's current position; I want it to track where the character was about 1 second before (so you can move…
Spaderdabomb
  • 202
  • 2
  • 9
1
vote
1 answer

Placing items randomly in a dynamically generated terrain

I'm currently working on a 'Tiny wings' like game. I've already asked about the angle of the items in curved lines and i solved (thank you for responses),i'm currently placing the items in random positions, but the terrain it's dynamically and i…
1
vote
2 answers

How would you recommend I get started with ActionScript 3?

I wanted to make Flash games so I bought the book "Flash Games Development with AS3." I did the 'hello, world' program by trace and addChild (or something like that). But the problem was, instead of understanding what I was writing, I was just…
1
2 3