- 积分
- 136188
- 注册时间
- 2014-12-27
- 最后登录
- 2024-4-10
- 在线时间
- 603 小时
- 威望
- 562
- 贡献
- 29
- 金币
- 52691
- 钢镚
- 1422
- 交易凭证
- 1
- 分享
- 0
- 精华
- 33
- 帖子
- 2094
- 主题
- 1742
TA的每日心情 | 擦汗 2018-4-10 15:18 |
---|
签到天数: 447 天 [LV.9]以坛为家II
超级版主
- 威望
- 562
- 贡献
- 29
- 金币
- 52691
- 钢镚
- 1422
|
楼主 |
发表于 2015-6-3 13:59:48
|
显示全部楼层
发个支持 64位的
1在AS3中创建Notification对象,并被NotificationManager类派发。
您可以用以下代码开始派发notification:
- private var notificationManager:NotificationManager
- protected function notifyUser():void
- {
- if ( !this.notificationManager )
- {
- try {
- this.notificationManager = new NotificationManager();
- }
- catch (ae:ArgumentError)
- {
- trace("The notification native extension has no support for this platform.");
- return;
- }
- }
-
- var n:Notification = new Notification();
-
- n.tickerText = this.tickerText.text;
- n.title = this.notificationTitle.text;
- n.body = this.notificationBody.text;
-
- this.notificationManager.notifyUser("MY_NOTIFICATION_TYPE",n);
- }
复制代码
本资源来自QQ群:56892018
贡献者:万马奔腾(QQ:59421724);
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|