OldHawk

菜地一块,欢迎拍砖
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Flex

关于Adobe Flex的使用心得
摘要:The following example shows how you can use the isBranch() method to determine if a specific node in a Tree control is a branch (folder) or leaf (item). 阅读全文

posted @ 2008-01-15 10:46 OldHawk 阅读(527) 评论(0) 推荐(0) 编辑

摘要:The following example shows how you can add custom animation and effects when displaying a tool tip in Flex 阅读全文

posted @ 2008-01-13 16:13 OldHawk 阅读(589) 评论(0) 推荐(0) 编辑

摘要:The following example shows you how you can trigger effects when the visible property changes on a Flex container or control by using the hideEffect and showEffect effects 阅读全文

posted @ 2008-01-13 16:11 OldHawk 阅读(392) 评论(0) 推荐(0) 编辑

摘要:The following example uses a resizeEffect effect along with a Resize tween effect () to create a smooth tween effect whenever the panel is resized 阅读全文

posted @ 2008-01-13 16:08 OldHawk 阅读(377) 评论(0) 推荐(0) 编辑

摘要:The following example shows how to specify a effect which gets played when an Alert control is displayed by setting the Alert control’s creationCompleteEffect style. You can also see how to embed both the normal and bold font using CSS and @font-face 阅读全文

posted @ 2008-01-13 16:03 OldHawk 阅读(10895) 评论(0) 推荐(1) 编辑

摘要:The following example shows how you can use the PopUpManager class to launch an modal Image control. 阅读全文

posted @ 2008-01-13 15:59 OldHawk 阅读(438) 评论(0) 推荐(0) 编辑

摘要:Well, I played around with it briefly this evening and it seems that you can get individual accordion headings using the Accordion class’s getHeaderAt() method, then it is just a matter of saving that reference in a variable, or applying a style directly to the returned Button reference. The example itself is pretty simple, but I’m sure the same principles apply to other styles as well 阅读全文

posted @ 2008-01-13 15:53 OldHawk 阅读(628) 评论(0) 推荐(0) 编辑

摘要:The following example shows how you can use the static UIDUtil.getUID() method to generate and retreive a unique identifier for an Object. The first time you click the Display UID button, an Alert control displays the generated UID and a string representation of the Object (yay ObjectUtil.toString()!). The second time you click the Display UID button, you’ll notice that a new parameter is added to the Object, mx_internal_uid 阅读全文

posted @ 2008-01-13 15:49 OldHawk 阅读(381) 评论(0) 推荐(1) 编辑

摘要:following example shows how you can style individual tabs in a Flex TabBar control by calling the getChildAt() method on the tab bar, and then calling setStyle() on the returned Tab reference 阅读全文

posted @ 2008-01-13 15:41 OldHawk 阅读(466) 评论(0) 推荐(0) 编辑

摘要:The following example shows how you can create a linear gradient fill for a ColumnSeries in Flex 阅读全文

posted @ 2008-01-13 15:38 OldHawk 阅读(965) 评论(0) 推荐(0) 编辑

摘要:In the following example, we look at how to add a nice animation effect with some easing to make the effect a bit more smooth 阅读全文

posted @ 2008-01-13 15:31 OldHawk 阅读(1122) 评论(1) 推荐(0) 编辑

摘要:I’ve been playing around with Flex Modules lately and thought I’d post this. It’s pretty basic, but it is kind of a “my first module” type experiment. I tried to show a few different things including: calling a module’s methods from the parent application as well as setting properties in the parent application from the loaded module 阅读全文

posted @ 2008-01-13 15:19 OldHawk 阅读(659) 评论(0) 推荐(0) 编辑

摘要:OK, I learnt this trick a few weeks ago from a co-worker. A user emailed me and asked if it was possible to embed an HTML/text file in a Flex application rather than having to load the files at runtime, similar to how you can embed images or whatnot. Not being certain, I asked the team and got this response… 阅读全文

posted @ 2008-01-13 15:10 OldHawk 阅读(496) 评论(0) 推荐(0) 编辑

摘要:Another basic little example showing how to format the text in a DateField control using the DateFormatter and the DateField control’s labelFunction property. This entry also shows the pretty basic trick of creating a separate ActionScript class file that holds the day names as constants so you don’t constantly have to think whether Monday is day 0 or day 1 (hint: it is day 1). 阅读全文

posted @ 2008-01-13 15:04 OldHawk 阅读(354) 评论(0) 推荐(0) 编辑

摘要:The following example shows how you can use the FileReference class’s browse() method to allow users to select and upload a single file to a Web server 阅读全文

posted @ 2008-01-13 14:57 OldHawk 阅读(590) 评论(1) 推荐(0) 编辑

摘要:The following example downloads a ZIP file when the user presses the Button control. You can mouse over the items in the DataGrid control’s “Type” column to see additional event information 阅读全文

posted @ 2008-01-13 14:38 OldHawk 阅读(622) 评论(0) 推荐(0) 编辑

摘要:The following example shows how you can sort an XML document by converting it into an XMLListCollection and applying a sort. You can also easily reverse the current sort by calling the SortField object’s reverse() method and refreshing the XMLListCollection object 阅读全文

posted @ 2008-01-13 14:31 OldHawk 阅读(506) 评论(0) 推荐(0) 编辑

摘要:Flash CS3 中文帮助 在线看吧,挺不错的。 阅读全文

posted @ 2008-01-12 22:31 OldHawk 阅读(402) 评论(0) 推荐(0) 编辑

摘要:FlexSpy 是一个开源的Flex 组件,这个组件很有用,它可以在运行时查看程序内各个组件的属性 阅读全文

posted @ 2008-01-11 23:08 OldHawk 阅读(1646) 评论(2) 推荐(1) 编辑

摘要:Another example of something I’ve seen lately on the Internet, so I thought I’d build it in Flex. This time I usea TitleWindow to display the status message of a login form. You can close the message by clicking the X button in the upper-right corner of the title window. Note that there is no correct login. It will display the error message every time. In a future example I’ll try and add some fancy fade in/out effects or resize effects on the error message to give it that proper “Web 2 阅读全文

posted @ 2008-01-11 22:19 OldHawk 阅读(540) 评论(0) 推荐(0) 编辑