Hi,

Things have changed in Macromedia Flash Player 8.5 and AS3. Like LoadVars, _level0 etc are not there in Macromedia Flash Player 8.5.

You can look at the AS2 to AS3 migration document and do the changes accordingly.

BTW! You can you use HTTPService in Flex 1.5/Flex 2.0 to achieve similar results. HTTPService is easier to use. You don't need to use LoadVars to load data from a URL or file in Flex.


Migration document: http://livedocs.macromedia.com/labs/1/flex/langref/migration.html

Search flexcoders archive to see how can you use HTTPService. You can also find several examples over web and in docs.

-abdul




On 2/28/06, eguinaldoms <[EMAIL PROTECTED]> wrote:
Hi, i'm use the flex 1.5 and the Loadvars to work with CGI file now i
chage to version 2 beta and my function to work with CGI don work
anymore !

How i can work with CGI in flex 2.0 Beta ?

function chamarcobol() {
var url:String = "http://10.0.0.244/cgi-bin/sfexx001" ;
var my_lv:LoadVars = new LoadVars();
my_lv.REPTRF = CODREP.text;;
my_lv.EMPTRF = CODFILIAL.text ;
my_lv.FLDRES = "123";
my_lv.>if(Ok) {
_level0.depthChild0.NOMREP.text = my_lv.FLDRES;
} else {
mx.controls.Alert.show('Não foi possivel enviar os
dados ao servidor ! /n Tente mais tarde ou entre em contato com o
suporte.', 'Erro'); }

my_lv.sendAndLoad(url,my_lv);
break; }


Please how i can use now to make the same thing ?


Tnks

Eguinaldo Marques






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to