I have a simple question. I am trying to store a color value in a token label, then assign object's color using that label value later.
Basically, I added a label named myclolor and assigned the value Color.red in an Assign Label activity. Then later in a Change Visual activity, I used the Set Object Color option, and assigned token.color to the object. In the code window, it has the following code:
Object object = /** \nObject: *//***tag:object*//**/token.item/**/; object.color = /** \nColor: *//***tag:color*/ /**/token.mycolor/**/;
Then I got a FlexScript compling error:
"Could not resolve correct operator for = operation, left side type is Color&, right side type is Variant."
Is there a way to convert Variant to Color& as required here?
Thanks,