2 Replies Latest reply on Nov 17, 2006 2:42 PM by dragonsens

    Help with Lesson

    dragonsens
      I'm going through the lessons in Help and got stuck here.
      Create a transition
      with error
      1120: Access of undefined property myVBox.

      Code

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:states>
      <mx:State name="Advanced">
      <mx:AddChild relativeTo="{panel1}" position="lastChild">
      <mx:VBox x="20" y="160" height="188" width="160" id="myVbox">
      <mx:CheckBox label="Regular Expressions"/>
      <mx:CheckBox label="Case Sensative"/>
      <mx:CheckBox label="Exact Phrase"/>
      </mx:VBox>
      </mx:AddChild>
      <mx:SetEventHandler target="{linkbutton1}" name="click" handler="currentState=''"/>
      </mx:State>
      <mx:State/>
      </mx:states>

      <mx:transitions>
      <mx:Transition id="myTransition" fromState="*" toState="Advanced">
      <mx:Parallel target="{myVBox}">
      <mx:WipeDown duration="2000"/>
      <mx:Dissolve alphaFrom="0.0" alphaTo="1.0" duration="2000"/>
      </mx:Parallel>
      </mx:Transition>
      </mx:transitions>

      <mx:Panel x="5" y="5" width="300" height="400" layout="absolute" id="panel1">
      <mx:Label x="20" y="70" text="Search"/>
      <mx:TextInput x="20" y="90"/>
      <mx:Button x="185" y="90" label="Go"/>
      <mx:LinkButton x="20" y="120" label="Advanced Options" click="currentState='Advanced'" id="linkbutton1"/>
      </mx:Panel>
      </mx:Application>

      end code
      I'm following the lesson step by step. Whats wrong with this picture?

      Thanks.