View Full Version : scroller not quite right
lelales
06-02-2005, 12:42 PM
Hello,
I downloaded a scroller and it works okay except the dimensions aren't quite right.
I want the scroll bar to stop at the end of the red rectangle, but I'm unsure of how to change the formula to achieve this.
You can download the file here: http://www.caillouette.com/scrollbar-new.zip
Any help is appreciated.
thanks
lelales
06-02-2005, 04:06 PM
Here's the code for my text scroller.
ysize = 800;
targY=0;
dragger._x=-84.8;
dragger._height = (theMask._height / theText._height) * scrollbar._height;
dragger.onPress=function(){
startDrag(this,false,this._x,0,this._x,theMask._he ight-this._height);
}
dragger.onRelease=dragger.onReleaseOutside=functio n(){
stopDrag();
}
theText.onEnterFrame=function(){
scrollAmount=(this._height-(theMask._height/1.1))/(theMask._height-dragger._height);
targY=-dragger._y*scrollAmount;
this._y = targY;
}
I'm not sure how to manipulate the code so that the scroll bars only goes down 236 pixels, yet all the text scrolls.
thanks
lelales
06-02-2005, 05:13 PM
Any tutorials or anything? Please I need to get this done. I checked out the tutorials on this site, and although they are good, they didn't help much since my scroller is quite different
thanks
lelales
06-03-2005, 12:25 AM
Can anyone help? this should be simple.
I tried to redisign a scroller from Macromedia but it didn't work out.
I've also tried several other scrollers with no luck.
Please help
pretty please :p
cxn926
06-03-2005, 12:34 AM
i had a website on this. let me search for it.
cxn926
06-03-2005, 12:34 AM
this is the best i could find
http://www.tutorialoutpost.com/count/2761
lelales
06-03-2005, 12:42 AM
But I don't want an easing formula. My scroll bar has maybe 12 lines of text, so it is quite simple . . . yet I can't figure it out.
I tried to modify the code here and there, but nothing changes.
I was hoping someone would download it and fix it or explain the code to me.
I have looked at several (3) samples and tutorials and I can't get it to work the way I want.
I'm stumped.
Here's the file: http://www.caillouette.com/scrollbar-new.zip
thanks
oldnewbie
06-03-2005, 12:53 AM
A MX only format maybe? :rolleyes:
lelales
06-03-2005, 12:58 AM
I tried MX format and for some reason it wouldn't work. :eek:
thanks anyway
oldnewbie
06-03-2005, 01:11 AM
SHHHHHHHHHHHHHHHHHHHESSSSSSSSSSSSH!
I meant post your .fla in a MX only format!
Thing is when your posted .fla is in a MX only format, both MX only users and MX2004 users can open it up. When you post it in a MX2004 format, then only MX2004 users can open it. Get the point? :rolleyes:
lelales
06-03-2005, 01:15 AM
When I save it using "save as" and choosing "Flash MX" the scroller doesn't work at all.
I'm not sure why. The "dragger" dissapears and it doesn't work at all.
I probably should use MX for the audiences sake.
thanks again
lelales
06-03-2005, 01:34 AM
I have it working in Flash MX
here's the download: http://www.caillouette.com/scrollbar-mx.zip
thanks :p
oldnewbie
06-03-2005, 01:38 AM
That's still not in a MX only format! Guess it's in a Lelales format! :p
lelales
06-03-2005, 02:14 AM
Sorry about that. try this one:
http://www.caillouette.com/scrollbar-new2.zip
thanks again
oldnewbie
06-03-2005, 03:34 AM
http://odin.prohosting.com/oldnew/public/scrollbar-new.html :p
lelales
06-03-2005, 04:40 AM
Are you going to tell me how you did it?
Or maybe you could send me the file?
My email address is sean@caillouette.com
I'll have to look at the code and figure out how you did it.
thanks again :eek:
oldnewbie
06-03-2005, 04:47 PM
Well, here it is... :p
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.