2 Replies Latest reply on Jun 9, 2009 9:12 AM by RonaldTeo

    Problems with Steps 21-22 and 32 in Exercise 17

    cybohemia
      I have tried Exercise 17 several times and, each time, when I get to Step 21, I do exactly as the instruction states: I select the Login component in the Outline panel.

      Step 22 refers to a "highlighted component" on the stage but I don't see any. A couple of times, I saw handles and clicked within the component and deleted it, as instructed.

      When I return to the source view on Step 23, the Login component is still there so I'm not sure what Step 22 was meant for in the first place.

      In any case, I proceed and, when I get to Step 32, I run the application. But clicking the Submit button does not switch to the reservation view.

      Any ideas anyone?

      Thanks!

        • 1. Re: Problems with Steps 21-22 and 32 in Exercise 17
          Steve Howard, ACP Level 3

          The part you need to delete is underneath the image, so you cannot easily select eit.

           

          Easiest way is

          • click in the design window,
          • press COntrol+a to select all
          • control+click the image to deselect it
          • then press delete key - this will delete the caption from this state.

           

          Steve

          • 2. Re: Problems with Steps 21-22 and 32 in Exercise 17
            RonaldTeo

            Hi

             

             

            To get the reservation form to display after clicking submit, just add a "creationComplete = "init()"" to your application tag in "ResevationSystem.mxml". This is because, the init function never gets called and hence

             

             

             

             

             

             

             

             

             

            private

             

             

            function init():void

            {

            login.addEventListener("login",loginHandler);

            ]

             

             

            "ResevationSystem.mxml" never gets called.

             

             

            Your Application tag in "ResevationSystem.mxml"  should look like this

             

            <mx:Application

             

            xmlns:mx="http://www.adobe.com/2006/mxml"

            layout="

             

            absolute"

            xmlns:comp="

             

            components.*"

            themeColor="

             

            silver"

            backgroundColor="

             

            #62627F"

            horizontalScrollPolicy="

             

            off"

            creationComplete="init()"

             

            >      

             

            hope this helps

             

            regards,

            Ronald