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




Certain Objects Wont Let Me Add Color To Them?



for some reason, and only on certain objects, when ever i draw things and then try to use the paintbucket tool to fill them with color it dosent even work half the time. i dont know what the problem is, i click in the closed area(s) where i want to fill and nothing happens at all. can someone please give me some help?



FlashKit > Flash Help > Flash Newbies
Posted on: 03-25-2005, 11:56 PM


View Complete Forum Thread with Replies

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

Drag Color And Change Objects Color
i looked at the kirupa's paint tutorial and it really didn't achieve the effect that i'm going for. i'm new to actionscript so i can't figure it out for myself, so i'm hoping someone can shed some light on the situation for me.

here is the setup: i have an object that i rendered in 3d studio max. will just call it a box. i have rendered that box in 3 different colors. red, yellow, and blue. i saved them each individually as targa files and imported them into flash. i created a movie with 3 frames. frame one contains the red box image, frame 2 contains the yellow box, and frame 3 contains the blue box. each frame has the stop command applied to it.

now on the main timeline, i have 3 different circles that have been converted to buttons each colored red, yellow and blue. now i can use a "tellTarget" type action to make the playhead on the box movie clip to jump to the corresponding colored circle that was clicked, but i'd rather let the user be able to drag the colored circle to that box, release, and change the box to the color that corresponds to that circle. i don't know if that requires some type of collision detection script or not. the box has no background so all there is, is the box itself so collision detection should just detect the box itself...right??

i would appreciate any insight that you could give me!!! if need be, i can supply a *.fla file for you to look at.

Color Objects?
A class can be a colection of objects??... one of those is the color? Why isn't the color a property?

I know this is a theoric question, but i 've to know it before i can go on...

One Color, Many Objects
Hi!

I would like to know if there's a way to change the color of various mc's at the same time.

function colorit (mc) {
var colorful = new Color(mc);
colorful.setRGB(0xCC99FF);
}

coll_mc.onRelease = function(){
colorit (pre_mc, morf_mc)
}

What I need is that when onRelease change the color of some movie clips in the stage.

Thanks in advanced!

Color Objects And Arrays
If I have an array of items the color of which I want to change dynamically, can a make a color object that targets the array or do I have to have a separate color object for each item?

Thanks in advance.

Multiple Color Objects
I need to create an effect where I can change the color of two objects. I can get one object to change color when a button is clicked, using this code

the button carries this:

on (release) {
myColor.setRGB(0xB5DC10);
}


and the first frame of flash carries this:

myColor = new Color(_root.mywallpaper);

Where mywallpaper is the instance (movie clip) I want to change.

I have another instance (mybackground) that I want to change to a different color, but can't see how I can get Flash to understand which instance I want changed when each button is clicked. Can I still use this simple code, but maybe modify or move the code that is in the first frame so it is more specific to each instance or does it become much more complex when you are trying to control the color of more than one item at a time.

As you might be able to tell I am not very familiar with all this and was pretty impressed that I got one bit to change color and now don't know where to go at all, any help would be really appreciated.

Thanks

Change Color Of Api Objects
hi.

i've got a function (a 'for' loop) that creates 20 movie clips on the fly. in each movie clip i dynamically draw an object with the api tool and all these objects follow a path.

what i want is that when the mouse is in the frame of the piece, i want the colors to change. i'm not sure if i can even do that. i've attached the .as file. does anyone have any ideas?

thanks. fumeng.

Change Color Of Api Objects
hi.

i've got a function (a 'for' loop) that creates 20 movie clips on the fly. in each movie clip i dynamically draw an object with the api tool and all these objects follow a path.

what i want is that when the mouse is in the frame of the piece, i want the colors to change. i'm not sure if i can even do that. i've attached the .as file. does anyone have any ideas?

thanks. fumeng.

Help Needed On Changing Color Objects
hi, i'm doing a school project of mine and i am having trouble doing the changing color objects. here is an axample of the script that i;m using:

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


For this script it does change color, but how do i make it to stay the same color that user selected after going to another scene?? Would really appreaciated your help. Thanks

Help Changing Color For Multiple Objects
I'm coding up a website using Flash and I want to be able to change the site background as well as the button items color all at once via actionscript.

All the buttons are created with instances of the same base item (movie).

