OldHawk

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

2008年1月13日

摘要: 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 阅读(590) 评论(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 阅读(393) 评论(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 阅读(378) 评论(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 阅读(10896) 评论(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 阅读(439) 评论(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 阅读(629) 评论(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 阅读(382) 评论(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 阅读(467) 评论(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 阅读(966) 评论(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 阅读(1123) 评论(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 阅读(497) 评论(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 阅读(355) 评论(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 阅读(591) 评论(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 阅读(623) 评论(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 阅读(507) 评论(0) 推荐(0) 编辑