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
161 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?
1
vote
1answer
115 views

A few meta questions about making flash games [closed]

A few questions for a beginner game maker without an artist. Is there a site where flash game creators can download (and use) free art? I don't need character sprites but environments like trees, ...
1
vote
1answer
1k views

Using Event Driven Programming in games, when is it beneficial?

I am doing a refresher on ActionScript 3. Other than using rudimentary tools like, Event.ENTER_FRAME and using events to receive input from the user's mouse and keyboard, I find that I rarely use ...
1
vote
1answer
628 views

How to center a game in Flash Projector (like AdamAtomic's CAPSULE)

Adam Atomic's game Capsule is a flash projector. If you press escape, the game goes out of fullscreen and just shows windowed. How do I get my (FLIXEL/AS3) game to show up centered like that?
2
votes
2answers
304 views

Tiny Wings - Placing items

I'm currently developing a Flash game like 'Tiny Wings'. I have a lot of work done, but i'm currently working on placing the items ( coins and obstacles ) on the terrain. My player it is moving on a ...
1
vote
1answer
1k views

Lag compensation of projectile shooting game

I'm thinking about an algorithm for firing projectiles with lag compensation. Now I did find only one descent solution: Player hits fire button. Client sends input "fire". Client waits for server ...
2
votes
2answers
1k views

Best way to create neon glow line effect in AS3?

What's the best way to create a neon glow line effect in Flash AS3? Say similar to what's going on in the game gravitron360 on the xbox 360? Would it be a good idea to create movieclips with plain ...
2
votes
1answer
1k views

2d games unity vs Flash [closed]

do people find unity better than flash for 2d games while unity is 3d engine , or Flash still better because it's made for 2d games and flash can get the job done faster ,and now flash is better for ...
79
votes
9answers
32k 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
755 views

Kinetic scrolling in AS3

I have a container movieclip that contains my "game" and I would like to be able to drag the "camera" (i.e. the container clip) around, but I need it to have kinetic movement, i.e. feel more like ...
0
votes
1answer
491 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
2answers
905 views

Building a Flash Platformer

I am basically making a game where the whole game is run in the onEnterFrame method. This is causing a delay in my code that makes debugging and testing difficult. Should programming an entire ...
1
vote
1answer
186 views

How to split a string with negative numbers using ActionScript 3.0

I'm having trouble loading my level. I'm using Ogmo to create my level then I import it. I have no problem converting 0's and 1's into an Array, but I can't figure out how to do the same for -1's. It ...
0
votes
1answer
158 views

Why does the player fall down when in between platforms? Tile based platformer

I've been working on a 2D platformer and have gotten the collision working, except for one tiny problem. My games a tile based platformer and whenever the player is in between two tiles, he falls ...
3
votes
1answer
542 views

Tic-Tac-Toe game AI

I'm looking into creating a simple tic tac toe/noughts and crosses game in Actionscript3 and am trying to understand the ideas behind the AI used in a game like this. I've seen some simplistic ...
1
vote
1answer
172 views

Help with converting an XML into a 2D level (Actionscript 3.0)

I'm making a little platformer and wanted to use Ogmo to create my level. I've gotten everything to work except the level that my code generates is not the same as what I see in Ogmo. I've checked the ...
-2
votes
2answers
517 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 ...
0
votes
1answer
340 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 ...
2
votes
1answer
912 views

How to detect collisions in AS3?

I'm trying to make a simple game, when the ball falls into certain block, you win. Mechanics: The ball falls through several obstacles, in the end there are two blocks, if the ball touches the left ...
1
vote
1answer
3k views

AS3 Calculating Delta Time In Seconds

Here is how I've been trying to implement delta time based on different internet resources. var startTime:Number = getTimer(); game.Update(deltaTime); deltaTime = Number(getTimer() - startTime) * ...
0
votes
1answer
2k views

as3 flash game: How to stop gotoAndPlay('label') from looping?

I'm working on a flash game with a main character who helps people around town. It's moveable with the arrow keys because of a function called keyPressed(); When the main character hitTests with a ...
1
vote
1answer
276 views

How can I more efficiently write my Math-Code in AS3

So this might be an odd question to ask. But I'm not really the biggest mathematician out there, and I have a weird habit of writing code. So I'm going to post what I'm working on. I'm doing a ...
0
votes
1answer
207 views

AS3 Symbol not showing returns no errors?

I haven't touched Flash in a while and I've forgotten a lot. I'm trying to get a space-ship symbol to show in the middle of the screen. For some odd reason it isn't showing in the middle of the ...
1
vote
2answers
633 views

What is the best way to handle MouseEvents in AS3?

What is the best way to handle MouseEvents? Should I add an event on each MovieClip I want to work with, or a general Event at a holder MovieClip (or even at the stage) with internal control from the ...
2
votes
2answers
268 views

How should I do my collision response?

I'm making a small lockpicking simulator. Obviously I'll need the pick to not pass through the lock, and I'll need the pins to move when you tap or push them with the pick. Here's what I have so far, ...
0
votes
1answer
2k views

AS3 hittest with a tweening movieclip, what is the best way?

I'm making a simple game. The character is movable with the arrow keys. The enemies are moving around the screen with a (classic) tween. I want to detect collision between the character and the ...
3
votes
1answer
817 views

Pixel-perfect collision against rotated sprite in Flixel

I've got a roughly 500x50 graphic of a lockpick that I need to be able to rotate very finely while doing pixel-perfect collision detection against the lock object. There's no way to do pixel perfect ...
5
votes
3answers
694 views

Programming Languages Recommendations: A Space shooter game that allows two people to play [closed]

Do you remember an arcade game, that allowed two people to versus or play each other? It was a Galaga/Gradius type game. Me and a couple of other people I know want to make a game like this. We want ...
0
votes
2answers
1k views

How to set blur on mouse over and remove on mouse out in AS3?

How can I do it? I want to active glow when the mouse is over a Sprite and remove it when the mouse is out. Is it possible? I have the following code: var myGlow:GlowFilter = new GlowFilter(); ...
1
vote
1answer
292 views

Export information to a custom file type from Air

So I have an engine (air application) that basically (for now) is loading some windows on the screen/stage, and you can drag them around. And later on, I'll be able to add other objects onto the ...
1
vote
1answer
2k views

As3 Character movement in diffrent directions with labels?

I hope you can help me with the following problem: I made a character in Illustrator. The player sees the character from above. When you press the left arrow key character.gotoAndStop('left'); the ...
2
votes
2answers
902 views

Pointy top hexagonal A* pathfinding

I'm trying to create a game with a hex based map with the points at the top. I have most of it working, however the path finding is being a little awkward. The heuristic I'm using is called euclidian ...
1
vote
1answer
839 views

Using Actionscript 3's Graphics API in Flixel

My question sounds pretty simple but awfully, I couldn't find much information on the internet. How can I draw a circle in my FlxSprite? I couldn't find much information about drawing geometric ...
0
votes
1answer
85 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) ...
6
votes
2answers
957 views

