Skip navigation
Currently Being Moderated

Vertical gradient mask help

Jul 6, 2012 4:35 PM

I am trying to make a layer in a file appear gradually from bottom to top ( like a pile of sand grows as you pour on more sand ). What I mean by this is that I know I could use a transform tween but that is like a growing taller rather than a building gradually from the base. Does that make sense ?

 

I have tried everywhere and the tut's for grqadient masks are awful. Does anyone know where I can get a good tut on this ?

 

I want to do it without AS ! I am afraid giving AS to me is like giving whisky to the er, native americans; that's as PC as you're going to get...

 

Thanks,

 

TL.

 
Replies
  • Currently Being Moderated
    Jul 6, 2012 4:38 PM   in reply to Herugrim123

    Maybe you can use a rectangle with a gradient from alpha 0 to alpha 100 then animate this rectangle to create the effect

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 6, 2012 5:02 PM   in reply to Herugrim123

    Here is a link to a file that demos how to do it with 2 movieclips and three lines of code.

     

    http://www,nedwebs.com/Flash/AS3_gradient_mask2.fla

     

    As far as taming gradients go, there is a gradient tool in the set of tools that you can use to modify the direction and other aspects of a gradient.  It shares space with the Free Transform Tool, so if you press down on that tool both should appear such that you can select the gradient tool.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 8, 2012 8:48 AM   in reply to Herugrim123

    I have a typo in that link... the comma should be a period.  I cannot tell what you have acquired from photoshop, but it might not be what you think it is - it could be a solid image regardless that you might not see part of it. 

     

    You should resolve how to create the gradient in Flash and use that. 

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 8, 2012 10:37 AM   in reply to Herugrim123

    Yes, my file does not use a mask layer, it uses code to create the mask, much like your searching led you to already.  Your gradient should consist of a shape with either either a radial or linear gradient using the same color across it, but one end of it is set to an alpha value of 0.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 8, 2012 12:59 PM   in reply to Herugrim123

    If you are using a timeline mask, yes, you will get that hard line.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points