Brian,
Thanks for the response.
I have not yet been able to get the color change working.

In the Flash movie there is a button in a movieclip. the button is 
named "SB0B", and the clip it is in is named "SB01"
My goal is to change the button's color to the rgb of a color swatch in 
director.

This is my code (from your example):on flashmouseup me, astring
  global colorswatch
  if colorswatch = rgb(0,0,0) then
    alert "Please click a color square to set the palette first..."
    exit
  end if
  put astring
  
  sprite(1).setVariable("r",string(colorswatch.red))
  sprite(1).setVariable("g",string(colorswatch.green))
  sprite(1).setVariable("b",string(colorswatch.blue))
  sprite(1).setVariable("amt",100)
  
  sprite(1).call("SetTint")
  
  updatestage
  
end

--

The code in Flash that refers to the clip is:

var tochange= new Color(_root._SB01);

I don't know if I am refering to the clip properly..

Any suggestions would be very much appreciated.

-Boyd


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to