Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,408 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,458 people online right now. Registration is fast and FREE... Join Now!




Gradient mask needs to start 100 px in

 
Reply to this topicStart new topic

Gradient mask needs to start 100 px in, Can some help draw

bmcc81
15 Oct, 2008 - 07:16 AM
Post #1

D.I.C Head
**

Joined: 10 Jul, 2007
Posts: 164


My Contributions
Hi,

I'm using http://www.weberdesignlabs.com and I need to have the icons fade out in the beginning 100px

Meaning I only want to see them starting from 100px in

CODE
var mc:MovieClip = loader.createEmptyMovieClip("gradient_mc", loader.getNextHighestDepth());
        matrix = new Matrix();
        matrix.createGradientBox(loader._width+500,loader._height,reflectionRotation / 180 * Math.PI,0,0);
        mc.beginGradientFill& #40;reflectionFillType,reflectionColors,reflectionAlphas,reflectionRatios,matrix
,reflectionSpreadMethod,reflectionInterpolationMethod,reflectionFocalPointRatio);
        mc.moveTo(100,0);
        mc.lineTo(0,loader._height);
        mc.lineTo(loader._width,loader._height);
        mc.lineTo(loader._width,0);
        mc.lineTo(0,0);
        mc.endFill();



Is this the right thing? or am I off by a long shot?


Thanks,


Attached File(s)
Attached File  iTunesAlbumArtbmcc.zip ( 78.66k ) Number of downloads: 5
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 12:11PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month