易截截图软件、单文件、免安装、纯绿色、仅160KB

flex 中GML转换

package org.openscales.core.format
{
 import flash.utils.getQualifiedClassName;
 import flash.xml.XMLNode;
 import org.openscales.core.Util;
 import org.openscales.core.feature.Feature;
 import org.openscales.core.geometry.Collection;
 import org.openscales.core.geometry.LineString;
 import org.openscales.core.geometry.LinearRing;
 import org.openscales.core.geometry.MultiLineString;
 import org.openscales.core.geometry.MultiPoint;
 import org.openscales.core.geometry.MultiPolygon;
 import org.openscales.core.geometry.Point;
 import org.openscales.core.geometry.Polygon;
 import org.openscales.proj4as.Proj4as;
 import org.openscales.proj4as.ProjPoint;
 import org.openscales.proj4as.ProjProjection;
 import org.openscales.core.feature.Feature;
 import org.openscales.core.feature.PointFeature;
 import org.openscales.core.feature.MultiPointFeature;
 import org.openscales.core.feature.LineStringFeature;
 import org.openscales.core.feature.MultiLineStringFeature;
 import org.openscales.core.feature.PolygonFeature;
 import org.openscales.core.feature.MultiPolygonFeature;
 import org.openscales.core.Trace;
 /**
  * Read/Write GML. Supports the GML simple features profile.
  */
 public class GMLFormat extends Format
 {
  protected var _featureNS:String = "http://openscales.org/OpenScales";
  protected var _featureName:String = "featureMember";
  protected var _featurePrefix:String = "OpenScales";
  protected var _layerName:String = "features";
  protected var _geometryName:String = "geometry";
  protected var _collectionName:String = "FeatureCollection";
  protected var _gmlns:String = "http://www.opengis.net/gml";
  protected var _gmlprefix:String = "gml";
  protected var _wfsns:String = "http://www.opengis.net


相关文档:

Flex:ArrayCollection转xml形式的实例

ArrayCollection转成xml类型示例
下面模拟一组数据exams,将其转化为xml形式.详细代码见下:
Xml代码
<?xml version="1.0" encoding="utf-8"?>  
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" fontSize="12"  creationComplet ......

从头学FLEX no.1

1.当下载了flash builder 4 beta ,安装启动时候,回提示输入注册码。可通过网址https://freeriatools.adobe.com/flashbuilder4beta/ 输入Flex Builder 3 Serial #: 来换取 builder 4 beta的注册码。在邮件中查收
2.通过http://www.adobe.com/devnet/flex/videotraining/flex4beta/来学习flex4.个人感觉video做的很不 ......

Flex Event总结

<!-- -->
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;
mso-font-charset:2;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:0 268435456 0 0 -2147483648 0;}
@font-face
{font-family:宋体;
panose-1:2 ......

Flex 本地安全策略问题

今天在做项目的时候遇到了一个问题,访问xml文件就是成功不了。看了看以前写过的代码都可以,而这个项目中为什么就不行了呢?仔细查看了目录,是百思不得其解啊。
错误信息:*** Security Sandbox Violation ***
Connection to file:///C|/loading.swf halted - not permitted from xxxx/data.xml。这个xml是在工程里面sr ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号