|
Posted by cwdjrxyz on 08/10/07 16:26
On Aug 10, 8:41 am, Defacta <vincent.margue...@gmail.com> wrote:
> Hi!
>
> Is it possible to change the content of a flash object with javascript
> to change a video without having to reload all the page...
>
> The HTML source of the flash is:
>
> <div id="header">
> <script type="text/javascript"> AC_FL_RunContent('codebase','http://
> download.macromedia.com/pub/shockwave/cabs/flash/
> swflash.cab#version=7,0,19,0','width','776','height','96','align','middle','src','flash/
> menu','quality','high','bgcolor','#ffffff','name','flash/
> menu','allowscriptaccess','sameDomain','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','flash/menu');
> </script>
> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
> swflash.cab#version=6,0,29,0" width="718" height="141">
> <param name="movie" value="flash/video1.swf">
> <param name="quality" value="high">
> <embed src="flash/video1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-
> flash" width="718" height="141"></embed>
> </object>
> </noscript>
> </div>
If I understand what you want to do, there is no need to use script.
When making the first flash, encode it to switch to another flash
display with onclick or at the end of a flash movie. Then in your page
code, you only have to use the first flash object, and the switching
to another flash display is done automatically.
Navigation:
[Reply to this message]
|