??xml version="1.0" encoding="utf-8" standalone="yes"?>午夜亚洲成人,欧美一区在线观看视频,欧美日韩综合精品http://www.aygfsteel.com/liuwuping12064915/category/48792.html 坚持 随心而动 走自q?/description>zh-cnTue, 07 Jun 2011 15:33:12 GMTTue, 07 Jun 2011 15:33:12 GMT60Q{载)冒事g理解3 http://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351789.html天空布蓝天空布蓝Sun, 05 Jun 2011 14:29:00 GMThttp://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351789.htmlhttp://www.aygfsteel.com/liuwuping12064915/comments/351789.htmlhttp://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351789.html#Feedback0http://www.aygfsteel.com/liuwuping12064915/comments/commentRss/351789.htmlhttp://www.aygfsteel.com/liuwuping12064915/services/trackbacks/351789.html阅读全文

天空布蓝 2011-06-05 22:29 发表评论
]]>
Q{载)冒事g理解2http://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351782.html天空布蓝天空布蓝Sun, 05 Jun 2011 10:08:00 GMThttp://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351782.htmlhttp://www.aygfsteel.com/liuwuping12064915/comments/351782.htmlhttp://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351782.html#Feedback0http://www.aygfsteel.com/liuwuping12064915/comments/commentRss/351782.htmlhttp://www.aygfsteel.com/liuwuping12064915/services/trackbacks/351782.html

1.

目 右键 新徏 ?/p>

右键单击新徏的包Q新?actionscriptc?/p>

代码如下(代码1)

package btnEvents
{
    import flash.events.Event;
    
    public class btnEvent1 extends Event
    {
        public static var EVENT_NAME:String="customEvent";

        //该事件所携带的数?br />        public var EventData:String;        
        public function btnEvent1(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
        {
            super(type, bubbles, cancelable);
        }
    }
}

 

2.

主MXML文g如下所C?/p>

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:Modules="Modules.*"
               creationComplete="init()"
               >

    <fx:Script>
        <![CDATA[
            import btnEvents.btnEvent1;
            private function init():void{
                this.addEventListener(btnEvent1.EVENT_NAME,appCatchMyEvent,true);
                this.panel1.addEventListener(btnEvent1.EVENT_NAME,panelCatchEvent,true);
            }
            private function sendEvent(flag:int):void{
                var Event:btnEvent1=new btnEvent1(btnEvent1.EVENT_NAME);
                if(flag == 1){
                    Event.EventData = "内部按钮";
                    btn1.dispatchEvent(Event);//事件分zֈ事g中
                }else{
                    Event.EventData = "外部按钮";
                    btn2.dispatchEvent(Event);//事件分zֈ事g中
                }
            }
            private function appCatchMyEvent(par_event:btnEvent1):void{
                label1.text += par_event.currentTarget.id+par_event.EventData;//currentTarget是传播\径上的当前捕捉?br />            }
            private function panelCatchEvent(par_event:btnEvent1):void{
                label1.text += par_event.currentTarget.id+par_event.EventData;
            }
        ]]>
    </fx:Script>

    <fx:Declarations>
        <!-- 非可视元素Q例如服务、值对象)攑֜此处 -->
    </fx:Declarations>
    <s:Panel id="panel1" x="198" y="128" width="250" height="200">
        <s:Button click="sendEvent(1)" id="btn1" x="89" y="61" label="内部BTN"/>
    </s:Panel>
    <s:Button id="btn2" click="sendEvent(2)" x="378" y="360" label="外部BTN"/>
    <s:Label id="label1" x="198" y="66" text="事g来自~~~~" width="189"/>

</s:Application>

3.

q行E序

点击“内部BTNQ?/p>

l果如图所C?/p>

image

大家可以看到
事g是从外层容器到内层容器依ơ执行的

 

4.

h面

点击“外部BTN”

l果如图所C?/p>

image

因ؓ事g的引发者没有在panl1中所以不会再触发panel1的事件了

 

以上说的都是非冒泡事Ӟ事g的执行顺序是从外层容器到内层容器执行?/span>

 

5.

如果要在事g冒阶段捕捉事g

创徏事g的代码ؓ

var Event:btnEvent1=new btnEvent1(btnEvent1.EVENT_NAME,true);//最后一个参数bubbles应ؓtrue

事g监听的代码应如下

this.panel1.addEventListener(btnEvent1.EVENT_NAME,panelCatchEvent,false);//最后一个参数useCapture是false

q样讄后就是冒泡事Ӟ事g的执行顺序是从内层容器到外层容器执行?br />

 

6.

如果卌捕捉非冒泡事Ӟ又要捕捉冒事g

那么

创徏事g的代码ؓ

var Event:btnEvent1=new btnEvent1(btnEvent1.EVENT_NAME,true);//最后一个参数bubbles应ؓtrue

同时Q监听事件的代码q要讄两次

this.panel1.addEventListener(btnEvent1.EVENT_NAME,panelCatchEvent,true);//非冒泡监?br />this.panel1.addEventListener(btnEvent1.EVENT_NAME,panelCatchEvent,false);//冒监听

q样讄之后Q事件先从外部执行到内部Q在从内部执行到外部 

原文链接Q?a >http://www.cnblogs.com/liulun/archive/2010/11/23/1885053.html





天空布蓝 2011-06-05 18:08 发表评论
]]>
Q{载)冒事g理解http://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351781.html天空布蓝天空布蓝Sun, 05 Jun 2011 10:04:00 GMThttp://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351781.htmlhttp://www.aygfsteel.com/liuwuping12064915/comments/351781.htmlhttp://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351781.html#Feedback0http://www.aygfsteel.com/liuwuping12064915/comments/commentRss/351781.htmlhttp://www.aygfsteel.com/liuwuping12064915/services/trackbacks/351781.htmlhttp://bbs.9ria.com/viewthread.php?tid=59522

