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.

learn more… | top users | synonyms (1)

1
vote
1answer
235 views

How can I spawn a sprite based on a condition after the game starts?

How do I spawn a sprite anytime later in the game when the game starts? I'm using FlashDevelop with Flixel. I did try it in override public function create(): void. It works only in the beginning. I ...
0
votes
0answers
9 views

display on stage corresponding text question from array with randomly selected audio from library

I designed a quiz in an animation (at three diff stops in the application) i have six audio files to choose from and corresponding text questions, but i am unsure how to align the questions with the ...
2
votes
1answer
96 views

2D Change Velocity Based on Distance XY While Moving Parabolic Arc

What I'm trying to achieve is that the entity moves in a parabolic curve, and no this has nothing to do with gravity before you ask. I give the entity a target position which it should move to, but ...
5
votes
1answer
1k views

Algorithm to make groups of units

In Age of Mythology and some other strategy games, when you select multiple units and order them to move to some place, they make a "group" when they reach the desired location: I have a Vector ...
12
votes
7answers
2k views

AS3/Flash Game Dev: Looking for good & current step by step [closed]

Flash tutorials and examples have been around so long it is hard to know what sites to actually read for good, current AS3 game dev. I'm looking for a good start to finish for flash game development, ...
2
votes
3answers
6k views

What's a good Flash game development tutorial, in FlashDevelop, for an absolute beginner?

Ok, here's my situation: I'm tutoring a 14yo homeschooled student with very little previous programming experience, and I'd like to teach her how to program. I think that Flash Actionscript 3 is a ...
0
votes
1answer
2k views

AS3: Using a SharedObject for showing/hiding a Tutorial

Basically, I am either having trouble understanding how to use SharedObjects correctly, or I am not properly referencing a variable (from a seperate class from which it is defined) within a ...
8
votes
2answers
12k views

How to detect 2D line on line collision?

I'm a flash actionscript game developer who is a bit backward with mathematics, though I find physics both interesting and cool. For reference this is a similar game to the one I'm making: Untangled ...
2
votes
1answer
337 views

Fixed timestep with interpolation in AS3

I'm trying to implement Glenn Fiedler's popular fixed timestep system as documented here: http://gafferongames.com/game-physics/fix-your-timestep/ In Flash. I'm fairly sure that I've got it set up ...
1
vote
2answers
324 views

Show a range grid movement as3

How do I show range of grid movement in AS3? When player controls a character and chooses "move" options, the grid of movement will be displayed as 3 grid of X, 4 grid of Y (Both sides, + and -). So, ...
0
votes
1answer
195 views

AS3 random events using a timer

I'm making a game for an assignment at university. The game I am making requires random household appliances around a house to "turn on" at random times. The player must run around the house turning ...
-1
votes
0answers
62 views

Which algorithm should i chose for the AI of this game?

I've made a game where player have to places white or black circles on a line horizontally or vertically or diagonally. Possible path (circles can move) are marked as black line. So if player ...
1
vote
0answers
18 views

how to save data in a visual novel with shared object

I've been looking for ways to save data in a visual novel, I have seen that the best way to do  is with shared object but the tutorials are usually saved scores and I want to save the history ...
0
votes
0answers
24 views

Movement within function doesn't work

So I’m having this problem with AS3 where I’m trying to make a function change an objects x position, but it doesn’t work. Other commands within the function work fine. The command to move the object ...
0
votes
1answer
20 views

AS3/Flashdevelop - Controlling a 2D character to move around a planet with gravity

With a little help I have managed to create a 2D planet with working gravity that constantly pulls a character towards its center. The only problem now is that I am completely stumped on how to make ...
1
vote
1answer
56 views

AS3/Flash Develop - Radial Gravity (character on planet simulation)

I am trying to create a program where a character shape will be constantly drawn towards the centre of a planet shape. I have taken on previous advice into using physics equations to generate the ...
0
votes
0answers
20 views

Air AS3 Desktop - Detecting wrong screen resolution and coordinate offset

I have an issue with developing an Air desktop app using FlashDevelop in ActionScript 3.0 I'm pretty much new to all this, but I think I made all I should and am wondering if this could be some bug ...
0
votes
1answer
52 views

AS3 Air - Custom slider - limit drag position

I'm facing issues with finding the right solution for detecting and limiting the Sprite object "Knob" moved on y axis inside it's parent sprite "Frame", using FlashDevelop 5. Using the code bellow ...
0
votes
0answers
10 views

Render layered polygons

I am coding a video game in as3 for practice in game development/programming. It's a pixel game and I'm using my own game engine and I also created my own drawing api for thick lines and thin lines by ...
5
votes
4answers
5k views

Is ActionScript 3 used by Serious Indie Developers? [closed]

This question is for dedicated independent game developers: My dream is to be a game developer. I am a senior in high school who has taken Computer Science for all four years. I have used Java the ...
26
votes
8answers
15k views

How can I develop Flash games without expensive software? [closed]

I've been playing with writing flash games in my spare time, but up to this point, I've just been using a trial version of Adobe Flash Professional. I'm aware of FlashDevelop, but their documentation ...
1
vote
1answer
43 views

AS3 - Increase tint as health decreases

I'm working on a game where enemies continually spawn with more and more health based on how long you've been playing. As the enemies take damage, I'd like their sprite to get darker and darker, until ...
1
vote
0answers
43 views

Host Migration (P2P) with RTMFP and AS3

I was wondering if this is a possibility with RTMFP since it acts like UDP/P2P.. Host Migration Player A starts and host a game.. Player B and C connects.. Player A quits.. Player B is now ...
0
votes
1answer
74 views

AS3 .hitTestObject() not working with Tween function

