Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / May 2008



Tip: Looking for answers? Try searching our database.

Flash to ASPX

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Parag Shah - 29 Jan 2007 20:00 GMT
Hello All,

I want to send one variable from my flash to an aspx page, which should
fetch the value and insert it into a database. However, this all should
happen in the background. I have used loadvars in flash and am doing
following:

var my_lv:LoadVars=new LoadVars();
my_lv.test=5;
function sendValue() {
my_lv.test+=1;
my_lv.sendAndLoad('simple.aspx',"",'POST');
}

I have a button in flash, which has:

on (release) {
sendValue();
}

now, is this correct because my programmer says, he is not able to receive
the variable? Please correct me, wher am I wrong?

Regards,

Parag
MotionMaker - 30 Jan 2007 15:57 GMT
You are using the incorrect syntax for
.http://livedocs.macromedia.com/flash/8/main/00002336.html.

var result_lv:LoadVars = new LoadVars();
    result_lv.onLoad = function(success:Boolean) {
    if (success) {
     trace(result_lv.varNameFromServerIfAny);
    } else {
       trace( "Error connecting to server.");
    }
    };
    var send_lv:LoadVars = new LoadVars();
    send_lv..test+=1
    send_lv.sendAndLoad("http://www.yourdomain.com/simple.aspx'", result_lv,
"POST");
swasgrafx - 20 May 2008 22:31 GMT
MotionMaker What would be the corresponding ASP? Would like to see the simple.aspx page if possible... Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.