A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Movie clip button controlling main timeline issue

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    4

    Movie clip button controlling main timeline issue

    I was wondering if I could get some help.
    I'm in the process of designing this site as a portfolio for my art and am in the process of creating and laying out the galleries.
    My idea was to create movie clip animated buttons that would react to the roll over stuff.
    I got that part to work the way I wanted it. But now, I can't seem to figure out how to put a "Gotoandplay" type of code on the buttons so that the timeline would jump to the appropriate frame and play.
    (I put an "on(release) gotoandplay" on it the way I would put it on a button but it never responds.
    I have a couple of buttons that work fine with a "geturl". so I thought a "gotoandplay" would work fine. but I must be doing something wrong.
    If this can be figured out in a way that I can easily use it for all buttons with just the frame number needing alteration, that would be best.
    After you click the splashpage door jpg, there will be a piece of paper on the floor. That is a button which should trigger the animation that starts at frame 114. When clicked, the page lifts up and spread open to two pages. But it never reacts Any ideas?
    Here's my site:
    http://www.anthonyzummo.com
    Thank you ahead of time.

  2. #2
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    the correct syntax is:

    gotoAndPlay(frame number);

    it has to be gotoAndPlay, and not gotoandplay
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  3. #3
    Junior Member
    Join Date
    Jan 2012
    Posts
    4
    i understand the capitalization within the coding. what i wrote in this forum was just in explanation.
    I used actionscripting given in flash. I was just wondering if there is another way of achieving this code with movie clips being used as a button.

  4. #4
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    Could you send the FLA file?
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  5. #5
    Junior Member
    Join Date
    Jan 2012
    Posts
    4
    Yes! I'd gladly send you the FLA file if it means getting some help. lol
    I can usually design and animate interesting things, but coding still confuses at times. Where should I send the file?

  6. #6
    Junior Member
    Join Date
    Jan 2012
    Posts
    4
    On second thought, I just uploaded the FLA to my ftp, here is the link for you to save from http//:www.anthonyzummo.com/anthonyzummo.fla

  7. #7
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    oh, that's what you meant :P

    Did you know that you can make a button and then MovieClips in each frame inside it?

    DOWNLOAD EXAMPLE

    Hope that gives you an idea of how you can make animated buttons
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

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