Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

YouSearch Tutorial

12 replies [Last post]

Hi-

I was going through the yousearch tutorial for building a plugin and I was able to get the plugin to appear but the there is no functionality. The search button does not work and obviously no search results are displayed.

Any ideas?

I followed the steps in the tutorial, and got it up to the point where the plugin appears, but it will not search.

Assuming I did something wrong I downloaded the original .fla, the .swf and the .as file from the server. I and attempted to run it off a remote server as well as from my local testing environment.

So I ruled out my own errors with creating the plugin incorrectly.

I get this message: "Adobe Flash player has stopped a potentially unsafe operation..." I am directed to adobe's site that would configure your player to allow the setting to work -I applied it to the c: path to the player swf that it automatically sugested.

After restarting, I open my page and the player displays without the plugin.

* In your yousearch folder there are two additional files:
a yousearch.xml and a build.sh file -are these meant to help in some way? -if so, how.

Hi Evan,

Could you provide a link to the site where you're hosting the plugin remotely?

I have the same problem, but instead of having a site I had to make a cd to show contents for a company.

this is my code.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <!--meta http-equiv="REFRESH" content="6.1;URL=sndMain.html"--> 
  <title>Intro</title>
  <style type="text/css"> <!--
#Layer1 {
position:absolute;
width:100%;
height:331px;
z-index:1;
left: 1px;
top: 1px;
}
body {
background-color: #000000;
}
-->
  </style>
  <script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&amp;&amp;i<a.length&amp;&amp;(x=a[i])&amp;&amp;x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
</head>
<body onLoad="MM_preloadImages('file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/imagenes/botonContCAct.png','file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/imagenes/botonPresMAct.png','file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/imagenes/botonPresTAct.png','file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/imagenes/botonWebMAct.png','file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/imagenes/botonMCadAct.png')" style="height: 317px;">
<table width="100%%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div align="center">
      <table width="800" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="160"><a href="file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/sndMain.html"><img src="file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/imagenes/botonContC.png" name="ContC" width="160" height="114" border="0" onMouseOver="MM_swapImage('ContC','','file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/imagenes/botonContCAct.png',1)" OnMouseOut="MM_swapImgRestore()"></a></td>
            <td width="160"><a href="file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/pres.pdf" target="_blank"><img src="file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/imagenes/botonPresM.png" name="PresM" width="160" height="114" border="0" onMouseOver="MM_swapImage('PresM','','file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/imagenes/botonPresMAct.png',1)" OnMouseOut="MM_swapImgRestore()"></a></td>
            <td width="160"><a href="file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/trueStrip.html"><img src="file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/imagenes/botonPresT.png" name="PresT" width="160" height="114" border="0" onMouseOver="MM_swapImage('PresT','','file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/imagenes/botonPresTAct.png',1)" OnMouseOut="MM_swapImgRestore()"></a></td>
            <td width="160"><a href="http://www.moellerdemexico.com" target="_blank"><img src="file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/imagenes/botonWebM.png" name="WebM" width="160" height="114" border="0" onMouseOver="MM_swapImage('WebM','','file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/imagenes/botonWebMAct.png',1)" OnMouseOut="MM_swapImgRestore()"></a></td>
<td width="160"><a href="http://www.moellermcad.com/" target="_blank"><img src="file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/imagenes/botonMCad.png" name="MCad" width="160" height="114" border="0" onMouseOver="MM_swapImage('MCad','','file:///Beto2/Users/joserobertotorressachez/Documents/Trabajo/Moeller/minidiscks/imagenes/botonMCadAct.png',1)" OnMouseOut="MM_swapImgRestore()"></a></td>
          </tr>
          </table>
    </div></td>
  </tr>
  <tr>
    <td><div id="mediaspace" class="mediaspace" align="center">This
    text will be replaced</div></td>
  </tr>
</table>
<br>
<script type="text/javascript" src="animaciones/swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject('animaciones/intro.swf','mpl','886','868','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','video.flv');
so.addVariable('controlbar','none');
so.addVariable('autostart','true');
so.write('mediaspace');
</script>
</body>
</html>

than you for your help

Is "animaciones/intro.swf" the JW Player?

It is actually the file that i want to display in the introduction page

@Roberto - Change:

<script type="text/javascript" src="animaciones/swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject('animaciones/intro.swf','mpl','886','868','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','video.flv');
so.addVariable('controlbar','none');
so.addVariable('autostart','true');
so.write('mediaspace');

To:

<script type="text/javascript" src="animaciones/swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject('player.swf','mpl','886','868','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','animaciones/intro.swf');
so.addVariable('controlbar','none');
so.addVariable('autostart','true');
so.write('mediaspace');

Please note .swf files are not officially supported by the player.

hi, the movie plays but I still get the "Adobe Flash player has stopped a potentially unsafe operation..." message, it shows the two files that are in my CF, is there a way to go around the flash security, since it is a cd all the clients will see that message. thank you

@Roberto - Can you provide a link to where you are running this?

it is a compact disk, I can send you the files if you want, you would have to run it under windows. or do you have an ftp so i can upload the files.

thank you for your help, i really apreciate it.

this is my email.
whitekage
at
hotmail.com

you can email them to ethan [at] longtailvideo [dot] com, thanks.

I first added the jwplayer using a .flv file and it works great - starts right up while the remainder of the show fairly successfully tries to finish the loading as it plays.

Because flash doesn't work on iPads, I changed to using basically the same code per your examples to an .mp4 file and it also works - but now it wants to load the entire show before beginning to play. So far adding an autoplay: true command doesn't seem to change anything.

What might I be doing wrong.

Thanks in advance!

Bill - Please provide a link, thanks.