In my current layout, I needed a custom popup menu on click of an 
icon. So, I used the createClassObject method to invoke a custom mxml 
component. Here is the function:

private function callMe(obj):Void{
        if(!menuCreated){
        var rm:Object = createClassObject
(roomMenu,"rooms",getNextHighestDepth());
        rm.x = obj.target._x+20;
        rm.y = obj.target._y+20;
        menuCreated = true;
        }
        else{
        destroyObject("rooms");
        menuCreated = false;
        }
}

I am facing 2 issues:
i) The object is not getting destroyed.
ii) The mouse focus goes to the controls which are behind the menu 
component.

How do I solve these?

Thanks






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/
 


Reply via email to