Online computer courses, code, programming tutorial and sidebar information for monitoring Canadian S&P/TSX index. Build friendship and networking. Welcome to visit my blogs often!!! I also have two other sites: YouTube Channel and Google site.
Adsense
Popular Posts
- PHPWind-- A PHP forum script applcaition in China
- How to blend adsense inside your post?
- Formatting my post
- Notepad++ - Add C++ compiler
- Install PHPMailer 5.2.4 and use smtp gmail
- Set up a child account and set screen time limit in Windows 8
- Wayback Machine - see archived versions of web pages across time
- phpexcel toggle expand and hide column in EXCEL and summary
- Install PHP ibm_db2 extension in Linux (redHat)
- PHP: add a download as pdf file button in report page
Monday, December 31, 2012
Add shadow in flash using drop shadow filter
I will introduce two methods to add shadow in a shape in flash CS6 using "add shadow filter" directly and actionscript 3.0
1) method 1 "add show filter"
a) open Flash CS6->New actionscript 3.0, designer mode
b) using rectangle tool to create a square shape
c) Right click square, convert to MovieClip symbol.
d) left panel, under properties->filter, at the bottom, the left icon, add filters
a menu popup, select "add drop shadow"
2) Method 2 using ActionScript 3.0
a) open Flash CS6->New actionscript 3.0, designer mode
b) using rectangle tool to create a square shape
c) Right click square, convert to MovieClip symbol, name it as s1 and check export to actionscript
in the left panel, name the instanace of s1 as s2
d) Press F9 to enter following ActionScript:
function init() {
var dropShadow:DropShadowFilter = new DropShadowFilter();
dropShadow.distance=1;
dropShadow.angle=30;
dropShadow.color=0x555333;
dropShadow.alpha=1;
dropShadow.blurX=5;
dropShadow.blurY=5;
dropShadow.strength=1;
dropShadow.quality=15;
dropShadow.inner=false;
dropShadow.knockout=false;
dropShadow.hideObject=false;
s2.filters=new Array(dropShadow);
}
init();
e)export or test Movie and done
video:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment