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
1answer
82 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 ...
-6
votes
2answers
72 views

Best practices when coding a TD [closed]

I was thinking about what technical challenges could appear when coding a Tower Defense like game. Some thoughts were: (creeps = the ones that want to go trough the level) What approach could be ...
1
vote
1answer
94 views

In general terms, how does a peer-to-peer game model work? [closed]

after some time of playing with Cirrus (a P2P model communication between users) I could made a simple game. However, the game is turn based, so, it works like this: Player A sends a message Player ...
1
vote
2answers
245 views

Packet handling system architecture?

I'm working on a multiplayer Flash game (ActionScript 3) with an accompanying server written in Python and I'd like some tips regarding networking, and specifically, the handling of packets and ...
2
votes
1answer
1k views

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

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

Setting a Box2D Bodies Center?

How do I set the center of a fixture/body consisting of multiple shapes (triangles)?
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 ...
-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] = ...
0
votes
1answer
358 views

How to Generate Spritesheet from a 'problematic' animated Symbol in Flash Pro CS6?

In the new Flash Pro CS6 there is an option to generate spriteheet from a symbol. I used these tutorials: http://www.adobe.com/devnet/flash/articles/using-sprite-sheet-generator.html ...
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
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
1answer
107 views

Increasing height increases width

I have a game, where the user presses a button to spend money and increase the height of a Movie Clip. I use the following: height ++. The problem: When I test this out, it seems the width ...
-1
votes
2answers
61 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
0answers
54 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 ...
0
votes
1answer
155 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
1answer
57 views

How to stretch Movie Clip according to user's touch coordinates?

I have code like this: touchX = stage.stageX; touchY = stage.stageY; I also have a player movieclip that I'm trying to make shoot lasers. So I got the MovieClip to appear and rotate according to ...
-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 ...
-6
votes
2answers
120 views

X and Y values same as width and height? [closed]

I'm trying to make an expandable box in flash. The registration of down and up is to the left. the registration of left is in the middle. This is the code: down.width -= 10; up.width -= 10; left.x ...
-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 ...
3
votes
2answers
56 views

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.
-4
votes
1answer
59 views

add new variable? [closed]

Is it possible to add a variable twice? For example: var variable:Movieclip = new MovieClip; addChild(variable) addChild(variable) How would I make it spawn the variable twice? this code only ...
-4
votes
2answers
54 views

addChild with same MovieClip after RemoveChild

I have quite a bit of code like this: var mov = new movclass; if(somethinghappens){ addChild(mov); } inside the movclass class: //im not going to put code right now, so just imagine a thirty ...
0
votes
1answer
101 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 ...
2
votes
2answers
259 views

AS3: Using singletons for sound managers [duplicate]

Is it necessarily a bad thing to use a singleton for a sound manager? I am having a really tough time determining whether or not I should go ahead and use a singleton (which is easy/it works) or if I ...
0
votes
2answers
54 views

Hide movieclip parts that are out of bounds

I'm making a game where one takes a picture of their face to use on a character. I have them zoom in on the picture, but the bitmapdata extends out of its movieclip. How do I assign bounds to my ...
1
vote
3answers
681 views

Actionscript 3: Which side of object is hit?

I have a two objects colliding with each other. I am testing for the collision with if(ob1.hitTestObject(ob2)){//do something }. Is there a way to determine which side of the object was hit, i.e. if ...
0
votes
1answer
102 views

Develop a 2d isometric mobile game on Flash [closed]

I'm building a game on Flash that will run on web/Android/iOS. The game is 2d isometric.I heard that developing mobile apps on Flash sucks and the graphics looks just awful.It'd be quite uncomfortable ...
0
votes
1answer
36 views

Type Error for hit testing two objects created with actionscript

I am making a zombie shooter game where I get an error when I try to hit test two objects created with actionscript. Could someone post a possible fix please. Here is the Error Code; TypeError: ...
0
votes
1answer
70 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
138 views

Making the player walk on walls in box2d

I'm making a game in stencil where players walk form left to right along randomly generated walls. I cant use waypoints, since the walls' shapes and positions are unpredictable. Here's a descriptive ...
-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 ...
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 ...
1
vote
1answer
166 views

working in external actionscript file does not show anything on the screen?

I'm writing this code in Flash builder and I tested the file in flash, but nothing appears in the swf file. (no text in the screen show , i don't know why) Is there any missing property in the code? ...
-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 ...
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 ...
3
votes
1answer
60 views

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. ...
0
votes
2answers
66 views

Changing colour while keeping gradient

I'm making a Flash game with ActionScript 3 and I have a square with a gradient applied to it. I am trying to programmatically changing the colour of the square depending on time, for example, some ...
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 ...
4
votes
3answers
766 views

Reusable skill class structure

Pretty new to the whole game development scene, but I have experience in other branches of programming. Anyway, I was wondering what methods are used to implement a skill structure. I imagine a skill ...
1
vote
1answer
118 views

Bullet Manager Class

I'm making a game in AS3, and it's a rather simple shooting game because I'm original. Anyway, probably the most subjective question here yet: what is the best way to implement bullets in my game? ...
1
vote
1answer
50 views

Flixel: Is it possible to use a spritesheet for FlxButtonPlus?

I'm trying to change the graphic on a FlxButtonPlus. I want to get the graphic from a spritesheet. However, if I try the ' regular' way (make an animation and play it), it refuses to use just the part ...
0
votes
1answer
61 views

Revolve FlxSprites Around a Central FlxSprite in Flash Game made with Flixel

I have been working on a Flash game made in Flash Builder using the Flixel library. I have been trying to dynamically create a group of FlxSprites , and revolve them around a player controlled class ...
2
votes
3answers
121 views

Swap Child and Child's Child

Is it possible to use swapChildren() with a child and a child's child? Every time I try, I get this error: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. Why ...
0
votes
2answers
125 views

Using timer to reverse enemy movement in Flash game made with Flixel

I am creating a 2d flash game using Flixel 2.5 in Flash Builder. I am trying to reverse enemy movement on an interval so that they will move back and forth over a set space. I felt that a timer would ...
5
votes
1answer
515 views

Help for choosing a cost effective game server for Flash client

I am developing a flash-based game primarily for desktops, to be hosted on facebook platform (like cityville, sims social etc). The gameplay doesn't involve real-time communication between players ...
3
votes
1answer
111 views

Extract derived 3D scaling from a 3D Sprite to set to a 2D billboard

I am trying to get the derived position and scaling of a 3D Sprite and set them to a 2D Sprite. I have managed to do the first part like this: var p:Point = sprite3d.local3DToGlobal(new ...
1
vote
4answers
857 views

Tile-based maps in AS3

I want to make a tile-based platformer in AS3. I want my game to read an external maps file (in xml or json or somethimg similar) to draw a tile-based map. I've seen loads of tutorials for this in ...
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)
1
vote
3answers
382 views

Smart terrain generation to avoid unconnected tiles

To make this clear from the get go; I'm not looking for HOW To randomly generate a terrain (I know I can use Perlins noise for that). I'm looking for an algorithm that can help with the terrain ...
0
votes
1answer
94 views

AS3 Rect-Rect Collision

Basically, my game has the player's attack hitbox change based on the attack being performed. I tried to make a simple collision test that takes an enemy's coordinates and have it check to see if it's ...

1 2 3 4 5 6