The actionscript tag has no wiki summary.
1
vote
0answers
17 views
Can I make a flash file I developed to run on Androis / IOS?
I've created a simple game using ActionScript 3.0 and Adobe Flash CS5.
Is there any way to run this creation on Android / Apple IOS ?
(Even if so, I still have no Idea how to work with "touch" ...
-4
votes
1answer
73 views
Get location of nearest array object [duplicate]
Is there an algorithm that would calculate the location of the nearest MovieClip in an array? Perhaps a loop? If so, what?
0
votes
1answer
94 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
76 views
What is faster, TimerEvent.TIMER or if(timer.running)?
In my game, I'm trying to prevent lag. I have timers for pushback. I'm using if(pushtimer.running), but is it faster to do pushtimer.addEventListener(TimerEvent.TIMER)?
Basically, should I add a ...
-4
votes
2answers
63 views
addChild with same MovieClip after RemoveChild
I have quite a bit of code like this:
var mov = new movclass;
if(somethinghappens){
addChild(mov);
}
inside the movclass class:
//im not going to put code right now, so just imagine a thirty ...
4
votes
0answers
256 views
FlashPunk + Flashdevelop - How to use sponsor provided preloader
I have developed a flash game using FlashPunk (on FlashDevelop). And now that I am trying to add a sponsor preloader and splashscreen to my game, I realize the flashpunk forums are down, and have been ...
-6
votes
2answers
136 views
X and Y values same as width and height? [closed]
I'm trying to make an expandable box in flash. The registration of down and up is to the left. the registration of left is in the middle. This is the code:
down.width -= 10; up.width -= 10; left.x ...
0
votes
1answer
110 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 ...
-4
votes
1answer
88 views
Error 2007 after gotoAndStop [closed]
My most unfavorite errors, error 2007 and error 1009.
TypeError: Error #2007: Parameter hitTestObject must be non-null.
at flash.display::DisplayObject/_hitTest()
at ...
2
votes
1answer
72 views
How to start external AS file playing on frame 2 (instead of frame 1)
I am using actionscript 3 and I have used an external actionscript file (.as) for my game.
I would like the external actionscript file to be played at frame 2 (instead of frame 1, as it is an ...
2
votes
1answer
115 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
238 views
How can I make an infinite cave using stage3d?
I want to make an infinite cave in my 3d game using flash stage3d. But I got no idea about how to build that cave. Can anyone can give me some solution or hint?
update:
I've tried agal fragment shader ...
0
votes
2answers
391 views
Design Pattern for Social Game Mission Mechanics
When we want to design a mission sub-system like in the The Ville or Sims Social, what kind of design pattern / idea would fit the best? There may be relation between missions (first do this then this ...
0
votes
1answer
403 views
how does server communication work in a flash game with a php backend
I am trying to create a browser game using actionscript/flash. Currently, I'm trying to understand how I would go about creating a back-end which interfaced with my MySQL database.
As far as I ...
3
votes
1answer
472 views
Any good web frameworks for asynchronous multiplayer games?
I'm trying to craft a site for web-based (original) board games, and my client (currently written in Actionscript, but that's highly fungible) works fine - I can play solitaire games in the client - ...
0
votes
1answer
88 views
Setting up speedtests in Actionscript 3 for an entire game
I'm very new to this so please forgive the questions possibly ill-stated nature.
Firstly is this even a valid way to speedtest:
public function L1() {
tree.x = 200;
tree.y = 200;
...
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 ...
7
votes
5answers
551 views
Circular Bullet Spread not Even
I'm creating a bullet shooter much in the style of Touhou. Right now I want to have a very simple circular shot being fired from the enemy.
See this picture:
As you can see, the spacing is very ...
0
votes
3answers
1k views
ActionScript 3.0 and iOS
In Adobe CS5 you can export games to iOS, but all my research in the past indicated that Apple was not going to support Flash. It's my understanding that Adobe and Apple were working on this at one ...
0
votes
5answers
2k views
Are there any sample projects for Flashpunk? [closed]
Are there any open source games using Flashpunk? The other big flash game library Flixel has a number of example projects, are there any equivalents for Flashpunk?
2
votes
1answer
709 views
UDK HUD problem
I'm trying to add a new element to the HUD, it's supposed to be a compass that should function like a minimap.
I've added this code to the main hud.swf:
var DcompassContainer:MovieClip = ...
4
votes
2answers
218 views
Controls for physics-enabled game object
I'm trying to put together 2D game on Flash ActionScript. Game objects positions are updated by physics library and I'm trying to control them applying forces and updating these forces every frame.
...
1
vote
2answers
172 views
Need help in determing what, if any, tools can be used to create a free Flash game
Yes I proudly -and sadly- declare that I am a complete nincompoop when it comes to Flash, and I have been fishing around the big wide web for information. The reason for this is that I have been ...
7
votes
6answers
1k views
Beginner flash game development: Start with framework or from scratch?
I want to write some simple flash games (as a hobby). I have a lot of programming experience, but no experience with Flash/ActionScript.
My question is:
As a beginner, is it a good idea to start with ...
4
votes
1answer
348 views
Is Scaleform/Flash used in console games for non-UI, game elements?
I work for Konami as a Flash developer, and got sent some code for a puzzle mini-game from a new, yet-to-be-released Silent Hill game for PS3/Xbox 360. It was a windows executable, but it was made in ...
-5
votes
2answers
317 views
my hitTest() doesnt work at times?
i have a code segment in which i use hitTest() a couple of times. and at a particular section the hitTest stops working. it doesnt test the collision of body a and body b
i tried using ...
4
votes
5answers
320 views
Developing Flash games on the Wii
Has anyone used WiiFlash for developing Flash games? Any pointers on how to begin developing games for the Opera channel for the Wii?
12
votes
2answers
1k views
What libraries do you use for developing games in Actionscript?
There are a couple of libraries I have used myself when developing games in Actionscript:
Flixel: Created by Adam Atomic, well known as the library created for Cannabalt. Very special for pixel ...