Hi All!

I have MyObject class that implements IMXMLObject interface:

package {

        import mx.core.IMXMLObject;

        public class MyObject implements IMXMLObject {

                public function initialized(document:Object, id:String):void {
                }
                
        }

}

And application that instantiates this class instance:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
        xmlns:local="*">

        <local:MyObject />

</mx:Application>

But when I put <local:MyObject /> into <mx:VBox /> "Component
declarations are not allowed here. (Note: visual children must
implement mx.core.IUIComponent)" error appears:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
        xmlns:local="*">

        <mx:VBox>
                <local:MyObject />
        </mx:VBox>

</mx:Application>


Though "native" RadioButtonGroup works ok everywhere.

Sergey.


--
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