473,786 Members | 2,399 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to retrieve value from php file using actionscript?

93 New Member
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 2207
Shawn Northrop
67 New Member
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
1963
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 C++ source with its prototype UI/demo to be built in Flash). Can anyone provide examples or guidance for such an effort? More details:
1
4129
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 = processCode; ` document.forms.processorID.value = processID; document.forms.interfaceFileName.value = fileName; document.forms.fileNameDesc.value=fileDesc; document.forms.submit();
5
2931
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 using as there are many choices to choose from. My database will contain a lot of records. TIA
10
2442
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 file input element in it. Ultimately what I want to do is get a file off client machine (that they specify) and send it to the server using a standard post request. This is exactly the same as a form post with an file input element, but I don't...
2
1562
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
1392
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 are exmaples of how to use an ASP .net page as the service, but i need it the other way around, i.e. when the slider moves in my Flash file, I want the asp .net page to be notified so i can store the value as a local variable, for scoring.. i...
2
3159
by: rohitchawla | last post by:
can we get the navigator.userAgent string from actionscript just like in javascript
2
4847
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 follows str="x=callAS(id)" Inside my js function i am just using eval(str).callAS(id) contains a call to actionscript function to retrive the value of x using id.I am able to make call to the actionscript by registering the function using...
12
78027
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 give me some idea where I am going wrong ?? I just want to retrieve data from my emp_mstr table and display it using my JSP file... The table emp_mstr is as follows :- CREATE TABLE EMP_MSTR( EMP_NO VARCHAR(10) PRIMARY KEY, PASSWORD...
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9492
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10360
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10163
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10108
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4064
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.