Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > FlashLite / Portable Devices Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-17-2007, 02:04 PM   #1
clodagh
Registered User
 
Join Date: Dec 2006
Posts: 13
Default flash lite 2.1 server connection

I need to send a few variables to a servlet over a server. getURL() works but it opens up a browser window which i don't want. LoadVars doesn't seem to like me or defining vars that are most certainly there.
So if anyone knows how to stop the browser window from opening, do tell or if they can see why my_lv.mbrId.. is coming up undefined, if tracing the other side of the operator it gives the correct value.

on(press){
var my_lv:LoadVars = new LoadVars();
my_lv.mbrId = mbrId_txt.text;
my_lv.holNo = holNo_txt.text;
my_lv.stroke = stroke_txt.text
my_lv.send("setscore.cfm", "_blank", "POST");

trace(my_lv.holNo+"&"+my_lv.mbrId)

}
clodagh is offline   Reply With Quote
Old 04-30-2007, 05:31 PM   #2
sophistikat
Game On
 
sophistikat's Avatar
 
Join Date: Mar 2005
Location: Barrie, ON
Posts: 2,519
Default

i always use sendAndLoad to avoid any windows popup... it will also allow you to debug and see if the LoadVars object was sent.
ActionScript Code:
on(press){     var result_lv:LoadVars = new LoadVars();     result_lv.onLoad = function(success:Boolean) {     if (success) {         trace('No errors: send_lv was sent!');     } else {         trace('Error: send_lv was not sent, there was problem connecting to server.');     };         var send_lv:LoadVars = new LoadVars();     send_lv.mbrId = mbrId_txt.text;     send_lv.holNo = holNo_txt.text;     send_lv.stroke = stroke_txt.text     send_lv.sendAndLoad("setscore.cfm", result_lv, "POST"); }
__________________
Marlon Valenzuela
Interactive Web Developer
http://www.marlonvalenzuela.net

Last edited by sophistikat; 04-30-2007 at 05:36 PM..
sophistikat is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash Communication Server (FCS) - Live Webcam Stream Over the Internet - How? andrewf Flash Media Server 10 03-16-2009 07:11 AM
Flash remoting connection problem pepper28 Flash Remoting 0 09-27-2006 04:03 PM
Is it possible to make a FLASH Server? callMeXman Server-Side Scripting 2 11-13-2004 06:55 AM
Introduce a flash chat room with java server. topcmm Flash Media Server 1 11-19-2003 01:26 AM
seperate server problem with flash message board sonic_2k_uk Server-Side Scripting 4 09-21-2003 03:23 PM


All times are GMT. The time now is 09:03 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.