Thursday, April 1, 2010

Placing Flash Video in Specific...

Hi-



Basic (I think) question here regarding Flash video on a web
page created with DW8. I am trying to figure out how to have
several thumbnail images on the right hand side of the page link in
such a way that when they are clicked they will play the
corresponding Flash video file in a player window on the left hand
side of the page (something like a YouTube page layout). It seems
like it should be simple enough to link the thumbnail images to the
videos and then have the videos play in the player at a preset
location on the page, however, I'll be darned if I can find
anything on the Adobe site, tutorials, or the Web in general that
addresses just how to do this. Maybe I'm just putting in the wrong
search terms. Anyway, if you have any suggestions, tips or
tutorials you can recommend I would surely appreciate it.



-=SBPlacing Flash Video in Specific...
There are a couple of ways to do this:



- Simple but outdated: frameset with your icons in one
frame, switching pages in the main frame section that each have a
different movie



- JavaScript (several programming approaches)



I don't know if Dreamweaver can do either in a pre-fab way
for you -- but try looking for something about an image ''gallery''
with ''thumbnails'' and then figure out how to substitute a flash
movie for an image (which might be complicated with all the
attributes in the embed tag...)Placing Flash Video in Specific...
hi,

You can video on image click using the simple javascript.



the script can be like this:



%26lt;script language=''JavaScript'' type=''text/JavaScript''%26gt;

function playVideo(val){

document.getElementById('
divLayer').innerHTML=

'%26lt;OBJECT
classid=''clsid:D27CDB6E-AE6D-11cf-96B8-444553540000''\n'+

' codebase=''
http://macromedia.com/cabs/swflash.cab#version=6,0,0,0''\n'+


' ID=flaMovie WIDTH=320 HEIGHT=240%26gt;\n'+

' %26lt;PARAM NAME=movie VALUE=''te.swf''%26gt;\n'+

' %26lt;PARAM NAME=FlashVars VALUE=''url=' + val+'''%26gt;\n'+

' %26lt;PARAM NAME=quality VALUE=high%26gt;\n'+

' %26lt;EMBED src=''te.swf'' FlashVars=''url=' + val+'''\n'+

' WIDTH=320 HEIGHT=240 \n'+

' TYPE=''application/x-shockwave-flash''%26gt;\n'+

' %26lt;/EMBED%26gt;\n'+

'%26lt;/OBJECT%26gt;\n';

}

%26lt;/script%26gt;



where
divLayer is div layer insdie the body.



And, for image click the function can be assigned like this



%26lt;a href=''javascript:playVideo(
flvName.flv' )''%26gt; %26lt;img
src=''some.jpg''%26gt;%26lt;/a%26gt;%26lt;br/%26gt;



In the flash video player(te.swf in this case) you need to
declare a variable called
url

and assign the video contentPath to url.



I hope this works for you..


Thanks to both of you. I'll give it a try.

No comments:

Post a Comment