All Flash XML Jedi, please use the force!

  • boogidy
  • Born
  • Born
  • boogidy
  • Posts: 1

Post 3+ Months Ago

Hello All. Cool forum. First post. I was hoping to learn and get some insight to solve a XML Flash passing variable issue I am encountering. It involves 2 flash files and an XML file, a web service, and "flashvars".

1st FLA file:

Code: [ 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

..now, on the main stage, when you click on the form button, it jumps to a label and hits a keyframe with this actionscript. The external swf form loads successfully.

//for the output, I only get the URL and the number "1" from the code below. I don't get anything else. What I am trying to do is PASS the sendFormString value to the external file newform.swf. It doesn't seem to be working.

Code: [ 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.     


2nd FLA, newform.fla:

// On the root, 1st frame...
//the code below calls an external SWF that validates fields. It all works. Now, the this.actionURL works too, as a STATIC link. But I need to make this link DYNAMIC and pass the sendFormString value (a URL) to the newform.swf file where the this.actionURL value is.
Code: [ 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();


The reason why I need the URL dynamic is that it needs to change all the time because the URL may change frequently.

Thank you very very much for any suggestions you may have that will solve my problem.

Best Regards,
Boogidy
:)
Moderator Remark: Added code tages for legibility
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 12 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.