Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




AS3 - Change Width Of ScrollBar / ScrollPane's Scrollbar



Is there any way to change the width of the AS3 scrollbar component? I've tried changing the width of the skin, but it always snaps to the default width.



Adobe > Flash General Discussion
Posted on: 11/13/2008 05:48:15 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

[CS3] Change Width Of Scrollbar In ScrollPane Component
Hi I'm using the scrollPane component in my flash movie to display some text. Is there any way of increasing the width of the actual scrollbar itself? It's appearing quite thin on the screen.

Any help is appreciated! Thanks very much!

The Scrollbar Component Is Too Fat Can I Change The Width?
i tried just doing the
scrollbar.width = whatever

but then it changed the perportions and the buttons arent square anymore.


is there a way to change the width so it still looks right, or am i stuck with a fat scrollbar?

[CS3] Change Width Of Scrollbar In ComboBox
Hi,

Is it possible to change the width of the scrollbar in a ComboBox? The default size is too small for use with a touchscreen.

Thanks.

Change Scrollbar Position In Scrollpane
Hi,
Someone knows how I can change the Y position of the horizontal scrollbar inside scrollpane component?
I can change colors... for exemple. But I can?t change the location of horizontal scrollbar for the top of my scrollpane.

Thanks in advance

How To Change The Scrollbar Size Smaller Than The Scrollpane?
i need to make the scrollbar about half the size of the scrollpane. Can anyone help?

Scrollbar - Width
Hi!

For what I've know, you've can't change the width of the UIScrollbar
I need a thin/small scrollbar, are there any component for this??

Like, the one here..at the right:
http://www.macromedia.com/cfusion/ex...Exchange&avm=1


Thankful for some advise
//S-fish

ScrollBar Width
Is there a way to widen a vertical scrollbar to a specific number of pixels? I'm trying to do this for both the DataGrid and ScrollPane components.

-Dave

Listbox Scrollbar Width?
Hi all,

how can i resize the scrollbar-width of the List-Component?
now - the scrollbar is always the same width... but i will resize smaller
like macromedia on the right you can see the small scrollbar...
http://www.macromedia.com/cfusion/ex...cfm?view=sn110


anybody knows?

please help - thanks...

Setting Width Of Scrollbar Component
Why can I not set the width of my scrollbar componeent to be smaller? Does anyone know how to do this? And no, you can't go into properties. SO far the only way I have figured this out is to actually go into the scrolbar component and make things smaller. but there has to be an easier way

ScrollPane And ScrollBar
Hi,

is it possible, to get the width of the ScrollBar in a ScrollPane?

Thanks
David

Scrollbar In ScrollPane
I am using scrollPane component, in which rows of data are genereted dynamically but the problem is the vertical scrollbar is not appearing even after the rows of data exceeds the viewabla area,
please help

Scrollpane/scrollbar
alrighty, im trying to get scrollpanes to work on dynamic text in my site.

http://www.geocities.com/rocklegendstudios/fka4.html

i created a movie clip to hold the dynamic text called loadr1, which holdsthe loading script for the dynamic text. The dynamic text is named newstex. But when i create a scroll pane and set its content URL to newstex, i get this

Error opening URL "file:///C|/Documents%20and%20Settings/Owner/Desktop/newstex"

does anyone know how i can fix this so that i could use the scrollpane on dynamic text? tnx.

Scrollpane/Scrollbar Help
The items in the list are being generated from an XML file. At the moment, I only have 5 in the list because that's all that would fit. What I want to do is have a scrollable list in that area, so that my XML file could list many more than 5 items.

I'm not sure where to begin. I've done searches online, but they don't seem to be what I'm looking for. What makes it more complicated is that those items in the list are dynamically created from a "linkaged" movie clip in the project library.

Any help would be appreciated. Even if it's just a point in the right direction. Thanks.





























Edited: 02/28/2008 at 07:31:09 AM by dextrometh

No ScrollBar On ScrollPane....HELP
Ok i have a Scrollpane with some images in it loaded from XML and it all works great apart from one thing. My ScrollBar doesnt show up. Im hoping this is kind of easy to fix, so if someone could let me know that would be great cheers.

