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




Solid Fill Color For Several Irregularly Shaped Movie Clips With Different Colors



So, I'm working on a project (all the graphics were already created, I'm just doing the coding), and have run into a minor problem...I have several movie clips of the main character (one for each primary and secondary direction), each of which contains 7 or so layers, one for each body part, and each layer then has about 6 keyframes, each keyframe containing a different graphic of the body part.All I want to do is create a shadow of the character. Originally, I just duplicated the main character movie clip, changed the _yscale, _rotation, _alpha and applied a color via setRGB(). It sort of worked, but because I was applying the setRGB() to the collective group of graphics having multiple colors, the variances showed up in the shadow, so you could make out the character's features.I also tried using blendMode to make the movie clip an alpha mask for another solid colored movie clip, and that did the trick, but it's definitely increasing the processing demand.Is there a more efficient way to go about doing this?



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 06-25-2007, 03:07 AM


View Complete Forum Thread with Replies

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

Irregularly Shaped Object HitTesting
Hello,

I don't like to just blatantly ask for code because I hate that, and I also hate being a hypocrite, but can anyone give me a hint about how to do a hitTest with an irregularly shaped movie clip? These are two suggestions I have seen before but neither suit my current needs:
(1) hitTest only the very center pixel; instead of the bounding box around it
(2) create much smaller squares and hitTest each one altogether (not only does this not suit my needs, but it's tedious and makes for a heavier file)

Can anyone help me, or do I just have to deal with it?

--Dragonist
Thanks!

HitTest With Two Irregular Shaped Moving Movie Clips
I am trying to use the hitTest with two movie clips that are moving. One is controlled by the user, and the other is a motion tweened clip. I can make the hitTest work, however it detects the hit on the entire movie clip, where the actual object is an irregular shape. Any suggestions on how I can define the actual hit area.

Thanks,

Using One Color Pallet To Change Colors Of Differnt Clips
I have a number of different movie clips that I want to be able to change to color of. This post gives me some idea, but I want to be able to have one color pallet that is always on the stage. Using that pallet, I want to be able to click on a mc, click on a color, and have the color of that particular movieclip, and not the others, change.

Can anyone lead me in the right direction?

I Want To Have A Bitmap Fill, With A Gradient From Solid To Transparent. ?
Is this possible?

I would like one end of it to be totally transparent, and the other side to be normal, and to gradiate between the two.

Thanks.

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

Getting Initial Fill Color Of Movie
getRGB only returns results if a previous setRGB has been done. Is there any way to get the initial fill color of a movie with actionscript, without having to declare it explicitly?.

In using Flash MX, but Flash MX 2004 solutions will be helpful too.

Thanks in advance.
Joan.

Fill Movie Clip With Any Color
Dear All

I want to select a movie clip with any color

well i know the syntax / script for that

My difficulty is how to show all colours and how to know which colour has been selected by the user

can anyone help

How To Fill Color In Flash Movie Clip Through Xml
Hi!

I m trying to add color to movie clip via xml.
I want to make xml file with color code (#ffffff) and want to add color in flash through this xml file. could you help me.........??????????

Changing Movie Clips Colors
I made a flash movie with multiple invisible movie clips by pressing buttons they could be visible, but the problem is I would like to change each movie clip color after making it visible using the color pallet.
I have searched for flash tutorial about that issue, but I found a lot about changing one mc color.
Can anyone lead me in the right direction?
thank you for your time

Changing Movie Clips Colors Help
I made a flash movie with multiple invisible movie clips by pressing buttons they could be visible, but the problem is I would like to change each movie clip color after making it visible using the color pallet.
I have searched for flash tutorial about that issue, but I found a lot about changing one mc color.
Can anyone lead me in the right direction?
thank you for your time

Changing Movie Clips Colors Help
I made a flash movie with multiple invisible movie clips by pressing buttons they could be visible, but the problem is I would like to change each movie clip color after making it visible using the color pallet.first press a button to make the mc visible then press the color button to change the mc's color , if i show another mc the color palett will effect the second shown mc and so on.
I have searched for flash tutorial about that issue, but I found a lot about changing one mc color.
Can anyone lead me in the right direction?
thank you for your time

Background Change From Solid Color To Image.
Hi everyone,
I have mx, and what i needed to do is when the mouse rolls over object I would like the background to change from a solid color to an image. does anyone out there know how to do that. I appreciate any advice. Thanks Good Day

JJ

[F8] Changing RGB On A Picture. Ends Up One Solid Color...
I am trying to change the rbg color on photo of a car. I tried a few things from some of the threads on the site here but didn't get the results I needed. It would turn the picture into one solid color.

The pictures are of cars on a white background so masking should'nt be a problem. Any help on a tutorial or maybe a thread I missed would be appreciated.

Thanks

Changing Colors With Script In Non-movie Clips
Hi,
I hope I can vocalize this right, it's a bit of an oddball question, which I think I may have to go in and do the hard way, one at a time.

I have a large deal of fla files that (among many, many other problems) are using a black 0,0,0 RGB for fills and lines. I need the minimum RGB to be 15, 15, 15 and I was wondering if there was any way to automate the process of making these changes. Instead of going in and chaging each fill one by one (which I'll do, but it would be painful) I was hoping there was some way to insert a tidbit of code and have it all change automatically.

This would be similar to creating a batch in photoshop, automating the change of the black from black to a slight grey(with color adjust, for instance), and letting it do it's thing for the thousand odd pictures. While I know the process would have to be completely different for vectors, I'm hoping an example like that clears up the problem a bit.

All right, any help you guys can offer is greatly appreciated. I honestly haven't the slightest where to start.
-thebulfrog

Recolor Sprite With Solid Color And Tiling Background
I'd like to know how I could recolor an existing display object (like a movieclip or sprite) dynamically. I want to let the user pick colors or patterns for the sprite from a color picker I've already programmed. I need to know first how to apply a new color to an existing sprite, and second how to apply a tiling pattern to it. Thanks in advance.

Make Clips Transparent/solid
Hi,
I've completed the random moving cones tutorial and I want to put a logo in the middle of the stage, but I want the cones to move over it (at the moment they hide behind). What should I do?

Octogone-shaped Clips..
Is it possible to create a clip that has another shape than rectangular?

I'm creating a small flash application, I have 7 octagones stick together (image: http://img413.imageshack.us/img413/1860/octagoneos9.jpg).

The problem is that, I need to stick them together, or else some part of the octagones are hidden by the rectangular shape of the clip... (see image, the lower-left one).

If I make those octagones (clips) clickable, I must hit near the middle of them, or else it will click on the octogones near it. How could I fix that? Thanks.

How To Put A Solid Color Border Outline On A Table (without The Shadow Effect, Html)
I just wanna know how to put a solid, hairline black border around a table... even better, around a <td>. All i know how to do is the border with the dumb shadow thing. If anyone could help me, itd be appreciated =D

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

Using Gradiet Colors For Text Fill
So far on the text properties, I can only use solid color for the fill of my text in the flash drawing tools, it doesn't give me the option to use gradients. I tried creating custom colors but it didn't work.

Dinamic Gradient Fill With 3 Or More Colors?
Is posible to extend the mc.beginGradientFill() to use more than 2 colors?
To use runtime to redraw the fill of a mc.
Any help is velcome

Dinamic Gradient Fill With 3 Or More Colors?
Is posible to extend the mc.beginGradientFill() to use more than 2 colors?
To use runtime to redraw the fill of a mc.
Any help is velcome

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.

Transform Fill Colors Without Harming Lines
Is there a way to dynamically chage the fill color with harming the out line ?

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

Why I Can't Fill "fill Color" When I Draw A Shape With The Pen Tool?
The title says it all, when I draw a shape with the pen tool I can't fill the fill color for the shape, I only can change the stroke color.
By the way, I'm sure I have connected all the lines for the shape

Creating Shaped Banners (shaped Ads)
hi everybody...

not sure if this is the right part of ultrashock to post this:

something ive been looking all over the web for is a simple explanation of how to create a shaped flash ad.

anyone have a clue as to how this can be achieved or where i can find more info?

it has come to my mind that i might have been looking in the wrong places or asking the wrong questions, so if none of this makes sense please tell me so or better yet point me in the right direction

thank you all in advance!

[F8] Change Movie Clips Color
Hi I'm trying to create of function to change movie clips color that are in an array with an incrementer going through the array. Something like my_colorchanger ++
code:
my_clips(clip1,clip2,clip3,clip3)
mybutton.onPress = function(){
my_colorchanger ++
}

my_colorchanger = function(){
setcolor transformation here
change movie clips color to red or something
}


I'm lost anyone?

Changing A Movie Clips Advanced Color
How do you change the values of the Advanced Color in actionscript?
Like to change the Alpha Colot you can use this
cloudsMain._alpha = 10;

Changing A Movie Clips Advanced Color
How do you change the values of the Advanced Color in actionscript?
Like to change the Alpha Colot you can use this
cloudsMain._alpha = 10;

How To Change Highlight Color Of Tabbed Movie Clips?
Hi,

I have movie clips that act as buttons and have set them up for tabbing using tabindex. Is there a way to change the color that outlines a movie clip when it has focus? It is now showing a bright yellow.

Thanks!

Give Movie Clips A Padded Border Of A Different Color, How To?
I think I know I should of messed with the glow filter class before asking, but I require a little more in depth-ness to it. I need the movie clips padded area (the square behind them) to change color onRollOver/onRollOut and onPress, would a glow filter effect still be the smartest solutuion?

[F8] Problem With Changing "Shape Fill Color" Color
Hi guys,

I am having some trouble trying to figure out how to change the Shape Fill Color for the corner which is currently in #FF6600.

Can someone advise me how I can access this attribute?

See files attached.

Shaped Movie Properties?
I dont think this is possible but maybe it is, I have a site that is going to be flash and html, 3 flash movies shaped like a "n", flash on left, top and right with html in the middle. One is catogories, one is sub-catogories and the other is titles. Now if I have to use these three movies I will have to come up with a whole lot of movies because of all the different options. This makes it hard to do revisions because you have to change so many. So I need to find a way to either make a "n" shaped movie or an easy way to pass varibles from the movies. Any Ideas - thanks in advance.

Fill The Color
Hi, I have problems in fill colour again, but this time is the background. I want to set some color to my background but it mix with my character (because some of the part of my character is trasparent.
What can I do?

Thanks

Fill Color In Cs3
hi--i've been using flash for a while now, but i seem to be encountering a glitch in cs3. either that or it's a brain glitch: when i type in a hex number in the fill color dropdown box, the new color does not take. it reverts back to the color indicated when i opened the fill color box. it's driving me mad. it does not matter whether or not i have an object selected. it also will not change in the properties window. help?

Fill Color
hi all, how to fill color to sometime u drew? like in the paint program that is..cus i did a flash function someting dat allow users to doodle around, but i wnana have a button when selected, user can click on the ting they drew n fill it with color. isit possible? thanks!!!

Fill Color
hi all, how to fill color to sometime u drew? like in the paint program that is..cus i did a flash function someting dat allow users to doodle around, but i wnana have a button when selected, user can click on the ting they drew n fill it with color. isit possible? thanks!!!

Color Fades Between 10 Different Colors...
OK

picture this: i have 10 buttons lined up in a movie clip. under these 10 buttons there is a shape. i have selected 10 colors, one for each button, and i want this shape to turn the proper color when i roll over any button. the catch is this... i need them to fade from color to color. in addition, i want the shape to not be visible before you roll onto a button, fade in when you do, and then fade out about 1500 milliseconds after you are no longer rolling over buttons. any clever ideas? i thought of making a movie clip for all the separate colors and loading them on top of each other over and over, making the prior clip disappear each time the new one loads. also i have messed with setRGB and whatnot, but i must be doing something wrong... plus there just HAS to be a more clean way to do what i am trying to do. i figure somebody a bit more advanced might know. please please please help!

Changing The Fill Color
Hey all,

what I want to do is to change the fill color of my shape depending on a variable. I have all the stuff out and everything is nice. I just don't know how to change the fill color of my shape to reflect this.

thanks a bunch!

Can You Change The Color Of A Fill Only
Assuming you have a movieclip that contains a simple box with an outline and a fill, is there a way to change only the fill or only the outline color (using actionscript) without making the outline and fill into seperate clips?

Unable To Fill The Color
I have tried many times to fill my hat or face ,but still unsucceed. I havent lock it and have already change option to Close Large Gap.
I think there is some small gap in my picture so I cant fill it. Anyone helps?

Thanks

Background Color Fill?
I have seen people do a paint bucket fill for a background in flash with a multie colored fill. How do you do this? It is like white/brown/blue and then an image in the brown color. When I click on the background 1st it is a movie clip then a graphic then a shape. How do I do this?

Thanks

Dyanmic Color Fill
hey everyone, i am trying to create a character creator problem i come across is that I want the people to be able to say what colour skin they want etc etc now i already have the shape drawn in flash in the location _root.test.skin

how can i change the colour of the shape? so instead of it being pink it can be brown?

dont want to have to draw different shapes for each colour cause then the thing will be huge

many thanks for any help!

Select And Fill With The Color
Can anybody take a look at this file and let me know how I can do this with MX04

[F8] Color Fill A Dynamic PNG
I am creating a banner which dynamically loads a png image through xml, no problem yet. The question i have is,

Is there a way to color fill the loaded image?
for example i have an png of a man loaded in with it's transparency. I want it to first appear filled white so it looks like a silhoutte which then fades into the image?

any simple fills i apply to the MC just don't seem to do anything once the png has loaded.

Select Same Fill Color
Anyone know of a Flash plugin that will select the same fill color? I do a lot of drawing in Flash and it would be so quick to have this feature. I know Adobe Illustrator can do it.

Thanks for your help!

Fill Color Using Actionscript
hi guys,

How to do something like this:


ActionScript Code:
on(release){
myMc.color = red
}

i've tried:

ActionScript Code:
on(release){
myMc.color = "#FF0000"
}
but it didn't work!

Auto Color Fill
Thanks to Inhan I can now do colorTransform. This question might be getting ahead of myself, but I was curious.

I've got something where users drag a color (MC) into a space (another MC) and the space becomes the color of the dragged MC. It's like a coloring book of sorts.

Now when the two MCs have a hitTest the color simply changes instantly. I thought it would be a cool effect if the color gradually filled the space like paint poured on the floor. I am thinking of a slow way where the dragged MC locks into the center position and then shape tweens into a preset fixed area, but I thought there might be some way to detect the shape it's in and just slowly fill that area.

I have a headache just thinking about this.

Thanks.

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