RE: [flexcoders] Re: how to close a titlewindow that was not created as a popup

2009-03-09 Thread Ryan Graham
Post some code and we'll take it from there... From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of stinasius Sent: Friday, March 06, 2009 10:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: how to close a titlewindow that was not created as a popup

[flexcoders] Re: how to close a titlewindow that was not created as a popup

2009-03-09 Thread stinasius
this is my code import mx.containers.TitleWindow; private function closeWindow(event:Event):void{ removeChild( event.target as TitleWindow); currentState=''; }

RE: [flexcoders] Re: how to close a titlewindow that was not created as a popup

2009-03-06 Thread Ryan Graham
Sure: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.containers.TitleWindow; private function onClose(event:Event):void {

[flexcoders] Re: how to close a titlewindow that was not created as a popup

2009-03-06 Thread stinasius
i am getting this error when i apply your code. ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/removeChild() at mx.core::Container/removeChild() at custom_comps::login_register/closeWindow()

[flexcoders] Re: how to close a titlewindow that was not created as a popup

2009-03-06 Thread stinasius
am calling it from with the titlewindow i would like to close. i also tried calling it from the parent page that calls the custom titlewindow.

[flexcoders] Re: how to close a titlewindow that was not created as a popup

2009-03-05 Thread stinasius
care to share how?