Overview of editing configuration files:
For the browser of the Flex application ArcGIS, You can edit the configuration and customize the xml configuration file. These XML files (. XML extension) has a simple structure of XML tags and attributes. They can use Notepad for editing, textpad, or any XML editor program.
There are two configuration file types:
Brows
SummaryWhen loading external SWF, we must understand the application domain ). From the official Adobe file, we can know that the application domain can split the classes in the same security domain, so that multiple definitions of a class can coexist, or let multiple sub-applications share the class definition of the parent application. Simply put, the application domain provides the partition function for the class definition.
Application domainMult
Note the point:The 1.filereference.download () method prompts the user to provide a location to save the file and start downloading from the remote URL. Direct load Request path download, no background support required.2. For the Chinese name of the file, the two sides need to set the code:First Flex side:var download_request:urlrequest=new urlrequest (encodeURI
The simple HTTP File Management Tool Based on flex performance management is released, And the Smark web service component function is used in the background.* 1.0** Supports simultaneous upload and download of multiple files** Supports shortcut key operations** Supports WinRAR online compression and decompression** Supports user configuration
Flex code SVN addr
. Print (sb. tostring ());} Catch (ioexception e ){E. printstacktrace ();Out. Print ("}}}} Catch (throwable t ){T. printstacktrace ();}}}
Development in flex
Register events first
Private Static const upload_url: String = forwardermodel. getinstance (). serverurl + "/common/upload ";// Use the/common/uploadexcel path, which corresponds to the uploadexcel servlet.[Bindable]Public var resultxml: XML;Public Function onbrowse (): void {Req = new URLRequ
Download files in Flex
Download the file is very simple, using this filereference class can be, 3 lines of code can, in the experiment found no response, in repeated testing finally found the reason.
Downloading files in Flex is asynchronous, and you have to set the lifetime of the Filereference class to a longer period of time.
Here's the code.
private Var dow
The configuration file is implemented in XML. The simple XML file test. XML is as follows:
Because flex does not have an API for writing files, it sends the color-coded RGB to the server using socket, and the server modifies the file so that the next time you log on to read the configuration
A few days ago wrote a JSP page using ajaxfileupload upload files, now the Flex upload page also share:Front PageAsvar file:filereference = Filelist.getitemat (i) as Filereference;var request:urlrequest=new URLRequest ("s/upload/ UploadFile "); Request.data=new urlvariables (); request.data.orderredorecord=n;try{ file.upload (Request, "file");} catch ( Error:error) {issuccess = false; Alert.show ("
Flex outputs debug information to the file
Flash debug player has two methods to record log information to log files.1. Global trace () function.2. Logging API. The logging API implements the TraceTarget class and provides functions similar to the trace () function.For example, you can record flexProgramThe deubg, error, and warning information generated during running.
Flash debug playerlogs are store
Uploading files in a Web application is a more common requirement, and here is a practical application to tell you how to upload multiple files under Flex and to upload files while providing some custom descriptive information for data logic processing.
Functional Requirements
Start with the following interface to understand the requirements:
Main features include:
1 Allow multiple uploaded files to be added
2 Custom
Generally, we will mix mxml labels with AS, which is a very convenient method for programs that do not require much code, but if you have a lot of as code, the combination of mxml labels and as will be detrimental to your update and maintenance. The following describes how to call external as from an mxml file.The content of the mxml file is as follows:
The content of the external as file (ss. As) is as fo
After Adobe Flash Player is upgraded to 9.0.124, the security policy loading methods in the original socket or xmlsocket applications cannot be used due to security policy changes. The changes are as follows:
1. First, check whether port 843 of the target server provides a security policy.2. If 1 does not detect the policy, check whether the security. loadpolicyfile (xmlsocket: //) method is used to provide the security policy. If not, use step 1.3. Check whether the target port of the target se
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Private function butClickHandle (e: MouseEvent): void{Var file: File = File. Specify topdirectory;// Open the fileIf (e.tar get. id = "but_openfile "){Var txtfilter: FileFilter = new FileFilter ("Text ","*. as ;*. css ;*. txt ;*. java ;*. html ;*. htm ;*. xml
browsers and on the desktop. More than 98% of the computers connected to the Internet are equipped with Flash Player, an enterprise-class client runtime whose advanced vector graphics can handle the highest-demanding, data-intensive applications while achieving the speed at which desktop applications are executed. Local data and system resources can be accessed by leveraging Air,flex applications.
Macromedia Flash is a powerful vector animation edit
-source framework for building and maintaining highly expressive Web applications uniformly deployed on all major browsers, desktops, and operating systems.2. Flex is a free Flex SDK that can be used to build a Flex application.3. Flex covers a series of technical combinations that support the development and deploymen
What is Flex? What is the relationship between flex and flash? What problems does flex solve? What is the relationship between flex and J2EE/. Net?
Flex is the Presentation Server (Presentation Service) released by Macromedia ),It is an application of Java Web iner or. NET
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.