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
25 views

AS3/Flash Develop - Radial Gravity (character on planet simulation)

I am trying to create a program where a character shape will be constantly drawn towards the centre of a planet shape. I have taken on previous advice into using physics equations to generate the ...
0
votes
0answers
16 views

Action Script 3 - Radial Gravity For A Planet Object In A Platformer Game And Its Class Structure [closed]

The game we are developing will be a traditional platformer game, except instead of moving from left to right to complete each level, the player must reach the centre of the circular level, or planet. ...
1
vote
0answers
20 views

Host Migration (P2P) with RTMFP and AS3

I was wondering if this is a possibility with RTMFP since it acts like UDP/P2P.. Host Migration Player A starts and host a game.. Player B and C connects.. Player A quits.. Player B is now ...
0
votes
1answer
42 views

AS3 .hitTestObject() not working with Tween function

(This was originally in an other senction but many told me to ask here, hopefully someone can answer this) I am having a major problem in my new browser app. Okay so I made game where different cubes ...
0
votes
0answers
21 views

pick up items in inventory box in adventure game with Flash AS3?

I use Flash with AS3 to design an adventure game. 4 rooms in 4 frames. Each room has its own layer plus its own button layer. The button layer also contains the objects. In the Bedroom is a ...
1
vote
0answers
8 views

Citrus Engine - How do I set-up the camera?

(Would be great if someone with greater rep created the Citrus Engine tag and add it to this question) I want to make a game where my inner starling stage dimensions are 320x240. My game will have ...
0
votes
0answers
7 views

Flash builder import swc movieclip

I do make 2 frame movieclip with flash cs6, There are a int value = 0 in first frame, second frame this int value=1 and I published this movieclip swc. Flash builder Import swc file but not read int ...
0
votes
0answers
16 views

How do I make a FlxSprite do something if it is falling or rising?

