Solved

Line gradient

Posted on 2002-07-05
4
750 Views
Last Modified: 2008-03-10
Hi,

I have a line bitmap in flash which I want to gradient away to Alpha 0. How would I do this?

Thanks,

Neil

0
Comment
Question by:homersim
  • 2
4 Comments
 
LVL 23

Expert Comment

by:Zeffer
ID: 7133303
the easiest way to do this would be to give the image a gradient transparency in an imaging program like photoshop and import it into Flash as a high quality gif image..you can always trim the file size down later in Flash..with the publish settings.

Z
0
 

Author Comment

by:homersim
ID: 7133648
Hi,

It is not an image, it is just a line vector created with the line tool in Flash (1pt)

I have tried using a mask but the gradient doesnt have any effect.

N.
0
 
LVL 2

Accepted Solution

by:
mousefist earned 50 total points
ID: 7133995

yeah, a gradient value on a mask won't work.  the real problem is that you can't have gradient line styles.  the solution: don't use a line!  

select your line, go to modify > shape > convert lines to fills.  if that comes out ugly, just draw a rectangle fill with no lines around it and use your properties box to change it to height 1 and width 200 or whatever.

now the task is much simpler.  in mx, i've noticed that the shape tween works brilliantly if you tween a gradient fill on a shape that remains the same ... it's prolly the same for 5 but i never tried it.  just set one side of the gradient to your original color, and set the other side to your original color with alpha set to zero.  

this would be a great place to learn to use the "fill transform tool" if you haven't already ... it's a little hard to spot in flash 5 because it only shows up when you have the paint bucket selected.  the fill transform tool will allow you to move your gradient off to one side of the line so that it doesn't look like a gradient, but it actually is.  then on another keyframe move the center of the gradient to the other side of the line, and do a shape tween from one to the other. hope that helps,

m!
0
 
LVL 23

Expert Comment

by:Zeffer
ID: 7134132
a simpler way is to draw a shape ..as mousefist suggested..size it in the info panei..open the fill panel..select linear gradient..and make one colour the colour of your background.

Z
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now