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
2answers
337 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, ...
4
votes
1answer
114 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 ...
2
votes
1answer
352 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
1answer
14 views

AS3 ScaleX is moving object across screen

I am trying to make an HP bar for my game. I have the code here private var hpBar:Sprite = new Sprite(); private function drawHPBar(s:Stage):void{ hpBar.graphics.beginFill(0xFF1717); //Medium Red ...
1
vote
1answer
244 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
1answer
32 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
1answer
614 views

Collision Detection fails with AI cars

I am making a car parking game in flash and AS3 wherein I drive my car along with other AI traffic cars moving along a specified path using Guidelines. I am using CDK for collision detection. The ...
1
vote
0answers
24 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 ...
1
vote
0answers
54 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 ...
1
vote
0answers
18 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 ...
1
vote
0answers
26 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 ...
1
vote
0answers
435 views

Big game in Flash - how to create levels structure

I'm building a game in Flash similar to the structure of Angry Birds or Cut the Rope (where there are a number of "rooms" and unique levels created within each "room"). The user gets through the game ...
1
vote
0answers
101 views

How do I align textures properly with an exploding sprite / breakable body?

I'm working on a game based on Box2D and Starling which includes breakable bodies - bodies/objects that when hit with sufficient force break apart (into smaller pieces). I've managed the physics part ...
1
vote
0answers
531 views

How to code a 4x shader/filter which emulates arcade crt display behavior?

I want to write a shader/filer probably in adobe Pixel Bender that will do the best job possible in emulating the fill of an oldskul monochromatic arcade CRT screen. Much like this here: http://...
0
votes
0answers
14 views

Which better? Write all scripts on timeline or write it partially on `.as` file?

I'm going to create a flash game. But I don't know which way for me to write my scripts. Is it better if I write script part by part and by object so every object has they own script .. or write all ...
0
votes
0answers
26 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
0answers
31 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
0answers
11 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 ...
0
votes
0answers
55 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 ...
0
votes
0answers
15 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 ...
0
votes
0answers
17 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") if(player....
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 ...
0
votes
0answers
268 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 I'...
0
votes
0answers
195 views

Tweening MovieClips collisions

I am making a platform game and I have trouble finding the right way to do the enemy collisions... I am a noob in as3 so I 'm gonna try to explain my situation! I have an enemy, movie clip, and I have ...