Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Multiple FLV via Single Player
Old 02-12-2008, 09:59 AM Multiple FLV via Single Player
Experienced Talker

Posts: 39
Trades: 0
Hello

I have one SWF player on my page calling the first of 6 FLV files.

I have thumbnails of the 6 movies to the right of the player ala eBay picture gallery style.

How can I code so as a new FLV file loads in the SWF each time one of the thumbnails is selected without re-loading the page?

Any help most appreciated!

Cheers

Paul
69me is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-19-2008, 12:30 PM Re: Multiple FLV via Single Player
Skilled Talker

Posts: 83
Location: UK
Trades: 0
There is a way of doing this, but I suggest having a browse around www.gotoandlearn.com, especially in the forums as they're very helpful there
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
graham08 is offline
Reply With Quote
View Public Profile Visit graham08's homepage!
 
Old 03-07-2008, 07:20 AM Re: Multiple FLV via Single Player
Experienced Talker

Posts: 39
Trades: 0
Just to let you know that I downloaded a couple of great FLASH files that I modified from http://www.flashmatics.co.uk/.
69me is offline
Reply With Quote
View Public Profile
 
Old 03-14-2008, 01:03 AM Re: Multiple FLV via Single Player
RadGH's Avatar
Skilled Talker

Posts: 76
Name: Radley
Trades: 0
Theres a live example available on my website that changes the source of a music file for the player. The source code may be complicated to look at but in essence heres what you would do...
You need the link for the new videos, and a div around the actual player

1: Add an "onclick" event to your link (that does not have an href, or use span etc...). Make up your function name and use the first parameters as the new location of the target video.
2: Make the function in javascript rewrite the entire embed code
3: Use the document.innerhtml method to rewrite the div that containts the flash.

HTML Code:
<head>

<script type="text/javascript">
function changeVideo(target)
{
   src = "<embed src='myplayer.swf?url=" + target + "' width='500' height='400'>";
   document.getElementById('VideoDiv').innerHTML=src;
}
</script>

</head>
<body>

<div id="VideoDiv"><embed>...</embed></div>

...
<a onclick="changeVideo('/videos/mymovie.flv')"><img ...></a>
</body>
RadGH is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Multiple FLV via Single Player
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22822 seconds with 12 queries