A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11303 Flash Movies | 7 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: Nitin Tikhe
» Title: Cart
» Description: This Animation Tut is a fun and useful for kids below 15 years. Watch the Flag, Doors, Stick and Horse movements.
» More by Nitin Tikhe


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 6008 Flash Sites | 0 New Flash Links
What's New | Top 100 Flash Site

Featured Site

» Posted in the Flash Kit Links section
» Title: Banana Swimwear
» Description: This is a banana swim wear interactive catalog we designed and animated in Flash


Random Links | Add your own Flash Related Links
Flash Tutorials 1255 Tutorials 7 New Tutorials Added!
What's New | Top100

» Make flash video player for broadcasting live streaming video / TV on website
» How to convert the project file of Flash Demo Builder 2.0 into FLV file
» FLV to PSP for Mac - How to convert YouTube video to PSP on mac
» How to Convert FLV to MP4 for Playback on iPod
» how to download and convert youtube video to AVI with Leawo Free FLV converter
» Flash Multi-player Game Tutorial - TicTacToe
» How to make Flash elearning tutorials with screen recorder?
» Fader API:Slideshow with MovieClips on stage
» How to convert MS PPT file into an FLV File
» Unknown Tag: Title10
Random Tutorial | Add Site

Network Design Manager
The Computer Merchant, Ltd
US-VA-Hampton

Justtechjobs.com Post A Job | Post A Resume


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Categories How to use button to control movie clip
Author: swf_swf | Website: http://www.sothink.com |

 
Page 1
1

Design a controllable window blind

Look, when you click the button, the window blind will open and close bit by bit. Here, I focus on showing you how to use button to control movie clip.


Prepared work:SWF Quicker
Estimated Time of Completion:30 minutes
You may also view the tutorial here: http://www.sothink.com/tutorials/viewtopic.php?t=11

Step one: Launch Sothink SWF Quicker.

By default, the program will create a new file when startup. Set the property of canvas as Width: 475; Height: 300; Color: white.

Step Two: Create a window

blind
1. Press Ctrl+F8 to create a movie clip symbol. Use rectangle tool to draw a rectangle on the canvas. Width: 400. Select Paint Bucket tool in Tools panel. It's better to skim through the words in following picture, and try to find a color you like. Up to you!


Tips:For my part, the window blind without rims seems a little bit nice-looking. Do you think so? To make your shape no rim, just set the size of its outline as zero.
2. Change the gradient direction of the rectangle with Paint Bucket tool.


3. Right-click the piece and choose copy in the context dialog box, then right-click again to choose paste, use this method to get multiple piece.
4. Arrange the pieces.

Step three: Make window blind rotated

vertically
1. Press F6 to enter a keyframe, in frame10 and frame20.
2. Click frame10 and select all pieces. Rotate them like this:


3. Right-click frame1 and frame10 to choose create motion tween.
4. Insert a new layer, rename it as action.
5. Click frame1, write actionscrip in Action panel: stop();
6. Right-click frame1 and select copy frames in context box, paste frames in frame5, 10, 15, and 20. Now, your movie clip will stop at the four frames respectively.
7. Insert a keyframe in frame10 and Click it, look at property panel, click the folder to browse your computer, and get the m.wav for your movie, the sound is added to the frames, in which displayed a wave.

Step four:See landscape through window blind.


1. Click Scene in timeline to back to main scene. Import winter.jpg to canvas, set it on the left of canvas, drag the movie clip from library and cover the picture completely.
2. Press Ctrl+F8 to create a button symbol. Now, you are entered into button editing mode, draw a simple button with a triangle on it. There are four states, add butt.wav in down state.
3. Click the window blind on the canvas, give this movie clip a name in properties panel.
4. Drag button symbol from library twice. Now you get two buttons. Click the upper one, and write following actionscript in Action panel:

on(press){
window.nextFrame();
}
Click the other one and write following actionscript:
on(press){
window.prevFrame();
}

That’s the end. Hopefully it is very useful to you!

1

» Level Intermediate

Added: : 2007-08-14
Rating: 4.70 Votes: 10
Hits: 1696
» Author
If you need help with this tutorial, please feel free to contact me at shuxin@sothink.com
» Download
Download the files used in this tutorial.
Download (144 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments