A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Controlling Movies from within Movies

  1. #1
    Junior Member
    Join Date
    Apr 2002
    Posts
    28

    Controlling Movies from within Movies

    Help me... please!

    I have created several movies all within one frame. I use TellTarget to control them from that one frame, but I don't know how to control a movie from a button inside another movie.

    I created a button inside a movie ("Mov1") that would tell another movie ("Mov2") to "turn off" or go to a specific frame in that movie. On the button in "Mov1" I did a TellTarget to have "Mov2" go to a specific frame...

    ... but when I play the movie I get this error...

    Target not found: Target="mov2" Base="_level0.mov1"

    What am I doing wrong? Do I need to call out a "Level"?

    Thanks!!
    ~Paul
    Paul :-)

  2. #2
    Senior Member
    Join Date
    Apr 2003
    Posts
    238
    What version of flash are you using?

    You would be better off giving each mc an instance name (mov1 and mov 2) and, assuming mov1 is on the main timeline, code the button:

    on (Release){
    _root.mov1.mov2.gotoAndPlay(15);
    }

    I think TellTarget was starting to fade out in Flash 5 and higher.

  3. #3
    Junior Member
    Join Date
    Apr 2002
    Posts
    28
    all i had to do was put a "/" in front of the movie name to go back a "level"...

    Example - from inside Mov1: TellTarget ("/mov2")
    Paul :-)

  4. #4
    Senior Member
    Join Date
    Apr 2003
    Posts
    238
    That will work, but Flash is dumping the TellTarget - it is being deprecated.

    I would start getting used to calling clips and buttons by instance name.

    Either way, glad it worked out for you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center