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
相关文档:
将 Stage 的 displayState
属性设置为 StageDisplayState.FULL_SCREEN_INTERACTIVE
会将窗口置于全屏模式,在此模式下允许
键盘输入(在浏览器中运行的 SWF 内容中,不允许键盘输入)。若要退出全屏模式,用户需要按 Esc 键。
例如,以下 Flex 代码定义用于设置简单全屏端点的简单 AIR 应用程序:
<?xml ver ......
flex项目和组件等
open-source project : Flex
Adobe APIs
主要包含corelib, mappr, flickr, youtube及加密等类库.
http://labs.adobe.com/wiki/index.php/ActionScript_3:resources:apis:libraries
as3awss3lib
与 Amazon S3 交互的 ActionScript 3.0 类库
http://code.google.com/p/as3 ......
MXML:
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" fontSize="20" initialize="doinit()" mouseOver="getMouseTarget(event)">
<mx:ArrayCollection id="dgArray">
<mx:Object pid="1" name="秦始皇" time="秦" />
&nbs ......
今天在做项目的时候遇到了一个问题,访问xml文件就是成功不了。看了看以前写过的代码都可以,而这个项目中为什么就不行了呢?仔细查看了目录,是百思不得其解啊。
错误信息:*** Security Sandbox Violation ***
Connection to file:///C|/loading.swf halted - not permitted from xxxx/data.xml。这个xml是在工程里面sr ......
java开发的总想尽快把flex和java结合起来,我也是,但这容易忽视一些基础的东西,刚把flex和java整合的第一步做完,忽然想在flex页面中弹出个对话框,不知道怎么写了,网上查了半天才出来.
原来这一句话就搞定了
Alert.show(content,title,flags,parent,closeHandle,iconClass,defaultButtonFlag);
以下是网上找到资料,供参考. ......