`
hje
  • 浏览: 283581 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
<?xml version="1.0" ?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()"> <mx:Script> <![CDATA[ import mx.events.PropertyChangeEvent;      import mx.binding.utils.ChangeWatcher;      import mx.binding.utils.BindingU ...
例子1; <?xml version="1.0" encoding="utf-8"?> <mx:Application  initialize="initFunc()" xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[   import mx.controls.Alert;   import flash.utils.*;   private var i:int;   private func ...
1:写个接口 package com.interfacePoly { public interface MyInterface { function interfaceOne():void; function interfaceTwo():void; function interfaceThree():void; } } 2:写2个实现接口的类 a, package com.interfacePoly { import mx.controls.Alert; public class ImpInterfaceOne implements MyInterface { ...
private function addQuestion_must(xml:XML,array:Array,vb:VBox):void//动态创建checkbobox { var i_:int; var allNum:int=xml.children().length(); for(i_=0;i_<allNum;i_++) { arr_signMust[i_]=-1; var checkbobox:CheckBox=createCheckboBox(i_); vb.addChild(checkbobox);     ...
<?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" creationComplete="init()"> <mx:Metadata> [Event(name="transferCallout",type="flash.event ...
关于flex快捷键的说明 谁有关于flex快捷键的说明 我这里有点但是不全 谁能给我提供个全点的 Ctrl-F11: 执行(Run) F11: 除错(Debug) Ctrl-Alt-Down: 重复目前所在编辑列(Repeat current line ) Alt-Up: 移动本列,或选择列往上移动(Move line (or selection) up ) Alt-Down: 移动本列,或选择列下往移动(Move line (or selection) down ) Ctrl-Click: 移至定义区(Go to definition (also F3) ) Ctrl-D: 删除本 ...
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import mx.controls.Alert; [Bindable] private var arr_comData:Array=["private","pu ...
private function getDifNum(area_num:int,get_num:int):Array//0-->area_num //随机生成不同的几个数字             {             var arr_random:Array=new Array();             arr_random=[];             if(area_num>0 && get_num<=area_num && get_num>0)             {             v ...
private function expendtree():void { // have error /*var useTime:Timer=new Timer(300,3); useTime.addEventListener(TimerEvent.TIMER,expend);     useTime.start();*/     }         private function expend(event:TimerEvent):void        {         var xml_skill_len:int= data_xm ...
//change the Color of horse Race Light private var statusLight_color:String="statusLight2"; private var statusLight_rate2:int=500;//rate private var statusLight_rate1:int=2*statusLight_rate2; private function changeColor():void {     var useTime1:Timer=new Timer(statusLight_rate ...
Random函数在flash里是非常有用的,可以生成基本的随机数,创建随机的移动,以及随机的颜色和其他更多的作用。,这个教程将解释如何做出这个例子以及如何利用Random函数产生其他不同的结果。 基本的Random函数如下 Math.random(); 可以产生出0-1之间的任意小数,例如0.0105901374530933 或 0.872525005541986,有几个其他的函数可以用来改变产生的数字,从而可以更好的在你的影片中使用: Math.round(); Math.ceil(); Math.floor(); 这几个函数都是用来取得整数的,Math.round();是采用四 ...
E-Mail 确认 var pattern:RegExp = /([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}/;             var str:String = "cwchiu@hotmail.com";             trace( pattern.test(str) ); // true             str = "a.b.c.d";             trace( pattern.test(str) ); // fal ...
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initComplete()" layout="absolute">       <mx:Script>          <![CDATA[  import flash.events.Event; import f ...
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import mx.controls.Alert; import flash.net.Socket; private var socket:Socket; inter ...
var i=1; function enableDrag(o) { if (typeof o == "string")  o = document.getElementById(o);      o.orig_x = parseInt(o.style.left) - document.body.scrollLeft;      o.orig_y = parseInt(o.style.top) - document.body.scrollTop;               o.onmousedown = function(a)      {     this. ...
Global site tag (gtag.js) - Google Analytics