天生我才必有用

Flash Open Source 相关站点

分类: Flex, Flash & AS    作者:Ray    2008年10月10日
  • OSFlash: http://osflash.org
  • OSFlash Mailing List: http://osflash.org/mailman/listinfo/osflash_osflash.org
  • The GAE SWF Project: http://gaeswf.appspot.com
  • Google App Engine: http://code.google.com/appengine/
  • Papervision3D: http://osflash.org/papervision3d
  • Red5: http://osflash.org/red5
  • SWFAddress: http://www.asual.com/swfaddress/
  • PyAMF: http://pyamf.org/
  • Fuse: http://osflash.org/fuse/
  • GoASAP: http://osflash.org/goasap/
  • SWX: http://swxformat.org
  • AMFPHP: http://www.amfphp.org/
  • MTASC: http://mtasc.org
  • swfmill: http://osflash.org/swfmill
  • AMES: http://osflash.org/ames
  • FlashDevelop: http://osflash.org/flashdevelop
  • ASDT: http://osflash.org/asdt
  • PureMVC: http://puremvc.org/
  • Arp: http://osflash.org/arp
  • Cairngorm: http://labs.adobe.com/wiki/index.php/Cairngorm
标签: ,

Core Display Classes Illustration in Flash CS3

分类: Flex, Flash & AS    作者:Ray    2008年04月8日

插图为Flash CS3 的核心Display 类的继承关系的图。

  • DisplayObject: At the top of the hierarchy, this class provides the basic properties for all visual items in the display list, such as x, y, width, and height. Everything in the display list is an instance of one of the classes that extends the DisplayObject class, either directly or indirectly.
  • InteractiveObject: This class adds various properties, methods, and events that allow users to interact with display objects using the mouse and keyboard. You’ll learn more about events and how to allow users to interact with display objects.
  • DisplayObjectContainer: This class gives display objects the ability to contain other display objects, which can be manipulated using methods like addChild() and removeChild(). Other display list classes allow a specific number of child display objects. A good example is SimpleButton, which allows you to specify a different display object for each of the button states, but only DisplayObjectContainer instances allow you to have an open-ended number of child display objects.
  • Sprite: This is a new type of object available with ActionScript 3.0, and there is no equivalent in the IDE. Basically, it is like a movie clip without a timeline, so it doesn’t contain any of the timeline controlling ActionScript necessary with MovieClip instances. You can still draw into it, add new display objects to it, and code for interactivity, but it is lighter weight in memory than a movie clip. It is the best bet if you are programmatically creating interactive graphics in your applications.
  • MovieClip: This class adds the concept of frames, frame labels, and scenes, with all the properties and methods you need to query and manipulate the playhead. Note that while you can create MovieClip objects programmatically, you cannot add frames, labels, or scenes with ActionScript code.

以上说明摘录至【Foundation ActionScript 3.0 with Flash CS3 and Flex】

标签: ,

Gnash vs Flash

分类: Flex, Flash & AS    作者:Ray    2008年04月1日

Gnash?没听说过吧。不过在Linux的世界中,它可是已经大名鼎鼎了,它的作用就是在Linux的环境下实现Flash。原因非常的简单,Flash是Commercial Software,和Linux的Open Source 的概念有了一定的冲突。

Gnash 是GNU 下的一个Project,不过现在的功能还是比较弱些,只能完全兼容SWF 7.0 & Actionscript 2.0的所有功能。如果想使用Flex和Actionscript 3.0可能还需要在等待一段时间。

如果想做Windows下也尝试一下,当然也没问题,已经有编译集成的版本,可以在getgnash网站下载。跨平台可能是GNU的拿手好戏。

期待有一天我新写的Flex程序可以运行在Gnash上。

相关网址:

标签: ,

Flash Switcher (Flash开发者必备插件)

分类: Flex, Flash & AS    作者:Ray    2008年03月27日

从事Flash 开发的各位兄弟姐妹们,一定会碰到过Flash版本兼容的问题。由于用户使用了低版本的Flash,造成自己使用高版本的Flash无法正常运行,特别是Actionscript 版本还一起搅惑。为了测试客户所使用的那个版本是否正常运行还必须重复的安装多个版本的Flash。难道就没有一个简单的方法?

昨天上网时,无意中看到了Flash Switcher 这样一个Firefox的插件,以上问题都迎刃而解。只需简单的点击一下Status Bar上的Flash按钮,即可实现各种Flash版本的切换,所支持的版本从Flash 4.0 -> Flash 9.0。有兴趣的Flash Developer可以尝试安装一下,功能强大哦。

flash_switcher.gif

官方站点:http://www.sephiroth.it/weblog/archives/2006/10/flash_switcher_for_firefox.php

标签: ,

Flash Remoting and AMF

分类: Flex, Flash & AS    作者:Ray    2008年03月19日

Flash Remoting 是一种基于HTTP request/response的数据通讯技术,而AMF正是Flash Remoting所使用的二进制消息协议(Binary messaging protocol)。由于采用了二进制方式,通讯的数据量减少,从而通讯的性能也有所提高。同时AMF也是Flash Player专用协议,如果需和其它语言进行互通,则必须使用一些SDK来进行此资料的解析。

以下是AMF和其他语言的接口实现:

使用Flex获取Flash player的版本信息

分类: Flex, Flash & AS    作者:Ray    2008年03月17日

如何使用Flex来获取Flash player的信息呢:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Label text="Flash Player Version: {flash.system.Capabilities.version},
    Debug Player: {flash.system.Capabilities.isDebugger}"/>
</mx:Application>

以上例子选自”O’Reilly Press - Programming Flex2

运行结果: 

(Either JavaScript is not active or you are using an old version of Adobe Flash Player. Please install the newest Flash Player.)