-
1. Re: Flash Shape Tween Colour Issue
kglad Jul 22, 2013 9:56 AM (in response to panvulcon)you can tween vector colors.
to convert a bitmap (like png) to a vector, select it>modify>bitmap>trace bitmap>etc
-
2. Re: Flash Shape Tween Colour Issue
panvulcon Jul 23, 2013 2:10 AM (in response to kglad)I've had a go at this using the method above and the colour does morph however, the tween doesnt preseve the original shape of the button. Perhaps i'm going about this the wrong way, if you had a graphic that you wanted to colour morph when a user hovered their cursor over it how whould you go about doing it?
-
3. Re: Flash Shape Tween Colour Issue
kglad Jul 23, 2013 6:31 PM (in response to panvulcon)create a movieclip. add the bitmap to the movieclips timeline and convert it to a vector. create a new keyframe at about frame 10 and click the vector in that keyframe and change its color. add a shape tween. copy those frames and paste them from 11 to 20. select frames 11 to 20 and reverse them. remove frame 10.
add a new layer and attach a stop() to frame 1 of the new layer and a stop() at frame 10.
add your movieclip to a timeline and assign rollover and rollout listeners. in your rollout listener you'll probably want to gotoAndPlay(20-MovieClip(e.currentTarget).currentFrame)
-
4. Re: Flash Shape Tween Colour Issue
panvulcon Jul 24, 2013 1:05 AM (in response to kglad)This was helpfull, however i'm still getting the same results as before. I think this is because i'm using a graphic that has gradients like the one below. I was thinking a tint would do the trick but it seems you cant tint a vector graphic, so i'm still a little stuck tbh. I found that changing the colour seems to fill the vector graphic with a solid colour, when i would like to acheive a colour morph where the button would morph into say a green verison of the button. Hope this makes sense and thanks for your input so far.
-
5. Re: Flash Shape Tween Colour Issue
kglad Jul 24, 2013 6:35 AM (in response to panvulcon)if you want to tween multiple colors, each must be on its own layer. ie, after converting to a vector select a color>right click>click cut, create a new layer and paste in place in that layer. continue until all colors are in their own layer. now tween each layer.



