Help with Flex 1.5 to Flex 2 migration

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Help with Flex 1.5 to Flex 2 migration

    I am trying to migrate code from Flex 1.5 to Flex 2.0 and can't find any
    documentation that mentions replacement of createClassObject method. I am
    getting compilation error when I have createClassObject method. The error is :
    Call to possibly undefined method "createClassObject"

    createClassObject(UIObject, "_globalHighLight" , getNextHighestDepth() );

    gumnam Guest

  2. Similar Questions and Discussions

    1. Support document for Migration of application fro flex 2o flex 3
      Support document for Migration of application fro flex 2 o flex 3
    2. Flex 2 to Flex 3 Migration
      While running the application getting an error message send failed.(ie) not able to access the java class using the object defined in the remote...
    3. Flex 3 Migration Problems
      Hi Peter - We have not yet been able to address all of the issues that we see when compiling against the GA version of the SDK - there are many. ...
    4. Not Flex JSP tag lib def in flex-bootstrap.jar (Flex 2Beta 2)
      Hi, The taglib.tld file that was in the Flex 1.5 flex-bootstrap.jar isn't present in the Flex2 Beta2 version of that jar. The interfaces are there...
    5. Is the newest version of flex framework enough good fordeveloping flex rpc services?
      Hallo guys, I've already installed the newest version of flex framework (flex2 beta2 version). I already used beta1 version for developing Rpc...
  3. #2

    Default Re: Help with Flex 1.5 to Flex 2 migration

    With Flex 2 you can now simply use addChild and removeChild methods to create
    new UI objects, for example let's say you want to add a Button to you VBox. You
    would then create a new button -

    var btn:Button = new Button();

    you can then assign a label on the button -

    btn.label = "Click me!";

    and then by refencing the component you wish to add it to you can simply call
    -

    myVbox.addChild( btn );

    ## I know the above example is rather simplified but Flex 2 makes things so
    much easier ;-)

    Andrew

    Andrew Spaulding Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139