PDA

View Full Version : Is there a java script to randomly rotate swf files?


98svt
09-24-2001, 09:30 PM
I need to randomly rotate swf files, is there a script for this?

Mike

montroze
09-25-2001, 12:20 AM
"Quote" :)

Open your Flash movie and paste the following code in one of the opening frames.

on (release) {
ranNum = Math.floor(Math.random() *4)+1;
loadMovieNum ("Movie"+ranNum+".swf", 1);
}


This loads four movies named movie1, movie2, movie3 & movie4.

You can learn the basics of Flash web design or even better the skills you have already by reading the book "Flash Web Design - The Art Of Motion Graphics" by Hillman Curtis. Hillman Curtis is well known for his work and has won many an award for his designs. The book has an easy to use style of writing and features very practical tutorials and tricks that every great artist should have.

transmothra
09-25-2001, 01:57 AM
and check out www.flashkit.com for intensive Flash help, including help with 3rd party programs.

Michel Chartran
09-25-2001, 01:57 PM
I haven't seen a javascript used for that, but I DO have flash movie I made that goes into a directory, and randomly loads one of the movies into it. I was going to use it for TCN's new banner exchange but I don't have the time. :(