external color change in flash
external color change in flash
- Started
- Last post
- 3 Responses
- armed_rob
Is it possible to change the color on a movieclip (using tint) from an external txt or xml file?
And how :D
- dress-up0
the answer is yes, I haven't a how this very second...
- armed_rob0
bump
- Visia0
yes, set the colour value as a var and then use your external data source to set the value of that variable.
In pseudocode:
On (press){
LoadVars(myVars.txt);
_root.colour = colourFromSRC;
SetColor(_root.colour);
}I don't have the exact syntax handy in my head but that's the basic process.