Using Flash & Color parameters

FFGL, OSC, GLSL. If you like abbreviations, this is the forum for you
Post Reply
jorispk
Posts: 2
Joined: Fri Jun 20, 2014 16:03

Using Flash & Color parameters

Post by jorispk »

Hi all,

I'm new to both flash and Resolume and I was planning to stream video over some led's. Started thinking it would be nice to change color and all sort of stuff within the actionscript of flash.

So I wrote some code, basically added 3 parameters: green, red, blue.
Set the settings while parameter changed:
//set var colortransform
var my_color: ColorTransform = this.logo.transform.colorTransform;
//Set current color
var red:int = this.paramRed1.getValue() * 255.0;
var green:int = this.paramGreen1.getValue() * 255.0;
var blue:int = this.paramBlue1.getValue() * 255.0;
//Create hex color code
var hexCol:int = red * 0x10000 + green * 0x100 + blue;

Than changed the logo;
else if (event.object == this.paramRed1 || event.object == this.paramBlue1 || event.object == this.paramGreen1) {
my_color.color = hexCol;
this.logo.transform.colorTransform = my_color;
}

If say red is max on 255, the hex color code I get is really red. but when i shift the parameter in Resolume it becomes vaguely grey. When I add blue it becomes yellow and when I leave blue open it becomes red strangely. Green is kinda purple haha..

Someone any clues how to fix this issue?

Regards,
Joris

Joris
Posts: 5186
Joined: Fri May 22, 2009 11:38

Re: Using Flash & Color parameters

Post by Joris »

I'm going to go out on a limb here and guess you're running the latest version of OSX but not the latest version of Resolume...

This should be fixed by updating to 5.0.2.

Post Reply