Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/05/2009, 15:29
Avatar de Fernand0
Fernand0
 
Fecha de Ingreso: septiembre-2005
Ubicación: Buenos Aires
Mensajes: 610
Antigüedad: 19 años, 4 meses
Puntos: 19
Respuesta: variable JavaScript a variable Flash

Código actionscript:
Ver original
  1. ExternalInterface.addCallback('wData', this.Notice);
  2.  
  3. public function Notice(str:String)
  4. {
  5.     this.Request=new URLRequest('http://localhost/root/scripts/upload.php');
  6.  
  7.     this.Vars=new URLVariables();
  8.     this.Vars.Data=str;
  9.     this.Request.data=this.Vars;
  10.  
  11.     this.Request.method=URLRequestMethod.POST;
  12. }

Código javascript:
Ver original
  1. <object id="SW:UpLoader" type="application/x-shockwave-flash" data="/Root/Scripts/uploader.swf" width="100" height="27" style="float: left; margin-bottom: 15px;">
  2.         <param name="movie" value="uploader.swf"/>
  3.         <param name="quality" value="high"/>
  4. </object>
  5. <script>var SW=getFlashMovieObject('SW:UpLoader'); SW.wData('Hola');</script>

alert(SW.id); Funciona.. o sea, el problema actual que tengo es que por alguna razon no le llega(o directamente no la manda.. no se) la variable al .swf

Saludos