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)

3
votes
1answer
905 views

Nape physics - Moving a body

Hey I'm currently getting started with physics engines and I set up a body (box shaped) which represents my character. Question: Which methods can I use to move a Nape.Body aka my char? I tried so ...
2
votes
1answer
980 views

2d game view camera zoom, rotation & offset using 'Filter' / 'Shader' processing?

I wish to add the ability to zoom-in, zoom-out, rotate and move the view in a top-down view over a collection of points and lines in a large 2d map. I split the map into a grid so I only need to ...
0
votes
1answer
513 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 ...
3
votes
1answer
159 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
1answer
2k views

Workflow with Flash Pro CS6 and FlashDevelop: Using fla and swc to store assets

I am using this tutorial: http://www.flashdevelop.org/wikidocs/index.php?title=AS3:FlexAndFlashCS3Workflow In the past older versions of Flash Pro I was able to complete these steps: right-click ...
0
votes
2answers
261 views

Large Sprite Performance

I've got a large Sprite generated using a set of vertices(x,y coordinates) and a bitmap pattern (using moveTo, lineTo, beginBitmapFill, endFill ...etc). It's about 15000 pixels wide and between 1500 - ...
1
vote
0answers
350 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: ...
1
vote
1answer
267 views

Placing items randomly in a dynamically generated terrain

I'm currently working on a 'Tiny wings' like game. I've already asked about the angle of the items in curved lines and i solved (thank you for responses),i'm currently placing the items in random ...
2
votes
1answer
2k 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: ...
0
votes
2answers
135 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
112 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
975 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
439 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
277 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 ...
0
votes
2answers
265 views

AS3 Stage3D Mouse click problem?

I have a problem with Mouse interaction and Stage3D. The only way I found to register to listen to mouse clicks and interact with Stage3D, is to add a mouse eventListener directly to the .stage. ...
0
votes
1answer
418 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
1answer
198 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? ...
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 ...
0
votes
1answer
85 views

Why I'm getting the same result when deleting target?

In the following code we use target in the function: moon.mouseEnabled = false; sky0.addChild(moon); addEventListener(MouseEvent.MOUSE_DOWN, onDrag, false, 0, true); ...
2
votes
3answers
5k views

What's a good Flash game development tutorial, in FlashDevelop, for an absolute beginner?

Ok, here's my situation: I'm tutoring a 14yo homeschooled student with very little previous programming experience, and I'd like to teach her how to program. I think that Flash Actionscript 3 is a ...
0
votes
1answer
574 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 ...
1
vote
2answers
553 views

Flash: Memory usage is low but framerate keeps dropping

So I'm working on a puzzle game in flash. For all intents and purposes it's like Tetris. I spawn blocks, they move around the screen, then they get destroyed and disappear. I was having some trouble ...
0
votes
1answer
405 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
376 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
422 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 ...
1
vote
1answer
144 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
2answers
769 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 ...
0
votes
1answer
980 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 ...
2
votes
1answer
1k views

Can anyone explain step-by-step how the as3isolib depth-sorts isometric objects?

The library manages to depth-sort correctly, even when using items of non-1x1 sizes. I took a look through the code but it's a big project to go through line by line! There are some questions about ...
0
votes
1answer
152 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
471 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 ...
-2
votes
2answers
457 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 ...
1
vote
1answer
160 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 ...
0
votes
1answer
321 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 ...
1
vote
1answer
2k views

Setting a Box2D Bodies Center?

How do I set the center of a fixture/body consisting of multiple shapes (triangles)?
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
253 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
179 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 ...
2
votes
2answers
257 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, ...
1
vote
2answers
500 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
338 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 ...
3
votes
1answer
742 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 ...
0
votes
2answers
934 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
208 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
1k 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 ...
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 ...
2
votes
2answers
721 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 ...
0
votes
1answer
76 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) ...
1
vote
1answer
244 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 ...