Results 1 to 4 of 4

Thread: Linking Between MovieClips

  1. #1
    Join Date
    Jan 2007
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Linking Between MovieClips

    Hello....

    I know there is a very simple solution for this, but I'm not competent enough with ActionScript to be able to resolve this issue.

    This is what I want to accomplish:
    Have a mouse press event (i.e. a click) on a encompassing movie clip's constituent movie clips effect which frame of another movie clip is displayed (presumably through the gotoAndStop method).

    The best way to visualize this is by considering a picture gallery. Imagine a "thumbnail viewer" at the top of a document. When one thumbnail is clicked it changes which frame of the picture window changes (assuming each frame has another picture corresponding to the thumbnails).

    I hope that explains it well.
    I'd appreciate all help.

    Thank you!
    Last edited by V1SHAL; 02-04-2007 at 06:54 PM.

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    You have your MC we will call it "thumb" you want to click on "thumb" and have the MC we will call "photo" go to a new frame? Is that right?

    Simple enough.. add this to the actions panel of "thumb"

    Code:
    on(release){
       _root.photo.gotoAndStop(2);
    }
    where the "2" is which ever frame you want it to go to.

    If you want to use the same button to progress through the frames (i.e. click "thumb" to make "photo" go to frame 2, them frame 3, then frame4...) You need to set it up to tell it to go to the next frame. Still pretty simple:

    Code:
    on(press){
       _root.photo.nextFrame();
    }
    and you can have on another button:

    Code:
    on(release){
       _root.photo.prevFrame();
    }
    Either way works, depending on your needs.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Jan 2007
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks...

    worked like a charm
    i knew there was something simple

    my biggest issue was that i was misplacing the actionscript (i.e. it was outside the movie clip object)

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Welcome! Glad its working for you now!
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

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