A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11215 Flash Movies | 4 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: Mehmet Özgür Koyuncu
» Title: gear
» Description: Cool autocad + photoshop.
» More by Mehmet Özgür Koyuncu


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

Featured Site

» Posted in the Flash Kit Links section
» Title: Incorpmedia Design Studio
» Comments: Incorpmedia is a Seattle based company that specializes in a wide range of advertising media


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

» Create Graduation Photo Slideshow to Cherish School Memories
» Making movieclips point at the mouse
» Create Flash slideshow for Youtube
» Move a sprite with the keyboard
» Convert FLV to AVI video with DIVX codec to author a desired video with your favorite FLV movie!
» Flash Video Conversion Guide for Apple TV
» How to Convert FLV to iPhone movies
» Convert FLV(Flash Video) video to Cell Phone
» Convert FLV to AVI with XviD video codec to enjoy a DVD quality video with half of its size
» Unknown Tag: Title10
Random Tutorial | Add Site

bbm.netBBM.net is designed to save you time and deliver the highest quality royalty-free music for your multimedia projects. Features include: over 450 Music Loop Packages from some of the best composers in the business, our music search engine to speed your selection process, alternate music versions & bonus sounds to use for rollovers or transitions, free technical support and free consulting.

Click here for details »

Senior Java Architect
Professional Technical Resources
US-MN-Minneapolis

Justtechjobs.com Post A Job | Post A Resume


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

Search Tutorials


Categories Cool Flower
Author: Cosmin Varlan | Website: http://www.math.uaic.ro/~cosmin |

 
Page 1
1

Just add the folowing code in the 1st frame of your Flash MX 2004 Movie:

p1 = random(70);
p2 = random(70);
p3 = random(70);
p4 = random(70);
p5 = random(70);
p6 = random(70);
a = random(70);
b = random(70);
pasi = 30;
pas = 0;
_root.createEmptyMovieClip("m0", 0);
_root.m0.onEnterFrame = function() {
 with (_root.m0) {
 if (_root.pas == 0) {
 p11 = random(70);
 p21 = random(70);
 p31 = random(70);
 p41 = random(70);
 p51 = random(70);
 p61 = random(70);
 x1 = (_root.p1-p11)/_root.pasi;
 x2 = (_root.p2-p21)/_root.pasi;
 x3 = (_root.p3-p31)/_root.pasi;
 x4 = (_root.p4-p41)/_root.pasi;
 x5 = (_root.p5-p51)/_root.pasi;
 x6 = (_root.p6-p61)/_root.pasi;
 }
 lineStyle(1, 0x444444, 0);
 clear();
 beginFill(0x222222, 60);
 moveTo(a-_root.p1+x1*_root.pas, b-_root.p2+x2*_root.pas);
 lineTo(a-_root.p3+x3*_root.pas, b-_root.p4+x4*_root.pas);
 lineTo(a-_root.p5+x5*_root.pas, b-_root.p6+x6*_root.pas);
 lineTo(a-_root.p1+x1*_root.pas, b-_root.p2+x2*_root.pas);
 endFill();
 }
 m0._x = 200;
 m0._y = 200;
 for (k=1; k<36; k++) {
 duplicateMovieClip("m0", "m"+k, k);
 }
 // ok, I know this is stupid:
 m1._rotation = 10;
 m2._rotation = 20;
 m3._rotation = 30;
 m4._rotation = 40;
 m5._rotation = 50;
 m6._rotation = 60;
 m7._rotation = 70;
 m8._rotation = 80;
 m9._rotation = 90;
 m10._rotation = 100;
 m11._rotation = 110;
 m12._rotation = 120;
 m13._rotation = 130;
 m14._rotation = 140;
 m15._rotation = 150;
 m16._rotation = 160;
 m17._rotation = 170;
 m18._rotation = 180;
 m19._rotation = 190;
 m20._rotation = 200;
 m21._rotation = 210;
 m22._rotation = 220;
 m23._rotation = 230;
 m24._rotation = 240;
 m25._rotation = 250;
 m26._rotation = 260;
 m27._rotation = 270;
 m28._rotation = 280;
 m29._rotation = 290;
 m30._rotation = 300;
 m31._rotation = 310;
 m32._rotation = 320;
 m33._rotation = 330;
 m34._rotation = 340;
 m35._rotation = 350;
 m36._rotation = 360;
 _root.pas++;
 _root.pas %= pasi;
 if (_root.pas == 0) {
 _root.p1 = p11;
 _root.p2 = p21;
 _root.p3 = p31;
 _root.p4 = p41;
 _root.p5 = p51;
 _root.p6 = p61;
 }
};

1

» Level Intermediate

Added: : 2004-08-10
Rating: 6.14 Votes: 7
Hits: 740
» Author
Teacher
» Download
Download the files used in this tutorial.
Download (0 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
 
   
 



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Intel PDF: Virtualization Delivers Data Center Efficiency
Intel eBook: Managing the Evolving Data Center
Microsoft Article: BitLocker Brings Encryption to Windows Server 2008
Symantec eBook: The Guide to E-Mail Archiving and Management
Microsoft Article: RODCs Transform Branch Office Security
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
Avaya Article: Advancing the State of the Art in Customer Service
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Avaya Article: Avaya AE Services Provide Rapid Telephony Integration with Facebook
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Seminar: Efficiencies in Hardware/Software Virtualization
HP Webcast: Disaster Recovery Planning
Go Parallel Video: Performance and Threading Tools for Game Developers
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
IBM TCO eKIT: Your IT Budget is Under Attack, Get in Control
IBM Energy Efficiency eKIT: Learn How to Reduce Costs
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Microsoft Article: Silverlight Streaming--Free Video Hosting for All
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
HP Demo: StorageWorks EVA4400
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES