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




Scroll Color



how can I spice up the scrolls from the scrollbar and scrollpane with colors other than the default white?

tks



FlashKit > Flash Help > Flash MX
Posted on: 11-25-2003, 12:29 AM


View Complete Forum Thread with Replies

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

Scroll Bar Color
Does anyone know how to change the color of the scroll bar? I used the default one and it is white with no color adjustment choices. Thanks for any help that you could provide.

J

Scroll Bar Color
Does anyone know how to change the color of the scroll bar? I used the default one and it is white with no color adjustment choices. Thanks for any help that you could provide.

J

Scroll Bar Color/look
How do you change a scroll bars look or color?

How Do I Change The Scroll Bar's Color In IE?
i seem some site that changes color
and i wan t to ask how to do that
thanks

Browser Scroll Color
How do I change the scroll color for the browser? not the scrollber in my flash movie or scrollpane but the global html browser??

Changing Scroll Bar Color?
does anyone know how to change the color of the default scroll bar component?

My Scroll Panel Looks With Less Color... Why?
Hi there:

I wonder why my control panel contain (text as example) looks softer when I run my SWF. For example, I have set #000000 or my black appearance, but it shows like a #333333 or even less... also the pictures contained in the scroll panel.. why ? I changed all the "Blend options" but nothing to do with it... it must be another thing... Please help me with this ASAP, I am in a hurry about time... ! thanx a lot in advance,

Changing Scroll Bar Color
I'm sure that there is a way to do this, and I looked at the flash help, but it didn't help much for this beginner.... I am using a scrollPane component, and want to be able to make the scrollbar a different color. I know there is a default "green" color, but that actually is only showing up on the arrows anyway, not on the middle bar thingie... can anyone help?

Scroll Bar Color Settings
I did a search in the forums and found some script using some kind of hex that i don't know, but it didn't include instructions on changing the scroll bars background (the actual bar between the up and down buttons) I've tried opening the properties menu, tried click it and editing colors, and tried right clicking and clicking edit, but i can't figure it out. if u can help that would be great

Color Scroll Bars In Window
Hi, I am using the
on (release) {
getURL("javascript:NewWindow=window.open('http://www.my website.net/thispage.htm','newWin','width=720,height=550,left= 0,top=0,toolbar=No,location=No,scrollbars=Yes,stat us=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}

to open a new window for viewing.
My problem is I want to customize the scroll bar's color to match my site. Since this is an HTML page I thought that I could do it through the HTML page, but that is not working.
I thought about using the HTML code as a varible in the flash movie but again I don't see how I can write the "style" into the code. All efforts have not worked so far.
Can anyone help me?

Scroll Pane Background Color
How can I change the background color of a scroll pane movie instance? I only want what is inside of the pane to have that color. Thanks.

Help Changing The Color Of Scroll Bar On Browser
can anyone tell me the html code to change the color of the scroll bar on the the internet explorer browser -------------->

that bar thats over the right.

And can you tell me how to put the html code in , like where ?

would be a big help

Thizanks

Scroll Data And Background Color
I have a main container.

I import dynamically info to read.

Now, if this info is too long for the container, then the scroll bar to the right becomes active.

The scroll and text have about 1/2 inch margin on either side.
Main background of container is dark gray.
Background of part containing text is white.

To offset difference, an mc was created to put as the background before the text is loaded.


Code:
public function displayContent():Void
{
this.content_mc = this.attachMovie( "contentContainer", "content_mc", this.getNextHighestDepth(), { _x:37, _y:140 } );
var contentScrollbar_mc:MovieClip = this.attachMovie( "ultimateScroller", "contentScrollbar_mc", this.getNextHighestDepth(), { _x:this.content_mc._width+this.content_mc._x, _y:140 } );
contentScrollbar_mc.size = 415;
contentScrollbar_mc.scrollTarget = this.content_mc;
contentScrollbar_mc.useMask = true;
contentScrollbar_mc.scrollToTop();
this.content_mc.format = this.fonts;
}
The contentContainer is loaded, this it the white background.

Problem is, it's height is not enough if the text is too much and a lot of scrolling occurs to read. Eventually, it ends and goes back to the dark grey background.

Is there a better way to set the bg as white and not worry about loading the contentContainer?

Thanks,

Changing Color Of Made Scroll Bar
i've just finished reading the scrolling dynamically loaded text tutorial and created my own scroll bar in my flash but i was wondering if the color of this could be changed...? or would you have to make the scroll bar through a different way? thx for your help

Scroll Bar Component - Change Color
How can I change the scroll bar color?
Can this be done with ActionScript? :)

Changing The Color Of Scroll Panel Component
I was wondering if anyone could help me out with this. I'm using MX2004 and I can't figure out how to change the skin on the Scroll Panel component. Currently when you publish it the scroll buttons turn green. I followed all the instructions on changing themes and skins in the flash help but it is not working. Please Help.

Newbie..need Code To Change Color Of My Scroll Bar
sliderColor = new Color(sliderButton);
trackColor = new Color(track);
arrowColor = new Color(arrows);
sliderColor.setRGB(myColor);
trackColor.setRGB(myColor);
arrowColor.setRGB(myColor);

hmm...i got a scroller that i want to turn white and black
this is what it is set to..
what is the code ? is it hex color code? this is weird

help would be appreciated thanks.

Change The Color Of The Scroll Bar For External Text?
how do u change the colors and such for the scroll bar for loading exernal texzt, like u would do to a html scroll bar?

How Do You Make Text Change Color As You Scroll Over It?
For example on www.drakebell.com there they have his name and as you scroll over it, it changes. Does anyone know how to do that on FLASH?? if you can please email me at argh_imma_pirate@yahoo.com ASAP! thanks! =]

