[ascoders] timing problem

  • From: 1stPIXEL <1stpixel@xxxxxxxxxxxxxxx>
  • To: ascoders@xxxxxxxxxxxxx
  • Date: Tue, 30 Sep 2003 11:28:52 +0200

ich habe foldendes script mal eben zusammen gehackt:

Stage.align = "TL";
Stage.scaleMode = "noScale";
this.onResize = function () {
        mainWindow.setSize (Stage.width, Stage.height);
};
Stage.addListener (this);
this.onResize ();
//
// Achtung möglicher Zeilenumbruch ;-)
//
mainWindow = mx.managers.PopUpManager.createPopUp (_root, mx.containers.Window, false, {title:"TIME 
TRACKER", borderStyle:"inset", closeButton:true, contentPath:"timeTracker"});
mainWindow.setSize (Stage.width, Stage.height);
// LAYOUT START
mainWindow.setStyle ("fontFamily", LuicidaGrandeBold);
mainWindow.setStyle ("fontSize", 12);
// LAYOUT END
// ----------
// Event Manager for the main window:
WindowManager = {name:"WindowManager", parent:this};
WindowManager.click = function () {
        trace ("close Window event");
};
WindowManager.load = function (windowObj) {
        // mainWindow content clip:
        var c = windowObj.target.content;
        // Event Manager 'SubClass' for the dateField
        // Referencing the content of the window
        this.DateFieldManager = {parent:this};
        this.DateFieldManager.open = function (calendarObj) {
                // test2
                trace ("foo");
                // a reference to the new born calendar
                this.calendar = calendarObj.target.pullDown;
        };
        var df = c.dateField;
        // test1
        trace (df.addEventListener)
        // häää ?
        df.addEventListener ("open", this.DateFieldManager);
};
// registering WindowManager
mainWindow.addEventListener ("click", WindowManager);
mainWindow.addEventListener ("load", WindowManager);
//


packe nun jeweils eine componente der sorte Window, und DateField in meine lib, neuer movieclip gemacht packe DateField hinein, teste, und ...

nada!

wieso hat df alle seine Methoden verloren ? muss ich jetzt etwa noch ne schleife
bauen ???

1stpixel


------------------------------------------------------ Archiv : //www.freelists.org/archives/ascoders/ Optionen : //www.freelists.org/list/ascoders ------------------------------------------------------

Other related posts:

  • » [ascoders] timing problem