Flex Builder 3 Beta 2 issues
Posted by sharpstyle on October 13, 2007
We are playing around with Flex Builder 3 and I ran into a few issues that I wanted to document:
————————————————————————
<mx:Label x="62" y="75" text="Label" width="517" height="353" id="_label"/>
You cannot user "_label" or "label" as id of <mx:Label>. Flex gives the following errors
_label: Attempting to initialize non-public inherited property ‘_label’ from MXML
label: Attempting to initialize inherited property ‘label’ of type ‘String’ with value of incompatible type ‘mx.controls.Label’.
————————————————————————
Consider the following simple application.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="ApplicationComplete()">
<mx:Script>
<![CDATA[
private function ApplicationComplete() : void
{
_presetsTextArea.text = "Test";
}
]]>
</mx:Script>
<mx:TabNavigator bottom="9" right="9" left="10" top="10">
<mx:Canvas label="Visual" width="100%" height="100%">
</mx:Canvas><mx:Canvas label="Source" width="100%" height="100%">
<mx:TextArea id="_presetsTextArea" right="10" bottom="37" left="10" top="10"/>
<mx:Button x="810" y="665" label="Apply"/>
</mx:Canvas>
</mx:TabNavigator>
</mx:Application>
The following line produces a runtime error:
_presetsTextArea.text = "Test";
Error:
Cannot access a property or method of a null object reference.
Works fine if TexInput is in the first "tab". After some debugging it looks like immediate children of TabNavigator are added to stage, but canvas children are added only when user clicks on the appropriate tab. Not the behavior I expected.
————————————————————————
You have to be careful which part of Flex Builder is focused when you press Ctrl-Z:
- Add new file/class
- Start typing code
- Click outside of code editing window (console, project treeview, etc)
- Press Ctrl-Z
- Your new file is removed together with the work you’ve done
- If you think it is in the Recycle Bin — you are wrong!
- Redo also doesn’t work
Mike Grushin
CTO