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.
Questions tagged [enterframeevent]
37 questions
0
votes
1 answer
Enter Frame does not detect hitTestObject precisely when tweenling
I have a function with Enter_Frame running and have it tween during the function. I know you could use object.y=object.y + 1 instead of the TweenLite i'm using now. But TweenLite gives the best effect I wanted. My problem now is, I wanted to remove…

Hwang
- 502
- 1
- 12
- 32
0
votes
3 answers
AS3 - How to stop player when touching object using hitTestObject?
I would like to know how to stop a the player when touching an object. I have movements set up here but I could not find a way to make my player properly stop when touching objects.
My player's movement code in the player Class:
This is the event…

Crook
- 317
- 1
- 3
- 12
0
votes
1 answer
How to stop a Movie Clip from Moving Diagonal?
Hey everyone this one has me stumped. So I have an Array of Movie clips called sharkthat are added to the stage from either the left or the right side of the stage. Now when they are added I have them move in either the positive or negative x…

Nathan
- 536
- 4
- 21
0
votes
0 answers
Movie Clip Object adding Multiple Times with Enter_Frame Event
Hey Guys so I am using TweenLite to act as a timer for Performance with Mobile usage. I ran into a little problem here that I can't seem to figure out. So In my ENTER_FRAME Listener I have this function difficultyController Where I add my TweenLite…

Nathan
- 536
- 4
- 21
0
votes
1 answer
Can't make MovieClip in function dissapear
I'm trying to make simple shooting game with Fiat Multipla falling up to bottom of the screen. I have created function to generate falling multipla and within this function I have a problem.
The main issue is that after change of multideath status…

Liquid
- 1
- 3
0
votes
1 answer
ENTER_FRAME Event not working correctly with MouseEvent As3
I know I am missing something very simple but I just can't seem to figure it out. So I have my buttons that control a log on the stage like so:
//buttons for main screen left and right
mainScreen.leftBtn.addEventListener(MouseEvent.CLICK,…

Nathan
- 536
- 4
- 21
0
votes
1 answer
Can the ENTER_FRAME event be missed or received delayed by the listener?
Is ENTER_FRAME always received, even if another process occupies the CPU, OR the listener might miss one or more ENTER_FRAME events -then receive several of those events delayed in a batch as usually happens in Windows?
(I'm using pure AS3 and…

BEIC
- 67
- 7
0
votes
1 answer
Is ENTER_FRAME dispatched at the end of vertical blanking signal or at the start of window?
Is ENTER_FRAME dispatched at the end of vertical blanking signal (vblank or vsync) -the actual beginning of the frame on the screen, OR at the beginning of the flash window (if the stage3D app is in window mode), OR in an imprecise timing (depending…

BEIC
- 67
- 7
0
votes
0 answers
AS3 - Movie Clip animations (undesirably) bob up and down. [Playable SWF included]
Im making a game where the player controls a movieclip (_character) around the stage with the arrows or WASD. On the stage there are squares/boxes with collision detection. Plus a 50 pixel stage boundary.
_character has five key frames, each with…

Rookie
- 31
- 7
0
votes
1 answer
AS3 - Friction(?) causing Movie Clip to jump, temporarily alter path (playable SWF included)
Im making a game in FlashBuilder where the player controls a movieclip (_character) around the stage with the arrows or WASD. On the stage there are squares/boxes with collision detection and a 50 pixel border around.
While testing Ive noticed that…

Rookie
- 31
- 7
0
votes
1 answer
AS3 Make a Movieclip vanish when left alone for a certain duration
Original Edit
I am wanting to know the best method for a making a movieClip fade way on the stage. I can guess how to do it in as2 (that's what I was taught in) but I'm unsure how to to develop my code below. As a guess I would assume to attach it…

user3082874
- 61
- 2
- 11
0
votes
2 answers
How do I run code inside an event function for an ENTER_FRAME listener that does not run once every frame?
So, I have code similar to this (this is for demonstration purposes):
addEventListener(Event.ENTER_FRAME, enterFrameFunction);
function enterFrameFunction(e:Event):void{
if(sampleMovieClip1.hitTestObject(sampleMovieClip2)){
…

user3168412
- 5
- 2
0
votes
2 answers
AS3 Countdown Timer experiences extreme framerate loss over time
I have a simple countdown timer written in AS3 that builds up CPU use and frame render time progressively over time to the point of frame rate dropping to 2-3 per second over the course of 10 minutes. The timeline has 1 frame and the stage has 4…

Seth Phillips
- 87
- 9
0
votes
1 answer
Screen Scrolling not working for Right and Bottom edges AS3
Hi the following code works when scrolling to either the left or right edges of the screen in my game; however when scrolling to the right or bottom edge of the screen when the edge of the "map" has been reached I am able to see beyond the edge of…

Larry
- 33
- 7
0
votes
2 answers
EnterFrame event stops early in Corona
I would like to expand my rect in width increasing by 1 and want it to stop when it reaches the screen width. However, It stops increasing in the middle of the screen in my code. Can you tell me please what I am…

Figen Güngör
- 12,169
- 14
- 66
- 108