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




Hex Color As Variable In Color Object?



im trying to do this

myColor = new Color(myMC);

myColor.setRGB(variable);

we have all of the colors we need in css info in a database but im attempting to use the same values in flash. i can load the variables in fine but when i try to set them as a hex color it just assumes the letters are hex colors.

any suggestions



FlashKit > Flash Help > Flash ActionScript
Posted on: 10-23-2001, 08:58 AM


View Complete Forum Thread with Replies

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

How To Use Variable In Color Object?
I would like to use a variable in the color object but dont know how to. What I am using is:
myColor = new Color(bg);
myColor.setRGB(bgcol1);
Here the RGB value is stored in the variable bgcol1 which is '0xffffff'. But its not working. I am getting the variable bgcol1 from a database. Is there a way to use the variable in the color object?? I have a book in which I want the pages in different colors and so I have taken a variable bgcol in the database and bgcol1 corresponds to page 1's color and so on. I am being able to get the correct values in the variables but somehow in the color object it doesnt work. Kindly help.

Pass Variable To New Color Object
I basically have an array of buttons and am looping through and assigning a new Color (instance name) to each.

Is it possible to pass a variable to a Color object like below?


Code:
buttons[i] = new Color (buttons[i]);
cos that aint working

If it can be done.... am I just using the wront syntax?

Defining Object Color In Flash By Asp Variable
Hi,

I'd like to define a color of an object in flash, by entering a hexcode value into a variable which is then passed on to the swf.

I really have no clue how to do this.
I read the tutor 'asp and flash' on asp101.com from Dan but i still don't seem to be able to figure out how to do this.

Any help would be greatly appreciated.4

Using A Loaded Variable From A .txt File To Change The Color Of An Object
Does anyone know if its possible to use a .txt file to change the color of an object? It would be awesome if i could figure this out, its hurting me inside. If this isnt possible, it should be!

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

[F8] Color Swatch Or Change - Color Object?
You know how on retail sites or even a car site you can swap the color by clicking on the swatch and than the image changes the color. I wanted to do this in flash preferably with actionscripting but I have NO CLUE how to do it. Can anyone show me a tutorial or advise me o how to do this. This is just a BASIC example in flash five but this is the same concept I want. http://www.adobe.com/support/flash/i...y/colorobject/ If anyone knows of a high level example with tutorial I would appreciate it.

Turtle

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

Setting The Color Of Multiple MCs Using One Color Object
Hiya I am making a movie that has to be published to Flash Player 6 and want to set a bunch of movie clips to have the same color. Here is my function:

ActionScript Code:
var fillObjs_ar:Array = [square_mc, circle_mc];function colours(array:Array, color) {       for (i=0; i<array.length; i++) {        var my_color:Color = new Color(array[i]);        my_color.setRGB(0x+color);    }}colours(fillObjs_ar, FF0000);

My problem is that I get the error message:
"Hexadecimal digits expected after 0x" referring to the 4th line of my function.
If anyone could help me out it would be really appreciated.
Thanks
Schm

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

Background Color With Color Object?
Hey guys, quick question, is there a way to control the background color of a flash movie using the color object or some other way? i would like the entire window (html background included) to change, so sticking a stage-size movieclip in the back wouldn't help. Thanks .

Color Object- Get Color Name?
Hello,

I made a color picker and I was wondering if the color object had any way of grabbing the actual color name?

I know I could put all the colors into an array and call them up as needed... I've done the same thing in C#... and the color object in C# has a color name feature, I was wondering if Flash's color object had the same deal.

-Ryan

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.

Color Object How To?
I want to change the the color of a movie clip with actionscript, but i want it to change in increments.
I have been messing with the color objects but i have not used them before so i am no quite sure what i am doing. Could someone tell me how i can go about getting this done.

The Color Object
Got a question.

Do you have any idea how to go back to the original color of an object after having used setRGB(...

For instance I have a red box with a black border.

Using the code below the entire symbol is changed to WHITE, which is desired.
headColor.setRGB(0xFFFFFF);

But if I want to change it back to the red box with the black border, it seems impossible. Picking another setRGB color does not give me the original symbol which was red with a black border, it just paints it all a different color.

How do i return to the default of NO TINT ?

Any clues?

Love to hear your solution here if you have the time.

Jay
mailto:jay@flashbomb.com
http://www.flashbomb.com

The Color Object
Hi:

I have an interface I want to change the color of by changing the alpha and RGB values for an MC (Vector Shape).

The AS reference doesn't give a very detailed explanation of how to do this. The example used is in response to user input through a text field. I just want someone to be able to click on a button and and have the MC change to the color and alpha value I have predetermined.

I believe I need to use the .setRGB() and setTransform() methods of the color object, but I haven't used these before and haven't been successful making this work, thus far.

I have done this using tweening, but then the color jumps from one to the other. If, however, the current color is green, alpha 22%, I want to be able to change it to red, alpha 18%, for example, without going back to the original color first.

Does anyone have a script they'd like to share?


The above will do, but if some could share how to do this over time as well, that'd be even better. For instance, change the color over 50 frames. My movie is currently set to 24fps, and just using onClipEvent(enterFrame) will change the colors too quickly, so that it creates a strain on the eye. I'd like to slow the change down.


Thanks, in advance.


James
He is risen!!!

Color Object -
ok, I need to get rid of some color objects.

needed to make some things go to dynamically assigned color, but want them to come back to their original state.

how do I lose the color object once I've made it?

I've tried clear(), myColorObject = 0 ... nothing seems to work

any input greatly appreciated

Color Object -- MX
I am trying to dup an array of mc's and change the color of each -- I dup an mc 5 times and move it up one and left one from the previous, then change the color of each. It dupps all, but only changes the color for the first set of dupped MCs...here's the code:

why can't i change the color for the next mc I dup?



var t = new Array(mc_0, mc_1);
highlightC(t);
//
// Vars for dupping the passed mc
var c;
var MAX0 = 5;
var mcLevel = 100;
//
// Vars for changing the color of the dupped mcs
var cColor;
var cColorArray = new Array("0x000000", "0x333333", "0x666666", "0x999999", "0xFFB100");
//
// Dup the passed mc and change the color of it
function highlightC(temp) {
//
var MAX1 = temp.length;
for (k = 0; k < MAX1; k++) {
for (i = 0; i < MAX0; i++) {
mcLevel++;
trace(temp[k]);
c = temp[k].duplicateMovieClip("dup_" + i, mcLevel);
c._x -= i;
c._y -= i;
//c._alpha = (i+35)*(i+1);
//
colorC(c);
//
}
}
}
// Change the color of the dupped mc
function colorC(c) {
cColor = new Color(c);
cColor.setRGB(cColorArray[i]);
}

tx

HELP Color Object
Hi,

I'm having trouble changing colors in my new movie. I used the color object in a previous test, but can't get it to work here. I've tried everything I can think of.

Can anone help me?

Here is my FLA (PC): http://www.arcticweb.ca/abc/bearshiding8.fla

Color Object - Please Help
Hi,

I'm having trouble changing colors in my movie. I've used the color object a few times before, but can't get it to work here. I've tried everything I can think of.

I can't really explain it, and the code itself won't tell you much without the objects, etc., so I've attached my work file.

Can anone help me? PLEASE?? This is gonna drive me *&^%$ nuts!

Here is my FLA (PC): http://www.arcticweb.ca/abc/bearshiding8.fla

Color Object
does any one have any idea how to make a color fade from RGB value to another? I've been trying to use setTransform but it dosen't seem to be working.

any help would be greatly appreciated

Color Object Help
I am trying to create multiple color objects, all with the same name, but on different MCs. If I go onto each MC, I can create the color objects with an onClipEvent(load) event, but that doesn't help me in this instance.

Why isn't this code creating these Color objects? What code should I use to create them?

Here is my basic code.

on frame of _root:

function colors(pathToMC){
this[pathToMC].furtherPath1.thisColor = new Color(this[pathToMC].furtherPath1);
this[pathToMC].furtherPath2.thisColor = new Color(this[pathToMC].furtherPath2);
this[pathToMC].furtherPath3.thisColor = new Color(this[pathToMC].furtherPath3);
}


I have also tried:

function colors(pathToMC){
thisColor = new Color(this[pathToMC].furtherPath1);
thisColor = new Color(this[pathToMC].furtherPath2);
thisColor = new Color(this[pathToMC].furtherPath3);

Thanks in advance for your help.

_t

Color Object
How can I use the Color Object in one swf to change another swf
?

Have a nice day :-)

Using Color Object
hi,

can someone tell me how to convert from a 6 digit hex colour value say FF00FF into the required values for the Colour object? so I can then use something like c.setTransform(ct); to change the colour of my clip?

thanks for any help.

boombanguk

Getting The Color Of An Object
I have a world map with each piece of the map as movie clips. Each MC is set to a color (using ColorTransform) based on some data about the state that i load in. When i click on the MCs I want to temporarily change the color to something else while displaying information about the MC and then change it back when i select another MovieClip. How can i find out what the current color of the clip is so i can store it in a temporary variable to know what i need to change it back to once i select some other?

I have a workaround but it is not 100% foolproof.

Color Object ?
in the first frame of my movie I have this code:

[code]
function combineRGB(red, green, blue){
var RGB = (red<<16)|(green<<8) | blue
return RGB
}
myColor = new Color(_root.carColor);
[code]

I have two movie clips on the stage and I want to put the r value of the color into a text box when I rollover the movie clip. So I have this:

Code:
on (rollOver) {
_root.myColor.setRGB(_root.combineRGB(255,0,0))
_root.red.text = "255"
_root.green.text = "0"
_root.blue.text = "0"
}
How can I get the actual value of the colors in the text box so I don't have to do what I am doing now,which is hard coding them in.?

Color Object Help Please
hello
i am sure you know the color picker sample from the flash samples (http://www.macromedia.com/devnet/mx/flash/sample_files/...)

I want to have 2 sets of sliders, and 2 preview boxes, so i can change their colours individually.

This is what i have so far. Only the second part of the script, for the second slider, works. Can you please tell me why? it's something with the function, there seems to be some conflict and overwriting going on...

thank you
amalia



// create colors
color1 = new Color(screenbox);
//
this.onEnterFrame = function() {
    // set c1, c2, c3, hc1, hc2, and hc3 equal to the positions of their respective faders and vice versa
    for (i=1; i<=3; i++) {
        this["color"+1].setRGB(rgb);
        this"hexc"+i+"Text".onKillFocus = function() {
            hexMode = false;
        };
        this"hexc"+i+"Text".onSetFocus = function() {
            hexMode = true;
        };
        slider = this["slider"+i].cap;
        if (dragging) {
            this["c"+i] = slider._y;
            this["hc"+i] = this["c"+i].toString(16);
        } else {
            if (hexMode) {
                slider._y = parseInt("0x"+this["hc"+i]);
                this["c"+i] = parseInt("0x"+this["hc"+i]);
            } else {
                slider._y = this["c"+i];
                this["hc"+i] = Number(this["c"+i]).toString(16);
                if (this["c"+i]>255) {
                    this["c"+i] = 255;
                }
            }
        }
    }
    //
    // combine c1, c2, and c3 into one variable using bitwise left shift and bitwise OR
    rgb = (c1 << 16 | c2 << 8 | c3);
};
// create colors
color2 = new Color(previewbox);
//
this.onEnterFrame = function() {
    // set c1, c2, c3, hc1, hc2, and hc3 equal to the positions of their respective faders and vice versa
    for (i=1; i<=3; i++) {
        this["color"+2].setRGB(rgb);
        this"hexc"+i+"Text".onKillFocus = function() {
            hexMode = false;
        };
        this"hexc"+i+"Text".onSetFocus = function() {
            hexMode = true;
        };
        fader = this["fader"+i].knob;
        if (dragging) {
            this["c"+i] = fader._y;
            this["hc"+i] = this["c"+i].toString(16);
        } else {
            if (hexMode) {
                fader._y = parseInt("0x"+this["hc"+i]);
                this["c"+i] = parseInt("0x"+this["hc"+i]);
            } else {
                fader._y = this["c"+i];
                this["hc"+i] = Number(this["c"+i]).toString(16);
                if (this["c"+i]>255) {
                    this["c"+i] = 255;
                }
            }
        }
    }
    //
    // combine c1, c2, and c3 into one variable using bitwise left shift and bitwise OR
    rgb = (c1 << 16 | c2 << 8 | c3);
};

Color Object With
Object A in flash

is colored as follow

colorchange = new Color("_root.A");
colorchange.setRGB(colorselected);

where colorselected is color picke dup from color pallette


Normally when we draw an object (circle , square or rectangle ) its is drawn with fill color (shown by bucket in tool bar) and stroke color (shown by pencil on tool bar).

These 2 buttons are found on a tool bar very near to each other.

My question is can how do we give "stroke color" to the object A

For example command

colorchange.setRGB(colorselected);

is used to color an object

then what is command to give stroke color to the object


Thanking you in advance

Vikas

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 ?

Array For Color Object?
hi
I want to set the color for my mc accordingly array.
//Action on frameMain TimeLine)
colr = new Array(10);
colr[0] = 0xffffff;
colr[1] = 0x00ffff;
colr[2] = 0xff00ff;
colr[3] = 0xffff00;
colr[4] = 0x00ff00;
colr[5] = 0x000000;

//Action on MovieClip:
onClipEvent (mouseDown)
{startDrag (this, true);
mycolor = new Color(_root.brush.tip);
mycolor.setRGB(colr[2]);//this is not happening
}
onClipEvent (mouseUp)
{
stopDrag ();
}
If I put hex value directly it works but not from array value? Whats wrong here?
Thanx in advance

Trying To Manipulate A Color Object
I am trying to create a color object that I can manipulate via sliders during my movie. I've got the sliders in place but can't seem to find any tutorials on manipulating color objects. I found one here in FlashKit which I really don't want to use if I don't have to (long drawn out function), now if that's the only way to manipulate the RGB values.. then that's what I'll have to do; just hoping that some of the "old school" could show me the light.

thanks in advance

Is It Possible? - Expression = New Color(); Object? How?
I'm setting up a new color object but I want the name to be dynamic. i.e..

expression = new Color(target);

or

"name" add variable = new Color(target);

Unfortunately this doesn't work. Is there a way around this? I also would like to set colors with a dynamic name.

"name" add variable.setRGB(0xXXXXXX);

But no luck there either. Any ideas? Thanks,

Paul

Help Set Object Color Using LoadVariablesNum
Hi there,

I have try to change the color or an object using loadvariable.
in the action:

loadVariablesNum ("load.asp", 0 );
c = new Color( fhair1 );
c.setRGB( parseInt(haircolor,16) );

and in the load.asp file, i have return a value of:
haircolor=0x0099cc

i can obtain the haircolor value without any problem,
but, somehow when i use setRGB(); it always give me
a black. tried with using parsetInt() function.
but, still doesn't work, anyone know how to convert
a string to a color??

Color Object Problem
Hi,
I can't change the color of a movieclip that has a color object and was swaped with swapDepths() !

The clips onload script is:

onClipEvent (load) {
myColorObj = new Color(this);
this.swapDepths(9999);
}

When I try to change the clips color with setRGB(myColor) it does not work.
But when I remove the swapDepths() it works.

Is this normal?

ciao
m

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