Hi..I have a problem: I have 2 kinds of different configurations possible for the flv player, that works fine separately, but not together. The first one loads 2 movie in the same player
The first one loads a youtube movie, but before it, he loads a pre-movie with an advertising, that is a flv movie. The example is here:
http://casa.abril.com.br/video/nova_index.shtml
and it works via javascripting with a line like this:
swfobject.embedSWF("player.swf", "exibeAqui", w, h, "9.0.115", false, flashvars, params, attributes); inside the js, within a function called do_playerand, in the html:
<script type="text/javascript">
do_player("http://www.youtube.com/watch?v=vwIhgTXRiEo", "exibeAqui","460","370",true,true);
</script>You can see the full code of the js file, if you visit the page I put as example.
------------------------------------------------------------------------
The other way, works fine, with an image with a hyperlink on it, but the code to make it works is something like that:
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','ply','470','280','9','#ffffff');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('wmode','opaque');
s1.addParam('flashvars','file=http://content.bitsontherun.com/videos/3ta6fhJQ.flv&controlbar=over&logo=http://www.longtailvideo.com/jw/upload/longtail.png&link=http://www.longtailvideo.com&displayclick=link&screencolor=FFFFFF&autostart=true');
s1.write('container');
</script>The page with the example is here:
http://casa.abril.com.br/video/novoteste2.html
As you see, there are two different versions of a swf function used in both cases. I want to know, how I can adapt it to work together
Please, if you help me it will be really helpful
my msn is this: rafael_headstrong@hotmail.com
i'm online the whole day at work I appreciate

http://casa.abril.com.br/video/nova_index.shtml
Your first embedding script uses swfobject v2.1.
Your second embedding script uses SWFObject v1.5.
To convert your second script to swfobject v2.1, load swfobject v2.1 once in the head element of your HTML document, like this:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>Then use this code in the head element of your HTML document:
<script type="text/javascript">var flashvars =
{
'file': 'http://content.bitsontherun.com/videos/3ta6fhJQ.flv',
'controlbar': 'over',
'logo': 'http://www.longtailvideo.com/jw/upload/longtail.png',
'displayclick': 'link',
'link': 'http://www.longtailvideo.com',
'screencolor': 'FFFFFF',
'id': 'player1',
'autostart': 'true'
};
var params =
{
'allowfullscreen': 'true',
'allowscriptaccess': 'always',
'wmode': 'opaque',
'bgcolor': '#FFFFFF'
};
var attributes =
{
'id': 'player1',
'name': 'player1'
};
swfobject.embedSWF(player, 'player1', '470', '280', '9.0.124', false, flashvars, params, attributes);
</script>
The player will appear whereever you place this:
<div id="playercontainer" class="playercontainer"><a id="player" class="player" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Flash Player to see this Media Player.</a></div>