发生事gӞ该事件在事g的三个阶段中移动:
捕获阶段Q该阶段从显C列表层ơ结构的剙动到目标节点之前的节点Q?br style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: normal; " />目标阶段Q该阶段只包括目标节点;
冒阶段Q该阶段从目标节点的后箋节点沿显C列表层ơ结构向上往回流动?br style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: normal; " />EventDispatcher cd?IEventDispatcher 接口Qƈ且是 DisplayObject cȝ基类?EventDispatcher cd许显C列表上的Q何对象都是一个事件目标,同样允许使用 IEventDispatcher 接口的方法?nbsp;
事g目标?Flash ® Player 事g模型的重要组成部分?nbsp;

事g目标是事件如何通过昄列表层次l构q一问题的焦?br style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: normal; " />当发?span href="tag.php?name=%E9%BC%A0%E6%A0%87" class="t_tag" style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: normal; cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #ff0000; white-space: nowrap; ">鼠标
单击或按键等事gӞFlash Player 会将事g对象调度C昄列表根开始的事g中
然后该事件对象在昄列表中前q,直到到达事g目标Q然后从q一点开始其在显C列表中的回E?br style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: normal; " />在概念上Q到事g目标的此往q行E被划分Z个阶D:
、、捕获阶D包括从根到事g目标节点之前的最后一个节点的行程Q?br style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: normal; " />、、目标阶D仅包括事g目标节点Q?br style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: normal; " />、、冒泡阶D包括回E上遇到的Q何后l节点到昄列表的根?br style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: normal; " />通常Q用户定义的类能够调度事g的最单方法是扩展 EventDispatcher?如果无法扩展Q即Q如果该cdl扩展了另一个类Q,则可以实?IEventDispatcher 接口Q创?EventDispatcher 成员Qƈ~写一些简单的挂钩Q将调用q接到聚合的 EventDispatcher 中?br style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: normal; " />二、说?首先明确几个概念
1、显C列表根Q假如你有abc 三个panel c在b?b在a中这L嵌套关系 那么c-->b-->a  a是列表的根
2、目标:假如你在c上发了一个事仉么c是事g的目?有些复杂控g有click事g 不过发事件的目标不是它本w?那个currenttarget才是它本w?br style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: normal; " />3、事件传递的程Q首先你z֏事g在c?事g首先从a-->b-->c-->b-->aq样一个完整的循环
4、捕获阶D:事g在a-->b的这个阶D(注意和b-->a不同Q?br style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: normal; " />5、目标阶D?仅当事g到达c的时?br style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: normal; " />6、冒泡阶D?b-->aq样l过的阶D?br style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: normal; " />三、具?span href="tag.php?name=%E5%BA%94%E7%94%A8" class="t_tag" style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: normal; cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #ff0000; white-space: nowrap; ">应用
当你在c上面z֏了一个事?nbsp; 然后你想在c的顶层a上监听到
你可能这么做
首先你在c上this.dispatchEvent(new Event("cevent",false)); q样发了一个事?br style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: normal; " />蓝色字体 意味着q个事g只会在捕获和目标阶段 a->b->c
然后你在a上监听这个事?a.addEventListener("cevent",function():void{trace("原始论坛目标发出的事?);},false);
U色字体 意味着你打?让侦听器只在目标或冒泡阶D处理事?是c->b->a
四、简单说来就?你发出的事g走的是a->b->c的阶D?而你侦听只想侦听b->a阶段c只走了一ơ所以不会检到c的事?br style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: normal; " />M一个falseҎ(gu)true可以了
蓝色Ҏ(gu)true意味着事g在所有过E传?br style="word-wrap: break-word; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: normal; " />U色Ҏ(gu)true意味着侦听捕获阶段
再简单说 新徏事g不冒?默认侦听只侦听冒?/span>

天空布蓝 2011-06-05 18:04 发表评论
]]>
Q{载) flex4 css语法http://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351776.html天空布蓝天空布蓝Sun, 05 Jun 2011 07:56:00 GMThttp://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351776.htmlhttp://www.aygfsteel.com/liuwuping12064915/comments/351776.htmlhttp://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351776.html#Feedback0http://www.aygfsteel.com/liuwuping12064915/comments/commentRss/351776.htmlhttp://www.aygfsteel.com/liuwuping12064915/services/trackbacks/351776.html

我们展CZ下几U例子:通过命名I间来定义全局CSS样式Q通过具体lg的ID来定义个别组件的样式Q通过c里面的lgID来定义样式;通过lg样式定义样式?/p>

详细说明Q?/p>

首先让我们新Z个application。如下。包含两个按钮(一个Halo按钮和一个Spark按钮Q和一个包含在容器VGroup里面progressBar。代码如下:

<?xml version=”1.0″ encoding=”utf-8″?>

<s:Application xmlns:fx=”http://ns.adobe.com/mxml/2009″

xmlns:s=”library://ns.adobe.com/flex/spark”

xmlns:mx=”library://ns.adobe.com/flex/halo” minWidth=”1024″ minHeight=”768″>

        <fx:Style source=”global.css” />

        <s:layout>

                <s:VerticalLayout />

        </s:layout>

        <mx:Button label=”Click me, I’m a Halo button!”  id=”haloButton” />

        <s:Button label=”Click me, I’m a spark cool and funkybutton !” id=”sparkButton” />

        <s:VGroup id=”myBox”>

                <mx:ProgressBar />

        </s:VGroup>

</s:Application>

在CSS里面需要导入相应的命名I间Q如Q?/p>

@namespace s “library://ns.adobe.com/flex/spark”;

@namespace mx “library://ns.adobe.com/flex/halo”;

定制全局样式

mx|Button

{

color:#ffffff;

}

s|Button

{

color:#000000;

}

当然也可在组件的属性里面指定样式类Q然后在css中声明相应的样式c?/p>

.myStyleClass

   {

   color:#ff0000;

   }

lgID讄相应的组件样?/p>

#haloButton

   {

   base-color:#0000ff;

   }

#sparkButton

   {

   base-color:#ffffff;

   }

c里面的lgID来定义样?/p>

s|VGroup#myBox mx|ProgressBar

   {

   color:#ff0000;

   }

通过状态定义样?/p>

s|Button:down

   {

   color:#33CC33;

   }

ȝQ?/p>

通过q些语法Q我们能够更L的ؓlg制作样式了?/p>

天空布蓝 2011-06-05 15:56 发表评论
]]>
Q{载)两个.mxml文g之间链接的简单方?/title><link>http://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351775.html</link><dc:creator>天空布蓝</dc:creator><author>天空布蓝</author><pubDate>Sun, 05 Jun 2011 07:49:00 GMT</pubDate><guid>http://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351775.html</guid><wfw:comment>http://www.aygfsteel.com/liuwuping12064915/comments/351775.html</wfw:comment><comments>http://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351775.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/liuwuping12064915/comments/commentRss/351775.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/liuwuping12064915/services/trackbacks/351775.html</trackback:ping><description><![CDATA[<span id="wmqeeuq" class="Apple-style-span" style="color: #444444; font-family: verdana, sans-serif; ">test.mxmlȝ面:<br /><br /><?xml version="1.0" encoding="utf-8"?><br /><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"<br />        xmlns:n1="com.*" layout="absolute"><br />        <br />        <mx:ViewStack width="100%" height="100%" id="test" ><br />                <n1:test id="test_1"/><!--W一个页?test1.mxml文g)--><br />                <n1:test id="test_2"/><!--W二个页?test2.mxml文g)--><br />        </mx:ViewStack><br /></mx:Application><br /><br />=====test1.mxml代码Q?br /><br /><?xml version="1.0" encoding="utf-8"?><br /><mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300"><br />        <mx:Script><br />                <![CDATA[<br />                        public function test1():void<br />                        {<br />                                parentDocument.test.selectedChild=parentDocument.test_2;<br />                        }<br />                ]]><br />        </mx:Script><br />        <mx:Button label="跌{到test2.mxml" click="test1()"/><br /></mx:Canvas><br /><br />=====要从test2.mxmlq回到test1.mxml面Q?br /><br /><?xml version="1.0" encoding="utf-8"?><br /><mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300"><br />        <mx:Script><br />                <![CDATA[<br />                        public function test1():void<br />                        {<br />                                parentDocument.test.selectedChild=parentDocument.test_1;<br />                        }<br />                ]]><br />        </mx:Script><br />        <mx:Button label="跌{到test2.mxml" click="test1()"/><br /></mx:Canvas><br /><br />q样可以实现简单的面调整Q类g面的超链接</span> <br />原文链接Q?a >http://blog.csdn.net/sws9999/archive/2011/03/11/6238897.aspx<br /><br /><font class="Apple-style-span" color="#444444" face="verdana, sans-serif"><br /></font></a><img src ="http://www.aygfsteel.com/liuwuping12064915/aggbug/351775.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/liuwuping12064915/" target="_blank">天空布蓝</a> 2011-06-05 15:49 <a href="http://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351775.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>(转蝲)flex制作一个用L录框(含验证码)http://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351771.html天空布蓝天空布蓝Sun, 05 Jun 2011 05:19:00 GMThttp://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351771.htmlhttp://www.aygfsteel.com/liuwuping12064915/comments/351771.htmlhttp://www.aygfsteel.com/liuwuping12064915/archive/2011/06/05/351771.html#Feedback0http://www.aygfsteel.com/liuwuping12064915/comments/commentRss/351771.htmlhttp://www.aygfsteel.com/liuwuping12064915/services/trackbacks/351771.htmlhttp://www.cnblogs.com/qiantuwuliang/archive/2010/04/09/1708119.html

    
代码
<?xml version="1.0" encoding="utf-8"?>  
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"  
             fontSize
="12" horizontalAlign="center" creationComplete="init()">  

 
<mx:Script>  
  
<![CDATA[  
   import mx.controls.Alert;  
     
   private 
function init():void{  
    generate.text
=generateCheckCode();  
   }  
     
   
//d验证
   private function loginHandler():void{  
      
if(user.text==""||pass.text==""){  
       Alert.okLabel
="";
       Alert.show(
"用户?nbsp;?nbsp;密码 为空","提示");  
      }
else{  
       
if(user.text=="jianbao"&&pass.text=="jianbao"  
          
&&identify.text.toLowerCase()==generate.text.toLowerCase()){  
            Alert.okLabel
="";   
               Alert.show(
"d成功","提示");  
            currentState
="hollow";  
          
       }
else{  
            
if(identify.text.toLowerCase()!=generate.text.toLowerCase()){  
              Alert.okLabel
="";  
              Alert.show(
"验证码输入错?/span>","提示");  
              generate.text
=generateCheckCode();  
            }
else
            Alert.okLabel
="";       
            Alert.show(
"用户?nbsp;?nbsp;密码 错误","提示");  
            }  
       }  
      }  
   }  
     
     
   
//清除
   private function clearHandler():void{  
    user.text
=pass.text="";  
   }  
     
   
//产生验证?/span>
     
   private 
function generateCheckCode():String{  
    
//init  
    var num:Number;  
    
var code:String;  
    
var checkCode:String="";  
      
    
for(var i:int=0;i<5;i++){  
     num
=Math.round(Math.random()*100000);  
     
if(num%2==0){  
      code
=String.fromCharCode(48+(num%10));  
     }
else{  
      code
=String.fromCharCode(65+(num%26));  
     }  
     checkCode 
+=code;  
    }  
    
return checkCode;  
   }  
  ]]
