- 浏览: 288079 次
- 性别:
- 来自: 广州
-
最新评论
-
zlbdexiaohao:
book那个例子,我怎么获得osbn号
flex xml操作 -
mysh:
ui.localToGlobal(new Point(0, 0 ...
flex 组件绝对位置 -
hje:
http://help.adobe.com/en_US/Fla ...
杂记。 -
dbmonths:
dbmonths 写道dbmonths 写道brightACE ...
byteArray 操作 -
dbmonths:
dbmonths 写道brightACE 写道学习了,感谢分享 ...
byteArray 操作
文章列表
<?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 ...
- 2008-12-02 10:18
- 浏览 2893
- 评论(0)
例子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 ...
- 2008-12-01 17:15
- 浏览 2527
- 评论(0)
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
{
...
- 2008-12-01 16:16
- 浏览 2089
- 评论(0)
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);
...
- 2008-12-01 13:49
- 浏览 2224
- 评论(0)
<?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 ...
- 2008-12-01 12:31
- 浏览 1921
- 评论(0)
关于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: 删除本 ...
- 2008-12-01 10:49
- 浏览 1213
- 评论(0)
<?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 ...
- 2008-11-25 15:20
- 浏览 1305
- 评论(0)
//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 ...
- 2008-11-25 15:04
- 浏览 4320
- 评论(0)
Random函数在flash里是非常有用的,可以生成基本的随机数,创建随机的移动,以及随机的颜色和其他更多的作用。,这个教程将解释如何做出这个例子以及如何利用Random函数产生其他不同的结果。
基本的Random函数如下
Math.random();
可以产生出0-1之间的任意小数,例如0.0105901374530933 或
0.872525005541986,有几个其他的函数可以用来改变产生的数字,从而可以更好的在你的影片中使用:
Math.round();
Math.ceil();
Math.floor();
这几个函数都是用来取得整数的,Math.round();是采用四 ...
- 2008-11-24 10:15
- 浏览 6521
- 评论(0)
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 ...
- 2008-11-21 16:57
- 浏览 2959
- 评论(0)
<?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 ...
- 2008-11-20 14:33
- 浏览 2019
- 评论(0)
<?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 ...
- 2008-11-18 17:19
- 浏览 2932
- 评论(0)
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. ...
- 2008-11-18 12:02
- 浏览 1412
- 评论(0)