|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
silly gradient question
When im doing a linear gradient...for the life of me, i can't figure out how to make the gradient to whatever angle i want, say i want the gradient at 45 degree, is there a way to control that?
thanksNadvance |
|
#2
|
|||
|
|||
|
I don't know how to do this in the authoring environment, or whether it can be done, but you can do it with actionscript like this:
Code:
matrix = {matrixType:"box", x:0, y:0, w:100, h:50, r:(45/180)*Math.PI};
colours = [0xFF0000, 0xCCCCCC];
alphas = [75, 50];
ratios = [0, 0xFF];
t = _root.createEmptyMovieClip("box",1);
t.beginGradientFill("linear", colours, alphas, ratios, matrix);
t.lineStyle(1,0x999999);
t.lineTo(100, 0);
t.lineTo(100, 50);
t.lineTo(0, 50);
t.lineTo(0, 0);
t.endFill();
otherwise you may need to create your graphic in another app, like fireworks. |
|
#3
|
||||
|
||||
|
if you're using flash MX there is the Fill Transform tool in the toolbar. Select this button and select the object which contains the gradient you want to change, then the transform handles should appear.
With the older versions of flash, the same button is inside the Fill tool. |
|
#4
|
|||
|
|||
|
well I never!
![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > silly gradient question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|