(This was originally in an other senction but many told me to ask here, hopefully someone can answer this) I am having a major problem in my new browser app. Okay so I made game where different cubes ...
0
votes
0answers
45 views

pick up items in inventory box in adventure game with Flash AS3?

I use Flash with AS3 to design an adventure game. 4 rooms in 4 frames. Each room has its own layer plus its own button layer. The button layer also contains the objects. In the Bedroom is a ...
1
vote
2answers
69 views

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 ...
1
vote
0answers
14 views

Citrus Engine - How do I set-up the camera?

(Would be great if someone with greater rep created the Citrus Engine tag and add it to this question) I want to make a game where my inner starling stage dimensions are 320x240. My game will have ...
0
votes
0answers
12 views

Flash builder import swc movieclip

I do make 2 frame movieclip with flash cs6, There are a int value = 0 in first frame, second frame this int value=1 and I published this movieclip swc. Flash builder Import swc file but not read int ...
1
vote
1answer
408 views

Framerate on AIR for Android - Actionscript 3

I am currently working on making Android apps using AIR for Android. This is a sample file and package that I am running to test the FPS and Memory usage of my application while it is not even doing ...
0
votes
0answers
16 views

How do I make a FlxSprite do something if it is falling or rising?

I want to make my FlxSprite play an animation when it falls or rises. Something like: override public function update():void { if(player.movingUp) player.play("animUp") ...
1
vote
2answers
619 views

Make a lives display in HUD, Flash AS3 (not text!)

I've been searching the internet all day and I can't find the answer I'm looking for. In my HUD I want to use orange dots to represent lives. The user starts off with 5 lives and every time they die, ...
3
votes
3answers
105 views

Moving objects in a circular path, and also moving the whole group

I have 8 elements distributed in a circle, with a common center. All of them move along a circular path, just like the poster in this question asked: Moving an object in a circular path This solves ...
1
vote
2answers
73 views

How can I minimise memory thrashing when doing vector math in JavaScript or ActionScript?

Please note that a similar question has been asked before in the context of C#. Say I'm building a 3D game in Javascript or Actionscript, and doing a lot of 3D vector math. In current libraries, ...
1
vote
0answers
24 views

Customizing ease functions

I have this function that acts as a ease in: protected static function easeIn(ratio:Number):Number { return ratio * ratio * ratio; } Where ratio is a value between 0 ...
0
votes
0answers
40 views

Advice on adding RGB values

I am trying to make a flash game (I don't want to say too much). Part of the game is mixing colors. The problem with this is that these are colored wooden tiles and at first I was going to have each ...
101
votes
9answers
50k views

What are some programming design patterns that are useful in game development? [closed]

I have a few books on Design Patterns, and have read some articles, but cannot intuitively figure out which programming design patterns would be useful in game development. For example, I have a book ...
0
votes
1answer
30 views

AC3 FlashPunk Console doesn't show anything

I am making my project using flashpunk , I knew that it has a good console gui to give feed about states of the game , however when I tried making it appear with the FP.console.enable() method it ...
0
votes
0answers
8 views

Adding random IsoSpirite to the IsoSence

I am trying to add different type of objects to a scene using as3 Isolib. I have all of my objects ( each object has different class ) in an array and then pass them using for loop to a temp spirit ...
-2
votes
1answer
54 views

addChild does not work in Flash [closed]

Have been trying to understand this problem for two weeks. When I use addChild(movieclip) in the Main.as file, it works. When I try to use it in a function in a separate class file it does not work. ...
3
votes
1answer
121 views

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 ...
8
votes
4answers
9k views

What is a simple algorithm for calculating evenly distributed points on an ellipse?

I am looking for a simple algorithm to plot evenly distributed points on an ellipse, given the major and minor axes. This is really easy to do with a circle like so: var numberOfPoints = 8; var ...
0
votes
1answer
119 views

Using box2d with starling

In my game I have a Main class in which i am initializing starling framework by passing Game class like below myStraling = new Starling(Game , stage); In the game class I have Instances of Welcome ...
0
votes
1answer
123 views

How do I get the child of a unique parent in ActionScript?

My question is about targeting a child with a unique parent. For example. Let's say I have a box people can move called box_mc and 3 platforms it can jump on called: Platform_1 Platform_2 Platform_3 ...
1
vote
1answer
146 views

change the position of f3d objects randomly in action script

I have a f3d object and have different boxes to place the parts of the f3d objects.When i click on the button change the position of the boxes randomly. How it possible?This is the code for random ...
0
votes
0answers
258 views

isometric movement

I'm developing an isometric strategy game in flash using the Starling framework. I wanted to know what is the best way to move units about the isometric grid, and to render them the right way. Now ...
0
votes
1answer
76 views

Change DisplayObject's bounds in Flash/AS3

I'm developing some platform-like game using AS3 and Flash CS5 for animations. I've already done most of the mechanics now, and I've starded to drawing characters and animating them. But some problem ...
0
votes
2answers
598 views

How can I save a global high score for all players in AS3?

I am developing a game in which I want to make a scoring system where the global high score is stored and shared by all players. I am using Flash and ActionScript 3. Until now I've used ...
2
votes
1answer
385 views

How should I manage states in my game?

I can't understand what design pattern I can take advantage to build an intro screen, help screen, level select screen, game screen, game over screen, altogether. I can make one in AS3, but the code ...
2
votes
2answers
4k views

What are the advantages and challenges of using HaXe over ActionScript 3? [closed]

I read this: http://webr3.org/blog/haxe/bitmapdata-vectors-bytearrays-and-optimization/ And this: ...
0
votes
1answer
72 views

Controlling depths of objects in Flash

I am trying to change depths/ layers of my gameobjects inside the game using flash. To be more specific, I have a horse object and a fence object. I set them up initially on stage and the horse layer ...