Solved

Line gradient

Posted on 2002-07-05
4
752 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

911 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

20 Experts available now in Live!

Get 1:1 Help Now