The actionscript tag has no wiki summary.
-5
votes
0answers
91 views
Classic random script [closed]
I dont understand why
random(99);
and
engine<=14)
and
engine<=69)
and
else { //this is the remainding percentage which is accorded to "9".
randomnumber = 9; #
on (release) {
...
-4
votes
1answer
59 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
52 views
How to stretch Movie Clip according to user's touch coordinates?
I have code like this:
touchX = stage.stageX;
touchY = stage.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 ...
-1
votes
1answer
57 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
47 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 ...
-2
votes
0answers
34 views
Bullet Array Lag [closed]
In my game, the user holds down their finger to create an array of bullets. One bullet creates every 8 frames, and my framerate is 24. How do I prevent lag with such an array? To add to the ...
4
votes
0answers
210 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 ...
-5
votes
2answers
116 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
106 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
77 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
61 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
95 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
215 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
368 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
342 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 ...