Change the source (src) of a flash movie without page reload

2 comments

How to Change the source (src) of a flash movie without page reload

 

function ChangeSwf(movieSwf)

{     

  var NewSwf = "img/"+movieSwf;

  if(document.all)

  {

    flashbg.LoadMovie(0, NewSwf);

  } else

  {

    document.embeds['flashbg'].LoadMovie(0, NewSwf);

  } 

}

 

add this to the obj/embed

 

<PARAM name="swliveconnect" value="true">

 

or use this:

 

            <script type="text/javascript">

                Select_FlashVersion('9');

                Flash_RunContent('id','flashbg','movie','img/flash','width','100%','height','90%','quality','high','swliveconnect','true','menu','false','wmode','transparent','codebase','https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','pluginspage','https://www.macromedia.com/go/getflashplayer');

                NoFlashContent('please download the latest flash player: <a href="https://www.macromedia.com/go/getflashplayer">https://www.macromedia.com/go/getflashplayer</a>');           

            </script>

 


Comments


Leave a Comment