Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: How would you do this?
From: Nathan Dicken
Date: Tue, 25 Jul 2000 16:08:48 +0100

Hey Dave,

In the example below, you could put two invisible slider instances named
"min" and "max" at the ends of your slider range and drag the button based
on these positions. You could then get the distance as follows: (using 30
frames to travel as an example)

Set Variable: "noOfFrames" = "30"
Set Variable: "sliderMin" = min:_x
Set Variable: "sliderMax" = max:_x
Set Variable: "ratio" = (sliderMax - sliderMin) / noOfFrames

If the slider distance was 300, then your ratio would be 10, meaning that
every 10 pixels that your slider button is distanced from the "min" mc,
move to a consecutive frame. It would also be a good idea to put in, a
check to see if the slider is within say, 5 px or so from either side that
it would force the playhead to the cooresponding frame (beginning or end).

Nathan

-------------------------
Nathan Dicken
Boxerjam Inc.
nathandatboxerjam [dot] com
www.boxerjam.com




>Hello again,
>
>Any idea what the ratio would be that I would have to us if the slider bar
>was 300 pixels long?
>
>Thanks,
>
>Dave

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 helpatchinwag [dot] com


Replies
  FLASH: Multiplayer / multiuser appz in f, Webmaster
  Re: FLASH: Multiplayer / multiuser appz , Terry R. Schussler
  Re: FLASH: Multiplayer / multiuser appz , Jon Williams
  Re: FLASH: How would you do this?, Nathan Dicken
  Re: FLASH: How would you do this?, David Doggett

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]