A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: A menu with a scrolling background?

  1. #1
    Junior Member
    Join Date
    Jul 2002
    Posts
    9

    A menu with a scrolling background?

    Hi there, I'm having problems with what may seem like a simple menu idea, so I'd be glad if anyone could help.
    I'd like to have say 4 floating link buttons constantly in the same position at the bottom of the page, but when you click on the link then the background would slide along to a desired section.
    I found it hard. I'm stuck, as I don't know what to do if the user is on Section 1, and wants to go to say section 3. That means that when the background slides along, you'd see section 2 momentarily.
    Does anyone know what I'm talking about, or indeed how to do this in Flash? Any tutorials or advice would be appreciated, as this is gonna be a site for my Higher Art project.
    Thanks!
    -Jimmy

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    A tip is to check out this sites movies section "navigation" for scrolling images or scrolling menu.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Junior Member
    Join Date
    Jul 2002
    Posts
    9
    OK thanks for that. So far I've got:
    http://www.fanfilms.pwp.blueyonder.co.uk/thing.swf

    It still looks rough, I'll make it look sweet later. For now I'm just concerned about the actual workings of it.
    I'd like to use the effect on http://www.icecubemusic.com/ where once you get to the desired section, a text box pops up ontop of your floating background.
    Would this be an action of the linking button? Or a "When Frame Loaded..."
    see the .fla at http://www.fanfilms.pwp.blueyonder.co.uk/thing.fla
    if anyone could help in any way, it'd be greatly appreciated.
    -Jimmy

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    The textbox pops up when the MC has stopped at its _x position, determined by the button.

    So you have to use an IF statement to check when the MC gets there and is still.

    Its much easier to have the textbox popup when you click the button. For instance have a movieclip with the content, set visiblity to 0 and with the button set visibility to 1 (visible).

    on(release){
    myMC._visible=1;
    }

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  5. #5
    Junior Member
    Join Date
    Jul 2002
    Posts
    9
    Thanks for the help!
    It really does need to be when the background stops scrolling though, so I've tried to search various action scripts but I got stuck.
    So far, I've got:

    on (release) { if backgroundMC IS AT X=320, Y=200 AND IS STILL) {page1MC._visible=1;}else {page1MC._visible=0;}}

    Can someone fill in the
    "{ if FILMSTRIP IS AT X=320, Y=200 AND IS STILL)"
    part please?
    Aargh, I'm pulling out my hair!
    Thanks a lot!
    -Jimmy

  6. #6
    Newbie Forever It Seems Dar's Avatar
    Join Date
    Aug 2002
    Location
    Columbus,OH
    Posts
    218
    here is a tutorial that explains what you are trying to do

    http://www.actionscript.org/tutorial..._scrol_1.shtml

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