When changing the id corrects a problem, suspect a collision with a
reserved word.  Such collisions often have drastic results like you see.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of animate123
Sent: Friday, March 30, 2007 1:27 PM
To: [email protected]
Subject: [flexcoders] Crash VM -- tree with form

 

Odd problem. This crashes the VM. I have stripped this down as far as
I could and still don't see why. There are two files:

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " 
xmlns="view.*"
>
<MyTree/>
</mx:Application>

And, in view/MyTree.xml:

<?xml version="1.0"?>
<mx:VBox width="100%" height="100%"
xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " >
<mx:Tree labelField="@label" showRoot="true" width="160">
<mx:XMLListCollection id="MailBox">
<mx:XMLList>
<folder label="Mail">
</folder>
</mx:XMLList>
</mx:XMLListCollection>
</mx:Tree>
<mx:Form>
<mx:FormItem label="Owner">
<mx:TextInput id="owner" width="200"/>
</mx:FormItem>
</mx:Form>

</mx:VBox>

If I remove the tree or change the id="owner" to id="owner2" it
works fine. 

This is Windows with Flex 2.0.1 SDK.

Thanks.

 

Reply via email to