What's the easiest way to have all of these items changed with a simple actionscript? I would prefer to avoid having one of these for each item:


Code:
var colorful = new Color("_root.MyItem");
colorful.setRGB(0x336699);
I was thinking perhaps naming each item as a number and just making a loop... any better suggestions?

Thanks!

Help Needed On Changing Color Objects
hi, i'm doing a school project of mine and i am having trouble doing the changing color objects. here is an axample of the script that i;m using:

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


For this script it does change color, but how do i make it to stay the same color that user selected after going to another scene?? Would really appreaciated your help. Thanks

Array Of Color Objects? Hmmmmm
I am going to be parsing an XML file (colors.xml) in that looks similar to this::

Code:
<?xml version="1.0" encoding="UTF-8"?>
<vehicle>
<id>123</id>
<colors>
<swatch>
<name>White</name>
<value>ffffff</value>
</swatch>
<swatch>
<name>Black</name>
<value>000000</value>
</swatch>
<swatch>
<name>Green</name>
<value>00ff00</value>
</swatch>
<swatch>
<name>Pink</name>
<value>ff00ff</value>
</swatch>
<swatch>
<name>Blue</name>
<value>0033ff</value>
</swatch>
<swatch>
<name>Red</name>
<value>ff0000</value>
</swatch>
</colors>
</vehicle>
So I want to parse this and dynamically create swatches based on the # of "swatch" nodes and also color the swatchMC the value of that particular swatch.

So the above example would have 6 swatchMC's created and colored accordingly.

I think the best way would be to create a array of objects, and then just loop through them, but I am unsure of the way to go about starting this and the syntax?

Can anyone point me in the right direction?

Thanks US!

Change Rgb Of Tweened Color Objects - Problem
hi there,

cothesea = new color("theseasonis");
cothesea.setRGB(0x98AEC2);

this changes the color of a movie clip symbol called 'the season is' .
it works great unless 'theseasonis' is tweened. giving the object a new rgb color stops the tweening, the rest of the movie continues as always.

how to work around this weird problem?

Store And Retrieve Array Of Custom Class Objects From Shared Objects.
Hi,

I am stuck up with a problem in ActionScript 2. I am using Flash MX 2004 on windows XP.

I have created 3 custom classes say Parent, Child, and GrandChild. Parent class contains in it an array of its Child objects. Similarly each Child object contains in it an array of GrandChild objects. Also I do have one global array of all the Parent objects.

I want to store this array to the shared objects on specific events(say exiting the session) and then reload them from the shared object(on next session startup). I am able to store the global array to the shared object but when I try to retrieve the same array from shared object, I could not do it. The retrieved array is not of my custom class type [Parent].

Help needed to solve this problem urgently. Does anybody have idea how to do it??

Thanks in advance.



Cheers,
Naishadh Sevalia

Objects Talking To Objects, Parent/child Communication, Scope
I've been using AS3 at an intermediate level, and am getting deeper
into classes. I'm loving classes! I'm just cloudy on a few general
concepts.

It's easy for me to create a child object from a parent object, like a
ship in space for example (not working with ships right now but seems
fun to talk about). I can then navigate the ship from the parent
object.

What happens if the ship's engine temperature reaches critical? Is it
wise to dispatch a ship event that tells space that my ship is nearly
scrap? Or do I periodically query the temperature amount of the ship
from space? To me an event sounds like the solution, but I remember
hearing somewhere that parent objects should only talk to child
objects, not the other way around. Is this true?

Could I trouble someone for a basic example of how you would make this
communication work best?

Thanks for the assist. I'll post if I find anything interesting in
the meantime.

How Do I Reference Objects Inside Of Exported Library Objects ?
Hi,

I am having trouble figuring out what seems to be a simple fix? I have created a movieClip in Flash that contains 3 button clips. I want all to be accessible to actionscript, so I gave the movieClip and the 3 buttons a Linkage Identifier. I deleted them from the stage.

In actionscript, I have instantiated the movieClip and, thankfully, the buttons inside went along.

The trouble I'm having is figuring out how to target those buttons. Since they're on the stage already, I shouldn't have to create a new instance right? When I trace the buttons I get an undefined return in the out put.

Anybody know this one??

Thanks for the help!

Brian

