View Full Version : Scroller by Claudio
blah-de-blah
June 30th, 2003, 12:45 PM
I was wondering if it were possible to use hte scrollbar component to scroll images rather than text. But instead of 1 image, lots of small images which could be linked to other stuff when you press it. Is this possible with the scrollbar componenet?! thx
Jubba
June 30th, 2003, 12:47 PM
not with the scrollbar. Text only.
worm
June 30th, 2003, 01:08 PM
scroll pane can (i think)
Thinker2501
June 30th, 2003, 02:46 PM
You're right worm, use a scroll pane to solve all your image scrolling problems.
blah-de-blah
July 1st, 2003, 03:19 AM
o, ok...How would you use it then?
It doesn't seem to just work like the scrollpane where you drag it near the object and it automatically snaps to the size. And even if you did, i want it to drag more than one image, and the images should be able to be linked to other URL's, is that possible??
thx, i can't seem to find a tutorial on this in kirupas :-\
nizamm
January 9th, 2004, 11:38 PM
Originally posted by blah-de-blah
o, ok...How would you use it then?
It doesn't seem to just work like the scrollpane where you drag it near the object and it automatically snaps to the size. And even if you did, i want it to drag more than one image, and the images should be able to be linked to other URL's, is that possible??
thx, i can't seem to find a tutorial on this in kirupas :-\
Somebody answer this question...I'm stuck in the same place!!! :puzzle:
brownie
January 9th, 2004, 11:48 PM
The ScrollPane component
The ScrollPane component lets you add window panes with vertical and horizontal scroll bars to display movie clips in Flash documents. The ScrollPane component is useful for displaying large areas of content without taking up a lot of Stage space. The ScrollPane component only displays movie clips. To add scroll bars to text fields, you use the ScrollBar component.
To display movie clips (or JPEG files that have been converted to movie clips) inside the ScrollPane, you specify the symbol linkage ID of the movie clip for the scrollContent parameter. The movie clip must be in the library to set the scrollContent parameter, but it need not be on the Stage. Also, the movie clip must also have the Export for ActionScript option selected in the Linkage Properties dialog box. For more information, see Using movie clip event handler methods to trigger scripts.
You can display JPEG and SWF files loaded from a server in the scroll pane using the FScrollPane.loadScrollContent() method to specify the content for the scroll pane.
Note: Text in scroll panes must be displayed using embedded fonts. You cannot use device fonts to display text in scroll panes. See About embedded fonts and device fonts.
claudio
January 10th, 2004, 12:58 AM
You could always use your own scrollbar.
Something like this.
updated the file
brownie
January 10th, 2004, 01:14 AM
very nice claudio
so much easier to work with than the flash component
claudio
January 10th, 2004, 01:31 AM
thanks :)
nizamm
January 10th, 2004, 04:25 AM
I got the problem solved earlier but didn't have time to post it....let's just say brownie's reference to the FlashMX help file clicked me. It took sometime to figure out even after reading that though...so just to make things sound more informal and better understanding, here's my version:
Just convert the imported image into a movie clip and give it a unique SYMBOL LINKAGE IDENTIFIER....NOT SYMBOL NAME...and specify the same ID in the scroll pane's 'Scroll Content' parameter...and voila!
NOTE: Only the scroll pane should be on stage. Once the IDs are linked in the library, the image can be displayed with the pane alone on stage. They are resizable as well..so that's solves the prob.
Thanks a lot ppl. :)
df_balla
January 15th, 2004, 10:00 AM
ive downloaded claudio's .fla but how can i change the area in which it scrolls, like how do i get it to stop scrolling right after my last line of text? instead of having it scroll nothing for a while. Also i dont know whats happening with my dragger but if u click the down button enough, the dragger goes off the bar and just down the page, what am i doing wrong?
mindfriction
January 20th, 2004, 08:02 AM
umm works fine for me dude? Maybe Claudio has fixed it ?
muddymac
February 1st, 2004, 04:42 AM
I took a look it seems to scroll my MC the opposite way, if I press down it goes down rather than up.???
Shed any light?
claudio
February 1st, 2004, 04:57 AM
Switch the instance names for the buttons.
Name the up arrow "down_btn" and the down arrow "up_btn".
muddymac
February 1st, 2004, 05:02 AM
tried that. Down button doesn't move the content then.
Very strange.
claudio
February 1st, 2004, 05:04 AM
?
It works here.
muddymac
February 1st, 2004, 05:09 AM
The MC I'm scrolling is 290 in height is that a problem?
claudio
February 1st, 2004, 05:10 AM
I dont think so. :-/
muddymac
February 1st, 2004, 05:14 AM
That's it, I put a box to extend my MC to the same height as your example and now it works fine, of course it scrolls my content out of view, is there an adjustment in the AS?
claudio
February 1st, 2004, 05:18 AM
Well it depends on how you've set up your script. If you use my example, just place the content and it will adjust to its dimension.
muddymac
February 1st, 2004, 05:20 AM
I haven't touched your script, I took the bar in the main content MC and lower its heith to 100 so my MC is 390 in height and BAM!!! It started scrolling the opposite way again.
bayek
February 1st, 2004, 07:04 AM
claudio, your scrollbar is fantastic;-) I have a question though, when I make the mask higher, like 200 px, I have this blank space under my content, I have been looking at your script and cannot figure out what shall I change to make it fit as well as on your example? Could you give me a hint? Thanks;-)
claudio
February 1st, 2004, 06:37 PM
This should do:
fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=false;
friction = 0.9;//1 for no easing
speed = 4;//1 for no easing
speed = 4;
y = dragger._y;
top = main._y;
bottom = main._y+mask_mc._height-main._height-space;
dragger.onPress = function() {
drag = true;
this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height);
dragger.scrollEase();
};
dragger.onMouseUp = function() {
this.stopDrag();
drag = false;
};
bar.onPress = function() {
drag = true;
if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {
this._parent.dragger._y = this._y+this._height-this._parent.dragger._height;
} else {
this._parent.dragger._y = this._parent._ymouse;
}
dragger.scrollEase();
};
bar.onMouseUp = function() {
drag = false;
};
moveDragger = function (d) {
if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) {
clearInterval(myInterval);
} else {
dragger._y += d;
dragger.scrollEase();
updateAfterEvent();
}
};
up_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, -1);
};
down_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, 1);
};
up_btn.onMouseUp = down_btn.onMouseUp=function () {
clearInterval(myInterval);
};
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
if (Math.abs(dy) == 0 && drag == false) {
delete this.onEnterFrame;
}
r = (this._y-y)/(bar._height-this._height);
dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction);
main._y += dy;
};
};
bayek
February 1st, 2004, 07:04 PM
thanks claudio, it worked perfectly!, such code is a nice piece of poetry to study on cold winter nights, you know;). Thank you for the second time you're helping my humble self within last few days....
cheers:)
claudio
February 1st, 2004, 07:10 PM
Anytime bayek :)
muddymac
February 1st, 2004, 09:19 PM
Thanks Claudio. Worked like a charm, maybe someday I'll be able to perform art like yourself. Thinking outside the box is art, period. Just what you've done.
Question, what did you change, so I can note it, I'm actually trying to learn not just rip off your code.
Cheers!!!
Todd
g_wulfwud
February 7th, 2004, 03:09 AM
ei..
i tried to follow your fla.. but it doesnt work..if i changed the size of the movie, will it affect it when i play the movie, coz mine's a bit bigger than the one you uploaded...
here's my fla... please help..
g_wulfwud
February 8th, 2004, 08:34 AM
pllsssss..
muddymac
February 8th, 2004, 08:56 AM
so change the height & width in the AS. It's commented out. Try a bit, learn, it's fun.
claudio
February 8th, 2004, 02:06 PM
Your example wont work because there's no scrollbar, only the arrows.
muddymac
February 8th, 2004, 07:01 PM
You're the man, help this poor soul out. Sounds like he's in desperate need.
muddymac
February 8th, 2004, 07:09 PM
By the way have a look at the scroller in action.
http://undulated.com
g_wulfwud
February 8th, 2004, 08:44 PM
owwww ok...now i got it..
made it work though, but the bar, which i made a circle, would go down over the arrows...why is that? or was that the topic you were discussing in the last few posts?
g_wulfwud
February 8th, 2004, 08:46 PM
ei nice site...but how come the scrollbar on that recent news doesnt have the bar and the dragger but still works...or did they just hid those things...? thanks for your time guys :)
claudio
February 9th, 2004, 02:40 AM
Originally posted by g_wulfwud
owwww ok...now i got it..
made it work though, but the bar, which i made a circle, would go down over the arrows...why is that? or was that the topic you were discussing in the last few posts? Can you post the fla?
muddymac
February 9th, 2004, 04:03 AM
The bar was made to be transparent, the dragger was lost. It's very easy to modify, Movement is the man!!
g_wulfwud
February 9th, 2004, 04:51 AM
ill post it when i get home..
g_wulfwud
February 9th, 2004, 07:30 AM
here it is...the dragger just goes down all the way and doesnt stop at all.
claudio
February 9th, 2004, 07:42 AM
Here it is.
You forgot the instance name for the mask and i made a minor change on the if statements that check for the dragger boundaries.
g_wulfwud
February 9th, 2004, 08:42 PM
thanks thanks thanks!! :D i owe ya one...ill check it out when i get home...
claudio
February 9th, 2004, 09:42 PM
welcome :)
g_wulfwud
February 10th, 2004, 08:28 AM
yay!! i tried it and it's working already!!! thanks man!!! :D
ei got an out of the topic question...
i got this preloader from actionscript.org...and when i try it on a separate swf in which i am supposed to load, it works...but when i start to load it from the main swf...the dynamic text in which it will show the percent doesn't show anything...
claudio
February 10th, 2004, 09:37 AM
welcome :)
As for the preloader, I cant really tell without looking into your files.
g_wulfwud
February 10th, 2004, 08:43 PM
okee..ill try to attach it when i get home..
g_wulfwud
February 11th, 2004, 04:52 AM
ei claudio.
i uploaded the site at this link (http://dlsubenchmark.cjb.net) ...look at the preloaders on the link of "home"... the percent doesn't appear..but i used the same kind of preloader on the main movie...which you will see when you go into the site..
:eye:
muddymac
February 27th, 2004, 03:03 PM
movement, is there a way to make this scroller based on the mask as the height? removing the scrollbar and button altogether. Possible?
claudio
February 27th, 2004, 03:08 PM
You mean scroll by the _ymouse position?
muddymac
February 27th, 2004, 04:07 PM
yes, just using buttons. so trash the scrollbar and dragger.
muddymac
February 28th, 2004, 01:11 AM
basically the same scroller but just removing the scrollbar and dragger and using the mask MC as the _y height, would that be possible?
claudio
February 28th, 2004, 01:51 AM
Yes, it is.
Right now my script is based on the dragger position.
Ill take some time later to change that so you can have only the arrows.
muddymac
February 28th, 2004, 02:09 AM
Could you use the mask?
claudio
February 28th, 2004, 02:11 AM
Use the mask for what?
muddymac
February 28th, 2004, 02:30 AM
The scroll height. Like the scrollbar.
JasonK
March 12th, 2004, 09:55 AM
Hi, been a while since I was here...glad to see kirupa is still going strong! ;-)
A quick question if anyone can help me out... I am using the scrolling code helpfully posted on this thread.. Prob is, when I use two of them in the site, one works fine, and the second controls the other... I have changed all the instance names and references to them... .fla is up at www.goja.co.uk/gojaflash2-check.fla
Any advice would be much appreciated!
JasonK
March 12th, 2004, 09:57 AM
sorry, www.goja.co.uk/gojaflash2-check.zip
zipped for your download pleasure!
JasonK
March 15th, 2004, 06:37 PM
hmmm...i'm sorry...
http://www.goja.co.uk/GojaFlash2-check.zip
i guess caps really do matter! :blush:
.soulty
April 6th, 2004, 12:46 AM
hey claudio, nice code you got here, if i want to use this code with a external text file, how would i go about it?
cheers
.soulty
claudio
April 6th, 2004, 06:58 PM
You would need to define the top variable inside the onLoad handler of your LoadVars object.
The Flash
April 6th, 2004, 09:11 PM
Your scrolling script did the trick for me claudio, thank you.
However, due to my limited knowledge of AS I'd like to ask you for your help.
How do I alter your script so that while I press the up/down buttons once and release, my text will scroll only one line. A long and continous press on my up/down buttons will cause the text to scroll down rapidly ?
Thanks
The Flash
April 7th, 2004, 01:24 AM
Hi Claudio , please help !
I've downloaded your Scroll AS and it works fine. I modified it a bit. As long as I don't change the text box size it works OK but the moment I enlarge it , ie, make my own text box the masking doesn't work.
Here are two .fla's :
scroll 2.fla - My attempt at enlarging the text box. For some reason the masking doesn't work.
scroll 3.fla - in this file, I haven't changed the size of the textbox, only the content of it. The masking somehow works here.
I need assistance in making scroll 2.fla work.
here's the link to the attachments :
http://www.kirupaforum.com/forums/showthread.php?t=52835
thanks
.soulty
April 7th, 2004, 04:04 AM
without looking at your attachments, did you add the instance name "myTextField" (without quotes) on your text box?
.soulty
April 7th, 2004, 09:55 AM
You would need to define the top variable inside the onLoad handler of your LoadVars object.cool, got it working thanks ;)
The Flash
April 7th, 2004, 12:20 PM
Both Textfields in both files (scroll2.fla and scroll3.fla) are movieclips and both have the same instance name of "main" (in the properties bar) just as claudio defined in his original scroll script. however scroll2.fla still doesn't work and scroll3.fla works. What's the problem ?!
please check out the attachments to correct the problem. THANKS
SteadyScene
April 7th, 2004, 12:30 PM
Claudio, I am impressed with your scroller. However, is this easily customizable? I notice the AS is controlling EVERYTHING (scroller, btns, etc)
Daniel
claudio
April 7th, 2004, 12:36 PM
You can customize a few parameters like scroll speed. Others, you'd need a certain AS knowledge to modify.
SteadyScene
April 7th, 2004, 12:50 PM
With all due respect to Claudios Scroller; going back to the scrollpane thread, assuming I have dropped a scrollpane component on the main scene, linked to my movie clips with images to create a nice vertical scrolling picture gallery, is it possible to make the pictures a link (lets say to open image in a larger view type thing)?
Cheers,
Daniel
SteadyScene
April 9th, 2004, 12:15 PM
.,...?
The Flash
April 9th, 2004, 08:42 PM
Claudio already solved my problem. Thanks for your help anyway :)
SteadyScene
April 10th, 2004, 03:56 PM
I was not trying to help :) I have a question.. read it again..
The Flash
April 10th, 2004, 04:01 PM
Sorry, Can't help you with that one
Jezthomp
April 15th, 2004, 07:39 AM
I am trying to make the whole box width larger however, whever i do a new content text box nothin appears?? Any suggestions
Does the final length of the text box have to put in the script or does it do it itself if you get what i mean?
SteadyScene
April 15th, 2004, 11:04 AM
I guess this is a unknown arena in flash mx tech.
.soulty
April 15th, 2004, 11:42 AM
the length of the box i found is dependent on how much type you have. in any case ctl double click to get the black box on the dynamic text and make it large in height.
SteadyScene
April 15th, 2004, 11:44 AM
I meant in regards to: With all due respect to Claudios Scroller; going back to the scrollpane thread, assuming I have dropped a scrollpane component on the main scene, linked to my movie clips with images to create a nice vertical scrolling picture gallery, is it possible to make the pictures a link (lets say to open image in a larger view type thing)?
Cheers,
Daniel
.soulty
April 15th, 2004, 11:49 AM
link me to where you are talking about.
Jezthomp
April 15th, 2004, 11:51 AM
Why i do mine you can see almost all the text which makes it completely useless. You can read the mask area fine like you are ment to but you can like see under the background colour the faint type as it scroll through it.
Oh my god how do you get rid of it, it makes the scroller useless.
:(
SteadyScene
April 15th, 2004, 11:51 AM
I dont have a link, its just a question about components.
"going back to the scrollpane thread, assuming I have dropped a scrollpane component on the main scene, linked to my movie clips with images to create a nice vertical scrolling picture gallery, is it possible to make the pictures a link (lets say to open image in a larger view type thing)?
Cheers,
Daniel"
Jezthomp
April 15th, 2004, 11:56 AM
Has nobody else had my problem?
.soulty
April 15th, 2004, 11:58 AM
Why i do mine you can see almost all the text which makes it completely useless. You can read the mask area fine like you are ment to but you can like see under the background colour the faint type as it scroll through it.
Oh my god how do you get rid of it, it makes the scroller useless.
:( Are you applyin the text in the movie? if should be through the code if you are using claudios code.
@ steady.. i have no idea on what scrollpane thread to go back in, thats why i asked for a link.
Jezthomp
April 15th, 2004, 12:00 PM
I have just typed it into the text box is this not how you do it then? Where do you type it in the code?
.soulty
April 15th, 2004, 12:01 PM
jezthomp:what code are you using?
SteadyScene
April 15th, 2004, 12:04 PM
in this thread there is discussion about the scrollbar components
.soulty
April 15th, 2004, 12:14 PM
i remember claudio made a scoller for a mc with a mask, if that was the case , then all you would have to do is to give the mc's within the main holder mc instance name and call them through a function to do what you please.
Jezthomp
April 15th, 2004, 04:54 PM
fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=false;
space = 20;
friction = 0.9;
speed = 4;
y = dragger._y;
top = main._y;
bottom = main._y+mask_mc._height-main._height-space;
dragger.onPress = function() {
drag = true;
this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height);
dragger.scrollEase();
};
dragger.onMouseUp = function() {
this.stopDrag();
drag = false;
};
bar.onPress = function() {
drag = true;
if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {
this._parent.dragger._y = this._parent._ymouse;
this._parent.dragger._y = this._y+this._height-this._parent.dragger._height;
} else {
this._parent.dragger._y = this._parent._ymouse;
}
dragger.scrollEase();
};
bar.onMouseUp = function() {
drag = false;
};
moveDragger = function (d) {
if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) {
clearInterval(myInterval);
} else {
dragger._y += d;
dragger.scrollEase();
updateAfterEvent();
}
};
up_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, -1);
};
down_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, 1);
};
up_btn.onMouseUp = down_btn.onMouseUp=function () {
clearInterval(myInterval);
};
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
if (Math.abs(dy) == 0 && drag == false) {
delete this.onEnterFrame;
}
r = (this._y-y)/(bar._height-this._height);
dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction);
main._y += dy;
};
};
Thats the code i am using the dynamic text content mc click is where i have just typed my content. As i have said it is faintly clear when previewed all the text not just the mask area :(
(didnt put the code in code quote cuase i cannot read it on my mac for some reason on these forums)
.soulty
April 15th, 2004, 07:36 PM
oh your using the fla that i mentioned above, scrollable mc. well your going the right way about putting the text in, (my bad) you sure you have embed your fonts if you are using dynamic font?
Jezthomp
April 15th, 2004, 07:38 PM
yup they are.
.soulty
April 15th, 2004, 07:42 PM
any chance to look at your fla, be easy for me to see your problem.
Jezthomp
April 15th, 2004, 07:44 PM
any chance to look at your fla, be easy for me to see your problem.
Thankyou :)
.soulty
April 15th, 2004, 07:55 PM
got to go to work now, but will check it when i get back.later
Jezthomp
April 15th, 2004, 07:58 PM
Thanks for your help. I changed my monitor settings from thousands to millions colours and it seems to be ok but see if you can see a problem.
Cheers:)
.soulty
April 15th, 2004, 08:33 PM
had a quick look, dont see any problem, all good. why did you have your monitor at thousand colour?? anyway , think that type is too blurry though.
Jezthomp
April 16th, 2004, 05:23 AM
How do i stop it looking blurry, any ideas?
.soulty
April 16th, 2004, 05:24 AM
using dynamic text and pixel fonts, search the forums for those and you will find the answer.
Jezthomp
April 16th, 2004, 06:06 AM
I thought using dynamic text sorted out the blurring problem,especially when the fonts are embedded i have just looked again dunno if it my eye's it looks ok you can read it. Did you think it was especially bad?
:)
.soulty
April 19th, 2004, 01:25 AM
jez, you need to have the dynamic font on a absolute pixel position (eg.. 5.0 , 5.0) any point decimal (5.1, 5.0) will blur the type.
in other news :: i was asked how i successfully applied the external type code into claudios scroller, the particular code i was using was the first scroller, which had just a scroller no buttons and without the easing, but i sure its the same principle for both.
fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=false;
y = dragger._y;
maxy = bar._y+bar._height-dragger._height;
loadText = new loadVars();
loadText.load("news.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
myTextField.html = true;
myTextField.htmlText = this.newsinfo;
}
}
ill give the easing version a go as well.
.soulty
April 19th, 2004, 02:00 AM
ok , got it working, ive attached the fla. the weird thing is that the text only appears when you click on the bar or one of the arrows, but once its up, works fine. maybe claudio (if he sees this ;) ) can fix it up.
here is my try anywayz. :beam:
rhino
April 19th, 2004, 04:04 AM
[message edited by kode]
.soulty
April 19th, 2004, 04:07 AM
who cares dude, it dosent make you any less of a idiot. get a life, get a hope, because what you are showing by doing things like this is pathetic.
Its people like you that ruin a great site like kirupaforum. just so sad.
:sigh:
kode
April 19th, 2004, 04:15 AM
...And you're banned again. :P
.soulty
April 19th, 2004, 04:17 AM
lol :P , that was short lived.
.soulty
April 19th, 2004, 04:24 AM
since your here kode, any idea on the code?
kode
April 19th, 2004, 04:39 AM
LOL - What code?! :huh:
Kidding... I really don't have time right now, I'll check it out tomorrow morning. ;)
Jezthomp
April 19th, 2004, 05:31 AM
Does that include no pixel fonts eg arial? How do you make them not blurry?
.soulty
April 19th, 2004, 05:36 AM
check out the tutorial here for pixel fonts ...
http://www.kirupa.com/developer/mx/pixelfonts.htm
and here for normal fonts in flash.
http://www.kirupa.com/developer/mx/usingtext.htm
:)
Jezthomp
April 19th, 2004, 05:37 AM
cheers dude :)
lunatic
April 19th, 2004, 11:54 AM
Wow, I missed something there . . .
Soulty thanks SOOOO much for posting that. And hopefully kode will help fix it up! :pleased:
:hr:
lunatic
April 21st, 2004, 01:39 AM
Well, this is probably not the most elegant way to handle it but if you put
onClipEvent(load){
scrollEase();
}
on the 'main' movie clip then it loads right away.
But it seems only to work on your file .soulty. Still having trouble getting all of my text to load. Any thoughts Kode?
daniela
April 28th, 2004, 10:20 AM
I can't even tell you what a find your scroll bar was. Saved me. So much easier to use that the Flash components.I'm thrilled
therockstar
May 3rd, 2004, 03:26 PM
Yes, it is.
Right now my script is based on the dragger position.
Ill take some time later to change that so you can have only the arrows.Hi Claudio - great scroller, did you ever manage to rewrite the code so you dont need the dragger or bar?... I'm looking for something to do just this, I dont want the user to see a draggable bar - I just want a button above and below the masked layer, such that when the user rollsover the button the masked content scrolls up and down.... I can make it scroll pretty simply myself, but looks naff without the easing.
Any help would be greatly appreciated....
thanks
Nick
therockstar
May 4th, 2004, 10:48 AM
Hi Claudio - great scroller, did you ever manage to rewrite the code so you dont need the dragger or bar?... I'm looking for something to do just this, I dont want the user to see a draggable bar - I just want a button above and below the masked layer, such that when the user rollsover the button the masked content scrolls up and down.... I can make it scroll pretty simply myself, but looks naff without the easing.
Any help would be greatly appreciated....
thanks
Nick
bump...
this is all i need to finish off a project i've been working on.... can anyone help?...I really want to avoid sticking a dragger bar in the MC only to hide it from view!!!..
Thanks
Nick
therockstar
May 6th, 2004, 05:14 AM
bump again. (sorry to keep bumping this thread - but as I said, this is all I need to finish the project I'm working on.....)
Anyone else got any ideas for how to do this?..
Huge thanks.
Nick
therockstar
May 7th, 2004, 03:02 PM
bump...ow....bump....ow.....
Bazz
May 14th, 2004, 01:15 PM
You could always use your own scrollbar.
Something like this.
updated the file Hi,
I would like to know if it is possible to adapt this really cool scrollbar to a horizontal scroll? If so what do i need to change in the code. Is it also possible to use this scroll more than once inside a movie.
Thanks in advance.
Baz°
dredd
May 15th, 2004, 06:51 AM
sorry to warm this up again, but:
i have an image that is larger in height than my entire movie - but since i want it to scroll anyways that shouldnt matter. how do i resize it so the content doesnt get distorted but doesnt go to the end of my movie but stays in a restricted movie slip area.
and how DO i attach the scroll pane to the image?
pls help :(
333944
May 19th, 2004, 05:10 PM
Hey Claudio,
Props for the scroller .fla!!! , luv it (y)
abichap
May 24th, 2004, 10:53 AM
I looked through and tried using Claudio's scollbar but my masked text doesn't appear. Can someone help?
I really don't understand the AS as its too tough for a newbie like me.
I've attached my fla can someone help? Thanks!
abichap
May 25th, 2004, 07:59 AM
help?
kathari
May 25th, 2004, 08:07 AM
Did you embed the font?
abichap
May 25th, 2004, 10:58 AM
i embedded the font and the masked text appeared but the scrollbar still doesn't control the masked text.
btw whats embedding text? how does it help?
kathari
May 25th, 2004, 11:33 AM
Search for tutorials on text. I can't open your file for some reason so I have no possibility to check what could be wrong. I am sorry.
abichap
May 25th, 2004, 12:27 PM
thanks for helping me kathari. :)
is there anyone who can help?
lunatic
May 25th, 2004, 12:30 PM
Could you possibly resave the file in MX format and repost? Thanks.
:hr:
abichap
May 25th, 2004, 12:33 PM
i just realised after saving as flash mx document, it works perfectly.
so this piece of AS is meant for Flash MX only?
anyway thanks for the help rendered!
so AS 2.0 and AS 1.0 cannot work together?
ED_209uk
May 27th, 2004, 11:51 AM
Hi Everyone,
I have a question regarding using this scroller inside an external movieclip that I'm loading into my main movie. When I do this the dragger and bar work perfectly to move the text but the up and down buttons don't seem to do anything. The hand icon is appearing over them and they can be used to control the main movie but not move the text up and down.
Is there some script that I need to change to make it work inside an external movie?
Thanks for any help in advance,
Ed
lunatic
May 27th, 2004, 12:03 PM
Sounds like a path problem. Make sure the code for the buttons is set right for the path to your movieclip.
:hr:
ED_209uk
May 27th, 2004, 12:08 PM
Cool ok I'll take a look. If the actionscript that controls the scroller is all inside the external movieclip that's loading in do I need to put any extra script in the root of the main movie (tell me if that doesn't makes sense)?#
Thanks again :)
lunatic
May 27th, 2004, 12:14 PM
No you shouldn't have to. It should be a self contained little unit (the external swf). I use external swfs a lot and there always seems to be some little path problem somewhere that has to be tweaked before it works. It's frustrating to troubleshoot, because you have to recreate the swf from the fla every time you make a change, but worth it in the end file size wise.
Let us know if you need any more help!
:hr:
ED_209uk
May 27th, 2004, 12:25 PM
Great, I'll have a little play around and see if I can find it.
Thanks for your quick replies
canucksfan
June 9th, 2004, 06:05 PM
Hello everyone
I tried Claudio's scrollbar and it works great :)
However, there is a small problem. Whenever I reach the bottom of the scrollbar, the bar moves down as well PAST the stage. Here's my file
MX2004:
http://www.canucksfanzone.com/images/scroller.zip
MX:
http://www.canucksfanzone.com/images/scrollermxformat.zip
lunatic
June 9th, 2004, 06:18 PM
Why wouldn't you want it to? The same is true of any scrollbar . . .
:hr:
maximum_flash
June 9th, 2004, 06:32 PM
yea, i am not exactly seeing the problem...
canucksfan
June 9th, 2004, 09:49 PM
Okay, I started all over and it worked. Thanks guys :)
maximum_flash
June 10th, 2004, 02:13 AM
:pleased:
jribbe1
July 3rd, 2004, 11:31 PM
I have the file and it works fine when i use the original one that claudio posted. I can resize and all of that etc. now i copied the scroller into my flash file i wanted to use it in and it does not work anymore the up and down buttons move the dragger up and down but the main.mc with the text and images dont move anywhere. This data is not on the root level anymore because i copied it onto my file. Do i need to change the actionscript in there to get it to work? this is the level in which it resides left most is root.'
Scene1 --> interface.mc --> MENU.MC --> SUBBURRITO.MC (it the scrollbar function resides here)
Thanks for any help
claudio
July 5th, 2004, 10:49 AM
Can you attach your file so i can have a look?
PupChow
July 8th, 2004, 03:04 PM
I was referred to this thread by a fellow board member, I have to say it is pretty sweet! =) Before I dig too deep into the code and stuff though, I am wondering if it supports links for individual pictures (seems like what's scrollable is drawn from a movie clip)? I am trying to build a portfolio site so that'd come in handy. =) Sorry I am new to Flash, though I had some experience in Director, hoping that might help.
penster
July 9th, 2004, 11:25 AM
is it a mac thing but I can't see any of the posted actionscript changes to the 'claudio scroller'?
I've read that other people have had the same problem which is, the dragger on the scroll bar going off the bar (vertically) and under the down button when you scroll all the way down the content mc. I changed the movie height from 200 to 250 pixels high which I think is the cause and have been trying to change the parameters in the actionscript but frankly Im just stabbing around in the dark....
help?
or is it too late now...
poperszky
July 28th, 2004, 11:51 AM
Hi,
I would like to know if it is possible to adapt this really cool scrollbar to a horizontal scroll? If so what do i need to change in the code.
Baz°
Nice job on the scroller Claudio. I would like to know about the question above as well. How difficult would it be to convert it to a horizonal scroll?
Thanks!
Mike
dude9er
August 10th, 2004, 03:16 AM
ok , got it working, ive attached the fla. the weird thing is that the text only appears when you click on the bar or one of the arrows, but once its up, works fine. maybe claudio (if he sees this ;) ) can fix it up.
here is my try anywayz. :beam:
hey .soulty, any resolution on the text not showing until the scrollbar is dragged?
I've been playing with it and haven't figured it out.
Thanks.
dude9er
August 12th, 2004, 03:58 PM
anyone know anything about making this a dynamically loaded text box?
claudio
August 12th, 2004, 04:08 PM
Are you trying to load some external text and be able to scroll it?
dude9er
August 12th, 2004, 04:59 PM
Are you trying to load some external text and be able to scroll it?
Hey Claudio, thanks for replying. I love your scroll bar but having some issues with external text. Have a look...when you test the movie it isn't until the scrollbar is clicked that the text appears. is the a way of fixing this so the text appears when the swf is tested?
thanks for your help.
claudio
August 12th, 2004, 05:23 PM
I can't help right now, maybe after im back from uni.
dude9er
August 12th, 2004, 05:55 PM
sure claudio, no worries. thanks man.
claudio
August 13th, 2004, 12:45 AM
You had the LoadVars in the wrong place.
_this
August 16th, 2004, 08:43 PM
hi ...
and a window component ?
inside path, what digit or name put ?
:)
why dont use this ?
dude9er
August 16th, 2004, 10:44 PM
Thank you kindly claudio, that's awesome. Sorry I didn't get back to you sooner, didn't get a email alert from kirupa, nonetheless, I appreciate your help.
thanks man!!
claudio
August 16th, 2004, 11:08 PM
welcome
claudio
August 16th, 2004, 11:09 PM
hi ...
and a window component ?
inside path, what digit or name put ?
:)
why dont use this ?
Sorry i couldn't understand what you mean...
plonker
September 7th, 2004, 05:21 PM
Anyone looking for the horizontal version...here is one.
plonker
September 10th, 2004, 12:49 AM
Super cool scroller Claudio! Thanks!
I have a question...maybe two. So using the horizontal version; if I load a movie clip to the stage using attachMovie into a blank MC called "main" how can I get the movie clip to scroll? It seems that I would need to determine the width of the attached movie and declare it somehow. I have tried (and deleted) to get this to work but to no avail. The only way it seemed to work is if "main" had something in it already. This is fine if you only load one MC and you can set the width inside main to the attached movie clip, but what if you want to load (at diferent times) MC's of varying lengths...furthermore, what if the total width of said MC's are huge?
What I am trying to avoid also is "overscroll". That is to say I only ever want to scroll to the end of the loaded MC and no further.
I hope someone can help, it would be appreciated.
plonker
September 12th, 2004, 02:46 AM
Okay....is the solution right in front of me or is it not possible....can someone please help me out...? Claudio?, Scottie?, anybody?
Cheers evryone!
Plonks
Bazz
September 23rd, 2004, 07:26 AM
Anyone looking for the horizontal version...here is one.
Hi,
I was trying to use the horizontal and vertical srolls inside the same movie, but i can't seem to get it to work! I have given each target movie different names, aswell as each mask etc...
Does anyone have any ideas?? Please help.
Cheers.
Bazz°
julinho
September 24th, 2004, 03:16 PM
hey claudio how can I make it work using a DEVICE FONT option..i mean, with the mask the text has some smoothness and I dont like it, i need it to be like a pixel font....do u know how can i do that???
thnx in advance
Bazz
September 27th, 2004, 01:19 PM
Original POST
Hi,
I was trying to use the horizontal and vertical srolls inside the same movie, but i can't seem to get it to work! I have given each target movie different names, aswell as each mask etc...
Does anyone have any ideas?? Please help.
Cheers.
Bazz°
Could anyone please help me on the above question.
Thankyou very much..
2nd day
November 6th, 2004, 05:00 PM
hi everybody... ofcourse i am impressed too about this fla... but i have a question. i want the main mc to scroll to the other way... but i cant figure it out... can anybody help me?
thanks very much :D
icio
November 7th, 2004, 08:14 AM
here's one i made: http://www.cyberathlete.pwp.blueyonder.co.uk/flash/
i'll work on making it work with horizontal atm. you can use dynamic text, if you put a text box within the movieclip it scrolls.
hope it helps someone :)
kerrycorcoran
November 10th, 2004, 12:47 AM
here's one i made: http://www.cyberathlete.pwp.blueyonder.co.uk/flash/
i'll work on making it work with horizontal atm. you can use dynamic text, if you put a text box within the movieclip it scrolls.
hope it helps someone :)I hate to ask this question - but how to I implement one of these awesome scrollbars into my page?
i downloaded the FLA, not sure what to do next. I know, I am new, but learning quickly.
Here is the test site I am playing with - http//www.skurz.com/flash/022/main.html
Thanks in advance!
icio
November 13th, 2004, 10:55 AM
depends on what you're wanting to do. just have both files open in flash (ie. your file you want to put the scrollbar into, and scrollbar files) copy and paste all of the movieclips that you'll need from the scrollbar file into your file, and then set the variables in the movieclip's code that specify the name of the mask and the movieclip to scroll.
and i think you mean: http://www.skurz.com/flash/022/main.html
jjmancini
November 19th, 2004, 05:44 AM
Ok, quick question.
I can't get the dynamic text to work. Maybe it is becuase I do not know what a text box is. Is that the right terminology?
Inside the movie it scrolls, I have some dynamic text. Is that what you mean?
Thanks for the great fla!
g_wulfwud
November 21st, 2004, 06:58 AM
ei ei ei.. is this thread still open...?
got a question.i tried the scrollbar AS again, but the prob now is that whenever i scroll the mc,it goes downn the end until the whole text or pics are out of view..what i want is that when i reach the bottom i would see the end at the bottom...
uhmmm..kinda not so clear, just look at the file.. sorry.. thanks in advance
you'll see what happened here.. in the "home" link..
http://www.geocities.com/g_wulfwud/
here's my script in frame 2
stop ();
fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=false;
friction = 0.9;//1 for no easing
speed = 4;//1 for no easing
speed = 4;
y = dragger._y;
top = main._y;
bottom = main._y+mask_mc._height-main._height-space;
dragger.onPress = function() {
drag = true;
this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height);
dragger.scrollEase();
};
dragger.onMouseUp = function() {
this.stopDrag();
drag = false;
};
bar.onPress = function() {
drag = true;
if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {
this._parent.dragger._y = this._y+this._height-this._parent.dragger._height;
} else {
this._parent.dragger._y = this._parent._ymouse;
}
dragger.scrollEase();
};
bar.onMouseUp = function() {
drag = false;
};
moveDragger = function (d) {
if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) {
clearInterval(myInterval);
} else {
dragger._y += d;
dragger.scrollEase();
updateAfterEvent();
}
};
up_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, -1);
};
down_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, 1);
};
up_btn.onMouseUp = down_btn.onMouseUp=function () {
clearInterval(myInterval);
};
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
if (Math.abs(dy) == 0 && drag == false) {
delete this.onEnterFrame;
}
r = (this._y-y)/(bar._height-this._height);
dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction);
main._y += dy;
};
};
index
November 21st, 2004, 07:19 PM
You had the LoadVars in the wrong place.I'm trying to implement this the following way:
+ Create scroll.swf movie clip (works and displays the dynamic text fine)
+ load the scroll.swf file into another movie using
_root.createEmptyMovieClip
When i load the scroll.swf into another movie, i can see the scroll bars, however no text. I DID embed the fonts for the text field. I also made sure to use
mc._lockroot = true;
But the text still doesn't show up. Any suggestions what else i need to change/add?
g_wulfwud
November 30th, 2004, 11:33 PM
ei .. can someone help pls..
thebloodpoolkid
December 6th, 2004, 11:18 PM
Using the provided fla in post #8 of the first page of this thread. I was attempting to have the scroller, scroll a external loaded .swf using the MovieClipLoader object in MX 2004. If I add the a new instance of the MovieClipLoader to the end of the current script the swf does load and it is scrollable but if I scale the mask to occupy the target area I get a probel similiar to problem as described in post #14 on the first page of this thread. The provided slolution on page 2 of this thread post #24 has not resolved my issue.
Any suggestions.
thebloodpoolkid
December 6th, 2004, 11:35 PM
I have made some progress. I left the original content inside the MovieClip and it seems to be working.
tollady
December 8th, 2004, 08:22 PM
Great scroller. How can I put two next to each other in the same scene, scrolling different stuff? I have tried - duplicating the various parts and altering the names in the code and on the clips, but it does odd things and basically won't work for me.
Any ideas?
mikedevs
December 20th, 2004, 12:51 AM
this scroller is extremely helpful but could someone explain this
r = (this._y - startingY)/(bar._height-this._height);
dy = Math.round((((top - (top-bottom)* r ) - main._y) / speed)* friction );
main._y += dy;
in general, what is going on there? thanks
miledugo
scottybuckets
December 23rd, 2004, 02:24 PM
I'm having the same problem as tollady....
I want to add 2 seperate scrollers on one page but when i add the second scroller clip it scrolls the first movie clip instead of the second one that was added... i changed the variables on each item (dragger, bar, etc) and changed the variables in the AS but it still does the same thing.
whats the trick? advance thanks for your help
GW02
December 28th, 2004, 02:00 AM
Oh wow, this is a beautiful piece of coding.
As for those three lines, I think this is how it works:
The first like figures out the position of the bar relative to the size of it, giving you the position to scroll to.
The second figures out the whole easing thing, factoring in the current velocity and friction of the bar.
The third takes the calculations from the second and puts it into action.
I put 2 scrollers on the same page without problem... are you sure you named everything properly?
innoxist
December 28th, 2004, 11:36 PM
No idea what's wrong with this and it's killing me. The font in the dynamic textbox has already been embedded but they still don't show from under the mask. I've a feeling it's got to do with paths, but I'm not sure since I'm still relatively new to Actionscript. Here's the fla: Link (http://www.geocities.com/innoxism/woot.fla)
Can someone please take a look? Thanks in advance!
kakurembo
January 18th, 2005, 05:33 AM
I'm having the same problem as tollady....
I want to add 2 seperate scrollers on one page but when i add the second scroller clip it scrolls the first movie clip instead of the second one that was added... i changed the variables on each item (dragger, bar, etc) and changed the variables in the AS but it still does the same thing.
whats the trick? advance thanks for your help
anyone found a solution for this problem? I sure would like to find out how to go about it too as I've been having the same problem. thanks for anyone's help in advance. http://kirupa.com/forum/images/smilies/4ocular.gif
alwaysdrifting
January 25th, 2005, 07:58 AM
When the mouse moves over the dragger, how come the pointer doesn't change into a finger which indicates that something is clickable?
How can I change this?
Cheers
alwaysdrifting
January 26th, 2005, 04:36 AM
To the three above who had trouble with putting two scrollers in the same scene. I had trouble at first, the reason was I didn't change some variables when I thought I changed the lot. Therefore, it works but make sure every function, MC and variable are changed.
Furpants
January 26th, 2005, 08:23 PM
for a scroller that eases and I've finally found one. The only question I have is how do I configure it so that the images and slider scroll from horizontally instead of vertically?
Sincerely,
Furpants
earph
February 8th, 2005, 02:49 AM
Great scroller!! I was wondering if anyone could provide a commented version so I can understand what the code is doing.
Thanks!
rynokins
February 15th, 2005, 04:23 PM
To the three above who had trouble with putting two scrollers in the same scene. I had trouble at first, the reason was I didn't change some variables when I thought I changed the lot. Therefore, it works but make sure every function, MC and variable are changed.
can you post an example of this? I'm not sure what to change and what not to... thanks.
alwaysdrifting
February 15th, 2005, 10:08 PM
Variables:
space, friction, speed, y, top, bottom then all your MC instance names. Post yours and I'll fix it for you.
rynokins
February 15th, 2005, 11:51 PM
I'd rather do it this way - thanks for your offer... :angel:
fscommand("allowscale", "false");
_root.mainnews.bar.useHandCursor = _root.mainnews.dragger.useHandCursor=false;
space = 20;
friction = 0.9;
speed = 4;
y = _root.mainnews.dragger._y;
top = _root.mainnews.newstext._y;
bottom = _root.mainnews.newstext._y+_root.mainnews.mask_mc. _height-_root.mainnews.newstext._height-space;
_root.mainnews.dragger.onPress = function() {
drag = true;
this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+_root.mainnews.bar._height-this._height);
_root.mainnews.dragger.scrollEase();
};
_root.mainnews.dragger.onMouseUp = function() {
this.stopDrag();
drag = false;
};
_root.mainnews.bar.onPress = function() {
drag = true;
if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {
_root.mainnews.dragger._y = this._parent._ymouse;
_root.mainnews.dragger._y = this._y+this._height-_root.mainnews.dragger._height;
} else {
this._parent.dragger._y = this._parent._ymouse;
}
_root.mainnews.dragger.scrollEase();
};
_root.mainnews.bar.onMouseUp = function() {
drag = false;
};
moveDragger = function (d) { if ((_root.mainnews.dragger._y>=y+_root.mainnews.bar._height-_root.mainnews.dragger._height && d == 1) || (_root.mainnews.dragger._y<=y && d == -1)) {clearInterval(myInterval);} else {_root.mainnews.dragger._y += d;_root.mainnews.dragger.scrollEase();updateAfterE vent();}};
_root.mainnews.up_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, -1);
};
_root.mainnews.down_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, 1);
};
_root.mainnews.up_btn.onMouseUp = _root.mainnews.down_btn.onMouseUp=function () { clearInterval(myInterval);};
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
if (Math.abs(dy) == 0 && drag == false) {
delete this.onEnterFrame;
}
r = (this._y-y)/(_root.mainnews.bar._height-this._height);
dy = Math.round((((top-(top-bottom)*r)-_root.mainnews.newstext._y)/speed)*friction);
_root.mainnews.newstext._y += dy;
};
};
what confuses me is there are instances of '_y' along with 'y' - along with other things like 'd' 'r' & 'dy'...
earph
February 16th, 2005, 01:32 AM
rynokins.... how would I set that up in an .fla? Would you mind posting one with comments so I can learn how to set it up?
Thanks!
rynokins
February 16th, 2005, 11:30 AM
hey skillet,
sorry it's not my code, but if you want the .fla here (http://www.kirupa.com/forum/attachment.php?attachmentid=84) is the link from claudio, post #8 of this thread...
earph
February 20th, 2005, 02:24 AM
Thanks rynokins, but I already have the .fla. I was just wondering if you someone could comment the .fla so I could understand what the could was doing....
Lewwy
February 23rd, 2005, 05:46 PM
Is there an easy way to incorperate the scroller into a .fla I already have, this .fla includes mask's and I am getting very confused :(
earph
March 3rd, 2005, 10:57 PM
Would anyone happend to have a HORIZONTAL version of this impressive CLAUDIO SCROLL BAR? I've tried converting it myself, but I haven't been able to pull it off successfully.
Thanks!
alwaysdrifting
March 7th, 2005, 01:01 PM
When I have the speed at 4, If you drag the dragger to the bottom and release it before the content is scrolled. It stops. Without changing the speed to 1 for no easing. Anyway if you drag the scroller to the end quickly, release the mouse button, the content will continue scrolling to the desired position?
earph
March 7th, 2005, 07:43 PM
I'm using the horizontal version of the claudio scroller provided by plonker, but I'm having some troubles.
1. The dragger moves past the right button.
2. The MC doesn't stop at the end of the MC, it keeps going and disappears off the side of the main movie.
How can I set the width of the movie? Maybe I'm having problems because I'm not setting it up on the _root, but I'm setting the whole scroll movie in it's own MC. Maybe I need to change some of the code to say _root?
Any ideas? Fla is attached. Thanks!
Kristopher
March 7th, 2005, 07:57 PM
Thanks for the scroller Claudio. It solved my issues.
One quick question: Will there ever be any reference (as in hiearchy) issues?
mojojojo
March 15th, 2005, 02:47 PM
Help.
http://www.kirupa.com/forum/showthread.php?t=88815
:book:
jdulberg
March 28th, 2005, 04:44 PM
I'm able to get the scroller to work ok however I was wondering if its possible to have a couple extra "jump" buttons outside of the scroll area to jump between sections of text?
Any suggestions would be awesome... thanks :)
Jason
scottybuckets
April 2nd, 2005, 05:37 PM
i'm back... got everything working except one thing... I'm using the scroller with dynamic text... is there any way to use html tags in the text file.. the textfield is html enabled but am unable to change the attributes.. (ex: bold text or change color/size or certain words)
Manare
April 3rd, 2005, 03:41 PM
Hi you guys!
Along this looong thread I've seen that some people are having problems with paths...just like me now!
I'm using the "loading external variables" version of Claudio's scroller.
If I put it all inside a Movieclip (and give it a name i.e. "MClip") the scroller works but it won't load the dynamic text because I guess it can't be found. (I know so, because If tried without dynamic text, then it works).
The tricky part must be this one, which it's at the end of the main AS:
loadText = new loadVars();
loadText.load("news.txt");
loadText.onLoad = function(success) {
if (success) {
_root.main.myTextField.html = true;
_root.main.myTextField.htmlText = this.newsinfo;
bottom = main._y+mask_mc._height-main._height-space;
}
};
The question is obvious: If this all is inside a movieclip called "MClip", how do I call/load the file "news.txt" from there?
It must be easy for sure, but I've almost spent the whole Sunday to get this to work without success.
Can someone give me a helping hand with these @$#!sdf;P PATHS?..
Thank you!
Regards,
Manare
Manare
April 3rd, 2005, 04:04 PM
See...sometimes it's good to write things down. I've found the solution to this SILLY problem of mine.
Here's the thing. The text was loaded indeed but there was a worng path.
loadText = new loadVars();
loadText.load("news.txt");
loadText.onLoad = function(success) {
if (success) {
trace("data loaded successfully");
//THE PROBLEM WAS BELOW THIS LINE..
_root.MClip.main.myTextField.html = true;
_root.MClip.main.myTextField.htmlText = this.newsinfo;
bottom = main._y+mask_mc._height-main._height-space;
} else {
trace("data did not load.");
}
};
Thank you all for this great piece of code!!
tollady
April 4th, 2005, 03:03 AM
I'm trying to use the scroller in mx2004. It works fine when published in as2, but not when the output version is set to 7. Any ideas?
tollady
April 5th, 2005, 07:46 PM
I found an undefined variable - "space" in the code. Once removed the scroller works fine in mx2004!
Manare
April 5th, 2005, 09:04 PM
Hi again,
One question, is there a way to give this dynamic text some format?
I see I can include in the .txt file, this HTML tag:
<a href="http://www.google.com">Link a Google</a>
but other tags i.e for BOLD [ B ] or Italics [ I ] are not working properly.
Any hit? idea? or workaround?
Cheers!
unreFINEdARTist
April 7th, 2005, 09:16 PM
I change the speed = 4, to speed = 20, and nothing happens... so how do i make the text scroll faster??? Love the scroller btw. I feel like a fool...
louster
April 11th, 2005, 07:58 PM
Hi Guys, was there anyone who figured out how to get the scroller working without the scrollbar? so that only the buttons are used for scrolling...
thanks
Akma
April 12th, 2005, 07:30 AM
Hi! I've been looking for a decent scroller that can load an html file (with images) as dynamic text... unfortunatly none seems to work (and I'm not that good at actionscript to fix it) when in mx2004 there's always some problem (the images don't appear, or something like a large empty space bellow my html alters the scrolling length). excuse my bad english and many thanks, in advance, for any help!
Akma
Dimz
May 14th, 2005, 09:43 PM
hi , claudio i hope youre still around on kirupa , i have used your scrollbar.fla file and adjusted it alot , not the content wont scroll ; i had to paste the text into a separate layer above the mask for it to be seen at all , and it just sits there when scrolling ...
the .fla is here for the regualr MX Version http://www.dimmy.biz/scroll1MX.zip
and for Flash MX PRo 2004 its here : http://www.dimmy.biz/scroll1.zip
worm
May 20th, 2005, 10:34 AM
Wow, I cant believe this is the same thread that i commented in as early as 2003.
Sad to say, two years later, I still have a problem with the scroller. I cant seem to have two instances on the same stage. Can somebody post a .fla with an example of a workaround please! C'mon guys, sharing is caring :ko:
tollady
June 27th, 2005, 11:08 PM
Why is the speed variable declared twice?
How do I slow the scrolling speed?
Tyg3r
July 12th, 2005, 10:28 PM
I think good 'ol Claudio should make a version 2 :D
________
Colorado Marijuana Dispensaries (http://colorado.dispensaries.org/)
egoldy
July 23rd, 2005, 06:14 AM
the scroll is great.
but I want to use loadvar load dynamic text. when the text file insert <img> tag and public flash player 7 and as2.0. It can not work?
anybody have the same problem ?
333944
August 5th, 2005, 12:17 PM
Hey Y'all,
I'm having an issue with the dragger portion of the scrollbar. Whenever I start to drag the content (first time after it loads) the dragger actually shifts itself a pixel or so to the left. Has anyone encountered this problem before? I've been told it's a Flash bug and has something to do with scrolling images; which in my case I don't have, but I am using embedded pixel fonts so I guess that counts....
here's a link to the movie:
http://www.touchthedesign.com/test/touchWork_gd.html
Thank-you
Keep on contact, Romeo
GW02
August 5th, 2005, 01:52 PM
My guess is that the scrollbar itself wasn't positioned exactly on a pixel in the first place, and that when you ordered it to start moving it sort of "shifted" to its real assigned position.
Hope that helps. (-:
333944
August 5th, 2005, 02:21 PM
Hey GWing you're absolutely right.... i repositioned it, and the track, on even pixels. Everything lines up no pblm...
Thanks a million...
Keep on contact, Romeo
GW02
August 6th, 2005, 03:56 PM
No problem, glad I could help. ;)
jonbid
August 8th, 2005, 12:22 PM
has anybody been succesful in loading external txt files?
i have loaded the txt file, but i still cannot get the box to change height to accomodate the txt file that is loaded, i.e. if the text box is too small for the external txt, the height is increased.
jonbid
August 8th, 2005, 01:11 PM
i managed to resize the text box using "instName.autoResize = true;" , however, the scroll bar and buttons have given up on me. any ideas?
jonbid
August 8th, 2005, 03:04 PM
i have got the txt file loading, the text box to resize accordingly, but it still scrolls far past the end of the text box? why is it doing this?
and has anybody had any luck at getting the text to load first time? without clicking on the scrollbars?
i have attached my fla (claudio's really) with the progress i have made so far
i think it has something to do with the "bottom" variable and the fact that i have used the "autoSize = true;" on the text box?
if someone could offer any assistance it would be greatly appreciated.
thanks
jb
lfdesign
August 22nd, 2005, 11:58 AM
Can someone please tell me how to have 2 different scrollbars in the same stage??
age401
September 7th, 2005, 11:25 PM
Just wanted to say i used your scroller and it worked perfectly, my most sincere thanks.
spellmaster
September 9th, 2005, 02:08 AM
Hey I am trying to download the above file with no luck??
Any help appreciated!
yohan753
September 15th, 2005, 09:51 PM
I'm having problems with 2 scrollers as well. I have two in separate movie clips. Both movie clips loaded onto the stage. I basically copied and pasted the code someone posted earlier. Now on my 2nd scroller, the drag button does not stay attached to the scroll bar. It floats around wherever the mouse goes. Anyone else had this problem? I have attached the scroller I'm having problems with....
DeeTex
October 6th, 2005, 05:30 AM
I use flash 8 right now and I can see that the player version on the scroller is set to 6 and the AS verstion is set to 1. If I change that to version 7 (8) and 2 then it doesn't work. Can this be fixed to the versions are up-to-date? How?
DeeTex
October 6th, 2005, 07:04 AM
I thought I might share this with you dudes.
kandya
October 7th, 2005, 03:45 PM
I have a dynamic text box which pulls in text from a database how should I target this with the scrollbar? I've tried putting it inside a movieclip called main, but this only scrolls the entire textbox, not the text inside. I'm sure this is simple, but so am I :(
thanks
tsavo
October 12th, 2005, 06:24 AM
I have the exact same problem. How can you make the scroller scroll the dynamic loaded txt?
Jonbid is on the right track I think, making the textbox resize according to the loaded text. Cant look at the flash you posted thought, havent got mx2004...
Detex, looked at your example, this seems to be what I'm looking for, but again, I cannot open the .fla... Will it still work with MX?
jojomcbobo
October 12th, 2005, 04:43 PM
I thought I might share this with you dudes.
hey this is really cool! i was wondering, is there a way to adjust the kerning on the fonts? the text is hard to read because of this and im not sure how to change it. here's what im working on:
http://imagearts.ryerson.ca/jnaimark/V3/louis-scroller.html
DeeTex
October 16th, 2005, 07:31 AM
I don't understand the problem. Here it's working fine!!!
The text is loaded dynamically from the external text file and the textbox is resized according to the length of the text.
jojomcbobo
October 16th, 2005, 06:50 PM
I don't understand the problem. Here it's working fine!!!
The text is loaded dynamically from the external text file and the textbox is resized according to the length of the text.
yes everything works, but look how close the letters are making it very hard to read. I need to adjust the kerning somehow.
jojomcbobo
October 23rd, 2005, 03:00 AM
yeah i'm also having problems getting two of "louis-scrollbar"s on the stage. Can anyone shed some light on this?
jozz
October 24th, 2005, 01:39 AM
yeah i'm also having problems getting two of "louis-scrollbar"s on the stage. Can anyone shed some light on this?
hi, I think someone in this thread solved it already. Based on claudio scroll, u need to change each and every variable names for the 2nd scroll to work.
Everything(space, friction, speed, y, top, bottom, MC instance name....etc.)
Hope that works...
This is based on claudio scroll....I couldn't open "lois-scroller.fla"
Is it because it was created in flash 8? I'm using flashmx2004.
gud luck.
jojomcbobo
October 26th, 2005, 03:08 AM
I've tried this and simply cannot get it to work with 2 scrollers on the page, if you could help me i would really appreciate it. I've renamed every variable etc... to no avail :(
i attached my file for you to look at.
davezbox
November 4th, 2005, 08:15 PM
Is there a way I can load an external XML file? I tried .Soulty's file and it loads the external .txt file just fine but when I change it to a .xml file nothing shows up. Any ideas? Any help would be appreciated. Thanks!
pierreb
November 11th, 2005, 01:59 AM
Hi there...
This Claudio's Scrollbar is amazing and very "multi-configurable" easily.
I wrote a E-mail to Claudio, but I prefer to type my problem here too so other people can try to help. Here is the problem, link of my website: www.noistar.com . The scrollbar is in the STORE section.
The few modifications I've done to the code:
The scroll bar loads in a movieclip, and the content loads into a seperate one.
When I preview it offline it works ok. Once it's on my server... I get the problem you can see, the sort of reverse scroll. And strangely, sometimes it works... and you might have to reload the store to see the error... Any help would be appreciate, I can attach the files if needed, but first, lets see if somebody has an idea.
( the reason why it loads into 2 seperate clips is cause it would be too complexe for me to adapt the paypal codes to load into the claudio's scrollbar... a Combobox thing I can't figure out... )
Gil_Shwartz
November 14th, 2005, 07:24 PM
Hi
I'm using claudio's amazing scroller... the first one works fine but the 2nd one isn't.
both scrollers are on the same scene.
I would really like to know what I did wrong so here is the fla file and since its too big I uploaded it somewhere else:
http://www.mytempdir.com/262347
Thank you very much!
Henry
November 23rd, 2005, 11:50 AM
Firstly thank you Claudio!
Secondly I have searched this thread and found many pleople with the problem of having more than one of these scrollers in the same .swf and getting them to function independently
During my search I didnt find an actual example of how to fix the problem...
Anyway heres a link to a funcitoning .fla (8) to use...
http://www.emakmafu.com/forum/two_scrollers/
:rambo:
illamc
November 23rd, 2005, 09:16 PM
Great scroller Claudio! (Nice Icon too. The brasil EP was the first vinyl I ever bought!)
Can someone please post a copy of louis-scroller.fla for MX2004
That would be really useful for those of us without a copy of Flash 8.
Thanks! :beer:
illamc
November 23rd, 2005, 09:19 PM
Here's the Flash 8 version again, so you don't have to go looking for it. :angel:
If someone could make this a Flash mx 2004 file, that would be greatly appreciated!
illamc
November 24th, 2005, 09:01 PM
no worries. Someone sorted it for me already :nurse:
jozz
November 28th, 2005, 03:11 AM
this is a draft... sorry bcause it's pretty untidy.
hope it helps.
illamc
November 28th, 2005, 05:34 AM
this is a draft... sorry bcause it's pretty untidy.
hope it helps.
Nice one.
Now you have 2 scrollers working, it would be awsome to get them both to load text from seperate txt files. I might give it a shot. Dunno if I'll get very far, but worth a go, I reckon.
:elderly:
AgentFitz
November 29th, 2005, 10:13 AM
what's up guys. first off all thanks to claudio, the superstar.
the scroller works great in my movie when I use the "Courier New" font, but when I try to change over to Arial Narrow, the text disappears...any idea why this might be happening?
thanks! :)
illamc
November 29th, 2005, 10:19 AM
probably need to embed the font
AgentFitz
November 29th, 2005, 10:33 AM
yep that was it. good call and thanks to ya illamc
illamc
November 29th, 2005, 10:35 AM
no probs :rambo:
AgentFitz
November 29th, 2005, 10:57 AM
k...now I'm having another issue. hopefully just as simple as the other! when I change the amount of content in my main mc, how do I adjust the scroller so that it fits the content and it isn't scrolling a bunch of blank space after my text runs out? :-/
it's like I want to just go in there and 'free transform' the main mc, but of course that distorts the text itself. hmmmmmz...
illamc
November 29th, 2005, 11:06 AM
maybe u didnt reduce the size of the text box. I think it will just scroll to the bottom of the content. Check that the text box ends straight after the text
illamc
November 29th, 2005, 11:15 AM
it's like I want to just go in there and 'free transform' the main mc, but of course that distorts the text itself. hmmmmmz...
You can just go into the movie and resize the elements bit by bit. Make sure you unlock the mask
AgentFitz
November 29th, 2005, 12:38 PM
hmm....well now that I think about it, the dynamic text field isn't a movie clip at all...I can just resize the text box itself though, rather than transforming it - and that seems to be working. thanks again bro, still getting used to the flash interface :whistle:
illamc
November 29th, 2005, 12:42 PM
still getting used to the flash interface
Ye, me too. Might work it all out within the next decade! :p:
AgentFitz
December 1st, 2005, 10:59 AM
k -- sorry I'm beating the scroller thing to a pulp, but hey...one more question...when I add my graphics to the main movie clip -- aka simple bullets for the points, they line up in the flash authoring environment, but when I preview the movie, they are off kilter. any idea what might be going on here?
http://www.verseonedesign.com/images/lineup.gif
illamc
December 1st, 2005, 11:15 AM
are your little icons images? or a font? If it's a font, it might be that embeding problem again.
Flash can be weird sometimes. I've had similar problems in the past and just worked arounf them. (lined them up wrong, so that they look right when in player.) :puzzled:
illamc
December 1st, 2005, 11:16 AM
or try breaking the arrow bits up and having them as seperate bits
AgentFitz
December 1st, 2005, 11:19 AM
hmm...yeah they're all seperate images, just placed in the "main" movie clip.
AgentFitz
December 1st, 2005, 11:21 AM
well, they're graphic symbols, I should say - and it's weird because on some frames they line up, and on others....way off! There are so many, I would hate to hafta set them outta place in flash just to make'em come up correctly in the player...but yeah...if that's the only way, that's what I'll hafta do.
illamc
December 1st, 2005, 11:32 AM
:cantlook:
beats me.
Hey, out of curiosity. What happens if you break appart the ones that don't line up? Might not do anything, but you never know.
That would be what I'd try next. after that, maybe see if having them on the layer above changes anything
AgentFitz
December 1st, 2005, 01:01 PM
Hey, out of curiosity. What happens if you break appart the ones that don't line up? Might not do anything, but you never know.
That would be what I'd try next. after that, maybe see if having them on the layer above changes anything
tried those...no luck. but I did reposition them so they don't line up in flash, but they do in flash players and that worked out okay, so I guess I'll stick with it. Thanks for the insight illa!
illamc
December 1st, 2005, 01:10 PM
I bet u spent all that time doing it too!! :-/
Ahh well. It works now!
I'd like to see it in action once you've finished
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.