Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Swap SWF on page refresh

Status
Not open for further replies.

idaryl

Technical User
Nov 10, 2001
156
US
Hello all,
if I have a series of 6 small swfs, 130x60pxls in size and one of the swfs is placed at the top of the page (part of the header) Its just a simple anim of repeating colors and objects.

Is it possible to have the other swf's play in the page? something like a image randomizer, but uses swfs instead?

That way the page can have some sort of interest even on refresh or reload...

idaryl
idface.gif
 
The one in the header itself could be randomly set at the beginning of the movie.
And yes, you could possibly set up another one, or even a few other ones, in the same html, that could also be randomly set when entering the site, or refreshing it.
 
As far as I can tell each instance of Flash requires a code something like this
Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="[URL unfurl="true"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"[/URL] width="566" height="142">
                    <param name=movie value="cons.swf">
                    <param name=quality value=high>
                    <embed src="cons.swf" quality=high pluginspage="[URL unfurl="true"]http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"[/URL] type="application/x-shockwave-flash" width="566" height="142">
                    </embed> 
                  </object>

so,,,

in that case its a (leeetle) harder than just having a picture rotate on the page.

ps. the comment about me figuring that part out was in reference to The one in the header itself could be randomly set at the beginning of the movie. because the answer was vague - so I asked for a more detailed explanation than, yes you can do it... Say... hav'nt you assisted me before....?

idaryl
idface.gif
 
Sorry forgot something - if each instance of flash requires this code then couldnt a document.write js be used to write to a table area on onload or refresh?

idaryl
idface.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top