A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: passing parameters from Perl to Flash

  1. #1
    madskool.wordpress.com brutfood's Avatar
    Join Date
    Apr 2002
    Posts
    469
    I thought this would be easy - I've done this so often the other way - but this time needed to calculate some values in a Perl script to pass to flash. I assumed that I just needed to generate the text in perl, that I would normally put in a text file when I do this sort of thing. So this is the test I did:-

    mytest.cgi contains:-

    #!/usr/bin/perl

    use CGI ':standard';

    print "banner=hello.swf&userid=123&\n";


    and my actionscript contains:-

    loadVariables("http://127.0.0.1/cgi-bin/mytest.cgi", this);


    I only included this text so you could all see how stupid I am - because it is apparent that I can barking up the wrong tree with this approach!

    So, how do I do it?

    I apologise most humbly for my emense ignorance.

    Daniel

  2. #2
    __OSX powered__ nucleuz's Avatar
    Join Date
    Aug 2000
    Location
    Norway
    Posts
    836
    Have you tried it in a browser??? what is the output there??

    put the following in after the #! line:
    Code:
    print "Content-type: text/html\n\n";
    That should do it I think.
    What (if) are the errors you get?


  3. #3
    madskool.wordpress.com brutfood's Avatar
    Join Date
    Apr 2002
    Posts
    469

    YES!

    YES!!!!- oh THANK YOU! it works.

    It's 11:10pm here, and I think you've earn't me some sleep. Thanks a lot!

    Daniel

  4. #4
    __OSX powered__ nucleuz's Avatar
    Join Date
    Aug 2000
    Location
    Norway
    Posts
    836
    No problems!
    11.10pm.... hmm, where are you?? Australia?

    In Brisbane myself.

  5. #5
    madskool.wordpress.com brutfood's Avatar
    Join Date
    Apr 2002
    Posts
    469

    Adelaide

    Adelaide

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center