Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-30-2012, 06:10 AM   #1
White Belt
Join Date: Oct 2011
Posts: 80
Default Stage auto "On enter frame"?

Quick question, when you add an eventListener to the stage (in this case a keyPress), is there an inherited 'on enter frame' running?

Reason I ask is that when I add event listener to 'this' (this.addEventListener...) in my player class it wont move, but when I add to stage (stage.addEventListener), I can move it. Just wondering if that's the discrepancy?
crapageddon is offline   Reply With Quote
Old 08-01-2012, 08:23 AM   #2
creepcoder's Avatar
Join Date: Jun 2011
Location: Sweden
Posts: 60

I don't think so because in your case it is all about focus. (correct me if i'm wrong)
When you have written this.addEvent... have you tried to click on the player?
When you are using this you are focusing to the Player object on stage and when you are using stage you are focusing on the whole stage.
creepcoder is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 10:12 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.