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)

-2
votes
0answers
32 views

Bejeweled clicking code [closed]

So im still making bejeweled. But its like my version of bejeweled. Instead of swapping gems and matching 3 gems in a row.. I am going to have it so the player clicks 3 of the same gems (they dont ...
3
votes
1answer
61 views

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

Help making a bejeweled game in AS3 [duplicate]

So i am making bejeweled in AS3 right now and it is not going well at all. So far i placed the gem randomly by using a array but it doesnt check for a 3 in a row and if there is a 3 in a row, the 3 ...
0
votes
1answer
35 views

Dynamically editing a movieclip at runtime

I am trying to make a flash game(actionScript-3 if it matters) to test what I learned so far. And, in the game, I want to make the character(a robot?) customizable. The first solution I found was to ...
0
votes
1answer
37 views

AS3 + Flash IDE - Stage Boundaries and Collision in Sidescroller not working properly

I am trying to do a pretty simple sidescroller in Action Script 3 with Flash CS6 and I am currently stuck at the stage boundaries and the level scrolling. My hero should move freely in the middle of ...
0
votes
0answers
62 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 ...
0
votes
1answer
17 views

Repeating Sound with Timer in Actionscript 3

I'm working on a Flash game and am trying to figure out how to repeat a sound periodically every 17 seconds. Instead, of having the sound repeat once the .mp3, .wav, finishes. The problem I'm running ...
-5
votes
2answers
90 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
100 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
votes
2answers
80 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 ...
0
votes
1answer
75 views

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

I have code like this: touchX = e.stageX; touchY = e.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 the ...
-1
votes
1answer
117 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
64 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 ...
4
votes
2answers
65 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
60 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
58 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
135 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
114 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
2answers
55 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
1answer
87 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
43 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
84 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
1answer
147 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
125 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
52 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 ...
4
votes
1answer
70 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
70 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
55 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 ...
1
vote
2answers
270 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 ...
1
vote
1answer
126 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? ...
0
votes
1answer
60 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
65 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 ...
1
vote
1answer
52 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 ...
1
vote
1answer
145 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; }
2
votes
3answers
129 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
134 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 ...
0
votes
1answer
108 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
21 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
393 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
101 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 ...
0
votes
0answers
70 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
174 views

Use of FlxG.camera.follow to follow a character vertically

I am developing a prototype for a game in Flixel in which a character floats upward continually to traverse the level. I would like to have a "tall" layout for levels and set the FlxG.camera to follow ...
3
votes
3answers
76 views

Is there a way to squash/stretch a sprite based on an angle?

I have a ball that can move along any angle, and I want to squash and stretch it based on this angle. To be clear, if you dropped the ball down at a -90 angle, the squash would be all along the y, and ...
0
votes
1answer
68 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
155 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 ...
-6
votes
2answers
122 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 ...
0
votes
1answer
153 views

Hello World with FlashDevelop, Flixel, AS3: uneffective SWF macro

I just started with FlashDevelop and Flixel, and I already have a question. I created this basic hello world: package { import org.flixel.*; [SWF(width = "640", height = "480", ...
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 ...
3
votes
2answers
364 views

How to determine mouse position outside stage, and center the cursor?

I was wondering if it is possible to have my flash game determine the position of the mouse, even when the cursor is not inside the stage. My movie clip should move horizontally between x = 100 and ...

1 2 3 4 5 6