Jaxx
Content Creator
- Joined
- Aug 15, 2016
Hi,
I couldn't find any answer to what I'm looking for so I'm taking my chances with this thread. If one exists then I appologize, just point me to the thread I wasn't able to find and I'll remove this one.
I'm using the loader mod template from @sby so maybe you're the guy most likely to give the acurate anwser.
What I want to do is simple: make an over top loader mod which uses another RGB slider than the first top one. I'd like to understand how to link another RGB slider slot, but also how to use the 2nd RGB slider from any slot.
I saw many mods supporting this feature but I really don't know if the method differs depending on the template used.
I've been looking on the forum, took a look at the templates code, but unsuccessfuly.
Using the code
placed before or after registerMod(mymodname); from @SyntaxTerror 's tutorial triggers errors (Access to undefined properties top and collar) and won't compile with sby loader mod template.
I couldn't find any answer to what I'm looking for so I'm taking my chances with this thread. If one exists then I appologize, just point me to the thread I wasn't able to find and I'll remove this one.
I'm using the loader mod template from @sby so maybe you're the guy most likely to give the acurate anwser.
What I want to do is simple: make an over top loader mod which uses another RGB slider than the first top one. I'd like to understand how to link another RGB slider slot, but also how to use the 2nd RGB slider from any slot.
I saw many mods supporting this feature but I really don't know if the method differs depending on the template used.
I've been looking on the forum, took a look at the templates code, but unsuccessfuly.
Using the code
Code:
addEventListener(Event.ENTER_FRAME, followColorSlider);
function followColorSlider(e:Event)
{
top.back.rgbFill.transform.colorTransform = collar.rgbFill.transform.colorTransform;
top.chest.rgbFill.transform.colorTransform = collar.rgbFill.transform.colorTransform;
top.rightBreast.rgbFill.transform.colorTransform = collar.rgbFill.transform.colorTransform;
top.leftBreast.rgbFill.transform.colorTransform = collar.rgbFill.transform.colorTransform;
}