Hi... i'm trying to manage the graphic Interface through a class.
This class, for example, can manage buttons, states of the application, and
also must be able to load movieclips in levels.
I thought in MovieClipLoader cos i have to make certain operations in the
loaded level after load it, like positioning objects and so on...
i have a problem. I use the same class as listener in the way of (this is
near to pseudoCode) :
---IN CONSTRUCTOR
_mcl = new MovieClipLoader();
_mcl.addListener(this);
---I HAVE MY OWN listeners in the CLASS
public function onLoadInit(target_mc:MovieClip):Void {
trace("LOADED!");
_state = LOADED;
}
---This is one of the methods that manage states and positions in the graphic
interface
private function updateInterface(sMovieName:String):Void {
...
_level0.maps._visible = false;
//loadClip in Level1
_mcl.loadClip(sMovieName, 1);
//THIS INSTRUCTION HANG FLASH GETTING ALL RESOURCES AND NO
//TRACES OF onLoadInit or another Handlers of MovieClipLoader
while (_state != LOADED) {
trace("loading...");
}
//Instructions that must be made after load movieclip in level1
_level1.myMovieClip._visible = true;
//... etc
-----------------------------
i hope u understood my problem. i don't want to make those final operations
in the listeners... i want to make a generic class for a lot of cases...
thank u so much
---------------------------------
Correo Yahoo!
Comprueba qué es nuevo, aquí
http://correo.yahoo.es
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders