Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | RE: FLASH: yugop type menu--help |
From: | Victor Villen |
Date: | Thu, 13 Jul 2000 02:51:33 +0100 |
It would be something like this...
Suposse the horizontal dimension of the movie is 550 px and u have the
sliding object (i.e. "slide") and the invisible drag object (i.e. "d") in
the first frame of the timeline. Then add 2 more frames.
After that, create a new layer and create 3 keyframes. Here'll put the
actionscript code...
U have "slide" centered in the main timeline and all this stuff...
The actions would be:
Frame 1: StartDrag("slide",lockcenter)
Set Variable "slow" = "5" -> To define the smooth of sliding
Set Variable "center" = "275" --> The X coordinate of the
main movie center
Set Variable "tolerance" = "5" --> Change it to a value that
shows best results
Frame 2: Set Variable "d_x" = center-GetProperty("d",_x)/slow
Set Variable "left" =
(GetProperty("slide",_x)+d_x)-GetProperty("slide",_width)/2
Set Variable "right" =
(GetProperty("slide",_x)+d_x)+GetProperty("slide",_width)/2
If ((left<=0+tolerance) and (right>=550-tolerance))
SetProperty("slide",_x) = GetProperty("slide",_x)+d_x
End If
Frame 3: GoTo and Play (2)
I think this should work :)
Guess that's what u wanted...
Bye
--------------------------------------------------------
http://www9.ewebcity.com/freezer
--------------------------------------------------------
----- Original Message -----
From: Mitchell Shawn <smitchellWebDesignGroup [dot] com>
To: <flasherchinwag [dot] com>
Sent: Thursday, July 13, 2000 1:41 AM
Subject: FLASH: yugop type menu--help
> Hi all
>
> i have a question for you. I built a menu bar kind of like the one Yugop
> has, but i cannot get it to automatically stop when the end hits the
> side...in other words i don't want it to scroll around and around, i want
it
> to scroll to the left till it hits the edge and stop and then scroll to
the
> right and stop at the edge. This is the one where the mouse over slides
the
> menubar either right or left.
>
> if anyone can help that'd be great (sorry for the horrible description)
>
> much thanks
>
> Shawn
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flashforward2000 and the Flash(tm) Film Festival
> July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
> www.flashforward2000.com
> Produced by United Digital Artists and lynda.com
> Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
> shockwave.com and Electric Rain.
> 1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
> Register before June 30 and save $200!!-- www.flashforward2000.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpchinwag [dot] com
>
>
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: yugop type menu--help, Mitchell Shawn
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]