Todos los Jedi XML Flash, por favor, utilizar la fuerza!

  • boogidy
  • Born
  • Born
  • No Avatar
  • Registrado: Mar 09, 2009
  • Mensajes: 1
  • Status: Offline

Nota Marzo 10th, 2009, 8:05 am

Hola todos. Cool foro. Primer puesto. Tenía la esperanza de aprender y obtener una idea para resolver un problema XML Flash paso variable estoy encontrando. Se trata de 2 archivos flash y un archivo XML, un servicio web, y "flashvars".

1er archivo FLA:

Código: [ Select ]
// WS is the element name in the XML. WS is equal to the web service URL, to which my flash form is posting to.

_root.sendFormString = this.firstChild.attributes.WS;
    trace(sendFormString); // this Does output the correct URL. Trace works
  1. // WS is the element name in the XML. WS is equal to the web service URL, to which my flash form is posting to.
  2. _root.sendFormString = this.firstChild.attributes.WS;
  3.     trace(sendFormString); // this Does output the correct URL. Trace works

.. ahora, en el escenario principal, al hacer clic en el botón de forma, salta a una etiqueta y un disparo de fotogramas clave con este ActionScript. Las cargas de forma externa swf con éxito.

/ / para la salida, solo me dan la dirección y el número "1" en el código de abajo. No entiendo nada. Lo que estoy tratando de hacer es pasar el valor sendFormString a la newform.swf archivo externo. No parece estar funcionando.

Código: [ Select ]
var formClip = loadMovieNum("minisiteFlash/newform.swf",11);
formClip.onLoad = function(success) {
    
    if (success)
        {
        formClip.actionURL = _root.sendFormString;
        trace(_root.sendFormString);
        //trace(formClip.actionURL);
        } else {
            trace ("FAiled load: " + _root.sendFormString + " " + formClip );
        }
    }
    
  1. var formClip = loadMovieNum("minisiteFlash/newform.swf",11);
  2. formClip.onLoad = function(success) {
  3.     
  4.     if (success)
  5.         {
  6.         formClip.actionURL = _root.sendFormString;
  7.         trace(_root.sendFormString);
  8.         //trace(formClip.actionURL);
  9.         } else {
  10.             trace ("FAiled load: " + _root.sendFormString + " " + formClip );
  11.         }
  12.     }
  13.     


2 FLA, newform.fla:

/ / En la raíz, 1 de marco...
/ / El código siguiente llama a un archivo SWF externo que valide los campos. Todo funciona. Ahora, las obras this.actionURL también, como un vínculo estático. Pero tengo que hacer este vínculo dinámico y pasar el valor sendFormString (URL) del archivo newform.swf cuando el valor es this.actionURL.
Código: [ Select ]
stop();
//gets external as file (validation code for email)
this.__proto__ = new ValidationASPFormCheckerScript(); //works
this.actionURL = "http://www.verifone.com/VerifoneWS.asmx/MiniFormDataStore"; //works
this.init();


//This is what I am trying to do, but it's not working:

stop();
//gets external as file (validation code for email)
this.__proto__ = new ValidationASPFormCheckerScript(); //works
this.actionURL = sendFormString; //doesn't work
this.init();
  1. stop();
  2. //gets external as file (validation code for email)
  3. this.__proto__ = new ValidationASPFormCheckerScript(); //works
  4. this.actionURL = "http://www.verifone.com/VerifoneWS.asmx/MiniFormDataStore"; //works
  5. this.init();
  6. //This is what I am trying to do, but it's not working:
  7. stop();
  8. //gets external as file (validation code for email)
  9. this.__proto__ = new ValidationASPFormCheckerScript(); //works
  10. this.actionURL = sendFormString; //doesn't work
  11. this.init();


La razón por la que necesito la dinámica dirección es que hay que cambiar todo el tiempo porque la dirección puede cambiar con frecuencia.

Muchas gracias en gran medida para cualquier sugerencia que pueda tener que resolver mi problema.

Saludos cordiales,
Boogidy
gif "alt =":)" title =" Smile ">
Moderator Remark: Added code tages for legibility
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Marzo 10th, 2009, 8:05 am

Publicar Información

  • Total de mensajes en este tema: 1 mensaje
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 41 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC