nee57
06-03-2008, 08:09 PM
I have an FLV videogallery set up to load files from an XML document (http://www.rogerspublishing.ca/portfolio/editorsvideos/gallery.htm). I need to somehow link to a specific point in the XML file (i.e. video#2) from another HTML page. Ideally this link would be placed in the href. What is the simplest way to go about setting this up?
any help is greatly appreciated!
gnomeontherun
06-05-2008, 07:01 PM
I don't understand what you have or want exactly, could you explain better? Showing code is also very much appreciated.
Your Flash player doesn't work now for some reason, and did you create it or is it purchased?
nee57
06-06-2008, 02:30 PM
I want to create a link in one page, say www.rogerspublishing.ca that links to the editor's gallery html page which has the swf embedded in it, and starts playing the second video as opposed to the first video in the XML. The XML is called in the Action Script 3.0 code and sits within the same folder as the swf and HTML page the swf is embedded in. Below is the code found in the HTML however all of the XML variables are referenced directly from the Flash file:
<script type="text/javascript" src="http://qml.quiettouch.com/files/publishing/swfobject.js"></script>
<script language=javascript src="http://www.rogerspublishing.ca/js/flashLoader.js"></script>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','name','player','width','580','height','420','align','middle','id','pla yer','src','gallery','loop','false','quality','high','wmode','window','bgcolor','#ffffff','allowscri ptaccess','sameDomain','pluginspage','http://www.macromedia.com/go/getflashplayer','play','true','movie','gallery' ); //end AC code
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" name="player" width="580" height="420" align="middle" id="player">
<param name="movie" value="gallery.swf" />
<param name="quality" value="high" />
<param name="wmode" value="window" />
<param name="bgcolor" value="#ffffff" />
<param name="LOOP" value="false" />
<param name="PLAY" value="true" />
<embed src="gallery.swf" width="580" height="420" loop="false" align="middle" quality="high" wmode="window" bgcolor="#ffffff" name="player" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" play="false" />
</object>
</noscript>
The video player is working on my end and I have tested it on multiple computers. Do you have Flash 9 installed? It was not purchased, I created it using components.
Please let me know if you need any further information.
Thanks again!
gnomeontherun
06-06-2008, 07:08 PM
I have all of the updated Flash, the problem is it just doesn't come up. Maybe I have to wait for a minute, but thats too long for anyone to wait. I see the space where it should be, and every time when I right click it says Movie Not Loaded... Have you tested it on Firefox and IE? My IE loads the player, but throws a bunch of Javascript errors and doesn't play anything.
The HTML code is irrelevant to this question, so what I need is the AS. Also you should use SWFObject, which you have linked, but aren't using in this code. See this thread: http://codingforums.com/showthread.php?t=137848
I need to see the AS and XML to get it to link directly to the right video, and since you used components perhaps if you could post the FLA? PS: I don't know AS3, but I'm willing to try and help.
The basic idea is that you will need to send Flash a variable that will tell the player to start at video number ___.
UPDATE:
In the 3-4 minutes I was typing this post and thinking, the FLash video did come up eventually. It takes far too long for most web visitors to sit and wait, so how large is the file? I don't recommend using components because they are very bulky...
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.