Depth And Dynamic Objects/Attaching Scripts To Objects
I am having some problems with my Flash MMORPG created in Actionscript 3.0 that I am working on, not really errors, but more how to do something, in theory. I have 2 problems. First, my game is at a 45 degree angle, so it requires some depth handling(like one object is over another object when it should be behind that object). I am not sure how to go about this. I was thinking that each object's depth should be it's y position if it's origin was at it's feet. But that idea didn't go well, because the depth is limited by the number of children. What is the average way to do this? Next, I am trying to make dynamic objects, so that all I would do is copy and paste an object, or create a new class of it and it would work. What I mean is, the character checks a collision for each object, but if I copy the object with the same name, it doesn't work. In AS3 you can't attach scripts to objects anymore, so I am running into a lot of problems with that. How would I go about fixing this? Thank you in advance.

Aligning Variable Sized Objects And Objects Inside Them
Hi,

How do I align a movieclip, which width and height is user-defined, inside another object (this one is static, though). Top-left alignment is easy, x=0 and y=0, but what about center, center left, bottom left, etc? Math(.round) i suppose, but how?

and

I want an object (static) inside the movieclip (user-defined) to stay aligned to, for instance, the top right corner, similiar to the minimize, maximize and close buttons at the top right of your browser..

The height and width data is pre-defined by the user in another file... But that does probably not make any difference...



If anyone could help me with this, I'd appreciate it alot!

Thanks!,
Peter

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.

Best Way To Hide On Stage Objects When Other Objects Need To Be Shown?
A typical nubee question..What is the best way to hide objects on sage when a button from navigation is clicked and in response other information or objects need to be shown instead of the one previously on stage?

How To Output Both AS Objects And Drawn Objects On Pages?
Using Flash 8;

Hello,

I am building a site entirely in actionscript and the "shell" of the site, the pages, text, static images, come up and work fine, no problems.

However, I'm having troubles trying to implement Kirupa's "XML_Flash Photo Gallery", for one of my pages, link here:

http://www.kirupa.com/developer/mx20...otogallery.htm.

I'm running into troubles because my pages are entirely actionscript and this tutorial uses objects which were drawn by the drawing tool.

I have been trying to get both actionscript and drawn objects to work together and cannot get it right!!

Questions:

1) In terms of layering or frames, What is the best way to output on your pages both "objects drawn by the Flash drawing tools" and "actionscript objects"?

Is this better handled using frames or layers? Should I place my actionscript on the first few frames, then my "drawn objects" on the later frames? Or use layers and have my AS code above or below the manually drawn objects?

For example:

I have my actionscript on layer 1. Then use drawing tools to draw a box on layer 2.

When published, I want the "manually drawn box" and "the actionscript drawn objects" to both be viewable on the pages. Do I place the "drawn" layer above or below the

actionscript layer? Or should this be handled by frames?

I have tried both and neither seem to work for me. When I do one or the other, it works, meaning, all drawn objects, obviously things are viewable, then if

I use all actionscript, things are viewable, but when I try to combine both, the manually drawn objects do not show up.

The actionscript objects show up correctly, but I cannot see the objects I have directly drawn on-stage.

In my actionscript, I use, "_root.getNextHighestLevel()", for each of the objects, this works fine for all the actionscript objects. However, I did nothing

for the objects drawn using the tools, should I attach the same "_root.getNextHighestLevel()" to those objects drawn on-stage?


Or,


2) Should I try to draw Kirupa's objects on my pages using actionscript?

Thanks, any help is great!!

Dave.

Help: Stage Objects Get In Front Of Script Objects?
This is getting me mad...

addChild(my_script_object);

I can't see it...

If I try trace(numChildren) I get 10, so then I try addChildAt(my_script_object,9) and still cant' see it.

If I delete all the objects in stage then I finally see it.... If I delete one by one I find my_script_objects gets beneath a bitmap placed by hand by the designer.

Any ideas?

TIA

Best Way To Hide On Stage Objects When Other Objects Need To Be Shown?
A typical nubee question..What is the best way to hide objects on sage when a button from navigation is clicked and in response other information or objects need to be shown instead of the one previously on stage?

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

[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

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.

ActionScript 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

Color Code From XML To Color.setRGB Method
hi all

How to pass a string (ex. "ff00ff" ) as a color code from XML to Color.setRGB method in flash?

thanks in advance

jiby

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