473,385 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to retrieve value from php file using actionscript?

93
hi people how do I retrieve some value from a php file that I have created? do I do something like the code below?
Expand|Select|Wrap|Line Numbers
  1.  
  2. var passingurl= mainurl+"passing.php"; //link to pass url
  3.  
  4. // create two new instances of LoadVars, one to send and one to receive data
  5. var postalOut:LoadVars = new LoadVars();
  6. var postalIn:LoadVars = new LoadVars();
  7.  
  8. // define what should happen when the response is received,
  9. // using 'this' to refer to dataIn and get data from it
  10. postalIn.onLoad = function() {
  11.  
  12. }
  13.  
  14. locate.searchbypostal.onPress = function() {
  15.     recoordinate();
  16.     locate.namelist.setSelectedIndex(0);
  17.     locate.empid.text = "";
  18.     postalOut.postalcode=postalcode.text;
  19.     postalOut.sendAndLoad(passingurl, postalIn, "POST");
  20. };
  21.  
  22.  
  23.  
thx pls help~
Jul 12 '07 #1
1 2188
I just ran through a tutorial earlier today, its pretty simple and straight forward:
http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm

I managed to read input from a php file though i am having trouble formating the text afterwards. I am pulling names from a sql server and cannot figure out how to have a line break after each name. Also i was hoping there was a way to add style attributes to spesific parts of my data i.e: my data from php is "Hello this text is bold" and i want

Hello this text is bold.

There is a way to set the entire sentance to be bold with actionscript though not individual words. Anyways, hope the tutorial helps you out, if you can figure out any of my questions please let me know.
-Shawn
Jul 12 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Matt | last post by:
Hello, I am attempting to get a software prototype UI/demo built in Flash to talk with existing C++ (so I can exchange data and commands between the application-software already developed in the...
1
by: Eugfene | last post by:
I have the following function in a html file: function selectEdit(fileID, processCode, processID, fileName,fileDesc) { document.forms.recordID.value = fileID; document.forms.processor.value =...
5
by: Roy Gourgi | last post by:
Hi, I am used to working in Visual FoxPro and I would like to be able to create a database and store and retrieve information from it. What is the simplest way to do it and what should I be...
10
by: eggie5 | last post by:
Is it possible to get a file without using a form post? I want to get the data (bytes) of a file, text or binary, and just save it to a variable. Similar to the post body of a form that has a...
2
by: molle | last post by:
Hi! This has been posted in the flash-forum as well. I know a solution for this problem and that is using this code: PHP: (submitScore.php) <?php $nick = $_POST;
1
by: damian | last post by:
I'm developing a quiz, and making some fancy controls, sliders and the like in Flash. I now want to be able to get the value of the slider control from my ASP . NET page. All I can find on the web...
2
by: rohitchawla | last post by:
can we get the navigator.userAgent string from actionscript just like in javascript
2
by: mfsiddiq | last post by:
HI I am facing some problem with my as-js communication.I am passing a String expression to a javascript function using ExternalInterface.call function upon mouse click.My string expression is as...
12
lifeisgreat20009
by: lifeisgreat20009 | last post by:
I am a newbie to Struts and JSP...I have been working on the code below for 5 hours now..I googled a lot but couldn't get much help so finally I am here.. Hoping of getting my problem solved. Please...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.