Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > Simple Stuff (Newbies)

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-28-2004, 09:08 PM   #1
Serpream
Registered User
 
Join Date: Sep 2004
Posts: 30
Unhappy Help with scollbar to control timeline.

Hi ive been searching for 2 hours now with no luck for a scollbar that when dragged back and forth cycles threw the timelines frames. I done a search n this site but couldnt see my question so sorry if its repeative.

Im new to flash cause this is part of my college project. What i need help with is how to make a scrollbar/button that when dragged from one end of the screen will cycle threw the timeline and then back when reversed.

Either that or when dragged to the oppisite starting end will load a random image each time. I think ive gone way over my head
Serpream is offline   Reply With Quote
Old 09-28-2004, 10:09 PM   #2
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,106
Default

put a movieclip on your stage.
give it the instancename 'dragger'
then put this code on a frame that spans the first 100 frames (or howerver many frames you want to scroll thru) of your movie....
Code:
dragger.onPress=function(){
	this.startDrag(false,1,this._y,100,this._y);// drag from 1 to 100 
	this.dragging=true;
	this.onEnterFrame=this.whileDragging;
};
dragger.onRelease=function(){
	this.dragging=false;
	this.onEnterFrame=null;
};
dragger.whileDragging=function(){
		_root.gotoAndStop(Math.floor(this._x));
};
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Old 09-29-2004, 09:40 AM   #3
Serpream
Registered User
 
Join Date: Sep 2004
Posts: 30
Default

swet thank you sooo much. Man this really sets off what i want to do thx again

Nxt prob is how to get it to the size and place i need it. The idea is that u grab a corner then drag is to the left *this seems to go right to go forward * then when u let go it randomly loads a image into a frame and also at the same time reseting back to the right.

I got the ideas but no clue in the world how to code until my action script book arrives if ever

Last edited by Serpream; 09-29-2004 at 12:33 PM.
Serpream is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:37 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.