At present all i have is a thin white space down the right of my scrollpane where the scrollbar should be. If i turn on Drag scroll everything works fine when i drag the contents of the scrollpane but if i turn it off there is no way to scroll the contents.

The actionscript code used to load the Scrollpane:

Code:
// Placement de la ScrollPane
attachMovie("ScrollPane", "Scroll_1", 2);

Scroll_1.setSize(250,400);
Scroll_1.contentPath = "CreationBouton";
Scroll_1.vScrollPolicy = "on";
Scroll_1.refreshPane();
Scroll_1.scrollDrag = true;

Scroll_1.setStyle("backgroundColor","0x474747");
Scroll_1.setStyle("shadowColor","0x474747");
Scroll_1.setStyle("borderStyle","none");
Cheers in advance

How Do I Adjust The Width Of The Scrollbar In The Scroll Pane ?
Hello Everybody,

How do i adjust the width of the scrollbar in the scroll pane ?


thanks.

best regards
Kiran:

Scrollbar Width On Scroll Pane Component
Is there a way to shrink the width of the scrollbar in the scrollpane component without modifying each and every symbol imported from the "halo.fla" file in firstrun/en/classes/mx/etc... folder?

Scrollpane - Change Scroller Width
Hi ppl,

today I am trying to change the color of the scroller on my scrollpane. Look..
Code:

createClassObject(mx.containers.ScrollPane, "sp", this.getNextHighestDepth());
sp.setStyle("borderColor", "0x000000");



the code above works fine but for one slight problem. A white border flashes up on my scrollpane then disappears. But the main issue is that the code for changing the scroll track color doesnt work:

Code:

sp.setStyle("scrollTrackColor","0x999999");



Why is this? Does any one know how I can change the color of the scroll track. Thanks

ScrollPane/ScrollBar Components...?
Hi,

I want to creata a MC with scrollable content. I don't want to use the scrollpane or scrollbar components integrated in Flash MX cause they're kinda ugly (no offence), but I can't figure out any other way.

My Q is: Does anybody know how to change the appearance of the scrollpane/scrollbar ?


Any help would be appreciated
thanks in advance


(pls)

Respositioning Scrollbar In Scrollpane
hiya
is there a way to position the scrollbar in the scroll pane on the laft handside instead of the right, I have looked at the actionscript but cant see the right things to change?

anyhelp appreciated.

(also when i was looking at script i see there is a keyup key down enter, but these dont work> do they have to be "activated" some way anyone know?)

cheers ! thanks 4 ya time.
ss

Need To Have Scrollbar On The Left Of Scrollpane
Hi guys

Got a problem. I need to use 2 instances of the scrollpane on my movie and I want to have one with the scrollbar on the right and one with the scrollbar on the left.

How can I move the bar to the left on one of these instances? Should I stick with the scrollpane component or are there customisable movieclip scrollers that I can use?

I am a noob when it comes to scripting so if you're giving me some code can you tell me exactly where it should go?

Thanks for any help you can give me.

Mat

Re-skinning Scrollbar/scrollpane
Hi guys.

Seeing as how I'm not much of an actionscripter
I've been trying to find a nice simple scroller
which scrolls both text and images ... basically scrolls
a movie clip.

I've tried the flash components but have only managed to
reskin the scrollbar ... the scrollpane is giving me trouble.

I've tried using some of the examples on this site,
but most are too complicated for me to adjust to my size
and design.

Please help ... anyone, show some sympathy
I'm just a newbie

c'mon

pleeeeeezzzzzzz

Scrollpane / Scrollbar Problem HELP
Flash MX
I have created a Flash Form that I have converted to a movie clip that sits inside a Scrollpane and once the user clicks on the Submit button, data is passed to an email.

Problem:
When the user tabs through the form and it gets to the bottom of the scrollpane, the rest of the form is cut off. I want to be able to code for, when the user tabs to a field below the bottom of the scrollpane, the scrollbar automatically moves down. A good example of this, is on this site, on the registration page. When you tab down, the scrollbar automatically moves down.

