Archive for October, 2007

. The flow (Web server on xp)

Saturday, October 27th, 2007

. The flow and conversion of data between a Flash movie, a server-side script, and a database The password validation for the brokerage system requires two scripts: a function defined on Frame 1, and a script that creates and sends the XML objects attached to the Submit button in the form. When users enter their information into text fields in the SWF file with the variables username and password, the variables must be converted to XML before being passed to the server. The first section of the script loads the variables into a newly created XML object called loginXML. When a user clicks the Submit button, the loginXML object is converted to a string of XML and sent to the server. The following script is attached to the Submit button. To understand this script, read the commented lines (indicated by the characters //): on (release) { // A. Construct an XML document with a LOGIN element loginXML = new XML(); loginElement = loginXML.createElement(”LOGIN”); loginElement.attributes.username = username; loginElement.attributes.password = password; loginXML.appendChild(loginElement); // B. Construct an XML object to hold the server’s reply loginReplyXML = new XML(); loginReplyXML.onLoad = onLoginReply; // C. Send the LOGIN element to the server, // place the reply in loginReplyXML loginXML.sendAndLoad(”https://www.imexstocks.com/main.cgi”, loginReplyXML); } The first section of the script generates the following XML when the user clicks the Submit button: 182 Chapter 10: Working with External Data
In case you need quality webspace to host and run your web applications, try our personal web hosting services.

Cpanel web hosting -

Friday, October 26th, 2007

Searching for affordable and proven webhost to host and run your servlet applications? Go to Linux Web Hosting services and you will find it.

(Web site translator)

Friday, October 26th, 2007

Visit our web design programs services for an affordable and reliable webhost to suit all your needs.

(Web host sites)

Thursday, October 25th, 2007

Go visit our java server pages services for a reliable, lowcost webhost to satisfy all your needs.

(Remote web server)

Thursday, October 25th, 2007

If you are in need for cheap and reliable webhost to host your website, we recommend http web server services.

(Web site management)

Thursday, October 25th, 2007

Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.

(Vps web hosting)

Wednesday, October 24th, 2007

If you are in need for cheap and reliable webhost to host your website, we recommend http web server services.

Web site directory - The server-side script that passes information between Flash

Wednesday, October 24th, 2007

The server-side script that passes information between Flash and the database reads and writes the data in XML format. You can use ActionScript to convert information collected in the SWF file (for example, a user name and password) to an XML object and then send the data to the server- side script as an XML document. You can also use ActionScript to load the XML document that the server returns into an XML object to be used in the SWF file.
Searching for affordable and proven webhost to host and run your servlet applications? Go to Linux Web Hosting services and you will find it.

About XML XML (Hp web site) (Extensible Markup Language) is becoming

Tuesday, October 23rd, 2007

About XML XML (Extensible Markup Language) is becoming the standard for the interchange of structured data in Internet applications. You can integrate data in Flash with servers that use XML technology to build sophisticated applications, such as chat systems or brokerage systems. In XML, as with HTML, you use tags to mark up, or specify, a body of text. In HTML, you use predefined tags to indicate how text should appear in a web browser (for example, the tag indicates that text should be bold). In XML, you define tags that identify the type of a piece of data (for example,
VerySecret). XML separates the structure of the information from the way it s displayed, so the same XML document can be used and reused in different environments. Every XML tag is called a node, or an element. Each node has a type (1, which indicates an XML element, or 3, which indicates a text node), and elements may also have attributes. A node nested in a node is called a child node. This hierarchical tree structure of nodes is called the XML Document Object Model (DOM) much like the JavaScript DOM, which is the structure of elements in a web browser. In the following example, is the parent node; it has no attributes and contains the child node , which has the attributes SYMBOL, QTY, PRICE, and VALUE: Using the XML class The methods of the ActionScript XML class (for example, appendChild(), removeNode(), and insertBefore()) let you structure XML data in Flash to send to a server and manipulate and interpret downloaded XML data. The following XML class methods send and load XML data to a server by using the HTTP POSTmethod: The load() method downloads XML from a URL and places it in an ActionScript XML object. The send() method passes an XML object to a URL. Any returned information is sent to another browser window. The sendAndLoad() method sends an XML object to a URL. Any returned information is placed in an ActionScript XML object. For example, you could create a brokerage system that stores all its information (user names, passwords, session IDs, portfolio holdings, and transaction information) in a database. Sending and loading variables to and from a remote source 181
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.

Web server setup - Using the LoadVars class You can use the

Monday, October 22nd, 2007

Using the LoadVars class You can use the LoadVars class instead of loadVariables() to transfer variables between a SWF file and a server. The LoadVars class lets you send all the variables in an object to a specified URL and load all the variables at a specified URL into an object. The response from the server triggers the LoadVars.onLoad() method and sets variables in the target. You can use LoadVars to obtain error information and progress indications and to stream the data while it downloads. The LoadVars class is similar to the XML class; it uses the methods load(), send(), and sendAndLoad() to initiate communication with the server. The main difference between the LoadVars and XML classes is that the LoadVars data is a property of the LoadVars object, rather than an XML DOM (Document Object Model) tree stored in the XML object. You must create a LoadVars object to call its methods. This object is a container to hold the loaded data. The following procedure shows how to use a LoadVars object to load variables from a text file and display those variables in a text field. To load data with the LoadVars object: 1 In a text editor such as Notepad or SimpleText, create a text file and add the following text tothe text file: day=11&month=July&year=2003 2 Save the file as date.txt. 3 In Flash, create a document. 4 Create a dynamic text field on the Stage and give it the instance name date_txt. 5 Select Frame 1 in the Timeline and open the Actions panel (Window > Development Panels > Actions) if it isn t already open. 6 Enter the following code in the Actions panel: var dateVars = new LoadVars(); dateVars.onLoad = function(ok) { if (ok) { date_txt.text = dateVars.day+”/”+dateVars.month+”/”+dateVars.year; } }; dateVars.load(”date.txt”); This code loads the variables in data.txt (day, month, year), then formats and displays them in the text field date_txt. 7 Save the document as dateReader.fla to the same directory that contains date.txt (the text file you saved in step 3). 8 Select Control > Test Movie to test the document. For more information, see the LoadVars class entry in Chapter 12, ActionScript Dictionary, on page 205. 180 Chapter 10: Working with External Data
If you are looking for cheap and quality webhost to host and run your website check Jboss Web Hosting services.