SharpStyle Labs

Creativity is coming up with new things. Innovation is doing new things. We make software that helps you do both.

  • Pages

  • a

  • Archives

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:

  1. Add new file/class
  2. Start typing code
  3. Click outside of code editing window (console, project treeview, etc)
  4. Press Ctrl-Z
  5. Your new file is removed together with the work you’ve done
  6. If you think it is in the Recycle Bin — you are wrong!
  7. Redo also doesn’t work

Mike Grushin
CTO

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.