A quick and easy way to render HTML text with the body of a Flex Alert box.
There is no API to set the htmlText property of the Alert text field, but you can access it using the mx_internal namespace.
import mx.controls.Alert;
import mx.core.IUITextField;
var title:String ="HTML Alert!";
var htmlBody:String = "This is my HTML message with <b>Bold</b> text and <br/> HTML formatting <b/>";
var alert:Alert = Alert.show(str, htmlBody);
// now target the Alert text field (after we have opened it) and set the HTML text property use namespace mx.core.mx_internal;
IUITextField(alert.alertForm.textField).htmlText = htmlBody;
分享到:
相关推荐
Flex 自定义Alert 4版本自定义Alert 4版本自定义Alert 4版本自定义Alert 4版本
NULL 博文链接:https://hb0504511129-126-com.iteye.com/blog/1343849
flex中Alert是很常用的,该源码主要是对Alert的样式设置。
Flex开发的代边框Box以及自定义代checkBox的容器,可根据自己的需求拓展功能,同时支持点击缩小容器效果,只是个实现思路。
前端开源库-flex-box柔性箱,柔性布局容器组件
Flex缩放盒子:可对框进行拖拽与任意缩放,也可禁止.
Flex中如何检测Alert控件是否closed的例子.zip
Flex 4 in a day About this document Introduction MXML 2009 Namespaces States New MXML Tags Declarations Library Definition Private Reparent DesignLayer Two-way data binding MXML Graphics...
D:\下载\Fuji Flexa软件介绍(中文版).rarD:\下载\Fuji Flexa软件介绍(中文版).rarD:\下载\Fuji Flexa软件介绍(中文版).rarD:\下载\Fuji Flexa软件介绍(中文版).rarD:\下载\Fuji Flexa软件介绍(中文版).rarD:\下载\...
- Display Rich Text Editors in your applications* - Automatically resize the component to the height of the HTML content* - Prompt user when a page tries to unload it - Supports FCKEditor editor* - ...
flex 自动关闭的alert 默认关闭时间1.5秒
flex 4 check box legend chart
flex4 实战 flex4 in action pdf源码和配套的源码 和大家分享
In this chapter, we’ll talk about challenges that a web developer faces and how to solve them using Flex by Adobe. We’ll also get into the mechanics of a Flex application and discuss the ecosystem ...
Flex3样式设计工具4in1.rarFlex3样式设计工具4in1.rarFlex3样式设计工具4in1.rar
flex textlayout 滚动条 flex textlayout 滚动条 flex textlayout 滚动条
flex in a week视频可以在csdn上找到 这个是从RIA网站下的一下源代码 还有一些介绍
flex iframe 支持在flash中嵌套入html jsp asp php等flex iframe 支持在flash中嵌套入html jsp asp php等flex iframe 支持在flash中嵌套入html jsp asp php等flex iframe 支持在flash中嵌套入html jsp asp php等flex...
flex布局.html
New Web applications require engaging user... Using numerous easy-to-understand examples, Flex 3 In Action gives you a strong foundation that you can build on as the compexity of your projects increases.