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


Prev Previous Post   Next Post Next
  #1  
Old 11-07-2002, 04:18 PM
teatime teatime is offline
Registered User
 
Join Date: Nov 2002
Posts: 1
Rep Power: 0
teatime is on a distinguished road
Question setRGB problem

Could anyone tell me why this doesnt work? When used the MC turns black, not white...

actionscript in frame1:
Actionscript:
myColor=new Color(myMC)
myVars = new LoadVars();
myVars.load("jaha.txt");
thisColor=myVars.c0;
myColor.setRGB(parseInt(thisColor,16));

Output when List Variables is used:
Level #0:
Variable _level0.$version = "WIN 6,0,21,0"
Variable _level0.myColor = [object #1, class 'Color'] {}
Variable _level0.myVars = [object #2, class 'LoadVars'] {
c0:"FFFFFF",
c1:"FFA10A"
}
Variable _level0.thisColor = undefined
Movie Clip: Target="_level0.myMC"

The content of the textfile jaha.txt:
c0=FFFFFF&c1=FFA10A

I would really appreciate some help!
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 On
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 gareth Flash 5 Actionscript 4 02-08-2002 02:06 PM
setRGB problem BlueSkull Advanced Flash 3 05-17-2001 07:03 PM




All times are GMT. The time now is 12:06 PM.