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




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.




View Complete Forum Thread with Replies

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

Changing Border Color Seperatly [complicated Case]
Hi everyone,

I'm working on a database driven world map in Flash. When the map is started it should connect to a database and color some countries which are specified in the database.

I used the svg-file from Wikipedia (http://commons.wikimedia.org/wiki/Im...Map-World6.svg) transferred it with Adobe Illustrator to an .ai-file, included the map in flash and converted every country to a movieclip. My problem is that when I color an instance of a country, the white border will get lost. The actual code is:


Code:
var myInstance = getChildByName("usa");

var color_trans:ColorTransform = myInstance.transform.colorTransform;
color_trans.color=0xff6600;
myInstance.transform.colorTransform = color_trans;
I’ve read that one would normally separate the border in a second movieclip. But since the countries are not simple rectangles, i wonder how it is possible to redraw the border or keep it while filling the countries land.

I found GunnMap (http://gunn.co.nz/map/) which is exactly what my map should look like at the end. Has anybody an idea how to color the countries dynamically without losing the border?

Changing Border Color On Mouseover Event
I'm trying to change the color of a movieclip on a mouse over event but i'm having trouble with the syntax. In the following code,


This is where we instantiate the ThumbContainer class and call it 'thumbs'.

ActionScript Code:
function loadServices(event:TimerEvent):void {
        serviceType = new MovieClip;
        addChild(serviceType);
        thumbs = new ThumbContainer();
        serviceType.addChild(thumbs);
        btn.addEventListener(MouseEvent.MOUSE_OVER,overBtn);
}

This is the class where the movieclip background color is originally set called from the ThumbContainer function:

ActionScript Code:
function ThumbContainer():void {
     for (var p:int=0; p<thumbLoaderArray.length; p++)
         {
        thumb = new MovieClip;       
       thumb.graphics.beginFill(0x5CC445);
       thumb.graphics.drawRect(thumb.x + 3, thumb.y+3, 71, 71 );
       thumb.graphics.endFill();
       border = new MovieClip;
       border.graphics.beginFill(0xFFFFFF);
       border.graphics.drawRect(thumb.x, thumb.y,65, 65 );
       border.graphics.endFill();
        addChild(thumb);
      }   
}


The mouseover event function:

ActionScript Code:
function overBtn (event:MouseEvent):void {
       //event.currentTarget.parent.getChildAt(1).thumb.border.graphics....
      //????
}

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.

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

[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?

[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.

Border Color?
Can you set the border color of a shape in code? If I use the background property, it changes the background and the border... Is there a way to change either just the fill and/or the border separately?

Border Color?
Can you set the border color of a shape in code? If I use the background property, it changes the background and the border... Is there a way to change either just the fill and/or the border separately?

Tab Border Color/width?
I know that I read how to change the tab border color, but I have gone back into the help files and can't find it. So, where do I do it? also, can I change the width of the border line?
Thanks,
crabler

Setting FScrollPane Border Color
I would like to set the Border Color of the Boundingbox of an FScrollPane to white. I tried to set several stylePropertys of the FScrollPane to white, but nothing worked.

Has anyone an idea how I can do that?
I suppose it would work if I take the Movieclip Symbol in the Library for the Box and make it white, but this box is used for other Components as well...

Is there any styleProperty that can set the box to white?

SWF Border To Page Background Color
I've to made some swf file in flash mx where the border blur the image to back ground color, and so the angle will be rounded and the swf file fill much prettier its position in the page, without neat border, i think must do this with mask but i don't know HOW, please help me... Thanks.

Border Color Change Of UILoader
Hi
Does anyone now how to change the border color of the UILoader component when user clicks on that. I have put UILoader in the sprite container and i need to implement that if user selects that UILoader its border color will be changed (to red may be).
Please help me out . Here's the my dummy code for that. Basically what I need is the border of UILoader to be shown as soon as mousedown event is generated and the border to hide as soon as mouseup event is generated.
Any help or any new idea will be highly appreciated.
Thanks


/****************CODE******************
var container:Sprite=new Sprite();
var myUILoader:UILoader = new UILoader();
myUILoader.source = "XYZ.swf";
myUILoader.load();
container.addChild(myUILoader);
addChild(container);

myUILoader.addEventListener(MouseEvent.MOUSE_DOWN,dragUILoader);
myUILoader.addEventListener(MouseEvent.MOUSE_UP,dropUILoader);
myUILoader.addEventListener(MouseEvent.CLICK, moveSelectedVideoOnFront);

function moveSelectedVideoOnFront(event:MouseEvent):void
{
//Brings selected UILoader on top
}
function dragUILoader(e:MouseEvent):void
{
//Allows dragging of the UILoader
}
function dropUILoader(e:MouseEvent):void
{
//Allows dropping of the UILoader
}

Tree Component Border Color Question
Quick question about the tree component (I'm using Flash 8 Pro)...

I have the component working fine when I test the swf, but when I load that swf into another (Main Movie) the tree border highlights with whatever color halo I am using.

I have tried using setStyle and borderColor...it doesn't help.

Again, it works fine (ie: the border does NOT "highlight") when I play the tree's swf by itself. It only acts weird when I pull the swf into another.

I am using the orange halo theme and the "solid" border style. I've searched through the Help references and tried every possible solution with no luck.

Any thoughts?

Removing Border But Keeping Field Color.
Hello, I have a form and each field is colored. I want to remove the border but keep the field color. When I click in the instance tab, to remove the border, the field color also disapears. Is there a way to remove the border and keep the field color?

I color each field like this:


Code:
name1.backgroundColor = 0x999999;
address1.backgroundcolor=0xCCCCCC;
citystatezip1.backgroundcolor=0x999999;
business1.backgroundColor = 0xCCCCCC;
responsible1.backgroundcolor=0x999999;
facts1.backgroundColor = 0xCCCCCC;
thanks

Input Text Background And Border Color
What is the best method to define the background color and border color of a Text Input in Flash MX?

thanks

Input Text Border And Fill Color
I am creating a form my flash website. The flash window has a black background, so when I go to create an input text box, I want the text box to have a black bg with a white border around it. To get the border I selected "Show border around text" in the input text props box, but it automatically gives me a white bg and it seems there is no way to change the fill color or the bordercolor for that matter. Anyone know how to change these properties?

How Do I Cahnge The Border Color Of An Input Text Box?
I am sure I am asking another stupid question but...

How do I change the border color of an input text box?

Thanks

Input Text Border And Fill Color
I am creating a form my flash website. The flash window has a black background, so when I go to create an input text box, I want the text box to have a black bg with a white border around it. To get the border I selected "Show border around text" in the input text props box, but it automatically gives me a white bg and it seems there is no way to change the fill color or the bordercolor for that matter. Anyone know how to change these properties?

Change DataGrid Component's Header Border Color
Hi

Does anyone know how to change the color of a DataGrid's header dividing lines. I can change the color of vertical and horizontal lines of the dataGrid with
my_dg.setStyle("vGridLineColor", 0xE1E1E1);
my_dg.setStyle("hGridLineColor", 0xE1E1E1);
but I can't find a way to change the lines in the header, they are staying the default dark grey

Any ideas?

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?

Change Border And Color Of UI Scrollbar Component In Flash 8.
hi everyone

can u tell me how to change border and color of UI Scrollbar component in flash 8.

i m using with instance name "scrollpane"

scrollPane.setStyle("borderStyle","none");

but nothing happens

vineet

Batch Process For Changing Lots Of Links In Lots Of Movies
Hi,

Have a prob that I have something like 80 flash movies, all the same size, format etc, but I need to remove a tracking tag from infront of all the links. To do this manually would take an eon, is there a batch process I can run to search for a specific string and remove it? If there is, it's a lifesaver.

Thanks,

Rhythm

Html In Flash Table Border And Cell Background Color
how can I add a border, and or background color in the cells, to this table?

var rowHeaders = "<b>Quantity </b><b>Price($) </b><b>Re-order Price($)";
var row_1 = "300 1180 705";
var row_2 = "500 1280 755";
var row_3 = "1000 1475 1175";
var row_4="2000 2370 2070";
var row_5 = "3000 3350 3050";
var row_6 = "5000 4650 4350";
var row_7 = "10,000 7999 7699";
table_txt.htmlText = "<textformat tabstops='[100, 200]'>";
table_txt.htmlText += rowHeaders;
table_txt.htmlText += row_1;
table_txt.htmlText += row_2 ;
table_txt.htmlText += row_3 ;
table_txt.htmlText += row_4 ;
table_txt.htmlText += row_5 ;
table_txt.htmlText += row_6 ;
table_txt.htmlText += row_7 ;

thanks B

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

Changing Stage Color When Changing From Scene
Hi,
I would like to change the color of my stage when I get in my next scene, is it possible?

So when people look to the movie Scene one should be black and scene 2 white. Don't tell me to put a big white square at the button of scene 2 coz when put it online I want all my window to change from color.

Thx

Color Changing
Hi all,

i created a movie clip, in it's time line i put the action to rotare random 360 degree, it is working fine, like that i need to change the color of this movie randomly (RGB values 255).

thanks a lot for your replay.

naushad

Changing The Color Of A MC
Ok I hope that I can explain what Im after. I would like to make the color of a MC change (Morph) to the next closest value. Like gradually changing. Not just from RED to GREEN but more like red to reder to redest to dark red and so on. I hope someone can help..

Changing The Color On MC
ok i have found a script that will change the color of the MC gradually. BUT, I want it to change the R from 0 -255 then stop and staret to change the G from 0 - 255 And so on. What I have now is setting all the VAR to change the RGB al at once. Here is the code.


onClipEvent(load) {
colorFace = new Color(this);
var cnRedStart = 50;
var cnGtreenStart = 115;
var cnBlueStart = 152;
var cnRedRange = 150;
var cnGreenRange = 116;
var cnBlueRange = 80;
var i = 0;
var ldir = 0;
_root.lPlaying = 1;
}

onClipEvent(enterFrame) {
if (_root.lPlaying) {
nRedSkin = cnRedStart+(i*.01)*cnRedRange;
nGreenSkin = cnGreenStart+(i*.01)*cnGreenRange;
nBlueSkin = cnBlueStart+(i*.01)*cnBlueRange;
i = (ldir==0 ? i+1 : i-1);

colorFace.setRGB(nRedSkin<<16 | nGreenSkin<<8 | nBlueSkin);
}
}
What I want is to controll the colors one at a time not all at once.

Changing Color, Please Help...
hi,

i have a movieclip that consists of two other movie clips. i'm trying to change the color of the one sub-movie clip(sub_mc1), when you clicked on the main movie clip. the color is being decided by a variable ( _root.color ). i tried this code but it dosen't work...

onClipEvent (mouseUp) {
c = new Color( this.sub_mc1);
c.setRGB( parseInt( _root.color, 16 ) );
}

but this code changes the main movie clip's color, but when you click enywhere (i want only on movie clip) :

onClipEvent (mouseUp) {
c = new Color( this );
c.setRGB( parseInt( _root.color, 16 ) );
}

what is wrong with the firs one ??? please help...

Please Help With IF, ELSE And COLOR Changing
Hi everybody,

I'm just trying to build an actionscript, which makes the following:
When I rollOver a button, a MC changes its color to RGB #666666. When I click on the button, the same MC changes its color to RGB #999999. Now I want to make the following: When I rollOut the button, the MC should change its color again: If the last setRGB is #666666, it has to change to #0066CC, if the last setRGB is #999999, it has to stay in #999999. I simply don't get, how this works. Until now, I've got the following script for the button:

on (rollOut) {
outColor = new Color(movie);
statusColor = Color(movie);
statusColor.getRGB();
if (statusColor = "0x999999") {
outColor.setRGB(0x999999);
} else {
outColor.setRGB(0x0066CC);
}
}

Please can anyone help me getting the right script?? Thanks a million in advance,
pyramid

Color Changing
I have downloaded several movies from the gallery to disect and inspect, and from my studies I've found a strange color problem. Whenever I change the color of a fill, I sometimes have trouble getting back to the original color. For instance: Image1 is an odd shade of dark gray. Image2 is the same color. I change Image 2 to white. Later, I select Image2 and click the color box to select a color, and I use the dropper tool to get the color from Image1. Then I click the fill tool onto white Image2 which becomes a color which is dark gray, but not quite as dark as the Image1 color. Anybody else seen this?

Changing The Color Of Mc
Hi all
I need help!
I have two mc`s on maintime line...one contains image(instanceic) and another a slider starting from 0-220 pixel (instance:slider).
I am trying to change the color of pic by dragging the
-------slider ranges are:-------------
dragable lentgh = 220 pixel
default position of slider = 110 pixel
when slider is dragged to 0, I would like to change the color of pic to total bluewhen slider is dragged to 255 then change the color of pic to total black

How do I do this? need your help and feedback
thanks
reverse

Changing BG Color
Sup yall..?
Do's any body know a script to change the background color of a movie on a release of a button??

Color Changing
when I use a shape tween to change the color of a object the object's shape changes slightly when it undergoes the change. how do i fix this? thanks.

Changing Color
Hello
I am having version 5 of Flash.I have kept a dragging bar for selecting values.I want the color of a movie clip to become dark as I drag the bar up.And I want the color to become light when I drag the bar down.What should I do to change the color.

Changing Mc's Color
is there an action to set ink color to a MC? Something like set alfa.
I want to make my Mc become green in a 50%

Color Not Changing ?
I have this code in my main timeline


PHP Code:



if (xPos == -1000) {
    caption_txt.textColor = 0xFFFFFF;
} else if (xPos != -1000) {
    caption_txt.textColor = 0x000000;
}




but it doesn't change the color of the text field accordingly.

Changing Color Of Mc?
I have a movie called card. I want to change the color when a different button hits it. The code I am using changes the mc once and then stops. A friend looked at the FLA and told me I have to write a path to the array-but that did not work -here is the code

cardColor = new Color(hand.card);
cardColorArray = ["0x342286", "0x00cc66", "0x996699", "0xFFFFFF", "0x000000", "0x000000" ];
if (top = [0]) {
cardColor.setRGB(cardColorArray[0]);
} else {
if (top = [1]){
cardColor.setRGB(cardColorArray[1]);
} else {
if (top = [2]) {
cardColor.setRGB(cardColorArray[2]);
} else {

if (top = [3]) {
cardColor.setRGB(cardColorArray[3]);
} else {

if (_top = [4]) {
cardColor.setRGB(cardColorArray[4]);
} else {

if (top = [5]) {
cardColor.setRGB(cardColorArray[5]);
}
}
}
}
}
}

In the same Mc I have a Var called top

On my main timeline I have an array that looks like this
top = ["A", "P", "C", "E", "P", "S"];

Thanks for the help

Color Changing A MC
Okay, I have a MC (mainbox) within which I placed this code:


Code:
onClipEvent (enterFrame){
myColor = new Color(_root.mainbox)
switch (_global.colour) {
case 1:
myColor.setRGB(0xA3A3D1);
break;
case 2:
myColor.setRGB(0x8787C2);
break;
case 3:
myColor.setRGB(0x5252A0);
break;
case 4:
myColor.setRGB(0x414183);
break;
case 5:
myColor.setRGB(0xEFEFF8);
}
}


This should work out that, if i set _global.colour to different values, the color of the box changes accordingly. Now, on my navbar I have a set of buttons, that have the coding that if their x position is at a certain point, then _global.colour = (1,2,3,4,5). Firstly I had it set that as soon as you click on a button the color changes, but that's not as professional. I would like it so that only when the button is finished its animation (slides left) that the color changes.

Thanks,

DaVuLf

Changing Color
Hi,

I've read some tutorials and checked the help of flash, but nothing seems to help.

This is my problem:
I have a movieclip "colorsquare" that just has a square in it with a certain color ( color isn't important since I want to change it ).
This movieclip acts just as the color of my background where the content is coming.
the path of the movieclip is _root -> content_frame_mc (instance: content_frame) -> colorsquare (instance: bgcolor)
so the path is _root.content_frame.bgcolor , right?? no problem here.
Since I want to use a different color for each section on my website, I put the code on my buttons of the website. My navigation-buttons are sitting in another movieclip called "nav_menu". So the path is _root -> nav_menu so it schould be _root.nav_menu . No problem there either.
So on one of the buttons I want to change the color of the 'bgcolor' with an "on(release)" event.
I used the "
kleur = new Color(bgcolor); <- and also with new Color(_root.content_frame.bgcolor)
kleur.setRGB(0xFF0000);
"
and I also used that "myColorTransform" thing. And 2 tutorials at http://www.flashkit.com/tutorials/Ge...-526/index.php and http://www.flashkit.com/tutorials/In...-185/index.php but none of them seem to help .

Can anyone pllllzzzzeee help???

Grtz,
Spirit Wolf

Changing Color Of Mc
i want to change the color of movieclip on release of button.as many times i click button the color should change as many times.....can any one help me pls..............

Changing The Color
is there a patern in the hexidecimal system so that i could make a bar and when it is drug i could set the color of something by saying that the color of this text field + the x postion of the draggable object = the new color, any type of answer would work , thanks for helpin
je

[F8] Color Changing.
So I'm attempting to make a simple game,and I wanted to make it so the player can change colors of,oh lets say armor.Now I thought well surely theres an easier way to do this then making every color there is of the same peice of 'armor'.So the question is,is there a script to change colors?I have grayscale images already.Any Ideas?

Changing MC's Color.
Hey Guys,

Alrighty, here's what im looking to do. Im currently working on an interactive designing program for some products for a client.

I have already built a class for 'objects' or 'changeable' elements. All it does at the moment is show a bounding box around the object on roll over, no biggie, what i would like to add is the ability to change the color of the element, lets say on click, a 'color picker' will roll out that i can use to change the color of the object.

So, if I build an MC, of my 'color' panel with the choices, (various colors/patterns), how would i go about filling the selected element with these?

Obviously on click of the object will bring up the colorpicker, but while click on the object i need figure out how to A) pass the correct object i am on, b)actually change the color of the passed object.

I hope this makes sense, or.. if someone has a better solution i would love to hear it! thanks!

-Mike

Changing Color
Hi All

How do I change the color af MC using colorTransform and the hex value as a string stored in an XML file? The colorTransform class doesn't accept a string value!

This doesn't work for me:


Code:
var colorHex:ColorTransform = controlPanelMc.controlPanelBg_mc.transform.colorTransform;

colorHex.color = xml.setting.param.attribute("hex");
invVideoBtnMc.transform.colorTransform = colorHex;
Thanks

Changing Color Of MC
I have been trying to change the color of a movieclip with no success. Here is what I was trying. Am I leaving something out?


ActionScript Code:
var curSonar:MovieClip;
// --
b1.onRollOver = function() {
    _root.curBtn = this;
    _root.curSonar = p1;
    load1();
};
// --
function eBtns() {
    for (i=1; i<=5; i++) {
        _root["b"+i].enabled = true;
        _root["p"+i].setRGB(0x4d84c4);
    }
    _root.curBtn.enabled = false;
    _root.curSonar.setRGB(0xe29ab5);
    trace(curSonar);
}

Changing The Color Of MCs.
Hello all again. Thank you to anyone whom is kind enough to help me, I had many help me. Here is my next issue. I have a lot of movie clips that need to have color choices. I have found a great tutorial that helped me be able to change one but I need many more be able to be many different colors. I have a total of 24 colors and 46 movieclips on the timeline and maybe 60 in other movieclips that are attached through script onto the timeline. Here is what I've found. I was thinking a array would help me but I'm not sure.


ActionScript Code:
on (rollOver)   {
    var colorful = new
    Color("_root.bodyOne_mc");
    colorful.setRGB(0x00C8A7AD);
}

Changing Color
hello guys,

I have got a small problem.
I need to change the color of a movieclip. what i ment exacty is
in a movie clip i have many differnet colors..ex:red,blue,green etc
now using action script i need to replace the color of yellow with grey (only the place of yellow should get replace with grey not all the color)
is it possible... if so please help me


Please....Please..

Color Changing
I'm trying to get the following to work. The rotation and movement works perfectly.. but I just cant seem to get it to change the colour. Any ideas?

onClipEvent (enterFrame) {
if (_root.urlpagename=="Home"){
_parent.Arrow.targX = -15;
_parent.Arrow.targR = 180;
_parent.Arrow.setRGB = 000000
}
else if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.Arrow.targX = 7;
_parent.Arrow.targR = 0;
_parent.Arrow.setRGB = 000000
}
else {
_parent.Arrow.targX = 0;
_parent.Arrow.targR = 0;
}
cX = _parent.Arrow._x;
cR = _parent.Arrow._rotation;
cC = new Color(_parent.Arrow).setRGB;
difX = cX-_parent.Arrow.targX;
difR = cR-_parent.Arrow.targR;
difC = cC-newcolor.setRGB;
setProperty(_parent.Arrow, _x, cX-(difX/3));
setProperty(_parent.Arrow, _rotation, cR-(difR/8));
setProperty(_parent.Arrow, cC, cC-(difR/8));
}

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