Why does my FPS drop gradually over time?

I'm working on this game: yt alpha preview I came into a huge game-breaking problem - after 10-15 min of gameplay the FPS drops from 60 to 30 and is very unstable. I'm using tons of physics and ...
3
votes
2answers
1k views

Flash AS3 sidescrolling tiles optimization

I'm trying to make a sidescrolling game in Flash that will run on a low performance laptop. While studying the subject from Tonypa I saw that he builds a Bitmap by making copys of the BitmapData of ...
1
vote
1answer
275 views

Why can't a blendShader sample anything but the current coordinate of the background image?

In Flash, you can set a DisplayObject's blendShader property to a pixel shader (flash.shaders.Shader class). The mechanism is nice, because Flash automatically provides your Shader with two input ...
0
votes
2answers
591 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 ...
3
votes
0answers
254 views

Choosing a (browser) game environment [closed]

I apologise in advance if this post is something you've heard a million times already or seems like a trolling attempt. I just want some advice and I'm coming up short with my own Google searches. ...
6
votes
2answers
6k 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
0answers
743 views

Strange Flash AS3 xml Socket behavior [closed]

I have a problem which I can't understand. To understand it I wrote a socket client on AS3 and a server on python/twisted, you can see the code of both applications below. Let's launch two clients ...
-4
votes
1answer
346 views

Multidimensional Pathfinding Algorithms

When trying to program hostile AI units for a war strategy game using pathfinder methods, do programmers ever have one algorithm for the unit to move and a separate algorithm for the unit to actively ...
5
votes
4answers
358 views

How would one generate a texture for cracks in different materials?

I would want to have the ability to simulate different variables like brittleness, or other variables to get varied end results. I would mainly need to generate impact cracks, so it would need to ...
0
votes
2answers
3k views

As3 Random movieclips from an array to the stage

For a game with orders and clients I was trying to create the following situation: Every half minute, a client should appear at the counter. In this case I have an array with 4 movieclips (4 ...
3
votes
1answer
671 views

Parallax Scrolling - Layers not preserving their relational positions

I've created a little 2D game engine with parallax scrolling and something has been bugging me for some time. Layers / objects set at a different depths / z orders don't preserve their position ...
0
votes
1answer
104 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; ...
3
votes
1answer
1k views

As3 Flash How to check if a bitmapdata is completely set to transparent using an eraser?

I'm trying to make a window-cleaning game with flash as3 on the timeline. (Sounds boring I know, but I realy have some fun idea's with it) So I have: A dirtywindow movieclip on the bottom layer and ...
2
votes
3answers
533 views

Movie clip in a button changes on hover

I have a button for my game which has a MovieClip in it. It consists of an image of a lock and an image of an item, representing the item being locked and unlocked. I make the button become slightly ...
-2
votes
1answer
277 views

Flex 4 + Apache Ant, Cannot Load FlashPunk Libraries

I have been searching google, Apache Docs*, and FlashPunk forums looking for an answer to this: I cannot get Ant/Flex to find and compile the FlashPunk libraries. Here is my build.xml. ...
2
votes
1answer
2k views

Rotating sprite to face cursor

Given the sprites X and Y values, and the mouses X and Y values, how can I make the sprite face the mouse cursor? I tried doing this in my move method which I found in another SO question: ...