Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

How to get html text in a Flex Alert panel.

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 Yes to continue or No to cancel";
    }
    if(message.length>0){
     Alert.yesLabel="Yes"
      var alert:Alert=Alert.show(message,"Alert",3,null,alertHandlerForSO);     
     // alert.mx_internal::alertForm.mx_internal::textField.htmlText = message;
      IUITextField(alert.alertForm.textField).htmlText = message;
    }
 =========================
¸ü¶à Flex 4 ʾÀý£¬Çëµ½ http://www.slsay.com
Alert ¿Ø¼þÊÇ Halo ¿Ø¼þÖеÄÒ»ÖÖ¡£
ËùÓÐµÄ Flex ×é¼þ¶¼Äܹ»µ÷Óà Alert ÀàµÄ¾²Ì¬·½·¨ show ( ) £¬À´´ò¿ªÒ»¸ö´øÓÐÏûÏ¢¡¢±êÌâ¡¢°´Å¥ºÍͼ±íµÄµ¯³öʽ¶Ô»°¿ò¡£
µ±µã»÷ÁËÒ»¸ö°´Å¥Ê±£¬ Alert ¿Ø¼þ½«±»¹Ø±Õ¡£
Alert.show ( ) ·½·¨µÄÓï·¨ÈçÏ£º
public static show (
 text:String,
 title:String=null,
 flags:uint=mx.controls.Alert.OK,
 parent:Sprite=null,
 clickListener:Function=null,
 iconClass:Class=null,
 defaultButton:uint=mx.controls.Alert.OK
):Alert
·µ»ØÒ»¸ö Alert ¿Ø¼þ¶ÔÏó¡£
ϱíÃèÊöÁË show ( ) ·½·¨µÄ²ÎÊý£º
²ÎÊý
ÃèÊö
text
¶Ô»°¿òÖеÄÏûÏ¢Îı¾
title
¶Ô»°¿ò±êÌâÀ¸ÖеÄÎı¾
flags
Ö¸¶¨¶Ô»°¿ò°´Å¥°´Å¥        
mx.controls.Alert.OK  £º Ok °´Å¥
mx.controls.Alert.YES  £º Yes °´Å¥
mx.controls.Alert.NO £º No °´Å¥
mx.controls.Alert.CANCEL £º Cancel °´Å¥
parent
Alert ¿Ø¼þµÄ¸¸¶ÔÏó
clickListener
Ö¸¶¨ click ʼþµÄÕìÌýÆ÷
iconClass
Ö¸¶¨¶Ô»°¿òÖÐÏûÏ¢Îı¾×ó²àµÄͼ±ê
defaultButton
ʹÓÃÒ»¸ö±êÖ¾²ÎÊýµÄºÏ·¨ÖµÖ¸¶¨Ä¬ÈÏ°´Å¥¡£µ±Óû§°´Ï»سµÊ±£¬´Ë°´Å¥¾Í±»Ñ¡ÖУ¬ÆäĬÈÏÖµÊÇ Alert.OK.
ҪʹÓà Alert ¿Ø¼þ£¬ÐèÒªÒýÈë Alert À࣬Ȼºóµ÷Ó


Ïà¹ØÎĵµ£º

HTML²¥·ÅÊÓƵ

1.avi¸ñʽ
´úÂëƬ¶ÏÈçÏ£º
<object id="video" width="400" height="200" border="0" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA">
<param name="ShowDisplay" value="0">
<param name="ShowControls" value="1">
<param name="AutoStart" value="1">
<param name="Auto ......

Éú³É°ïÖúÎĵµ£¨html»òchm¸ñʽ£©

ת×Ô£ºhttp://www.blogjava.net/lishunli/archive/2010/01/07/308618.html
 
Javadocת»»chm°ïÖúÎĵµµÄËÄÖÖ·½·¨×ܽá
                              &nb ......

phpÈ¥³ýhtmlÖеÄscript

//È¥³ý script ½Å ±¾
function delScript($string){
$pregfind = array("/<script.*>.*<\/script>/siU",'/on(mousewheel|mouseover|click|load|onload|submit|focus|blur)="[^"]*"/i');
$pregreplace = array('','');
$string = preg_replace($pregfind, $pregreplace, $string);
return $str ......

flex³£Óÿì½Ý¼ü

’shift’ + ‘tab’:×óÒÆ´úÂë; [·½±ã]
”tab’:ÓÒÒÆ´úÂë; [·½±ã]
‘alt’ + ‘/’:´úÂëÌáʾ,µ¼ÈëÀà; »òÕß×Ô¼ºÔÚkeyÀïÕÒµ½ content assist×Ô¼ºÉèÖÃ
‘ctrl’ + ‘¿Õ¸ñ’:ͬÉÏ; Èç¹ûÓëÊäÈë·¨Çл»¿ì½Ý¼üÏàͬÐèÒª½«ÊäÈë·¨µÄ¿ì½Ý¼ü¸ü¸Ä³ÉÆäËû×éºÏ[·½ ......

flex ÊÕ¼¯µÄ×ÊÔ´£¨×ªÌû£©

±¾Ìùת×Ô£ºhttp://wufenggang.spaces.live.com/String/
APIs¡¢Libs¡¢Components
1¡¢as3ebaylib
http://code.google.com/p/as3ebaylib/
2¡¢as3youtubelib
http://code.google.com/p/as3youtubelib/
3¡¢as3flickrlib
http://code.google.com/p/as3flickrlib/
4¡¢Yahoo ASTRA Flash Components
http://developer.yaho ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