>  
 
</mx:Script>  
                
 
<mx:Panel id="panel" x="143" y="115" width="350" height="229" layout="absolute" title="login">  
    
  
<mx:Button id="btnLogin" x="73" y="141" label="d" click="loginHandler()"/>  
  <mx:Button id="btnClear" x="167" y="141" label="清除" click="clearHandler()"/>  
     
  
<mx:Label x="41" y="31" text="用户?/span>"/>  
  <mx:Label x="44" y="64" text="?nbsp; ?/span>"/>  
     
  
<mx:TextInput id="user" x="81" y="31"/>  
  <mx:TextInput id="pass" x="81" y="62" displayAsPassword="true"/>  
  <mx:Text x="40" y="100" text="验证?/span>"/>  
  <mx:TextInput x="81" y="98" width="68" id="identify"/>  
  <mx:Label x="156" y="100" width="48" id="generate"/>  
  <mx:Label x="209" y="100" text="看不清楚 换个~~" click="generate.text=generateCheckCode()" />  
     
 
</mx:Panel>  
    
   
<mx:states>  
    
<mx:State name="hollow">  
     
<mx:RemoveChild target="{panel}"/>  
     <mx:AddChild position="lastChild">  
      
<mx:Label text="hollow marshane" x="0" y="200" fontSize="200" color="red"/>  
     </mx:AddChild>  
    </mx:State>  
   </mx:states>  
    
