Jump to content
Search Community

hexColor difficulty

larryfroot test
Moderator Tag

Recommended Posts

Hello, and thank you once again for all your time and your effort. It never ceases to amaze me.

 

I have searched the forum before posting here, btw.

 

I'm using AS2

 

Anyways...I have a nested movie clip with a radial gradient applied. I am trying to apply hexColor plugin (I have activated it) to that particular mc.

Unfortunately using it in what I might call the 'bog standard' way fails to tween the mc.

 

trigger_mc.onRelease=function(){
TweenLite.to(home_mc.home_clip_mc.gradient_bg_mc, 2,{hexColors:{left:0xff9900, right:0x663399});
}

 

Any help or guidance would be most appreciated. Thank you for your help, both past and present.

Link to comment
Share on other sites

Are you trying to tween the gradient? The code you posted literally changes the home_mc.home_clip_mc.gradient_bg_mc.left and home_mc.home_clip_mc.gradient_bg_mc.right properties. I can't see the rest of your code, so I'm not sure exactly what's going on, but I'm guessing you need an onUpdate that would redraw the gradient on every frame. See the hexColors demo in the Plugin Explorer for an example.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...