ActionScript 2.0 :: Kirupa's Simple Custom Scrollbar - Revised?
Aug 13, 2006
I am trying to modify Kirupa's Simple Custom Scrollbar to function the same as [URL]..I have managed to reposition / resize the scrollbar based on the Stage/Browser width/height but need your help to include these functions.When the Stage/Browser is resized, the "scrollFace" adjusts its scrollFace._y position to maintain its proportional position based on the new scrollTrack._height.Eg: The "scrollFace" is moved 3/4 of the way down the "scrollTrack".. When the Stage/Browser is resized, the "scrollFace" is still 3/4 of the way down the "scrollTrack" proportionally.When the Stage/Browser is resized, the "contentMain" adjusts its contentMain._y position to maintain its proportional position based on the new scrollFace._y.Eg: The "contentMain" is moved 3/4 of the way down via the "scrollFace".. When the Stage/Browser is resized, the "contentMain" is still 3/4 of the way down proportionally to the "scrollFace".When the "Mousewheel" of your Mouse is moved, it scrolls the content accordingly.Also it is a wee bit juttery in the scrolling, I'm not sure if it is anything I have done or just because its a large file?
View 5 Replies
Similar Posts:
Apr 13, 2010
I followed the tutorial [URL] and it is not working for me. It may be that I am attempting to use this nested within another movieclip. When I test it and click on the dragger on the scroll bar all that happens is that the dragger relocates to center of screen... and that's it. No scrolling, or whatever. To give more info, I am creating an ebrochure, where each frame on the main timeline is a movieclip "page" and in each "page" are several other movieclips. I am trying to use the scroller on "page" 11 (basically frame 11 on main timeline) and in that "page" are several movieclips on their own layers that build the page, including the layer that has the movieclip of the scroller content as per the tut. But I can't seem to make it work. Is this scroller functionable on the main timeline only?
View 1 Replies
Mar 30, 2010
I've successfully implemented the scrollbar from this great tutorial for some banners, but when I get to my 300x250 banner, the content gets cut off and disappears at a certain point while scrolling. This is the tutorial: [URL]. I altered the pieces for two different sizes without needing to alter any code, but this size is suddenly giving me problems. My FLA is attached.
View 3 Replies
Aug 12, 2006
I've followed the "SimpleCustom Scrollbar" tutorial and it works great. Is there anyway to customize the AS so it'll snap to the right side of a fullscreen flash movie and function? I'm working on a fullscreen flash movie and I want the users to be able to resize the window and still be able to see the movie - just like a stock OS scrollbar.
View 2 Replies
Sep 20, 2010
I worked through Kirupa's "Simple Custom Scrollbar" tutorial and successfully adjusted it to fit some of my content. Then I put it in a movieclip. I was hoping I could just go into each new instance of that movie clip, put in new content and be good to go. Unfortunately, when I edit the content inside my movie clip it edits the content of all the scrollbars in my timeline.
I tried renaming the instance "contentMain" to "contentMain2" in a second movie clip, that I also gave a unique instance name to, and adjusting the actions to match, but that still ended up renaming it in the other the scrollbars in my timeline as well as adjusting it in the actions of all the scrollbars.
View 2 Replies
Aug 26, 2007
I have been reading through the Source/Experiments threads and trying to implement suggestions in the Content Scrollbar (Revised) [URL].. thread. I'm using Flash MX 2004, Actionscript 2.0 and throughout the course of this great thread the suggestions seem to shift and become geared for Flash 8. There are a few hints that MichaelxxOA kindly left for MX 2004 people loading content dynamically but I haven't been able to get to work. It's been a long work in progress but I feel like I am getting closer. At the moment I have been able to get the xml content to load into flash but I had to create a kind of dummy cell in the contentMain that is approximately the length of the combined images in the xml document. Is there a way to change the code so that it can read and load the content of the xml document so that when it varies flash loads into contentMain what ever combined height the xml includes? Here is the zip including .xml, .fla, .swf, .as and image with progress so far.
View 2 Replies
Mar 11, 2008
I am having involves some pretty simple content loaded from an xml file (which I learned how to do here) and this tutorial for the "Simple Custom Scrollbar" [URL] When I load the content into the "contentMain" movieclip to be scrolled the scrollbar does not recognize that there is any content to scroll.
I am fairly sure I understand why this is happening (I am assuming that it has to do with the info from the xml file not being loaded soon enough for scrollbar actionscript to recognise it is even there)... But my lack of knowledge of actionscript is keeping me from even knowing where to begin solving this problem! I realize this is a relatively basic question so if it has been answered before in these forums a point in the right direction will do just fine.
View 2 Replies
Feb 4, 2009
Mainly been making websites all these years, but in my last year at school i started to get interested in Flash Actionscript. I've been at home for over a year in 2008, unemployed. I got back to school in September 2008 but quit the education as it wasn't for me. Now I'm looking to get a job, but I need a showcase, so I'm building my portfolio at the moment.
I'm currently working on my portfolio which i wanted to make in Flash using XML generated content. I got as far as getting the content generated in my prototype. Now I'm trying to build the real thing. I currently got a scrollbar on the left which contains the thumbnails. I used the custom scrollbar from [URL] ([URL]). The content in it is generated with xml and actionscript though.
[Code]...
View 2 Replies
Nov 17, 2009
That said, I would like to alter some of the code to allow the thumbnail scrollbar to begin scrolling once the page has loaded. Here is what the code looks like as it is right now.
[Code]....
View 1 Replies
Nov 16, 2011
I've removed all of the math I had done. Just trying to get the content area (_scrollable) to move up and down behind the mask in the opposite direction, just as you'd expect a scrollbar to do to a content area.
Dragging of the scrollbar is setup and this just needs some simple math coding in the thumbMouseMove function.
View 7 Replies
Oct 2, 2011
I've made the kirupa simple scrollbar [URL] to scroll horizontal. This works just perfect but it is not smooth. My question to you is - how to make it smooth? I've got 4 MC's with the instance names content, mask, scroll_area and scroller.
My AS looks like this:
onClipEvent (load) {
_root.content_width = content._width;
_root.scroller_area_width = scroll_area._width;
scroller._width = _root.scroller_area_width/(content._width/scroll_area._width);
_root.scroller_width = scroller._width;
[Code] .....
View 1 Replies
Jul 27, 2004
creating a simple scrollbar that scrolls dynamic text. What I am looking to do now is be able to scroll a movie clip with text and an image in it. How do I do that?
View 3 Replies
Feb 27, 2009
I have a dynamic textfield that loads an xml file and I'm looking for a good tutorial on how to create a custom scrollbar component to scroll the textfield with easing.
View 4 Replies
Feb 3, 2010
I'm using this custom scrollbar script I got somewhere. Works OK on page that needs it but when going to the other pages I get a "TypeError: Error #1009: Cannot access a property or method of a null object reference.at the_fla::MainTimeline/stopScroll()"
Code:
/* script to control scroll text */
var bounds:Rectangle = new Rectangle(scrollMc.x, scrollMc.y, 0, 200);
[code]......
View 2 Replies
Nov 18, 2005
I made a custom scrollbar for a textfield that works like a charm... but in it's "alpha-state", it was only showing where the text was scrolled to (and how long the text is, by it's own height)- you couldn't actually click the scrollbar and drag it. So I added a little AS to the actual scrolling block MC that *should* work... and kind of does- but not like I think it logically should..?
[Code]...
View 5 Replies
Sep 20, 2006
My problem is with scrolling vertical content with a custom scrollbar, where the dynamic content often starts at a y value ABOVE the viewer (or mask). I can get the scrollbar to reflect the correct % of available content on the scrolltrack, but for the life of me am stuck allowing scrolling for the full height of the content.The attached FLA (v8) shows where I'm stuck and how far I got. It's a much simplified version of the final movie, with static content for now, but demonstrates a case in point. I can't use the built-in scrollbar component/s because the content MC will be dynamically populated with further MCs and the content._y value will change constantly, usually ABOVE the 0 y coord of the movie.
View 5 Replies
Jul 19, 2011
I would like to know how can I make a horizontal scroll bar in AS2?I have make a vertical one already and using the below script, what should I change then let the scrollbar become left to right?
var scrollUpper:Number = 9;
var scrollLower:Number = 158;
var textLower:Number = 0[code].....
View 4 Replies
Dec 18, 2008
I am trying to adopt Lee Bremelow's OOP Scrollbar 2 to load external text. So far without luck. This tutorial uses three classes. In fla file there are movieclip scrollbox, inside of which are dynamic text field (txtField) and custom scrollbar ( consisting of two clips: thumb and track). If I copy some text into text field, everything works. If load external text into text field, text is loaded but it doesn't scroll. Below are codes from all classes:
View 3 Replies
Dec 27, 2008
when I test my movie my external text loads. if I scroll downany length with out retuning it to the top, and then click a buttonwich loads another external text file, you are not able to see thefirst few lines of the text file untill you click on the slider.the slider did not return to the untill I reset the sliderscordanites apon button click. is there a way I can reset the textfield.my code can be found in the sixth reply of this post [URL]
View 17 Replies
Aug 5, 2009
I am trying to create a custom scrollbar for a website... I watched the tutorial>[URL].asp on how to create one. I have the scrollbar working but it won't attach to the text! Here is the actionscript:
[Code]...
View 5 Replies
Mar 15, 2011
I intend to make a Custom ScrollBar that would work with Loading dynamic MovieClips upon runtime. I want the ScrollBar to scroll through those MovieClips.
What i am trying to do exactly: I want to create a "who's online" Something, add a Movieclip with information of the client to that 'Something' and use a Custom ScrollBar to scroll the content(dynamic-added MovieClips) of that Something.
View 5 Replies
Jun 3, 2005
just wondering if anyone could give me a kickstart with any tutorials or anything? i was hoping to make one like the flashloaded one etc..
aiming to make it work with dynamic text though
View 4 Replies
Oct 18, 2005
in flash8/mx04 is it possible to create a custom scrollbar for text only? i would like to make a dynamic text field with a scrollbar that doesnt need to be contained in a masked mc like most of the scrollers i have seen on this forum so far. i dont want to use the UIscrollBar component because it doesnt quite (well, doesnt at all) fit in with the theme of the project i am working on.
how to make a scrollbar?
View 1 Replies
Feb 6, 2007
I am trying to make my own text scrollbar with dragger. I don't want up or down buttons just the dragger. I've done this so far...
Code:
var scrollHeight:Number = scrollTrack._height;
var ms:Number = newsText.maxscroll;
var left = scrollTrack._x;
var right = scrollTrack._x;
var top = scrollTrack._y;
[Code] .....
It scrolls till the end of text but not to the beginning....
View 1 Replies
Aug 11, 2003
I am making a scroll bar but it doesn't scroll as far as it should. I triple checked all my math but I can't find anything wrong. Probably the code of interest is on the movie clip content0 within the instance whole. This is what actually controlls the scrolling. Most of the other script dictates how the sliders work so you can ignore that, they work fine. Scroll index is a number between 0 and 1 indicating how far down the bar the slider is, 0 it hasnt moved, 1 it is at the bottom. That works as well. So i am not sure why this doesnt work.
View 5 Replies
Feb 4, 2009
I am new to xml content in flash. I have been through the kirupa tut for loading xml content and have been successful in implementing it, but I now want to implement it into a scrollbar so I can use css and img tags. I can get it to work using the UI scroll component, but I want to use a custom scroll bar. I get the XML to load fine but I have no clue where to stick in the firstChild.childNodes[0] so I can call to certain attributes within the XML document. Below is the AS for the custom scroll bar.
Code:
stop();
holder_mc.setMask(mask_mc);
var LV:LoadVars = new LoadVars();
LV.onData = function(info:String):Void {
holder_mc._txt.text = info;
[Code] .....
View 1 Replies
Jul 1, 2011
This is probably a really dumb question, but I recently created a custom scrollbar using this tutorial. [URL]. Have managed to get it working (well sort of...) It scrolls down- but it won't scroll to the bottom of the content. I'm guessing I have to plug in numbers in the script, problem is I'm very new to this.. where to i plug it in.
These are my numbers:
measurements (pixels)
H_C= 1024
H_T= 382
H_F= 25.4
H_V= 450
View 1 Replies
Mar 15, 2010
I created a cs4 flash movie on our website and everything worked fine. When I modified it and uploaded it, however some browsers are not loading the new movie unless they clear their cache (IE 7, Safari so far).Is there some way I can tell the browser to grab the updated version (same name) automatically?
View 3 Replies
Aug 14, 2010
I created a cs4 flash movie on our website and everything worked fine. When I modified it and uploaded it, however some browsers are not loading the new movie unless they clear their cache (IE 7, Safari so far). Is there some way I can tell the browser to grab the updated version (same name) automatically?
View 1 Replies
Mar 15, 2010
I created a cs4 flash movie on our website and everything worked fine. When I modified it and uploaded it, however some browsers are not loading the new movie unless they clear their cache (IE 7, Safari so far). Is there some way I can tell the browser to grab the updated version (same name) automatically?
View 3 Replies