ActionScript 3.0 :: How To Add ScrollBar
Mar 11, 2010My table is too large to locate whole in frame. How can I add the ScrollBar in this frame?
View 1 RepliesMy table is too large to locate whole in frame. How can I add the ScrollBar in this frame?
View 1 Replieshow I would convert this vertical scrollbar into a horizontal scrollbar
heres the code:
onClipEvent (load) {
diff_y = bound_box._height-scroller._height;
bounds = bound_box.getBounds(this);
top = bounds.yMin+(scroller._height/2);
bottom = bounds.yMax-(scroller._height/2);
[code]....
I want to create two textfields in flash wich will move the text simultaniously by using one scrollbar. for example. the left textfield contains text and the right textfield contains pictures. and the scrollbar is in the middle.
View 1 RepliesI have created a dynamic text box and attached the default UIscroll bar from the components library in CS4.I have attached it to the text box and it works ok.When i drop it onto my page it appears white (my background is black). When I preview it does what it is supposed to. So far so good. NO! The default Scroll bar is hideous. I want to change it but I cannot figure out how to.
I have tried double clicking it but it cannot be edited. Is this an action Script thing? I have recreated it in another flash document with the text box and the scroll bar which I have attached called 'scroller with text'.I have double cliked the scroll bar and changed it to how I want it and it works, i know how to but its not in my main flash file i am working from. I have saved the one Ire-created one as a SWF and tried importing it but it has errors on it. see attached 'MAIN_Menupage'.I have been through all the tutorials on this website and cannot get this to work.
When opening an .fla in Flash CS4 everything is aligned top left and no scrollbars appear:Have I forgotten something really simple here !? Can this be a mac to pc issue? I tried resaving the .fla but nothing changed.
View 1 RepliesI have a movie clip that loads thumbnails from images folder by reading the location of image from xml file...The problem is I have put up a scroll bar but its not working i.e its not scrolling the thumbnails' movie clip contents. I am uploading the fla...any line of code I need to change I think its the scrolling function. The scrolling script I used is from kirupa. I don't want to use classes in this...and want the up n down buttons to remain.
View 6 Repliesgive me a few simple steps to create a drag/scrollbar like this one?:
[URL]
My client would like his pages without the right scroll bar. I realize it is a bit crazy on his part, but this is what he wants. How can I publish Flash ani so that there is no vertical scrollbar on the right side? Here is the example that he is using..[URL]..
View 4 RepliesAlright so I'm a flash idiot, got a premade template that's flash with XML for the page's text / titles.. now that's fine and all, and I can write lots of text.. but the downside is.. there's no scrollbar.. so if you write too much, you can use the middle mouse button and scroll down to read the rest.. but I'm wanting to add a scrollbar to be more user friendly and visually 'appearling'.. now I'm wondering since I'm a flash idiot how I can add a scrollbar to certain pages (or every page?) when needed.. can anyone tell me how to start.. whether it would be strictly in the XML (easier I guess because it's just adding in code..?) or does it have to be done in Flash? (harder.. since I have no idea wtf to do)..
View 5 RepliesI'm pulling an external SWF in to a smaller movieclip. I need to have a scroller bar. How and where do I need to put it?
View 1 RepliesI am trying to build a AS3 only project and I ran into a problem that when I turn some MC's visible on...they are out of my browser window and there is no scrollBar for browser to scroll down.
View 3 RepliesI'm having few scroll bars for some text which is been pulled in dynamically.
How do I change the color of the UI Scrollbar? I'm using CS4.
How do I set the swapDepth for my UI ScrollBar? (the scrollbar show-up when some external text is being loaded). Or how do I make 'abc' right on top of all other items?
[Code]...
I want to specify amount to scroll with VScrollBar. So in Flex 3 we have "lineScrollSize" but how this property called in Flex 4? I thought it VScrolBar.stepSize but it dose not do anything.I just whant my content to scroll faster on mouse wheel.
View 3 RepliesI have an AS 2 scrollbar that I use over and over when I need to. The scrolls layers sit on the main timeline so in the past all I did was copy to the new fla main timeline edit the scroll, buttons, colors etc. I need a scrollbar in a project and I want to use the same scroll but the problem is the scrollbar must sit inside of a movieclip called "page-design"
The scroll uses the old Tell target method in AS 2 and I'm having trouble getting the correct code to work. rather than copy and paste the original code here, I have the fla of the original scroll working off a main timeline. What I need to do is to put the scroll inside a movieclip so the scrollbar is inside "page-design_mc and page design _mc goes on the main fla timeline follow?
How do you reset the scrollbar in Flash? (I'm using the component, not a cusom scrollbar.)If you go here, scroll ALL the way to the bottom and then click on "Donations" - you'll see the scrollbar stays in place.How do I get it to refresh each time new text is loaded? I've tried refreshPane() and a few other things, but nothing works.
View 7 RepliesI have searched the forum for this, and there are a couple of similar questions, but no answers (bad sign I guess...).Is it possible to use movieclip.createTextfield and use a component scrollbar?
View 4 RepliesI made a scrollbar, dynamically attached to a dynamic textfield, and it looks fine when I publish in Flashplayer 6. When I switch to 7 however, the x_position jumps to the _x postion of the Textfield instead of the position I gave it (513). And I also made something to make the scrollbar invisible when there is not enough text, but in Flashplayer 7 I still can see an 'inactive' scrollbar.Is it my coding that is maybe partly AS1.0 (I am terrible at that)? Or something with UI components and Flashplayer 7?[code]
View 2 Repliesok - i'm totally confused here... this is probably a stupid noob question... just recently got flash 8 - upgrading from mx2004, but had previously been using flash 6 components and AS1, due to files that had already been written in mx... my problem is this - i have a dynamic text field, populated with data from a LoadVars object. When a button is pressed, different data is loaded into the text field, and the scrollBar is supposed to reset to the top (position=0)
[Code]...
I have a small problem, i used the tutorial from kirupa for my scrollbar, but it's not working. I load the text dynamically from a text file with a typewrite effect. Here it's the code:
Code:
//
Code:
[code].....
[URL]Basically, I would like to have an xml gallery, grid alignment... and to be able to use an actual scrollbar to look through the thumbnails.I tried to do this at home but got weird results, IE when scrolling down the thumbnails would actually scroll up etc.
View 6 RepliesCode:
function makeScroll(textToScroll) {
textToScroll.createClassObject(mx.controls.UIScrollBar, "my_sb",
[code]....
I want to display a list of purchases with their name and price. I want the price aligned right and the item aligned left. Should I try to do it in two text fields and one scrollbar? Or should I put the two text fields in a movie clip and scroll the movie clip? The text is dynamic and I don't know how long the list will be.
View 1 Replies trying to modify the custom scrollbar that is in the tutorial section, it works nice, but i need to scroll the contentMain with the up and down arrow keys also, i think it needs a listener event, but is a kind of tricky for me.The complete code that is in the tutorial exactly is this...
scrolling = function () {
var scrollHeight:Number = scrollTrack._height;
var contentHeight:Number = contentMain._height;
[code]....
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 Repliesplacing hyperlinks and making these hyperlinks to scroll by using a Scrollbar. But, I didn't get any solution since long time .
View 1 RepliesI'm trying to do a vertical scrolling full screen flash website and for the life of me I can't find a scrollbar tutorial anywhere to make the site scroll in AS3 (when I'm talking about scrolling, I mean getting rid of the native window scrollbar and having flash control it's own custom scrollbar to go up and down through out the site).
View 3 RepliesIs there any simple way to scroll a dynamic textbox with easing, without having i scrollbar visible? perhaps something that scrolls when mouseover? Every tutorial i found is with a scrollbar, and still i come across the kind of scroll that doesn't have a scrollbar!
View 1 RepliesI have a scrollbar in which a very long list which I can't make any shorter / smaller.roblem is, the script for the scroller demands that I place the text at 0,0 on the Flash axis, and the lenght of the text makes it run way down to the lower edge of the Flash workingfield.Somehow this makes the text run 'beyond reach' of the scrollbar; the scroller only shows about 2/3 of the list, and does not show the text beyond that point.How can I extent the reach of the scrollbar??? Can I shift the 0,0 point of the Flash axis (maybe place it higher, so the text falls into the more 'reasonable' regions of the workingfield of Flash?)
View 1 Repliesi have created some 6 -10 buttons and i want to keep these list of buttons in the scrollbar. so that a user can view only a set of 4-5 buttons at a time.i tried out the kirupa-scrollbar but when the masking is done on set of buttons all the buttons are under mask and i am unable to click any of those .i tried the UIscrollbar component, it works for the text area but not for the buttons
View 2 Replies