民浩

 

06 2011 档案

输出stage.displayState等于null原因
摘要:写了一个类,其对象作为child加载到舞台,这个类里面写了一个全屏函数输出stage.displayState居然等于null我traceroot.stage.displayState 依然是null原因是:调试模式就可以了 阅读全文

posted @ 2011-06-26 04:33 民浩 阅读(935) 评论(0) 推荐(0) 编辑

flash camera类操作摄像头示例
摘要:package { import flash.display.Sprite; import flash.media.Camera; import flash.media.Video; import flash.display.StageScaleMode; import flash.display.StageAlign; import flash.events.ActivityEvent; import flash.events.StatusEvent; /** * ... * @author chb */ public class cameraExample extends Sprite { 阅读全文

posted @ 2011-06-17 00:08 民浩 阅读(3665) 评论(0) 推荐(1) 编辑

利用flash中的Video类播放flv格式文件,每次播放十秒左右就无故停止解决方法
摘要:package { import flash.display.Sprite; import flash.events.AsyncErrorEvent; import flash.media.Video; import flash.net.NetConnection; import flash.net.NetStream; import flash.events.SyncEvent; /** * ... * @author chb */ public class videoExample extends Sprite { /** * ... * 构造函数 */ public function v 阅读全文

posted @ 2011-06-15 00:00 民浩 阅读(2198) 评论(2) 推荐(1) 编辑

flash播放音频显示波形
摘要:package{ //引入相关的类 import flash.display.Sprite; import flash.display.Graphics; import flash.media.Sound; import flash.media.SoundChannel; import flash.media.SoundMixer; import flash.net.URLRequest; import flash.events.Event; import flash.utils.ByteArray; //自定义wave类,实现相关操作 public class wave extends Sp 阅读全文

posted @ 2011-06-12 23:21 民浩 阅读(721) 评论(0) 推荐(1) 编辑

actionscript中的sound类控制音频文件的操作示例
摘要:package { import fl.controls.Button; import fl.controls.Label; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.media.Sound; import flash.media.SoundChannel; import flash.net.URLRequest; import flash.media.SoundTrans 阅读全文

posted @ 2011-06-12 23:18 民浩 阅读(1009) 评论(0) 推荐(1) 编辑

1046: 找不到类型,或者它不是编译时常数: Label 解决方案
摘要:package{import flash.display.MovieClip;import fl.controls.Label;import fl.controls.TextInput;import fl.controls.Button;import flash.events.MouseEvent;public class Login extends MovieClip{public function Login(){var User_Label:Label = new Label();User_Label.text = "用户名称:";User_Label.x = 100 阅读全文

posted @ 2011-06-12 03:42 民浩 阅读(6031) 评论(1) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示