LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 


Prev Previous Post   Next Post Next
  #1  
Old 02-07-2002, 06:09 PM
gareth's Avatar
gareth gareth is offline
Registered User
 
Join Date: Apr 2001
Posts: 10
Rep Power: 0
gareth is on a distinguished road
Question setRGB problem

hi.

i'm having a weird problem with set rgb. i'm making an avatar chat system using xml. one of the features is setting the colours of your avatar's clothes; hat, jumper etc.

in the first scene there is an editor, where you can set the colours and preview them. this works fine, it's once the avatar is created that the fun begins...

the duplicate movie section reads an data string from the xml and sets an array, which includes x and y pos, plus all 6 colour options as set in the login screen, the array is boxLocation, the elements are [0] x, [1] y, [2] ffffff etc. i checked these in list variables, and all are present and correct. now to colour the new avatar. the code i have written goes

boxcolor = new Color(eval(node.attributes['user']).jumperlight);
boxcolorcontroller = '0x' add boxLocation[2];
boxcolor.setRGB(boxcolorcontroller);

jumperlight is the jumper movie clip inside the new avatar clip(node.attributes['user']), boxcontroller is 0x plus the 3rd item from the array, a hexidecimal value, say 33ccff.

however, when the character appears, all the setRGB movieclips are black!, obviously something is being written into the setRGB value, but not what i want.

an extra weird thing is that one one occasion, one of the items turned blue, putting paid to my thought that a value of 0 was being sent to the setRGB, making everything black.

any thoughts would be greatly appreciated, as i've only managed to setRGB to my eyes (ff0000) and my hair (C0C0C0)!!!

cheers

gareth
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
XML PRELOAD Problem grafxidg Newbies 3 04-08-2010 01:06 AM
textfield focus problem in external swf mrpoate Newbies 1 07-10-2007 11:34 AM
setRGB() and movement problem... Genius Flash MX 4 04-11-2003 08:17 AM
setRGB problem teatime General Flash 1 11-11-2002 01:45 PM
setRGB problem BlueSkull Advanced Flash 3 05-17-2001 07:03 PM




All times are GMT. The time now is 02:17 PM.