PHP Developers Network
http://forums.devnetwork.net/

Flash Return VAr
http://forums.devnetwork.net/viewtopic.php?f=14&t=71426
Page 1 of 1

Author:  ol4pr0 [ Fri Jul 27, 2007 5:38 pm ]
Post subject:  Flash Return VAr

feyd | Please use
Syntax: [ Download ] [ Hide ]
,
[syntax=php]and
Syntax: [ Download ] [ Hide ]
  1. tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: to learn how to do it too. 
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Hello Folks, 
  8.  
  9.  
  10.  
  11.  
  12.  
  13. Quick question, trying to do some action script however its not going to well. 
  14.  
  15.  
  16.  
  17. [syntax="actionscript"] 
  18.  
  19. function testing() { 
  20.  
  21. envia = new LoadVars(); 
  22.  
  23. flvURL = "BDAGMgdzVTFYel5tVCZUZQR3WzALPgl3"; 
  24.  
  25. envia.r = flvURL; 
  26.  
  27. recibe = new LoadVars(); 
  28.  
  29. envia.sendAndLoad("http://localhost/web/crypto.php", recibe, "POST"); 
  30.  
  31. recibe.onLoad = function(recibido) { 
  32.  
  33. if(recibido) { 
  34.  
  35. trace(recibe.decrypted); 
  36.  
  37.  
  38. } return [VARIABLE]; 
  39.  
  40.  
  41.  
  42.  
  43. myVariable = testing(); 
  44.  
  45. [/syntax] 
  46.  
  47.  
  48.  
  49. Inside the code trace is working nicely, however when i am trying to return the var, its says UNDEFINED 
  50.  
  51.  
  52.  
  53. Please Advise! 
  54.  
  55.  
  56.  
  57.  
  58.  
  59. feyd | Please use 
Syntax: [ Download ] [ Hide ]
,
[syntax=php]and
Syntax: [ Download ] [ Hide ]
  1. tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: to learn how to do it too. 

Author:  superdezign [ Fri Jul 27, 2007 6:36 pm ]
Post subject: 

... What is '[VARIABLE]'?

Author:  ol4pr0 [ Wed Aug 01, 2007 5:26 pm ]
Post subject: 

Whats vriable,

How to get any variable returned from a ActionScript . Cuase i am having troubles doing so..

In this case how to get recibe.decrypted to myVariable;

Author:  ol4pr0 [ Sat Sep 01, 2007 6:17 pm ]
Post subject: 


Author:  ianhull [ Sat Sep 01, 2007 6:39 pm ]
Post subject: 

Syntax: [ Download ] [ Hide ]



function testing(myVariable) {

    envia = new LoadVars();

    flvURL = "BDAGMgdzVTFYel5tVCZUZQR3WzALPgl3";

    envia.r = flvURL;

    recibe = new LoadVars();

   

    envia.sendAndLoad("http://localhost/web/crypto.php", recibe, "POST");

    recibe.onLoad = function(recibido) {

        if(recibido) {

        trace(this.decrypted.text);

        _global.testing = this.decrypted.text;

        }

    }



}



testing(myVariable);



//or



testing(_global.testing);





 


try and tell me exacltly what you are trying to achieve. and I should be able to help.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/