From: donaldhines on
Attach This Code to your slider Button. This asumes Your SliderBar is 800
pixels long. I didn't use markerr, only frames 1 to 20 with an idle script on
each frame. If you want I made a quick little example, i'd be happy to send it
to ya.

on mouseDown
repeat while the stillDown
mypage=1
y=the mouseH
---Sprite(12) is my slider Button
sprite(12).loch=y
updatestage
--This assumes are slider bar is 800 pixels wide 800/20=40
mypage=integer(y/40)+1
go to frame mypage
-- no markers here just consecutive frames- if using markers you'l need
case of statement
updatestage
end repeat
end mouseDown

From: Opera Rat on
I started to write a lengthy reply with all the roadblocks I keep running into
and while I was writing I think I solved them. I THINK, I HOPE. I will try
this code in my program. Wish me luck. It's one of those days where NOTHING
is working (atleast not until I mess with it for 3 hours!)

Thanks.

From: Opera Rat on
I tried your code but everytime I click on the slider bar I get thrown to the
first frame of my movie. I tried setting myscore to = 60 where my 21 frames
begin but no luck. I changed the variable names to see if that was the problem
- nope! What's going on.

on mouseDown
repeat while the stillDown
myscore=1
y=the mouseH
---Sprite(31) is my slider Button
sprite(31).loch=y
updatestage
--my slider bar is 567 567/21(frames)=27
myscore=integer(y/27)+1
go to frame myscore
updatestage
end repeat
end mouseDown

From: donaldhines on
go to http://donaldhines.netfirms.com/Scroll.htm, right click the link, select 'Save Target As' and download the example. It's avery rough example but you should get the idea.
From: a?ex on
here's a behavior which acts similar to the playback head in the score window:


property pSprite, pThumb, pRect, pDragging, pStartFrame, pLength,
pCurrentFrame

on beginsprite me
pSprite = sprite(me.spritenum)
pThumb = sprite(me.spritenum + 1)
pRect = pSprite.rect
pDragging = 0
pStartFrame = pSprite.startframe
pLength = float(pSprite.endframe - pStartFrame)
end

on enterframe me
if pDragging = 1 then pDragging = the mousedown

if pDragging = 1 then
mh = the mouseH
curr = (mh - pRect.left) / float(pRect.width)
curr = min(1, max(0, curr))
curr = integer(pLength * curr) + pStartFrame
if curr <> pCurrentFrame then -- only do something if necessary
pCurrentFrame = the frame
pThumb.locH = pRect.left + pRect.width *
((pCurrentFrame-pStartFrame)/pLength)
go curr
end if
else
if the frame <> pCurrentFrame then -- only do something if necessary
pCurrentFrame = the frame
pThumb.locH = pRect.left + pRect.width *
((pCurrentFrame-pStartFrame)/pLength)
end if
end if

end

on mouseDown me
pDragging = 1
end


-------------------------------------------

make a behavior with the above scripttext and attach the behavior to a sprite
which acts as "sliderbar".
have another sprite with a graphic for the slider thumb in a spritechannel
above the one of the slider bar.

HTH