Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

loading movies directly from the page

4:04 pm on Apr 21, 2008 (gmt 0)

Junior Member

5+ Year Member

joined:Apr 3, 2008
votes: 0

Im trying to have a movie loader in my website but then what i want to do is that when i click in one image of my page this swf starts streaming the correspondent video, but still dont know how to get that exactly. I can just make a whole swf file and thats about it but I would really want some interaction from my page and the swf. Other way the swf is gonna be too heavy and the user will need to wait more just to see the thumbnails of the videos. I need just a starting point at least.

thanks in advance

2:37 am on Apr 23, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
votes: 0

There's many ways to do this - Google for Flash video playlist tutorial for some samples.

What you're trying to do is probably connect to the Flash object to "tell" it what to load. This is normally done by query string or Javascript to communicate with the Flash.

Other way the swf is gonna be too heavy

In any case, what you should do is load the video into your player on demand. That is, when the Flash object loads, it's probably 40-100K in size, maximum. Video is not loaded into it until the visitor activates the controls, or data is sent to it by a link.

I know the answer is a bit vague, but as I said there are many ways to do this, all pretty well covered in the help files depending on what approach you use.

3:38 pm on May 2, 2008 (gmt 0)

Junior Member

5+ Year Member

joined:Apr 3, 2008
votes: 0

But the problem is that i dont know how to control flash from javascript, i know theres a swLiveConnect=true param i can just activate in my object tag, and then i can set variables in flash with a simple window.document.mytest.setVariable("myvar", str); but its not working and i set all the params already, i put an id in the object tag and the name in the embed and nothing yet sigh.

here is the code

<object id="mytest" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="550" height="400" title="mymovie">
<param name="movie" value="swf/test.swf" />
<param name="quality" value="high" />
<embed name="mytest" src="swf/test.swf" quality="high" swliveconnect="true" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="550" height="400"></embed>


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members