Change The Color Of The Scroll Bar For External Text?
how do u change the colors and such for the scroll bar for loading exernal texzt, like u would do to a html scroll bar?

How Do You Make Text Change Color As You Scroll Over It?
For example on www.drakebell.com there they have his name and as you scroll over it, it changes. Does anyone know how to do that on FLASH?? if you can please email me at argh_imma_pirate@yahoo.com ASAP! thanks! =]

Scroll Bar Component OnRollOver Change Color Of Arrow
I have a scrollBar component and I want the arrow to change to a red color when I rollover it. How can I do this.
I have already set its globalStyleFormat.arrow = 0xFFFFFF;
Can this be changed when I rollOver a scroll button or press the button. But I only want it to effect the button I rollOver and not the other scroll button.

HELP Changing The Color Of My Scroll Bar...( ACTION SCRIPT INCLUDED)
how can i change the color of this scroll bar?
where it says 0xffcc00 is this hex color code ??
i want to change my bar and track to WHITE
or Gray or dark gray..
help





//Choose Color for Scrollbar, Track, and Arrows
myColor = 0xffcc00;

//Set Variables for Scrollbar and text box
top = (track._y-((track._height)/2))+((sliderbutton._height)/2);
left = sliderButton._x;
right = sliderButton._x;
bottom = track._y+((track._height)/2)-(((sliderbutton._height)/2));
initY = sliderButton._y;

//How fast to scroll the slider
speed = 10;

//Setting bounderies for the text box
textH = (textBox._height);
boundsH = (bottom-top);
size = textH-boundsH;
ratio = size/boundsH;
sliderHome = sliderButton._y;
sliderDist = (bottom-sliderHome);

//Check to see if text box requires a scroolbar
if (textBox._height<boundsH) {
sliderButton._visible = 0;
track._visible = 0;
arrows._visible = 0;
}

//Sets color for scrollbar if needed
if (textBox._height>=boundsH) {
sliderColor = new Color(sliderButton);
trackColor = new Color(track);
arrowColor = new Color(arrows);
sliderColor.setRGB(myColor);
trackColor.setRGB(myColor);
arrowColor.setRGB(myColor);
}

stop ();

Scroll Pane Component "bg Color" Or "bg Alpha"?
Hello

Is there a way to do away with the default bg color of the scrollpane component?
Also is there a featured part or method wich will act as a mask?

My movie loads others on top and my main movies image(s) need to show through beneath the loaded movie content which I wish to put in a scroll pane

Thanks in advance everyone

How To Save Color Mixes In The Panel: Color Mixer? (linear And Radial Colors)
How to save color mixes in the panel: color mixer?, linear and radial colors that is.
Because you can save solid colors, what about saving linear and radial colors

