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
66 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 ...
1
vote
2answers
663 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
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: ...
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)?
0
votes
1answer
514 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
121 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
352 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
256 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 ...
4
votes
2answers
187 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.
2
votes
2answers
339 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
79 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 ...
2
votes
3answers
1k 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
213 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
177 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: ...
1
vote
1answer
486 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 ...
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? ...
-1
votes
1answer
66 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 ...
4
votes
1answer
288 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
185 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 ...
4
votes
3answers
971 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
230 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
83 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
161 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
177 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
266 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
586 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
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
4answers
2k 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 ...
1
vote
3answers
447 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
204 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
1answer
983 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
402 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 ...
4
votes
3answers
150 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 ...
3
votes
2answers
854 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 ...
0
votes
1answer
225 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", ...
1
vote
2answers
204 views

ScaleX and Y for stretching MovieClip

I'm developing a game, and the game has a shop. In that shop there is an option for a house expansion. This is a movieclip that I want the user to be able to spend their coins to increase their ...
3
votes
2answers
184 views

Walk to nearest attackable range node

My game has 3D environment which is partitioned in 2d cells(nodes). I have implemented A* for path finding. Now I am just breaking my head to how to implement the algorithm to move the hero to the ...
-4
votes
1answer
645 views

AS3 UML Tools other than Crocus Modeller [closed]

I have been using Crocus Modeller a lot this past year, and it's been great. It's the first UML tool I've used, and so I don't know how it compares, but it seems to work very well. However, today I ...
-4
votes
1answer
164 views

Importing a transparent image to flash [closed]

How do I import an image that has transparent background to flash and give it class and use addChild to show it on the screen? Transparent background should stay transparent.
7
votes
2answers
1k views

How could you create climbing movement in a 2D platformer?

Basically what I want to do is have a playable character that is able to "walk" on an organic surface at any angle, including sideways and upside-down. By "organic" I mean I want my levels to have ...
1
vote
2answers
845 views

Moving player in Box2d without forces

How do I move player with keyboard without applying forces? If I do playerBody.setLinearVelocity(new B2Vec2(0, 2)) it moves the player but when I release the key for movement, the ball is continuously ...
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 ...
3
votes
1answer
841 views

Best practice for organizing/storing character/monster data in an RPG?

Synopsis: Attempting to build a cross-platform RPG app in Adobe Flash Builder and am trying to figure out the best class hierarchy and the best way to store the static data used to build each of the ...
4
votes
1answer
370 views

Orbiting multiple objects evenly around a changing radius

I have multiple objects (circles) and I want to place them in a circle, with even distance between each one, and have them orbit the center of the screen. If I remove one object, I want the orbit ...
0
votes
1answer
133 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); ...
3
votes
1answer
535 views

Change the tilemap shown on stage in Flixel

I am building a simple platformer using Flixel, beginning with the source code from Flixel creator's EZPlatformer . I would like to adjust the level's tilemap when the player sprite enters/overlaps ...
0
votes
2answers
2k views

LAN game in Actionscript 3

I know this may be a somewhat dumb idea, but is there any "easy" resource that anyone can point me towards that shows how to set up a simple LAN connection in an Actionscript application? I only need ...
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 ...
1
vote
1answer
51 views

Flixel level ceases to show on screen

I was following along with the EZPlatformer flixel tutorial(with some of my own modifications), and suddenly find that my level is not appearing on screen. I am unable to detect any changes I could ...
23
votes
8answers
8k views

How can I develop Flash games without expensive software?

I've been playing with writing flash games in my spare time, but up to this point, I've just been using a trial version of Adobe Flash Professional. I'm aware of FlashDevelop, but their documentation ...