</mx:Application>  


效果图:



天空布蓝 2011-06-05 13:19 发表评论
]]>
利用TitleWindow和VideoPlayerlgL实现视频弹出播放效果http://www.aygfsteel.com/liuwuping12064915/archive/2011/06/04/351747.html天空布蓝天空布蓝Sat, 04 Jun 2011 12:41:00 GMThttp://www.aygfsteel.com/liuwuping12064915/archive/2011/06/04/351747.htmlhttp://www.aygfsteel.com/liuwuping12064915/comments/351747.htmlhttp://www.aygfsteel.com/liuwuping12064915/archive/2011/06/04/351747.html#Feedback0http://www.aygfsteel.com/liuwuping12064915/comments/commentRss/351747.htmlhttp://www.aygfsteel.com/liuwuping12064915/services/trackbacks/351747.html阅读全文

天空布蓝 2011-06-04 20:41 发表评论
]]>
lFlex写个单的背景音乐播放http://www.aygfsteel.com/liuwuping12064915/archive/2011/06/04/351730.html天空布蓝天空布蓝Sat, 04 Jun 2011 03:25:00 GMThttp://www.aygfsteel.com/liuwuping12064915/archive/2011/06/04/351730.htmlhttp://www.aygfsteel.com/liuwuping12064915/comments/351730.htmlhttp://www.aygfsteel.com/liuwuping12064915/archive/2011/06/04/351730.html#Feedback0http://www.aygfsteel.com/liuwuping12064915/comments/commentRss/351730.htmlhttp://www.aygfsteel.com/liuwuping12064915/services/trackbacks/351730.html
    暂停Ӟ



     单的播放按钮
