3 Replies Latest reply on Oct 9, 2006 7:40 AM by Newsgroup_User

    Specifiing path within movie?

    Level 7
      HI! I know this sounds a little simple but I am wondering this. when you
      are specifying a path from the root to your Instance , does it matter what
      frame is on that instance, you we do below?


      _root.movieinstance1.movieinstance2"frame4".movieinstance3.my_FLVPlybk


      In my flv I have this code.

      on (release) {
      import mx.video.*;
      _root.pages2.page6.my_FLVPlybk.load("chips_the_war_dog_512K.flv");
      _root.pages2.page6.my_FLVPlybk.play();
      }


      Thanks to all that reply.

      Paul


        • 1. Re: Specifiing path within movie?
          kglad Adobe Community Professional & MVP
          do you mean to ask, does it matter on what frame the instance is? if so, the answer is maybe.

          the instance must exist before you can reference it with actionscript. so, if your code is attached to a frame that plays before the frame in which your object is created, your code will fail.

          if the object exists when your code executes, your reference to the object will work (as long as the path/name are correct) and you need not reference the frame where the object was created.
          • 2. Re: Specifiing path within movie?
            AnandMX Level 1
            but if you mean that whic is the current frame in the targetted object .. then its not needed. an object can be at any frame inside but it should reside and loaded b4 geting referred. :)
            • 3. Re: Specifiing path within movie?
              Level 7
              Paul wrote:
              > HI! I know this sounds a little simple but I am wondering this. when you
              > are specifying a path from the root to your Instance , does it matter what
              > frame is on that instance, you we do below?
              >
              >
              > _root.movieinstance1.movieinstance2"frame4".movieinstance3.my_FLVPlybk
              >
              >
              > In my flv I have this code.
              >
              > on (release) {
              > import mx.video.*;
              > _root.pages2.page6.my_FLVPlybk.load("chips_the_war_dog_512K.flv");
              > _root.pages2.page6.my_FLVPlybk.play();
              > }
              >
              >
              > Thanks to all that reply.
              >
              > Paul

              Thanks for replies. I will have to think about this a bit. :)

              Paul