4 Replies Latest reply on Jun 15, 2007 7:05 AM by Newsgroup_User

    linking to canvas

    Level 7
      Hi All

      how do I link between canvases?

      Bill


        • 1. Re: linking to canvas
          sharonma
          Hi Bill,

          Can you give us more info or examples on how you want it to work?

          thanks,
          Sharon
          • 2. Re: linking to canvas
            Level 7
            Hi Sharon

            well ,I've scrapped this idea but have ran into another one.

            I have an accordion menu with five levels. Most of us would know to select
            the next accordion level to open that view but I'm sure there will be many
            that won't know how to move on to the next level, so I would like to add a
            <mx:ButtonLink> to the bottom of each accordion section. It displays the
            text "Next" and I want it to open the next accordion panel just as it would
            if they select the next accordion bar.

            That where I'm at right now. Do you understand what I mean?? Any idea how
            to accomplish that??

            Bill


            "sharonma" <webforumsuser@macromedia.com> wrote in message
            news:f4s35a$472$1@forums.macromedia.com...
            > Hi Bill,
            >
            > Can you give us more info or examples on how you want it to work?
            >
            > thanks,
            > Sharon


            • 3. Re: linking to canvas
              GordonSmith Level 4
              Give the ButtonLink a 'click' handler that increments the selectedIndex of the Accordion.
              • 4. Re: linking to canvas
                Level 7
                Sweet Gordon,

                Thank you. That worked

                <mx:LinkButton x="339" y="40" label="LinkButton"
                click="AccordionFocusHandler('next');"/>

                private function AccordionFocusHandler(event:String):void
                {
                if (event == 'next')
                {
                accordion.selectedIndex++;
                }
                }

                Bill


                "GordonSmith" <webforumsuser@macromedia.com> wrote in message
                news:f4t2pm$bk7$1@forums.macromedia.com...
                > Give the ButtonLink a 'click' handler that increments the selectedIndex of
                > the Accordion.