I want to make my FlxSprite play an animation when it falls or rises. Something like: override public function update():void { if(player.movingUp) player.play("animUp") ...
2
votes
1answer
54 views

2D Change Velocity Based on Distance XY While Moving Parabolic Arc

What I'm trying to achieve is that the entity moves in a parabolic curve, and no this has nothing to do with gravity before you ask. I give the entity a target position which it should move to, but ...
1
vote
2answers
61 views

How can I minimise memory thrashing when doing vector math in JavaScript or ActionScript?

Please note that a similar question has been asked before in the context of C#. Say I'm building a 3D game in Javascript or Actionscript, and doing a lot of 3D vector math. In current libraries, ...
1
vote
0answers
21 views

Customizing ease functions

I have this function that acts as a ease in: protected static function easeIn(ratio:Number):Number { return ratio * ratio * ratio; } Where ratio is a value between 0 ...
0
votes
0answers
35 views

Advice on adding RGB values

I am trying to make a flash game (I don't want to say too much). Part of the game is mixing colors. The problem with this is that these are colored wooden tiles and at first I was going to have each ...
3
votes
3answers
65 views

Moving objects in a circular path, and also moving the whole group

I have 8 elements distributed in a circle, with a common center. All of them move along a circular path, just like the poster in this question asked: Moving an object in a circular path This solves ...
1
vote
1answer
34 views

AS3 - Increase tint as health decreases

I'm working on a game where enemies continually spawn with more and more health based on how long you've been playing. As the enemies take damage, I'd like their sprite to get darker and darker, until ...
0
votes
0answers
8 views

Adding random IsoSpirite to the IsoSence

I am trying to add different type of objects to a scene using as3 Isolib. I have all of my objects ( each object has different class ) in an array and then pass them using for loop to a temp spirit ...
-2
votes
1answer
48 views

addChild does not work in Flash [closed]

Have been trying to understand this problem for two weeks. When I use addChild(movieclip) in the Main.as file, it works. When I try to use it in a function in a separate class file it does not work. ...
0
votes
0answers
24 views

Start a MovieClip inside IsoSprite

I am using as3Isolib and have some IsoSprite added to the isoSence. Those isoSprite contain a MovieClip. I want that when I click on the isoSprite, the MovieClip will play. I tried something like: ...
1
vote
2answers
60 views

Animate/Interpolate and wait for completion.

I'm implementing a blackjack game in flash and so far the logic is fine but there is no animation for the cards so they just appear and disappear which doesn't look very pleasing to the eye. I want to ...
0
votes
1answer
158 views

AS3 random events using a timer

I'm making a game for an assignment at university. The game I am making requires random household appliances around a house to "turn on" at random times. The player must run around the house turning ...
0
votes
0answers
19 views

Flixel FollowPath problems

So I have recently been using flixel for a while, but this is the first time I have tried to use the pathfinding functions. While this seems pretty straight forward, I am having a issue with it. I am ...
0
votes
0answers
77 views

Switch fullscreen resolution at game launch with Adobe AIR

I have a game built in AS3/Flixel that is turned into an executable with Adobe AIR. What's the best way to allow multiple fullscreen resolutions? We have already made the game work for multiple ...
0
votes
1answer
28 views

AC3 FlashPunk Console doesn't show anything

I am making my project using flashpunk , I knew that it has a good console gui to give feed about states of the game , however when I tried making it appear with the FP.console.enable() method it ...
3
votes
1answer
111 views

In AS3, is it necessary to remove the children from a parent who is also being removed?

My point is this: addChild(parentMC); parentMC.addChild(child1); parentMC.addChild(child2); If I want to then remove parentMC from the current container, is it necessary to also remove child1 and ...
1
vote
1answer
373 views

Framerate on AIR for Android - Actionscript 3

I am currently working on making Android apps using AIR for Android. This is a sample file and package that I am running to test the FPS and Memory usage of my application while it is not even doing ...
0
votes
1answer
92 views

Using box2d with starling

In my game I have a Main class in which i am initializing starling framework by passing Game class like below myStraling = new Starling(Game , stage); In the game class I have Instances of Welcome ...
1
vote
1answer
121 views

change the position of f3d objects randomly in action script

I have a f3d object and have different boxes to place the parts of the f3d objects.When i click on the button change the position of the boxes randomly. How it possible?This is the code for random ...
0
votes
0answers
238 views

isometric movement

I'm developing an isometric strategy game in flash using the Starling framework. I wanted to know what is the best way to move units about the isometric grid, and to render them the right way. Now ...
0
votes
1answer
68 views

Change DisplayObject's bounds in Flash/AS3

I'm developing some platform-like game using AS3 and Flash CS5 for animations. I've already done most of the mechanics now, and I've starded to drawing characters and animating them. But some problem ...
0
votes
1answer
70 views

Controlling depths of objects in Flash

I am trying to change depths/ layers of my gameobjects inside the game using flash. To be more specific, I have a horse object and a fence object. I set them up initially on stage and the horse layer ...
0
votes
1answer
86 views

multiple flash timeline animations with actionscript

I am not new to AS3 and Flash but new to Flash timeline animations and controlling them with AS3. Had posted a similar question last week but the solution did not work. Hope someone could help me out ...
2
votes
1answer
340 views

How should I manage states in my game?

I can't understand what design pattern I can take advantage to build an intro screen, help screen, level select screen, game screen, game over screen, altogether. I can make one in AS3, but the code ...
1
vote
1answer
146 views

Multiple animations on flash timeline

I am working on a game inside Flash with ActionScript 3. I have a horse game object with different animations for Walk, Run and so on. I have never worked with different animation types with Flash ...
1
vote
1answer
377 views

Mouse follow precision in flash

I am trying to implement a simple movement for one of game objects in flash/ AS3. I am using mouseX, mouseY for my object to follow the mouse pointer. It works fine but the problem is the precision of ...
1
vote
1answer
93 views

How do I combine matrix transformation with non-uniform screen scaling in Flash?

I'm using a Flash transformation matrix for affine transformation. I have a rectangular image being rotated and scaled (in 2D). There are two sets of scaling variables, ScreenScaleX and ScreenScaleY, ...
1
vote
1answer
196 views

integrating leaderboard from Newgrounds in flash game [closed]

I have made flash game and I want to show a leader board in that game. I have uploaded my game to kongregate.com. I have made a scoreboard there with the name of overLoadScore (overload is the name ...
0
votes
2answers
511 views

How can I save a global high score for all players in AS3?

I am developing a game in which I want to make a scoring system where the global high score is stored and shared by all players. I am using Flash and ActionScript 3. Until now I've used ...
1
vote
1answer
148 views

Effective content manager on AS3 Flash

In my game more than 600 images and 200 sounds. I'm try organize effective images and sounds manager for fast access. This is a good approach? public class Images { public static var ...
0
votes
1answer
72 views

Shared Object Not saving the level Progress

I am making a flash game in which i have a variable levelState that describes the current level in which user has entered I am using SharedObject to save the progress but it does not do so first i ...
-1
votes
1answer
303 views

AS3 eventListener not working [closed]

I am making a game with as3. I have a Mian Class.In its main function i am putting a movieClip stored in a variable named btn and attaching an EventListener to it for CLICK which envokes a function ...
0
votes
1answer
3k views

AS3 Starling in Fullscreen Mode cuts off most of the screen

I have a mixed mode (classic Flash Renderer + Starling) AIR AS3 project that I'm switching to fullscreen with stage.align=StageAlign.TOP_LEFT; stage.scaleMode=StageScaleMode.SHOW_ALL; // Swtich to ...
0
votes
0answers
385 views

Big game in Flash - how to create levels structure

I'm building a game in Flash similar to the structure of Angry Birds or Cut the Rope (where there are a number of "rooms" and unique levels created within each "room"). The user gets through the game ...
0
votes
2answers
324 views

Do Java and Actionscript use OpenGL?

As far as I know there are only 3 base graphics libraries on Windows, the GDI, OpenGL and DirectX, is that correct, so that means that Java, Actionscript and all language use one of these 3 libraries ...
2
votes
1answer
65 views

Why can't I swap fixtures on collision in Box2D?

I'm trying to swap the fixtures associated with a body after colliding with a specific obstacle. I can listen to the collision event by extending b2ContactListener. I tested it with a trace and it's ...
0
votes
1answer
56 views

How can I manage an animated UI from ActionScript?

I'm trying to code a game of Poker in AS3, using Flash Professional CS5 (although I try to keep as little code as possible in the .fla). When a player bets, for example, I need to be able to show an ...
1
vote
2answers
231 views

Collision detection circle-segment-segment

I've already implemented collision detection in my game loosely following this tutorial, which works great, but I realized there's one major flaw. The player and the enemies are circles, while the ...
4
votes
1answer
482 views

How to create a grid based on random shapes?

How to create a "grid" using actionscript like the image below? Basically you have an area of 1100x615 which should be filled with shapes that could be rotated and scaled... Collision detection ...
2
votes
1answer
324 views

Fixed timestep with interpolation in AS3

I'm trying to implement Glenn Fiedler's popular fixed timestep system as documented here: http://gafferongames.com/game-physics/fix-your-timestep/ In Flash. I'm fairly sure that I've got it set up ...
0
votes
2answers
146 views

Dynamic entities using classes and objects

I'm trying to create a program which involves the creation of several characters/entities. At the moment I have a Base Entity class an Entities class and a Main class. I can handle one entity ...
1
vote
2answers
578 views

Make a lives display in HUD, Flash AS3 (not text!)

I've been searching the internet all day and I can't find the answer I'm looking for. In my HUD I want to use orange dots to represent lives. The user starts off with 5 lives and every time they die, ...
0
votes
1answer
182 views

CDK (as3) false positives when using it with array elements

I'm having problems when using the CDK (Collision Detection Kit) with elements in an array. It keeps getting me false positives of collision. I'm making a game in which the player controls a “ship”, ...