How To Change MovieClip RollOver Color(NOT Single Color, But Gradient) Dynamically ?
hi

I have created this for single color.But how to change when it is a gradient color.
for single color rollover code.

Code:
rollcolor = "0xFF0000";
normalcolor = "0x339900";
my_color = new Color(my_mc);
my_mc.onRollOver = function() {
my_color.setRGB(rollcolor);
};
my_mc.onRollOut = function() {
my_color.setRGB(normalcolor);
};
Thanks in advance

How To Change MovieClip RollOver Color(NOT Single Color, But Gradient) Dynamically ?
hi

I have created this for single color.But how to change when it is a gradient color.
for single color rollover code.

ActionScript Code:
rollcolor = "0xFF0000";
normalcolor = "0x339900";
my_color = new Color(my_mc);
my_mc.onRollOver = function() {
    my_color.setRGB(rollcolor);
};
my_mc.onRollOut = function() {
    my_color.setRGB(normalcolor);
};
Thanks in advance

Changing Fill Color And Line Color Dynamicly And Seperately
Hi community,

In this case, I am going to load a swf with a looping animation colored in black and white only. I want to change the color of the animation dynamicly so that I could have different color at each time. Here is my code:


Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import flash.display.*;
import flash.net.URLRequest;

private function init():void{
myCan.addEventListener(Event.ENTER_FRAME,capMotion);
}
private function capMotion(event:Event):void{
var bmd1:BitmapData = new BitmapData(mySwf.width, mySwf.height, true, 0x00CCCCCC);
bmd1.draw(mySwf);

var bitmap1:Bitmap = new Bitmap(bmd1);
bitmap1.x = 0;
bitmap1.name="org";
if (map.getChildByName("org") != null){
map.removeChild(map.getChildByName("org"));
}
map.addChild(bitmap1);
var bmd2:BitmapData = new BitmapData(mySwf.width, mySwf.height, true, 0xFFFFFFFF);
var pt:Point = new Point(0, 0);
var rect:Rectangle = new Rectangle(0, 0, mySwf.width, mySwf.height);
var threshold:uint = 0xFF999999;
var color:uint = 0xFFFFFF00;
var maskColor:uint = 0x00FF0000;
bmd2.threshold(bmd1, rect, pt, ">=", threshold, color, maskColor, true);

var bmd3:BitmapData = new BitmapData(mySwf.width, mySwf.height, true, 0xFFFFFFFF);
threshold = 0xFF000000;
color = 0xFF00CCCC;
maskColor = 0xFFFFFF00;
bmd3.threshold(bmd2, rect, pt, "==", threshold, color, maskColor, true);

var bitmap2:Bitmap = new Bitmap(bmd3);
bitmap2.name="dup";
bitmap2.x = bitmap1.x + bitmap1.width + 10;
if (map.getChildByName("dup") != null){
map.removeChild(map.getChildByName("dup"));
}
map.addChild(bitmap2);
}
]]>
</mx:Script>
<mx:Canvas id="myCan" x="10" y="10" width="650" height="603">
<mx:SWFLoader id="mySwf" width="100" height="250" horizontalCenter="0" verticalCenter="-7.5" source="dance.swf" complete="init()" scaleContent="false" autoLoad="true"/>
<mx:Image x="61" y="320" width="550" height="152" id="map"/>
</mx:Canvas>
</mx:Application>
It works quite fine but I afraid that it's quite resource consuming using enterframe and bitmap drawing. Is there any better method?
Thanks for help.

How Would I Go Changing Lots Of Movieclips Color And Border Color Seperatly?
I am in the making of a isometric level editor, and I have about 15 movie clips with more to come.
I want to let people change the color of tiles to what they want from a list of colors, so how can I let them change the color of a tile dinamicly with actionscript so that it changes a tile's color while preserving changes of "shadows"?
I mean I have let's say a cube and to make it look 3D I need to change each face to make a feeling of 3D and not a flat one.
thanks.

Text Color And Background Color Setting Dynamically
How would I go about setting the background color of a flash movie as well as the text color of a text box based an external variable?

I want to pass in both of these colors in the <object> tag
myfile.swf?bgcolor=red&textcolor=white