Thanks in advance

[MX04] ScrollPane Scrollbar
Hi, i was wondering if anyone knew how to change the properties (specifically the colour) of a ScrollPane ScrollBar. I have tried this code...

myscrollpane.setStyle("scrollTrackColor","#0505FE" );

I put this code on the frame of the scrollpane not on the scrollpane itself.

If anyone could help i would really appreciate it

cheers

conani

Dissapearing ScrollBar In Scrollpane
I have used the scrollPane component to scroll some content but when I publish the .swf it does not publish out the scroll bar I just get the content with no scrollBar - Any Ideas?

HELP,
-M

Scrollpane -> Getting Scrollbar Instances
I'm working on a project that uses the cs3 components. I've reskinned the ScrollBar component, which the ScrollPane component uses. It's used in a few places within my app, and in one instance I need to attach a .png to the horizontal scrollbar's slider. Since none of the pieces of the component have instance names, I'm getting the instance of the scroller like so:

var hScroller:Object = _scrollPane.getChildAt(1); // has rotation of -90 == horizontal scrollbar
var bar:Object = hScroller.getChildAt(1); // just got lucky here (got this by changing alpha values to see what was affected)

Is there a better way? This will work, but it seems hackish

Thanks!

ScrollPane Scrollbar Won't Update
Hello,

Problem: Using ScrollPane to scroll a movieclip vertically. Works perfectly. Then using buttons to "jump" to sections within the ScrollPane using (e.g.: my_sp._y = 200). This works just fine. Problem is I can't get the scrollbar within the ScrollPane to update it's position.

I've looked everywhere on the web, this forum, many others, Flash's help, google, etc...and can't seem to find the answer. I did try using my_sp.invalidate(); to refresh the ScrollPane, which it does, but it just jumps the moviclip in the scrollpane back to x=0, y=0. I don't want it to reset the whole thing, just the scrollbar to the movieclip's vertical position. Anyone have an idea what's missing here?

Much appreciated.

dave

[MX 2004] ScrollBar Now ScrollPane?
Checked the Components list in MX 2004 for the good old ScrollBar, and to my horror it wasnt there.

Has it been replaced by the ScrollPane? That component looks a bit weird, though (square in shape, hmm)..

Scrollpane's Scrollbar Issue
Hello, I'm doing this:

my_sp.contentPath = "loader"; // loaded from the library (is this really necessary?)
var content_mc:MovieClip = my_sp.content;

...then I am looping through some arrays and attaching textfields and radio buttons to "content_mc".

It all works except the vertical scrollbar isn't appearing when it needs to. How do i update the visiblity of the scrollbar after ive dynamically attached my stuff? I only want it visible when it is necessary.

Thanks

edit: I've tried just manually setting the vScrollPolicy to "on" after the scripts that do the attaching run, but the scrollbar doesn't scroll far enough?

edit edit: I traced the _height of "content_mc" and it was only slightly higher than the scrollpanes height, which is not what I expected because there are several textfields/button off the bottom of the scrollpane... what in the world is going on?!?!

edit edit Edit: I found that i could work around this by adding a movieclip to "loader" in the library, setting it's alpha to 0, and then scaling it taller using the _y position of the last attached button+its height and plus about 50 pixels because it still wasn't scrolling all the way down. This works, but is a sloppy, pathetic, embarrassing, hack...SHAME... I must be missing something.

ScrollPane ScrollBar Problem
I'm using ScrollPane component with scrollbars. And I have skinned them myself using HaloTheme as a reference. Everything works fine but the thumbtrack is not using rollover and down graphics. It uses the same graphics for all states. It is even happening with the default HaloTheme. Is there a way to fix this?

[MX 2004] ScrollBar Now ScrollPane?
Checked the Components list in MX 2004 for the good old ScrollBar, and to my horror it wasnt there.

Has it been replaced by the ScrollPane? That component looks a bit weird, though (square in shape, hmm)..

Flash Dynamic Scrollbar Determined By Browser Width
Hi everybody,

I've been asked to recreate a scrolling panel in flash, very similar to the one on:

