Flash Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignFlash Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 14th, 2004, 03:14 AM
olm75 olm75 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 26 olm75 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 38 m 12 sec
Reputation Power: 0
for some reason this doesnt work help....

flash mx AS not working going to mysql database using PHP......

// create a new loadVars object for the variables to send
varsToSend = new LoadVars();
myData = new Array();
varsToSend.venueName = venueName.text;
varsToSend.state = state.getSelectedItem().label;
varsToSend.city = city.getSelectedItem().label;
varsToSend.areaCode = areaCode.text;
varsToSend.venueType = venueType.getSelectedItem().label;
varsToSend.ageGroup = ageGroup.getSelectedItem().label;
varsToSend.musicType = musicType.getSelectedItem().label;
// include a variable to prevent cacheing - this forces the browser
// to make a new call to the server
varsToSend.clearCache = new Date().getTime();
// assign a variable to send - this will eventually come from the search box
varsToSend.myVar = "new";
// create a new loadVars object for the variables to be received
varsToReceive = new LoadVars();
// set up the onload caller
varsToReceive.onLoad = processData;
// set up the function to be called on onLoad
function processData(success) {
// split the results into arrays using the "|" delimiter - this creates three arrays
//trace("first pipe = " + varsToReceive.venueName);
venueNameArray = varsToReceive.venueName.split("|");
addressArray = varsToReceive.address.split("|");
cityArray = varsToReceive.city.split("|");
zipCodeArray = varsToReceive.zipCode.split("|");
areaCodeArray = varsToReceive.areaCode.split("|");
phoneNumberArray = varsToReceive.phoneNumber.split("|");
stateArray = varsToReceive.state.split("|");
// format the text for the output box
for (i=0; i<venueNameArray.length; i++) {
outputText.text += venueNameArray[i] + " " + addressArray[i] + " " + cityArray[i] + " " + stateArray[i] + " " + zipCodeArray[i] + " " + areaCodeArray[i] + " - " + phoneNumberArray[i] + "\n";
//trace(venueNameArray[i] + " " + addressArray[i] + "" + cityArray[i] + " " + zipCodeArray[i]+ " " + areaCodeArray[i] + " - " + phoneNumberArray[i]);
}
// tell the movie to go to the last frame label
_level0.gotoAndStop("results");
}
// do the send and load action - I put 127.0.0.1 (localhost)
// you'll need to put your own domain name in
varsToSend.sendAndLoad("search.php", varsToReceive, "GET");
stop();

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignFlash Development > for some reason this doesnt work help....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT