Thursday, July 30, 2009

How to get different flash files in interent browser if you refresh page ?

I designed number of flash files.if i open that url in my browser i can able to see one model flash file. If again i refresh the page...i want to see another model flash file in the same place.


How it possible ..please provide me some of tutorials ?

How to get different flash files in interent browser if you refresh page ?
in the HTML, embed one base flash file and load the other files in random inside this base





in the html source put like


%26lt;embed src="fx_base.swf" width="810" height="490" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/g... /%26gt;





have the number of flash files you have made named in an order (fx_0.swf, fx_1.swf, fx_2.swf, .....fx_9.swf, fx_10.swf)





in the fx_base have this code alone


loadMovie("fx_" + random(11) + ".swf", 0);

flower power

No comments:

Post a Comment