SunQuest
           Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 1st, 2003, 01:50 PM
shokesy shokesy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 62 shokesy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 46 m 42 sec
Reputation Power: 6
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

Reply With Quote
  #2  
Old August 5th, 2003, 04:20 AM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 592 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 1 h 56 m 16 sec
Reputation Power: 17
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.

Reply With Quote
  #3  
Old August 5th, 2003, 04:31 AM
tank80's Avatar
tank80 tank80 is offline
php-oriented object
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: 0x9832053
Posts: 173 tank80 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 49 sec
Reputation Power: 7
Send a message via ICQ to tank80
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.

Reply With Quote
  #4  
Old August 5th, 2003, 04:45 AM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 592 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 1 h 56 m 16 sec
Reputation Power: 17
well I never!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > silly gradient question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway