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)

0
votes
2answers
289 views

Strategy for controlling the physics of a bike

I'm new(ish) to Actionscript 3 and I was wondering what the code what would be like for controlling the bike in a game. How would the animation of the bike work? Would I have to create a bike ...
0
votes
1answer
306 views

Enemy collision detection with movie clips

I have created multiple movieclips with animations within them. It is an obstacle avoidance game and I cannot seem to be able to get my enemies to contact my playableCharacter. The enemies I have ...
0
votes
1answer
270 views

Basic AI FSM - Handling state transition

I'm starting to study on how to implement game AI, and it seems to me that a very simple FSM for my Pong demo would be a nice way to start. My vision on implementing this would be to have a basic ...
0
votes
1answer
66 views

This for array colllision function doesn't work with anything but first object in array [closed]

For some reason, this simple simple loop is totally broken. (characterSheet is my character Class, it's just a movieClip with some extra functionality) (hitBox, is basically a square movieclip) ...
0
votes
1answer
88 views

Setting up speedtests in Actionscript 3 for an entire game

I'm very new to this so please forgive the questions possibly ill-stated nature. Firstly is this even a valid way to speedtest: public function L1() { tree.x = 200; tree.y = 200; ...
0
votes
2answers
2k views

AS3 Internal preloader (one swf) for flash game with Embeded() images?

So I am using the Flash IDE. And I am trying to make a preloader on Frame 1 so that it displays and loads progress before anything else is exported/loaded. So all my assets from the Library are on ...
0
votes
1answer
423 views

AS3 Replay all the child timelines?

Flash CS5 AS3 Is there a way to reset all the timelines while/if the Frame 1 en Scene 1 is called? I happen to have lots symbols with timelines, if I gotoAndPlay Scene 1 frame 1, most symbols won't ...
0
votes
1answer
99 views

Help with AABB collision detection [closed]

making my first attempts at implementing AABB collision. I got it to work...kinda. I've run into an odd issue I cant seem to fix. Basically when the objects overlap, I push one out. The pushing part ...
0
votes
1answer
69 views

Camera in Flash

Im having a hard time trying to work out how to implement a smooth camera in flash. In something like openGL i would use a transformation matrix to move the camera around the scene. However with ...
0
votes
1answer
80 views

Industry standard to output multiple sized sprite sheets?

I have to take out three different sized sprite sheets for that I have three different fla files. Obviously mantaining 3 files takes more time than one. I was wondering is there an industry standard ...
0
votes
0answers
36 views

Are Flash AMF calls blocking on AS3 client side?

Are Flash AMF calls blocking on AS3 client side i.e. Do they block the client till the response is returned from the server side? What is the underlying transport protocol used for AMF, If it is HTTP ...
0
votes
0answers
49 views

Make colour change depending on time

I'm making a Flash game (ActionScript 3) and for dynamics I'd like to make the background change colour depending on the clients' time of day. I have a rough idea on how I want to do this, At ...
0
votes
1answer
55 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 ...
0
votes
1answer
95 views

How to check the device type using Adobe AIR for iOS

How do I check what kind of device the user is running my Adobe AIR app on? Example: if(device == ipad3) { stagestuff.width = 300; }
0
votes
1answer
103 views

Flash game made with Flixel does not appear when using regular zoom [closed]

I am having an issue getting my Flash game (made using the Flixel library) to display when I use Zoom = 1 in the call to Super() in the game's constructor. I have made a map using Dame which is ...
0
votes
0answers
20 views

Virtual Camera preventing correct use of Touch Events

http://www.youtube.com/embed/jkk0k6HvDa4 How come when I try to use e.stageX and e.stageY the virtual camera messes the coordinates up? (watch video)
0
votes
0answers
67 views

What are the best practices for Flash / Server communication? [closed]

Most social games (web) these days are in Flash with a lot of server intensive processes. What are the best practices to talk to the server end using flash in the context of social games?
0
votes
1answer
65 views

Coordinates user taps

I am using e.stageX and e.stageY to locate the user tap, only I have a vcam that constantly changes the view, until eventually off the stage. Is there another way to do this? Like e.SomeMovieclip.x ...
0
votes
0answers
152 views

Smudge and Erase Image using Flash and AS3

I am developing an app where in I have to smudge and erase a portion of the image which is loaded on stage. The logic I am using is adding two Images on stage one above the other. I am able to ...
0
votes
0answers
128 views

An “AABB Physics Engine” [closed]

I've been working on the physics for my 2D game and for the past two weeks it's been doing my head in. I wanted something a little more complicated than what you see in 2D platformers, but I wanted to ...
0
votes
1answer
93 views

Use an external sprite or image file in flixel game in flashbuilder

Is there any way to use an external image/sprite file for the graphic of a FlxSprite instance? Say I declare my player FlxSprite as follows: player = new FlxSprite(FlxG.width/2 - 5); ...
0
votes
0answers
320 views

Socket.io v.9 with Actionscript

I'm attempting to develop an online multiplayer game using Node.js for the server and Flash to display the client. I've been reading up a bit and have found quite a few recommendations for the ...
0
votes
0answers
84 views

box2D simulation doesn't work [closed]

has been a while since last time i used box2D, and i needed to make some stuff, and i saw that my simulation don't worked (compiles, but do anything). i haven't been able to even have working the ...
0
votes
1answer
154 views

Stage3D: Camera pans the whole screen

I am trying to create a 2D Stage3D game where you can move the camera around the level in an RTS style. I thought about using Orthographic Matrix3D functions for this but when I try to scroll the ...
0
votes
0answers
292 views

RTS-style fog of war woes

So I'm trying to make an RTS-style line of sight fog of war style engine for my grid based game. Currently I am getting a set of vertices by raycasting in 360 degree. Then I use that list of vertices ...
0
votes
1answer
64 views

Read an object from compressed file generated from ActionScript 3 [closed]

I have made a simple game Map Editor and I want to save a array that contain map tile info to a file, as below: var arr:Array = [.....2d tile info in it...]; var ba:ByteArray = new ByteArray(); ...
0
votes
1answer
45 views

Affect movieclip scale from a .as doc to another [closed]

I've been working on a game following a tutorial on the internet, the game is an avoider where you have the Avatar, that has to avoid the objects that fall. The way it is made is: I have a ...
0
votes
0answers
193 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: ...
0
votes
0answers
63 views

Faking Display tree (Sprite) parent child relationships with rasters (BitmapData) in ActionScript 3

I am working with Rasters (bitmapData) and blliting (copypixels) in a 2d-game in actionscript 3. I like how you can move a sprite and it moves all it's children, and you can simultaneously move the ...
0
votes
2answers
104 views

Is there is IO text files in actionscript2 or 3?

i tried actionscript recently,am little scared i want to make a game that input a word from about 3000 randomly, do actionscript support that,or should i try another language?
0
votes
1answer
263 views

Stage3D Agal Anti-Aliasing

I created an engine which draws 2D planes in the Stage3D API in Actionscript 3. And my question is, how do I turn all anti-aliasing off, because when I scale it all the pixels get really blurry, and ...
0
votes
0answers
469 views

Pac - Man game collision ActionScript 3.0

I'm making a very simple Pac - Man game and have everything working except for a small bug. I'm using a grid based system where Pac - Man can only move if the tiles in front of him are open. ...
0
votes
1answer
746 views

as3 3D camera lookat

I'm making a 3D camera scene in Flash, draw using drawTriangles() and rotated and translated using a Matrix3D. I've got the camera to look after a specific point, but only on the Y-axis, using the x ...
0
votes
1answer
803 views

How do I create a Dynamic Text Button AS3?

I am having difficulties creating a button that has Dynamic text in it for my interactive quiz game. The text on the button has to change to show a selectable answer based off of what the current ...
0
votes
0answers
709 views

Tutorial on creating simple fighting like Mortal Kombat in ActionScript 3.0 [closed]

I'm looking for a simple tutorial on creating a side-on fighting game like Mortal Kombat, but at its most simplest. So two fighters on a stage (one looking right and the other looking left) and the ...
0
votes
1answer
364 views

AS3: StageWidth for BOX2D?

I know BOX2D uses meters, and AS3 uses pixels. I'm trying to create objects which are limited to the stageWidth. If I do this variable: for (var i:int = 0; i<(stage.stageWidth); i++){...} ...
0
votes
1answer
312 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 ...
0
votes
2answers
250 views

Dropping multiple objects using an array in Actionscript?

I'm trying to get these fireBalls to drop more often, I'm not sure if I'm using Math.random correctly. Also, for some reason I'm getting a null reference because I think the fireBalls array waits for ...
-1
votes
2answers
342 views

I need a book to continue experimenting with ActionScript 3

I am a CS student who finished his third year in school, and I'm interested in game development. This summer, I bought a book named "Foundation Game Design with Flash" by Rex Van Der Spuy. I'm halfway ...
-1
votes
1answer
60 views

What is faster, TimerEvent.TIMER or if(timer.running)?

In my game, I'm trying to prevent lag. I have timers for pushback. I'm using if(pushtimer.running), but is it faster to do pushtimer.addEventListener(TimerEvent.TIMER)? Basically, should I add a ...
-1
votes
2answers
60 views

as3 game levels : frame to frame

which is easy and comfortable when programming a flash game levels. I ask this question for that because if I use frame to frame I will need to write code for each frame code area so the main class ...
-1
votes
1answer
103 views

Flixel or Pygame for a small game? [closed]

I have some experience in Bash and Python, Lua. I've always wanted to try and make point & click quest games. Most quest games I loved aesthetically and gameplay wise were made with Flash. So ...
-1
votes
1answer
51 views

How to use an object created in a function in other functions? [closed]

I am making a game where i want to be able to shoot zombies to make their health go down, but i get a null property error on objb. i have declared abjb and objz as Object variables Here is my code ...
-1
votes
1answer
207 views

Help needed throwing a ball in AS3

I'm working on a flash game, coding on the time line. What I'm trying to accomplish is the following: With the mouse you swing and throw/release a ball which bounces against the walls and eventualy ...
-1
votes
2answers
1k views

What technologies were used to create “Dueling Network”?

I want to make a similar browser online multiplayer game like "Dueling Network" (link below) but for a different TCG. What technologies you believe they used to create it? Could anyone kindly refer ...
-1
votes
0answers
57 views

Random AI movement on tiles [closed]

To make things quick, I have an arrangement of tiles that a player and an enemy are on. public static var floor1:Array = new Array(7); floor1[0] = [0,1,1,1,1,1,0]; floor1[1] = ...
-1
votes
0answers
52 views

AS3: Handle collision with ground. Velocity's and hitTestObject() [closed]

I'm working on a sidescroller game but i'm having issues with my screen region and collisions. I will just stick to 1 problem because once this is fixed i can probably also fix my screen so it scrolls ...
-1
votes
1answer
120 views

Help with tile-based collision [closed]

I've been working on a 2D platformer using Flash. I've managed to get the collision detection working, but its not exactly perfect. Below is the code I'm using //Get the speed of the player ...
-1
votes
1answer
177 views

Any multiplayer webgame engine based on Flex

My team is developing a multiplayer webgame (like a virtual world) in a short time(several months using after-school time), and I wonder if there are any webgame engine based on Flex. When I googled ...
-2
votes
2answers
299 views

Calc direction vector based on destination vector and distance from enemy in AS3

I'm working on a zombie game in AS3 where I want a character to be able to move away from a zombie depending upon how close the zombie is. The character also has a destination that it's trying to get ...