www.un.titled.co.uk

My client likes the way that whichever window width you choose, the panel re-adjusts itself. Can you see how the scrolling mechanism is somehow relative to the window width?

I guess it's done in actionscript but I can't figure out where to start. Does anybody have any way of doing this?

Many thanks,

Tom

What Is The Best Way To Change The Width Of The Scrollpane Gutter And Arrows?
Has anyone done this? Do I manipulate the width via the code or by editing the assets themselves?
ta - m

Replace Scrollpane Scrollbar With Arrows?
Urgent!

I am using a scroll pane like an Iframe, I need to use two arrows to scroll up or down (i dont want to use a scroll bar) how do I do this?

Thanks
MD

Anyone Know If ScrollPane Has A SetSmallScroll() Property Like The Scrollbar?
Guys,
I would be most greatful if anyone can tell me how to make the scrollpane scroll down/up at a rate greater than 1 unit per press of the scroll arrows. I know you can do this with the setSmallScroll() property of ScrollBar...is there a way i can do this for the ScrollPane?

Thanks Much,
Niong

Buttons In A *draggable, No Scrollbar* Scrollpane
Hi all,

I'm trying to use a Scrollpane in a project. I am not using scrollbars and have set 'ScrollDrag' on so that the user can scroll by dragging.

However, this seems to render buttons in the content movieclip unusable because the scrollpane always has the focus. Is there anyway around this without resorting to scrollbars?

Much appreciated

Rikki

Scrollbar Or Scrollpane - Add An Anchor Link?
Hello,

When using either the Scrollbar or Scrollpane components in Flash MX, can I add some sort of anchor link that will make either component drop down to a certain region within that vertical scroll area? I'd like it to work like an anchor link on an html page where you have a list of links and when you click on, the scrollbar automatically scrolls to the section that you click...

Thanks

Foochuck

Flash 8 ScrollPane Reskin (scrollBar)
Greetings. I've seen several quasi-related topics in the past in this Forum but none that addressed this specific question, which is - how do I reskin the scrollBars of a scrollPane? Flash help simply states that the scrollPane component uses the UIScrollBar assets, so alter those (sic). But here is a simple version of code (as per Flash Help) that I've used the alter a text scroller's skin:
code:
onClipEvent(initialize){
downArrowDownName = "ScrollDownArrowDown2";
}

Voila - new skin. However, the same code doesn't work when placed on the scrollPane component. Thoughts? I know how to make the custom skins - I just don't know how to link them to the scollBar in the scrollPane component.

ScrollPane Scrollbar Doesnt Appear At First Load
i have a problem with the scrollpane component, whenever the content is loaded for the first time the scrollbar doesnt appear, but if i refresh the page the bar appears..

additional information :
- the content path is set dynamically throught the action script
- the content is another swf flash file
- ive tried every method inside the scrollpane class, (refreshPane(), refresh() and redraw() ), ive put it in the frame actions and in the on(complete) event. but still same problem arrised.
- the main flash file that has the pane is embeded using java script embedtion as to avoid the security problems with ie7..

hope these information is useful to identify the problem, please if anyone encountered this similar problem and knows the solution tell me, or if some expert manages to identify the problem help would be appreciated :)..
thanks alot for reading it.

Scrollpane Horizontal Scrollbar Position
ok, i'm stupid. i can't get the code to work to put my horizontal scroll bar on top of the scroll pane, or anywhere else. can someone please help. i'm new to actionscript, for please forgive my ignorant mistakes.

import mx.containers.ScrollPane;
on (complete) {
wak.hPosition(14);
}

yes, wak is my scrollpane. this is lame. i've looked all over the internet for help on this...

THank you.

AS3: ScrollPane Component And Scrollbar Position
Hi there:

I'm using AS3 to import, add and populate a scrollbar with textfields. I'd like to position the vertical scrollbar on the left side rather than the right side. How do I go about this using AS3?

I've searched in these and other forums, not to mention the Flash help, to no avail. If I'm missing something obvious, anyone is welcome to point it out... :)

Thanks!

Patrick

