Hi All!

I found that adding Text instance into HBox, defined in
<mx:target></mx:target> of <mx:AddChild></mx:AddChild> results in
throwing runtime exception "TypeError: Error #2007: Parameter
antiAliasType must be non-null". You can find the source attached.
Also I provide it below.

Example.mxml:

<?xml version="1.0" encoding="utf-8"?>
<ExampleBase xmlns:mx="http://www.adobe.com/2006/mxml";
        xmlns="*"
        creationComplete="onCreationComplete()">
        
        <states>
                <mx:State name="myState">
                        <mx:AddChild relativeTo="{this}" position="lastChild">
                                <mx:target>
                                        <mx:HBox id="myHBox" />
                                </mx:target>
                        </mx:AddChild>
                </mx:State>
        </states>
        
</ExampleBase>


ExampleBase.as:

package {

        import mx.containers.HBox;
        import mx.controls.Text;
        import mx.core.Application;

        public class ExampleBase extends Application {
                
                public var myHBox : HBox;
                
                public function ExampleBase() {
                }
                
                protected function onCreationComplete() : void {
                        myHBox.addChild(new Text());
                }
                
        }

}


Thank you in advance.

Regards, Sergey.


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcomponents/

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

Attachment: Example.mxml
Description: Binary data

Attachment: ExampleBase.as
Description: Binary data

Reply via email to