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)

1
vote
3answers
458 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
248 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
1k 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
509 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
241 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
1k 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
279 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
251 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
213 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
899 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
201 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.
1
vote
2answers
1k 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
426 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
984 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
619 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
161 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
654 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
55 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
10k 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 ...
2
votes
2answers
292 views

Zelda like multiplayer combat

I have in mind coding a multiplayer game with a similar combat to zelda's. Since i will use flash, i'm limited to use TCP. My question is, is this goal possible? It's not as fast-paced as some ...
5
votes
2answers
2k views

How do I create a game that runs on Windows, iOS and Android? [closed]

I use C++ to create windows games and now I want to step into another other OS like Android or iOS. I'm totally familiar with C++ so I tried to create app for iOS using objective C it was working ...
1
vote
0answers
70 views

Stage3D engine with FlashPlayer 10 compatible (no wmode setting) fallback to software Rendering [closed]

https://github.com/pshtif/Genome2D/downloads ist the only Stage3D engine with FlashPlayer 10 compatible (no wmode setting) fallback to software Rendering i am aware of. Unfortunatly they drop this ...
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 ...
1
vote
1answer
562 views

Create and use a Button class on AS3.0

I am currently working on a game and it is all going well. On the shop screen there are several buttons that affect the player's stats for when the player restarts the game. The button's names (with ...
2
votes
1answer
222 views

Can't click on a button with startDrag() active on stage

I need to know how can I enable mouse click on a button when I have a MouseEvent listener for the stage. I have an MClip associated with the mouse cursor: Mouse.hide(); scope.startDrag(true); And ...
0
votes
1answer
480 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
votes
1answer
388 views

Help needed throwing a ball in AS3

I'm working on a flash game, coding on the time line. What I'm trying to accomplish is the following: With the mouse you swing and throw/release a ball which bounces against the walls and eventualy ...
2
votes
1answer
918 views

Best way to generate pieces in match-3 games, and then tracking them?

I've been working on a match-3 style game in Actionscript using Flixel, and so far, I've been able to build the core mechanics of the game, including board generation, piece generation, piece swapping ...
1
vote
0answers
172 views

Flick Kick like game with box2d and flash as3 [closed]

What would be the best approach for creating a game like flick kick with box2d and AS3?. To make my self more clear, what i would like to do is to use the physics of box2d in the z-axis, i know that ...
2
votes
2answers
181 views

How to add a ramp in a flash game?

I am a huge novice and this isn't really a programming question, but here I go, say I want to make a game that involves rolling up a ramp like this one: to move upwards, similar to how it would work ...
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); ...
3
votes
1answer
575 views

Panning a 3d viewport in 2d direction with rotated camera

I am using below code to pan the viewport (action script 3 code using flare3d framework) _mainCamera.x-= Input3D.mouseXSpeed; _mainCamera.z+= Input3D.mouseYSpeed; Where as Input3D.mouse[X|Y]Speed ...
0
votes
1answer
112 views

Read an object from compressed file generated from ActionScript 3 [closed]

I have made a simple game Map Editor and I want to save a array that contain map tile info to a file, as below: var arr:Array = [.....2d tile info in it...]; var ba:ByteArray = new ByteArray(); ...
-4
votes
2answers
252 views

Read only array, deep copy or retrieve copies one by one? (Performance and Memory) [closed]

The question is asked regarding an environment with garbage collection.(Java, AS3) I am writing a level editor using MVC and the view needs to have read only access to the data in the model for ...
-2
votes
1answer
145 views

Whats the potential for actionscript flash? [closed]

Is flash programming a tool for beginners? if i mastered flash programming,can i do full option, 2d games or 3d games , what are the limitation for flash if not can you advice me about other tools
0
votes
1answer
49 views

Affect movieclip scale from a .as doc to another [closed]

I've been working on a game following a tutorial on the internet, the game is an avoider where you have the Avatar, that has to avoid the objects that fall. The way it is made is: I have a ...
1
vote
0answers
118 views

Any advice for dynamic music control?

I would like to be able to dynamically progress the score, and affect the volume levels of separate channels within the music. How could I do this? From my experience with mod music (olden days Amiga ...
0
votes
1answer
492 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 ...
2
votes
1answer
1k 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 ...
2
votes
1answer
452 views

How to use Pixel Bender (pbj) in ActionScript3 on large Vectors to make fast calculations?

Remember my old question: 2d game view camera zoom, rotation & offset using 'Filter' / 'Shader' processing? I figured I could use a Pixel Bender Shader to do the computation for ...
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 ...
6
votes
6answers
6k views

Most efficient 3d depth sorting for isometric 3d in AS3?

I am not using the built in 3d MovieClips, and I am storing the 3d location my way. I have read a few different articles on sorting depths, but most of them seem in efficient. I had a really ...
0
votes
2answers
318 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. ...
1
vote
2answers
709 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
2answers
276 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 - ...
3
votes
3answers
2k views

Multiplayer API with Unity 3.5 and AS3

On the faq for the current preview release, http://unity3d.com/unity/preview/faq it says that while networking is not currently supported for flash compilation, we can write our own in AS3 using the ...
1
vote
0answers
423 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
291 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 ...