flex µ¹¼ÆÊ±
Program niche
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Style source="skin/yflexskin.css" />
<mx:Script>
<![CDATA[
import flash.events.TimerEvent;
import flash.events.Event;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.utils.Timer;
import mx.controls.Alert;
import mx.events.ColorPickerEvent;
private var timer:Timer;
private var h_num:int;
private var m_num:int;
private var s_num:int;
private var sound:Sound;
private var soundChan:SoundChannel;
[Embed(source="dida.mp3")]
public var mp3: Class;
private function init():void
{
this.timeComplete();
sound = new mp3() as Sound;
timer = new Timer(1000, 0);
timer.addEventListener(TimerEvent.TIMER, onTimer);
}
private function onTimer(event:TimerEvent):void
{
s_num = s_num - 1;
if ((s_num == -1) &&
Ïà¹ØÎĵµ£º
ÔÚApplicationÖÐÌí¼Ó·ÇUIComponent×é¼þ
Æ©ÈçÒÔÏ´úÂë¾Í»á±¨´í£º
private function init():void { var sp:Sprite = new Sprite(); addChild(sp);}
TypeError: Error #1034: Ç¿ÖÆ×ª»»ÀàÐÍʧ°Ü:ÎÞ·¨½« flash.display::Sprite@156b7b1 ת»»Îª mx.core.IUIComponent¡£
ÕâÊÇÒòΪApplicationµÄaddChild·½·¨²¢·ÇÍêÈ«¼Ì³Ð×Ô ......
ʹÓÃÄÚÁªº¯Êý
private function ABCButtonListener(e:MouseEvent,specialObj:Object): void
{
Alert.show(specialObj.name);
}
private function methodWhereyouDostuffAndRegisterListener(): void
{
var myPrivateSpecialObject:Object = {name:"Special String Ingredients for Orange"};
......
´òӡʵ¼ÊÉϲ»ÊÇ
Flex
µÄ
Ç¿Ïî¡£ÄãÊÇ·ñÊÔ¹ý´òÓ¡¸´ÔÓµÄÎĵµ£¿±¨¸æÊDz»ÊÇ¿´ÉÏÈ¥×Ü ÊÇÄÇôģºý£¬ºÜ·ÑÄ«£¿
ΪÁËÓÃ
Flex
´òÓ¡¸ßÖÊÁ¿µÄ±¨¸æ£¬ÎÒÏëÒª¿Ë·þÒÔϼ¸¸öÖ÷ÒªÎÊ
Ì⣺
·
´ò Ó¡Êä³ö»ù±¾ÉÏÊÇ´óͼÏñ£¬ÐèÒª»¨·ÑºÜ³¤Ê±¼ä´òÓ¡£»
·
´ò Ó¡Êä³ö¿´ÉÏȥģºý£¬²»¹»¸ßÖÊÁ¿µÄÎĵµ£»
·  ......
A client asked me to do something seemingly simple.
"I want the Alert to have just this one sentence bolded."
Well, it's not exactly simple, so here's how you do it:
there are two solutions as below :
import mx.core.IUITextField;
use namespace mx.core.mx_internal;
message +="Press ......
×î½ü×öflexÏîÄ¿µÄʱºò£¬·¢ÏÖÍ˳öµÇ½ʱURLÉÏ»á×Ô¶¯¼ÓÉÏÒ»¸ö“#”×Ö·û£¬ºÜÆæ¹Ö£¬Google+BaiduÎÞÊý´Î¶¼Ã»ÓÐÕÒµ½´ð°¸¡£½ñÌìÎÞÒâ¼ä¿´µ½¼¸¸öȺÓÑÔÚ ËµÍ¨¹ý“BrowserManager”»ñÈ¡URL£¬ÓÚÊÇ×Ðϸ²é¿´ÁËAPI£¬ÓÖ·¢ÏÖÁË“HistoryManager”£¬Õâ¸öÎÊÌâÖÕÓÚÃ÷°×ÁË¡£ ÎÒ ÃÇͨ³£¿´µÄWebÒ³Ãæ ¿ÉÒÔͨ¹ýä¯ÀÀÆ÷µ ......