Loving Coding & Visual Design

两个FLash问题

1. Flash CS3里面无法向FLex一样调用文件的问题
下面这种方式在CS3里面无效,
[Embed(source="zhaiduo.jpg")] private var zhaiduo:Class;

我们可以把文件导入库library, 通过linkage ID调用。如:linkage ID为"Zhaiduo"。
var zd:Zhaiduo=new Zhaiduo(100,100);
var myBitmap:Bitmap = new Bitmap(zd);

2. NetStream无法播放非本地FLV视频文件的问题
NetStream只允许本地bitmapData.draw。所以只有声音看不见影像。例子可以看里
Nabble上有这样一段解释:
The only way around this is to deliver your video via a custom
configured flashCom server. (Open source solutions include red5 and
haXeVideo). These flashCom servers have to send a flag with the
NetStream that allows bitmapData.draw for your domain. Regardless,
you aren't going to get this from a remote server.



下一页


最 近 文 章

  1. 我是FLash三维实时渲染的忠实粉丝 - Sat, 21 Feb 2009 13:08:00 +0000
  2. 神秘的lightbox.js错误 - Thu, 19 Feb 2009 17:04:00 +0000
  3. Javascript与swf对象交互的问题 - Tue, 10 Feb 2009 08:51:00 +0000
  4. 集成phpBB3论坛 - Fri, 06 Feb 2009 10:05:00 +0000
  5. Cube使用ShadedMaterial材质的黑三角型问题 - Tue, 03 Feb 2009 08:33:00 +0000
  6. Papervision3D的正反两面材质测试 - Thu, 08 Jan 2009 05:19:00 +0000
  7. URL Rewrite的VBscript解决办法 - Wed, 07 Jan 2009 14:29:00 +0000
  8. 用Google App测试更新twitter遇到的问题 - Tue, 06 Jan 2009 06:08:00 +0000
  9. YP.com卖了385万美元现金 - Wed, 31 Dec 2008 04:58:00 +0000
  10. 黑客的嵌入代码 - Mon, 29 Dec 2008 06:50:00 +0000