View Full Version : Formatting Scrollpane
Urbley
08-28-2004, 05:11 PM
hey!
was wondering if i could format the scrollpane component to have different colored scrollbar or the effects on the arrows... They turn green on press but was wondering could this be changed and if so.. how? :rolleyes:
any help would be extremely appreciated!
thanks.
Steve
Urbley
08-29-2004, 02:28 PM
found a few tutorials for anyone who is interest that state that the easiest way to customise, for example, scrollbars on the scrollpane in flash mx 2004 is to open the halo theme that comes with mx 2004 and drag the folder containing the scrollbar components onto the stage of the movie you wish to apply them to, and then directly editing them in flash. this sounds simple enough.
other ways to do this would also be to use instance setStyle and applying them to the named instance of the target combo box. in my case scrollpane.
a full list of editable attributes can be found in the flash help, under components, customising and so fourth! search you lazy ass! :P
it's also a good idea to look into and use _global.setStyle etc to keep all of your objects in the same format for larger projects.
Just a little research that i hope helps someone along.
Steve
dangerhotrod
02-16-2005, 10:07 PM
I've just been finding out that there's more things you can change than are listed in the documentation.
like the 'customizing the list component' page in the help documentation has a list of styles (themeColor, borderColor, etc) you can change with setStyle
but then there's ones missing like
// scrollbar arrows
_some_listbox.setStyle("symbolColor", "0xFF55FF");
// scrollbar background color
_some_listbox.setStyle("scrollTrackColor", "0x000000");
it's driving me crazy because now i'm assuming i can change other scrollbar colors (like the face color or the higlight color or the actual bar color) but i can't find what the style would be. i'm assuming it's something like scrollHighlightColor but all i can do is guess.
anybody got a better list of styles than what's in the documentation?
i don't want to skin it directly - i've already done that. and it's cool that i can make the scrollbar look different but i want to just change the color and i want to make it so i can change it with actionscript so i can put it in a class and stuff.
dinardo01
03-07-2005, 02:46 PM
I have noticed that adding scrollPane component a movie increases the size considerably. I had a movie (swf) of 6 kb. I then added a scrollPane via Component window and the file swf size increased to 44 kb - addition of 38kb.
However, adding the scrollPane made by xxml (found here (http://www.actionscript.org/forums/showthread.php3?t=44965) ) only adds 23 kb.
xxml's component probably has less code ??? Not sure, but I like it better.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.