随笔分类 - Flex
Flex各类型坐标转换(全局、本地、内容坐标间转换)
摘要:Flex包含3种坐标:全局坐标、本地坐标、内容坐标全局坐标:stage级别,坐标原点为舞台的左上角,如MouseEvent的stageX、stageY坐标。本地坐标:组件级别的坐标系,相对坐标,坐标原点为相对的组件的左上角,如MouseEvent的localX、localY坐标,以及容器中组件的x、...
阅读全文
FLEX动态创建事件
摘要:在flex里通过addEventListener函数给控件动态加载click事件侦听函数时,除了事件本身传递的Event类型参数外,还需要传递更多的参数,代码如下:package{ public class EventArgExtend { public function EventArgExtend() { } public static function create(f:Function,... arg):Function { var F:Boolean=false; var _f:Function=function(e:*,..._arg) { _arg=arg if(!F) { F=
阅读全文
Flex项目调试及日志记录
摘要:Debugging Flex applications with mm.cfg and flashlog.txt When working with Flex applications, it may useful to see the output from the trace() function. Well, the good news is that if you have the deb...
阅读全文
Flex或Flash的跨域访问的解决方案
摘要:写一个名字为 crossdomain.xml 的XML文件,这个方法是允许任何Flash都可以调用,放到被调用文件的网站根目录下:<?xml version="1.0"?><!DOCTYPE cross-domain-policySYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"><c...
阅读全文
FLEX中使用BitmapFill的source属性指定SVG类文件
摘要:FLEX中使用BitmapFill的source属性指定SVG类文件<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundGradientColors="[#333333, #222222...
阅读全文
ArcGIS server如何将自己的小地图叠加到Google maps或者Virtual Earth上[转]
摘要:ArcGIS server如何将自己的小地图叠加到Google maps或者Virtual Earth上 我自己有个厂区的地图是cad的,转换为shape格式。然后将这个小地图正确的放置到google maps 上海市的大地图上的。网上资料1:如果要将自己的数据与ArcGIS online的数据叠加使用,那么:1、应该选择后者为Primary Map Resource(有一种情况下,可以将自己的服...
阅读全文
浙公网安备 33010602011771号