Flash remoting Configuration

Source: Internet
Author: User

Share some of your feelings and lessons learned from flash remoting with you. I am a beginner in Flash remoting. If something is wrong, please correct me.

This article is about the configuration of flashremoting. In fact, most of them have the knowledge of several senior people. Here, I would like to express my special thanks to the icastone hero.

Do not say I am infringing icastone !!!

1. Configure flashremoting In the. net environment:
1. the required software to be downloaded includes the flashremotingMX2004 (hereinafter referred to as remoting) component that supports as2.0. Previously, remoting did not support Chinese flash, but now it has provided support for Chinese flash, go to the official website to download the latest version, and download flashremoting.. net, you also need to have iis5.0 or later versions, and. net framework1.1. If you have not downloaded it from the relevant website ,.. net environment.

Note: the. net framework should be a full version. Do not download the distribution package.

2. first install. net environment, first install iis, and then install.. net framework sdk. After installation, install flashremoting. net (by default, it will be installed in the iis virtual directory (c: \ Inetpub \ wwwroot \ flashremoting), and then install the remoting component (note: you must install the remoting component after the flash installation is complete. If not, uninstall the flash and related folders and then reinstall it ).

3. After installation, check the c: \ Inetpub \ wwwroot \ logs files first. The next article describes the specific usage. After opening flash, you can see the remotingconnector component in data components on the component panel. You can see remoting in the window/other panel/Public Library. This is what you need. If not, be sure, does your remoting component support Chinese flash, and does it install the remoting component after flash is installed.

4. test the files under samples. First, test the first two files (that is, the examples of ado and asp). Here there are ado and ado_vb, and ado is written in c, ado_vb is written in vb.net, but the content is the same.) Many people here say that during the test, they always stay on the load page, the solution is to open the computer management page, right-click my computer, and choose manage/service and application/internet Information Service (IIS) manager/website/default website (the default virtual directory is c: \ Inetpub \ wwwroot. If not, re-specify the Directory), right-click flashremoting, select properties, and check the directory browsing, click Create (E), select "Pure script" in the execution permission, and click OK. Then you will see that your flashremoting directory has changed. Go to flashremoting/samples/ado, click default.htm on the right, and select Browse, the test is successful.

5. for the third example of webservice, I did not test it. net slave copy to the bin directory, give the asp.net write permission, and then restart iis. This is one of the several solutions I have found, because I am a dial-up Internet access, I have no way to download. net framework, so I have not tested it. I wish you success !!!

2. Configure flashremoting in the java environment:

1. You can use remoting to call the java object public method running on the java application server from the actionscript in a flash application,

Remoting supports the following java object types
JavaBeans
Java classes
Enterprise JavaBeans (ejb)
Jsp
Java Management Extensions (JMX) MBeans; this can only be used in jrun4
Server-side ActionScript (SSAS) (these are translation help)
Remoting explicitly supports JRUN 4.0, IBM WebSphere Spplication Server 4, BEA WebLogic, Sun ONE Web Server, and remoting, and runs correctly on other J2EE application servers, including Caucho Resin, tomcat, JBoss, ATG Dynamo, Oracle 9i AS, HP Application Server (this is the translated flash rmoting: the definitive guide, huh, huh)

2. here, because I am only a beginner in java, I can only find it simple, that is, the jrun server (hey, because after jrun is installed, remoting has been integrated, I will translate the relevant configuration documents for other java servers later.) because I have no other servers at hand, if you are not using the jrun server, you need to check the configuration method of the relevant server.

3. create your own service on the jrun server. Choose jrun console in Start/all programs and macromedia jrun4. Then you need to add the user name and password, this is entered when you install jrun. after entering the page, you will see that jrun has created three servers for you: admin, default, samples, they run on different ports respectively. If you want to run the program on admin, you need to enter localhost: 8000 to create a server and select create new server in the upper left corner, enter the name in jrun server name, for example

Flashremoting, and click jrun server directory. It will automatically configure the program directory for you. Then, after you select create server, some new server port numbers and other information will be displayed. If you do not want to change the directory, click finish, and find your jrun installation directory. In the servers directory, you will see your new flashremoting folder.

I wrote about configuration first. The next article is a simple hello world Program, which will be published later. If there are any errors, I hope you can correct them.

If you have any questions, please contact me, My QQ: 22339146, msn: lwanchen@hotmail.com

If it is reproduced, indicate the author.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.