2 Replies Latest reply on Dec 25, 2007 3:30 PM by Newsgroup_User

    go to movie in folder

    sensiblemind
      hi all
      i have strange problem here , i have main movie and others movie in folders i called the movies from folder using ths smiple code "go to movie" but when i wanted to return to the main movie above i make error
      thnx
        • 1. Re: go to movie in folder
          Level 7
          You can find the path of the movie one folder above folder i (which is where
          your main movie will be) or you could save the trouble and just remember the
          main movie path in a variable.

          -- put this inside the script but outside the behavior used to navigate
          global gMainMoviePath

          -- inside the behavior that's used to navigate to a movie in folder i, put
          this before your "go to...":
          gMainMoviePath = the moviePath

          Then when you want to return to the main movie just declare the global again
          in that script and:

          go to gMainMoviePath & "the name of your dir goes here in quotes"

          Craig


          "sensiblemind" <webforumsuser@macromedia.com> wrote in message
          news:fkr958$l11$1@forums.macromedia.com...
          > hi all
          > i have strange problem here , i have main movie and others movie in
          > folders i
          > called the movies from folder using ths smiple code "go to movie" but when
          > i
          > wanted to return to the main movie above i make error
          > thnx
          >


          • 2. Re: go to movie in folder
            Level 7
            sensiblemind wrote:

            > hi all
            > i have strange problem here , i have main movie and others movie in folders i
            > called the movies from folder using ths smiple code "go to movie" but when i
            > wanted to return to the main movie above i make error
            > thnx

            Hi,

            To jump to a movie in a subfolder called 'movies', you can use:
            go to movie the moviePath & "movies\nameofMovie"

            You can also use use the @ operator followed by the path structure with / \ or:
            Search the @ pathname operator under the help file for examples but for now, here
            are some:
            Example 1: These are equivalent expressions that specify the file linkedFile, in
            the subfolder bigFolder, which is in the current movie’s folder:
            @:bigFolder:linkedFile
            @\bigFolder\linkedFile
            @/bigFolder/linkedFile

            Example 2: These are equivalent expressions that specify the file linkedFile,
            which is in the folder otherFolder. The otherFolder folder is in the folder one
            level up from the current movie’s folder.
            @::otherFolder:linkedFile
            @\\otherFolder\linkedFile
            @//otherFolder/linkedFile

            So, you may use:
            go to movie the moviePath & "@\\nameofMovie"
            to go up a folder level and find movie 'nameofMovie'.

            regards
            Dean

            Director Lecturer / Consultant / Director Enthusiast
            http://www.fbe.unsw.edu.au/learning/director
            http://www.multimediacreative.com.au
            email: d.utian@unsw.edu.au