Ok I am sick and am not thinking right. Excuse my other post's misspellings (say=saw). But the doLater is not the issue. Its the timer. I dont want to do it on a click event but a timed event with setInterval.
The click makes sense because the PopUp has been rendered but with a timed function (setInterval) it seems to get mixed up somewhere. --- In [email protected], "JesterXL" <[EMAIL PROTECTED]> wrote: > Yes, if you, typically, do a deletePopUp when the event was triggered by the > popup itself, there's some kind of reference to the popup kept around. > > I've found that if I do something like this: > > function initApp() > { > popup = PopUpManager.createPopUp(this, TitleWindow, true); > popup.addEventListener("click", this); > } > > > function click() > { > doLater(this, "removePopUp"); > } > > function removePopUp() > { > popup.deletePopUp(); > } > > It's ok but if I were to immediately remove it, the dropshadow still is > there. Anyway, the above works all the time. > > ----- Original Message ----- > From: "kaibabsowats" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Wednesday, April 20, 2005 1:31 PM > Subject: [flexcoders] Re: PopUpManager > > > > > A solution to my own question: > function interval() { > this.setStyle( "dropShadow", false ); > clearInterval( this.intervalNumber ); > doLater( this, "deletePopUp" ); > } > > But this seems like a hack, and the fact that the dropShadow stays > around seems like a bug? Anyone seen this before? > > > > > > > Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