<mx:Button x="865" y="33"  id="playerbutton" width="48" height="48" icon="{play1}"  click="misicPlay(event)"/>


    按钮的播放事?/span>
                      //播放状态时的图标显C?/div>
[Bindable]
[Embed(source="images/icon/200.png")]
public var play1:Class;
//暂停
状态时的图标显C?/div>
[Bindable]
[Embed(source="images/icon/199.png")]
public var play2:Class;
private var snd:Sound;
private var channel:SoundChannel;
private var playStatus:Number = 1;
protected function misicPlay(event:MouseEvent):void
{
if(playStatus==1){
snd = new Sound(new URLRequest("1.mp3"));
channel = snd.play();
 playerbutton.setStyle("icon",play2);
 playStatus = 0;
}
else if(playStatus==0)
{
playerbutton.setStyle("icon",play1);
channel.stop();
playStatus = 1;
}
}


天空布蓝 2011-06-04 11:25 发表评论
]]>AS中的ParentQParentDocumentQParentApplication属?/title><link>http://www.aygfsteel.com/liuwuping12064915/archive/2011/06/04/351729.html</link><dc:creator>天空布蓝</dc:creator><author>天空布蓝</author><pubDate>Sat, 04 Jun 2011 03:07:00 GMT</pubDate><guid>http://www.aygfsteel.com/liuwuping12064915/archive/2011/06/04/351729.html</guid><wfw:comment>http://www.aygfsteel.com/liuwuping12064915/comments/351729.html</wfw:comment><comments>http://www.aygfsteel.com/liuwuping12064915/archive/2011/06/04/351729.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/liuwuping12064915/comments/commentRss/351729.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/liuwuping12064915/services/trackbacks/351729.html</trackback:ping><description><![CDATA[     摘要: 原文链接Qhttp://blog.shinysky.com/2010/02/as-parent-parentdocument-parentapplication/Flex中的lg(Component)有三个属? 通常用来引用上的对? 它们?Parent, ParentDocument, ParentApplication.1. ParentQ指包含此组件的父容器对象(Displ...  <a href='http://www.aygfsteel.com/liuwuping12064915/archive/2011/06/04/351729.html'>阅读全文</a><img src ="http://www.aygfsteel.com/liuwuping12064915/aggbug/351729.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/liuwuping12064915/" target="_blank">天空布蓝</a> 2011-06-04 11:07 <a href="http://www.aygfsteel.com/liuwuping12064915/archive/2011/06/04/351729.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>从Flex中owner和parent的区别来说Flex API设计思\http://www.aygfsteel.com/liuwuping12064915/archive/2011/06/04/351727.html天空布蓝天空布蓝Sat, 04 Jun 2011 02:33:00 GMThttp://www.aygfsteel.com/liuwuping12064915/archive/2011/06/04/351727.htmlhttp://www.aygfsteel.com/liuwuping12064915/comments/351727.htmlhttp://www.aygfsteel.com/liuwuping12064915/archive/2011/06/04/351727.html#Feedback0http://www.aygfsteel.com/liuwuping12064915/comments/commentRss/351727.htmlhttp://www.aygfsteel.com/liuwuping12064915/services/trackbacks/351727.html阅读全文

天空布蓝 2011-06-04 10:33 发表评论
]]>
վ֩ģ壺 | | | | | ݸ| | | | | ٹ| ˳| | ƽ| ƽԭ| °Ͷ| | ױ| ţ| ӱ| ڽ| ۽| | | ɽ| | ˮ| | | | ƺ| ƽ| | ɫ| | ʼ| | | ̨| ɽ| Ϫ|