To link Flash & ASP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • seeta
    New Member
    • Jul 2008
    • 1

    To link Flash & ASP

    My new.asp code like this.
    <%
    dim text1
    text1 = "sample"
    response.write "&txt=text1 "
    response.write( "txt="&text 1)
    response.urlenc ode("txt=&text1 ")
    %>
    I tried with all the above statements individually.

    In flash two textfields and one button is there.
    one dynamic text with instance name - n
    one dynamic text with var name - txt
    button with instance name - but

    Action script code as follows.

    but.onRelease=f unction() {
    var nametxt:LoadVar s=new LoadVars();
    nametxt.onLoad = function(succes s:Boolean){
    if(success){
    n.text="success ";}
    else
    { n.text="Error";
    }
    }
    txt=txt;
    loadVariables(" http://localhost/Flashpgm/new.asp","GET") ;
    }


    I also changed the above code in different types and worked but getting only
    UNDEFINED message in flash.
    both files are in same directory.

    Pleeeeeease anyone help.....
Working...