Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Site Design / July 2008



Tip: Looking for answers? Try searching our database.

Playing Multiple Movies

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
misc1111 - 12 Jul 2008 06:45 GMT
I would like to embed a flash player in a web page with one .FLV movie
preloaded but without autostarting.  I would then like to change the .FLV movie
(and autostart) when the user clicks a button or link on the web page.  How can
I use Javascript to manipulate the movie that is loaded in the player?  I would
use the innerHTML attribute to change the entire contents of the DIV that
contains the player code, but FartFox (even version 3) does not support
innerHTML.  Any ideas?    Thanks!

(No FF fanboy replies please).
Rob Dillon - 14 Jul 2008 23:21 GMT
I'm not sure what your objective is with this question. Unless this is some
sort of homework assignment, I can't see any reason to Javascript to change an
flv in a Flash movie. You don't say what version of Flash you're using, but it
doesn't really matter a great deal. You can load in any number of files, flv or
otherwise, into an embedded Flash movie. You can then play these files on
demand using your own custom controls or an flv player skin.

If you need to use Javascript, possibly because you want to build a set of
controls in the HTML doc that holds the Flash movie, then you can use the
ExternalInterface class, in either Flash 8 or 9. Have a look at the information
on the External API in the online help for more information.

Since innerHTML isn't standards compliant, I wouldn't lose any sleep over not
being able to use it.
misc1111 - 15 Jul 2008 17:42 GMT
Thanks for the reply Rob.  I will look into the ExternalInterface reference.  I
want to make a playlist in the HTML code so that the user can switch to any one
of the videos in the playlist by clicking on the link or selecting an entry in
a list box.

Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.