Objects = new Array();
strColors = "";
Names = "";
var i = 0;
for (var property in this)
{
if (typeof(this[property]) == "movieclip")
{
col = new Color(property);
Names = Names + property + ",";
Objects[i] = col;
++i;
}
}
fscommand("Objects", Names);
stop();
|
Colors = strColors.split(',');
for (i = 0; i < Colors.length; i++)
{
if (Colors[i] != "")
Objects[i].setRGB(Colors[i]);
}
stop();
|
function ObjMouseUp()
{
fscommand("ObjectClicked", this._name);
}
Mouse.hide();
for (var property in this)
{
if (typeof(this[property]) == "movieclip")
{
this[property].onRelease = ObjMouseUp;
}
}
stop(); |