-1
votes
0answers
22 views

How to calculate the width of text on screen? [closed]

In my game I have a dynamic text_box named score_text and behind it I have a movie clip named score_bg. When the score increases the width of the movie clip increases to fit the score. Now the problem ...
0
votes
0answers
4 views

Installing as3isolib on Flash CS6? [closed]

Anyone have any suggestion of how to do this? There are detailed instructions for Flash Builder but none for installing on Flash. I've been tinkering with it for several hours now. The library ...
0
votes
1answer
3 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
24 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
29 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 ...
1
vote
1answer
33 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
49 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
38 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
70 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
72 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
74 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
40 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
62 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
483 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
136 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
0answers
110 views

How to find correct offset to adjust sprite to the position of box2D body after rotation

I am trying to implement phsyics with the as3 box2d port. I currently have a b2body for each of some certain sprites in my game and I am able to update the sprite's positions correctly from the ...
0
votes
1answer
41 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 ...
0
votes
0answers
60 views

how to effectiently manage flash (mobile) game structure?

my team and I are building an android game using flash cs6.. 16 levels are done so far but we are still optimizing the game (specially the structure). our game is currently structured like shown in ...
1
vote
1answer
153 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
307 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
97 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”, ...
0
votes
1answer
204 views

How does MMO flash games works? [closed]

I want to know how does MMO flash games work, for example: Dofus and Club Penguin. I want to know if by ony using Adobe Flash and ActionScript you can do MMO games, or if there is other way to work ...
1
vote
1answer
301 views

How can I get my Flash game to scale to all mobile device screen sizes?

I want my application to automatically scale its size depending on the screen size. I want my application to fit any screen size automatically. I am making my application for mobile devices, how can I ...
0
votes
1answer
254 views

OnClick events - using Scaleform UI with Cryengine 3.5.4

I've created a UI in Flash, set up an xml file for it and designed a flowgraph to ensure it displays when I launch. However, clicking on the buttons doesn't appear to do anything, despite me writing ...
0
votes
1answer
142 views

Using external music mp3 in flash game [closed]

sorry for my english. Im relative new to flash game development, Im creating a game and I need some big size mp3 files. If I add them into flash, .swf file will be too big. I guess I need to host mp3 ...
0
votes
2answers
166 views

declaring variables in a render/game loop: good idea or bad?

I was just wondering how most of you like to declare your variables: for a variable you know will be used and changed frequently (i.e. every frame), do you declare those outside of the loop and simply ...
2
votes
0answers
162 views

Away3D & Directional Light w/ Rotating Meshes

This is likely a stupid error but I can't seem to find what I've done wrong. I've got a simple scene with 10 cylinders rotating at a default speed. If I grab one of these cylinders I can rotate it ...
0
votes
1answer
87 views

Dynamically editing a movieclip at runtime

I am trying to make a flash game(actionScript-3 if it matters) to test what I learned so far. And, in the game, I want to make the character(a robot?) customizable. The first solution I found was to ...
0
votes
1answer
481 views

AS3 + Flash IDE - Stage Boundaries and Collision in Sidescroller not working properly

I am trying to do a pretty simple sidescroller in Action Script 3 with Flash CS6 and I am currently stuck at the stage boundaries and the level scrolling. My hero should move freely in the middle of ...
0
votes
1answer
120 views

How to stretch Movie Clip according to user's touch coordinates?

I have code like this: touchX = e.stageX; touchY = e.stageY; I also have a player movieclip that I'm trying to make shoot lasers. So I got the MovieClip to appear and rotate according to the ...
-1
votes
1answer
297 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 ...
0
votes
1answer
248 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
2answers
91 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 ...
1
vote
1answer
670 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 ...
0
votes
2answers
292 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 ...
0
votes
1answer
106 views

Make colour change depending on time

I'm making a Flash game (ActionScript 3) and for dynamics I'd like to make the background change colour depending on the clients' time of day. I have a rough idea on how I want to do this, At ...
0
votes
1answer
220 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 ...
1
vote
1answer
104 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 ...
1
vote
1answer
1k views

How to check the device type using Adobe AIR for iOS

How do I check what kind of device the user is running my Adobe AIR app on? Example: if(device == ipad3) { stagestuff.width = 300; }
2
votes
3answers
205 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
314 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 ...
0
votes
1answer
481 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 ...
0
votes
1answer
261 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", ...
0
votes
1answer
130 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 ...
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 ...
1
vote
2answers
240 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 ...
1
vote
2answers
613 views

Use FlxAnim to Animate a FlxSprite in Flixel on FlashBuilder

I am trying to animate a FlxSprite, whose image I loaded from an embedded sprite sheet. I instantiate the sprite like this: // embedding a png file given a relative path ...
3
votes
1answer
633 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 ...
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 ...
2
votes
2answers
288 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 ...