Solved

Line gradient

Posted on 2002-07-05
4
758 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do I convert a CS4 FLA file to CS6? 1 884
Begin mp4 video on first frame 6 184
YouTube video issue 28 133
Adobe indesign suite cs5.5   How to enable "indesign" capability? 2 217
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

756 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