Archangel7
08-05-2005, 01:03 PM
I have been working with Flash for a short time and I can't make this work...
I have read about loadvars and seen examples (not perl ones)... I tried to make a little flash accessing a little script for testing...
flash part (on layer1: frame 1)
var xx = new LoadVars();
xx.load("http://bruno.pcsolution.com.br/cgi-bin/qc/oo.pl");
xx.onLoad = ft();
_root.createTextField("txt",1,10,10,300,50);
txt.text = xx.opa+" * "+xx.opa2+" : "+xx.toString();
function ft(success) {
if (success) { trace("worked"); }
else { trace("nope"); }
}
perl part (prints on browser &opa=xxx&opa2=abc )
#!/usr/bin/perl
$| = 1;
use CGI qw/:standard :html3/;
use strict;
#print header;
print "Content-type: text/plain\n\n";
print "&opa=xxx&opa2=abc";
die;
print header is on comment, tried using it too, unsuccessfully.
my textfield shows as undefined * undefined : onLoad=undefined
trace shows "nope"
any suggestions? ideas?
thanks in advance
- Bruno
I have read about loadvars and seen examples (not perl ones)... I tried to make a little flash accessing a little script for testing...
flash part (on layer1: frame 1)
var xx = new LoadVars();
xx.load("http://bruno.pcsolution.com.br/cgi-bin/qc/oo.pl");
xx.onLoad = ft();
_root.createTextField("txt",1,10,10,300,50);
txt.text = xx.opa+" * "+xx.opa2+" : "+xx.toString();
function ft(success) {
if (success) { trace("worked"); }
else { trace("nope"); }
}
perl part (prints on browser &opa=xxx&opa2=abc )
#!/usr/bin/perl
$| = 1;
use CGI qw/:standard :html3/;
use strict;
#print header;
print "Content-type: text/plain\n\n";
print "&opa=xxx&opa2=abc";
die;
print header is on comment, tried using it too, unsuccessfully.
my textfield shows as undefined * undefined : onLoad=undefined
trace shows "nope"
any suggestions? ideas?
thanks in advance
- Bruno