How to Use Effects in Flash CS4
This a tutorial for how to make a cartoonish boom effect in Flash CS4. This can be used for a lot of Flash animations/movies. The font used in the video is called 'Ravie'.
How to Make a Wheel in Flash CS4
how to create a spinning wheel in Flash CS4. It's very easy, and shouldn't require any prior knowledge of Flash. It might be kind of confusing, because the first time I made the video my microphone was off. The second time, I was kind of annoyed I had to make it again, so I wasn't thinking straight.
3D Tools in Flash CS4
A basic overview of some of the included 3D tools in Adobe Flash CS4.
Animating Movie Clips with Actionscript
This tutorial will teach you how to animate movie clips with actionscript.
heres the code I used:
var tw:Tween = new Tween(box_mc,"_x",Strong.ease, box_mc._x,475,1,true);
How to Create flash Animation
This tutorial will show you how to take an image and make it animatable in Adobe Flash and Adobe Fireworks.
Animation Separation Part One
Animation Seperation Part Two
This second part briefly reviews how to take a still image and break it inot parts that can be animated in macromedia Firefworks
Earth Day Flash Animation
Download source project earthday
Click on the ground to plant more trees. You can plant trees in the spring only!
- Launch Alligator and choose "Blank document"
- Set movie size to 700 x 340 pixels
- Set background of the frame to blue and delay to Stop
- Create the master tree, draw a new sprite, name it "tree". You may copy it from the project or draw your own tree
- Create the ground, draw a rectangle, convert it to curve and bend the top edge
- To create the sun draw a circle and apply yellow radial gradient to it.
- To create clouds draw an ellipse, convert it to curve and reshape it, apply light blue gradient to it
- Convert the cloud to sprite and apply long frame time (for example 35 seconds). Apply vertical movement to the cloud. Duplicate the sprite few times and change delay time so clouds appear randomly.
- Put actionscript to Frame 1 of the main movie
var trees = new Array(); maxtrees = 0; function grow_trees() { for(i=0;i<maxtrees;i++) { trees[i]._xscale = trees[i]._xscale +1; trees[i]._yscale = trees[i]._yscale +1; } } setInterval(grow_trees,1000);setInterval(grow_trees,1000); runs grow_trees() function every 1000 miliseconds (1 second)
- Apply onClick action to the ground element:
if(tree._currentframe<40) { trees[maxtrees] = tree.duplicateMovieClip("tree"+maxtrees,100+maxtrees+_root._ymouse); trees[maxtrees]._x = _root._xmouse; trees[maxtrees]._y = _root._ymouse; maxtrees = maxtrees + 1; }maxtrees is the total number of treesif(tree._currentframe<40) lets the user to plant trees only during spring
tree.duplicateMovieClip("tree"+maxtrees,100+maxtrees+_root._ymouse); this creates a new tree and positions the new tree in front of other trees, higher _ymouse converts to higher so called Flash depth
_root._xmouse, _root._ymouse this is the current mouse position
how to Launch email from Flash animation
Launching email from Flash animation.
Create 2 edit fields for email address and for subject. Name email field "Address" and subject field "Subject". Create "Send" button. Use the following ActionScript code for button's OnUp (or OnClick) event:
mailto = "mailto:" + Address + "?subject=" + Subject; getURL(mailto,"_self");
- Launch Flash Designer. Choose "Frame" > "Frame Size" to set movie size (200 x 200).
- Choose "Edit Field" tool and draw 2 edit fields.
- Choose "Select" tool. Double click each edit field and change "Variable name" to "Address" and "Subject". Make sure HTML is not checked.
- Choose "Button" tool and draw a button below edit fields.
- Choose "Select" tool. Choose "Action" > "OnClick". Select "Action Script" and enter the code. Click OK.
mailto = "mailto:" + Address + "?subject=" + Subject;
getURL(mailto,"_self"); - Change frame duration to "stop" (choose "Frame" > "Frame Delay" and check "Stop", click OK)
- Press F9 to preview the animation.
Download Flash Designer SFD file: download
See also: Create and validate a form in Flash
See also: Send a form with PHP
To set fixed email address and subject use Get URL field:
Mailto Syntax
| Address message to multiple recipients | , (comma separating e-mail addresses) |
| Add entry in the "Subject" field | subject=Subject Text |
| Add entry in the "Copy To" or "CC" field | cc=sales@domain.com |
| Add entry in the "Blind Copy To" or "BCC" field | bcc=sales@domain.com |
| Add entry in the "Body" field | body=Your message here |
Separate parameters with &.
Example
mailto:support@domain.com?subject=tutorial&cc=sales@domain.com
Breaking the body into lines
Use %0A as line break, for example:
mailto:support@domain.com?subject=tutorial&body=this body has%0Atwo lines
Sending email directly from Flash
Flash Player will launch your default mail application to complete and send out the email. To send the email directly you have to execute a web based email script, usually provided by your internet provider. We can't give any exact instructions because the script is provider specific. You have to build a query string and use getURL function to execute the script, for example:
body = "This is message body";
email = "someone@server.com";
querystring = "http://www.server.com/emailscript.php?" + "body=" + body + "&email=" + email;
getURL(querystring,"_self");
