TwelvestoneFlash

MC always on top?!!! HOW?


Sign in

  • Waiting for Godot ( 720 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 4.8 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.8 k posts )
    general front end design an...
  • Back End ( 9.6 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
Storm
 
2010-08-16

AS3 of course....forgot to put that in the title.

I have a class that does all the web services for client's apps. I have included a few debuggers for them but I'm running into the problem if how to always keep the debuggers on top. The only thing I can find in a search is 'how to use the new Display List in AS3' .....FFS.

That's not what I need asshats.

I'm trying to use a stage reference to see when anything is added and do a switch. I know its the right approach but my class (cast as an MC to show the objects) is unable to hear this:

private var stageRef:Stage; stageRef.addEventListener(Event.ADDED, displayHandler);

I also tried: stageRef.addEventListener(Event.ADDED_TO_STAGE, displayHandler);

Since I cannot predict what developers will do with this framework nor can I force them to add something in their program, I want to be able to always keep my MC on top of anything added dynamically because my class MUST be called first. Once they start adding things, I get messed up if I add debuggers to the display list.

BOBBYLOVEVILLE
 
2010-08-16

shit...from the title I thought this thread was about MarkyClarky always being on top - with pics!

:sads:

Storm
 
2010-08-16

just have some junior mints on hand

JLM
 
2010-08-17

If you create two sprites and then only allow them to addChild to the first then you won't have a problem use keys to hide show the second panel. But I set the mm file and use the flashlog.txt to trace, but with swish I actually used local connection to pass traces from swish to flash ide trace output window. You can always re add your sprite to the display list every frame since I guess reduced performance when debugging is not the end of the world. As3 does have prototypes.. so you might actually be able to overwrite the prototype for addChild at run time. another option is to send data to a textfile either in real time or save data and periodically transfer it to javascript or backend.

Storm
 
2010-08-17

no i can't. My product is used by others.

Since I cannot predict what developers will do with this framework nor can I force them to add something in their program, I want to be able to always keep my MC on top of anything added dynamically because my class MUST be called first.

Storm
 
2010-08-18

http://www.senocular.com/?entry=358

So, this event is never triggered. I'll have to just building something internally that once they call one of my functions, I just move it up myself with a function call. Hack I know but all I can do I think.

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

MC always on top?!!! HOW?