tnicolas
08-07-2002, 07:32 PM
Hello
I would like to get the MC I want to change the color from the text file.
This is my code:
on (release)
{
trace(whichobject);
obj = "_root.oval1." + whichobject;
myColor = new Color(obj);
myColorTransform = new Object();
myColorTransform.ra = newra;
myColorTransform.ga = newga;
myColorTransform.ba = newba;
myColor.setTransform(myColorTransform);
}
and the text file:
&whichobject=oval11
&newra=255&newga=255&newba=0&
Unfortunatly, it doesn't work. Why?
Perhaps, the parameter of the color object must be MC, not a string. If that's it, I don't know how to do. If it's not, I don't know what happens.
Any idea.
Nicolas.
PS: fla file attached.
I would like to get the MC I want to change the color from the text file.
This is my code:
on (release)
{
trace(whichobject);
obj = "_root.oval1." + whichobject;
myColor = new Color(obj);
myColorTransform = new Object();
myColorTransform.ra = newra;
myColorTransform.ga = newga;
myColorTransform.ba = newba;
myColor.setTransform(myColorTransform);
}
and the text file:
&whichobject=oval11
&newra=255&newga=255&newba=0&
Unfortunatly, it doesn't work. Why?
Perhaps, the parameter of the color object must be MC, not a string. If that's it, I don't know how to do. If it's not, I don't know what happens.
Any idea.
Nicolas.
PS: fla file attached.