473,395 Members | 1,823 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,395 software developers and data experts.

pass php to actionscript code

93
hi ppl bascially I am require to pass my php coding to actionscript and the actionscript will seperate the code of my php how do I do it? Must I create a function for php to be pass into actionscript like below?

Expand|Select|Wrap|Line Numbers
  1. function showuserdetails(uname, uid, department, designation, contact) {
  2.     locate.uname.text = uname;
  3.     locate.uid.text = uid;
  4.     locate.department.text = department;
  5.     locate.designation.text = designation;
  6.     locate.contact.text = contact;
  7.     locate.picloading.text = "Loading";
  8.     locate.userpic.contentPath = (mainurl+uname+".jpg").toLowerCase();
  9. }
  10. function recoordinate() {
  11.     clearInterval(updateposition);
  12.     //delete marker; // not working properly.
  13.     gmap.getPoint(cbubble).mc._visible = false;
  14.     cbubble = "";
  15.     showuserdetails("", "", "", "", "");
  16.     if (locate.empid.text != "" or locate.namelist.value != "none") {
  17.         gmap._mc._gui_mc.loading_mc._visible = true;
  18.     }
  19.     followbut._visible = true;
  20.     firstpan = 0;
  21.     if (gmap.zoom>11) {
  22.         gmap.zoomOut(gmap.zoom-11);
  23.     }
  24.     updateposition = setInterval(updatepos, 2000);
  25. }
  26. //////////Get name list-update pos/////////
  27. function getnamelist() {
  28.     locate.namelist._visible = false;
  29.     assign.sendlist._visible = false;
  30.     locate.empid.enabled = false;
  31.     assign.sendbut.enabled = false;
  32.     var listnames:LoadVars = new LoadVars();
  33.     listnames.onLoad = function(success) {
  34.         if (success) {
  35.             locate.errormsg.text = "";
  36.             for (var i = 1; i<=this.total; i++) {
  37.                 locate.namelist.addItem(this["name"+i], this["name"+i]);
  38.                 assign.sendlist.addItem(this["name"+i], this["name"+i]);
  39.             }
  40.             locate.namelist._visible = true;
  41.             assign.sendlist._visible = true;
  42.             assign.sendbut.enabled = true;
  43.             locate.empid.enabled = true;
  44.         } else {
  45.             locate.errormsg.text = "Error:Failed to get namelist";
  46.         }
  47.     };
  48.     var getnames:LoadVars = new LoadVars();
  49.     getnames.sendAndLoad(userlisturl, listnames, "GET");
  50. }
  51.  
The code above is all actionscript.
the function showuserdetails(uname, uid, department, designation, contact) is refer to the database and all this is store inside a php file so do I need to create a function like that to pass the php code to actionscript?
Jul 10 '07 #1
1 2471
Motoma
3,237 Expert 2GB
I'm sorry, could you try to better articulate what you are trying to do? Give a use case for how Flash and PHP will interact.
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...
3
by: paolazi | last post by:
Hello I have a problem: I have a database(mysql) with the following fields: test, descr, title I want to display them into a flash file. Now my php file called list.php (which collect the...
1
by: itsthefocusman | last post by:
Hi everyone my name is Daniel, I would like some help. I am using Flash 8 to build a website. I have built the whole site within one flash movie by building the different sections of the site...
1
by: camphor | last post by:
hi, I am getting this error message when using getURL **Error** Symbol=contact, layer=text, frame=1:Line 1: Statement must appear within on handler email_btn.onRelease = function(){ Total...
1
by: Adam Chapman | last post by:
Hello, I am trying to make an application with a flash interface which does calcultaions in the more powerful c++. Basically I want to be able to draw a shape in flash and do some structural...
3
by: JuneNasch | last post by:
Hi. I'm a beginner in using Actionscript. Do you know what is the actionscript for a button to exit or quit my project? I'm using Flash 8 pro. I don't know which version of actionscript is used,...
1
by: Malk | last post by:
I am making a website which deals with flash games, (uploading them for people to play, helping people make them ect.) and part of this involves people sharing ActionScript code with each other. I...
0
by: gabrielk43 | last post by:
Hi I am new to Flex and I use Flex Builder 2 to make a web service client. So I have a web service in .NET(c#) with a simple web method that returns a string(no arguments). It works, I tested it...
2
by: NitinSawant | last post by:
Hello, I'm beginner to actionscript, I've defined following function in script tag of page <script type="text/javascript"> function showMessage(){ alert("javascript says: Hello...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.