Go Back   SitePoint Forums > Forum Index > Design Your Site > Flash and Actionscript
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Aug 4, 2003, 14:56   #1
ArticleBot
SitePoint Articles
 
ArticleBot's Avatar
 
Join Date: Apr 2001
Posts: 0
Discussion thread for Flash Script - Scrolling Menu With A Scrolling Background

This is a dedicated thread for discussing the SitePoint article 'Flash Script - Scrolling Menu With A Scrolling Background'
ArticleBot is offline   Reply With Quote
Old Aug 4, 2003, 14:56   #2
Anonymous
SitePoint Community Guest
 
Posts: n/a
Great script. I have one question about the parameters passed in the function call:
// call function xpos
x_pos = xpos(950,.75);

Specifically, why use 950 as the bar length when the object we want to move is ~1045 in length?

Thanks for any comments on this!

-Seth in Austin, TX.
  Reply With Quote
Old Oct 5, 2003, 16:02   #3
Anonymous
SitePoint Community Guest
 
Posts: n/a
Okay I basically edited this scrolling menu with what i needed it to look like, and when I open the SWF file it works great. But when I import it into my other flash presentation, it shows, but doesnt move. Please advise.
  Reply With Quote
Old Dec 22, 2003, 14:04   #4
Anonymous
SitePoint Community Guest
 
Posts: n/a
How can the images that have been put onto the menu movie be turned into buttons and link to other scenes. Tried it and failed when texted scene. Need urgent help please
  Reply With Quote
Old Feb 8, 2004, 18:40   #5
Anonymous
SitePoint Community Guest
 
Posts: n/a
Is there a way to extend the length of the pictures movie clip (so more pics can be added) and extend the scroll length? Also, is there a way to loop it, so it keeps scrolling up or down around and around, repeating?
  Reply With Quote
Old Feb 12, 2004, 16:32   #6
Anonymous
SitePoint Community Guest
 
Posts: n/a
Is there a way to make it scroll up and down only when the person puts his/her mouse over it and moves up and down?

...Does anyone answer these questions?
  Reply With Quote
Old Sep 3, 2004, 01:57   #7
moonmi2u
SitePoint Member
 
Join Date: Sep 2004
Location: india
Posts: 0
this is a nice one,but i think it will be more effective if,you give button option in two sides.
moonmi2u is offline   Reply With Quote
Old Dec 9, 2004, 21:02   #8
stephen
SitePoint Community Guest
 
Posts: n/a
to make the scroller verticle simply change the action script to this;

ym = 0;
//function to set the ypos of the movieclip
function ypos(bar_height,mul)
{
vpos = 420;
scroll_height = 420;
incr = bar_height/scroll_height;
ym = _ymouse;
if(_ymouse <= 10){ym = 10;}
if(_ymouse >= 400){ym = 400;}
scroll_y = vpos - ym;
scroll_y = scroll_y * mul;
y_pos = scroll_y * incr;
y_pos = y_pos + vpos;
return y_pos;
}

_root.onEnterFrame = function ()
{
// call function ypos
y_pos = ypos(700,.20);
with (bg)
{
_y += (y_pos - _y)*.4;
}
// call function ypos
y_pos = ypos(950,.75);
with (menu)
{
_y += (y_pos - _y)*.4;
}
}


After you have rotated all instances and set the document properties to 9px x 420px.
  Reply With Quote
Old Apr 23, 2005, 00:02   #9
Sigfreid
SitePoint Community Guest
 
Posts: n/a
What does mul mean?
  Reply With Quote
Old Jan 14, 2007, 07:14   #10
acolyte
SitePoint Community Guest
 
Posts: n/a
mul = multiply ?
  Reply With Quote
Old Mar 28, 2007, 12:47   #11
closethipster
SitePoint Community Guest
 
Posts: n/a
The menu mc is 1046 pixels wide, so I'm curious how you came up with the "950" and ".75" when you called the ypos function. I'm trying to use this technique with a dynamically-generated menu-type mc and I'm having trouble dynamically generating mul because I don't quite understand the reasoning behind it..
  Reply With Quote
Old Nov 20, 2007, 03:50   #12
Catherine
SitePoint Community Guest
 
Posts: n/a
If I wanted to make those squares into clickable buttons would I just re-create the image in flash as a movie clip with those squares as buttons?! I think this would work, but I'm not sure!!! Any help would be appreciated!!
  Reply With Quote
Old May 11, 2008, 07:19   #13
Andy
SitePoint Community Guest
 
Posts: n/a
1. how can I extend or shrunk the movie clip size (more or less photos)
2. I want not to move when the cursor is not on that area
thx
  Reply With Quote
Old Feb 23, 2009, 12:59   #14
tebo
SitePoint Community Guest
 
Posts: n/a
how do i make a scroller like on ootie.blogspot.com/2009/02/scrolling-menu-system.html

How do I make that?
  Reply With Quote
Old Mar 25, 2009, 09:34   #15
Mimmi
SitePoint Community Guest
 
Posts: n/a
When you said; "Create a movie clip that 1045... ", shall I make the menusqueers?
  Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 14:42.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved