PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Aug 17, 2018 10:50 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Flash Return VAr
PostPosted: Fri Jul 27, 2007 5:38 pm 
Offline
Forum Regular
User avatar

Joined: Thu Jan 08, 2004 12:22 pm
Posts: 926
Location: ecuador
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: Posting Code in the Forums 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: Posting Code in the Forums to learn how to do it too. 


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 27, 2007 6:36 pm 
Offline
DevNet Master
User avatar

Joined: Sun Jan 21, 2007 12:06 am
Posts: 4135
... What is '[VARIABLE]'?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 01, 2007 5:26 pm 
Offline
Forum Regular
User avatar

Joined: Thu Jan 08, 2004 12:22 pm
Posts: 926
Location: ecuador
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;


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 01, 2007 6:17 pm 
Offline
Forum Regular
User avatar

Joined: Thu Jan 08, 2004 12:22 pm
Posts: 926
Location: ecuador
Better said,

how to get --> recibe.decrypted into MyVariable = Testing();


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 01, 2007 6:39 pm 
Offline
Forum Contributor

Joined: Tue Jun 14, 2005 10:04 am
Posts: 310
Location: Hull England UK
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 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

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group