Re: [flexcoders] Lightweight Flex framework?
check out robotlegs.. its PureMVC simplified and has a good community following to help when you need to ask questions. On Wed, Mar 3, 2010 at 11:01 AM, Nick Middleweek n...@middleweek.co.ukwrote: Hi, Here's one to those that have experience with many frameworks... I'm currently using Cairngorm in a big project but want to start a couple of personal projects and want to use a proven framework for good measure. Is there a lightweight framework that is good for knocking out quick prototypes/ personal projects? Or would you advise not bother and simply use Flex Events, maybe Event Broker and a simple model attached to the main application.mxml file? Thanks, Nick -- “When you choose hope, anything is possible.” -Christopher Reeve
Re: [flexcoders] Re: how to get the name of a video file after upload
What you need to do is create some xml in your file upload cfm page cfprocessingdirective suppresswhitespace=true cftry cffile action=upload result=newimg fileField=filedata destination=#expandPath('/yourPath')# nameconflict=overwrite cfxml variable=statusresultstatusOK/statusmessagecfoutput#expandPath('/yourPath')#/cfoutput//message/result/cfxml cfcatch cfxml variable=statusresultstatusError/statusmessagecfoutput#cfcatch.Message#/cfoutput/message/result/cfxml /cfcatch /cftry cfoutput#status#/cfoutput /cfprocessingdirective , and then in your flex code you need to listen for the DataEvent.UPLOAD_COMPLETE_DATA event and then you can parse that xml for the file name. public function uploadDataComplete(event:DataEvent):void { var result:XML = new XML(event.data); /* status_txt.text += 'Upload Data Complete'; status_txt.text += 'RESULT: ' + result.toString() + '' status_txt.text += 'STATUS: ' + result.status + '\n'; status_txt.text += 'MESSAGE: '+ result.message + '\n'; status_txt.text += result.message + fileName; */ //newimg.source = ../../images/ + fileName; } HTH On Mon, Jan 4, 2010 at 7:56 AM, ZIONIST stinas...@yahoo.com wrote: How do i get it back into flex on the complete event? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, claudiu ursica the_bran...@... wrote: I never worked with cold fusion ... however your code on the server writes somewhere the file on the disk and names it somehow. The method that does that could return the file name in case of a successful save and you can get it back into flex on the complete event. HTH, Claudiu From: ZIONIST stinas...@... To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Sent: Mon, January 4, 2010 3:10:33 PM Subject: [flexcoders] how to get the name of a video file after upload hi guys, i have built a video uploader in flex with a coldfusion backend. what i do is allow the user to upload a video file (using cffile) and use ffmpeg to convert the file into .flv format(this is because flex videoplayer only plays .flv files) which is then stored(file. flv) on the server. this all works perfectly, but i want to get the name of the flv file on the server into the textinput and store it in the database. how do i do that? here is the code, in this case the textinput is filled with the original file name(something like file.mov or file.mp4 etc and i want to fill it with the name of the converted file eg file.flv) ?xml version=1.0 encoding=utf- 8? mx:FormItem xmlns:mx=http://www.adobe. com/2006/ mxml creationComplete= init() mx:Script ![CDATA[ import mx.managers. PopUpManager; import components.progress _popup; //video upload / / / / / / / /// private const FILE_UPLOAD_ URL:String = cfcs/vidUpload. cfm; private var fileRef:FileReferen ce; private var progress_win: progress_ popup; private function init():void { fileRef = new FileReference( ); fileRef.addEventLis tener(Event. SELECT, fileRef_select) ; fileRef.addEventLis tener(Event. OPEN, openHandler) ; fileRef.addEventLis tener(ProgressEv ent.PROGRESS, progressHandler) ; fileRef.addEventLis tener(Event. COMPLETE, fileRef_complete) ; } private function browseAndUpload( ):void { //var fileFilter:FileFilt er = new FileFilter( Files, *.pdf;*.doc; *.docx); fileRef.browse( ); message.text = ; } private function fileRef_select( event:Event) :void { try { fileRef.upload( new URLRequest(FILE_ UPLOAD_URL) ); } catch (err:Error) { message.text = ERROR: zero-byte file; } vid.text = event.currentTarget .name; createdprogressPopu p(); } private function fileRef_complete( event:Event) :void { message.text += (complete); removeMe(); } private function createdprogressPopu p():void{ progress_win= progress_ popup(PopUpManag er.createPopUp( this,progress_ popup,true) ); } private function removeMe():void { PopUpManager. removePopUp( progress_ win); } private function progressHandler( event:ProgressEv ent):void{ progress_win. uploadProgress. setProgress( event.bytesLoade d, event.bytesTotal) ; } private function openHandler( event:Event) :void { progress_win. uploadProgress. label = Uploading %3%% of image file.; } ]] /mx:Script mx:HBox width=240 mx:TextInput width=155 id=vid/ mx:Button label=Browse click=browseAndUpl oad();/ /mx:HBox mx:Label id=message / /mx:FormItem -- “When you choose hope, anything is possible.” -Christopher Reeve
Re: [flexcoders] Re: how to get the name of a video file after upload
yes, you are using fileReference. public function selectFile():void { file = new FileReference(); file.addEventListener(Event.SELECT, fileSelected); file.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, uploadDataComplete); file.addEventListener(Event.COMPLETE, uploadComplete); file.addEventListener(IOErrorEvent.IO_ERROR, handleError); file.browse(); } public function handleError(event:IOErrorEvent):void { //status_txt.text = 'ERROR: ' + event.text + ''; trace(UPLOAD ERROR: + event.text); } public function fileSelected(event:Event):void { file = FileReference(event.target); //file_txt.text = file.name; //status_txt.text = 'upload file: '+ file.name + ''; fileName=file.name; var request:URLRequest = new URLRequest(); request.url = /cfc/upload.cfm; file.upload(request); } public function uploadDataComplete(event:DataEvent):void { var result:XML = new XML(event.data); /* status_txt.text += 'Upload Data Complete'; status_txt.text += 'RESULT: ' + result.toString() + '' status_txt.text += 'STATUS: ' + result.status + '\n'; status_txt.text += 'MESSAGE: '+ result.message + '\n'; status_txt.text += result.message + fileName; */ //newimg.source = ../../images/ + fileName; } On Mon, Jan 4, 2010 at 8:17 AM, ZIONIST stinas...@yahoo.com wrote: am sorry, am even more confused. is there a way to do this with the fileReference in flex? -- “When you choose hope, anything is possible.” -Christopher Reeve
Re: [flexcoders] how to call a function from a component to another
best way is to broadcast an event and have the listener call the function you need. On Mon, Oct 12, 2009 at 9:00 AM, quantum_ohm charly.anto...@laposte.netwrote: Hi All ! I'd like to call a function x() which is in a component X.mxml, from a function y() which is in another component Y.mxml... (As my components are called several times in different states I can't assign them any id : so this.parentApplication doesn't fit) How to do this ? Thx for help. -- “When you choose hope, anything is possible.” -Christopher Reeve
Re: [flexcoders] Re: how to call a function from a component to another
inside an init function or similar just add something like this: this.addEventListener(EVENT,function) then in your X component just dispatch a custom event that the Y component is listening for On Mon, Oct 12, 2009 at 9:24 AM, quantum_ohm charly.anto...@laposte.netwrote: Thx. But as I have no id on the components, I don't see how to add a listener on the Y.mxml or even in the Main.as that I have ? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint Tredway grum...@... wrote: best way is to broadcast an event and have the listener call the function you need. When you choose hope, anything is possible. -Christopher Reeve -- “When you choose hope, anything is possible.” -Christopher Reeve
Re: [flexcoders] Re: how to call a function from a component to another
no... it doesn't listen to the component.. it listens for an event. X broadcasts the event that Y is listening for.. On Mon, Oct 12, 2009 at 10:32 AM, quantum_ohm charly.anto...@laposte.netwrote: I've tried this... doesn't work since the addEventListener has to listen to X.mxml so X.addEventListener :-( --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint Tredway grum...@... wrote: inside an init function or similar just add something like this: this.addEventListener(EVENT,function) then in your X component just dispatch a custom event that the Y component is listening for When you choose hope, anything is possible. -Christopher Reeve -- “When you choose hope, anything is possible.” -Christopher Reeve
[flexcoders] Reading a 2D barcode
I have been looking for an actionscript library to read 2D barcodes but I have not run across one yet. Does anyone know of a library, and if so, do you mind sharing? Thanks! -- “When you choose hope, anything is possible.” -Christopher Reeve
Re: [flexcoders] Re: Reading a 2D barcode
The idea is to use a web cam to read the barcode.. Just trying to get all my options in front of me so I can make an informed decision. On Tue, Jun 30, 2009 at 10:59 AM, valdhor valdhorli...@embarqmail.comwrote: Seeing as Flash has no access to a scanner, I don't see how you could create a library for reading 2D barcodes. You are probably better off looking into Merapi (http://merapiproject.net/) as a bridge. You could use Zebra Crossing (http://code.google.com/p/zxing/) to read the bar codes and send the resulting data to the Flash player. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint Tredway grum...@... wrote: I have been looking for an actionscript library to read 2D barcodes but I have not run across one yet. Does anyone know of a library, and if so, do you mind sharing? Thanks! -- When you choose hope, anything is possible. -Christopher Reeve -- “When you choose hope, anything is possible.” -Christopher Reeve
Re: [flexcoders] SWFLoader showing images originally off the 'canvas'
Use a canvas as a mask on the swf loader and that should work. On Fri, May 22, 2009 at 9:20 AM, twcrone70 twcron...@yahoo.com wrote: In Flex I am trying to show examples of SWFs that run on portable devices in FlashLite. I am able to open them in a Flex control (HBox, TitleWindow etc.) and pass necessariy parameters but some images that are normally off the 'canvas' or 'stage' for the flash SWFs are showing up outside the container that I am loading the SWFs into. Setting heights and widths seem to constrain the main part of the swf but the other stuff still appears off ends but within the boundaries of the Flex app itself. Any ideas how to 'crop' the Flash lite SWFs? Thanks, - Todd -- “When you choose hope, anything is possible.” -Christopher Reeve
Re: [flexcoders] FB 3.0.2 plug-in
http://www.adobe.com/support/flex/downloads_updaters.html On Wed, Nov 19, 2008 at 8:03 AM, Richard Rodseth [EMAIL PROTECTED] wrote: So how does one upgrade? I saw no 3.0.2 plug-in installer on the downloads page. On Wed, Nov 19, 2008 at 3:36 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 19 Nov 2008, Richard Rodseth wrote: Is there an Eclipse plug-in version of 3.0.2 ? Or do I install 3.0.1 and run the updater from within Eclipse? The in-Eclipse updater can't update the Builder plugin (becuase there may be a new Flash player req., for instance). -- Tom Chiverton Helping to evangelistically orchestrate data This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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 -- When you choose hope, anything is possible. -Christopher Reeve
Re: [flexcoders] FB 3.0.2 plug-in
no problem, took me a bit to find it as well. On Wed, Nov 19, 2008 at 8:11 AM, Richard Rodseth [EMAIL PROTECTED] wrote: Ah, thanks. I guess I it was the full download that was only available in 3.0.1. On Wed, Nov 19, 2008 at 6:05 AM, Clint Tredway [EMAIL PROTECTED] wrote: http://www.adobe.com/support/flex/downloads_updaters.html On Wed, Nov 19, 2008 at 8:03 AM, Richard Rodseth [EMAIL PROTECTED]wrote: So how does one upgrade? I saw no 3.0.2 plug-in installer on the downloads page. On Wed, Nov 19, 2008 at 3:36 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 19 Nov 2008, Richard Rodseth wrote: Is there an Eclipse plug-in version of 3.0.2 ? Or do I install 3.0.1 and run the updater from within Eclipse? The in-Eclipse updater can't update the Builder plugin (becuase there may be a new Flash player req., for instance). -- Tom Chiverton Helping to evangelistically orchestrate data This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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 -- When you choose hope, anything is possible. -Christopher Reeve -- When you choose hope, anything is possible. -Christopher Reeve
Re: [flexcoders] Do you use a Mac?
I recently switched to a MAC and love it. On Thu, Oct 23, 2008 at 2:04 PM, Alan [EMAIL PROTECTED] wrote: I use a mac, but I've been using Apple products since 1979 OSX is Unix based, and a lot of devs like the Unix- ish features. My experience with designing and developing on a mac is that it's more straight forward to use. If you love to inker with your OS and hardware, go Microsoft, for a more straight forward enviroment go OSX. Apple has an very large market share of US laptops - and gaining fast. Alan On Oct 23, 2008, at 1:48 PM, Matthew Shirey wrote: Do most Flex developers work on Mac? -- When you choose hope, anything is possible. -Christopher Reeve
[flexcoders] Flash based flex component issue
Hey all. We are working on a 'game' for kids using Flex and Flash together and have run into a random issue. We have some assets that flash made components that being referenced through a SWC. We are applying a glow filter to the objects and if the mouse movement is too quick, the components flicker. Is this an issue with the redrawing of the component due to the glow being added and then removed? Thanks -- When you choose hope, anything is possible. -Christopher Reeve
Re: [flexcoders] Flexbuilder for iPhone?
that would rock.. I just got an iPhone and I am learning the SDK for it, but flex apps would be awesome. On Fri, Aug 8, 2008 at 2:33 PM, dnk [EMAIL PROTECTED] wrote: On 8-Aug-08, at 12:18 PM, Merrill, Jason wrote: Ryan Stewart just tweeted, I just let Adobe's iPhone secret slip while at lunch with effectiveUI. We're going to have Flex Builder for the iPhone. http://brightkite.com/people/ryanstewart/ http://twitter.com/ryanstewart For real? Could you actually code flexbuilder on an iPhone? Seems like a pretty small screen... I suspect they mean building flex apps to run on the iphone so I guess a flash player on the iphone? purely speculation. -- When you choose hope, anything is possible. -Christopher Reeve
[flexcoders] Embedding fonts
I have tried using the documentation to embed a font into my flex app, but are there any gotcha's in doing this? Thanks! -- When you choose hope, anything is possible. -Christopher Reeve
Re: [flexcoders] Embedding fonts
I figured it out.. it was a 'duh' moment but its working now. On Tue, Jul 1, 2008 at 4:19 PM, Jeri Lamy [EMAIL PROTECTED] wrote: A few. I fought with this for a while so might be able to help...can you just not get it to show up? Can you post your code? Jeri Lamy On Tue, Jul 1, 2008 at 4:05 PM, Clint Tredway [EMAIL PROTECTED]grumpee%40gmail.com wrote: I have tried using the documentation to embed a font into my flex app, but are there any gotcha's in doing this? -- When you choose hope, anything is possible. -Christopher Reeve
Re: [flexcoders] Dynamically Resizing
use percentWidth and percentHieght On Wed, Apr 16, 2008 at 12:46 PM, meltonianweb [EMAIL PROTECTED] wrote: Greetings, I'm new to flex coding and what I'm trying to do with my current project is automatically resize panes (canvases?) by mouse actions like mouseover. I need to use percentages because I want the total width to be 100% regardless of the browser size. I've written an actionscript module and I'm trying to use ObjectName.width, but it only takes a number as an argument. This is probably a silly question and the answer is probably easy. Thanks a bunch for all your help. Mel -- http://grumpee.instantspot.com/blog
[flexcoders] Combobox label function help
I am helping a fellow coder with using a labelFunction in a combobox that is an itemRenderer in a datagrid. Is there a special way I need to reference the labelFunction? Thanks -- http://grumpee.instantspot.com/blog
Re: [flexcoders] How do I set width to 100% in actionscript?
you have to use percentWidth On Tue, Mar 25, 2008 at 1:43 PM, luvfotography [EMAIL PROTECTED] wrote: How do I set the width to 100% using actionscript?? It only allows a number - not a string!?! var newcanvas:Canvas = new Canvas(); newcanvas.width = 100%; 1067: Implicit coercion of a value of type String to an unrelated type Number. -- http://grumpee.instantspot.com/blog
RE: [flexcoders] Re: Problems setting up Flex with CF 7.0.2
No problem. I have had to go through this exact same issue 2 times, at separate companies, and this was the solution both times. Clint Tredway Cynergy Systems | Consultant 706 7th St SE, Washington DC, 20003 W. http://www.cynergysystems.com E. [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of stephen50232 Sent: Friday, February 29, 2008 11:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Problems setting up Flex with CF 7.0.2 Thanks Clint, we are giving this a go, fingers crossed. Stephen --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Clint Tredway [EMAIL PROTECTED] wrote: Yes, this is the cause of your issues. You need to do a fresh install of 7.02 and it will work. Somewhere along the way, the 'upgrades' hose the gateway. Clint Tredway Cynergy Systems | Consultant 706 7th St SE, Washington DC, 20003 W. http://www.cynergysystems.com E. [EMAIL PROTECTED] From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of stephen50232 Sent: Friday, February 29, 2008 11:01 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Problems setting up Flex with CF 7.0.2 It was a fresh install of 7.0, then we added the update to 7.0.1, then we added the update to 7.0.2. Is this the type of upgrade you was talking about? Stephen --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Clint Tredway clint.tredway@ wrote: Was this server a fresh install of 7.02 or an upgrade to 7.02? I would bet money this was an upgrade and I have seen this several times... the gateway gets hosed with the upgrade and the only fix is to do a fresh install of 7.02. Clint Tredway Cynergy Systems | Consultant 706 7th St SE, Washington DC, 20003 W. http://www.cynergysystems.com E. clint.tredway@ From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of stephen50232 Sent: Friday, February 29, 2008 10:41 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Problems setting up Flex with CF 7.0.2 Hi, I know this has been gone over again and again, but I cannot get CF 7.0.2 and Flex to work together. I've read loads of blog posts, forum posts and the responses go from its really simple to its a nightmare to set up. So I'm going to post how we currently have Flex and CF setup and see if anyone can shed some light on why its not working. What we are finding is that when we try to access the Flex2gateway via the URL we get a 404 error message, and when we try and run a test app that uses CF and Flex we get this error message: errorID = 0 faultCode = Client.Error.MessageSend faultDetail = Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://aacoldfusiondev/flex2gateway/' faultString = Send failed message = faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://aacoldfusiondev/flex2gateway/'' name = Error rootCause = (Object)#1 code = NetConnection.Call.Failed description = HTTP: Failed details = http://aacoldfusiondev/flex2gateway/; level = error So our setup is we have a dev server running IIS and windows server 2003. We have install CF Enterprise 7.0.2 on this server, and set the Enable Flash Remoting support. The JVM that CF is using is version 1.4.2_09 We put our Flex applications under the wwwroot folder of Inetpub and not the wwwroot folder under C:\CFusionMX7\wwwroot\. One question though in the wwwroot of CFusion, the web-inf folder is there, but it isn't under C:\inetpub\wwwroot should it. Should we move the web-inf folder from CFusion to inetpub or copy it there. If so how does Flex know when web-inf folder to read from? I've seen that some people with a similar problem have made changes to their service-config.xml file, by setting the IP address and port number of the server. Is this a way to solve this problem? Any changes we have made to the service-config.xml file do not seem to have helped, even after we have restart the CF server. We've been stuck setting this up for a while now, I always though that CF and Flex we designed to work together smoothly with hardly any setup problems, but that does seem to be. Any help would be great. Thanks Stephen
RE: [flexcoders] Problems setting up Flex with CF 7.0.2
Was this server a fresh install of 7.02 or an upgrade to 7.02? I would bet money this was an upgrade and I have seen this several times... the gateway gets hosed with the upgrade and the only fix is to do a fresh install of 7.02. Clint Tredway Cynergy Systems | Consultant 706 7th St SE, Washington DC, 20003 W. http://www.cynergysystems.com E. [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of stephen50232 Sent: Friday, February 29, 2008 10:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problems setting up Flex with CF 7.0.2 Hi, I know this has been gone over again and again, but I cannot get CF 7.0.2 and Flex to work together. I've read loads of blog posts, forum posts and the responses go from its really simple to its a nightmare to set up. So I'm going to post how we currently have Flex and CF setup and see if anyone can shed some light on why its not working. What we are finding is that when we try to access the Flex2gateway via the URL we get a 404 error message, and when we try and run a test app that uses CF and Flex we get this error message: errorID = 0 faultCode = Client.Error.MessageSend faultDetail = Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://aacoldfusiondev/flex2gateway/' faultString = Send failed message = faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://aacoldfusiondev/flex2gateway/'' name = Error rootCause = (Object)#1 code = NetConnection.Call.Failed description = HTTP: Failed details = http://aacoldfusiondev/flex2gateway/; level = error So our setup is we have a dev server running IIS and windows server 2003. We have install CF Enterprise 7.0.2 on this server, and set the Enable Flash Remoting support. The JVM that CF is using is version 1.4.2_09 We put our Flex applications under the wwwroot folder of Inetpub and not the wwwroot folder under C:\CFusionMX7\wwwroot\. One question though in the wwwroot of CFusion, the web-inf folder is there, but it isn't under C:\inetpub\wwwroot should it. Should we move the web-inf folder from CFusion to inetpub or copy it there. If so how does Flex know when web-inf folder to read from? I've seen that some people with a similar problem have made changes to their service-config.xml file, by setting the IP address and port number of the server. Is this a way to solve this problem? Any changes we have made to the service-config.xml file do not seem to have helped, even after we have restart the CF server. We've been stuck setting this up for a while now, I always though that CF and Flex we designed to work together smoothly with hardly any setup problems, but that does seem to be. Any help would be great. Thanks Stephen
RE: [flexcoders] Re: Problems setting up Flex with CF 7.0.2
Yes, this is the cause of your issues. You need to do a fresh install of 7.02 and it will work. Somewhere along the way, the 'upgrades' hose the gateway. Clint Tredway Cynergy Systems | Consultant 706 7th St SE, Washington DC, 20003 W. http://www.cynergysystems.com E. [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of stephen50232 Sent: Friday, February 29, 2008 11:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Problems setting up Flex with CF 7.0.2 It was a fresh install of 7.0, then we added the update to 7.0.1, then we added the update to 7.0.2. Is this the type of upgrade you was talking about? Stephen --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Clint Tredway [EMAIL PROTECTED] wrote: Was this server a fresh install of 7.02 or an upgrade to 7.02? I would bet money this was an upgrade and I have seen this several times... the gateway gets hosed with the upgrade and the only fix is to do a fresh install of 7.02. Clint Tredway Cynergy Systems | Consultant 706 7th St SE, Washington DC, 20003 W. http://www.cynergysystems.com E. [EMAIL PROTECTED] From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of stephen50232 Sent: Friday, February 29, 2008 10:41 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Problems setting up Flex with CF 7.0.2 Hi, I know this has been gone over again and again, but I cannot get CF 7.0.2 and Flex to work together. I've read loads of blog posts, forum posts and the responses go from its really simple to its a nightmare to set up. So I'm going to post how we currently have Flex and CF setup and see if anyone can shed some light on why its not working. What we are finding is that when we try to access the Flex2gateway via the URL we get a 404 error message, and when we try and run a test app that uses CF and Flex we get this error message: errorID = 0 faultCode = Client.Error.MessageSend faultDetail = Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://aacoldfusiondev/flex2gateway/' faultString = Send failed message = faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://aacoldfusiondev/flex2gateway/'' name = Error rootCause = (Object)#1 code = NetConnection.Call.Failed description = HTTP: Failed details = http://aacoldfusiondev/flex2gateway/; level = error So our setup is we have a dev server running IIS and windows server 2003. We have install CF Enterprise 7.0.2 on this server, and set the Enable Flash Remoting support. The JVM that CF is using is version 1.4.2_09 We put our Flex applications under the wwwroot folder of Inetpub and not the wwwroot folder under C:\CFusionMX7\wwwroot\. One question though in the wwwroot of CFusion, the web-inf folder is there, but it isn't under C:\inetpub\wwwroot should it. Should we move the web-inf folder from CFusion to inetpub or copy it there. If so how does Flex know when web-inf folder to read from? I've seen that some people with a similar problem have made changes to their service-config.xml file, by setting the IP address and port number of the server. Is this a way to solve this problem? Any changes we have made to the service-config.xml file do not seem to have helped, even after we have restart the CF server. We've been stuck setting this up for a while now, I always though that CF and Flex we designed to work together smoothly with hardly any setup problems, but that does seem to be. Any help would be great. Thanks Stephen
RE: [flexcoders] Populating DataGrid
Try this: Import mx.utils.ObjectUtil And then trace out the result to make sure you are getting something back by doing this trace(ObjectUtil.toString(evt.result)) Clint Tredway Cynergy Systems | Consultant 706 7th St SE, Washington DC, 20003 W. http://www.cynergysystems.com E. [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of CK Sent: Saturday, January 19, 2008 3:21 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Populating DataGrid Hi, Yes using e4x, however evt.result.dvd, did not populate the grid. Chris On Jan 19, 2008, at 1:08 PM, Sherif Abdou wrote: evt.result.dvd instead, ur using e4x correct? - Original Message From: CK [EMAIL PROTECTED] mailto:ck%40bushidodeep.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Saturday, January 19, 2008 2:20:36 PM Subject: [flexcoders] Populating DataGrid Hi all, The following shorter code renders the dataGrid, but without data. ?xml version=1.0 encoding=utf- 8? mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml layout=absolute creationComplete= dvdData. send() mx:Script ![CDATA[ import mx.rpc.events. *; import mx.collections. *; import mx.controls. *; [Bindable]private var dvdCollection: ArrayCollection; private function dvdCollectionHandle r(evt:ResultEven t):void { dvdCollection = evt.result.dvdColle ction.dvd; } ]] /mx:Script mx:HTTPService id=dvdData url=assets/ dvdCollection. xml result=dvdCollecti onHandler( event) / mx:DataGrid x=56 y=250 width=950 dataProvider= {dvdCollection} / /mx:Application --DVD Collection-- - --- dvdCollection. xml ?xml version=1.0 encoding=iso- 8859-1? dvdCollection dvd titlePulp Fiction/title genreCrime/ Dramagenre ratingR/rating actorsJohn Travolta,Sam Jackson/actors directorsLawrence Bender/directors plotGangsters, Boxers and Dancing/plot /dvd dvd titleThe Professional /title genreCrime/ Dramagenre ratingR/rating actorsJean Reno, Natalie Portman/actors directorsLuc Besson/directors plotAssassin Becomes a Nanny/plot /dvd /dvdCollection On Jan 18, 2008, at 12:34 PM, Merrill, Jason wrote: I wasn't really about posting ettiquite, :) I just thinking how you can get others to better repond to get the answers you need. Also, where do you declare new XML() in your code, I didn't see it. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Looking for last minute shopping deals? Find them fast with Yahoo! Search.
RE: [flexcoders] Re: File upload
No, you do not need 2 buttons, only one will be needed. In the selectHandler of the file call is where the upload actually happens. Here is the example in livedocs that should get you going. http://livedocs.adobe.com/flex/201/html/17_Networking_and_communications _173_6.html#118971 Clint Tredway Cynergy Systems | Consultant 706 7th St SE, Washington DC, 20003 W. http://www.cynergysystems.com E. [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of chr_nrt Sent: Friday, January 18, 2008 12:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: File upload Sorry Jason, i am trying to do this from yesterday onwards. I went through the documentation, i developed 2,3 samples. I search in google still i couldn't find direct single file upload in flex. In html if you put single statement it browse the file and uploads that particular file. In flex you have to put two buttons one for browse and the second one for upload. I am just trying to simplify for my end user. Correct me if i am wrong. Thanks chr --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Merrill, Jason [EMAIL PROTECTED] wrote: Well, come on now, this is one of those cases where you're not even trying. :) In the help docs, which I referenced in the last post, there are samples and examples. See the topic Working with file upload and download which appears as a topic when you seach for FileReference in Flex Help. If you want to learn to do the .NET or PHP side, then this is kinda the wrong list to ask that. Good luck to you, I don't mean to be harsh - honestly. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community
RE: [flexcoders] Flex 3 Beta 3 no syntax coloring or indenting
Mine is doing it as well. Clint Tredway Cynergy Systems | Consultant 706 7th St SE, Washington DC, 20003 W. http://www.cynergysystems.com E. [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Derrick Anderson Sent: Thursday, December 20, 2007 9:04 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 3 Beta 3 no syntax coloring or indenting mine did that too, i was using the plugin and had a different xml editor that was opening when i opened mxml files- On Dec 20, 2007 10:00 AM, valdhor [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Well, I just uninstalled beta 2 and installed beta 3. Now, there is no syntax coloring or indenting. Has anybody else experienced this? Is there a simple way to turn it back on just as it was?
[flexcoders] keeping a drawn line attached to 2 objects
Can anyone point me in the direction in drawing a line between to objects and then keeping that line attached to each object even during being dragged around the screen? Thanks -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
[flexcoders] AddChild problem
I am not sure this as much a problem as I am probably doing something wrong. I am adding child components at runtime to a vbox. These new components can be dragged to a new position. This all works. The 'problem' is that when anytime a new child is added, all the child components move the top left corner of the container they are added to. Code Below: public function creatObj(what:String):void{ var obj:UIComponent; switch(what){ case rssFirstName: obj = new textComponent; //container_vb.addChild(obj); break; case rssLastName: obj = new textComponent; //container_vb.addChild(obj); break; case rssEmail: break; case text: obj = new textComponent; //container_vb.addChild(obj); break; case textArea: obj = new textAreaComponent; //container_vb.addChild(obj); break; case checkBox: obj = new checkboxComponent; //container_vb.addChild(obj); break; default: break; } container_vb.addChild(obj); } I really need to figure out why this is happening, so any guidance is appreciated. Thanks -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] AddChild problem
Good to know. I did find a work around by adding the children to the main app container and that now works. I will change my vbox to a canvas and see what happens. On 6/1/07, Alex Harui [EMAIL PROTECTED] wrote: Adding children runs layout which for VBox will wrestle everything into a vertical stack. Canvas is better for random' positioning. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Clint Tredway *Sent:* Friday, June 01, 2007 8:31 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] AddChild problem I am not sure this as much a problem as I am probably doing something wrong. I am adding child components at runtime to a vbox. These new components can be dragged to a new position. This all works. The 'problem' is that when anytime a new child is added, all the child components move the top left corner of the container they are added to. Code Below: public function creatObj(what:String):void{ var obj:UIComponent; switch(what){ case rssFirstName: obj = new textComponent; //container_vb.addChild(obj); break; case rssLastName: obj = new textComponent; //container_vb.addChild(obj); break; case rssEmail: break; case text: obj = new textComponent; //container_vb.addChild(obj); break; case textArea: obj = new textAreaComponent; //container_vb.addChild(obj); break; case checkBox: obj = new checkboxComponent; //container_vb.addChild(obj); break; default: break; } container_vb.addChild(obj); } I really need to figure out why this is happening, so any guidance is appreciated. Thanks -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: {Disarmed} [flexcoders] Just getting started, hitting walls...
You can make your 'views' components and use a viewstack or other container to show that 'screen' or your can make each screen its own app and use the module system to pull each app into the main app as needed. On 5/30/07, Dave @ VitalPodcasts.com [EMAIL PROTECTED] wrote: I feel like its back to the Old QBasic ways... Make one super long file that does everything, thats kind of nuts. You mean there isn't a Load NextScreen type of thing? Where a whole new set of objects live? and I don't have to worry about hiding everything? So far it feels to me, so far, I need to create lots canvases for the different screens the application uses, and then create a funciton that hides all but the one in focus... Can anyone describe how they setup their code? As far as logic, Im not too worried abotu that as most the logic will be in CF webservices, im more worried about having an insane amount of visual code in the MXML. -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] hyperlink image
you dont need to use a linkbutton, the image container has a click event you can use. On 5/30/07, Flexing... [EMAIL PROTECTED] wrote: Instead use LinkButton and specify your image as ICON of the LinkButton On May 31, 2007, at 12:51 AM, Rohan Pinto wrote: how to i hyperlink an image in flex ? my code has the following: mx:Image width=120 height=90 id=ThumbNail source={rp2.currentItem.thumb} completeEffect={fadeIn}/ I'd like to invoke a URL when a user clicks on it... how could i achieve that ? -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders]How does Flex work on Mobile devices
none at this point as the player for devices is not able to run flex apps. On 4/27/07, dorkie dork from dorktown [EMAIL PROTECTED] wrote: My boss asked, What options does Flex have for deploying to mobile devices? -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] Getting started with CF and Flex
have a look at my blog http://grumpee.instantspot.com/blog/ On 4/19/07, hoffsm [EMAIL PROTECTED] wrote: I've been trying to get the coldfusion/flex communication to work on and off for about 6 months and I just can't get it to work. I can't figure out how to use the CFC's and I can't seem to follow the examples that are supposed to guide me through setting up my first application. I am following an Adobe tutorial (http://www.adobe.com/devnet/flex/articles/coldfusionflex_part1.html) Error during fill: Data source FlexDataServices could not be found. I get the following error: The error occurred in C:\Inetpub\wwwroot\samples\contact\ContactAssembler.cfc: line 28 26 : cfset msg = Error during fill: cfcatch.message 27 : /cfif 28 : cfthrow message=#msg# 29 : /cfcatch 30 : !--- If anything else happened, report the error --- I really want to start using flex and coldfusion but I just can't get the cfc/coldfusion to work. Can anyone point me in the right direction? -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] Will Microsoft's new Silverlight Player Kill our beloved Flex ?
IMO, web services should be the last option to use as a data transport. All the added soap 'tags' make it quite slow when large sets of data are passed back and forth. In all honesty, Adobe cant do anything about this since its the soap protocol that makes it slow. Since remoting and FDS both use a binary format(very small foot print), it should be what Adobe pushes since its the most efficient mode of data transport. The IDE could be better, but it is already much better than what we had in the 1.0 1.5 days. I agree, the documention could be better. The use of shared objects is perfect what you are asking. On 17 Apr 2007 19:54:54 -0700, Jim Grinsfelder [EMAIL PROTECTED] wrote: I hope it spurs Adobe to improve Flex/Flash. I'm a recent Flex developer but I like what I've been able to do with Flex in the last 4 weeks. Here's where I think Flex (or my understanding of Flex) could improve: 1. A stronger IDE. I've used Visual Studio and it clearly beats Eclipse. 2. Stronger/clearer integration with .NET web services? I'm using them now and it's ok, but figuring it out wasn't nearly as easy as the Flex Data Services. Adobe's only hurting Flex by deprecating the other back-end options in the documentation in favor of their own. 3. I'd really like to see the tools and/or documentation provide stronger support for modular team-based coding. 4. Stronger support for re-hydrating an application so it doesn't lose state when a user surfs to another page in a multi-page site and then returns to the page with the embedded Flex application. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Andrew Muller *Sent:* Monday, April 16, 2007 8:15 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Will Microsoft's new Silverlight Player Kill our beloved Flex ? No On 16 Apr 2007 18:04:35 -0700, *helihobby* [EMAIL PROTECTED] wrote: Please comment after you ready and see this: http://blogs.msdn.com/tims/archive/2007/04/15/introducing-microsoft- silverlight.aspx http://www.microsoft.com/silverlight/default_01.aspx Sean - [URL=http://www.HeliHobby.com]HeliHobby.com[/URL] -- --- Andrew Muller http://www.webqem.com linkedin: http://www.linkedin.com/pub/1/151/905 -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] simple question backgroundColor
[0xFF,0x00] On 13 Apr 2007 13:16:29 -0700, Patrick Lemiuex [EMAIL PROTECTED] wrote: I am trying to change the backGroundColor of my app... how do i put in an array for a gradient, i simply forget the syntax? Sorry for the dumb question. THanks, Patrick -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] Changing a string to reference an ID of an Object
set the result to a bindable var and then when you create the RTE, set the htmlText property to that var. On 11 Apr 2007 12:02:01 -0700, Nate Pearson [EMAIL PROTECTED] wrote: I am calling a webservice to get text for an item(RichTextEditor) that I am adding dynamically. If i set the ID of the rte to item1 how do I reference that in my webservice handler? I have the string pass through so that the handler knows that the ID should be item1. I've tried: RichTextEditor(item1).htmlText = TEST and RichTextEditor(this.getChildByName(item1)).htmlText = TEST but neither work. Any help is greatly appreciated. -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] Can flex write to local file system
No, but Apollo can do that. You can write an Apollo app that is flex based and run it on the desktop. On 04 Apr 2007 05:58:05 -0700, carltondickson [EMAIL PROTECTED] wrote: Hi guys, I under stand Flex is for RIA but if it's just an embedded swf file within HTML can it not just be used for desktop apps. All I would like to do is write an XML file (based on the work the user has done via my flex app) to a folder on the file system, is this possible? Is it possible for Flex to write to the local file system or is this something that Apollo will take care off. Also do any users have any idea on how long it will be before we can expect the first release of Apollo (Not including the current alpha one) Thanks for reading, C -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] Re: FlexBuilder Keyboard Not Responsive on the Mac
sure does, unfortunately On 04 Apr 2007 08:29:54 -0700, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 03 Apr 2007, Clint Tredway wrote: I have a toshiba core 2 duo with 2gb of ram and mine does the same thing.. With adjusted eclipse.ini settings ? -- Tom Chiverton Helping to administratively exploit sticky infomediaries on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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 -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] How to open windows with the background greyed out
when using the popUp manager, set the popUp to be modal and that will do the same as an Alert box. var helpWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(this, what, true)); in the above code, if you set the last param to true, it will be modal and that will do what you want. On 03 Apr 2007 08:40:22 -0700, stephen50232 [EMAIL PROTECTED] wrote: Hi, Can anyone tell me or point me to a article which shows how to open a window or a form, with the background greyed out, in a similar way that an Alert popup box does. I have seen loads of examples where people are using it but I cannot see how to do it. Thanks Stephen -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] Re: FlexBuilder Keyboard Not Responsive on the Mac
I have a toshiba core 2 duo with 2gb of ram and mine does the same thing.. On 03 Apr 2007 12:42:53 -0700, Tony Obermeit [EMAIL PROTECTED] wrote: I've got a 1.5ghz G4 powerbook with 1.5gb RAM and the first application I've used that made me think this machine is slow and needs upgrading is flexbuilder. sometimes the keyboard doesn't keep up with my typing, etc. -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] Problem with flash.Utils.Timer
I think its not working right because you have set the continue param to 0. What happens if you set this to some other value? On 3/30/07, kumaran_sb [EMAIL PROTECTED] wrote: Hello flexcoders this is a related question to my previous one. I'm having trouble with the flash.utils.Timer which Im using to perform a scheduled event inside a Flex app. I want the timer to fire every 10 seconds, continuously till the application is killed. Unfortunately, however I initialize it, the TimerEvent seems to fire at every instant of time(i..e it does not seem to respect the 10 second delay). Has anyone seen this issue before ?Here is my code snippet.. _pingTimer = new Timer(1,0); _pingTimer.addEventListener(TimerEvent.TIMER,onTick); _pingTimer.start(); Any help would be much appreciated. Thanks Kumaran -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] Make a component 'modal'
without seeing how you setup your code, here is my suggestion. Set the parent containers of the other 'components' enabled attribute to a bindable var or even a state, and then when that specific button is clicked, set the var to false or in the case of using states, just change the state. Either way, that should accomplish what you are describing. HTH, Clint On 30 Mar 2007 07:36:17 -0700, Shaun [EMAIL PROTECTED] wrote: Is there any way to make a component modal/hilight it? I would like to be able to gray out (like when a popup is shown) everything on the screen but a certain component when the user click on a specific button. Basically I want a popup that's not a popup, but rather sets the focus on a particular component that is already in the displaylist. Thoughts on the best way to acheive this? Thanks, Shaun -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] Re: Make a component 'modal'
I personally don't know how this would be done, but that doesnt mean it can't. On 30 Mar 2007 08:08:29 -0700, Shaun [EMAIL PROTECTED] wrote: That would work, but it would only disable controls, not give the greyed out look to the rest of the screen, like the popups do. I suppose I could do like you say, but instead have the style changed for the other components... but I'm really hoping there's some way to create a magic function like: public static function strongFocus(control:DisplayObject):void { ... } that I can call from anywhere and it will grey out and disable mouse interaction with everything on the stage but the control passed in. Am I hoping for too much? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: without seeing how you setup your code, here is my suggestion. Set the parent containers of the other 'components' enabled attribute to a bindable var or even a state, and then when that specific button is clicked, set the var to false or in the case of using states, just change the state. Either way, that should accomplish what you are describing. HTH, Clint On 30 Mar 2007 07:36:17 -0700, Shaun [EMAIL PROTECTED] wrote: Is there any way to make a component modal/hilight it? I would like to be able to gray out (like when a popup is shown) everything on the screen but a certain component when the user click on a specific button. Basically I want a popup that's not a popup, but rather sets the focus on a particular component that is already in the displaylist. Thoughts on the best way to acheive this? Thanks, Shaun -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] Re: Make a component 'modal'
99% of what you want to do can be accomplished, the only thing that i see is the blur effect that you want. I am sure it can be done, but it will not be an easy task. If most of what the user has to do is entering data into forms you can use the built in validators to 'highlight' invalid entries. On 30 Mar 2007 08:39:29 -0700, Shaun [EMAIL PROTECTED] wrote: The problem is that I don't want to pop up a new control or create a custom control every time I want this effect. Instead, I want to apply an effect to an existing control (that could be any control). An example usage would be to make sure the user completes an operation before navigating somewhere else or performing a conflicting action. Also, it would focus the user on what portion of the screen is relevant at the moment. Shaun --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Merrill, Jason [EMAIL PROTECTED] wrote: I don't know as much about Flex architecture yet - just the basics, but I know in Flash 8 the PopupWindow component, when not enabled, is completely modal. I used that a lot for achieving modal windows. Don't know if that helps any in this case... I know you're looking to make your own component model - perhaps you could extend a Flex modal component like the PopupWindow? Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Clint Tredway Sent: Friday, March 30, 2007 11:13 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Re: Make a component 'modal' I personally don't know how this would be done, but that doesnt mean it can't. On 30 Mar 2007 08:08:29 -0700, Shaun [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: That would work, but it would only disable controls, not give the greyed out look to the rest of the screen, like the popups do. I suppose I could do like you say, but instead have the style changed for the other components... but I'm really hoping there's some way to create a magic function like: public static function strongFocus(control:DisplayObject):void { ... } that I can call from anywhere and it will grey out and disable mouse interaction with everything on the stage but the control passed in. Am I hoping for too much? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto:flexcoders% flexcoders%2540yahoogroups.com , Clint Tredway grumpee@ wrote: without seeing how you setup your code, here is my suggestion. Set the parent containers of the other 'components' enabled attribute to a bindable var or even a state, and then when that specific button is clicked, set the var to false or in the case of using states, just change the state. Either way, that should accomplish what you are describing. HTH, Clint On 30 Mar 2007 07:36:17 -0700, Shaun sthalberstadt@ wrote: Is there any way to make a component modal/hilight it? I would like to be able to gray out (like when a popup is shown) everything on the screen but a certain component when the user click on a specific button. Basically I want a popup that's not a popup, but rather sets the focus on a particular component that is already in the displaylist. Thoughts on the best way to acheive this? Thanks, Shaun -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog http://grumpee.instantspot.com/blog -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog http://grumpee.instantspot.com/blog -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] Warning/Error Hints
I am going to assume that you are talking about an input form(although you may not be), you can use the built in validators to validate the form elements as the user navigates the form. On 30 Mar 2007 06:53:43 -0700, André Rodrigues Pena [EMAIL PROTECTED] wrote: Hi all, I'm developing an application for 1 month and already get bored with the Alert.show() dialog box. I don't think it's ideal to show error and warning messages to the user when he/she is interacting with a form or a button (I think it's interesting but not in these situations). I'd like to know if there's something like a balloon to let the user know something in a more slightly way. Any help is appreciated -- André Rodrigues Pena -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] wanted to share...
np, glad everything is working for you. On 28 Mar 2007 01:26:30 -0700, John Barrett [EMAIL PROTECTED] wrote: Hi Clint, Just want to let you know that I re-installed ColdFusion, and this new version, I put your code remtingExample in the localhost, and it worked great, with no issues. I guess this does work on the mac. I have no idea what was wrong with he other developer's version of ColdFusion, but this new one works great. Now I can have flex ColdFusion communicate`-` Just wanted to thank you one more time! John - Original Message From: Clint Tredway [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, March 27, 2007 7:00:55 PM Subject: [flexcoders] wanted to share... I posted this on the component list, but I know not all of you are on that list. I made a simple Count Down Timer component and I am sharing it. http://www.clinttre dway.com/ components/ CountDownTimer. ziphttp://www.clinttredway.com/components/CountDownTimer.zip Feel free to do whatever you wish with it. -- http://indeegrumpee .spaces.live. com/http://indeegrumpee.spaces.live.com/ -- Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel siteshttp://farechase.yahoo.com/promo-generic-14795097;_ylc=X3oDMTFtNW45amVpBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzEEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw--%0Ato find flight and hotel bargains. -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: Flex access to cookies
you can also reference them like this: this.parameters.paramName. I typically bind these to bindable vars in my initApp function. On 28 Mar 2007 06:32:51 -0700, Maury Sword [EMAIL PROTECTED] wrote: You can modify the flashvars in index.template.html file under the html-template directory of your project. In the follwoing snippet I have added username and pwd parameters. // if we've detected an acceptable version // embed the Flash Content SWF when all tests are passed AC_FL_RunContent( src, ${swf}, width, ${width}, height, ${height}, align, middle, id, ${application}, quality, high, bgcolor, ${bgcolor}, name, ${application}, flashvars,'historyUrl=history.htm%3Flconid=' + lc_id + 'username=myUserpwd=myPwd', code change allowScriptAccess,sameDomain, type, application/x-shockwave-flash, pluginspage, http://www.adobe.com/go/getflashplayer; ); Then reference these parameter in Flex via the Application class: import mx.core.Application; Application.application.parameters.username; Application.application.parameters.pwd; --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tony Obermeit [EMAIL PROTECTED] wrote: Thanks a lot! :-) - any code snippets to guide me as to how to do that, or links to related examples? Tony Posted by: Clint Tredway [EMAIL PROTECTED] clinttredway Tue Mar 27, 2007 5:33 pm (PST) pass in the cookie value thru the flashVars. On 3/27/07, Tony Obermeit [EMAIL PROTECTED] wrote: I need to access the cookies already created in the browser in order to determine if the user has been authenticated using oracle single sign on. 1. Which flash object / class do I use to access the cookies? 2. Anyone have tips / code to share that they've used to authenicate user with oracle sso? Thanks Tony -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Question
there is a flex jobs list that you can post it to. http://tech.groups.yahoo.com/group/flexjobs/ On 3/28/07, midwest_consulting_group [EMAIL PROTECTED] wrote: Dear Flex Mamabers, I am a recruiter currently conducting a search for a Flex developer position in the DFW area. Without breaking any of your group rules i want to know, is there is a place where i can share this opportunity with you all? Let me know how i can go about this so that if there is any interest you members can contact me. Thank you, Ali -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Connect and Retrieve from MS SQL Server 2005
you can use just about any server side language (ColdFusion, PHP, ASP, .NET, etc) to connect to SQL Server On 3/28/07, hugocorept [EMAIL PROTECTED] wrote: Hello all, In your opnion, witch is the simple/best way to connect a MSSQLServer 2005. I prefer java-less.. Thank you , Very Much! -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: Flex coldfusion simple question
No problem John. I dont use a Mac so I am not aware of these issues ;) Dont hesitate to ask any questions.
Re: [flexcoders] Flex Builder
I use the plugin. The reason is I use CFEclipse and other plugins and as those mature they are needing the newer build of Eclipse. The standalone FB is an older version of Eclipse. On 3/27/07, John Barrett [EMAIL PROTECTED] wrote: Hi, I have a question. I am just about to get Flex Builder, and i am wondering which is the best option the stand alone or the eclipse plug in? I do not use eclipse that much, well sometimes but I usually use dremweaver for ColdFusion. I like cfeclipse, I think that I am just too used to dreamweaver. Can I ask which version do you use? Is there a preference? I will manly using eclipse only for flex, as I do now,and space on my machine is no isse, and so If I have to install and extra eclipse is no worries for me. Thanks, John -- Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://us.rd.yahoo.com/evt=49936/*http://videogames.yahoo.com -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Flex Builder
What is the same is the flex part of FB and the plugin. But the underlying eclipse is not the same. If it were me, I would get the plugin not the standalone. On 27 Mar 2007 06:19:40 -0700, John Barrett [EMAIL PROTECTED] wrote: HI Clint, Thanks for the advice. I read on adobe's site that they were both the same. I am not too good setting things up, and so I was thinking about getting the standalone as everything is set up, but then to use ColdFusion Flex in the same environment without switching back and forth is a nice idea. Ecplise takes some getting used to, but all in all I do like it. With the plug ins you just throw all the files in the plugin folder? I don't think that you can use software updates in eclipse for this? Since most people on this lists are not newbies at flex, and I am I thought that this would be a good question to ask. I also found this site: http://www.riapedia.com/2007/03/20/flex_builder_stand_alone_or_eclipse_plugin Just a few days ago, and so I guess I am not the only one thinking about it. I am excited as I finally have the money for flex builder, it is just a question about which one. John - Original Message From: Clint Tredway [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, March 27, 2007 2:32:08 AM Subject: Re: [flexcoders] Flex Builder I use the plugin. The reason is I use CFEclipse and other plugins and as those mature they are needing the newer build of Eclipse. The standalone FB is an older version of Eclipse. On 3/27/07, John Barrett [EMAIL PROTECTED] com [EMAIL PROTECTED] wrote: Hi, I have a question. I am just about to get Flex Builder, and i am wondering which is the best option the stand alone or the eclipse plug in? I do not use eclipse that much, well sometimes but I usually use dremweaver for ColdFusion. I like cfeclipse, I think that I am just too used to dreamweaver. Can I ask which version do you use? Is there a preference? I will manly using eclipse only for flex, as I do now,and space on my machine is no isse, and so If I have to install and extra eclipse is no worries for me. Thanks, John -- Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://us.rd.yahoo.com/evt=49936/*http://videogames.yahoo.com -- http://indeegrumpee .spaces.live. com/http://indeegrumpee.spaces.live.com/ -- Need Mail bonding? Go to the Yahoo! Mail QAhttp://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=asksid=396546091for great tips from Yahoo! Answershttp://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=asksid=396546091users. -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Flex Builder
the cool thing is, you can you either one, but I have stuck to using the plugin version. On 27 Mar 2007 06:43:28 -0700, John Barrett [EMAIL PROTECTED] wrote: Hey, Clint thanks`-` Yep, that is what i was looking for, What would you do type of answer, thanks so much. I have been reading,and i think that I will be getting the plug in version. John - Original Message From: Clint Tredway [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, March 27, 2007 3:23:16 AM Subject: Re: [flexcoders] Flex Builder What is the same is the flex part of FB and the plugin. But the underlying eclipse is not the same. If it were me, I would get the plugin not the standalone. On 27 Mar 2007 06:19:40 -0700, John Barrett [EMAIL PROTECTED] com[EMAIL PROTECTED] wrote: HI Clint, Thanks for the advice. I read on adobe's site that they were both the same. I am not too good setting things up, and so I was thinking about getting the standalone as everything is set up, but then to use ColdFusion Flex in the same environment without switching back and forth is a nice idea. Ecplise takes some getting used to, but all in all I do like it. With the plug ins you just throw all the files in the plugin folder? I don't think that you can use software updates in eclipse for this? Since most people on this lists are not newbies at flex, and I am I thought that this would be a good question to ask. I also found this site: http://www.riapedia .com/2007/ 03/20/flex_ builder_stand_ alone_or_ eclipse_plugin http://www.riapedia.com/2007/03/20/flex_builder_stand_alone_or_eclipse_plugin Just a few days ago, and so I guess I am not the only one thinking about it. I am excited as I finally have the money for flex builder, it is just a question about which one. John - Original Message From: Clint Tredway [EMAIL PROTECTED] com [EMAIL PROTECTED] To: [EMAIL PROTECTED] ups.com Sent: Tuesday, March 27, 2007 2:32:08 AM Subject: Re: [flexcoders] Flex Builder I use the plugin. The reason is I use CFEclipse and other plugins and as those mature they are needing the newer build of Eclipse. The standalone FB is an older version of Eclipse. On 3/27/07, John Barrett [EMAIL PROTECTED] com [EMAIL PROTECTED] wrote: Hi, I have a question. I am just about to get Flex Builder, and i am wondering which is the best option the stand alone or the eclipse plug in? I do not use eclipse that much, well sometimes but I usually use dremweaver for ColdFusion. I like cfeclipse, I think that I am just too used to dreamweaver. Can I ask which version do you use? Is there a preference? I will manly using eclipse only for flex, as I do now,and space on my machine is no isse, and so If I have to install and extra eclipse is no worries for me. Thanks, John -- Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://us.rd.yahoo.com/evt=49936/*http://videogames.yahoo.com -- http://indeegrumpee .spaces.live. com/ http://indeegrumpee.spaces.live.com/ -- Need Mail bonding? Go to the Yahoo! Mail QAhttp://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=asksid=396546091for great tips from Yahoo! Answershttp://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=asksid=396546091users. -- http://indeegrumpee .spaces.live. com/http://indeegrumpee.spaces.live.com/ -- Get your own web address.http://us.rd.yahoo.com/evt=49678/*http://smallbusiness.yahoo.com/domains/?p=BESTDEAL Have a HUGE year through Yahoo! Small Business. -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] List Control with checkbox items
here is a couple of ideas. (I didnt test these, but either 'should work') 1. have a function tied to the click event of the checkbox that adds that index to the selectedItems of the list control 2. when submitting the info, loop through the list and check to see if any check boxes are checked. option 1 would mean you would need to change how your itemRenderer is built, but it should work. On 27 Mar 2007 13:02:37 -0700, Rick Root [EMAIL PROTECTED] wrote: Anyone else got any ideas here? On 3/27/07, Rick Root [EMAIL PROTECTED] wrote: (wow, gmail makes it difficult to quote emails from yahoo groups!) That almost works here's my MXML: mx:List allowMultipleSelection=true height=203 width=360 dataProvider={parentDocument.ro.getListData.lastResult.CONTROL_CODES} labelField=TABLFLD id=lstControlCodes rendererIsEditor=true itemRenderer=mx.controls.CheckBox /mx:List The problem here is that the checkboxes do not relate to the actual selected status of the items. For example, if I click 3 different items without holding down the control key, all 3 items have checkboxes, but only one (the last) is highlighted in blue.. meaning it's the only one REALLY selected as far as the list control is concerned. Rick -- CFMBB - Coldfusion Message Boards, Version 1.21 Now Available! http://www.cfmbb.org -- CFMBB - Coldfusion Message Boards, Version 1.21 Now Available! http://www.cfmbb.org -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Flex access to cookies
pass in the cookie value thru the flashVars. On 3/27/07, Tony Obermeit [EMAIL PROTECTED] wrote: I need to access the cookies already created in the browser in order to determine if the user has been authenticated using oracle single sign on. 1. Which flash object / class do I use to access the cookies? 2. Anyone have tips / code to share that they've used to authenicate user with oracle sso? Thanks Tony -- http://indeegrumpee.spaces.live.com/
[flexcoders] wanted to share...
I posted this on the component list, but I know not all of you are on that list. I made a simple Count Down Timer component and I am sharing it. http://www.clinttredway.com/components/CountDownTimer.zip Feel free to do whatever you wish with it. -- http://indeegrumpee.spaces.live.com/
[flexcoders] weird ArrayCollection issue
I have to arrayCollections that I am assigning the same data to. I am adding an item to one of the collections but that item is getting set to both collections, wth?? code is here: newTestGroup = event.result as ArrayCollection; groups = event.result as ArrayCollection; var arr:Object = {testGroupId:0,testGroupName:Show All,dsn_source:dsn}; groups.addItemAt(arr,0); any help wold be appreciated.. one last thing. if I alter the newTestGroup collection, the same thing happens to the groups collection. -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] weird ArrayCollection issue
I figured that out :) I am working around this now. On 26 Mar 2007 11:27:01 -0700, Alex Harui [EMAIL PROTECTED] wrote: event.result might be object instance #123923879 You've assigned it to both newTestGroup and groups so your sharing. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Clint Tredway *Sent:* Monday, March 26, 2007 8:40 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] weird ArrayCollection issue I have to arrayCollections that I am assigning the same data to. I am adding an item to one of the collections but that item is getting set to both collections, wth?? code is here: newTestGroup = event.result as ArrayCollection; groups = event.result as ArrayCollection; var arr:Object = {testGroupId:0,testGroupName:Show All,dsn_source:dsn}; groups.addItemAt(arr,0); any help wold be appreciated.. one last thing. if I alter the newTestGroup collection, the same thing happens to the groups collection. -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: Flex coldfusion simple question
John, a couple things to check, what version of CF are you running? The version of CF you need to have is 7.02, and Flash Remoting needs to be turned on in the CF admin. The example zip I sent you works if you just put the contents in your web root. On 24 Mar 2007 05:04:24 -0700, John Barrett [EMAIL PROTECTED] wrote: Hi Maury, Thanks so much for this link. I will be trying to figure this out tomorrow. I keep getting that their is a n error connecting to localhost/flex2gateway Thanks so much for your help John - Original Message From: Maury Sword [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, March 23, 2007 2:48:52 AM Subject: [flexcoders] Re: Flex coldfusion simple question John, Here's a link to an article that I found helpful in getting this to work: http://www.adobe. com/devnet/ flex/articles/ helloworld. htmlhttp://www.adobe.com/devnet/flex/articles/helloworld.html Maury --- In [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com, John Barrett [EMAIL PROTECTED] .. wrote: Hi Clint, Thanks so much I am looking forward to seeing the zip so I can finally get CF Flex to communicate` -` Thanks, John - Original Message From: Clint Tredway [EMAIL PROTECTED] To: [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com Sent: Friday, March 23, 2007 2:01:13 AM Subject: Re: [flexcoders] Re: Flex coldfusion simple question I can send you the zip of the code as I know that works. On 23 Mar 2007 03:15:01 -0700, John Barrett [EMAIL PROTECTED] com wrote: Hi Clint, I tried to reply to your blog, but I never got the conformation e- mail. Thanks for the tutorial one this! I might be wrong, but on line 27 of the mxml file I think that it should say: mx:Label text={cfcResponse} width=100% /mx:Label Anyway, this is what I had to do for flex not too throw an error. It was saying it needed a closing tag. I was not able to get it to work in the end(the above is the only change that I made to the code) I get the errorCouldn' t establish a connection to ColdFusion I have a screen shot of the error message here: http://johnbarrett. net/flex_ error.jpg I am running ColdFusion 7.02 on the Mac. Any thoughts? Thanks, John - Original Message From: Clint Tredway [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Thursday, March 22, 2007 7:40:25 AM Subject: Re: [flexcoders] Re: Flex coldfusion simple question http://grumpee. instantspot. com/blog On 3/22/07, cardinalflexjeremy [EMAIL PROTECTED] net wrote: Are there any code examples or tutorials on this? That is, any samples using coldfusion (not webservices or httpRequest) to access CFCs? thanks. --- In [EMAIL PROTECTED] ups.com, Tom Chiverton tom.chiverton@ ... wrote: On Thursday 22 Mar 2007, cardinalflexjeremy wrote: If I want to make a flex app to tie to a Database, and I want to use Coldfusion components to access the Database stuff, and connect Flex and coldfusion, do I need FDS to use the coldfusion adapter pieces? No. You can use Flex's RemoteObject straight to a CFC, no FDS (now called LCDS btw) required. Please let me know if a company would require FDS in order to use coldfusion with flex? Again with the no :-) -- Tom Chiverton Helping to continually morph slick appliances On: http://thefalken. livejournal. com * * * * This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells. com. -- http://indeegrumpee .spaces.live. com/ It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. -- http://indeegrumpee .spaces.live. com/ !-- #ygrp-mlmsg {font-size:13px; font-family: arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit; font:100% ;} #ygrp-mlmsg select, input, textarea {font:99% arial
Re: [flexcoders] Re: Flex coldfusion simple question
I can send you the zip of the code as I know that works. On 23 Mar 2007 03:15:01 -0700, John Barrett [EMAIL PROTECTED] wrote: Hi Clint, I tried to reply to your blog, but I never got the conformation e-mail. Thanks for the tutorial one this! I might be wrong, but on line 27 of the mxml file I think that it should say: mx:Label text={cfcResponse} width=100% /mx:Label Anyway, this is what I had to do for flex not too throw an error. It was saying it needed a closing tag. I was not able to get it to work in the end(the above is the only change that I made to the code) I get the errorCouldn't establish a connection to ColdFusion I have a screen shot of the error message here: http://johnbarrett.net/flex_error.jpg I am running ColdFusion 7.02 on the Mac. Any thoughts? Thanks, John - Original Message From: Clint Tredway [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, March 22, 2007 7:40:25 AM Subject: Re: [flexcoders] Re: Flex coldfusion simple question http://grumpee. instantspot. com/bloghttp://grumpee.instantspot.com/blog On 3/22/07, cardinalflexjeremy [EMAIL PROTECTED] net [EMAIL PROTECTED] wrote: Are there any code examples or tutorials on this? That is, any samples using coldfusion (not webservices or httpRequest) to access CFCs? thanks. --- In [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com, Tom Chiverton tom.chiverton@ ... wrote: On Thursday 22 Mar 2007, cardinalflexjeremy wrote: If I want to make a flex app to tie to a Database, and I want to use Coldfusion components to access the Database stuff, and connect Flex and coldfusion, do I need FDS to use the coldfusion adapter pieces? No. You can use Flex's RemoteObject straight to a CFC, no FDS (now called LCDS btw) required. Please let me know if a company would require FDS in order to use coldfusion with flex? Again with the no :-) -- Tom Chiverton Helping to continually morph slick appliances On: http://thefalken. livejournal. comhttp://thefalken.livejournal.com * * * * This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells. comhttp://www.halliwells.com . -- http://indeegrumpee .spaces.live. com/http://indeegrumpee.spaces.live.com/ -- It's here! Your new message! Get new email alertshttp://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/with the free Yahoo! Toolbar. -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: flash remoting
Thats not how remoting works. By sending an object to the server, the gateway translates it into a or many structures that is in the argument scope of CF. to pass a string to a CFC do this: public function sendToCFC():void{ var cfObj:Object = {input:source.text}; myFlashRemote.echoString(cfObj); } Now what this does is send an AS object through the gateway that will inturn translate this into a structure with input as an argument with the value of the send textfield's text. Now, when you return something from the CFC, its best to bind that to a Bindable variable. In this case I would create a bindable var called returnString:String and in my result function do this. public function setReturnString(event:ResultEvent):void{ returnString = event.result as String; } To get to the result of your CFC call, a result function needs to be specified or else the app will not know what to do with the result. Here is your code changed to show how it all works. ?xml version=1.0 encoding=utf-8? mx:ApolloApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute pageTitle=Flex Remoting Example mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; [Bindable] public var resultString:String; public function sendToCFC():void{ var cfObj:Object = {input:send.text}; myFlashRemote.echoString(cfObj); } public function setReturnString(event:ResultEvent):void{ returnString = event.result as String; } ]] /mx:Script mx:RemoteObject id=myFlashRemote destination=ColdFusion source=test endpoint=http://demo.dev/flex2gateway/; mx:method name=echoString result=setReturnString(event)/ /mx:RemoteObject mx:Button x=141 y=280 label=Button click=sendToCFC() / mx:TextArea id=source width=356 height=201 text={resultString} x=10 y=10/ mx:TextInput x=101 y=229 id=send text=Hello out there,/ /mx:ApolloApplication On 22 Mar 2007 07:02:11 -0700, rchadgray [EMAIL PROTECTED] wrote: Ok now I am starting to break down Clint's example so I understand what is going on. I tossed out the AS just to kind of make me understand how the tags are working together. My question now is why cant I do this in my button click event: myFlashRemote.echoString({send.text}) Here is my current code and it works, but I want the text entered into the TextInput tag to be passed to the remote object. Right now I have static text in myFlashRemote.echoString() ?xml version=1.0 encoding=utf-8? mx:ApolloApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute pageTitle=Flex Remoting Example mx:RemoteObject id=myFlashRemote destination=ColdFusion source=test endpoint=http://demo.dev/flex2gateway/; mx:method name=echoString / /mx:RemoteObject mx:Button x=141 y=280 label=Button click=myFlashRemote.echoString('a232322323') / mx:TextArea id=source width=356 height=201 text={myFlashRemote.echoString.lastResult} x=10 y=10/ mx:TextInput x=101 y=229 id=send/ /mx:ApolloApplication My CFC: cfcomponent cffunction name = echoString returnType = string output = no access = remote cfargument name = input type = string cfset returned = arguments.input chad said cfreturn returned /cffunction /cfcomponent -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: flash remoting
Look at my example that I sent just a bit ago. You send objects to the cfc when you call a method of the RemoteObject tag. On 3/22/07, rchadgray [EMAIL PROTECTED] wrote: Another question. When using the web service tag i was able to specify with operation and request tags what function in the CFC i wanted to use and what parameter i was passing to the web service. mx:WebService id=myWebservice wsdl=http://demo.dev/test.cfc?wsdl; useProxy=false mx:operation name=echoString mx:request input {login.text} /input /mx:request /mx:operation /mx:WebService With the RemoteObject tag the operation and request tags dont seem to work (even though auto-complete in flex builder offers them). When i save the files i get parse error on mx:operation How do i use mx:RemoteObject and specify what attribute i am passing to the method? -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Flex coldfusion simple question
You can use FDS, Flash Remoting, HTTP Service, or web services. I posted a simple example on my blog showing how to use Flash Remoting. On 22 Mar 2007 09:47:41 -0700, cardinalflexjeremy [EMAIL PROTECTED] wrote: Simple question here for the group. If I want to make a flex app to tie to a Database, and I want to use Coldfusion components to access the Database stuff, and connect Flex and coldfusion, do I need FDS to use the coldfusion adapter pieces? Please let me know if a company would require FDS in order to use coldfusion with flex? Thanks. -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: Flex coldfusion simple question
http://grumpee.instantspot.com/blog On 3/22/07, cardinalflexjeremy [EMAIL PROTECTED] wrote: Are there any code examples or tutorials on this? That is, any samples using coldfusion (not webservices or httpRequest) to access CFCs? thanks. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 22 Mar 2007, cardinalflexjeremy wrote: If I want to make a flex app to tie to a Database, and I want to use Coldfusion components to access the Database stuff, and connect Flex and coldfusion, do I need FDS to use the coldfusion adapter pieces? No. You can use Flex's RemoteObject straight to a CFC, no FDS (now called LCDS btw) required. Please let me know if a company would require FDS in order to use coldfusion with flex? Again with the no :-) -- Tom Chiverton Helping to continually morph slick appliances On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] flex remoting and query
return that query and bind it to an ArrayCollection in your AS. Then you can bind it to a grid or list, etc. On 3/22/07, Chad Gray [EMAIL PROTECTED] wrote: If in my CFC that I am connecting to with RemoteObject can I return a Query object to Flex? Here is an example cfc: cffunction name=getJob returnType=query output=no access=remote cfargument name=jobNum type=numeric required=yes cfquery datasource=database name=getJobInfo SELECT JobName, Description FROM Job WHERE JobNum = #arguments.jobNum# /cfquery cfreturn getJobInfo /cffunction Or should I stick to returning XML? My goal for this exercise is to take the data and put it in a DataGrid component. Second question is how do I format the dataprovider in the datagrid? mx:DataGrid id=dgJob dataProvider={roGetJob.?} -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] flex remoting and query
return that query and bind it to an ArrayCollection in your AS. Then you can bind it to a grid or list, etc. On 3/22/07, Chad Gray [EMAIL PROTECTED] wrote: If in my CFC that I am connecting to with RemoteObject can I return a Query object to Flex? Here is an example cfc: cffunction name=getJob returnType=query output=no access=remote cfargument name=jobNum type=numeric required=yes cfquery datasource=database name=getJobInfo SELECT JobName, Description FROM Job WHERE JobNum = #arguments.jobNum# /cfquery cfreturn getJobInfo /cffunction Or should I stick to returning XML? My goal for this exercise is to take the data and put it in a DataGrid component. Second question is how do I format the dataprovider in the datagrid? mx:DataGrid id=dgJob dataProvider={roGetJob.?} -- http://indeegrumpee.spaces.live.com/
[flexcoders] Live Cycle Data Services
I cannot find a definite answer on this, but does it support audio/video? I am trying to decide on the right technology for a project I am working on. I am using FMS right now, but its kinda a pain so I am looking at my options. thanks -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Live Cycle Data Services
thanks Matt, thats what I thought. On 22 Mar 2007 21:39:41 -0700, Matt Chotin [EMAIL PROTECTED] wrote: Nope, LCDS is strictly data, no media. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Clint Tredway *Sent:* Thursday, March 22, 2007 9:17 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Live Cycle Data Services I cannot find a definite answer on this, but does it support audio/video? I am trying to decide on the right technology for a project I am working on. I am using FMS right now, but its kinda a pain so I am looking at my options. thanks -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] first impressions
I am not sure how your system is setup, but if you can, use Remoting instead of webservices... remoting is much much faster and IMO, easier to work with. On 3/21/07, Chad Gray [EMAIL PROTECTED] wrote: Hi Clint, thanks for the response. I watch the silvafug training yesterday and i started with session 3 and I probably should have started with 1. http://www.silvafug.org/ They got into all of this event stuff and custom components. It seems very OO if you want to really start making some powerful applications. I have built my first app that talks to one of my CFC's via web service. It took me a while and some reading of the adobe help files to figure what to place in click and how .lastResult works. mx:WebService id=myWebservice wsdl=http://demo.dev/test.cfc?wsdl; useProxy=false mx:operation name=echoString mx:request input {login.text} /input /mx:request /mx:operation /mx:WebService mx:Button x=141 y=280 label=Button click= myWebservice.echoString.send() / mx:TextArea id=source** width=356 height=201 text={ myWebservice.echoString.lastResult} x=10 y=10/ mx:TextInput x=101** y=229 id=login/ If I have time today I want to start replacing one section of our CF based ERP system with a Flex/Apollo. It is how our employees clock in and out. They also log into jobs and log out with different labor types. I have to build the CFC first, but if I get stuck I will post here on the list. Thanks! Chad -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Clint Tredway *Sent:* Tuesday, March 20, 2007 10:11 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] first impressions Honestly, to get started you dont need to know OO. You need to understand how Flex works. Its event based. Your code needs to respond to events that are triggered, ie button clicks, results being returned from the server, etc. I would be happy to help you get going as I use Flex/CF/SQL Server everyday. On 20 Mar 2007 18:50:54 -0700, *Chad** Gray* [EMAIL PROTECTED] wrote: Im a CF guy and mainly a spaghetti coding CF guy. CF gave me, the non OO guy, the ability to write very complex programs that manipulated data in very complex ways since SQL is an easy language to learn and everything was very linear. Now my applications are hard to maintain, but easy to read and follows such a simple logic that any html guy could probably understand. They also deliver what the customer wants, and delivering what the customer wants is of course the number one objective. I step into Flex and the demo's make it look easy, but I try to start writing my own apps in flex and I am lost. Nothing is familiar like it is in CF where things start at the top of the page and work their way down then lead from point A to B. Maybe it is an old dog learning new tricks syndrome Can someone link me to good training on OO? I think this is the place that I need help. I need the basic... super basic lead into OO. Should I concentrate on java based training? -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] first impressions
HI John, First let me say that the CF extensions are not required to use Flex CF together. Secondly, I am not a Mac user so all I can do is show you code on how to use Flex Cf together. I will write a tutorial and send it to you later today. On 3/21/07, John Barrett [EMAIL PROTECTED] wrote: Hi Clint, I was wondering if I can ask for help too. I am also a CF guy, but for the life of me I can't seem to figure out how to integrate ColdFusion (with MySQL) and Flex together. I have read the the CF extension makes this easy in flex builder, which I hope then when I get it tomorrow this becomes true.I use the Mac,and I have tried in the past with help from this list to get ColdFusion Flex to talk to each other, but was not able to. I found out in the past that the CF extensions are not included in the mac version of flex builder, but I hope that it is now. I have a relaxed school schedule this term, and I thought that I would try again. I was wondering if you could offer a flex newbie some thought on this. Thanks so much, John - Original Message From: Clint Tredway [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, March 20, 2007 4:13:28 PM Subject: Re: [flexcoders] first impressions Honestly, to get started you dont need to know OO. You need to understand how Flex works. Its event based. Your code needs to respond to events that are triggered, ie button clicks, results being returned from the server, etc. I would be happy to help you get going as I use Flex/CF/SQL Server everyday. On 20 Mar 2007 18:50:54 -0700, Chad Gray [EMAIL PROTECTED] com[EMAIL PROTECTED] wrote: Im a CF guy and mainly a spaghetti coding CF guy. CF gave me, the non OO guy, the ability to write very complex programs that manipulated data in very complex ways since SQL is an easy language to learn and everything was very linear. Now my applications are hard to maintain, but easy to read and follows such a simple logic that any html guy could probably understand. They also deliver what the customer wants, and delivering what the customer wants is of course the number one objective. I step into Flex and the demo's make it look easy, but I try to start writing my own apps in flex and I am lost. Nothing is familiar like it is in CF where things start at the top of the page and work their way down then lead from point A to B. Maybe it is an old dog learning new tricks syndrome Can someone link me to good training on OO? I think this is the place that I need help. I need the basic... super basic lead into OO. Should I concentrate on java based training? -- http://indeegrumpee .spaces.live. com/http://indeegrumpee.spaces.live.com/ -- Don't get soaked. Take a quick peek at the forecast with theYahoo! Search weather shortcut. -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: first impressions
you can add a comand line argument to use remoting.. or you can recreate the project in Eclipse. On 21 Mar 2007 06:59:44 -0700, rchadgray [EMAIL PROTECTED] wrote: Flash Remoting? I have not played with that in CF, but i will read the docs and see what that is about. I will convert my below test into a Flash Remoting service instead of a web service. Will i need to start a new project in Eclipse and select the flash remoting option? Or can i take my current project and just change the way i connect to the service? Thanks! Chad --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: I am not sure how your system is setup, but if you can, use Remoting instead of webservices... remoting is much much faster and IMO, easier to work with. On 3/21/07, Chad Gray [EMAIL PROTECTED] wrote: Hi Clint, thanks for the response. I watch the silvafug training yesterday and i started with session 3 and I probably should have started with 1. http://www.silvafug.org/ They got into all of this event stuff and custom components. It seems very OO if you want to really start making some powerful applications. I have built my first app that talks to one of my CFC's via web service. It took me a while and some reading of the adobe help files to figure what to place in click and how .lastResult works. mx:WebService id=myWebservice wsdl=http://demo.dev/test.cfc?wsdl; useProxy=false mx:operation name=echoString mx:request input {login.text} /input /mx:request /mx:operation /mx:WebService mx:Button x=141 y=280 label=Button click= myWebservice.echoString.send() / mx:TextArea id=source** width=356 height=201 text={ myWebservice.echoString.lastResult} x=10 y=10/ mx:TextInput x=101** y=229 id=login/ If I have time today I want to start replacing one section of our CF based ERP system with a Flex/Apollo. It is how our employees clock in and out. They also log into jobs and log out with different labor types. I have to build the CFC first, but if I get stuck I will post here on the list. Thanks! Chad -- *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On Behalf Of *Clint Tredway *Sent:* Tuesday, March 20, 2007 10:11 PM *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] first impressions Honestly, to get started you dont need to know OO. You need to understand how Flex works. Its event based. Your code needs to respond to events that are triggered, ie button clicks, results being returned from the server, etc. I would be happy to help you get going as I use Flex/CF/SQL Server everyday. On 20 Mar 2007 18:50:54 -0700, *Chad** Gray* [EMAIL PROTECTED] wrote: Im a CF guy and mainly a spaghetti coding CF guy. CF gave me, the non OO guy, the ability to write very complex programs that manipulated data in very complex ways since SQL is an easy language to learn and everything was very linear. Now my applications are hard to maintain, but easy to read and follows such a simple logic that any html guy could probably understand. They also deliver what the customer wants, and delivering what the customer wants is of course the number one objective. I step into Flex and the demo's make it look easy, but I try to start writing my own apps in flex and I am lost. Nothing is familiar like it is in CF where things start at the top of the page and work their way down then lead from point A to B. Maybe it is an old dog learning new tricks syndrome Can someone link me to good training on OO? I think this is the place that I need help. I need the basic... super basic lead into OO. Should I concentrate on java based training? -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] flash remoting
the share should work. Remoting works on the same port as the cf server is on. So if CF is tied to IIS and IIS is running on port 80, then so is CF, so is Remoting. You can change the URL to point to your dev server. I run CF locally then move my files to a server when its ready to test. I will give you some sample code here in a min. On 21 Mar 2007 08:19:09 -0700, rchadgray [EMAIL PROTECTED] wrote: I am reading up on doing flash remoting in CF. I have CF 7.0.2 installed on a windows machine running through IIS. In the CF administrator Flex and Flash remoting is turned on. When you make a new project in eclipse the default for Root Url contains a port 8500 if i remember right. Does Flash remoting run over a special port or is it just 80? I could not find anything in the CF Admin to set the port so i am guessing that it just uses 80. I cant find any flex code examples of connecting to flash remoting. Can someone post something or point me in a direction? When creating a new project in eclipse that uses flash remoting it asks for a root folder to your CF server. Our development CF server is on another box on the network (and i really dont want to install CF on my computer). Do i need to make a share on the development server so i can enter \\BENDER\CFusionMX7\wwwroot\ into the field? Any help is appreciated, and if i over looked this information/code examples in the help files let me know and i will read them. thanks in advance! -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] flash remoting
Ok, I did a blog on this. The example is very simple. http://grumpee.instantspot.com/blog/ I also have a zip file I can email of the code. I couldn't attach it to my blog. On 3/21/07, Clint Tredway [EMAIL PROTECTED] wrote: the share should work. Remoting works on the same port as the cf server is on. So if CF is tied to IIS and IIS is running on port 80, then so is CF, so is Remoting. You can change the URL to point to your dev server. I run CF locally then move my files to a server when its ready to test. I will give you some sample code here in a min. On 21 Mar 2007 08:19:09 -0700, rchadgray [EMAIL PROTECTED] wrote: I am reading up on doing flash remoting in CF. I have CF 7.0.2 installed on a windows machine running through IIS. In the CF administrator Flex and Flash remoting is turned on. When you make a new project in eclipse the default for Root Url contains a port 8500 if i remember right. Does Flash remoting run over a special port or is it just 80? I could not find anything in the CF Admin to set the port so i am guessing that it just uses 80. I cant find any flex code examples of connecting to flash remoting. Can someone post something or point me in a direction? When creating a new project in eclipse that uses flash remoting it asks for a root folder to your CF server. Our development CF server is on another box on the network (and i really dont want to install CF on my computer). Do i need to make a share on the development server so i can enter \\BENDER\CFusionMX7\wwwroot\ into the field? Any help is appreciated, and if i over looked this information/code examples in the help files let me know and i will read them. thanks in advance! -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: flash remoting
Ya, you would need to use the endpoint, not the source to point it to another url. On 21 Mar 2007 13:20:04 -0700, Peter Farland [EMAIL PROTECTED] wrote: Hmm, really? I don't think that is correct. The source attribute is only used by the gateway to locate a CFC using a logical mapping to directories/cfcs based on the package.leafname. Are you mistaking this with the endpoint attribute which specifies the location of the gateway? Pete -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *rchadgray *Sent:* Wednesday, March 21, 2007 3:39 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: flash remoting I have it figured out now. I found an article by Mike Chambers on flash remoting that explained things more. http://www.adobe.com/devnet/coldfusion/articles/startremoting.html I got it working now. I had the cfc in the root of the site so i had to chance the source on the RemoteObject tag to: source=remotingExample Now if this were an apollo app would and the app was running over on another computer somewhere. Would i just need to change source to: source=http://demo.dev/remotingExample; Thanks again Clint! I am learning slowly! -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] first impressions
Honestly, to get started you dont need to know OO. You need to understand how Flex works. Its event based. Your code needs to respond to events that are triggered, ie button clicks, results being returned from the server, etc. I would be happy to help you get going as I use Flex/CF/SQL Server everyday. On 20 Mar 2007 18:50:54 -0700, Chad Gray [EMAIL PROTECTED] wrote: Im a CF guy and mainly a spaghetti coding CF guy. CF gave me, the non OO guy, the ability to write very complex programs that manipulated data in very complex ways since SQL is an easy language to learn and everything was very linear. Now my applications are hard to maintain, but easy to read and follows such a simple logic that any html guy could probably understand. They also deliver what the customer wants, and delivering what the customer wants is of course the number one objective. I step into Flex and the demo's make it look easy, but I try to start writing my own apps in flex and I am lost. Nothing is familiar like it is in CF where things start at the top of the page and work their way down then lead from point A to B. Maybe it is an old dog learning new tricks syndrome Can someone link me to good training on OO? I think this is the place that I need help. I need the basic... super basic lead into OO. Should I concentrate on java based training? -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: Trace Output Stopped Working
How are you trying to view the trace outputs? On 3/16/07, Paul Whitelock [EMAIL PROTECTED] wrote: Just tried re-installing the Flash Player Debug version and no luck :-( Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: No, I'm on a PC. Flex Builder connects to the SWF and I can set breakpoints so I don't think there's a problem with the Flash Player but maybe I'll try re-installing the debug version just to see if it makes a difference. -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: Combobox will not display (only) one item
the list controls are very picky when it comes to ArrayCollections. In my code, I check to see if the length is 1 or gt than 1 and then set the dataprovider accordingly. To me, this is very much a PITA as now I have to add additional checks to make sure my data displays correctly. FYI, I do not use XML, I use ColdFusion and Remoting. On 3/14/07, pdenys [EMAIL PROTECTED] wrote: According to the Adobe Flex forum and Peter Ent of Adobe, I should use an XMLListCollection. Being simple-minded myself, I like simple things and hoped that an ArrayCollection and ComboBox would work. It seems to be a common example in Adobe docs (but fails when there is only 1 node of content which should give you 1 and only 1 item in your ComboBox). The XMLListCollection works fine when there is only 1 node of content in my source XML. However, I need to process the XML to get the data part of the ComboBox. I realize that I am not doing a good job explaining this. Please refer to the Adobe forum: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm? forumid=60catid=585threadid=1198525highlight_key=ykeyword1=combobo x --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, pdenys [EMAIL PROTECTED] wrote: Thanks for your reply. That did not work as state is the repeating element not states. If there are more than 1 state then this works fine. I don't understand why 1 element would give the ComboBox trouble. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Hilary Bridel hblists@ wrote: Hi, Try changing: myAC = event.result.states.state; to myAC = event.result.states; Hilary -- On 13 Mar 2007 19:36:50 -0700, pdenys pdenys@ wrote: I have a simple example where my ComboBox has a dataProvider that is an ArrayCollection. This ArrayCollection is assigned to the results of an HTTPService that retrieves an xml file of US States. The XML file is just sitting on a local web server. Why is it that when there is only 1 entry (State) in my XML file, the ComboBox does not populate correctly (it is blank)? Here is my XML: -- ?xml version=1.0 encoding=utf-8? states state labelMO/label dataJefferson City/data /state /states Here is my code: --- ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:HTTPService id=serviceTest url=http://localhost:8080/states.xml; result=resultHandler(event) / mx:ComboBox id=cmbTest labelField=label width=300 dataProvider={myAC}/ mx:TextArea width=292 id=txtTest1/ mx:TextArea width=290 id=txtTest2/ mx:Button label=Feed from file width=285 id=btnFeed click=serviceTest.send()/ mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; [Bindable] public var myAC:ArrayCollection = new ArrayCollection(); public function resultHandler(event:ResultEvent):void { myAC = event.result.states.state; } ]] /mx:Script /mx:Application -- Hilary -- -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] How to bind a SharedObject to a dataprovider
without seeing your code, I would say you need to convert the SO into an ArrayCollection then bind that to your grid. But again, I say this without seeing your code. On 3/14/07, Stanisław Fiedor [EMAIL PROTECTED] wrote: Hi! On the server side I've got a SO object which is a userlist - its properties are Objects and tey look like (user_name, ({name:lala,id:3})) Now I want to bind the data from the SO to my datagrid.. unfortunatelly after I do this - the data doesn't appear in the datagrid.. I've read that I need to prepare a wrapper - but with that one I've done it doesn't work - don't know why.. If somebody could show me a working example I would be very thankful ;) BR stf -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Arrow-down/up event in non-editable DataGrid?
use the change event to do what you want. On 14 Mar 2007 07:18:52 -0700, Peter Demling [EMAIL PROTECTED] wrote: First-time hello Flexcoders, I have a non-editable DataGrid, and as the user arrows-down through the rows, I want to handle the event and do some stuff. The itemClick event only works for mouse-clicks on the rows; and itemFocusIn is only dispatched if the item is editable, so that doesn't work either. I tried directly data-binding a label in another control to the selectedItem in this DataGrid, and as I arrow-down through the list I can see it updating each time - so the event must be getting handled somewhere. Unfortunately, I want to do more than just data-binding when the user arrows-down through the list, so I need an event handler that captures this event. Any suggestions would be most welcome. Thanks! (Also, is there any recommended protocol on cross-posting topics here to Adobe's Flex 2 General Discussion forum?) -Peter Demling Lexington, MA -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: Arrow-down/up event in non-editable DataGrid?
no problem On 3/14/07, Peter Demling [EMAIL PROTECTED] wrote: Worked perfectly (I was looking closely at the item* events and missed this one). Thanks very much! -Peter Demling --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: use the change event to do what you want. On 14 Mar 2007 07:18:52 -0700, Peter Demling [EMAIL PROTECTED] wrote: First-time hello Flexcoders, I have a non-editable DataGrid, and as the user arrows-down through the rows, I want to handle the event and do some stuff. The itemClick event only works for mouse-clicks on the rows; and itemFocusIn is only dispatched if the item is editable, so that doesn't work either. I tried directly data-binding a label in another control to the selectedItem in this DataGrid, and as I arrow-down through the list I can see it updating each time - so the event must be getting handled somewhere. Unfortunately, I want to do more than just data-binding when the user arrows-down through the list, so I need an event handler that captures this event. Any suggestions would be most welcome. Thanks! (Also, is there any recommended protocol on cross-posting topics here to Adobe's Flex 2 General Discussion forum?) -Peter Demling Lexington, MA -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: Dynamically creating item IDs
what do you mean by 'id' On 3/1/07, thetexaspsycho2003 [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, thetexaspsycho2003 [EMAIL PROTECTED] wrote: Is there a way to dynamically create an item's ID? For example pulling it in from a XML file? I guess from the lack of replies there is no way of doing this. If so, this is very disappointing. The ability to create IDs on-the-fly is very helpful in other technologies, such as AJAX. -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] changing states from within a component
try parentDocument.currentState = 'home' On 2/27/07, stephen50232 [EMAIL PROTECTED] wrote: Hi, I'm working on an application, which is component based. One of my components is a Login screen, in which the user enters the username and password, these details are passed to a ColdFusion CFC and checked, the result is then checked. If the login is successful I want to be able to change the state in the main application file from the Login state to the Home state, originally I tried using: this.currentState = 'Home'; But this was in the Login component, which doesn't have states, so that didn't work. What is the best practice for components to call the main application to perform tasks like changing the state? Thanks Stephen -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Time Based State Transitions
you can use setInterval or setTimeout On 2/26/07, nextadvantage [EMAIL PROTECTED] wrote: How would I go about changing view states say every 10 secs... with a 1 sec fade? -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] New to Flex
the mxml code is here: com.cfgenerated.controllers. look in the cfgenerated directory for more directories as well. On 2/23/07, Robert Shaw [EMAIL PROTECTED] wrote: OK I guess I am an idiot. My boss finally decided for us to adapt to Adobe products starting with Flex. I installed the Flex 2.0.1 version and used the Coldfusion application wizard to create a list grid detail page. Worked fine. Created the CFC and displayed the grid. But for the life of me I can't find the page that contains all of the code. I opened the Main.mxml page and here is all the code. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* xmlns:controllers=com.cfgenerated.controllers.* layout=absolute currentState=mainApplication mx:Style source=application.css / mx:states mx:State name=mainApplication mx:AddChild position=lastChild controllers:windowedApplication top=0 left=0 right=0 bottom=0/ /mx:AddChild /mx:State /mx:states /mx:Application How do I manipulate the Grid that was created? Lost and no books. I am a pretty good Java programmer and this looks straight forward. Just a little lost. Robert Shaw 972-463-3515 -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Just curious, A big development team or individual developers
right now, just me, in a couple months it will be TEAM. On 2/23/07, boy_trike [EMAIL PROTECTED] wrote: I wonder how many people are working on TEAM to develop their flex applications (and how many are 1 or 2 men (whoops I mean PEOPLE) developers. Please discount the Graphic artists, HTML coders. et. al. If you have 3 or more people working on the same flex application, please answer as a TEAM. 2 or 1, INDIVIDUAL. Thanks Bruce -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: Using data in an Array Collection
the item param is row data, what is in that row of the array collection and the column is that column in the grid. basically what happens in this particular labelFunction is that it looks at a specific field in the array collection and determine its value, then it sets a string to be returned and displayed in that column for that row. You could return a number, boolean etc just by changing the return type of the function. make sense? On 2/13/07, jryano001 [EMAIL PROTECTED] wrote: Brilliant thanks for all your help. Can you do one more thing and explain exactly what the line below is doing please? checkData(item:Object,column:Object):String Is it converting the parsed XML data in my ArrayCollection to a String before searching the converted string for the number 2? Thanks once again. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: oops, at the bottom of the function put return retString; On 2/12/07, jryano001 [EMAIL PROTECTED] wrote: Thanks for the response. This is more than likely me being daft but I've used the code you provided and set the labelFunction of checkData on the status DataGridColumn and I get an error in Flex stating: 1170: Function does not return a value. Is the checkData function checking both my customer and status columns for '2' or do I have to (as I expect) enter in the column name I want to check in the code you provided? I appreciate your help and patience! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Clint Tredway grumpee@ wrote: use a labelFunction to check the value and then do something: private function checkData(item:Object,column:Object):String{ var retString:String; if(item['column'] == 2){ retString=Return String; } else { retString = Alt Return string; } } then set this as the labelFunction on that DataGridColumn and that should get you going. On 2/12/07, jryano001 jryan@ wrote: Hi, I'm very new to Flex and hope someone advise me on this or tell me if it's even possible! My Flex application is pulling data using a php page. The data is then parsed into XML and is placed inside an ArrayCollection called custData. My DataGrid is then using custData as it's dataProvider. This is all working and my Datarid displays my two colmuns (cust status). What I need to be able to do though is to check the values in my status column and if any of these change to '2' then trigger an event (at the moment this could just be to display some text). I know (unless someone tells me otherwise) that I need an If statement to check the values of status in my ArrayCollection but I need to know how you access just the values of status and if one has changed to '2' then to display the text. I'd really appreciate if someone could point me in the right direction. Thanks in advance. If it makes anything clearer then my code is below. -- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; initialize=custRequest.send() mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; [Bindable] private var custData:ArrayCollection; private function resultHandler (event:ResultEvent):void { custData = event.result.cstatus.customer; } ]] /mx:Script mx:HTTPService id=custRequest url=http://localhost/FlexTest/retrieve.php; result=resultHandler(event)/ mx:DataGrid dataProvider={custData} mx:columns mx:DataGridColumn headerText=Customer dataField=cust/ mx:DataGridColumn headerText=Status dataField=status/ /mx:columns /mx:DataGrid /mx:Application -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] DG.dataProvider.length returns 0 at creationComplete time
have you tried using the initialize event? On 2/12/07, Paul Barbieux [EMAIL PROTECTED] wrote: Hello; I would like that the number of lines in my dataGrid is equal to the number of data from my dataProvider. I have found a part of solution by searching in this forum, and the code is simple: *DG.rowCount = DG.dataProvider.length;* So, I have written this code like this: mx:DataGrid id=DG dataProvider={myDataProvider} creationComplete=* DG.rowCount=DG.dataProvider.length* But it doesn't work: *DG.dataProvider.length* return 0. I have tried with the callLater: private function *resizeDG*():void { var dataLength:String = DG.dataProvider.length; *DG.rowCount = DG.dataProvider.length*; } mx:DataGrid id=DG dataProvider={myDataProvider} creationComplete=callLater(*resizeDG*); The problem remains... I have placed the *resizeDG* function in the creationComplete of the main component... and the problem remains... *But*, if I create a button that calls the *resizeDG*, yes!, my dataGrid grows to the correct number of lines ! Thus, my problem is: how to invoke my function when the dataGrid is displayed ? Why the creationComplete doesn't work ?... Thank's Paul -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Using data in an Array Collection
use a labelFunction to check the value and then do something: private function checkData(item:Object,column:Object):String{ var retString:String; if(item['column'] == 2){ retString=Return String; } else { retString = Alt Return string; } } then set this as the labelFunction on that DataGridColumn and that should get you going. On 2/12/07, jryano001 [EMAIL PROTECTED] wrote: Hi, I'm very new to Flex and hope someone advise me on this or tell me if it's even possible! My Flex application is pulling data using a php page. The data is then parsed into XML and is placed inside an ArrayCollection called custData. My DataGrid is then using custData as it's dataProvider. This is all working and my Datarid displays my two colmuns (cust status). What I need to be able to do though is to check the values in my status column and if any of these change to '2' then trigger an event (at the moment this could just be to display some text). I know (unless someone tells me otherwise) that I need an If statement to check the values of status in my ArrayCollection but I need to know how you access just the values of status and if one has changed to '2' then to display the text. I'd really appreciate if someone could point me in the right direction. Thanks in advance. If it makes anything clearer then my code is below. -- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; initialize=custRequest.send() mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; [Bindable] private var custData:ArrayCollection; private function resultHandler (event:ResultEvent):void { custData = event.result.cstatus.customer; } ]] /mx:Script mx:HTTPService id=custRequest url=http://localhost/FlexTest/retrieve.php; result=resultHandler(event)/ mx:DataGrid dataProvider={custData} mx:columns mx:DataGridColumn headerText=Customer dataField=cust/ mx:DataGridColumn headerText=Status dataField=status/ /mx:columns /mx:DataGrid /mx:Application -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: Using data in an Array Collection
oops, at the bottom of the function put return retString; On 2/12/07, jryano001 [EMAIL PROTECTED] wrote: Thanks for the response. This is more than likely me being daft but I've used the code you provided and set the labelFunction of checkData on the status DataGridColumn and I get an error in Flex stating: 1170: Function does not return a value. Is the checkData function checking both my customer and status columns for '2' or do I have to (as I expect) enter in the column name I want to check in the code you provided? I appreciate your help and patience! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: use a labelFunction to check the value and then do something: private function checkData(item:Object,column:Object):String{ var retString:String; if(item['column'] == 2){ retString=Return String; } else { retString = Alt Return string; } } then set this as the labelFunction on that DataGridColumn and that should get you going. On 2/12/07, jryano001 [EMAIL PROTECTED] wrote: Hi, I'm very new to Flex and hope someone advise me on this or tell me if it's even possible! My Flex application is pulling data using a php page. The data is then parsed into XML and is placed inside an ArrayCollection called custData. My DataGrid is then using custData as it's dataProvider. This is all working and my Datarid displays my two colmuns (cust status). What I need to be able to do though is to check the values in my status column and if any of these change to '2' then trigger an event (at the moment this could just be to display some text). I know (unless someone tells me otherwise) that I need an If statement to check the values of status in my ArrayCollection but I need to know how you access just the values of status and if one has changed to '2' then to display the text. I'd really appreciate if someone could point me in the right direction. Thanks in advance. If it makes anything clearer then my code is below. -- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; initialize=custRequest.send() mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; [Bindable] private var custData:ArrayCollection; private function resultHandler (event:ResultEvent):void { custData = event.result.cstatus.customer; } ]] /mx:Script mx:HTTPService id=custRequest url=http://localhost/FlexTest/retrieve.php; result=resultHandler(event)/ mx:DataGrid dataProvider={custData} mx:columns mx:DataGridColumn headerText=Customer dataField=cust/ mx:DataGridColumn headerText=Status dataField=status/ /mx:columns /mx:DataGrid /mx:Application -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Problem with changing viewstack programatically
can you post your code so we can help On 2/12/07, boy_trike [EMAIL PROTECTED] wrote: I have a button in a component in a viewstack that switches view to another component in the viewstack with the code parentApplication.myViewStack.selectedIndex = 0. While this works ok, I have 2 problems. 1). The new viewstack does not grey out the option in the linkbar so there is no indication that I am on a different page 2). Clicking on option #0 in the linkbar menu raises the following error: RangeError: Error #2006: The supplied index is out of bounds. at flash.display::DisplayObjectContainer/getChildAt() at mx.core::Container/getChildAt() at mx.controls::LinkBar/mx.controls:LinkBar::hiliteSelectedNavItem() at mx.controls::LinkBar/mx.controls:LinkBar::clickHandler() Bruce -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Datagrid update woes(blank rows)
you need to add an Item which is an object to the dataProvider of the grid. If you show us what you are doing, we can help better. What I have done is myGrid_dg.dataProvider.addItemAt(item,index) On 2/11/07, munene_uk [EMAIL PROTECTED] wrote: im tryin to successfully update a datagrid to add the latest record added to a Mysql database. the issue seems to be when i update the datagrid all i see is a blank row, however the debugger informs me that the correct results have been returned from the database. has anyone encountered this problem where the datagrid updates but all you get is a blank row? -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: Datagrid update woes(blank rows)
trace the evt.result using the ObjectUtil.toString() (note: you will need to import mx.utils.ObjectUtil to do this) and lets see what is coming back from the server. most likely the reason you are getting a blank row is that what is coming back does not match what the grid is expecting. On 2/11/07, munene_uk [EMAIL PROTECTED] wrote: ok here goes. * private function resultHandler(evt:ResultEvent):void { dataProvider = new ArrayCollection ( ArrayUtil.toArray( evt.result) ); // same as: evt.result.toString(); } public function sendResultHandler(evt:ResultEvent):void { dataProvider.addItem(ArrayUtil.toArray(evt.result)); dataProvider.refresh(); } *first function is called when the app is loaded. second function is called when i add a new user to the database -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: Datagrid update woes(blank rows)
try what I suggested in your addItem On 2/11/07, munene_uk [EMAIL PROTECTED] wrote: this is what i got *[SWF] F:\Adobe\Flex Builder 2\Projects\bin\Savo_Course_Manager2-debug.swf- 1,103,465 bytes after decompression warning: unable to bind to property 'SURNAME' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'POSTCODE' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'PHONENO' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'STUDENTNO' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'STREET' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'BIRTH_DATE' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'HOUSENO' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'FIRSTNAME' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'TOWN' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'EMAIL' on class 'Object' (class is not an IEventDispatcher) (Array)#0 [0] (Object)#1 BIRTH_DATE = 1985-01-01 EMAIL = [EMAIL PROTECTED] FIRSTNAME = as HOUSENO = 40 PHONE = PHONENO = 1240235402-9 POSTCODE = sdf STREET = asf STUDENTNO = 41 SURNAME = ap TOWN = sdf * -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: Datagrid update woes(blank rows)
myGrid.dataProvider.length On 2/11/07, munene_uk [EMAIL PROTECTED] wrote: how do i find out the index of the last item in order to use addItemAt(evt2.result,index); (if that makes sense!!) --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: try what I suggested in your addItem On 2/11/07, munene_uk [EMAIL PROTECTED] wrote: this is what i got *[SWF] F:\Adobe\Flex Builder 2\Projects\bin\Savo_Course_Manager2-debug.swf- 1,103,465 bytes after decompression warning: unable to bind to property 'SURNAME' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'POSTCODE' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'PHONENO' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'STUDENTNO' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'STREET' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'BIRTH_DATE' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'HOUSENO' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'FIRSTNAME' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'TOWN' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'EMAIL' on class 'Object' (class is not an IEventDispatcher) (Array)#0 [0] (Object)#1 BIRTH_DATE = 1985-01-01 EMAIL = [EMAIL PROTECTED] m%40mail.com FIRSTNAME = as HOUSENO = 40 PHONE = PHONENO = 1240235402-9 POSTCODE = sdf STREET = asf STUDENTNO = 41 SURNAME = ap TOWN = sdf * -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Move from Flex Builder to command line/SDK -- how?
You can use the mxmlc compiler and compile your apps OR you can use FlashDevelop which now is good for doing Flex 2 and AS3 coding. I have gotten this to work well and I like it. Go to flashdevelop.org as they have info on how to set this up. On 2/10/07, Mike Crowe [EMAIL PROTECTED] wrote: Hi folks, I'm developing on a system with only 512M of memory, and Eclipse just is annoying. I've tried tuning it, but it is still just slow. I'm at a stage where I'm developing in ActionScript now, and would love to move to compiling from the command line. How do I go about doing this? Up to now, I've only used flex-builder. I don't see any makefiles or other obvious ways to simply compiling from the command line. Can somebody point me in the right direction? TIA Mike -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: Move from Flex Builder to command line/SDK -- how?
most people use Ant to do auto builds, but I dont know anymore than that as I dont do it that way. On 2/10/07, Mike Crowe [EMAIL PROTECTED] wrote: Clint, I'm more asking how to invoke the mxmlc compiler on a flex project. Do I have to build up a Makefile or build.xml? Any automated way to start this? TIA Mike --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: You can use the mxmlc compiler and compile your apps OR you can use FlashDevelop which now is good for doing Flex 2 and AS3 coding. I have gotten this to work well and I like it. Go to flashdevelop.org as they have info on how to set this up. On 2/10/07, Mike Crowe [EMAIL PROTECTED] wrote: Hi folks, I'm developing on a system with only 512M of memory, and Eclipse just is annoying. I've tried tuning it, but it is still just slow. I'm at a stage where I'm developing in ActionScript now, and would love to move to compiling from the command line. How do I go about doing this? Up to now, I've only used flex-builder. I don't see any makefiles or other obvious ways to simply compiling from the command line. Can somebody point me in the right direction? TIA Mike -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] filterFunction
I have what I call filter functions that will find items and remove them or if not found add them.. not sure what you are meaning by filter... On 2/9/07, kumarpal jain [EMAIL PROTECTED] wrote: Hi All, Can some one help me in filterFunction method of listcollectionView or Array Collection .. I am looking for some examples on the same which will help . I am a bit confused in this I want to filter some records in array collection and can we use this method for this... Thanks Kumar -- Here's a new way to find what you're looking for - Yahoo! Answershttp://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/ -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] FormItem adds extra space on the left . . .
Dont use the form or formItem tags, use a grid to layout your form. On 2/9/07, crumpelfungus [EMAIL PROTECTED] wrote: *Does anyone know how to control the space within a FormItem?* If I have a FormItem and then add a RadioButton (or any other control for that matter), I always get a bunch of extra space to the left of the control. That space cannot be influenced or manipulated with any of the available style settings for either the control or the FormItem. My problem is that I have to mimick an existing GUI, and for the purpose I would like to be able to figure this out. Any ideas how to get rid of that extra space? I've tried paddingLeft of the container (Form) and the FormItem and the control, but so far no luck. *[. . . code snippet . . .]* mx:Form width=100% paddingTop=0 paddingLeft=0 mx:RadioButton label=I agree width=175 paddingLeft=2/ mx:FormItem horizontalAlign=left labelWidth=0 paddingLeft=0 borderThickness=0 left=0 id=formitem2 mx:RadioButton label=I disagree width=175 paddingLeft=0 paddingBottom=0 paddingRight=0 paddingTop=0 left=0 id=radiobutton1/ /mx:FormItem mx:FormItem mx:LinkButton id=disagreeTextLink label=View the attached document fontWeight=normal width=175 paddingLeft=0/ /mx:FormItem /mx:Form -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: FormItem adds extra space on the left . . .
If you need to have complete control over how the form is laid out, I wouldn't use the form container, I would use something else. I am not sure if you are aware of this, but you can use other containers inside a formItem tag, i.e. a HBox or VBox... etc.. but that will not solve your issue of taking the padding from the left side. On 2/9/07, crumpelfungus [EMAIL PROTECTED] wrote: Clint, Thank you for your swift reply. Are you saying that there is no benefit in using FormItem with a RadioButton? (At least, nothing that couldn't be done otherwise.) --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: Dont use the form or formItem tags, use a grid to layout your form. -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: filterFunction
if you want, I can post how I iterate through a collection which should get you started. On 2/9/07, Mark [EMAIL PROTECTED] wrote: I was just about to post the same question before I saw this and thought I'd ride this one out to see where it goes. I've found a bunch of examples on how to filter an ArrayCollection with a text box such as this one (maybe it will help you Kumar): http://spbarber.com/blog/flex-20-listcollectionviewfilterfunction- example-1 What I'm looking to do is filter my ArrayCollection with a radiobuttongroup I have in place. Below is my XML and I want to filter on the phase node. So if the user clicks the radio button with the value of Deployment my datagrid will now only display those records. The text examples seem to be much more than I need. I believe it should be easier than what I'm finding. projects project projectNameUS Flash 8 Upgrade/projectName forSnap1/forSnap changeCommentsDeployment Date/changeComments phaseDeployment/phase descriptionInitiative to upgrade/description contactDerek Nagy/contact startDate07/06/2006/startDate endDate07/06/2006/endDate dateType0/dateType sponsoringOrgEYG/sponsoringOrg businessCaseSecurity fixes/businessCase areaUS/area businessLineAll/businessLine audienceDescription/ experience/ projectSponsor/ projectManagerHoward/projectManager /project... === --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, kumarpal jain [EMAIL PROTECTED] wrote: Hi All, Can some one help me in filterFunction method of listcollectionView or Array Collection .. I am looking for some examples on the same which will help . I am a bit confused in this I want to filter some records in array collection and can we use this method for this... Thanks Kumar - Here's a new way to find what you're looking for - Yahoo! Answers -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] basic exception handling
there is a fault attribute of the HTTPService tag that you can set to a function. that will catch any faults from the call. On 2/7/07, dantmcgowan [EMAIL PROTECTED] wrote: All, When I am catching exceptions the catch seems to be ignored and the actionscript error window pops up. For example if I have a simple service like this: mx:HTTPService id=simpleService url=http://example.com/someservice/; useProxy=false method=GET And I have a try catch block like this with one statement inside. If I comment out this statement no errors...so I know this statement is causing the error: try { simpleService.send(); } catch(errObject:Error) { trace(Error +errObject.message); } The scenarios that throw errors (for example TypeError: Error #1034) opens the actionscript error window and the trace does not appear. What do I need to be doing so the exception is consumed in the catch and no error window? Thanks, Dan -- http://indeegrumpee.spaces.live.com/