發表文章

目前顯示的是 4月, 2009的文章

設定Flex Application FrameRate的方法

方法參考自  Flex tip: a higher frame rate even makes text entry look better   mxml 應用設定的方法 :application frameRate="60"> ActionScript 應用設定的方法 [SWF(frameRate="60")] public class MyApp extends Sprite { ... } 這篇文章也分享了一個重點,就是frame rate的高低其實對Flex內建組件的表現也有影響,更新變高其實也讓組件的回饋(ex:在TextInput打字後文字的顯示)變得更為靈敏。

用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