Questions tagged [enterframeevent]

EnterFrame event is used in ActionScript programming. The main purpose of this event is to generate animations pro-grammatically. This event is triggered based on FPS (i.e Frames Per Second) a term used in animation. e.g. Say FPS=30 fps, then this event will be triggered 30 times per second thus simulating frames.

37 questions
0
votes
2 answers

as3 how to stop an infinite loop?

I have a website, and basically I want to use flash to automatically redirect the web site to another with as soon as its load. But it keeps rapidfiring, and has even crashed my computer at one point. How can I set this to only only send the user…
0
votes
1 answer

Corona Sdk frame number per second

I read that frame rate is 30 or 60 in Corona Sdk. However in my piece of code, the numbers are written 33 times with enterframe listener. Can you explain the reason to me, please? local start=os.time() local function countDown(event) …
Figen Güngör
  • 12,169
  • 14
  • 66
  • 108
0
votes
1 answer

Stop function creating bitmaps/reduce cpu overload/reduce lag

Hi I'm noticing that the following code is producing a noticeable chunk of lag when it is incorporated. public function impassable_collisions():void { //prevent player from moving through impassable mcs for each(var mc:MovieClip in…
Larry
  • 33
  • 7
0
votes
1 answer

how to make an object vanish at certain point as3

I have a movie clip called food which I put in an array called foodArray. It has its own class (named Mover) which makes each food move to the right. when it reaches certain point, the food will vanish. Here is the code to make the food vanish I put…
0
votes
2 answers

ENTER FRAME stops working without error

When does ENTER_FRAME stops? 1. removeEventListener(Event.ENTER_FRAME,abc); 2. error occurs or the flash crashes 3. the instance of class is removed from stage 4. ? The story: I have several AS document for a game,one of it contains ENTER_FRAME…
sbk201
  • 168
  • 2
  • 8
0
votes
3 answers

AS3 - stop onEnterFrame Function from constantly running

Okay, I have a collisionTest function that is tied to my "onEnterFrameHandler" function. So to simplify the way it looks: onEnterFrameHandler(e:Event):void{ testCollision(); } testCollision():void{ trace("always running"); …
Joseph Wagner
  • 303
  • 3
  • 16
0
votes
2 answers

Access function with ENTER_FRAME event from one class and send updates to other class in AS3

I want to start a project. But, while doing a paperwork, i realized one situation as follows, Say, we have 3 classes. Main.as, A.as, B.as Here, "Main.as" is a central class which creates instance of A and B. Class A has some function say…
Rajneesh Gaikwad
  • 1,193
  • 2
  • 14
  • 30
1 2
3