A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Help with page changing function?

  1. #1
    Junior Member
    Join Date
    Oct 2010
    Posts
    2

    Help with page changing function?

    I'm trying to make a thing with multiple pages in Adobe Flash. There are buttons along the top, and when you click them it sets a variable called "Page". For the screen, I put a code that switches the frame depending on the variable called "Page". For the buttons I put

    on(release) {
    set (Page,x)
    }

    *x is the page number*

    and for the screen I put

    onClipEvent (enterframe) {
    if (Page==x) {
    gotoAndStop(x)
    }
    }

    *x is still the page number*

    Is there something I'm doing wrong? Is there a better way of doing this? Thanks.

  2. #2
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    Provide FLA
    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
    Oct 2010
    Posts
    2
    It's Flash Professional CS4.

  4. #4
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    no, lol, like could you send the FLA file? Post it on TinyUpload
    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