ScrollPane Component Loss Of Scrollbar...
Hey All,
I've got an issue with the ScrollPane component. In my main movie I have a button when clicked loads a movie clip that has the ScrollPane component in it. The ScrollPane loads a .swf of text and pics.

It works fine when I preview it but when I upload it to the web the Scroll bar sometimes doesn't appear unless I re-click on the button again. This is annoying.

Has anyone else run in to this and know how to keep it working regularly?

Thanks for the input!
-The Dr.

Changing Appearance Of A Scrollbar/scrollpane
Is there any ways to change the appearance of the scrollbar or scrollpane provided by the Flash MX Components?

The current default one doesn't looked nice.

ScrollPane Component Loss Of Scrollbar...
Hey All,
I've got an issue with the ScrollPane component. In my main movie I have a button when clicked loads a movie clip that has the ScrollPane component in it. The ScrollPane loads a .swf of text and pics.

It works fine when I preview it but when I upload it to the web the Scroll bar sometimes doesn't appear unless I re-click on the button again. This is annoying.

Has anyone else run in to this and know how to keep it working regularly?

Thanks for the input!
-The Dr.

Changing Appearance Of A Scrollbar/scrollpane
Is there any ways to change the appearance of the scrollbar or scrollpane provided by the Flash MX Components?

The current default one doesn't looked nice.

Make Scrollpane Scrollbar Invisible
Hi

I´ve been struggling a long time to get the scrollbar on a Scrollpane to be invisible, although I still want to be able to control the scrolling via actionscript. Any help is appreciated!

/David - Sweden

ScrollPane Vertical Scrollbar Problem.
Hello all....

I am trying to create a basic shopping section of a website, and so all I want to do is to load items into a movieclip based on an XML file the movieclip loads. Everything in regards to loading the content works fine.

However, I did a trace and found out that when the clip that loads the XML content starts, it's height is 0 (because that's the way I designed it). When it loads the XML content, the height changes accordingly. The problem is that the scrollPane component won't realize the new vertical size of the contentPath movieclip and change the vertical scrollbar. In the following URL are the files needed.

http://www.jake3p0.com/downloads/store.zip

I Need ScrollBar Or ScrollPane Component Help Please- Adjusting Size
I need to scroll content that has a visibly larger area than the scrollPane or scrollBar.

When I try to use a scrollPane (as far as I can see) the height has to be the same size as the viewable scroll area. I need the scroll bar to be shorter than the content that is visible, but when I change the vertical pixels, the whole thing gets smaller.

Is there any way to make the vertical scroller a specific size, while the bounding box stays larger? (I do not need a horizontal scroll.)

Or how can I use the scrollBar (rather than the scrollPane) to scroll content within a MC? ( I already know how to load a movie into a MC, but I can not seem to target it with the scrollBar for moving it.)

Please see the image of what I am trying to do. I have already done this successfully with the scroll bar and a text field, but the scrollPane is less flexible (with my knowlege anyway.)

<img src="http://www.a1flash.com/flashkit/demo.jpg">
Thanks so much for any help.

Setting Speed In ScrollPane/ScrollBar Components?
I was trying to figure out if there's a way to change the speed of a scrollbar in a scrollpane component so I can make my content move faster but I can't seem to get it to work. Anyone have any ideas?

FLMX2004 - Scrollbar Issues With Scrollpane Component
Hi there,

I have a scrollpane component in my main flash file, which in turn loads an external swf into this scrollpane. This external swf reads an xml file which populates it with a list of product descriptions and corresponding images. The swf's vertical length is dependent on how many products are in the xml file.

However, I find that in the main window, that the vertical scrollbar sometimes doesn't appear, and then you have to go back to another link and click back on it again and the scrollbar appears.

I am guessing that this is to do with the loading of the xml file (which isn't that big!), and before flash has the chance to load the xml file (from my external swf), my main swf already thinks that the external swf has loaded so neglects to put the scoll bar in.

Is there any way around this? Or a simpler way of doing this?

Cheers,
Media Penguin.

Copyright © 2005-08 www.BigResource.com, All rights reserved