3 Replies Latest reply on May 18, 2006 12:31 PM by Newsgroup_User

    How to get a name of the current marker?

    miche_r Level 1
      I have two director files with same identical marker names (2 language versions). How I can make a button that changes the language (goes to the same marker of the other file). Something like... go to "current marker name here" of movie "language_2".
        • 1. Re: How to get a name of the current marker?
          Yochai Gani
          go to the frameLabel of movie "language_2"

          Simple as that.

          Yochai Gani
          • 2. Re: How to get a name of the current marker?
            Level 7
            When I need to store the current marker, I make a frame script under the
            marker with something like

            global gCurrentMarker

            on exitframe me
            gCurrentMarker = the framelabel
            end if

            Then you can just do the

            go to gCurrentMarker of movie "language_2"

            There's probabably a newer way to do it, but this works for me.

            Timm

            "temes" <webforumsuser@macromedia.com> wrote in message
            news:e4hate$ods$1@forums.macromedia.com...
            >I have two director files with same identical marker names (2 language
            > versions). How I can make a button that changes the language (goes to the
            > same
            > marker of the other file). Something like... go to "current marker name
            > here"
            > of movie "language_2".
            >


            • 3. Re: How to get a name of the current marker?
              Level 7
              ok, now the really cool method. You can get any marker name whether it's
              above the current frame or not.

              mkrName = (the markerList)[(marker (0)).string]

              will give you the marker above the current frame or the first marker to the
              left of the current frame if there is no marker above the current frame.

              Similarly,

              mkrName = (the markerList)[(marker (1)).string]

              will give you the first marker to the right of the current frame whether
              there is a marker above the current frame or not. You can see how you can
              get the name of any marker just by changing the parameter of the marker ()
              function.

              If you're worried that the first example doesn't tell you whether the marker
              is above or behind the current frame a simple test will do.

              if marker (0) = the frame then
              -- this is true when the marker is on the current frame
              end if


              --
              Craig Wollman
              Word of Mouth Productions

              phone 212 928 9581
              fax 212 928 9582
              159-00 Riverside Drive West #5H-70
              NY, NY 10032
              www.wordofmouthpros.com


              "temes" <webforumsuser@macromedia.com> wrote in message
              news:e4hate$ods$1@forums.macromedia.com...
              >I have two director files with same identical marker names (2 language
              > versions). How I can make a button that changes the language (goes to the
              > same
              > marker of the other file). Something like... go to "current marker name
              > here"
              > of movie "language_2".
              >