Development of the simplest flex network topology (1)

Source: Internet
Author: User

This is the simplest network topology graph development. I have encapsulated all the topology elements for you, and then directly adding them will have relevant features. In addition, the underlying elements are also open-source and can be easily modified by OEMs. A complete topology can be built in just 10 minutes.

First download the project or SWC File

SVN address: http://code.google.com/p/ken-javaframeword/source/browse/#svn%2Ftrunk%2Fframework2.0

After the import, we start programming. Here is the best example:

<? XML version = "1.0" encoding = "UTF-8"?> <S: Application xmlns: FX = "http://ns.adobe.com/mxml/2009" xmlns: S = "Library: // ns.adobe.com/flex/spark" xmlns: MX = "Library: // ns.adobe.com/flex/mx "minwidth =" 955 "minheight =" 600 "xmlns: Topo =" com. shine. topo. view. topo. * "> <FX: declarations> <! -- Place non-visual elements (such as services and value objects) Here --> </FX: declarations> <FX: SCRIPT> <! [CDATA [import COM. shine. topo. view. line. topoline; import COM. shine. topo. view. node. basenodecontainer; import MX. controls. alert; Private function complete (): void {container. completeloading (); var node: basenodecontainer = new basenodecontainer; node. X = 10; node. y = 10; node. width = 32; node. height = 32; node. initnode (); node. refreshimage ("image/unknow.gif"); container. addtoponode (node); var node2: basenodecontainer = new basenodecontainer; node2.x = 100; node2.y = 10; node2.width = 32; node2.height = 32; node2.initnode (); node2.refreshimage ("image/unknow.gif"); container. addtoponode (node2); var line: topoline = new topoline (); line. inittopoline (null, node, node2); container. addtopoline (line);}]> </FX: SCRIPT> <TOPO: basetopocontainer id = "Container" width = "100%" Height = "100%" creationcomplete = "{complete ()}"/> </S: Application>

The above logic is to first import two nodes and import related lines.

Development of the simplest flex network topology graph (2) generating Topo graph http://blog.csdn.net/arjick/article/details/7177162 from XML

The most simple flex network topology Development (iii) add information prompt box http://blog.csdn.net/arjick/article/details/7690506

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.