[flexcoders] Re: Footer row with a DataGrid
--- In flexcoders@yahoogroups.com, Guy Morton [EMAIL PROTECTED] wrote: Does anyone here have a different solution that they would recommend for some reason? Given that no-one has suggested an alternative, I think the answer to that might be No. It is possible of having a datagrid for the footer information under the one of the data table. It's simpler to handle but the behavior is not as smooth as in Alex's demo. The columns of the footer DG get aligned only after you have dropped the column bar into its new position. mx:Script ![CDATA[ private function onColumnStretch(event:DataGridEvent):void { DataGridColumn(summaryDG.columns[event.columnIndex]).width = DataGridColumn(dataDG.columns[event.columnIndex]).width; } // You may also need to run this on container resize public function alignColumns():void { for(var i:uint = 0; i dataDG.columns.length; i++) { DataGridColumn(summaryDG.columns[i]).width = ataGridColumn(dataDG.columns[i]).width; } } ]] /mx:Script mx:DataGrid id=dataDG columnStretch=onColumnStretch(event) width=100% height=100% verticalScrollPolicy=on columns={dgColumns} dataProvider={dgProvider} / mx:DataGrid id=summaryDG showHeaders=false width=100% height=25 columns={sumColumns} dataProvider={sumProvider} /
[flexcoders] Re: Alert.show - Detect when closed from another mxml component
In addition of Application.application.method(), you should be able to have in your Alert component (or the component that is aware of the Alert box and can detect a close event), something like this Application.application.dispatchEvent(new Event(MyAlertEvent.ALERT_CLOSED)) and in the other component that you want to be aware of the closed alert have Application.application.addEventListener(MyAlertEvent.ALERT_CLOSED, someMethod). More generally, the solution is to have one component dispatch and event to and another component listen to an event from an object that both components are aware of. --- In flexcoders@yahoogroups.com, sleblang [EMAIL PROTECTED] wrote: Thanks for all the suggestions. I am sure one if not all of them would work. Just out of curiosity, in Flash, you can set a listener for the Stage to receive via capture or bubble, for example, mouseclicks (Stage.addEventListener(MouseEvent.CLICK,clickHandler)). Is there no way to do this in Flex with the Alert component and the Stage (Application.application?)?
[flexcoders] Re: Is It possible to use ressources in a CustomPreloader
On this specific question: Is It possible to use ressources in a CustomPreloader You will find an answer in that excellent presentation by Michael Labriola a href=http://blogs.digitalprimates.net/codeslinger/index.cfm? mode=entryentry=923040ED-FFF8-98FF-6D01B7FE243E8FC9Dense and Hot @ webDu by Michael Labriola/a Slides 23-25, in particlar: Initialize - create a new Preloader and listens to both its progress and done event - preloaded added to the SystemManager's children - RSLs info gathered - ResourceManager, FontRegistry, StyleManagers are registered with the application so that they will be ready and available before they are needed. - framework looks for any resource modules specified in the URL or flashvars that might also need to be loaded before frame 2 - preloaded initialized and sent on its way. Preloader - the preloader 'initialize' method facilitates loading any RSLs used by your application. - then create an instance of its display class. By default this is the DownloadProgressBar, however, you can specify a different class if you want to change the preloading display. - preloader starts a process of polling and updating the display until the RSLs and Frame2 are loaded. It looks like RSL are made ready to use before the application is shown but after the the Preloader is created.
[flexcoders] Re: Refresh Flex Navigator's Projects in Flex Builder
On Windows, press F5. This refreshes the files in the active project the same way as F5 refresh your File Explorer. --- In flexcoders@yahoogroups.com, itdanny2002 [EMAIL PROTECTED] wrote: Dear All, How to refresh all projects in flex builder ? I delete some files in corresponding directories. Those files are not used. Anyhow, a blue folder appear, I can't remove it. Is there any files to keep these project information ?
[flexcoders] Re: Complete event error for Image control within Repeater
Humm, correction on my previous post. Listening to an image component should be possible. This: http://livedocs.adobe.com/flex/3/langref/mx/controls/Image.html#eventSummary confirms that mx.controls. Image components dispatch a creationComplete event. Livedocs http://livedocs.adobe.com/flex/3/langref/mx/core/UIComponent.html#event:creationComplete tell me that the the type of creationComplete is: mx.events.FlexEvent.CREATION_COMPLETE So you need to make sure the corresponding class are imported in your AS3 class. import mx.events.FlexEvent
[flexcoders] Re: Complete event error for Image control within Repeater
Check out this presentation: http://www.ananth.info/files/54923-48191/FlexEventDataManagement10April2007.ppt slide 10 * Every object in the display list can trace its class inheritance to DisplayObject class * The DisplayObject class inherits from EventDispatcher * EventDispatcher is the base class that provides core event model functionality for every object on the display list * Because DisplayObject inherits from EventDispatcher, every component on the display list will have access to properties and methods of event model (defined in EventDispatcher) Actionscript classes don't inherit from EventDispatcher unless they explicitly extend a DisplayObject Three approaches: * Have your actionscript class inherit from a display object * Have your actionscript class implement IEventDispatcher (http://livedocs.adobe.com/flex/2/langref/flash/events/IEventDispatcher.html) * In the object you want to listen to, add a new property that you instantiate as a dispatcher object. Listen to that dispatcher object (img.dispatcher.addEventListener -- you will need to add more than this). This solution is handy in some scenario but doesn't seem any practical for listening to a built-in Flex Image object. I got the following error: TypeError: Error #1006: addEventListener is not a function. Any lead? Thanks.
[flexcoders] Re: extend titlewindow ?
i am looking to add a minimize button. I was trying to do something similar today with a Panel. I came across these demos: http://blog.olivermerk.ca/index.cfm/2007/6/17/Flex-Adding-Icons-to-the-Panel http://yussi.net/tt/97 http://blog.flexexamples.com/2007/08/02/adding-icons-to-panel-containers/ http://jwopitz.wordpress.com/2007/03/21/extending-mxpanel-a-new-approach-maybe/ http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=9184 http://jwopitz-lib.googlecode.com/svn/examples/examples/PodApplication.html You should be able to add children to the titleBar of the titleWindow the same way as explained in these examples.
[flexcoders] Re: Flex Books - Detailed/Nitty-Gritty
Note that there is a book called AdvancED Flex Application Development: Building Rich Media X http://www.friendsofed.com/book.html?isbn=1590598962 I skimmed through at the bookstore, reading a few pages here and there. In my opinion, it didn't deliver on the promise of the title. It didn't offer much more than what can be learned by using free on-line resources. I ended up buying Flex Cookbook 3 (+1 from me as well). Another book I would recommend for advanced user is Flex: training from the source. They talk you through from start to finish on how to build a complex on-line store application. I read the Flex 2 version about 8 months ago. It has now been updated to a Flex 3 version (http://www.amazon.com/Adobe-Flex-3-Training-Source/dp/0321529189).