This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > February 2004 > Can this even be done?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Can this even be done?
RMH95969

2004-02-22, 5:28 am

I'm trying to make a scrolling navigation bar. How I have it now is using the
startDrag for a movie clip. The user drags the menu left or right. The nav
bar is a film strip and in each frame is a different image, how can I make it
where when the user clicks on one of the images it with take them to a specific
page, different than all the other frams in the navigation bar.

If someone can please take a look at it for me so you can see what I'm talking
about

http://www.myplanet.net/bigrep/stage

Thanks

RMH

[L=Click Here]http://www.myplanet.net/bigrep/stage[/L]

NSurveyor

2004-02-22, 11:28 pm

This may work:

Create a new movie clip and put it over your filmstrip movieclip. Open the new
movie clip. Now, add invisible buttons (buttons with no Up frame but having the
Hit frame have the area on where the button can get activated from) ontop of
the pictures you can see. Add the following actionscript to each button with
the correct website:
on (release) {
getURL("www.yoursite.com", "_parent");
}
Now go back out of editing the movieclip. Select the movieclip and change the
instance name (from the properties panel) to "buttons". Change the instance
name of your filmstrip movie clip to "filmstrip". Select filmstrip and add the
following actionscript:

on (press) {
beginy = getProperty("filmstrip",_y);
beginx = getProperty("filmstrip",_x);
buty = getProperty("buttons",_y);
butx = getProperty("buttons",_x);
startDrag("", true, A, C, B, D);
//A,B,C,D should be replaced with what your ;
//parameters were before;
}
on (release) {
endx = getProperty("filmstrip",_x);
endy = getProperty("filmstrip",_y);
disx = getProperty("filmstrip",_x);
disy = beginy - endy;
disx = beginx - endx;
setProperty("buttons", _y, buty+disy);
setProperty("buttons", _x, butx+disx);
}
Hope this works out for you :-)
By the way add a loader, I could only see white for awhile

RMH95969

2004-02-23, 2:29 pm

The button clip doesn't drag with the filmstip clip. Isn't it true that you can only drag one clip at a time? But the buttons all worked.

- Ryan
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews