A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Button in a movieclip linking to another frame in a parent clip.

  1. #1

    Arrow Button in a movieclip linking to another frame in a parent clip.

    This seems like it should be easy, but it's been driving me crazy...

    A movie clip called "Symbol_4" contains all of the navigation and frames of my movie.

    inside of Symbol_4 is a MC called "bottom scroller" which contains "imgbar" which contains "bar" which has a bunch of buttons in it.

    I want those buttons to link to different frames in the main "Symbol_4" MC.

    I've tried putting code on a button like this
    on (release) {
    tellTarget (this._parent._parent._parent) {
    }
    gotoAndStop(14);
    }
    and like this
    on (release) {
    tellTarget (this._parent._parent._parent.accessories_button1) {
    }
    Play;
    }
    and like this
    on (release) {
    targetPath(this._parent._parent._parent.Symbol_4)
    gotoAndStop (14);
    }
    There are no errors in any of this code, but nothing seems to work?! What am I doing wrong?

  2. #2
    anyone else hear that? flashpipe1's Avatar
    Join Date
    Jan 2003
    Location
    Upstate NY
    Posts
    1,930
    Have you tried using the 'Insert a Target Path" button (the little bullseye in the actions panel) to get the path?

    That should give you the correct syntax to your target...

    You can also test it by doing something like:
    Code:
    trace(this._parent._parent._parent._currentframe)
    just to be sure you're "hitting" the right clip (or a clip)

    Also, tellTarget is a depricated function, so you don't really need it anymore...you can just do something like:

    Code:
    on (release) {
       this._parent._parent._parent.gotoAndStop(14);
    }
    Hope that helps!
    Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.

  3. #3

    resolved

    Thanks!

    This one worked!
    on (release) {
    this._parent._parent._parent.gotoAndStop(14);
    }


    I have heard of that "depreciated" thing, but what does it mean? Do those scripts no longer work? Or are they just not necessary?

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