PDA

View Full Version : Changing flash objects when onclick


jolietjake
10-25-2002, 10:59 AM
Hello, I have two flash objects, button1.swf and button2.swf and html calls the first flash in this code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
<param name=movie value="button1.swf">
<param name=quality value=high>
<param name="BGCOLOR" value="">
<embed src="button1.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="">
</embed>
</object>

and I want some code that changes the flash (must be the same object). Is there any propertie that controls the source?

beetle
10-25-2002, 03:16 PM
Iv'e never tested switching and object's source...but if it is doable, I'm sure the syntax is much like that for a image rollover.

<embed onMouseOver="this.src='button2.swf';" onMouseOut="this.src='button1.swf';" src="button1.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="">
</embed>

Of course, since you didn't mention it, I'm not sure what event you want to use to trigger the change....

pharma
10-25-2002, 07:14 PM
oh i see.. so that tag works.. ive never tried it before. i think its time for me to try it. hehehe..