homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

loading movies directly from the page

5+ Year Member

Msg#: 3631567 posted 4:04 pm on Apr 21, 2008 (gmt 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



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

Msg#: 3631567 posted 2:37 am on Apr 23, 2008 (gmt 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.


5+ Year Member

Msg#: 3631567 posted 3:38 pm on May 2, 2008 (gmt 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>

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved