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
1answer
12 views

Reversing translational dependency of Sprite on Mouse instantaneously at runtime without causing the sprite to jump

Help me think through a logical way to implement the desired effect. Goal: (I'm using Adobe Animate CC 2017 targeting AIR for Desktop) Move a sprite using a controller (mouse on a PC for instance) ...
0
votes
0answers
10 views

Z ordring with as3isolib problem

I am using as3isolib in a big game. It is grate and easy to use but I face a big problem with the Z order of the objects after added to the scene. In the start every thing looks fine and sort very ...
0
votes
0answers
47 views

Database online game

I'm trying to narrow everything down but after doing some research, I seem to be more confused than ever about this. I have a flash game that's developed in Actionscript 3/Flashdevelop. I'm going to ...
0
votes
0answers
10 views

AS3 - Clone images with Bitmap

I'm trying to make a copy of a png img. var img:Bitmap = new sources.imgPng(); var copy:Bitmap = new Bitmap; copy = bb.BitmapData.clone(); addChild(img); ...
0
votes
0answers
34 views

Player level bar

I'm programming in AS3 using Flashdevelop. I'm trying to make a Player level bar to show whenever experience is gained, it will show progress. Like this, |/////----| where //// is experience ...
1
vote
2answers
81 views

How can we test a section of a game?

I'm making a clone of an old atari 2600 game, so it's simple, only slightly more complex than the original. I'm realizing that even the simplest of games have different "parts", what is a good ...
0
votes
0answers
10 views

Image overlap display

I'm trying to put together images to display the correct order of a shape. For example, a square that takes 4 lines to put together The problem with this, is that, these lines are represented by 4 ...
1
vote
0answers
20 views

Drawing simulator - Tracking mouse movement

I was wondering what would be the logic behind coding a drawing simulator like the one on this website: https://www.mdbg.net/chindict/chindict.php?page=chardict&cdcanoce=0&cdqchi= The ...
0
votes
1answer
11 views

lineStyle removed after colorTransform

I have these shapes with a lineStyle to outline the shapes, however, when I tried to do colorTransform, it will completely remove the outline of the shapes. Is there a way to make lineStyle constant? ...
0
votes
0answers
30 views

Speed correlation with code efficiency

I'm developing a simple tracing game where whenever you move the mouse cursor to an object Shape, the Shape will change colour. Upon coding, I've discovered 2 questionable flaws that my game might ...
1
vote
1answer
41 views

AS3 move object to a point

I'm trying to make a room full of monster each side and the player stay in the middle. I have a problem, I don't know how I move each monster to the player and rotate each of them to face the player, ...
0
votes
1answer
27 views

AS3 Client not sending movement to server

I am having trouble with multiplayer player movement in my game. The client is in AS3 and the server is in C#. Here is my problem: When I first launch the game, it connects to the server, and ...
0
votes
0answers
18 views

How to swap position between three objects by AS3?

import flash.geom.Point; var positions:Vector.<Point> = new Vector.<Point>(3); var p1:Point = new Point(78,200); var p2:Point = new Point(217,200); var p3:Point = new Point(356,200); ...
0
votes
1answer
66 views

How to get connect tiles in hexagonal Grid system

I've been developing a game where a number of tiles can drag into a hexagonal gird background. But some purpose i need to find the location of same tiles into a array and marge them. Data Layer ...
-4
votes
1answer
108 views

How to make game like Gals Panic [closed]

Any one have a idea how to build game like Gals Panic. I want to know the basic idea how can i start building the game. Note : im a flash game developer.So anything related to flash would be helpful. ...
1
vote
1answer
29 views

AS3 ScaleX is moving object across screen

I am trying to make an HP bar for my game. I have the code here private var hpBar:Sprite = new Sprite(); private function drawHPBar(s:Stage):void{ hpBar.graphics.beginFill(0xFF1717); //Medium Red ...
0
votes
1answer
24 views

Which better? Write all scripts on timeline or write it partially on `.as` file?

I'm going to create a flash game. But I don't know which way for me to write my scripts. Is it better if I write script part by part and by object so every object has they own script .. or write all ...
1
vote
1answer
48 views

how to save data in a visual novel with shared object

I've been looking for ways to save data in a visual novel, I have seen that the best way to do  is with shared object but the tutorials are usually saved scores and I want to save the history ...
0
votes
0answers
28 views

Movement within function doesn't work

So I’m having this problem with AS3 where I’m trying to make a function change an objects x position, but it doesn’t work. Other commands within the function work fine. The command to move the object ...
0
votes
1answer
33 views

AS3/Flashdevelop - Controlling a 2D character to move around a planet with gravity

With a little help I have managed to create a 2D planet with working gravity that constantly pulls a character towards its center. The only problem now is that I am completely stumped on how to make ...
0
votes
0answers
59 views

Air AS3 Desktop - Detecting wrong screen resolution and coordinate offset

I have an issue with developing an Air desktop app using FlashDevelop in ActionScript 3.0 I'm pretty much new to all this, but I think I made all I should and am wondering if this could be some bug ...
0
votes
1answer
142 views

AS3 Air - Custom slider - limit drag position

I'm facing issues with finding the right solution for detecting and limiting the Sprite object "Knob" moved on y axis inside it's parent sprite "Frame", using FlashDevelop 5. Using the code bellow I'...
0
votes
0answers
14 views

Render layered polygons

I am coding a video game in as3 for practice in game development/programming. It's a pixel game and I'm using my own game engine and I also created my own drawing api for thick lines and thin lines by ...
1
vote
1answer
74 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 ...
1
vote
0answers
71 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 assigned ...
0
votes
1answer
128 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
76 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
21 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
22 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
19 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") if(player....
3
votes
1answer
153 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
83 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
28 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
44 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
201 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
44 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 ...
-2
votes
1answer
64 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. ...
1
vote
2answers
90 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
234 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
1answer
37 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
154 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
469 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
144 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
175 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
310 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 I'...
0
votes
1answer
78 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
77 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
121 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
416 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
180 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 ...