Re: [flexcoders] Re: Future Scope of Flex
On 8/16/2014 6:35 PM, Scott Fanetti scott.fane...@gmail.com [flexcoders] wrote: Luckily - js is almost exactly like Actionscript. Anybody that is good at AS can write JS in no time. If you don't mind working in a language that: a) Doesn't have type declarations for variables, arguments, and function return values b) Has no built-in syntax for classes and objects. You have to build a template object and assign all the functions as attributes of the template. c) Doesn't have the enormous library of built-in classes that comes with AS2 or AS3.
Re: [flexcoders] Original application files lost
On 2/19/2014 10:59 AM, Alex Harui wrote: I would suggest starting from both ends and working towards the middle. If you use the -keep-generated-actionscript option in the MXMLC compiler, it should create a folder called generated in the output folder. Comparing that to what the decompiler found for those same files might help you figure out what modifications need to go into whatever versions of the source you currently have. How do you turn on -keep-generated-actionscript using ant? I think that would help me a lot in debugging my output -- once I get it to compile, that is.
[flexcoders] Accessing an XML attribute using AS3 in Flex builder 4
Hi. I'm having a little trouble getting the value of an attribute in an XML string. I am trying to get the value of 'url' out of the following XML: media:thumbnail width=66 height=49 url=http://newsimg.bbc.co.uk/media/images/46491000/jpg/_46491622_mcarthur_pa.jpg / I am using a HTTPService request to get the feed as follows: s:HTTPService id=feedStream url=http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/uk/rss.xml; result=feedStream_resultHandler(event) / I am then querying the returned XML as follows: protected function feedStream_resultHandler(e:ResultEvent):void { var myX:String = e.result.rss.channel.item[0].media_thumbna...@url; trace(myX); //dpac = e.result.feed.entry as ArrayCollection; dpac = e.result.rss.channel.item as ArrayCollection; trace(dpac[0].title); // returns the title } I get the following error: TypeError: Error #1010: A term is undefined and has no properties. at Flex4CustomComponent/feedStream_resultHandler()[/Users/barrygee/Documents/Adobe Flash Builder Beta/Flex4CustomComponent/src/Flex4CustomComponent.mxml:38] at Flex4CustomComponent/__feedStream_result()[/Users/barrygee/Documents/Adobe Flash Builder Beta/Flex4CustomComponent/src/Flex4CustomComponent.mxml:12] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\beta1\frameworks\projects\rpc\src\mx\rpc\AbstractOperation.as:249] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\beta1\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:318] at mx.rpc::Responder/result()[E:\dev\beta1\frameworks\projects\rpc\src\mx\rpc\Responder.as:58] at mx.rpc::AsyncRequest/acknowledge()[E:\dev\beta1\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:84] at DirectHTTPMessageResponder/completeHandler()[E:\dev\beta1\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:446] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete() It looks like the attribute is'nt being found even though it does exist. All suggestions very welcome. Thanks Barry.
Re: [flexcoders] ActionScript Project in AIR
Hi John. Im sure there are other ways of doing this but a simple solution would be to download the Flash Builder 4 beta import your project and then right click on the project in the lib and select change project to - and select desktop project. Worked for me. barry. John McCormack wrote: Hi List, I have an ActionScript AS3 project that I build in Flex Builder 3 and want to convert it to AIR I started a new desktop project but it is built as an alternative to mxml format. The classes and assets have been imported all the project. Creating an instance of my original class inside !CDATA[ ] doesn't work, neither does pasting the code into !CATA block or setting my original class as the default. How do I get my original main class to be called from the mxml AIR file? Is anyone doing this or are you using mxml projects in the first place? John
[flexcoders] mx:VideoDisplay /
Hi all. I am putting together a very simple webcam app. In Flex 3 I would have used the mx:VideoDisplay / component, however in Flex 4 this doesnt seem to be present, or at least not in Flash Builder 4 Beta. Can anyone tell me what I should be using instead of VideoDisplay in order to display a webcam feed. Many thanks. Barry.
[flexcoders] TileList component order
Hi. I have a TileList component in my app, when i had new items to the tile list they get added to the bottom of the display, so when new items are added the user is required to scroll down the list to see the latest images. Can anyone tell me how to make the tile list add new items to the top so the most recent image is at the top. The tilelist i am using is 1 column wide. thanks barry.
[flexcoders] Capturing URL Requests in AIR application (HTML/HTMLLoader/HTMLHost)
Hi, This post is quite lengthy, but I really need to explain in detail what it is I'm trying to achieve here. I am developing an AIR application that has an mx.controls.HTML component as the only child; in essence the application is a custom web browser in AIR. I have created a custom HTMLHost component that extends the flash.html.HTMLHost class per the Adobe documentation, so that my application can intercept particular JavaScript calls; i.e. (AS)createWindow() - (JS)window.open(). The main HTML component has its htmlHost property set to an instance of this CustomHTMLHost class, and every new window that is created via the createWindow() method also has its htmlHost set to an instance of the CustomHTMLHost class. In my CustomHTMLHost class, I also override the updateLocation(locationURL:String) method, enabling me to inspect the new URL that is being set on either the main HTML component, or any popup windows that are created. The web application I am loading into the main HTML component allows users to export reports in a number of formats (HTML, PDF, XLS, CSV, TXT) which can either be opened or downloaded when using a conventional browser (IE/FF/Safari). When the user exports a report, a popup window is displayed (which works fine with my application because of the overridden createWindow() method in the CutsomHTMLHost class). After the user clicks the final Export button on a PDF/HTML/TXT export, everything works fine and the report results are displayed as the AIR runtime can handle these files. However when the user exports to XLS/CSV nothing happens, which is expected because the AIR runtime does not support those file types. I intend to create a file download manager to handle this so that the user can just save the files to their local file system, and this is where I'm hitting a brick wall. I am able to capture the URL that is being requested to get these latter export types from the overridden updateLocation(locationURL:String) method in the CustomHTMLHost class, but the URL alone is not enough information for the AIR application to send to the web application that provides the report exporting functionality. I need to get access to the rest of the header information (such as POST variables, and also the cookie information) that is sent in the HTTP request when the final Export button is clicked by the user to ensure I am getting a valid response from the web application. So, to finally get to my main question... is there any way to intercept the URLRequests that are created and invoked from a HTML/HTMLHost component? What I really want to be able to do is to inspect the HTTP responses, so that I can determine content of the HTTP response i.e. Content-Disposition: filename*=Report.xls; Content-Type: application/vnd.ms-excel; charset=UnicodeLittle With this information I can let my AIR application display a save file dialog or something along those lines. Sorry for the long post, and any help would be appreciated as this is a critical part of my AIR application, and I REALLY need to figure this out. I understand that the approach I am proposing may not even be possible, as I have been doing a number of things to try and solve it. One of which was extending the HTMLLoader class and overriding the load(urlRequestToLoad:URLRequest) method to I could intercept all URLRequests, but I couldn't even get the HTML component that used this class as its htmlLoader property to load any HTML content. Thanks in advance, Barry
[flexcoders] Re: Capturing URL Requests in AIR application (HTML/HTMLLoader/HTMLHost)
Yes your kind of right, what i think i really need to do is extend the HTMLLoader class so that i can override the load(urlRequestToLoad:URLRequest) method. I have tried this and get similar results to the user from this post (http://tech.groups.yahoo.com/group/apollocoders/message/2900), the new extended HTMLLoader is not visible on the stage. Is it even possible to extend the HTMLLoader class? --- In flexcoders@yahoogroups.com, Wesley Acheson wesley.ache...@... wrote: Is it not the responseHeaders that you need? on the following object http://livedocs.adobe.com/flex/3/langref/flash/events/HTTPStatusEvent.html Regards, Wesley Acheson On Wed, Aug 19, 2009 at 12:54 PM, Barry Evans bazza...@... wrote: Hi, This post is quite lengthy, but I really need to explain in detail what it is I'm trying to achieve here. I am developing an AIR application that has an mx.controls.HTML component as the only child; in essence the application is a custom web browser in AIR. I have created a custom HTMLHost component that extends the flash.html.HTMLHost class per the Adobe documentation, so that my application can intercept particular JavaScript calls; i.e. (AS)createWindow() - (JS)window.open(). The main HTML component has its htmlHost property set to an instance of this CustomHTMLHost class, and every new window that is created via the createWindow() method also has its htmlHost set to an instance of the CustomHTMLHost class. In my CustomHTMLHost class, I also override the updateLocation(locationURL:String) method, enabling me to inspect the new URL that is being set on either the main HTML component, or any popup windows that are created. The web application I am loading into the main HTML component allows users to export reports in a number of formats (HTML, PDF, XLS, CSV, TXT) which can either be opened or downloaded when using a conventional browser (IE/FF/Safari). When the user exports a report, a popup window is displayed (which works fine with my application because of the overridden createWindow() method in the CutsomHTMLHost class). After the user clicks the final Export button on a PDF/HTML/TXT export, everything works fine and the report results are displayed as the AIR runtime can handle these files. However when the user exports to XLS/CSV nothing happens, which is expected because the AIR runtime does not support those file types. I intend to create a file download manager to handle this so that the user can just save the files to their local file system, and this is where I'm hitting a brick wall. I am able to capture the URL that is being requested to get these latter export types from the overridden updateLocation(locationURL:String) method in the CustomHTMLHost class, but the URL alone is not enough information for the AIR application to send to the web application that provides the report exporting functionality. I need to get access to the rest of the header information (such as POST variables, and also the cookie information) that is sent in the HTTP request when the final Export button is clicked by the user to ensure I am getting a valid response from the web application. So, to finally get to my main question... is there any way to intercept the URLRequests that are created and invoked from a HTML/HTMLHost component? What I really want to be able to do is to inspect the HTTP responses, so that I can determine content of the HTTP response i.e. Content-Disposition: filename*=Report.xls; Content-Type: application/vnd.ms-excel; charset=UnicodeLittle With this information I can let my AIR application display a save file dialog or something along those lines. Sorry for the long post, and any help would be appreciated as this is a critical part of my AIR application, and I REALLY need to figure this out. I understand that the approach I am proposing may not even be possible, as I have been doing a number of things to try and solve it. One of which was extending the HTMLLoader class and overriding the load(urlRequestToLoad:URLRequest) method to I could intercept all URLRequests, but I couldn't even get the HTML component that used this class as its htmlLoader property to load any HTML content. Thanks in advance, Barry -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] MouseCursor Change Event?
Hi, Does anyone know if there is a way to detect when the mouse cursor changes? I am trying to detect when a link is rolled over in the text area component and listening to the mouse seems to be the only way I could do it. Any help or pointers much appreciated.
[flexcoders] Can not select itemrenderer
Hi unable to select the following itemRenderer when used in a list. Any advice would be much appreciated. //-- mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalScrollPolicy=off mx:Script ![CDATA[ import com.pbsmedia.kanpeki.domain.calEvent.CalEventType; [Bindable] private var calEventType:CalEventType; override public function set data(value:Object):void { if(value != null) { calEventType = value as CalEventType; colorBar.setStyle(backgroundColor, calEventType.eventColor); } } ]] /mx:Script mx:Image source={calEventType.icon} / mx:Label text={calEventType.name} selectable=true/ mx:HBox height=100% width=100% horizontalAlign=right paddingRight=20 mx:Box id=colorBar width=50 height=100% /mx:Box // The renderer is set up on creation complete of the list's parent component as follows. private function cc():void{ if(_itemRenderer != null) { lt.itemRenderer = getItemRendererFactory(); } } private function getItemRendererFactory():ClassFactory { return new ClassFactory(_itemRenderer); } I can't for the life of me figure out why the list is not selectable if I use this renderer. thanks,
Re: [flexcoders] Re: Flex nested tree get data from mysql and php
Hi. First of all my apoligise if this really isnt what your looking for, as I have deleted the previous posts so havent read the whole discusion. Hopefully this may help though. I have created a tree component that loads in an xml structure, the xml structure can change i.e. new levesl edded / removed and this is reflected in the tree. I think this is what your looking for but like i say i may be totally wrong. I have attached some code below. ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=360 height=500 showFlexChrome=false applicationComplete=init() creationComplete=categoriesXML.send() mx:HTTPService id=categoriesXML url=data/categories1.xml resultFormat=e4x / mx:Script ![CDATA[ private var selectedItem:String; public function treeChangeEvent(event:Event):void { if (event.currenttarget.selectedit...@label) { selectedItem = Selected Item + event.currenttarget.selectedit...@label; trace(selectedItem); } } ]] /mx:Script mx:Canvas id=categoriesListCanvas height=333 width=338 x=10 y=112 mx:Tree id=categoriesTree change=treeChangeEvent(event); dataProvider={categoriesXML.lastResult.category} labelField=@label x=0 y=0 width=338 height=333 backgroundColor=#11 backgroundAlpha=0.9 borderColor=#00 color=#FF /mx:Tree /mx:Canvas /mx:WindowedApplication // categories1.xml -- ?xml version=1.0 encoding=utf-8? categories category category=Adobe AIR/ category category=Adobe Flex category category=1 category category=1a/ category category=1b/ category category=1c/ category category=1d/ category category=1e/ category category=1f/ /category category category=2/ category category=3/ category category=4/ category category=5 category category=5a/ category category=5b/ category category=5c/ category category=5d/ category category=5e/ category category=5f/ /category category category=6/ /category category category=AS3/ category category=PHP/ category category=FlashLite category category=FlashLitea/ category category=FlashLiteb/ category category=FlashLitec/ category category=FlashLited/ category category=FlashLitee/ category category=FlashLitef/ /category category category=Other/ /categories Barry. Amy wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, timgerr tgallag...@... wrote: Amy, as always, you rock, that url was a good read. My problem is I am not sure how many children I will have or what the structure will look like. I am doing a tree so I can have n number of nodes or children, and I am not sure how to build the return object/array. Your app will probably perform better if you don't try to build the whole tree at once. But you might want to google on recursion. Essentially, the principle is to use a function that works on an object in such a way that if the object has children, the function will call itself again for each child. That's not as difficult as it sounds, once you get your head around it--you just have to trust the recursion to do its thing and not force it. Probably someone has even posted some recursive PHP examples. Another way to approach it is to use the composite pattern and just populate the first level of objects, then once each object is instantiated it will start pulling down its own children and so on. This is sort of how I handle it, but I didn't make it where that always happens automatically so that if those resources are needed for something else the process can be interrupted. Oh, and one last thing...if your database technology isn't set in stone, you might want to consider using SQL Server, because Shape queries are made for this. AFAIK, other databases don't have anything that does this quite so nicely. HTH; Amy
Re: [flexcoders] application structure
Hi Tom. I am in exactly the same situation as yourself. I am farely new to flex and have now found myself at a stage where I want to begin developing larger apps that can scale. From the reading I have done around the topic and from what I have heard others saying then Pure MVC is a good option to take. My understanding is that Cairgorm is very flex specific where as Pure MVC is not ( please correct me if im wrong ) it woudl sound sensible to then go for the Cairgorm option. However I believe Cairgrom is much more difficult to get your head around so decided not to try and go straight for Pure MVC. Just another option for ya. Hope that helps. Barry. Jules Suggate wrote: Hi Tom, You've hit on one of the classic anti-patterns of Flex programming: Application.application.blah type stuff. While this is regrettably somewhat 'normal', that doesn't mean it's ok :) As you probably have guessed, it leads to code that is really hard to change later on as it is all tangled up with itself. The solution is to use one of the application patterns that have been studied by the GUI programming community in general (not just Flex programmers) ... such as MVC (Model-View-Controller). Martin Fowler is one of the canonical sources on this stuff: http://martinfowler.com/eaaDev/uiArchs.html http://martinfowler.com/eaaDev/uiArchs.html Mate, Parsley or Cairngorm are open-source Flex frameworks that implement the shell of one or more GUI patterns to save us all re-inventing the wheel. Realistically, most people learn the patterns by using one of these frameworks or their cousins (there are more, I'm just giving a few that are currently flavour of the month). Cairngorm has been getting a bad rap lately due to testability of the resulting application (or lack thereof), but it's deeply embedded in the Flash community (for better or worse). Martin Fowler et al will give you an academic understanding, introduce you to some code (Martin Fowler uses C# WinForms), explain the finer points and describe several variations that you may or may not find interesting. You've bitten off quite a large topic with that innocuous question ;-) Jules On Tue, Dec 2, 2008 at 23:56, tom s tcs2...@gmail.com mailto:tcs2201%40gmail.com wrote: Hi, I'm writing my first flex app. So far it all works, but I'm getting to the point where I need to start structuring it, for ease of further development. Right now I simply have many functions defined within the script tag within the application. I'm now thinking through my options for structuring this better. I'm not asking for *specific* structuring recomendations, as I know that would be imposisble w/o you knowing the specifics of what I'm doing. What I'm looking for is a good place to read about the different options, so I can learn about them. Preferable free online, or in Safari Books Online. To be clear: when I say structural options I mean things like: a) having all the code in the script b) putting the code in a seperate .as and point script source= at it (I know this is very similar to (a) ) c) using static methods in a 'static' class d) creating classes to fully OOize the code e) something else I dont yet know about... I'm reading 'Advanced Action Script 3 with Design Patterns', which I hope will help, but I would like to have some flex specific knowledge also, so that I can see examples of how to allow objects outside the application to access those defined by mxml within the application (like buttons). I'm concerned that will end up with a lot of Application.application.foo type code - is that 'normal'? I'm hoping this makes enough sense... thanks tom
Re: [flexcoders] AIR
Hear is a good starting point. http://www.adobe.com/devnet/air/flex/ Barry. GYANPRAKASH PANDEY wrote: Hi, I'm new to AIR. I've installed Flex builder 3 and AIR set up provided by Adobe. I know flex, but i dont kno how to interact with AIR for developing desktop ria. I've to develop desktop RIA for billing. Kindly guide me to same. thnx in advance regards, gyanprakash pandey Add more friends to your messenger and enjoy! Invite them now. http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/
Re: [flexcoders] Re: How to get image data and save it?
any chance of getting that code too? its a problem im trying to fgure out too. thanks Barry. Cato Paus wrote: I have sent it to you on your [EMAIL PROTECTED] mailto:markflex2007%40yahoo.com with all the source code.. or do you use a other email? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, markflex2007 [EMAIL PROTECTED] wrote: Hi, I develop an AIR application. I use file browser to select a image file and I want to get the image data and save it to database so other people can see the image by reading the image data in database. I can not save the imageFile.url to database because other people do not have the image in their computer.I need save the real data of the image but I do not have a idea how to get it. Thanks Mark PS: The following is part of source code private function loadImage():void { var imagesFilter:FileFilter = new FileFilter(Images, *.jpg;*.gif;*.png); imageFile = new File(); imageFile.browseForOpen(Select an Image, [imagesFilter]); imageFile.addEventListener(Event.SELECT, imageSelected); } private function imageSelected(event:Event):void { imageHolder.source = imageFile.url; }
[flexcoders] Re: Stopping a custom component stealing focus in a datagrid
Nothing, I'm just setting the background color of the box via set data(). Hmmm... --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Box shouldn't steal focus. What's inside the box? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Barry Sent: Monday, June 30, 2008 8:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Stopping a custom component stealing focus in a datagrid Hi, I have a custom mxml component based on Box. When I use it as a renderer in a datagrid I lose use of the arrow keys for the datagrid. Does anyone know how to stop the renderer stealing focus? Any help much appreciated Barry
[flexcoders] Stopping a custom component stealing focus in a datagrid
Hi, I have a custom mxml component based on Box. When I use it as a renderer in a datagrid I lose use of the arrow keys for the datagrid. Does anyone know how to stop the renderer stealing focus? Any help much appreciated Barry
[flexcoders] Re: Datagrid Weirdness - Lose arrow key functionality
It's just a basic mxml component based on box. Am I better doing this as a custom component in Actionscript? again thanks. ?xml version=1.0 encoding=utf-8? mx:Box xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% backgroundColor={bgColor} mx:Script ![CDATA[ import com.pbsmedia.ccAdmin.vo.ContactVO; private var _contact:ContactVO; [Bindable] private var bgColor:int = BASE_COLOR; private static const INACTIVE_COLOR:int = 0xcf19b3; private static const NO_CALL_COLOR:int= 0xFF; private static const APPOINTMENT_MADE_COLOR:int = 0x1800ff; private static const BASE_COLOR:int = 0xFF override public function set data(value:Object):void{ if(value != null){ this._contact = value as ContactVO; if(_contact.ContactInactive == 1){ bgColor = INACTIVE_COLOR; this.toolTip = Contact Inactive }else if(_contact.ContactNC == 1){ bgColor = NO_CALL_COLOR; this.toolTip = Do not call }else if(_contact.ContactAppointment == 1){ bgColor = APPOINTMENT_MADE_COLOR; this.toolTip = Appointment made }else{ bgColor = BASE_COLOR; this.toolTip = null}}} ]] /mx:Script /mx:Box --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: What does the renderer look like? Why does it need focus? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Barry Sent: Friday, June 27, 2008 4:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Datagrid Weirdness - Lose arrow key functionality Thanks Alex, Any idea how to stop that happening? I've set the dataColumn's enabled property to false hoping that would do it but have had no joy. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: If you renderer steals focus, DG arrows will stop working. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Barry Sent: Friday, June 27, 2008 5:34 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Datagrid Weirdness - Lose arrow key functionality Hi, Can anyone help me out here? I have a datagrid which when using the up and down arrow keys changed the selected index of the grid. All normal there. However, when I add an itemRenderer to one of the dataGrid Columns, I lose that functionality. mx:DataGrid x=0 y=40 width=100% height=100% id=lisDG dataProvider={model.contactObjects} change=dataGridClick(event) mx:columns mx:DataGridColumn width=20 itemRenderer=com.pbsmedia.ccAdmin.comps.StatusRenderer editable=false/ mx:DataGridColumn width=40 sortDescending=true sortable=true sortCompareFunction=Sorts.compareRegDate headerText=Reg Date labelFunction=Sorts.doRegDateLabel/ mx:DataGridColumn width=40 sortable=true headerText=Associate dataField=ContactAssociate/ mx:DataGridColumn width=100 sortable=true headerText=Name dataField=ContactName / mx:DataGridColumn width=100 sortable=true headerText=Company dataField=ContactCompanyName / mx:DataGridColumn width=40 sortable=true sortCompareFunction=Sorts.compareNextCall headerText=Next Call labelFunction=doNextCallLabel/ /mx:columns /mx:DataGrid Any help much appreciated, Barry
[flexcoders] Datagrid Weirdness - Lose arrow key functionality
Hi, Can anyone help me out here? I have a datagrid which when using the up and down arrow keys changed the selected index of the grid. All normal there. However, when I add an itemRenderer to one of the dataGrid Columns, I lose that functionality. mx:DataGrid x=0 y=40 width=100% height=100% id=lisDG dataProvider={model.contactObjects} change=dataGridClick(event) mx:columns mx:DataGridColumn width=20 itemRenderer=com.pbsmedia.ccAdmin.comps.StatusRenderer editable=false/ mx:DataGridColumn width=40 sortDescending=true sortable=true sortCompareFunction=Sorts.compareRegDate headerText=Reg Date labelFunction=Sorts.doRegDateLabel/ mx:DataGridColumn width=40 sortable=true headerText=Associate dataField=ContactAssociate/ mx:DataGridColumn width=100 sortable=true headerText=Name dataField=ContactName / mx:DataGridColumn width=100 sortable=true headerText=Company dataField=ContactCompanyName / mx:DataGridColumn width=40 sortable=true sortCompareFunction=Sorts.compareNextCall headerText=Next Call labelFunction=doNextCallLabel/ /mx:columns /mx:DataGrid Any help much appreciated, Barry
[flexcoders] Re: Datagrid Weirdness - Lose arrow key functionality
Thanks Alex, Any idea how to stop that happening? I've set the dataColumn's enabled property to false hoping that would do it but have had no joy. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: If you renderer steals focus, DG arrows will stop working. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Barry Sent: Friday, June 27, 2008 5:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid Weirdness - Lose arrow key functionality Hi, Can anyone help me out here? I have a datagrid which when using the up and down arrow keys changed the selected index of the grid. All normal there. However, when I add an itemRenderer to one of the dataGrid Columns, I lose that functionality. mx:DataGrid x=0 y=40 width=100% height=100% id=lisDG dataProvider={model.contactObjects} change=dataGridClick(event) mx:columns mx:DataGridColumn width=20 itemRenderer=com.pbsmedia.ccAdmin.comps.StatusRenderer editable=false/ mx:DataGridColumn width=40 sortDescending=true sortable=true sortCompareFunction=Sorts.compareRegDate headerText=Reg Date labelFunction=Sorts.doRegDateLabel/ mx:DataGridColumn width=40 sortable=true headerText=Associate dataField=ContactAssociate/ mx:DataGridColumn width=100 sortable=true headerText=Name dataField=ContactName / mx:DataGridColumn width=100 sortable=true headerText=Company dataField=ContactCompanyName / mx:DataGridColumn width=40 sortable=true sortCompareFunction=Sorts.compareNextCall headerText=Next Call labelFunction=doNextCallLabel/ /mx:columns /mx:DataGrid Any help much appreciated, Barry
[flexcoders] Flex Builder accessibility problem
Hi, don't know where to ask this question but I thought I'd give it a try here. Due to my bad eyesight I run my computer in High Contrast mode. Flex Builder is great mostly however I can not find where to set the background color for popups - ie Code Assist and the Outliner pop (Ctrl+O). As it stands I can't see any text. Any help muchly appreciated. Barry
[flexcoders] Re: Flex Builder accessibility problem
Thanks Matt, that helps a lot. I'll check it out. Much appreciated, Barry --- In flexcoders@yahoogroups.com, Matt Morgan-May [EMAIL PROTECTED] wrote: Hi Barry, What you¹re describing is something we inherit from the Eclipse environment that Flex Builder is based on, and there was a bug filed on Eclipse that matches your problem. https://bugs.eclipse.org/bugs/show_bug.cgi?id=194312 It appears there¹s a (somewhat complicated) fix in there, if you want to try that. Otherwise, the next version of the Eclipse C/C++ Development Toolkit (CDT 5.0) has fixed it, but to go that route, you¹ll have to wait for that release, install Eclipse, and then install FB as an Eclipse plugin. Hope this helps, m Matt May Accessibility Engineer, Adobe Systems http://adobe.com/accessibility On 6/5/08 3:24 AM, Barry [EMAIL PROTECTED] wrote: Hi, don't know where to ask this question but I thought I'd give it a try here. Due to my bad eyesight I run my computer in High Contrast mode. Flex Builder is great mostly however I can not find where to set the background color for popups - ie Code Assist and the Outliner pop (Ctrl+O). As it stands I can't see any text. Any help muchly appreciated. Barry
[flexcoders] Re: Dual DataService components causing problems
Thanks for that Seth, its definately a step in the right direction. I have now removed the fds.swc from the module project's build path but i am getting a few compilation errors on VO classes i have defined to be used in the managed collection of objects... 1045: Interface IManaged was not found I think this is why i had to add the fds.swc to the project in the first place. Thanks again for your suggestions and if you can think of anything else i would appreciate it. Barry --- In flexcoders@yahoogroups.com, Seth Hodgson [EMAIL PROTECTED] wrote: Hi Barry, You need to only link the classes defined in fds.swc into your root application swf, and your modules need to rely on those class definitions rather than each of them individually containing duplicate class defs from fds.swc. I'm not a modules guru, but take a look at the 'Controlling module size' section here: http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwh elp.htm?context=LiveDocs_Book_Partsfile=modular_083_4.html Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Barry Evans Sent: Friday, May 02, 2008 10:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Dual DataService components causing problems Hi, i have developed a modularised application in Flex 2.0.1 (hotfix 1) and im having some problems with the DataService tag. I have a module in the application's side bar which fills a collection with managed objects, and i also have a module in the main application area which fills a collection with managed objects. Each module uses different assembler classes/destinations configured in the data-management-config.xml file. When i perform a fill on the each collection, and then attempt to perform another fill on the side bar module, i keep getting errora from the flash player log file. The collection in the main application area always refreshes without any problems The error from flex... TypeError: Error #1034: Type Coercion failed: cannot convert mx.data.messages::[EMAIL PROTECTED] to mx.data.messages.SequencedMessage. at mx.data::DataList/http://www.adobe.com/2006/flex/mx/internal::processS equenceResult() [C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\data\DataLi st.as:1760] at DataListRequestResponder/result() [C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\data\Concre teDataService.as:5857] at mx.rpc::AsyncRequest/acknowledge() [E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc\AsyncRequest.as:81] at NetConnectionMessageResponder/resultHandler() [E:\dev\flex_201_borneo\sdk\frameworks\mx\messaging\channels\NetConnec tionChannel.as:427] at mx.messaging::MessageResponder/result() [E:\dev\flex_201_borneo\sdk\frameworks\mx\messaging\MessageResponder.a s:202] Any help would be greatly appreciated as i am hitting a brick wall, everything was working before, but i can't figure out what changes i might have made to cause these issues. Barry
[flexcoders] Re: Dual DataService components causing problems
Ok i managed to get the problem sorted. All i had to do was create a dummy instance of the mx.data.messages.SequencedMessage class in the main application. Previously, I had to do this will alot of my own AS classes (and a few from the Flex framework), but now i am using an RSL (where most of the classes exist) it was not necessary to create any of the dummy instances of the classes... or so i thought! Well that seems to be the problem solved, thanks for your pointers Seth/Gregor. Barry --- In flexcoders@yahoogroups.com, Barry Evans [EMAIL PROTECTED] wrote: Hi, i have developed a modularised application in Flex 2.0.1 (hotfix 1) and im having some problems with the DataService tag. I have a module in the application's side bar which fills a collection with managed objects, and i also have a module in the main application area which fills a collection with managed objects. Each module uses different assembler classes/destinations configured in the data-management-config.xml file. When i perform a fill on the each collection, and then attempt to perform another fill on the side bar module, i keep getting errora from the flash player log file. The collection in the main application area always refreshes without any problems The error from flex... TypeError: Error #1034: Type Coercion failed: cannot convert mx.data.messages::[EMAIL PROTECTED] to mx.data.messages.SequencedMessage. at mx.data::DataList/http://www.adobe.com/2006/flex/mx/internal::processS equenceResult() [C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\data\DataLi st.as:1760] at DataListRequestResponder/result() [C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\data\Concre teDataService.as:5857] at mx.rpc::AsyncRequest/acknowledge() [E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc\AsyncRequest.as:81] at NetConnectionMessageResponder/resultHandler() [E:\dev\flex_201_borneo\sdk\frameworks\mx\messaging\channels\NetConnec tionChannel.as:427] at mx.messaging::MessageResponder/result() [E:\dev\flex_201_borneo\sdk\frameworks\mx\messaging\MessageResponder.a s:202] Any help would be greatly appreciated as i am hitting a brick wall, everything was working before, but i can't figure out what changes i might have made to cause these issues. Barry
[flexcoders] Dual DataService components causing problems
Hi, i have developed a modularised application in Flex 2.0.1 (hotfix 1) and im having some problems with the DataService tag. I have a module in the application's side bar which fills a collection with managed objects, and i also have a module in the main application area which fills a collection with managed objects. Each module uses different assembler classes/destinations configured in the data-management-config.xml file. When i perform a fill on the each collection, and then attempt to perform another fill on the side bar module, i keep getting errora from the flash player log file. The collection in the main application area always refreshes without any problems The error from flex... TypeError: Error #1034: Type Coercion failed: cannot convert mx.data.messages::[EMAIL PROTECTED] to mx.data.messages.SequencedMessage. at mx.data::DataList/http://www.adobe.com/2006/flex/mx/internal::processS equenceResult() [C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\data\DataLi st.as:1760] at DataListRequestResponder/result() [C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\data\Concre teDataService.as:5857] at mx.rpc::AsyncRequest/acknowledge() [E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc\AsyncRequest.as:81] at NetConnectionMessageResponder/resultHandler() [E:\dev\flex_201_borneo\sdk\frameworks\mx\messaging\channels\NetConnec tionChannel.as:427] at mx.messaging::MessageResponder/result() [E:\dev\flex_201_borneo\sdk\frameworks\mx\messaging\MessageResponder.a s:202] Any help would be greatly appreciated as i am hitting a brick wall, everything was working before, but i can't figure out what changes i might have made to cause these issues. Barry
[flexcoders] TDD, code coverage, UI automation and what the neighbours are up to...
These UI automation APIs will also enable UI testing scenarios where you can build end to end browser UI automation that simulates real mouse and keyboard interactions and enables automated end to end experience testing. http://weblogs.asp.net/scottgu/archive/2008/04/02/unit-testing-with-silverlight.aspx the other side of code coverage - UI coverage ... so... wouldn't it be great if Flex apps could do the same within FlexBuilder? just a thought / FYI cheers barry.b
[flexcoders] Re: ModuleLoader erratically loading modules
Can i ask if you are loading the same module into each 'stub'? i.e. do you have a multi-purpose module that is loaded 4 times (SubmissionModule.swf)? I had a problem with loading a single multi-purpose module more than once. I was dynamically loading n modules that contained a number of hyperlinks. The problem was that the 2nd module was being loaded before the 1st one was ready, resulting in the 1st module being garbage collected, and therefore never loading. Let me know if this helps. Barry --- In flexcoders@yahoogroups.com, jamison_wilde [EMAIL PROTECTED] wrote: I'm having a lot of issues with ModuleLoader only occasionally loading my modules. At first I thought maybe it was that I couldn't have the module open in more than one tab at a time in my browser, as this seemed to help a little. But it seems more like there is a basic problem with loading multiple modules at once. Basically in my main mxml I have: mx:Canvas id=views_canvas x=10 views:PrizesStub id=prizes visible=false / views:Home id=home visible=false/ views:ListStub id=list visible=false / views:SubmissionStub id=submission visible=false / /mx:Canvas where the stubs are stub components for the modules, so they can hold data that might be needed before the module is loaded. One of my stubs looks like: ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; mx:ModuleLoader id=module url=views/SubmissionModule.swf / /mx:Canvas That's pretty much it. The SubmissionModule will only load once every 4 or 5 times I debug. I've tried adding unique identifiers to the url like: mx:ModuleLoader id=module url={'views/SubmissionModule.swf?uid=' + new Date().getTime()} / but that doesn't seem to help. The ready event never fires when it doesn't work. The only thing I can think of is that it is loading all of the Modules at once(once the main swf has loaded) even though the views that contain them aren;t visible. Is there some reason that shouldn't happen or would cause a problems?
[flexcoders] Adding a non-inline creationComplete event handler
Hi, i am having serious memory leak problems whilst using modules in flex. The module-based application i am currently developing currently over time kills the browser its loaded in. Even when i attempt to load the simplest of modules (a module with a few buttons/empty datagrids) my flex app will eventually make IE/Firefox fall over after consuming about 650-700MB of RAM. I have been reading Grant Skinner's posts on memory management and weak reference techniques with regards to Flex/Flash player but i am still having big problems. I am also attempting to figure out how to add a creationComplete event handler on a module via actionscript. If i use the inline mxml approach, a strong reference will be created, and i will never be able to destroy it, resulting in the module never being removed from memory! Any advice and/or comments would be most appreciated, as i am hitting brick walls here and i need to progress with haste. Thanks, Barry
[flexcoders] Re: ModuleLoader 'SWF is not a loadable module' Error
Oh that was a great bit of help there Alex, your a star! I tackled the issue a little differently from you Mark (and possibly a bit too in depth when i think about it)... i'll try and explain my situation. In my app I have a component (navBar) containing 3 Accordions, each with a repeater that creates one or more custom components (navBarSection) that extend the ModuleLoader class. The problem i believe i was having was just what you suggested Alex, that i attempt to start loading the same module (link.swf) more than once at the same time. I copied my links.swf module to another folder, loaded the first instance (from the original url) into one navBarSection component, and loaded the second instance (from the new url) into the other navBarSection component, and the application did not fall over once! So to get to my solution to the problem... i added a property to my navBarsection custom component (moduleURL:String) that i used instead of directly setting the url property (which would immediately load the module!). I then added a few custom events that dispatch: 1. when the moduleURL property was set 2. when the module has finished loading (the component's ready event) When the first event dispatches, the parent component (navBar) will: 1. add the navBarSection to an ArrayCollection 2. search for another navBarSection component in the collection (other than the one recently added) attempting to load a module from the same url 3. if one is not found, the recently added navBarSection will proceed to load the requested module When the second event dispatches, the parent component will: 1. remove the navBarSection from the collection 2. search for another navBarSection attempting to load a module from the same url as the recently removed module 3. if one is found, the navBarSection will proceed to load the requested module (url = moduleURL) This may be a bit rigorous, but it guarantees that no two navBarSection's will be loading the same module at once. I have been giving the app a serious hammering since implementing this, using the same links.swf module url in more than one occassion, and it has not fallen over yet; so it seems the problem is solved. Thanks again for your feedback guys, i was really in a bad situation without your posts. Good luck, Barry --- In flexcoders@yahoogroups.com, Mark Doberenz [EMAIL PROTECTED] wrote: Oh for cryin out loud All I had to do was create an array of ModuleLoaders and add the ModuleLoader to it when I created it and it kept all the instances just fine. Thank you so much I can work on this project again! Mark On Dec 10, 2007 10:10 PM, Alex Harui [EMAIL PROTECTED] wrote: So, the classic 'mistake' was to do this: private function loadModule(url:String):void { var modInfo:IModuleInfo = ModuleManager.getModule(url); modInfo.addEventListener(ModuleEvent.READY, readyHandler) modInfo.load(); } This worked in 2.0.1 because there was a memory leak. We fixed the leak in Flex 3 and suddenly, this scenario could cause the module to kick itself out. The allocation for the ready event could force a garbage collection and nothing has a hard reference to the ModuleInfo or the Module so it away it goes. The addEventListener is not a hard reference to the ModuleInfo, the reference goes the other direction. The answer here is to make sure you store your modInfo references on the instance and not in a local variable. Similarly, if I kept only one reference, several calls to loadModule would overwrite the last reference and allow it to get kicked out. If you're loading several modules, you'll need an array of ModuleInfos tracking each module and administrate their clean up. ModuleLoader keeps hard references so it should be ok, as there should be one ModuleLoader per url. But again if you ask it to load more than one module, the previous ones may be eligible for garbage collection. If you're using 2.0.1, calls to unload() could cause the same sort of situation. -Alex -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Mark Doberenz *Sent:* Monday, December 10, 2007 7:20 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: ModuleLoader 'SWF is not a loadable module' Error I've worked on an app too where I used modules heavily. I had/have issues where the module doesn't load. I've noticed that the trace log shows that the SWF is decompressed, but it never throws the Complete event. I've found that sometimes recompiling the app will work. I'm not sure if it's an ApplicationDomain issue or not. I tried tweaking this a while back and never got anywhere, but once I removed it, the modules started loading. I didn't have issues with it anymore until just recently when I started the project back up again. It made me not work on the app b/c
[flexcoders] ModuleLoader 'SWF is not a loadable module' Error
I am having a problem with a modularised application i am developing. I am using modules to load a user-customised application and i am getting intermittent errors when loading a certain module (SWF is not a loadable module). Having scoured the internet for details of the error, i can only find answers where the problem is to do with security issues (loading modules from different domains/crossdomain.xml etc.). I am loading all my modules from a relative path (/modules/navigation/Linksmodule.swf) so security should not be an issue. I would really appreciate some help with this anyone might have as i am reaching a release date for the project and i cannot get by without solving this problem. Thanks in advance. Barry
[flexcoders] Re: unable to hide datagrid column...help please
I got round this i think by setting the visible property of a column when a state's enterState event fired. I was using a single datagrid to display two different sets of columns, depending on a combobox selection. Hope this helps. Barry --- In flexcoders@yahoogroups.com, tomeuchre [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Jehanzeb Musani jehanzeb_bs@ wrote: That's exactly what I was saying. There is some issue with datagrid data binding in case of invisible columns. You can try manually setting the visible property of that column to false after rebinding the xmllist. That is what I do...it was just one of those that's strange... moments, so I captured an event after the grid was freshly bound and set the visible=false; on columns that needed it. It all happens in 1 hundredth of a blink, so I just did it and moved on. Never throught that it may have been a bug, but if you are switching dataProviders, logically it could be completely different columns, so its not so surprising that it gets reset.
[flexcoders] Re: ModuleLoader 'SWF is not a loadable module' Error
No, this is not the case im afraid. Sometimes the module loads perfectly and the application is fine, but sometimes the application throws the error i mentioned in the first post. I catch the main error being thrown by the module loader ('SWF is not a loadable module'), but when this occurs the ModuleManager.as class (from the Flex framework) always throws an error at line 669: The code at this line is: moduleEvent.bytesLoaded = loader.contentLoaderInfo.bytesLoaded; I have changed the code in ModuleManager.as to now point to the correct object - the event.currentTarget.loader property - (so that a null pointer error is not thrown): moduleEvent.bytesLoaded = event.currentTarget.loader.contentLoaderInfo.bytesLoaded; I am not sure how to compile the application (or perhaps rebuild the framework.swc file with the new source code) with the changes Either way, the module is not loading properly in a consistent manner, and i am totally confused as to how this would be happening. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: is it possible it isn;t a module From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Barry Evans Sent: Monday, December 10, 2007 3:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ModuleLoader 'SWF is not a loadable module' Error I am having a problem with a modularised application i am developing. I am using modules to load a user-customised application and i am getting intermittent errors when loading a certain module (SWF is not a loadable module). Having scoured the internet for details of the error, i can only find answers where the problem is to do with security issues (loading modules from different domains/crossdomain.xml etc.). I am loading all my modules from a relative path (/modules/navigation/Linksmodule.swf) so security should not be an issue. I would really appreciate some help with this anyone might have as i am reaching a release date for the project and i cannot get by without solving this problem. Thanks in advance. Barry
[flexcoders] Re: ModuleLoader 'SWF is not a loadable module' Error
Sorry, i forgot to say i'm using flex 2.0.1. And as for a hard reference, i am creating a number of ModuleLoader components within a repeater, so the url of the loaded module is dynamic in nature. What do you mean by a GC? The weird thing in this situation is that i have another module which displays links and is very close in nature to the one giving me problems, however it never produces any errors. I use the problematic module on more than one occassion i.e. when the app loads up, the links module is loaded twice. Its only means of consistently is that it fails both times it loads (in a single application instance). I am also passing data to the module (on the moduleReady event) using a custom Interface, i wonder if this would have any affect? I followed the Adode dev guide on how to pass data to the module, so im not sure this is where the problem stems from, but i thought i would mention this. The only other issue that comes to mind is the sequence in which the modules are loaded, but i havent had a chance to apply the ModuleLoader's urls manually, and i dont even think this would be the problem, just a thought. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Which version of Flex? Are you keeping a hard reference to the module? Otherwise, a GC can kick it out just as it finishes loading. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Barry Evans Sent: Monday, December 10, 2007 9:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ModuleLoader 'SWF is not a loadable module' Error No, this is not the case im afraid. Sometimes the module loads perfectly and the application is fine, but sometimes the application throws the error i mentioned in the first post. I catch the main error being thrown by the module loader ('SWF is not a loadable module'), but when this occurs the ModuleManager.as class (from the Flex framework) always throws an error at line 669: The code at this line is: moduleEvent.bytesLoaded = loader.contentLoaderInfo.bytesLoaded; I have changed the code in ModuleManager.as to now point to the correct object - the event.currentTarget.loader property - (so that a null pointer error is not thrown): moduleEvent.bytesLoaded = event.currentTarget.loader.contentLoaderInfo.bytesLoaded; I am not sure how to compile the application (or perhaps rebuild the framework.swc file with the new source code) with the changes Either way, the module is not loading properly in a consistent manner, and i am totally confused as to how this would be happening. --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Alex Harui aharui@ wrote: is it possible it isn;t a module From: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of Barry Evans Sent: Monday, December 10, 2007 3:51 AM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] ModuleLoader 'SWF is not a loadable module' Error I am having a problem with a modularised application i am developing. I am using modules to load a user-customised application and i am getting intermittent errors when loading a certain module (SWF is not a loadable module). Having scoured the internet for details of the error, i can only find answers where the problem is to do with security issues (loading modules from different domains/crossdomain.xml etc.). I am loading all my modules from a relative path (/modules/navigation/Linksmodule.swf) so security should not be an issue. I would really appreciate some help with this anyone might have as i am reaching a release date for the project and i cannot get by without solving this problem. Thanks in advance. Barry
[flexcoders] Tactics for writing data to the DB?
Should we write a little a lot or a lot a little? The reason I ask is that in a normal html web form type of page After the user edited any fields, I would wait for the user click to submit/update before sending anything to the sever. However, taking the datagrid in Flex as an example, the user can edit the data and events are triggered thus the local dataprovider is updated automatically. I am wrestling with the problem of whether I should send the data as it is edited in the grid, or whether to use some kind of call later function to check whether the editing has been finished etc before sending the update request to the backend. It would be interesting to hear how people are dealing with taking to the database. Barry
[flexcoders] Combo as itemEditor
I am using a comboBox component as an itemEditor within a datagrid and am dispatching an event on a change in the comboBox dispatchEvent(new DataGridEvent(dgDataChange, true,false,col,field)); I can catch this and send it to a listener function no problem. However, in the listener function I would like to access the selected item of the ComboBox. public function updateMe(event:DataGridEvent):void{ if(event.columnIndex ==0){ //Do something with the data from the comboBox }else{ //Do Nothing } } Does anyone have an idea how to get that data? I see that I can dispatch a reference to the itemRenderer DataGridEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, columnIndex:int = -1, dataField:String = null, rowIndex:int = -1, reason:String = null, itemRenderer:IListItemRenderer = null, localX:Number) But am unsure whether it is the way, or how to actually implement it. Is it a class reference or a reference to a variable?? Hmm Anyway, if anyone can help me out, it might save my hair. Thanks
[flexcoders] Cairngorm -- Is this a case for a view helper?
I know view helpers are not currently recommended to use with cairngorm, but am I going to use one here? In one view I call this filter function whenever a textInput control is changed. model.companyObjectsFilter.filterFunction = doCompanyNameFilter; model.companyObjectsFilter.refresh();} private function doCompanyNameFilter(item:Object):Boolean{ var result:Boolean; var companyName:String(item.CompanyName.toUpperCase()); if(companyName.indexOf(companyNameTI.text.toUpperCase()) != -1){ result = true;} return result;} This works great, however, say that in another view a comboBox bound to the same arrayCollection was previously selected. Then if the above filter does not return a true value the app crashes because the combobox now has nothing to bind to. Will I need to copy the arrayCollection from the model before my view filters it? And if so is it best to use a viewHelper? Any help much appreciated Barry
[flexcoders] Re: FDS Messaging error
I was just wondering if there was any joy on getting the messaging service to work. I too have trying to get a better understanding of fds and i want to run through the simple chat application. when i run the swf in IE, i get the following error message: [MessagingError message='Unknown destination 'MyTransientTopic'.'] at mx.messaging.config::ServerConfig$/getChannelSet() at mx.messaging::Consumer/mx.messaging:Consumer::initChannelSet() at mx.messaging::MessageAgent/mx.messaging:MessageAgent::internalSend() at mx.messaging::Consumer/subscribe() at ChatClient/___Application1_creationComplete() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv entFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent() at mx.core::UIComponent/set initialized() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() Any help would be appreciated Barry --- In flexcoders@yahoogroups.com, Robs [EMAIL PROTECTED] wrote: Nopes :(( ! It still shows the same error. Is it that fds can't locate my config files properly. Lemme give the dir structure of my project : flex samples folder messageboard folder my chat app folder web-inf folder {all fds related config xmls} The way I access my app is http://localhost:8080/samples/messageboard/fdsChat/fdsChat.mxml . --- In flexcoders@yahoogroups.com, Dirk Eismann DEismann@ wrote: Make sure to restart FDS after you modify any of the config files. Also, if you're using Flex Builder 2 then it's always a good idea to do a Project -- Clean after modifying the FDS config files. Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robs Sent: Tuesday, April 10, 2007 3:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] FDS Messaging error Hi all, I'm trying out a sample chat app using fds messaging. As per the instructions, I made a new destination in the messaging-config.xml as follows: destination id=MyTransientTopic properties server durablefalse/durable /server /properties channels channel ref=my-rtmp/ /channels /destination Unfortunately, my application does not seem to get this destination is throwing the following error: [Error: (mx.messaging.messages::ErrorMessage)#0 body = (null) clientId = (null) correlationId = AC6C8425-5819-7952-C465-DBB44D54B08E destination = MyTransientTopic extendedData = (null) faultCode = Server.Processing faultDetail = (null) faultString = No destination 'MyTransientTopic' exists in service flex.messaging.services.MessageService headers = (Object)#1 messageId = 996330F1-2418-1987-0B1E-A4C224645BD9 rootCause = (null) timestamp = 1176212098404 timeToLive = 0] Where am I going wrong? Please help ! Regards, Robi. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Re: FDS Messaging error
robi, i just figured out that when you create the new project in flex builder 2.0, you need to make sure you choose the option 'Flex Data Services' when asked 'How will your Flex application access data?' in the 'Create a Flex Project' dialog. Hope this helps, Barry --- In flexcoders@yahoogroups.com, Robs [EMAIL PROTECTED] wrote: Hi all, I'm trying out a sample chat app using fds messaging. As per the instructions, I made a new destination in the messaging-config.xml as follows: destination id=MyTransientTopic properties server durablefalse/durable /server /properties channels channel ref=my-rtmp/ /channels /destination Unfortunately, my application does not seem to get this destination is throwing the following error: [Error: (mx.messaging.messages::ErrorMessage)#0 body = (null) clientId = (null) correlationId = AC6C8425-5819-7952-C465-DBB44D54B08E destination = MyTransientTopic extendedData = (null) faultCode = Server.Processing faultDetail = (null) faultString = No destination 'MyTransientTopic' exists in service flex.messaging.services.MessageService headers = (Object)#1 messageId = 996330F1-2418-1987-0B1E-A4C224645BD9 rootCause = (null) timestamp = 1176212098404 timeToLive = 0] Where am I going wrong? Please help ! Regards, Robi.
[flexcoders] Re: FDS Messaging error
No it doesnt work in firefox either. I guess there is some sort of configuration in the Project that defines where the data comes from. I found out that if you choose the option 'Flex Data Services' when asked 'How will your Flex application access data?' in the 'Create a Flex Project' dialog, the sample chat client is able to talk to the messaging service 100% Barry --- In flexcoders@yahoogroups.com, Sean Sell [EMAIL PROTECTED] wrote: Does it work in Firefox and just not in IE? If so, we had a problem on IE making remote object calls to our server when using https. Adding the following: mx:Script ![CDATA[ import mx.messaging.ChannelSet; public var channelIDArray:Array = new Array(my- amf, my-http, my-secure-amf,my-secure-http); [Bindable] public var servicesChannelSet:ChannelSet = new ChannelSet(channelIDArray,false); ]] /mx:Script and setting: channelSet={this.servicesChannelSet} in the MX:RemoteObject tag fixed the problem. otherwise post you configs and how you are compiling. Provided your config is right the easiest way to get the client compiled correctly is to have it compiled on the server where it will be served from. - Original Message From: Barry Evans [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, May 9, 2007 6:17:27 AM Subject: [flexcoders] Re: FDS Messaging error I was just wondering if there was any joy on getting the messaging service to work. I too have trying to get a better understanding of fds and i want to run through the simple chat application. when i run the swf in IE, i get the following error message: [MessagingError message='Unknown destination 'MyTransientTopic' .'] at mx.messaging. config::ServerCo nfig$/getChannel Set() at mx.messaging: :Consumer/ mx.messaging: Consumer: :initChannelSet( ) at mx.messaging: :MessageAgent/ mx.messaging: MessageAgent: :internalSend( ) at mx.messaging: :Consumer/ subscribe( ) at ChatClient/_ __Application1_ creationComplete () at flash.events: :EventDispatcher /flash.events: EventDispatcher: :dispatchEv entFunction( ) at flash.events: :EventDispatcher /dispatchEvent( ) at mx.core::UIComponen t/dispatchEvent( ) at mx.core::UIComponen t/set initialized( ) at mx.managers: :LayoutManager/ ::doPhasedInstan tiation() at Function/http://adobe. com/AS3/2006/ builtin:: apply() at mx.core::UIComponen t/::callLaterDis patcher2( ) at mx.core::UIComponen t/::callLaterDis patcher() Any help would be appreciated Barry --- In [EMAIL PROTECTED] ups.com, Robs robi.ray@ . wrote: Nopes :(( ! It still shows the same error. Is it that fds can't locate my config files properly. Lemme give the dir structure of my project : flex samples folder messageboard folder my chat app folder web-inf folder {all fds related config xmls} The way I access my app is http://localhost: 8080/samples/ messageboard/ fdsChat/fdsChat. mxml . --- In [EMAIL PROTECTED] ups.com, Dirk Eismann DEismann@ wrote: Make sure to restart FDS after you modify any of the config files. Also, if you're using Flex Builder 2 then it's always a good idea to do a Project -- Clean after modifying the FDS config files. Dirk. -Original Message- From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of Robs Sent: Tuesday, April 10, 2007 3:36 PM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] FDS Messaging error Hi all, I'm trying out a sample chat app using fds messaging. As per the instructions, I made a new destination in the messaging-config. xml as follows: destination id=MyTransientTopi c properties server durablefalse /durable /server /properties channels channel ref=my-rtmp / /channels /destination Unfortunately, my application does not seem to get this destination is throwing the following error: [Error: (mx.messaging. messages: :ErrorMessage) #0 body = (null) clientId = (null) correlationId = AC6C8425-5819- 7952-C465- DBB44D54B08E destination = MyTransientTopic extendedData = (null) faultCode = Server.Processing faultDetail = (null) faultString = No destination 'MyTransientTopic' exists in service flex.messaging. services. MessageService headers = (Object)#1 messageId = 996330F1-2418- 1987-0B1E
[flexcoders] Automation and QTP Testing
We are currently looking for an automated testing solution for Flex 2 interfaces. At the moment we have purchased Mercury Quick Test Pro as a testing solution and have a few questions Is it possible to automate testing Flex interfaces using QTP, without dependencies on the Flex Data Center server? Is it possible to purchase a discounted Data Services license just for testing purposes (i.e. just a license to allow QTP integration, not actually run the software) Any information would of help
[flexcoders] FlexBuilder2 - errors and crashes with internal help/docs
it looks like the same error as this: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg37191.html but sadly the fix didn't work It's sometimes so bad that I get no response or errors and shuts down stand-alone version of FB2 Flex Builder 2 Core Version: 2.0.143459 Flex Builder 2 Standalone Version: 2.0.143459 this isn't the only error, but is the easiest to document: parent.titlebar.document is not an object C:\Program Files\Adobe\Flex Builder 2\jre\bin\javaw.exe http://127.0.0.1:50764/hrlp/nftopic/com.adobe.flexbuilder.help/langref/asdoc.js function findTitleTableObject(id) { if (isEclipse()) return parent.titlebar.document.getElementById(id); // ERROR IS HERE else if (top.titlebar) return top.titlebar.document.getElementById(id); else return document.getElementById(id); } any else or is it just Pan.T and me? thanx barry.b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] itemRenderer's dateField control - how to add validation+custom formatting?
hi I'm trying work out how to enhance the dateField control - when used as an itemRenderer for a dataGrid - to allow freeform entry (not using the date picker) to do two things: - format the date display from the picker (only) to DD/MM/ - if Text entry is used if (dataField.Text != ) // gets around Type Coercion failed: cannot convert to Date. if !IsDate(dateString) Alert.Show(Date Format Is Incorrect); else convert the date:String to date:Date for the control //(which is bound back to the dataGrid's data) the field can be null so any onfocus or clicking-into or clearing is perfectly OK I've had a look at the DateFormatter and DateValidator classes but can't see how to apply them to the dateField control (ie not a standard textbox, even if you do get the value with DateField(event.target).selectedDate.Text) if this means a custom control extending dateField then it will get used in many places (ie: no explicit references back to the parent) has anyone seen any working examples to get ideas from? thanx barry.b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Centering a titleWindow when opener is DataGrid itemRenderer
Hi all I've been trying everything I can think of to get a modal titleWindow pop-up to centre on the screen: if the itemRenderer button that opens it is at the top of the browser, part of the titleWindow is out of reach, but is OK if it's opened from further down the (parent) datagrid. I'm after positioning to be exactly the center of the screen no matter which button called it. is this set by the title window's properties? or the opener (parent)? Also, I'm a bit surprised that the parent can set some styles of the titleWindow but not others, even though what I've read says it should... these work being set by the parent: helpWindow.title=Please Enter Login Information; helpWindow.setStyle(borderAlpha, 0.9); these don't // from http://www.jessewarden.com/archives/2006/01/changing_the_mo.html helpWindow.setSize(320, 240); helpWindow.setActualSize(320, 480); helpWindow.setStyle(modalTransparency, 99); helpWindow.setStyle(modalTransparencyColor,0x66); any suggestions? thanx barry.b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] sending user selections back from TitleWindow to itemRenderer (parent) - how?
I'm not sure how to do this: I have an ItemRenderer that has a textbox and a look-up button to open a modal TitleWindow for a full search. This will do remote calls to get data, where the user selects what they want (checkboxes) and the chosen loginName fields appended to itemRenderers text box. the thing that's doing my head in is the best way to get a reference back to the parent to _append_ the selections any suggestions? thanx barry.b * itemRenderer (parent) * mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.controls.DataGrid; import mx.events.FlexEvent; import mx.managers.PopUpManager; import mx.core.IFlexDisplayObject; import mx.containers.TitleWindow; private function showSearch():void { var searchWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(this , AcademicSearchForm, true)); searchWindow.title=Enter Academic Surname; searchWindow.showCloseButton=true; } [Bindable] public var newAcademic:String = new String(); ]] /mx:Script mx:TextInput id=AcademicText text={newAcademic} / mx:Button id=SearchAcademicBtn label=Look-up click=showSearch(); / /mx:HBox *** modal search window (titleWindow) *** ?xml version=1.0? mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=doInit(); showCloseButton=true close=removeMe() mx:Script ![CDATA[ import mx.managers.PopUpManager; private var AcademicSearchResults:Array = new Array( {surname: null, firstname: null, loginName: null} ); private function removeMe():void { // Put any clean-up code here. PopUpManager.removePopUp(this); } private function doInit():void { PopUpManager.centerPopUp(this); SearchResultsDG.visible = false; } private function processSearch():void { // show waiting indicator... clearSearchResults(); getSearchResults(); SearchResultsDG.visible = true; SearchResultsDG.dataProvider = AcademicSearchResults; } private function getSearchResults():void{ // REPLACE THIS WITH REMOTE CALLS AcademicSearchResults = new Array( {surname: 'aaa', firstname: 'bbb', loginName: 'aaab'} , {surname: 'ccc', firstname: 'ddd', loginName: 'cccd'} , {surname: 'eee', firstname: 'fff', loginName: 'eeef'} ); } private function clearSearchResults():void{ AcademicSearchResults = new Array( {surname: null, firstname: null, loginName: null} ); SearchResultsDG.visible = false; } private function finaliseResults():void{ /* HERE: take what was selected with useChoice checkboxes and _append_ the loginName fields as a list back to the parent itemRenderer control */ removeMe(); } ]] /mx:Script mx:Form mx:FormItem label=Surname mx:TextInput id=surname width=100%/ /mx:FormItem /mx:Form mx:VBox mx:HBox mx:Button click=processSearch(); label=Search/ mx:Button click=finaliseResults() label=Done/ /mx:HBox mx:DataGrid id=SearchResultsDG mx:columns mx:DataGridColumn headerText=surname dataField=surname/ mx:DataGridColumn headerText=firstname dataField=firstname/ mx:DataGridColumn headerText=loginName dataField=loginName/ mx:DataGridColumn headerText=Use mx:itemRenderer mx:Component mx:HBox horizontalAlign=center mx:Script ![CDATA[ [Bindable] public var selected:Boolean; ]] /mx:Script mx:CheckBox id=useChoice selected=false click=selected = useChoice.selected/ /mx:HBox /mx:Component /mx:itemRenderer
Re: [flexcoders] sending user selections back from TitleWindow to itemRenderer (parent) - how?
thanx, Doug but that's the thing that's thrown me. in that example, the value is returned directly back to the parent's text box - nice and simple. but because my textbox is part of an itemRenderer, it's already bound to the dataGrid's datasource. so the itemRenderer can get data from two sources: bound to the ArrayCollection - and - from the titleWindow. The action is append. I suspect it's got to do with appending the titleWindows returrn value back to the dataGrid's dataProvider...but I'm not sure how wood for the trees stuff (and my newbie-ness) I suspect. thanx barry.b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] RE:comboBoxes with dynamic data as datagrid itemRenderers?
thankfully, Brendan Meutzner example helps nicely http://www.visualconcepts.ca/blog/index.cfm/2006/6/22/ComoboBox-RendererEditor-for-20 although doing something like this (closer to what I'm after) mx:DataGridColumn headerText=Type dataField=col3 mx:itemRenderer mx:Component mx:ComboBox dataProvider={colEvalType}/mx:ComboBox /mx:Component /mx:itemRenderer /mx:DataGridColumn I get Access of undefined property colEvalType which I think is a scope thing since further down the mxml file it works fine mx:ComboBox dataProvider={colEvalType} y=240/mx:ComboBox should this work? thanx barry.b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] comboBoxes with dynamic data as datagrid itemRenderers?
well, the origional post went down like a lead dirigeable I'll back up a bit and try to explain better... I have query data that I want to edit in a datagrid, mostly to utilise the textbox-type features. However... two columns are look-up data, best represented by ComboBox's. it looks like I can use itemRenderers for the cells in these columns. What I'm stuck on is the best way to bind the look-up data to the ComboBox's when they're used as itemRenderers. because I want to extend the ComboBox's anyway, I could (in theory) have these as custom components and bind the dynamic data directly to each within the custom control mxml - hard wired in. but If I want to use the same control for both columns but with different data, I'm stuck is there any way of keeping the custom controls dumb and, from the datagrid's level, tell the itemRenderers what look-up data model to bind to? something like this: mx:DataGridColumn headerText=Role itemRenderer=custom_controls.ComboBox rendererDataProvider={colRole}/ mx:DataGridColumn headerText=Type itemRenderer=custom_controls.ComboBox rendereDataProvider={colEvalType}/ is (something like) this possible? is there a better way? How can comboBoxes with dynamic data be integrated with DataGrids? any suggestions most welcome. thanx barry.b PS: I suspect that this is only half the battle. Getting the DataGrids data model to store the ComboBox selection might be the other half... datagrid's itemRenderer's dataProvider? Posted by: Barry Beattie [EMAIL PROTECTED] barry.beattie Date: Wed Aug 16, 2006 10:23 pm (PDT) hi all I've got a datagrid where I'll have columns of ComboBoxes, populated with dynamic data (look-up tables really). sure I can assign a DataGridColumn's itemRenderer to a custom control, but if I want to re-use that control, how do I pass a different dataProvider to it? in other words: having these controls my:ComboBox dataProvider={colRole} y=100/my:ComboBox my:ComboBox dataProvider={colEvalType} y=120/my:ComboBox as itemRenderers mx:DataGridColumn headerText=Role itemRenderer=custom_controls.ComboBox/ mx:DataGridColumn headerText=Type itemRenderer=custom_controls.ComboBox/ or is this a dumb idea and there's a better way? thanx barry.b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] how to text wrap in a label?
this *should* be easy. In HTML it'd just be a colspananyhoo... I've got a datagrid headerRenderer that should have the layout .. Email Notifications . ... Initial .. | . Reminder Notifications . | . Date (the cells underneath will be custom itemRenderers I'm esentially having 2 columns with a common parent header) I just can't get the text to wrap. there's truncate to fit but no wrap. any ideas? ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=150 mx:Label text=Email Notifications textAlign=center/ mx:HBox height=35 mx:Label text=Initial Notifications textAlign=center / mx:Label text=Reminder Date textAlign=center/ /mx:HBox /mx:VBox thanx barry.b == ALSO: I'm lost as to why I need to do this: I can define custom components with a namespace (OK so far) mx:Application ... xmlns:my=custom_controls.* my:ComboBox dataProvider={colRole} y=100/my:ComboBox but I can't use that namespace for a datagrid headerRenderer control. - this works: mx:DataGridColumn headerRenderer=custom_controls.NewLabel / - this doesn't mx:DataGridColumn headerRenderer=my.NewLabel / can I ask why I can't use a namespace for all my custom stuff? thanx b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] datagrid's itemRenderer's dataProvider?
hi all I've got a datagrid where I'll have columns of ComboBoxes, populated with dynamic data (look-up tables really). sure I can assign a DataGridColumn's itemRenderer to a custom control, but if I want to re-use that control, how do I pass a different dataProvider to it? in other words: having these controls my:ComboBox dataProvider={colRole} y=100/my:ComboBox my:ComboBox dataProvider={colEvalType} y=120/my:ComboBox as itemRenderers mx:DataGridColumn headerText=Role itemRenderer=custom_controls.ComboBox/ mx:DataGridColumn headerText=Type itemRenderer=custom_controls.ComboBox/ or is this a dumb idea and there's a better way? thanx barry.b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] DataGridColumn custom itemRenderers
hi I'm trying to build a DataGrid with custom controls in the cells. is it possible to have custom itemRenderer's? can they be just custom components defined in mxml? in this case it's a combobox and a button. mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:custom=view.customcontrol.* ... mx:DataGridColumn headerText=Search dataField= itemRenderer=custom.AcademicSearch / -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: DataGridColumn custom itemRenderers
It isn't fancy, but this example... maybe not but it does show me just what I'm looking for (and you've got headerRenderers! I must have missed that in the docs...) thanx Tim b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] will Flash (stand-alone) Remoting be upgraded for Flex 2.0? (ie not FDS)
I just need clarification on the future of the stand-alone remoting (for Java) . the end of the line? http://www.adobe.com/products/flashremoting/productinfo/versions_pricing/ yes, I realise this is where FDS comes in but what if you need remoting without the extra FDS features (and price tag)? (... for Java) there's a long story behind this question, involving struggling to keep CF as a platform here as well as trying to raise Flex 2.0 profile. thanx barry.b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] will Flash (stand-alone) Remoting be upgraded for Flex 2.0? (ie not FDS)
If you're using Coldfusion MX7, just run the 7.0.2 updater and it will give you remoting built in. yes Nick, I know but that's not what I'm asking. I'm specifically asking about the stand-alone remoting product that is (was?) available for Java (and .NET) and whether it will be upgraded to AMF3 (or it stays at AMF0, is depricated and eventually phased out). I didn't want to spell it out in the origional post but, unless I can align Flex 2 to the strategic plan here and can then drag CF along with it, CF here will *never* be upgraded to 7. it will remain at 6.1 at best. There's a big push up high to move us to Java/JSP development and away from CF (for lots of reasons I won't mention here). note: OpenAMF: I'm deliberatly ignoring it at the moment (for reasons). same with AMFPHP thanx barry.b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] will Flash (stand-alone) Remoting be upgraded for Flex 2.0? (ie not FDS)
If you dont mind spending $20,000 for flex in order to do something that used to cost 1k. which is kinda my point (well, related to). it's not a big server setup we have here but it's enough to push us into the enterprise level (or so it seems). it's not for one specific app but a bunch of piddley little stand-alone ones with NOT a high traffic count. it'd be good to get some official word (or at least a bunch of ppl who are good at guessing wat Adobe would do) saying the stand-alone product was at the end of it's line. It'll make my case of keeping CF and upgrading to 7.02 even stronger (if it gets considered, that is). hang on, (I don't really care but) does this mean the .NET version is gone too? if you're running .NET you have to go thru FDS as well? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] tree resize to content
Is it possible to have the tree resize it's height to never show a vert scroll bar... I think if I did that I'd run out of canvas size if all of my couple of hundred nodes were expanded. that is, provided I can get my toggleExpandCollapseNode() method working -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] quick clarification pls on tree control and adding nodes
(I'm still getting my head around Flex so please forgive me asking but) I've been backwards and forwards trying to work out how to add functionality to a Tree control...stuck on Flex 1.5 examples that won't work in 2.0. i just want to confirm something. The key to adding/editing/deleting nodes is the fact that the data is [Bindable] to the tree? so all I have to do is find and load the node data into editing controls and the tree will automatically reflect those changes, yes? (it's a bit of a light-bulb moment - no more mucking around with explicitly creating tree nodes) I'm trying to do a similar thing as quasimotoca** with certain types of nodes loading into their own editing panel, depending on which is selected. but the trick is [Bindable] and just editing the trees' dataProvider, yes? thanx b ** http://www.mail-archive.com/flexcoders@yahoogroups.com/msg36600.html -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] third state of checkbox - flex 1.5
please forgive me for butting in but I'd argue that checkboxes don't have third states... by design. I mean, have you ever seen a MS Windows tri-state chrckbox (or radio button)? perhaps one within dreamweaver/Flexbuilder 1.0? There's one with focus, sure, but semi-on? my point is that users are expecting a common experiance with UI's. differ too much from what they are used to with Windows, OS-X or KDE and they won't recognise it has a third state ...which is the strength of the UI components in Flex - developed to conform to know user experiances.. just my 2c, nothing more. (use a dropdown or redesign with 2 controls, etc...don't make me re-learn how to use your app..) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] cairngorn vs FDS DataService
(I don't think even FDS gives you record locking agreed - from my understanding (keen interest but no experiance in battle...yet). Where FDS would have failed us last year (if we could have used it) would be when a particular record could be in multiple models at the same time, either with different workflows or part of a join to another record. but to record locking, it *does* strike me that FDS could make an exellent front end to, say, Hibernate (hence my interest in hearing CFHibernate may be a goer yet...). for sure I'll be keeping an eye out for someone giving FDS + hibernate a good shake -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] toggle Expand/Collapse Tree Nodes
hi all I just need a quick help with how to pick up if a tree is expanded or not. I've almost got it - it'll expand all but not collapse. I don't think myTree.openItems != null is correct but I can't think of what else private function toggleExpandCollapseTree():void { myTree.selectedIndex = 0; if (myTree.openItems != null){ myTree.expandChildrenOf(myTree.selectedItem , true); btnExpandCollapseTree.label = Collapse All; }else{ myTree.expandChildrenOf(myTree.selectedItem , false); btnExpandCollapseTree.label = Expand All; } } any suggestions? thanx. PS: I have to cater for cases where only a root node exists -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] cairngorn vs FDS DataService
Tom, just to check... you're saying that, if you don't need syncronised data or being able to pust data or messages to clients, then the garden variety remoting would do just fine... yes? so the opposite is true? if you *have* to have data in sync/ only one copy of the record can be edited at any one time/ controlling data collision, etc then FDS is the way to go... IMHO, that in itself is, when the situation demands it (like my previous project, pre-FDS) , is worth every penny of FDS -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] [v2.0] ItemRenderer error:
I've finally upgraded from Beta3 to current version, and of course some things broke. I've traced the latest problem back to a LiveDocs example** I based my code from which generates the error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at MyRenderers::MyTreeItemRenderer/set data() // Override the set method for the data property // to set the font color and style of each node. override public function set data(value:Object):void { super.data = value; if(TreeListData(super.listData).hasChildren) { setStyle(color, 0xff); setStyle(fontWeight, 'bold'); } else { setStyle(color, 0x00); setStyle(fontWeight, 'normal'); } } I just can't see what's wrong with it what it might be in the Flex 2 changes between Beta 3 and Release (http://weblogs.macromedia.com/flexteam/archives/2006/06/flex_2_changes.cfm) It's a bit of a show stopper at the moment... any suggestions? thanx ** http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0856.html -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] [v2.0] ItemRenderer error:
Brendan Meutzner Sun, 30 Jul 2006 21:14:58 -0700 sorry... if(value == null) cheers Brendan. That did indeed fix it. Thankyou. but I do have to ask why, since the existing code (without the corrections mentioned on that example) worked fine with B3... (I just need a better understanding of what to look for in the rest of the B3 code). I can't seem to find your fix as a specific reference in http://weblogs.macromedia.com/flexteam/archives/2006/06/flex_2_changes.cfm any background info is appreciated. I'm still getting used to Flex... thanx again barry.b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Identifying tree item (right click)
no takers? I'm interested in this also. I suspect the answer is somewhere here http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0959.html#196195 However, if you want to copy [duplicate, sic] items, you must implement your own event listeners for the dragDrop and dragComplete events. but no mention on delete. It seems windows explorer functionality is a standard that many are trying to shoe-horn into the tree component. the VB6 tree component was a bit more realised than a Flex tree, the basic functionality was already there... (Flex is still very new to me, sorry I'm unable to help more at the moment - but it is something I'm also trying to do) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Still Fuzzy about Flex 2.0 and CFCs
1. Re: Still Fuzzy about Flex 2.0 and CFCs Posted by: dcooper2025 [EMAIL PROTECTED] dcooper2025 Date: Mon Jul 24, 2006 12:47 pm (PDT) WRT Remote Object: with ColdFusion 7.0.2, you get Flash Remoting for free. With a Java or other backend, you'll need FDS, correct. my understanding is that, re Java (and .NET) this is not the full story (please correct me otherwise..also, is this AMF0 or 3?). you can get remoting for Java (and .NET) as an add on product. http://www.adobe.com/products/flashremoting/ you can easily integrate rich Macromedia Flash content with applications built using Macromedia ColdFusion MX, Microsoft .NET, Java, and SOAP-based web services. the trick is that the licence is almost as expensive as a CF licence Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] treeview and
I've been trying to get my head around the treeview control, see where it's useful for a project, work out what some of the limitations are. as you can guess, Flex (and AS) is new to me I'm stuck on something I just don't get: when using an array of items to populate a tree: it seems that the field label is used as the label of the treeview. In the tree I've tried labelField=@shortName but still can't get shortName to display as the label (eventually, label will NOT be a valid field from the back end) any idea how? thanx public var contacts1:Object = {label: top, children: [ {label: Acme, shortName:, status: true, phone: 243-333-, children: [ {label: Sales, shortName:, status: true, phone: 561-256-}, {label: Support, shortName:, status: false, phone: 871-256-} ]}, {label: Ace, shortName:, status: true, phone: 444-333-, children: [ {label: Sales, shortName:, status: true, phone: 232-898-}, {label: Support, shortName:, status: false, phone: 977-296-}, ]}, {label: Platinum, shortName:, status: false, phone: 521-256-} ]}; -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] item.hasOwnProperty() and treeview
I'm getting a runtime error when I attempt to expand a treeview node TypeError: Error #1006: Call attempted on an object that is not a function. at flex_treeview3a/::geticon() I suspect it's the way I'm using item.hasOwnProperty() but I'm out of ideas. the geticon() function is for the tree's iconFunction. In this I'm trying to if the node is a leaf (activity) get the activity type, set leaf icon to activity Type icon else if is root set top branch node to root icon else (must be branch) set branch icon can anyone see what I've got wrong? thanx mx:XMLList id=treeData node label=root node node label=node A node label=Activity 1 actType=act_1 / node label=Activity 2 actType=act_2 / node label=Activity 3 actType=act_3 / /node node label=node B node label=node B one node label=Activity 4 actType=act_1 / node label=Activity 5 actType=act_2 / /node node label=node B two node label=Activity 6 actType=act_6 / node label=Activity 7 actType=act_7/ /node /node node label=Activity 8 actType=act_6 / node label=Activity 9 actType=act_7 / /node /mx:XMLList private function geticon(item:Object):Class{ var i:int = 0; var type: String = ; var isActivity:Boolean = item.hasOwnProperty(@actType); if (isActivity){ type = item.getProperty(actType); } if (type != ){ switch(type){ case act_1: return iconAct1; break; case act_2: return iconAct2; break; case act_3: return iconAct3; break; case act_4: return iconAct4; break; case act_5: return iconAct5; break; default: return null; break; } } else { while (item.parent()!=null) { item = item.parent(); i++; } switch (i){ case 0: return iconEvent; break; default: return iconConnect; break; } } return null; } Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex 2.0 components and (vision impared) accessability
1) is there any support for Screen readers (eg: Jaws, et al) in the Flex 2.0 components? any (code) examples of use? any gotchas? 2) can someone suggest links to reading up on Accessability and Flash? general design considerations, how-to's, etc? I'm especially interested in what happens when an RIA's does a remote call to get/change data - if screen readers can pick up the change. vision impared accessability is a big issue here (education sector - we'd get sued if we forgot it) thanx barry.b (PS: I'm not a Flash guru, just a CF coder gravitating to Flex) Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] ColdFusion/Flex superwizard breaks Eclipse
anyone else have a problem with the ColdFusion/Flex Application wizard for Flex 2b3 plugin? CF_FBExtensions_B3_0515.zip for me, it damages it. all the plug-ins status show up as unable to load. turns out to be a file in with the /plugins and /features folders called site.xml. Eclipse has problem with it and shows red X's on all plugins. rename it fixes the issue. anyone else had this or am I just unlucky? Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] I've got me data bindings in a terrible twist. FB2b3
I sort of get your explaination. more experianced ppl will chime in with better explainations (just keep asking) As you can tell - I'm not ready for Cairngorm yet! and I'm still trying to keep up. S'ok. I guess it's time to buy that Flex book... carefullIIRC, one of the changes between B2 and B3 deals with binding (or at least declaring it). the developing rich clients with Flex book was/is intended for v1.5. some differences to 2.0 may catch you out. the good news is that it's only a matter of time before books and articles catch up. it's like going to the doctor - you need to know 2/3rds of the stuff you want to find out. Yahoo! Groups Sponsor ~-- Home is just a click away. Make Yahoo! your home page now. http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] I've got me data bindings in a terrible twist. FB2b3
you mean like this? (from a cairngorm sample) 1) package com.mycompany.phones.model { [Bindable] [RemoteClass(alias=com.mycompany.phones.model.PhoneVO)] public dynamic class PhoneVO{etc my understanding: the data gets bound to an object (which is pard of the model) 2) import com.mycompany.phones.model.PhoneVO; [Bindable] public var phone:PhoneVO; and the UI is bound to that not the best explainiation, sorry Yahoo! Groups Sponsor ~-- You can search right from your browser? It's easy and it's free. See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] grief with Flexbuilder2 CF FB extentions
( flex plug-in 2.0.340 for existing eclipse 3.1 install ) installing the CF super wizard following the instructions to install it from http://www.dcooper.org/blog/client/index.cfm?mode=entryentry=3A035639-4E22-1671-53EDEEE1CAA496A4 it breaks down between these two steps 7. Ensure that the ColdFusion Flex Builder feature is selected, and then click Finish. 8. Select the check box next to CF_FBExtensions_B3_0515.zip, and then click Next. No features found on the selected site(s). Choose a different site or site category and it stops. any idea what might be wrong? thanx Yahoo! Groups Sponsor ~-- Get to your groups with one click. Know instantly when new email arrives http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Recommended technologies/frameworks for powering Flex 2.0 RIAs?
klumikaze, In regards to ColdFusion - is it still a commercial product licensed on a per-server basis? yes. although Adobe are going to good efforts with site-wide enterprise licences for bigger stuff and there's lots of commercial web hosts for smaller. I think we're looking for a way to do it with Java (possibly through a framework). Any past experiences with such frameworks, or any recommendations? are you *really* set on Java? ColdFusion integration with Flex by either remoting or webservices is very good and fast to develop**. In fact, developing remoting- or webservices-based applications in ColdFusion (as a RAD tool) may just save you more than enough development $$$ to pay for the licences. And there's heaps of CF frameworks to chose from, most inspired by Java ones (since CF compiles down ot Java) just my (biased) 2c barry.b ** one of the things I had to ensure before we even considered Flex. I.E: for us, the decider. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Flex and courseware
(FYI, SarahB) Flex as a courseware presentation layer. we're evaluating Flex as a front end to the Blackboard LMS (alternative to the JSP templates), as well as custom interactive tools and other ColdFusion-powered systems here. Does any one know if any of the known open source CMS out there ( mooodle, claroline , etc )... we had a look at Moodle (I don't know of any other O/S ones). For us (a university) moodle is promising but not quite there yet. we're looking at Flex to integrate with Blackboard via webservices - they've made it pretty much a closed system. but what we want to use a Flash front end for, Blackboard will only be used for the dumb stuff anyway (class lists, save results, etc). there's just not that many hooks into the Blackboard guts (certainly not at the java value objects level). for our CF systems, it's a much better situation with the addition of remoting and gateways. ... feature a modular business layer that would allow me to use a flex front-end instead of an HTML one? again it comes down to integration. AFAICS, Flex applications ( mx:Application...) lend itself nicely to a module (of functionality) for a wide enterprise app - I wouldn't put too much business logic in there since it gets compiled into every SWF - just enough to do it's job and get it to talk effectively to the back end system. BTW, we're flying the Cairngorm flag one final point: this all still in evaluation. until the prices are finalised we're not going to go in boots'n'all (yet). Flex may be FREE but what about CF connectivity, FDS2.0, etc? and of course FlexBuilder 2.0... Feel free to answer in PVT to ... CC'd but also kept onlist...any other educators out there? pls speak up. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] troubleshooting FDS gateways
I'm trying to get FDS to connect to a CF gateway and getting nowhere [MessagingError message=Unknown destination 'ColdFusionGateway'.] at mx.messaging.config::ServerConfig$/getChannelSet() at mx.messaging::MessageAgent/mx.messaging:MessageAgent::initChannelSet() at mx.messaging::MessageAgent/mx.messaging:MessageAgent::internalSend() at mx.messaging::Consumer/subscribe() at Flex2CF/initApp() it's as if the Flex gateway can't see the CF gateway. comparing flex-enterprise-services.xml and flex-message-service.xml settings with others shows up nothing out of the ordinary. is there something I can do (on the comand line perhaps) to debug this? throwing the simpliest of mxml at it only gives me a big fat error thanx barry.b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] CF, Flexmessaging and FDS2: Unknown destination 'ColdFusionGateway'
Where are you defining your ColdFusionGateway, in FDS flex-message-service.xml or in your ColdFusion flex-enterprise-services.xml ? only in the FDS flex-message-service.xml in C:\fds2\jrun4\servers\default\samples\WEB-INF\flex that's what the error means, yes? that Flex doesn't know where CF and the gateway are? I've no doubt that I've got some setting wrong, but which? - the MXML code sends the name of the gateway (Flex2CF) along to the flexgateway which, thanx to the IP address in flex-message-service.xml looks for the CF server with the gateway Flex2CF. that's the part that seems to have broken down. flex cant find the CF gateway. at the moment I just want to run the mxml file with out errors. passing data from CF thru the CF gateway to the flex message service then on to the mxml is step two. any ideas? thanx -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] CF, Flexmessaging and FDS2: Unknown destination 'ColdFusionGateway'
I'm trying to get Ben Forta's CF/FDS2/gateway example going http://www.forta.com/blog/index.cfm/2006/2/1/Getting-Started-With-ColdFusion-And-Flex-Enterprise-Services and keep hitting Unknown destination 'ColdFusionGateway' this means that FDS2 can't find ColdFusion's gateway, yes? - FDS2 (localhost:8700) can't talk to CF (installed on IIS). The FlexMessaging gateway verifies in the CF admin. I *did* install FDS2 after installing the CF connectivity (mystic upgrade), though... I'm also calling the mxml file so it compiles on the server (not in a FB project) I was really hoping Simon's answer was it...but no... http://www.mail-archive.com/flexcoders@yahoogroups.com/msg24916.html. any suggestions on things to try? below is more of the error and a copy of my flex-message-service.xml at C:\fds2\jrun4\servers\default\samples\WEB-INF\flex thanx barry.b [MessagingError message=Unknown destination 'ColdFusionGateway'.] at mx.messaging.config::ServerConfig$/getChannelSet() at mx.messaging::MessageAgent/mx.messaging:MessageAgent::initChannelSet() at mx.messaging::MessageAgent/mx.messaging:MessageAgent::internalSend() at mx.messaging::Consumer/subscribe() at Flex2CF/initApp() ?xml version=1.0 encoding=UTF-8? service id=message-service class=flex.messaging.services.MessageService messageTypes=flex.messaging.messages.AsyncMessage adapters adapter-definition id=actionscript ... / adapter-definition id=jms ... / adapter-definition id=cfgateway class=coldfusion.flex.CFEventGatewayAdapter/ /adapters destination id=ColdFusionGateway adapter ref=cfgateway / properties gatewayid*/gatewayid gatewayhostmy.IP.adderss.NFP/gatewayhost allowedIPsmy.IP.adderss.NFP/allowedIPs /properties channels channel ref=my-rtmp/ channel ref=my-polling-amf/ /channels /destination /service -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex 2 - Cairngorm 2 Tutorial
ummm what's wrong with Benoit Hediard's (Benorama) Cairngorm2 reworking (of Ben Forta's) phone selector app? it's up to date with the Beta 3 changes and works a treat. Shows off Cairngorm2 structure and useage nicely. my install process was a touch different but it *does* work check the list archives, even as reciently as last week. or http://www.richinternetapps.com/archives/000148.html also, michael corbridge is doing a re-vamp of the Cairngorm Sample Store with FDS connectivity. his sample files also include a word doc to play dorithy dix type questions on why cairngorm (i've been asked some of these exact same questions! - now I have answers...) read more around this thread http://mail-archive.com/flexcoders%40yahoogroups.com/msg27285.html HTH barry.b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] cairngorm phone sample and new Stateless Commands mod
I'm using Benoit Hediard's cairngorm 2 version of the Phone sample and the latest Caringorm2 framework which includes changes to the way commands are called to make them stateless: http://weblogs.macromedia.com/swebster/archives/2006/05/cairngorm_2_for_1.cfm the change to the call in phones.ApplicationController.as was easy enough (as per article) but I'm lost (all still very new to me) on changes needed to the phones' commands this affects both public class PhoneGetCommand implements Command, Responder {...} public class PhoneListGetCommand implements Command, Responder {...} Interface method onResult in namespace org.nevis.cairngorm.business:Responder is implemented with an incompatible signature in class com.mycompany.phones.controller:PhoneListGetCommand. (PhoneListGetCommand.as line 17) any suggestions? thanx PS: I'm also getting a: Implicit coercion of a value with static type Object to a possibly unrelated type Array. PhoneListGetCommand.as phones_cairngorm2/com/mycompany/phones/controller line 33 public function onResult(event:ResultEvent):void { model.phones = new ArrayCollection(event.result); /** HERE **/ model.applicationState = ApplicationView.STATE_DEFAULT; } PPS: there's also an unneeded //import org.nevis.cairngorm.samples.login.commands.LoginCommand; in ApplicationController.as but I'm nit-picking and grateful Benoit made this sample. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flexbuilder 2 and remoting config: quick question.
I'm trying to get Flexbuilder to build remoting projects on an IIS install of ColdFusion from http://www.mail-archive.com/flexcoders@yahoogroups.com/msg24818.html quote: If everything is setup correctly, Flex Builder will create a folder with the same name as the project on the CF server. For the above example the URL will be http://dev-machine:8500/CFTest. All generated output will be automatically uploaded to the remote server. this is NOT what I'm after I'm trying to get Flexbuilder to create a web folder with a *different* name to the project name (so when I build it ends up as http://localhost/project101/main.html not http://localhost/my%20project/main.html AND this is an IIS install of CF so the :8500 is irrelivant. no wonder it can't find the SWF I realise it's just me trying to get used to FB workflows but is there an *easy* way to do this without resorting to CF mappings everywhere? the problem seems to be that FB is expecting *flex-enterprise-services.xml* to be in the WEB-INF/flex folder (which it is) BUT that maps to the webroot (which it doesn't: http:// localhost - c:\inetpub\wwwroot) any suggestions? thanx -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flexbuilder 2 and remoting config: quick question.
thanx Muzak ...I'm getting closer In c:\inetpub\wwwroot\ create a folder called WEB-INF Copy the flex folder (containing the flex-enterprise-services.xml file) from the cf root to the WEB-INF folder. ahhh... makes sence now. suspect this work-around for this config is some rough edges between FB, the FDS installer and IIS/CF Next tell Flex Builder which folder to place its output. Select 'Flex Build Path'. At the bottom fill in the folder name for 'Output folder' (e.g. project101) Output Folder: project101 (in C:\Inetpub\wwwroot) (looks good so far...) Cannot create a link to C:\Inetpub\wwwroot\project101 because it overlaps the location of the project that contains the linked resource. damn! linked resource? is this upset over C:\Inetpub\wwwroot\WEB-INF\flex\flex-enterprise-services.xml or can I not have a project (and it's files) in the same web folder that it's to be compiled to (and run from)? thanx again b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flexbuilder 2 and remoting config: quick question.
leave the 'Output folder' blank (I think). ahh! that got it. Cheers! Normally you don't store a project (source files) 'on the server', only the output. true enough, but it does make it real handy moving experiments from one machine to another or ditching the whole lot in one go (now if only it will delete the directory as well - not just the contents - when I delete the project...not asking, just thinking) thanx for your help, Muzak. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Cairngorm Sample Store
for something a bit more recient: (Im just in the process of getting it going ATM) http://www.richinternetapps.com/archives/000148.html Cairngorm 2.0 / Flex 2.0 / Coldfusion Sample Application - for real this time So careful what you wish for ... I made a mistake in suggesting that Benoit Hediard had ported the Flex Phone Store application to use Cairngorm 2.0, Flex 2.0 and Coldfusion - he wasn't actually using Cairngorm 2.0. However, between this blog post and the last he's thought but that's a good idea and done the port. Kudos to Benoit, and kudos to Cairngorm as to how easy this was to achieve. Benoit has let me know that the source code is in this zip here - so go get it ! Posted by Steven Webster at February 16, 2006 08:38 PM -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] wierdness with flex2beta3 flexstore demo app and FF
just did a player 9 install in IE http://flexapps.macromedia.com/flex2beta3/flexstore/flexstore.html comes up fine in FF, I get a flash message saying content required FP8 (but 9 is installed) anyone else get this too or is it just me? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] newbie Cairngorm 2.0 question
I have a large rambling app to build that's mostly just data maintainance and retrieval screens. I was thinking of breaking it down as each section of functionality (for the user) is a seperate application. the trouble there is with using various screens. Each screen will consist of a multi-tabbed form and each tab handles specific functionality - (basic details/extended details/associated details, etc) each tab is a seperate view in Cairngorm terminology, yes? the trick is that each of the contents of the tab can be reused in other parts of the same application or indeed in other applications (ie: other sections of the whole product) HOWEVER, when that happens, there can be different logic (both at a view and a model level) for that view/tab. It's based on context (where in the app) as well as workflow (are they editing or appending? different logic applies...). As far as the user sees, tab orders change, validation changes, different data is retrieved, and different business logic applies. I call it micro-logic. on the face of it, the easiest way to build it (but not maintain) is to just copy the MXML for each tab and write different processing logic depending where it is in the app(s)...but I'm wanting to reuse as much code as possible for future maintainance. Mostly the same user events, commands, VO's being passed around is this where viewHelpers...er...help? even though they're being replaced with the idea of binding the view to the ModelLocator? any suggestions? thanx -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flex 2: Macs and Data Services, ColdFusion Connectivity
we're really needing to get Flex Data Services and ColdFusion/Flex Connectivity going on a Mac Any Mac users done this? thanx barry.b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex 2: Macs and Data Services, ColdFusion Connectivity - thanx
thanx simeon, it's encouraging you have to run the install on a pc and then scavenge the files you need. i was hoping that would be all that was needed. or at least generic) installer for FDS now. ahhhthat'd be the java version thanx mate. there's a few of us here needing to do this cheers barry.b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] quick Q's: ColdFusion/Flex 2.0 Connectivity...for a Mac
hi guys... I just want to check a couple of quick details about setting up Flex2.0 on a Mac. (1) Even tho I've got Eclipse (and the CFEclipse plugin) working OK on the Mac (10.4.5), there isn't FlexBuilder for Mac yet? not even as a plug-in? this means using ANT scripts or whatever to use the command line compiler? (BTW, is the Mac's XCode any help?) (2) I also noticed on the MACR Flex download site that the ColdFusion/Flex 2.0 Connectivity download is for windows only. is this still true (and no work-arounds)? I ask 'cos I wanted to see if I could - install Flex 2.0 server in one of the JRun instances (with CF being in another) - then have CF for the backend and use remoting to connect them these are baby steps for me trying to branch out from CF and ASP.NET development and I just need to get my little iBook set up and I'll be away. so any help is appreciated. thanx barry.b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Catching the Closing of the Browser in Flex
Thanks very much, that would be appreciated, I will do the same should I get anywhere. Barry From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy SprattSent: 27 June 2005 19:21To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Catching the Closing of the Browser in Flex I am currently working with this issue as well, and will post if/when I learn anything of value. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Barry CorriganSent: Monday, June 27, 2005 11:07 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Catching the Closing of the Browser in Flex Thanks much, thatis a great idea. I will look into this and hopefully it should work. Thanks, Barry From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul QabizSent: 27 June 2005 15:39To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Catching the Closing of the Browser in Flex Hi, Another way is tocatch the unload events of browser in _javascript_.I am not sure, if it works consistently in all browsers but IE andFirefox0.9version support it. So make sure of such things before using... Search for onBeforeUnload and onUnload events for browser. The logic could be: - User tries to close the browser - you capture the event in onBeforeUnload, show a _javascript_alert to user that "s/he should save data before existing, click Ok to save or Cancel to close".. - If user clicks Ok, s/he on same, send a notification to Flex app using (_javascript_ or _javascript_FlashKit). - Flex app saves data to DB and closes the browser when done... Does that sound good? you will need to test this approach properly. Link for a demo of onBeforeUnload(..) http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm http://www.4guysfromrolla.com/webtech/100604-1.shtml You can use the technique mentioned there Link for _javascript_-Flash-Integration-Kit: http://www.macromedia.com/go/flashjavascript/ Related post on Mike Chembers blog: http://weblogs.macromedia.com/mesh/archives/2005/06/flash_javascrip.cfm -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dirk EismannSent: Monday, June 27, 2005 7:52 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Catching the Closing of the Browser in Flex You could use the application server's session management -the usersession will time out by default after a given amount of inactivity so you could probably hook in there. If you need some kind of real-time logging then you might want to take a look at the Flash Comm Server - this wayyou could establish a persistent connection between client and server. If the browser is closed the connection to the Flash Comm Server will be closed and the Flash Comm Server in turns could send a Remoting request to your backend and inform it to write to the db. One implication is that the Flash Comm Server uses the RTMP protocol which may not get through a restricted firewall. It's also possible to tunnel RTMP through HTTP but again, a packet filter could suppress this traffic. Dirk. Von: flexcoders@yahoogroups.com im Auftrag von Barry CorriganGesendet: Mo 27.06.2005 16:02An: flexcoders@yahoogroups.comBetreff: [flexcoders] Catching the Closing of the Browser in Flex Hello all, I wish to write to a database whenever a user logs out. When the browser is closed, this is an implicit logout: the user can click the close icon on the title bar, go to File-Exit in the browser's menu, press Alt-F4, browse to another page, etc. It would be nice to be able to catch when this happens, so as to write the log and logout the user. Ihave tried using the unload event in the Application tag, but this does not seem to work. Does anybody have any other ideas? Is there soemthing obvious I am missing? Thanks a lot, Barry. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Searc
[flexcoders] Catching the Closing of the Browser in Flex
Hello all, I wish to write to a database whenever a user logs out. When the browser is closed, this is an implicit logout: the user can click the close icon on the title bar, go to File-Exit in the browser's menu, press Alt-F4, browse to another page, etc. It would be nice to be able to catch when this happens, so as to write the log and logout the user. Ihave tried using the unload event in the Application tag, but this does not seem to work. Does anybody have any other ideas? Is there soemthing obvious I am missing? Thanks a lot, Barry. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Catching the Closing of the Browser in Flex
Thanks much, thatis a great idea. I will look into this and hopefully it should work. Thanks, Barry From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul QabizSent: 27 June 2005 15:39To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Catching the Closing of the Browser in Flex Hi, Another way is tocatch the unload events of browser in _javascript_.I am not sure, if it works consistently in all browsers but IE andFirefox0.9version support it. So make sure of such things before using... Search for onBeforeUnload and onUnload events for browser. The logic could be: - User tries to close the browser - you capture the event in onBeforeUnload, show a _javascript_alert to user that "s/he should save data before existing, click Ok to save or Cancel to close".. - If user clicks Ok, s/he on same, send a notification to Flex app using (_javascript_ or _javascript_FlashKit). - Flex app saves data to DB and closes the browser when done... Does that sound good? you will need to test this approach properly. Link for a demo of onBeforeUnload(..) http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm http://www.4guysfromrolla.com/webtech/100604-1.shtml You can use the technique mentioned there Link for _javascript_-Flash-Integration-Kit: http://www.macromedia.com/go/flashjavascript/ Related post on Mike Chembers blog: http://weblogs.macromedia.com/mesh/archives/2005/06/flash_javascrip.cfm -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dirk EismannSent: Monday, June 27, 2005 7:52 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Catching the Closing of the Browser in Flex You could use the application server's session management -the usersession will time out by default after a given amount of inactivity so you could probably hook in there. If you need some kind of real-time logging then you might want to take a look at the Flash Comm Server - this wayyou could establish a persistent connection between client and server. If the browser is closed the connection to the Flash Comm Server will be closed and the Flash Comm Server in turns could send a Remoting request to your backend and inform it to write to the db. One implication is that the Flash Comm Server uses the RTMP protocol which may not get through a restricted firewall. It's also possible to tunnel RTMP through HTTP but again, a packet filter could suppress this traffic. Dirk. Von: flexcoders@yahoogroups.com im Auftrag von Barry CorriganGesendet: Mo 27.06.2005 16:02An: flexcoders@yahoogroups.comBetreff: [flexcoders] Catching the Closing of the Browser in Flex Hello all, I wish to write to a database whenever a user logs out. When the browser is closed, this is an implicit logout: the user can click the close icon on the title bar, go to File-Exit in the browser's menu, press Alt-F4, browse to another page, etc. It would be nice to be able to catch when this happens, so as to write the log and logout the user. Ihave tried using the unload event in the Application tag, but this does not seem to work. Does anybody have any other ideas? Is there soemthing obvious I am missing? Thanks a lot, Barry.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.