用Flash開發Flex組件的方法

一搜尋就找到一篇Flash Evanglist寫的不錯的教學Tutorial: The Flash and Flex marriage,對我很有幫助。

個人筆記(ps:只記不知道的):
  • When you’ve done that, go ahead and double click on the MyVideoPlayer movieclip. Create a new layer and draw a rectangle with the same size as your FLVPlayback component. Convert this in to a movieclip and specify it’s instance name to “boundingBox”. Once we use our component in Flex, it will not be visible. Flex will use this “boundingBox” movieclip to determine how big your component actually is
  • If you’ve done that, we also need to add the player skin we’re using. This goes in to the src folder. So go ahead and drag “SkinOverAllNoFullNoCaption.swf” to the src folder  (play的skin的access路徑是跟著主swf的) of your Flex project.
文章最後可以找到幾則相關的教學,也不錯
Video tutorial: Create Flex container components with Flash CS4

留言

這個網誌中的熱門文章

3dmax的biped如何使用CMU的免費motion capture資源

如何在AS3 project中使用Flex的mx.utils類別庫?

如何把3dmax的physique轉成skin