How to Use flex to read XML files.
XML file: XML version = "1.0 ″ ?> Books > Item > Title > The complete guide to flex 2 and event 3.0 Title > Item > Item > Title > Programming flex 2
BenArticleFor the latest version, see: http://www.deepcast.net/wiki/ow.asp? Integration of flash and PHP
In the previous article flash integration PHP script (1) -- XML, we developed a small AdobeFlex2 ApplicationProgramConnected to a PHP background program. If you have read the previous article, you may ask: Can they directly pass variables without using XML encoding as an intermediary? The answer is yes. This article will demonstrate examples in t
Method 1:
Copy codeThe Code is as follows: private function readxml1 (): void {
Var xmlfile: file = new file ("file path ");
Var stream: filestream = new filestream ();
Stream. open (xmlfile, filemode. read );
Var xml: xml = xml (stream. readutfbytes (stream. bytesavailable ));
Stream. close ();
}
Method 2:Copy codeThe Code is as follows: private function readxml2 (): void {Var urlrequest: urlrequest = new
There are several ways to read XML files in flex, mainly using httpservice and webseriviceThis afternoon, I tried to use httpservice + server and only use httpservice to read the content of the XML file.Select tomcat or glassfish V2 for the serverI tried the glassfish V2 server, but as long as the URL is correctly imported, the server type should not be a problem
SeriesArticleNavigation
Using flex in Adobe AIR to connect to the SQLite database (1) (creating databases and tables)
Use flex in Adobe AIR to connect to the SQLite database (2) (add, delete, modify, and statement parameters)
Connecting to the SQLite database using flex in Adobe AIR (3) (query)
Conn
pixels, while the vertical direction is measured in rows:ScrollV: Specifies the top line of the visible area of the text box, which can be read and written;BottomScrollV: Specifies the bottom visible lines in the text box, read-only;MaxScrollV: the maximum value of scrollV, read-only;NumLines: defines the number of lines of text in multi-line text fields,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.