A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Can ANYONE please HELP ME! tell target problem

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    12
    Hello,

    I am making a movie which has a movie in it which has another movie in it. That movie has a button in it.
    I want this button to target the second movie and tell it to move to the second frame. Here is the hierarchy:

    menu1
    menu2 the frames that need to refrenced
    menu3
    menu4 the button resides in this movie

    all the menus are instances; i have named them.

    My problem is that when I tell the button to target menu2;
    the swf comes back with an error.

    This is my code in the button:

    on (press) {
    gotoAndStop (2);
    tellTarget ("/menu1/menu2/menu3") {
    gotoAndPlay (2);
    }
    }


    this is the error i receive:

    Target not found: Target="/menu1/menu2/menu3" Base="_level0.instance15.menu2.menu3.menu4"

    If i eliminate all the menu commands, and only leave the root in the path, the codeworks fine except it will target the stage's frames and not the movies.

    any thoughts?





  2. #2
    Senior Member
    Join Date
    Sep 2000
    Posts
    117
    try

    on (release) {
    _parent._parent.gotoAndStop(2);
    }

    or

    on (release) {
    _root.menu1.menu2.gotoAndStop(2);
    }


    I hope one of these is of help.

    Peter

  3. #3
    Junior Member
    Join Date
    Dec 2000
    Posts
    12

    Thanks

    But it did not work.

    i cannot figure it out. It seems like a straight forward method to do this but, it just wont work.

    And now im not getting an error but it wont do what its suppose to do.



    argh!

  4. #4
    Senior Member
    Join Date
    Sep 2000
    Posts
    117
    one other thought you put:

    on (press) {
    gotoAndStop (2);
    tellTarget ("/menu1/menu2/menu3") {
    gotoAndPlay (2);
    }
    }

    instead you should put

    on (press) {
    tellTarget ("/menu1/menu2/menu3") {
    gotoAndPlay (2);
    }
    gotoAndStop (2);
    }

    notice the order change. Does that help? I'm a bit stumped otherwise. Email me.

  5. #5
    Senior Member
    Join Date
    Sep 2000
    Posts
    910
    Hi...it looks like from the error that you're receiving...'menu1' does not have an instance name...looks like Flash is calling it instance15...

    Just a thought...

    -pigghost-

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