2 Replies Latest reply on Oct 23, 2007 12:34 PM by dubsnz

    'Code behind' approach

      Hi, I've recently installed Flex 3 Beta 2, and am having trouble with the code behind approach that I successfully used in Flex 2.

      I have an ActionScript class UserDetailsClass which extends Canvas:
      package equinox.entityDetails
      public class UserDetailsClass extends Canvas

      I then have an MXML component UserDetails with a root tag UserDetailsClass:
      <?xml version="1.0" encoding="utf-8"?>
      <client:UserDetailsClass xmlns:client="equinox.entityDetails.*" xmlns:mx=" http://www.adobe.com/2006/mxml">
      <mx:TextInput id="txtName" left="114" right="10" top="21" text="{this.dataProvider.name}"/>

      This compiles and runs just fine as it did under Flex 2, but if I switch to Design view I get this:
      Design mode: Definition of UserDetailsClass not found. Choose Design > Refresh if this component was recently created.

      Clicking Refresh doesn't fix it, nor does re-starting Flex Builder, and the same problem is evident on two other machines. Anyone else had the same problem?