Color Wheel Pro - See Color Theory in Action

A software program to create color schemes and preview them on real-world examples.

You are here: Color Wheel Pro > Online Help > Creating a Preview Image in Flash > Scripts

Scripts for Color Wheel Pro Flash Previews

Script for keyframe #1

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();

Back to the instructions


Script for keyframe #2

Colors = strColors.split(',');

for (i = 0; i < Colors.length; i++)
{
if (Colors[i] != "")
Objects[i].setRGB(Colors[i]);
}

stop();

Back to the instructions


Script for keyframe #3

function ObjMouseUp()
{
fscommand("ObjectClicked", this._name);
}

Mouse.hide();

for (var property in this)
{
if (typeof(this[property]) == "movieclip")
{
this[property].onRelease = ObjMouseUp;
}
}

stop();

Back to the instructions









Adobe Flash Enabled   Contains Adobe® Flash® technology by Adobe Systems Incorporated. This Color Wheel Pro™ contains Adobe® Flash® Player software by Adobe Systems Incorporated, Copyright © 1995-2006 Adobe Macromedia Software LLC. All rights reserved. Protected by U.S. Patent 6,879,327; Patents Pending in the U.S. and other countries. Adobe and Flash are trademarks of Adobe Systems Incorporated.
Copyright © 2002-2014 QSX Software Group. All Rights Reserved. Terms of Use.

 

Filter Forge - the best Photoshop plugin