Please advise.

Thanks
Robert

Changing Color On RollOut Then Back To Color After 2 Seconds
I am using the code below to make a shape turn color using on rollOver, then on rollOut is changes to a differant color(blue), then I want it to change back to the first color(white), either on another rollover or I perfer to make it change back to the fist color after a 2 seconds,

on (rollOver) {
var colorful = new Color("_root.shapes");
colorful.setRGB(0x006699);
}
on (rollOut) {
var colorful = new Color("_root.shapes");
colorful.setRGB(0x006688);


I want to be able to rollOver change color, onRollOut Change color again, then back to the first static color after 2 seconds.
Anyhelp would be great Thanks

How Can I Set The Background Color Of A Flash Movie To A Color Not In The Palette?
Hi,

I'm using Flash 5. I want to set the background color of my movie to a color that is not in the color palette. Is there a way for me to set to color to whatever I want using hexadecimal color codes?

Thanks,

Sam

Drag And Drop Color Swatches To Color Target
Hi there,

Need some help with this. I want to have color swatches that can be individually dragged onto a target MC and have that target MC take the color of the color swatch that has been dragged onto it. This procedure should be able to be done over and over again so a new color can replace the old one. I am working in Flash MX 6. Any help would really be appreciated.

Thanks so much.

Can I Switch A 'solid' Color To 'linear' Without Having To Select The Color Itself?
Hello.
I want to change a background I made to the slick-looking 'linear' style, but every time I select a color and try to set it to linear the mixer switches to black. Is there a way of switching 'styles' without having to remember the exact location of my color?

Thanks in advance

Hex Color Code To Change Movie Clip Color
Hi all, Sorry real quick,

i've got a text box with the text with a hex code from a color picker which reads say "FF0000" how do i use that hex code(FF0000) to change a movie clips color.

simple (me stupid)....

thxs for any help

jon

[CS3] Changing Color (and Opacity Of That Color) Of Movie Clip
Hi. I have a pretty large movie clip filled with pngs. It's a sprite for a game and I want to change it's color. The setRGB method works, but I can't figure out how to set the opacity of the color. I don't want to change the alpha of the movie clip itself, just the color I'm applying to it so that it's just a shade over the normal images.

Is there any way to do this?

Assign Color To New Sprite In Order Of Color Wheel?
Is there a way to know the offset from one color to the next?

For example, I would like to create Sprite Balls, and have each be assigned a new color. But, I don't want it to be completely random color. I'd like it to be in order of the color chart slightly.

So if the first color is Red lets say, the next color would be a Yellow, then Green, then Aqua, then Blue, then Magenta, and back to Red. They don't need to be the absolute color, but in the general vicinity. Is this possible to do dynamically? What would the multiplier need to be to get to the next grouping of colors?

Drag And Drop Color Swatches To Color Target
Hi,

I am trying to have color swatches that can be individually dragged onto a colorless mc and have the mc adopt that color. This should be able to be replaced over and over again with new colors and reset to start again. I have only been able to find information on swopping mc's.
PLEASE HELP WITH THIS AS I AM STUMPED.http://www.jupiter.co.za/smart.jpg

THANKS SO MUCH

Fill Color And Stroke Color Option Not Working...
I am a faculty member at American River College who needs a word or two on how Flash CS3 works.

Specifically, how do I get back the option to add fill color to an oval drawing that I have made in Flash CS3? It appears that I have flipped a setting that makes that seemingly simple option unavailable.

I have several other documents where I have added fill color without a problem; however, as of this morning CS3 will not allow me do add such. When I open Flash, I draw on the Stage, the outline color is usually green, no matter what color I select for as Stroke Color and Flash will not allow me to change the Fill Color. I make a selection and nothing happens (just moments ago I opted for red as the Fill Color and the Fill remains white).

Is there a setting in Flash, that a rookie like yours truly could activated by accident?

Please help.

MacBrowne

Return MC To Original Color After Dynamic Color Change
How is it done? All I've seen on the web is how to change the color. Well how about going back. I'm talking about a MC with many colors. I can't just change back to a single hexadecimal color.

I can accomplish the change as it passes over a frame, but I can't get it to change back.

In the frame is this:


ActionScript Code:
cHurtColor = new Color(_root.compMC);cHurtColor.setRGB(0x00FF33);

Trying to keep this simple....

Return MC To Original Color After Dynamic Color Change
How is it done? All I've seen on the web is how to change the color. Well how about going back. I'm talking about a MC with many colors. I can't just change back to a single hexadecimal color.

I can accomplish the change as it passes over a frame, but I can't get it to change back.

In the frame is this:


ActionScript Code:
cHurtColor = new Color(_root.compMC);cHurtColor.setRGB(0x00FF33);

Trying to keep this simple....

[color=indigo] How To Make A Transition In My Page ?[/color]
I saw the first picture on a web site, "http://bigspaceship.com/". He use some kind of nice transition to blend a picture to another. Does anyone know how can I achieve the same effect ?

Color.setTransform(colorTransf) >>> Color Question
These are the codes I´m using on my mc (target)

onClipEvent (load) {
color = new Color(this);
colorTransf = new Object();
colorTransf.ra = 0;
colorTransf.ga = 0;
colorTransf.ba = 0;
}
onClipEvent (enterFrame) {
Rdif += red - colorTransf.rb;
Gdif += green - colorTransf.gb;
Bdif += blue - colorTransf.bb;
colorTransf.rb += Rdif / 4;
colorTransf.gb += Gdif / 4;
colorTransf.bb += Bdif / 4;
color.setTransform(colorTransf);
}

I´m trying to understand it...


1.0 I can´t get the "new Object()" What am I doing with this???

2.0 Why I set on (load) ra; ga; ba and then on (enterFrame) I use rb; gb; bb???

3.0 What exactly does the setTransform() do?

The rest I understand well...
Hope it´s not complex for explain.

Thanks!

Dynamic Color Slider Or Color Wheel ?
can someone help, or direct me to a tuttorial on
¥ user input to adjust/select color
- must be RGB sliders, or colorwheel/color bar to choos from

I need the user to be able to change the background color of a graphic, without them knowing anythign about color.

so it would be best if they could just adjust RGB sliders or pick from a color wheel would be even bettter. . .

thanks
Darin

P.S.
I could make a bunch of buttons with a few basic predefined colors, however this would be limmiting in selection.

Matching Bg Color To Surrounding Jpeg Color
I'm putting a flash movie into a space that's surrounded by a deep blue gif color. Nothing fancy - no gradient - just a plain, old, single color that matches out to a hex value of 333399.

When I set the Flash movie's background to 333399 and place it within HTML page, the colors don't match. I've fooled around with different hex combinations in flash and have finally found a combination that matches the blue gif background almost exactly (#294099) - but man, what a hassle!

There must be a better way to match a flash movie's background to a background that it will be placed within...isn't there? Please advise if there is...

Thanks to all in advance.

Hummm...one more thought, is there a way to export a movie with a transparent background???

Matching HTML Color To Flash Color
How come when I set #336699 to my HTML page background and also #336699 to my flash .swf background. I put the swf into the page and I could see the difference between the two colors!!!! How do I fix this?

To Show Color Default, Or Color Param.
I´m trying to do this, I have a dynamic text and in this dynamic text I call a value, in my HTML I have a PARAM color, he change the color of my dynamic text, so far works fine, but I have 4 products, and each product I have a especific value, example: in product 2 I wanna change de color of my value, my problem is I cann´t change this color.

In my HTML I have the PARAM " cp=006699 " it is the color of the values of the 4 products, 1 default color for the 4 values of my 4 products, but I would like to change the color of my 2º product, some special color " cp2=330099 ", and so on.

HTML

Code:
arquivo.swf?cp=006699&cp2=330099........
my AS.
code:
//alterar cor dos preços dos produtos 2 = cp2
if (cp != undefined) {
new Color (preco2_2_mc.preco2_mc).setRGB (parseInt (cp, 16));
}
else {
new Color (preco2_2_mc.preco2_mc).setRGB (parseInt (cp2, 16));
}


Sorry about my English.

Change Color For More Mcs With Color Object At A Time
This changes color of one mc:

Code:
myColor = new Color(myMovie);
myColor.setRGB(0x993366);


Is there a way if I have dozen of mcs to change color at a time for all this mcs?

Thank you

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