[flexcoders] CellRenderer and Text, sizing issue (FLEX 1.5)
(a FLEX 1.5 question) Hi list, I'm building a couple of lists in which I embed cell renderers. The cells are made from 2 Text objects, which dynamically get their content and set their size according to it. A weird thing happens: The cells don't size right. It seems that the parent list doesnt put them right (each cell POSITION is not 0, 0). And the whole thing acts a one big mess. I tries playing around with every attribute I could think of. It looks like a flex 1.5 bug. Did anyone come across this kind of behavior? I've searched the archives and didn't find anything about it. Any help will be appreciated. Cheers. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Avoiding Multiple Browser Windows/Tags -I s it possible?
Hi yaagcur,you can set it up in Firefox. Go to Tools - Options - Tabs and then check the radiobutton open links from other applications to the most recent tab/window.Hope that helps X.On 7/30/06, yaagcur [EMAIL PROTECTED] wrote: Each time I run a project it opens a new tab in Firefox. After a fewof these are lined up, the project takes much longer to runIs there anyways to get round this in FlexBuilder so that the previouswindow is used and I dont have to keep closing tabs? cheers--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: php and flex
To push data you need a socket server. I'm not sure if there is a socket server available for php. Cheers, Ralf. [EMAIL PROTECTED] wrote: Can I also push data? Because till now I was justing using pull mechanism. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How to understand and fix reported errors?
Doesn't the error message say serverError? Are you sure, that your server works correctly? Try to call it from a simple html form. Cheers,Ralf. On 7/30/06, Mike [EMAIL PROTECTED] wrote: Getting some what closer. The original error was generated by the following call: private function serverFault(event:FaultEvent):void { errorMessage(event.message ['message']); } which in turn is called by: mx:RemoteObject id=authManager destination=ColdFusion source= test2.components.cfgenerated.managers.Auth showBusyCursor=true mx:method name=login result=login_result(event) fault=serverFault(event) / /mx:RemoteObjectif I remove the fault=serverFault(event) call, I get a new error:[RPC Fault faultString=java.lang.NullPointerException faultCode=Server.Processing faultDetail=null]at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()at mx.rpc::Responder/fault ()at mx.rpc::AsyncRequest/fault()at ::NetConnectionMessageResponder/NetConnectionChannel.as$37:NetConnectionMessageResponder::statusHandler()at mx.messaging::MessageResponder/status() Mike [EMAIL PROTECTED] wrote:Hi Ryan, Thanks. I think I got a Little bit closer. I was debugging the application stepping through and at one point I got: Source not found when trying to step through: mx.messaging.messages::Acknowledge Message$initThanks Mikeryan harlin [EMAIL PROTECTED] wrote: I'm having a similar error trying to run one of theAdobe tutorials using ColdFusion and Flex DataServicss (the CRM sample app). I get the message:Property employee not found on samples.crm.Company andthere is no default value.It goes on to list a bunch of info that means nothingto me.I've come to realize, in my case, that the message iseither referring to the Company.as file that residesin a file path samples/crm/Company.as or a coldfusioncfc file that resides in the coldfusion web root at wwwroot/sample/crm/Company.cfcBut beyond that I don't know what it wants to see inthe file that it's not seeing.I hope this, in some way, helps you track down atleast the problem file in your situation. I'll reply if I figure anything else on mine out.--- Mike [EMAIL PROTECTED] wrote: Anybody? I can't believe that I'm the only lucky one. Heeelp!!! mike_pq4 [EMAIL PROTECTED] wrote: I am running a simple app generated by Flex2 Builder using CF Wizard. Trying to login I get this: ReferenceError: Error #1069: Property message not found on mx.messaging.messages.ErrorMessage and there is no default value. atcom.cfgenerated.views.login::LoginForm/::serverFault () atcom.cfgenerated.views.login::LoginForm/___Operation1_fault() atflash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent () atmx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent () atmx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler () at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at::NetConnectionMessageResponder/NetConnectionChannel.as$37:NetConnectionMessageResponder::statusHandler() at mx.messaging::MessageResponder/status() I have no idea why I get it or how to fix it. And this is a major problem trying to really evaluate the product. I get stuck and there is no way out. Thanks - Do you Yahoo!? Everyone is raving about the all-new Yahoo! MailBeta.__ Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Groups are talking. We´re listening. Check out the handy changes to Yahoo! Groups. How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. -- Ralf Bokelberg [EMAIL PROTECTED]Flex Flash Consultant based in Cologne/Germany __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: Avoiding Multiple Browser Windows/Tags -I s it possible?
Perfect. Thanks --- In flexcoders@yahoogroups.com, Xavi Beumala [EMAIL PROTECTED] wrote: Hi yaagcur, you can set it up in Firefox. Go to Tools - Options - Tabs and then check the radiobutton open links from other applications to the most recent tab/window. Hope that helps X. On 7/30/06, yaagcur [EMAIL PROTECTED] wrote: Each time I run a project it opens a new tab in Firefox. After a few of these are lined up, the project takes much longer to run Is there anyways to get round this in FlexBuilder so that the previous window is used and I dont have to keep closing tabs? cheers -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: php and flex
--- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, arnold_charming arnold_charming@ wrote: Can I also push data? Because till now I was justing using pull mechanism. AMFPHP works in both directions. Please take a look at the AMFPHP documentation for details: http://www.amfphp.org/docs/ Stefan What should be done on the Flex side to enable data push? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] ButtonBar vs Buttons Help with Video control
I am trying to use the mx:ButtonBar to control my movie. I can control the movie just fine with mx:Button and the Click event. Example. mx:Button label=Pause click={myVid.pause()}/ mx:Button label=Play click={myVid.play()}/ mx:Button label=Rewind click={myVid.stop()}/ I just can't figure the right method of putting together the dataprovider for the ButtonBar to send these comands to the VideoDisplay. Some things I have tried are' mx:ButtonBar itemClick=clickHandler(event); id=btbTwo horizontalGap=1 width=200 mx:dataProvider mx:Array mx:Object label=Play item={myVideo.play()}/ mx:Object label=Pause item={myVideo.pause()}/ mx:Object label=Rewind item={myVideo.stop()}/ /mx:Array /mx:dataProvider /mx:ButtonBar Documentation talks of an Object called item as a property of ButtonBar ItemClickEvent If anyone has this done could I find out how? Thanks, -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: php and flex
I dont use AMFPHP to comunicate with Flex, AMFPHP its a good solution but I prefer to make all server scripts by myself, also if you send a lot of registers to a datagrid in XML format the amount of bytes is too high, if you send registers in your propietry way you send less data but you have to transform in the client. Here you have a sample filling a ComboBox: PHP send this (each line is a register): field1|field2|field3| field1|field2|field3| field1|field2|field3| At Flex: hs is a HTTPService instance private function getResult(event:Event):void{ switch(this.hs.resultFormat){ case 'object': // In this case the PHP sent one XML this.dataProvider=hs.lastResult.item; break; case 'text': // In this case PHP sent registers whose fields are separated by '|' character if(this.hs.lastResult!=''){ var a:Array=this.hs.lastResult.split('|'); var b:Array=new Array(); for(var x:Number=0;xa.length;x+=2){ b[b.length]={label:a[x],value:a[x+1]}; } this.dataProvider=b; } break; } } --- In flexcoders@yahoogroups.com, arnold_charming [EMAIL PROTECTED] wrote: Hi! I'm using php as my server pages while flex is used for presentation logic. What bugs me the most is the exchange of data between PHP and Flex. I always have to generate a XML file and then passed it to Flex. Can this be done any simplier and faster? How about passing mysql data results from PHP directly to Flex without the hasle of transforming it to XML? Is AMFPHP the right tool for this job? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Strange things of creationComplete,preinitialize in application Tab
The applicationComplete doesn't work. --- In flexcoders@yahoogroups.com, Jeremy Lu [EMAIL PROTECTED] wrote: Have you tried applicationComplete event in your main app mxml ? Jeremy. On 7/30/06, junhufr [EMAIL PROTECTED] wrote: All, have strange things! I've used HTTPService to invoke a remote XML file and convert to e4x object. I've invoked .send() method in custom initApp() method. I addressed either creationComplete or preinitialize in 'Application' Tab. Nothing happened. Then I declared both creationComplete,preinitialize in 'Application' Tab, then I get my XML values sucessfully. Does anyone get same thing? Or somebody could explain me why? Any help is appreciated. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: php and flex
--- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, arnold_charming arnold_charming@ wrote: Can I also push data? Because till now I was justing using pull mechanism. AMFPHP works in both directions. Please take a look at the AMFPHP documentation for details: http://www.amfphp.org/docs/ Stefan I've looked and looked but can't seem to find anything about data push. I'm going to use data push in application because time to time my application will send some messages to all current users of application. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: php and flex
You'll need XMLSocket. PHP can do it. http://www.enobrev.com/chat_tutorial.php - Original Message - From: arnold_charming [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, July 30, 2006 5:00 AM Subject: [flexcoders] Re: php and flex --- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, arnold_charming arnold_charming@ wrote: Can I also push data? Because till now I was justing using pull mechanism. AMFPHP works in both directions. Please take a look at the AMFPHP documentation for details: http://www.amfphp.org/docs/ Stefan I've looked and looked but can't seem to find anything about data push. I'm going to use data push in application because time to time my application will send some messages to all current users of application. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders]Solved How to understand and fix reported errors?
It seems that my CFMX 7.02 was either incomplete or corrupted. Which is strange as it worked fine with FB 2 beta 3. Anyway, after installing the CFMX 7.02 updater I was able to run the app (well at least log in).Thanks PS BTW I thing Adobe should create friendlier messages and maybe some tools to test different connectivity issues. Unfortunately I lost almost all my trial period...Mike [EMAIL PROTECTED] wrote:Getting some what closer. The original error was generated by the following call: private function serverFault(event:FaultEvent):void { errorMessage(event.message['message']); } which in turn is called by: mx:RemoteObject id="authManager" destination="ColdFusion" source="test2.components.cfgenerated.managers.Auth" showBusyCursor="true" mx:method name="login" result="login_result(event)" fault="serverFault(event)" / /mx:RemoteObjectif I remove the fault="serverFault(event)" call, I get a new error:[RPC Fault faultString="java.lang.NullPointerException" faultCode="Server.Processing" faultDetail="null"]at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()at mx.rpc::Responder/fault()at mx.rpc::AsyncRequest/fault()at ::NetConnectionMessageResponder/NetConnectionChannel.as$37:NetConnectionMessageResponder::statusHandler()at mx.messaging::MessageResponder/status() Mike [EMAIL PROTECTED]com wrote:Hi Ryan,Thanks. I think I got a Little bit closer. I was debugging the application stepping through and at one point I got: Source not found when trying to step through: mx.messaging.messages::Acknowledge Message$initThanks Mikeryan harlin [EMAIL PROTECTED]com wrote: I'm having a similar error trying to run one of theAdobe tutorials using ColdFusion and Flex DataServicss (the CRM sample app). I get the message:Property employee not found on samples.crm.Company andthere is no default value.It goes on to list a bunch of info that means nothingto me.I've come to realize, in my case, that the message iseither referring to the Company.as file that residesin a file path samples/crm/Company.as or a coldfusioncfc file that resides in the coldfusion web root atwwwroot/sample/crm/Company.cfcBut beyond that I don't know what it wants to see inthe file that it's not seeing.I hope this, in some way, helps you track down atleast the problem file in your situation. I'll replyif I figure anything else on mine out.--- Mike [EMAIL PROTECTED]com wrote: Anybody? I can't believe that I'm the only "lucky one". Heeelp!!! mike_pq4 [EMAIL PROTECTED]com wrote: I am running a simple app generated by Flex2 Builder using CF Wizard. Trying to login I get this: ReferenceError: Error #1069: Property message not found on mx.messaging.messages.ErrorMessage and there is no default value. atcom.cfgenerated.views.login::LoginForm/::serverFault() atcom.cfgenerated.views.login::LoginForm/___Operation1_fault() atflash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() atmx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent() atmx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at::NetConnectionMessageResponder/NetConnectionChannel.as$37:NetConnectionMessageResponder::statusHandler() at mx.messaging::MessageResponder/status() I have no idea why I get it or how to fix it. And this is a major problem trying to really evaluate the product. I get stuck and there is no way out. Thanks - Do you Yahoo!? Everyone is raving about the all-new Yahoo! MailBeta.__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Groups are talking. We´re listening. Check out the handy changes to Yahoo! Groups. How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates. Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms
[flexcoders] Re: php and flex
Its worth noting that very often what is perceived as server-push is actually implemented through some form of client-pull. For instance, in many enterprise message bus implementations, the client makes a single blocking call which hangs, but does so on an independant thread. When the event occurs, the servant returns control and marshalls results to the waiting client. From the outside this appears the server pushed data to the client. In reality the client pulled it. The reason I bring this up is that Flex is a great client to implement just such a server-push approach with. Since all mx:HttpService/ calls occur on their own client thread, you can easily implement server-push style functionality with basically any kind of servant implementation. We used to call this approach a Blocking Registration. -- Dave Wolf Cynergy Systems, Inc. Adobe Flex Alliance Partner http://www.cynergysystems.com http://www.cynergysystems.com/blogs Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, arnold_charming [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Stefan Schmalhaus stefan@ wrote: --- In flexcoders@yahoogroups.com, arnold_charming arnold_charming@ wrote: Can I also push data? Because till now I was justing using pull mechanism. AMFPHP works in both directions. Please take a look at the AMFPHP documentation for details: http://www.amfphp.org/docs/ Stefan I've looked and looked but can't seem to find anything about data push. I'm going to use data push in application because time to time my application will send some messages to all current users of application. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Using IUID
I am a newbie and was trying to understand how to use the iuid interface while using a datagrid that is being populated by a ArrayCollection fetching data from an xml using http service. Can any of you point me to an example Thanks -pateyog -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] DataProvider on DataGrid access by index
I fill the DataProvider of a DataGrid with an array, when the user selects a row i retrieve the selected row with selectedItem property. I want to get the value of each column not acessing by the dataField but acessing by an index, is that possible ? Thanks in advance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: DataProvider on DataGrid access by index
Would selectedIndex work? --- In flexcoders@yahoogroups.com, ddanone2 [EMAIL PROTECTED] wrote: I fill the DataProvider of a DataGrid with an array, when the user selects a row i retrieve the selected row with selectedItem property. I want to get the value of each column not acessing by the dataField but acessing by an index, is that possible ? Thanks in advance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: WebService Call
I'll try that and let you know what the results are. Rich --- In flexcoders@yahoogroups.com, Franck de Bruijn [EMAIL PROTECTED] wrote: Have you tried to access the wsdl and call the webservice operation from another webservice client than Flex? The tool I always use is: http://www.soapui.org/jnlp/1.5/soapui.jnlp (this is a webstart link; if you click it, and you have Java installed on your machine it should start automatically). Cheers, Franck _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of richmcgillicuddy Sent: Friday, July 28, 2006 9:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService Call Yes, I see the definition but with most XML parse errors (not just flex), the error messages are difficult to track down. It is telling me that it cannot add the node . I'll get the exact error message and post it later tonight. I'd prefer to use a WebService rather than an Service. Rich --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, slangeberg slangeberg@ wrote: So when you point your browser to: http://localhost: http://localhost:9126/SOAP 9126/SOAP you are seeing the WSDL definition? Scott On 7/28/06, richmcgillicuddy rich@ wrote: Thanks for the pointers, they are really helpful. I have my own app server and can tell that the flex application calls it, tries to retrieve the wsdl file and then in flex it tells me that there is an XML parsing error in the wsdl file. It this point, I am leaning towards using simple XML since I can generate that if needed. Other than download and testing SOAP wsdl validators and making sure it is standard, i think the only other option is the straight XML. Rich --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com flexcoders%40yahoogroups.com, slangeberg slangeberg@ wrote: Yeah, Try something more like (I'm not sure what your 'FlexData' object was supposed to refer to... ): mx:..sometag onComplete=wsTest.getData() mx:WebService id=wsTest wsdl=http://localhost: http://localhost:9126/SOAP 9126/SOAP fault={trace(-1);} result={trace(1);}/ /mx:...sometag On 7/26/06, richmcgillicuddy rich@ wrote: I have a simple web service calling a SOAP web service on my local machine. The call looks like: mx:WebService id=wsTest wsdl=http://localhost: http://localhost:9126/SOAP 9126/SOAP load=wsTest.FlexData.getData() fault=trace(-1); / It seems to hang waiting for localhost and if I let it wait long enough, it will give me the following error: ReferenceError: Error #1069: Property getData not found on mx.rpc.soap.mxml.Operation and there is no default value. at Step2/__wsTest_load() ... On the Web Server side, I am looking for client connects from flash and do not seem to get even the client connect. Any ideas? Is there anything that looks odd with the WebService statement? Rich -- : : ) Scott -- : : ) Scott -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Cairngorm - Invoking screens
I am confused about how to structure Cairngorm screens for display. The examples I have seen are extremely simple and do not show how Cairngorm will scale for large applications. Benoits phones example only shows a single list form with a detail form added. How are people constructing multiple form applications? Are you using separate states for the views with included view files? How are you invoking screens? We need some more sample applications PLEASE! Flex and actionscript are complex enough to learn but Cairngorm requires some more tutorials and samples to figure out. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: DataProvider on DataGrid access by index
Do you mean by the index of the column or index of the row? Within the row of the selectedItem, you could get the values of each column doing something like this (note, this is written in email client, not FB, so typos are not only possible, they are likely): var row:Object = dg.selectedItem; var cols:Array = dg.columns; for(var i:int=0;icolumns.length;i++){ var col:DataGridColum = dg.columns[i]; var colProp:String = col.dataField; var thisColsVal = row[colProp]; } At 12:50 PM 7/30/2006, howardescholz wrote: Would selectedIndex work? --- In flexcoders@yahoogroups.com, ddanone2 [EMAIL PROTECTED] wrote: I fill the DataProvider of a DataGrid with an array, when the user selects a row i retrieve the selected row with selectedItem property. I want to get the value of each column not acessing by the dataField but acessing by an index, is that possible ? Thanks in advance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Cairngorm - Invoking screens
Building a larger application involves a combination of view states and MXML components. Take JesterXL's Amazon search example: http://www.jessewarden.com/archives/2006/07/flex_2_webservice.html In this example, you can see the use of view states. This is how many screens can be combined into one. I definitely suggest you look at States in the Flex help. In the same example, a modal window is used to show debugging info. The same technique can load in forms in the form of MXML components. You can have a directory of forms, each one something like this: !-- windowView.mxml -- ?xml version=1.0? mx:TitleWindow showCloseButton=true close=PopUpManager.removePopUp(this); creationComplete=initApp(); xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.managers.PopUpManager; private function initApp():void { this.title = Job Listing; } private function cancel():void { PopUpManager.removePopUp(this); } ]] /mx:Script mx:VBox verticalAlign=top width=100% height=100% verticalGap=10 paddingBottom=5 paddingLeft=5 paddingRight=5 paddingTop=5 x=4 y=4 mx:Form width=100% height=100% mx:FormItem label=Location: mx:Label text=Albany, NY width=100%/ /mx:FormItem mx:FormItem label=Job Type: mx:Label text=Contract width=100%/ /mx:FormItem mx:FormItem label=URL: mx:Label text=http://www.epicenterconsulting.com; width=100%/ /mx:FormItem mx:FormItem label=Description: mx:TextArea wordWrap=true text=dolor sit amet, consectetuer adipiscing elit. Donec diam tortor, viverra vitae, vestibulum in, molestie posuere, felis. Morbi posuere interdum nulla. Aenean libero pede, pretium lacinia, consectetuer in, vehicula non, enim. Morbi at enim.. width=200 height=200/ /mx:FormItem mx:FormItem label=Apply: mx:Label htmlText=dolor sit amet, [EMAIL PROTECTED] width=100%/ /mx:FormItem /mx:Form /mx:VBox /mx:TitleWindow Then you can invoke this window from your main.mxml: private function showModalWindow():void { myModal = TitleWindow(PopUpManager.createPopUp(this, windowView, true)); myModal.width = 440; myModal.height = 465; myModal.x = 0; myModal.y = 0; myModal.addEventListener(mouseDownOutside, enableAll); } Combine this technique with States and a TabNavigator and you have a lot of room to build a large app. I'm in the same boat as you, learning Cairngorm by examples and by reading the list and experimenting. The learning curve is fairly steep, and without the help of examples, putting the pieces together can be a slow process. You aren't alone, but it can feel like it sometimes. As I learn new stuff I'll be sure to post tutes on my blog for people to check out. I also recommend checking all the examples at Adobe -- Mike Potter's, etc -- they are extremely helpful. hth, Mike Britton -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Cairngorm: Managing Popup Windows
intersting to read this. we are working on a datagrid that has complex data, two text fields, in one column. We used a custom itemEditor with a RTE in it. Nice, right? nope, sucked. Can't quite seem to get the row height to expand contract as needed. So, we went with a modal popup. DK On 7/27/06, JesterXL [EMAIL PROTECTED] wrote: Popups were really valuble in Flex 1.5.Most didn't know about the depth scoping capabilites in Flash Player, nor needed to care.Popups workedgreat for putting stuff above everything and making it modal. Nowadays, with states and the DisplayList, the only valid reason I can seeis modality.Thus, I'd avoid 'em like the plague unless you can answer yes to thefollowing question: Does the form need to be modal?. - Original Message -From: Stefan Schmalhaus [EMAIL PROTECTED]To: flexcoders@yahoogroups.com Sent: Thursday, July 27, 2006 5:37 AMSubject: [flexcoders] Cairngorm: Managing Popup WindowsI've done some research on this list but haven't found any validinformation on what's considered best pratice in dealing with popup windows. The few Cairngorm sample apps that are around don't seem touse the TitleWindow component at all.Let's say I have a simple DataGrid populated with some user data. If Iclick on a row in the DataGrid a popup window opens with a form for editing the user information. The popup window also has two buttonsfor deleting or saving (updating) the user account.I have done stuff like this several times in Flash/AS2 but I've neverused a framework approach so far. Now, if I look at this rather simple task from a Cairngorm perspective it doesn't seem to be that simpleany more. (But I guess that's because I'm not yet too familiar withCairngorm.) I know how to establish databinding between the dataprovider and { model.users} and all this basic Cairngorm stuff.But what happens when a row is clicked? I'm not even sure if I'msupposed to treat this event as a single event (selectUser oropenPopup?) or as a chain of two events (selectUser - openPopup). Since my user information is organized as an array ofvalue objects it's easy to assign the selected user VO tomodel.selectedUser:model.selectedUser = UserVO(userList.selectedItem );But am I allowed to directly access the ModelLocator from my viewcomponent? Or am I supposed to route this simple action through theCairngorm command chain (Cairngorm Event - Front Controller - Command Class - ModelLocator)?Next question, what about the popup itself? Can I simply usePopUpManager.createPopUp( this, UserFormView , true)? Or am I supposedto treat this as a Cairngorm Event, too? I feel in safe Cairngorm terrain again with the updateUser anddeleteUser actions on the buttons. But what about closing the popupwindow? Is this even worth a Cairngorm event? I guess these questions sound rather stupid to those of you who aremore experienced with frameworks. But at the moment these questionsare obstacles on my way to master Cairngorm (which I will hopefully do one day). I apologize for my verbose post and my bad English, but Ihope that someone can shed some light on these issues.Stefan --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Cairngorm: Managing Popup Windows
I stand corrected. A purist would argue that you should figure out why the row heights aren't working, but I'm with you; if it works, and gets done quickly, who cares? - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Sunday, July 30, 2006 4:38 PM Subject: Re: [flexcoders] Cairngorm: Managing Popup Windows intersting to read this. we are working on a datagrid that has complex data, two text fields, in one column. We used a custom itemEditor with a RTE in it. Nice, right? nope, sucked. Can't quite seem to get the row height to expand contract as needed. So, we went with a modal popup. DK On 7/27/06, JesterXL [EMAIL PROTECTED] wrote: Popups were really valuble in Flex 1.5.Most didn't know about the depth scoping capabilites in Flash Player, nor needed to care.Popups workedgreat for putting stuff "above everything" and making it modal. Nowadays, with states and the DisplayList, the only valid reason I can seeis modality.Thus, I'd avoid 'em like the plague unless you can answer yes to thefollowing question: "Does the form need to be modal?". - Original Message -From: "Stefan Schmalhaus" [EMAIL PROTECTED]To: flexcoders@yahoogroups.com Sent: Thursday, July 27, 2006 5:37 AMSubject: [flexcoders] Cairngorm: Managing Popup WindowsI've done some research on this list but haven't found any validinformation on what's considered best pratice in dealing with popup windows. The few Cairngorm sample apps that are around don't seem touse the TitleWindow component at all.Let's say I have a simple DataGrid populated with some user data. If Iclick on a row in the DataGrid a popup window opens with a form for editing the user information. The popup window also has two buttonsfor deleting or saving (updating) the user account.I have done stuff like this several times in Flash/AS2 but I've neverused a framework approach so far. Now, if I look at this rather simple task from a Cairngorm perspective it doesn't seem to be that simpleany more. (But I guess that's because I'm not yet too familiar withCairngorm.) I know how to establish databinding between the dataprovider and { model.users} and all this basic Cairngorm stuff.But what happens when a row is clicked? I'm not even sure if I'msupposed to treat this event as a single event ("selectUser" or"openPopup"?) or as a chain of two events ("selectUser" - "openPopup"). Since my user information is organized as an array ofvalue objects it's easy to assign the selected user VO tomodel.selectedUser:model.selectedUser = UserVO(userList.selectedItem );But am I "allowed" to directly access the ModelLocator from my viewcomponent? Or am I supposed to route this simple action through theCairngorm "command chain" (Cairngorm Event - Front Controller - Command Class - ModelLocator)?Next question, what about the popup itself? Can I simply usePopUpManager.createPopUp( this, UserFormView , true)? Or am I supposedto treat this as a Cairngorm Event, too? I feel in "safe Cairngorm terrain" again with the "updateUser" and"deleteUser" actions on the buttons. But what about closing the popupwindow? Is this even worth a Cairngorm event? I guess these questions sound rather stupid to those of you who aremore experienced with frameworks. But at the moment these questionsare obstacles on my way to master Cairngorm (which I will hopefully doone day). I apologize for my verbose post and my bad English, but Ihope that someone can shed some light on these issues.Stefan--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice
Re: [flexcoders] Cairngorm: Managing Popup Windows
...hey, wait a minute, I still win! You're RTE DOES need to be modal. *whew* http://youbeat2trees.ytmnd.com/ - Original Message - From: JesterXL To: flexcoders@yahoogroups.com Sent: Sunday, July 30, 2006 4:49 PM Subject: Re: [flexcoders] Cairngorm: Managing Popup Windows I stand corrected. A purist would argue that you should figure out why the row heights aren't working, but I'm with you; if it works, and gets done quickly, who cares? - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Sunday, July 30, 2006 4:38 PM Subject: Re: [flexcoders] Cairngorm: Managing Popup Windows intersting to read this. we are working on a datagrid that has complex data, two text fields, in one column. We used a custom itemEditor with a RTE in it. Nice, right? nope, sucked. Can't quite seem to get the row height to expand contract as needed. So, we went with a modal popup. DK On 7/27/06, JesterXL [EMAIL PROTECTED] wrote: Popups were really valuble in Flex 1.5.Most didn't know about the depth scoping capabilites in Flash Player, nor needed to care.Popups workedgreat for putting stuff "above everything" and making it modal. Nowadays, with states and the DisplayList, the only valid reason I can seeis modality.Thus, I'd avoid 'em like the plague unless you can answer yes to thefollowing question: "Does the form need to be modal?". - Original Message -From: "Stefan Schmalhaus" [EMAIL PROTECTED]To: flexcoders@yahoogroups.com Sent: Thursday, July 27, 2006 5:37 AMSubject: [flexcoders] Cairngorm: Managing Popup WindowsI've done some research on this list but haven't found any validinformation on what's considered best pratice in dealing with popup windows. The few Cairngorm sample apps that are around don't seem touse the TitleWindow component at all.Let's say I have a simple DataGrid populated with some user data. If Iclick on a row in the DataGrid a popup window opens with a form for editing the user information. The popup window also has two buttonsfor deleting or saving (updating) the user account.I have done stuff like this several times in Flash/AS2 but I've neverused a framework approach so far. Now, if I look at this rather simple task from a Cairngorm perspective it doesn't seem to be that simpleany more. (But I guess that's because I'm not yet too familiar withCairngorm.) I know how to establish databinding between the dataprovider and { model.users} and all this basic Cairngorm stuff.But what happens when a row is clicked? I'm not even sure if I'msupposed to treat this event as a single event ("selectUser" or"openPopup"?) or as a chain of two events ("selectUser" - "openPopup"). Since my user information is organized as an array ofvalue objects it's easy to assign the selected user VO tomodel.selectedUser:model.selectedUser = UserVO(userList.selectedItem );But am I "allowed" to directly access the ModelLocator from my viewcomponent? Or am I supposed to route this simple action through theCairngorm "command chain" (Cairngorm Event - Front Controller - Command Class - ModelLocator)?Next question, what about the popup itself? Can I simply usePopUpManager.createPopUp( this, UserFormView , true)? Or am I supposedto treat this as a Cairngorm Event, too? I feel in "safe Cairngorm terrain" again with the "updateUser" and"deleteUser" actions on the buttons. But what about closing the popupwindow? Is this even worth a Cairngorm event? I guess these questions sound rather stupid to those of you who aremore experienced with frameworks. But at the moment these questionsare obstacles on my way to master Cairngorm (which I will hopefully doone day). I apologize for my verbose post and my bad English, but Ihope that someone can shed some light on these issues.Stefan--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software
[flexcoders] File - flexcodersFAQ.txt
Flexcoders Frequently Asked Questions Last Updated: 30th May 2005 Contributors: Matt Chotin, Steven Webster, Alistair McLeod, Tariq Ahmed, Jeff Tapper, Peter Farland, Abdul Qabiz, Tracy Spratt, Jesse Warden, Dan Harfleet, Manish Jethani, Dimitrios Gianninas 1. What is Flexcoders? 2. How does Flexcoders relate to the Macromedia Flex Forum on www.macromedia.com? 3. Who posts to Flexcoders? 4. Resources to check before asking a question 5. Guidelines for effective question-asking 6. FAQ 1. What is Flexcoders? Flexcoders is a forum where developers can ask questions about Flex, FlexBuilder, and Flex-related technologies (like Cairngorm, FlexUnit and SynergyFLEX). The community is made up of everyday Flex developers as well as Macromedia employees. However, this is not an official Macromedia-sponsored forum, it is actually moderated by the folks at iteration::two, a consultancy responsible for authoring the book Developing Rich Internet Applications with Macromedia Flex. 2. How does Flexcoders relate to the Macromedia Flex Forum on www.macromedia.com? Both the Macromedia Flex Forum and Flexcoders provide help on issues related to Flex, and neither is an official support mechanism. Some people monitor both forums, some only one. It is up to you to decide where you might have a better experience getting a question answered and being able to subsequently help others. 3. Who posts to Flexcoders? Everyone who has a question or an answer. Many members of the Flex development team read and respond to Flexcoders as well as other Macromedia folks who monitor the community. Some recurring Macromedia folks are: David Mendels: EVP and GM, highest-level executive in charge of Flex. Lucian Beebe: Sr. Product Manager, Flex. Matt Chotin, Manish Jethani, Abdul Qabiz, Gordon Smith, Peter Farland and many more: Engineers on Flex. Active community members include: Steven Webster (Technical Director at iteration::two and co-author of Developing Rich Clients with Macromedia Flex), Alistair McLeod (Development Director at iteration::two and co-author of Developing Rich Clients with Macromedia Flex), Jesse Warden (JesterXL - Flash badass playing with Flex), Tracy Spratt (long-time member, holder of all knowledge related to 32K limits), Jeff Steiner (maintainer of www.flexauthority.com), Tariq Ahmed (maintainer of www.cflex.net), Jimmy Gianninas (long-time member, developer at Optimal Payments). And so many more! 4. Resources to check before asking a question The Flexcoders Mail Archive (better searching than YahooGroups): http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.cflex.net/showfaq.cfm http://livedocs.macromedia.com/flex/15/asdocs_en/index.html http://www.macromedia.com/go/flex15_java_livedocs http://www.macromedia.com/cfusion/knowledgebase/index.cfm http://www.cflex.net http://www.flexauthority.com http://www.macromedia.com/devnet/flex http://coenraets.com http://weblogs.macromedia.com/mxna/ http://www.google.com The Book Developing Rich Clients with Macromedia Flex (check your favorite bookstore) 5. Guidelines to effective question-asking Include a useful subject; this will help people find their own questions and answers later. Explain what you are trying to accomplish. Explain the error (include compilation errors or a description of the runtime behavior). Be prepared to break your problem down into a simpler scenario in case someone wants to try to debug the code themselves. Remember, private web services are inaccessible; you may need to create some dummy data to emulate problems. Phrases to avoid: URGENT (we all have deadlines, no one is intentionally delaying a response to you) Please send code (this is very frustrating to read as it implies you aren't interested in learning anything on your own. Where code is appropriate you can expect someone to provide it, but in many cases you will learn more by doing it on your own with appropriate guidance. It may be that you're on a deadline and just want to finish, but many of those who respond regularly would prefer to teach you to fish so that you can answer your own questions next time and even help out others). 6. Mini-FAQ Q: Can I mail Matt, Manish, Abdul, Pete, Gordon, iteration::two, or anyone else for that matter off-line with my question? A: Please don't! If someone is capable of answering your question on- list please believe that it will be done. Everyone on the list has full-time jobs doing their own work and often answer flexcoders on their own time; mailing them off- list doesnt endear you to them. If no one answers on-list in a reasonable amount of time (24 hours) you can try to rephrase the question and perhaps include more detail (including a version of the problem that someone can run without doing any setup on their own
RE: [flexcoders] File - flexcodersFAQ.txt
So before half of the flexcoders mailing list mails me and tells me the FAQ is out of date (and they told me last month) I know, and I'll do my best to update it before it comes out again. Volunteers from the community, welcomed :) Fame and fortune is yours (and I may even buy you a beer at MAX) if you take on board this task ... Mr Chotin. Steven -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: 30 July 2006 22:22 To: flexcoders@yahoogroups.com Subject: [flexcoders] File - flexcodersFAQ.txt Flexcoders Frequently Asked Questions Last Updated: 30th May 2005 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: DataProvider on DataGrid access by index
selectedIndex is an object so i can't access to values like an array var name:String=mydatagrid.selectedIndex.name; var surname:String=mydatagrid.selectedIndex.surname; that works var name:String=mydatagrid.selectedIndex[0]; var surname:String=mydatagrid.selectedIndex[1]; that doesnt works --- In flexcoders@yahoogroups.com, howardescholz [EMAIL PROTECTED] wrote: Would selectedIndex work? --- In flexcoders@yahoogroups.com, ddanone2 nomejodas836@ wrote: I fill the DataProvider of a DataGrid with an array, when the user selects a row i retrieve the selected row with selectedItem property. I want to get the value of each column not acessing by the dataField but acessing by an index, is that possible ? Thanks in advance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: DataProvider on DataGrid access by index
I get it!! This code traverse the selected row of a DataGrid, get the dataField of each column and its value. var fieldname:String = new String(); for( var i:Number=0; imydatagrid.columns.length; i++ ){ fieldname = mydatagrid.columns[i].dataField; Alert.show( mydatagrid.dataProvider[mydatagrid.selectedIndices][ fieldname ] ); } (Thanks to Felix) --- In flexcoders@yahoogroups.com, ddanone2 [EMAIL PROTECTED] wrote: I fill the DataProvider of a DataGrid with an array, when the user selects a row i retrieve the selected row with selectedItem property. I want to get the value of each column not acessing by the dataField but acessing by an index, is that possible ? Thanks in advance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: php and flex
What about python - anyone know a good python equivalent? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of arnold_charming Sent: 30 July 2006 10:06 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: php and flex --- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, arnold_charming arnold_charming@ wrote: Can I also push data? Because till now I was justing using pull mechanism. AMFPHP works in both directions. Please take a look at the AMFPHP documentation for details: http://www.amfphp.org/docs/ Stefan What should be done on the Flex side to enable data push? -- 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 --- [This E-mail scanned for viruses for your protection] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: WebService Call
You can also post the WSDL here (if it is not to big), otherwise send it to me by mail: franck (dot) de (dot) bruijn (at) zonnet (dot) nl and Ill have a look. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of richmcgillicuddy Sent: Sunday, July 30, 2006 9:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService Call I'll try that and let you know what the results are. Rich --- In [EMAIL PROTECTED]ups.com, Franck de Bruijn franck.de.bruijn@... wrote: Have you tried to access the wsdl and call the webservice operation from another webservice client than Flex? The tool I always use is: http://www.soapui.org/jnlp/1.5/soapui.jnlp (this is a webstart link; if you click it, and you have Java installed on your machine it should start automatically). Cheers, Franck _ From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of richmcgillicuddy Sent: Friday, July 28, 2006 9:43 PM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Re: WebService Call Yes, I see the definition but with most XML parse errors (not just flex), the error messages are difficult to track down. It is telling me that it cannot add the node . I'll get the exact error message and post it later tonight. I'd prefer to use a WebService rather than an Service. Rich --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, slangeberg slangeberg@ wrote: So when you point your browser to: http://localhost: http://localhost:9126/SOAP 9126/SOAP you are seeing the WSDL definition? Scott On 7/28/06, richmcgillicuddy rich@ wrote: Thanks for the pointers, they are really helpful. I have my own app server and can tell that the flex application calls it, tries to retrieve the wsdl file and then in flex it tells me that there is an XML parsing error in the wsdl file. It this point, I am leaning towards using simple XML since I can generate that if needed. Other than download and testing SOAP wsdl validators and making sure it is standard, i think the only other option is the straight XML. Rich --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com flexcoders%40yahoogroups.com, slangeberg slangeberg@ wrote: Yeah, Try something more like (I'm not sure what your 'FlexData' object was supposed to refer to... ): mx:..sometag >wsTest.getData() mx:WebService id=wsTest wsdl=http://localhost: http://localhost:9126/SOAP 9126/SOAP fault={trace(-1);} result={trace(1);}/ /mx:...sometag On 7/26/06, richmcgillicuddy rich@ wrote: I have a simple web service calling a SOAP web service on my local machine. The call looks like: mx:WebService id=wsTest wsdl=http://localhost: http://localhost:9126/SOAP 9126/SOAP load=wsTest.FlexData.getData() fault=trace(-1); / It seems to hang waiting for localhost and if I let it wait long enough, it will give me the following error: ReferenceError: Error #1069: Property getData not found on mx.rpc.soap.mxml.Operation and there is no default value. at Step2/__wsTest_load() ... On the Web Server side, I am looking for client connects from flash and do not seem to get even the client connect. Any ideas? Is there anything that looks odd with the WebService statement? Rich -- : : ) Scott -- : : ) Scott __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: Weblogic webservice access problem
The default value for useProxy is now false. If you don't elect to use the proxt, the whitelist does not come into play and crossdomain.xml does. Carson Carson HagerCynergy Systems, Inc.http://www.cynergysystems.comEmail: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jpc14_99Sent: Saturday, July 29, 2006 1:19 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: Weblogic webservice access problem I found help here:http://www.mail-archive.com/flexcoders@yahoogroups.com/msg34914.htmlI'm confused why I'm not using a whitelist definition in the flex-config like I did with the Beta, but making a crossdomain.xml file and opening it up "*" on my webservices web folder works. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Cairngorm - Invoking screens
Hi Guys, Cairngorm is purposefully non-prescriptive about the way you choose to implement the view; so we would neither advocate that you do so using States, nor advocate that you don't.This is one of our core-values in being able to call ourselves a "lightweight architecture" - that we are not enforcing upon developers the way they structure their MXML that implements the overall user-experience. Typically to date, we(iteration::two / Adobe Consulting EMEA) haven't leveraged States formulti-screen Cairngorm applications, preferring instead to use Stateswhere we have transitions within a complex MXML component (which can live both within and outwith a Cairngorm application - components shouldn't depend upon Cairngorm to be reusable). When you are building applicaitons witha number of different views, the decisions that you make to structure these applications are irrespective of the fact that you are or are not using Cairngorm. I could certainly advocate best-practices in doing so - and will try and do so in a blog entry or other post - but don't be mistaken because you are using Cairngorm that there is a prescribed way for building applications with multiple or large numbers of views. In the end, the patterns are repeatable - whether you have 1 view or 100 views bound to a model locator class, and whether you have 1 view or 100 views that are responsible in some way for notifying the controller of a user-gesture by broadcasting an event. Make sense ? I can't recall if my presentation from MAX2005 is archived online or not - but if it is, I covered this idea of architecting the view in that presentation; come to think of it, the structure of that presentation was the basis for the 6-part article on devnet, which you can find linked on www.adobe.com/go/cairngorm/ So you're free to build your view however you like - and leverage whatever best practices the community has to offer you. Cairngorm will form the bedrock (*) of your underlying application whatever decisions you make. Best, Steven (*) Subtle Cairngorm pun in there... Steven WebsterPractice Leader (Rich Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6108 m: +44 (0)7917 428 947[EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike BrittonSent: 30 July 2006 21:30To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm - Invoking screens Building a larger application involves a combination of view statesand MXML components. Take JesterXL's Amazon search example:http://www.jessewarden.com/archives/2006/07/flex_2_webservice.htmlIn this example, you can see the use of view states. This is how many"screens" can be combined into one. I definitely suggest you look atStates in the Flex help.In the same example, a modal window is used to show debugging info.The same technique can load in forms in the form of MXML components.You can have a directory of forms, each one something like this:!-- windowView.mxml --?xml version="1.0"?mx:TitleWindowshowCloseButton="true" close="PopUpManager.removePopUp(this);"creationComplete="initApp();"xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"mx:Script![CDATA[import mx.managers.PopUpManager;private function initApp():void {this.title = "Job Listing";}private function cancel():void {PopUpManager.removePopUp(this);}]]/mx:Scriptmx:VBox verticalAlign="top" width="100%" height="100%"verticalGap="10" paddingBottom="5" paddingLeft="5" paddingRight="5"paddingTop="5" x="4" y="4"mx:Form width="100%" height="100%"mx:FormItem label="Location:"mx:Label text="Albany, NY" width="100%"//mx:FormItemmx:FormItem label="Job Type:"mx:Label text="Contract" width="100%"//mx:FormItemmx:FormItem label="URL:"mx:Label text="http://www.epicenterconsulting.com"width="100%"//mx:FormItemmx:FormItem label="Description:"mx:TextArea wordWrap="true" text="dolor sit amet,consectetuer adipiscing elit. Donec diam tortor, viverra vitae,vestibulum in, molestie posuere, felis. Morbi posuere interdum nulla.Aenean libero pede, pretium lacinia, consectetuer in, vehicula non,enim. Morbi at enim.." width="200" height="200"//mx:FormItemmx:FormItem label="Apply:"mx:Label htmlText="dolor sit amet,[EMAIL PROTECTED]ulting.com" width="100%"//mx:FormItem/mx:Form/mx:VBox/mx:TitleWindowThen you can invoke this window from your main.mxml:private function showModalWindow():void {myModal = TitleWindow(PopUpManager.createPopUp(this, windowView, true));myModal.width = 440;myModal.height = 465;myModal.x = 0;myModal.y = 0;myModal.addEventListener("mouseDownOutside", enableAll);}Combine this technique with States and a TabNavigator
RE: [flexcoders] File - flexcodersFAQ.txt
If I had a beer for every time someone owed be a beer... From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steven Webster Sent: Sunday, July 30, 2006 2:26 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] File - flexcodersFAQ.txt So before half of the flexcoders mailing list mails me and tells me the FAQ is out of date (and they told me last month) I know, and I'll do my best to update it before it comes out again. Volunteers from the community, welcomed :) Fame and fortune is yours (and I may even buy you a beer at MAX) if you take on board this task ... Mr Chotin. Steven -Original Message- From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] Sent: 30 July 2006 22:22 To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] File - flexcodersFAQ.txt Flexcoders Frequently Asked Questions Last Updated: 30th May 2005 __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Flex Application structure
Hi,I ma looking at replacing the presentation layer of a CFMX 7 app with Flex 2.0The application has a number of modules and I am not sure if any of the structures bellow presents any advantages over the other. Any comments appreciated:Version1:Application Module1 Controllers Models Views Module2 Controllers Models Views etcor Vesion2 Application Controllers Module1 Module2 ... Models Module1 Module2 ... Views Module1 Module2 ...or are there any better solutions? Any sites that explain how to architect/structure a flex app.Thanks Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: Cairngorm - Invoking screens
Great reply Mike. That is the most complete answer I have ever received on this list! Thanks. It gives me exactly what I need to proceed. --- In flexcoders@yahoogroups.com, Mike Britton [EMAIL PROTECTED] wrote: Building a larger application involves a combination of view states and MXML components. Take JesterXL's Amazon search example: http://www.jessewarden.com/archives/2006/07/flex_2_webservice.html In this example, you can see the use of view states. This is how many screens can be combined into one. I definitely suggest you look at States in the Flex help. In the same example, a modal window is used to show debugging info. The same technique can load in forms in the form of MXML components. You can have a directory of forms, each one something like this: !-- windowView.mxml -- ?xml version=1.0? mx:TitleWindow showCloseButton=true close=PopUpManager.removePopUp(this); creationComplete=initApp(); xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.managers.PopUpManager; private function initApp():void { this.title = Job Listing; } private function cancel():void { PopUpManager.removePopUp(this); } ]] /mx:Script mx:VBox verticalAlign=top width=100% height=100% verticalGap=10 paddingBottom=5 paddingLeft=5 paddingRight=5 paddingTop=5 x=4 y=4 mx:Form width=100% height=100% mx:FormItem label=Location: mx:Label text=Albany, NY width=100%/ /mx:FormItem mx:FormItem label=Job Type: mx:Label text=Contract width=100%/ /mx:FormItem mx:FormItem label=URL: mx:Label text=http://www.epicenterconsulting.com; width=100%/ /mx:FormItem mx:FormItem label=Description: mx:TextArea wordWrap=true text=dolor sit amet, consectetuer adipiscing elit. Donec diam tortor, viverra vitae, vestibulum in, molestie posuere, felis. Morbi posuere interdum nulla. Aenean libero pede, pretium lacinia, consectetuer in, vehicula non, enim. Morbi at enim.. width=200 height=200/ /mx:FormItem mx:FormItem label=Apply: mx:Label htmlText=dolor sit amet, [EMAIL PROTECTED] width=100%/ /mx:FormItem /mx:Form /mx:VBox /mx:TitleWindow Then you can invoke this window from your main.mxml: private function showModalWindow():void { myModal = TitleWindow(PopUpManager.createPopUp(this, windowView, true)); myModal.width = 440; myModal.height = 465; myModal.x = 0; myModal.y = 0; myModal.addEventListener(mouseDownOutside, enableAll); } Combine this technique with States and a TabNavigator and you have a lot of room to build a large app. I'm in the same boat as you, learning Cairngorm by examples and by reading the list and experimenting. The learning curve is fairly steep, and without the help of examples, putting the pieces together can be a slow process. You aren't alone, but it can feel like it sometimes. As I learn new stuff I'll be sure to post tutes on my blog for people to check out. I also recommend checking all the examples at Adobe -- Mike Potter's, etc -- they are extremely helpful. hth, Mike Britton -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex Application structure
heh I had this same question about 2 years ago when developing an application in PHPMost voted for version 1I prefer number 1 when it comes to having a serverside application working with thembut version 2 if I come to manage it by hand ( you know browsing folders, copy/paste etc... ) If you can... use virtual folders to lay it out like version 2 but I recommend using version 1 when your application comes to work with them...WARNING: MAKE SURE THE DATA IS CORRECT WHEN USING VIRTUAL FOLDERS :p just a side note I don't use virtual folders so I don't know any programs yet other than FTP serversOn 30/07/06, Mike [EMAIL PROTECTED] wrote: Hi,I ma looking at replacing the presentation layer of a CFMX 7 app with Flex 2.0The application has a number of modules and I am not sure if any of the structures bellow presents any advantages over the other. Any comments appreciated: Version1:Application Module1 Controllers Models Views Module2 Controllers Models Views etcor Vesion2 Application Controllers Module1 Module2 ... Models Module1 Module2 ... Views Module1 Module2 ...or are there any better solutions? Any sites that explain how to architect/structure a flex app. Thanks Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Using IUID
I have done it in a VO using Cairngorm, I suppose it won't be very different to you:package com.example.vo { import mx.core.IUID; import com.adobe.cairngorm.vo.ValueObject ; [RemoteClass(alias=com.example.vo.ExampleVO)] [Bindable] public class ExampleVO implements ValueObject, IUID {public var dummyVar: int;public var anotherDummyVar : String;public var _uid:String; public function get uid():String { return _uid; } public function set uid(value:String):void { _uid = value; } } }Oriol.2006/7/30, pateyog [EMAIL PROTECTED]: I am a newbie and was trying to understand how to use the iuidinterface while using a datagrid that is being populated by aArrayCollection fetching data from an xml using http service.Can any of you point me to an example Thanks-pateyog--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] php, flex...and uploading images
I've seen several references to the possibility of uploading BitmapData or similar client-derived images to a server using PHP, but I can't find any actual examples. While the docs do have an example of using FileReference to upload a client-side file off the filesystem, it seems the code is likely to be fairly different than trying to "upload" the data derived from a client-side image manipulation. Note that there are some Flash-centric examples or ones that use PHP and GD but that seems to make things more complicated than they need to be. If possible, it would be great to have something that was straight Actionscript 3. Does anyone have anything they are willing to share? -Mark __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] File - flexcodersFAQ.txt
OK, attached is a 15 minute crack at an update. Consider this a contribution and the rest of you can hash out exactly what you want in there for everyone J Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steven Webster Sent: Sunday, July 30, 2006 2:26 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] File - flexcodersFAQ.txt So before half of the flexcoders mailing list mails me and tells me the FAQ is out of date (and they told me last month) I know, and I'll do my best to update it before it comes out again. Volunteers from the community, welcomed :) Fame and fortune is yours (and I may even buy you a beer at MAX) if you take on board this task ... Mr Chotin. Steven -Original Message- From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] Sent: 30 July 2006 22:22 To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] File - flexcodersFAQ.txt Flexcoders Frequently Asked Questions Last Updated: 30th May 2005 __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___ Flexcoders Frequently Asked Questions Last Updated: 31st July 2006 Contributors: Matt Chotin, Steven Webster, Alistair McLeod, Tariq Ahmed, Jeff Tapper, Peter Farland, Abdul Qabiz, Tracy Spratt, Jesse Warden, Dan Harfleet, Manish Jethani, Dimitrios Gianninas 1. What is Flexcoders? 2. How does Flexcoders relate to the Adobe Flex Forum on www.adobe.com? 3. Who posts to Flexcoders? 4. Resources to check before asking a question 5. Guidelines for effective question-asking 6. FAQ 1. What is Flexcoders? Flexcoders is a forum where developers can ask questions about Flex, FlexBuilder, and Flex-related technologies (like Cairngorm and FlexUnit). The community is made up of everyday Flex developers as well as Adobe employees. However, this is not an official Adobe-sponsored forum, it is moderated by the community. However the original moderators who are still actively involved are folks from iteration::two, now members of Adobe Consulting. 2. How does Flexcoders relate to the Adobe Flex Forum on www.adobe.com? Both the Adobe Flex Forum and Flexcoders provide help on issues related to Flex, and neither is an official support mechanism. Some people monitor both forums, some only one. It is up to you to decide where you might have a better experience getting a question answered and being able to subsequently help others. 3. Who posts to Flexcoders? Everyone who has a question or an answer. Many members of the Flex development team read and respond to Flexcoders as well as other Adobe folks who monitor the community. Some recurring Adobe folks are: David Mendels: EVP and GM, highest-level executive in charge of Flex. Phil Costa: Group Product Manager, Flex. Matt Chotin, Product Manager Flex. Manish Jethani, Roger Gonzalez, Cathy Murphy, Gordon Smith, Peter Farland and many more: Engineers on Flex. Active community members include: Steven Webster (Adobe Consulting RIA Practice Lead and co-author of Developing Rich Clients with Macromedia Flex), Alistair McLeod (Adobe Consulting RIA Practice Manager and co-author of Developing Rich Clients with Macromedia Flex), Jesse Warden (JesterXL - Flash and Flex badass), Tracy Spratt (long-time member, holder of all knowledge related to Flex 1.5 32K limits), Jeff Steiner (maintainer of www.flexauthority.com), Tariq Ahmed (maintainer of www.cflex.net), Jimmy Gianninas (long-time member, developer at Optimal Payments). And so many more with Flex 2 that it's impossible to keep track! 4. Resources to check before asking a question The Flexcoders Mail Archive (better searching than YahooGroups): http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.adobe.com/cfusion/webforums/forum/index.cfm?forumid=60 http://www.adobe.com/cfusion/knowledgebase/index.cfm http://www.cflex.net/showfaq.cfm http://www.cflex.net http://www.flexauthority.com http://www.adobe.com/devnet/flex
[flexcoders] Re: DataProvider on DataGrid access by index
Thanks Jeff, that's the working piece of cake!! --- In flexcoders@yahoogroups.com, Jeff Tapper [EMAIL PROTECTED] wrote: Do you mean by the index of the column or index of the row? Within the row of the selectedItem, you could get the values of each column doing something like this (note, this is written in email client, not FB, so typos are not only possible, they are likely): var row:Object = dg.selectedItem; var cols:Array = dg.columns; for(var i:int=0;icolumns.length;i++){ var col:DataGridColum = dg.columns[i]; var colProp:String = col.dataField; var thisColsVal = row[colProp]; } At 12:50 PM 7/30/2006, howardescholz wrote: Would selectedIndex work? --- In flexcoders@yahoogroups.com, ddanone2 nomejodas836@ wrote: I fill the DataProvider of a DataGrid with an array, when the user selects a row i retrieve the selected row with selectedItem property. I want to get the value of each column not acessing by the dataField but acessing by an index, is that possible ? Thanks in advance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Caringorm - Visual Flowchart Poster!
If you would like to kick your visio chart over to me I would be happy to help. russellatcorbell.com.au Also, I'll happily pass along the Visio document to anyone who would like to help, either with colors, shapes or organization, please don't hesitate to ring in. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] cairngorn vs FDS DataService
Tom, just to check... you're saying that, if you don't need syncronised data or being able to pust data or messages to clients, then the garden variety remoting would do just fine... yes? so the opposite is true? if you *have* to have data in sync/ only one copy of the record can be edited at any one time/ controlling data collision, etc then FDS is the way to go... IMHO, that in itself is, when the situation demands it (like my previous project, pre-FDS) , is worth every penny of FDS -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Using IUID
If your VO are bindable, chances are very high that you might not need to implement the IUID interface, it will be automatically done. Jeremy.On 7/31/06, Oriol Gual [EMAIL PROTECTED] wrote: I have done it in a VO using Cairngorm, I suppose it won't be very different to you:package com.example.vo { import mx.core.IUID; import com.adobe.cairngorm.vo.ValueObject ; [RemoteClass(alias=com.example.vo.ExampleVO)] [Bindable] public class ExampleVO implements ValueObject, IUID {public var dummyVar: int;public var anotherDummyVar : String;public var _uid:String; public function get uid():String { return _uid; } public function set uid(value:String):void { _uid = value; } } }Oriol.2006/7/30, pateyog [EMAIL PROTECTED]: I am a newbie and was trying to understand how to use the iuidinterface while using a datagrid that is being populated by aArrayCollection fetching data from an xml using http service.Can any of you point me to an example Thanks-pateyog--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Cairngorm: Managing Popup Windows
omg! too funny. That link is better than a beer at MAX, eh? heheDKOn 7/30/06, JesterXL [EMAIL PROTECTED] wrote: ...hey, wait a minute, I still win! You're RTE DOES need to be modal. *whew* http://youbeat2trees.ytmnd.com/ - Original Message - From: JesterXL To: flexcoders@yahoogroups.com Sent: Sunday, July 30, 2006 4:49 PM Subject: Re: [flexcoders] Cairngorm: Managing Popup Windows I stand corrected. A purist would argue that you should figure out why the row heights aren't working, but I'm with you; if it works, and gets done quickly, who cares? - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Sunday, July 30, 2006 4:38 PM Subject: Re: [flexcoders] Cairngorm: Managing Popup Windows intersting to read this. we are working on a datagrid that has complex data, two text fields, in one column. We used a custom itemEditor with a RTE in it. Nice, right? nope, sucked. Can't quite seem to get the row height to expand contract as needed. So, we went with a modal popup. DK On 7/27/06, JesterXL [EMAIL PROTECTED] wrote: Popups were really valuble in Flex 1.5.Most didn't know about the depth scoping capabilites in Flash Player, nor needed to care.Popups workedgreat for putting stuff above everything and making it modal. Nowadays, with states and the DisplayList, the only valid reason I can seeis modality.Thus, I'd avoid 'em like the plague unless you can answer yes to thefollowing question: Does the form need to be modal?. - Original Message -From: Stefan Schmalhaus [EMAIL PROTECTED]To: flexcoders@yahoogroups.com Sent: Thursday, July 27, 2006 5:37 AMSubject: [flexcoders] Cairngorm: Managing Popup WindowsI've done some research on this list but haven't found any validinformation on what's considered best pratice in dealing with popup windows. The few Cairngorm sample apps that are around don't seem touse the TitleWindow component at all.Let's say I have a simple DataGrid populated with some user data. If Iclick on a row in the DataGrid a popup window opens with a form for editing the user information. The popup window also has two buttonsfor deleting or saving (updating) the user account.I have done stuff like this several times in Flash/AS2 but I've neverused a framework approach so far. Now, if I look at this rather simple task from a Cairngorm perspective it doesn't seem to be that simpleany more. (But I guess that's because I'm not yet too familiar withCairngorm.) I know how to establish databinding between the dataprovider and { model.users} and all this basic Cairngorm stuff.But what happens when a row is clicked? I'm not even sure if I'msupposed to treat this event as a single event (selectUser oropenPopup?) or as a chain of two events (selectUser - openPopup). Since my user information is organized as an array ofvalue objects it's easy to assign the selected user VO tomodel.selectedUser:model.selectedUser = UserVO(userList.selectedItem );But am I allowed to directly access the ModelLocator from my viewcomponent? Or am I supposed to route this simple action through theCairngorm command chain (Cairngorm Event - Front Controller - Command Class - ModelLocator)?Next question, what about the popup itself? Can I simply usePopUpManager.createPopUp( this, UserFormView , true)? Or am I supposedto treat this as a Cairngorm Event, too? I feel in safe Cairngorm terrain again with the updateUser anddeleteUser actions on the buttons. But what about closing the popupwindow? Is this even worth a Cairngorm event? I guess these questions sound rather stupid to those of you who aremore experienced with frameworks. But at the moment these questionsare obstacles on my way to master Cairngorm (which I will hopefully doone day). I apologize for my verbose post and my bad English, but Ihope that someone can shed some light on these issues.Stefan--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
[flexcoders] mysql amfphp array parsing
ok I seem to be having a total mindlock on this... I have amfphp running some functions to connect to a mysql database. I have the login logic all working and was starting to link the interface up. Firstly being a combobox populate. So with my function returning an array of: 0- id 2 teamname blah teamlead bla teamstatus active 0- id 13 teamname sda teamlead dsadfs teamstatus active I have setup the functions in my app for it as: [Bindable] public var teams:ArrayCollection; public function getTeamlist() : void{ gateway = new RemotingConnection(gatewayURL); gateway.call(MySQL_Login.team_pulldown, new Responder(onResultGetTeamlist, onFault)); } public function onResultGetTeamlist( result:Array ) : void{ teams = new ArrayCollection( result ); } public function onFault ( fault:String ) : void{ trace( fault ); } then set my new states canvas to : mx:Canvas label=Users width=100% height=100% initialize=getTeamlist() now, if I hardcode the combobox to be: mx:ComboBox x=91 y=70 id=userTeamDropdown dataProvider={teams.getItemAt(2).teamname}/mx:ComboBox it will load up the page on proper login and populate the combo box with the single teamname. This is where I am getting stuck. Is there a simple way for me to just get the arraycollection to just pull the teamnames from the amfphp result and populate the combo box?? I know I am missing something both simple and obvious here so tia for any ideas :) Impudent1 LeapFrog Productions -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] mysql amfphp array parsing
Maybe labelName for the ComboBox set to teamname? - Original Message - From: Impudent1 [EMAIL PROTECTED] To: flexcoders flexcoders@yahoogroups.com Sent: Sunday, July 30, 2006 11:36 PM Subject: [flexcoders] mysql amfphp array parsing ok I seem to be having a total mindlock on this... I have amfphp running some functions to connect to a mysql database. I have the login logic all working and was starting to link the interface up. Firstly being a combobox populate. So with my function returning an array of: 0- id 2 teamname blah teamlead bla teamstatus active 0- id 13 teamname sda teamlead dsadfs teamstatus active I have setup the functions in my app for it as: [Bindable] public var teams:ArrayCollection; public function getTeamlist() : void{ gateway = new RemotingConnection(gatewayURL); gateway.call(MySQL_Login.team_pulldown, new Responder(onResultGetTeamlist, onFault)); } public function onResultGetTeamlist( result:Array ) : void{ teams = new ArrayCollection( result ); } public function onFault ( fault:String ) : void{ trace( fault ); } then set my new states canvas to : mx:Canvas label=Users width=100% height=100% initialize=getTeamlist() now, if I hardcode the combobox to be: mx:ComboBox x=91 y=70 id=userTeamDropdown dataProvider={teams.getItemAt(2).teamname}/mx:ComboBox it will load up the page on proper login and populate the combo box with the single teamname. This is where I am getting stuck. Is there a simple way for me to just get the arraycollection to just pull the teamnames from the amfphp result and populate the combo box?? I know I am missing something both simple and obvious here so tia for any ideas :) Impudent1 LeapFrog Productions -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] [v2.0] ItemRenderer error:
I've finally upgraded from Beta3 to current version, and of course some things broke. I've traced the latest problem back to a LiveDocs example** I based my code from which generates the error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at MyRenderers::MyTreeItemRenderer/set data() // Override the set method for the data property // to set the font color and style of each node. override public function set data(value:Object):void { super.data = value; if(TreeListData(super.listData).hasChildren) { setStyle(color, 0xff); setStyle(fontWeight, 'bold'); } else { setStyle(color, 0x00); setStyle(fontWeight, 'normal'); } } I just can't see what's wrong with it what it might be in the Flex 2 changes between Beta 3 and Release (http://weblogs.macromedia.com/flexteam/archives/2006/06/flex_2_changes.cfm) It's a bit of a show stopper at the moment... any suggestions? thanx ** http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0856.html -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] [v2.0] ItemRenderer error:
Check for if(data == null) before doing anything inside the implicit set for data...On 7/30/06, Barry Beattie [EMAIL PROTECTED] wrote: I've finally upgraded from Beta3 to current version, and of course some things broke. I've traced the latest problem back to a LiveDocs example** I based my code from which generates the error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at MyRenderers::MyTreeItemRenderer/set data() // Override the set method for the data property // to set the font color and style of each node. override public function set data(value:Object):void { super.data = ""> if(TreeListData(super.listData).hasChildren) { setStyle(color, 0xff); setStyle(fontWeight, 'bold'); } else { setStyle(color, 0x00); setStyle(fontWeight, 'normal'); } } I just can't see what's wrong with it what it might be in the Flex 2 changes between Beta 3 and Release (http://weblogs.macromedia.com/flexteam/archives/2006/06/flex_2_changes.cfm ) It's a bit of a show stopper at the moment... any suggestions? thanx ** http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0856.html __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] [v2.0] ItemRenderer error:
sorry... if(value == null)On 7/30/06, Brendan Meutzner [EMAIL PROTECTED] wrote: Check for if(data == null) before doing anything inside the implicit set for data...On 7/30/06, Barry Beattie [EMAIL PROTECTED] wrote: I've finally upgraded from Beta3 to current version, and of course some things broke. I've traced the latest problem back to a LiveDocs example** I based my code from which generates the error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at MyRenderers::MyTreeItemRenderer/set data() // Override the set method for the data property // to set the font color and style of each node. override public function set data(value:Object):void { super.data = ""> if(TreeListData(super.listData).hasChildren) { setStyle(color, 0xff); setStyle(fontWeight, 'bold'); } else { setStyle(color, 0x00); setStyle(fontWeight, 'normal'); } } I just can't see what's wrong with it what it might be in the Flex 2 changes between Beta 3 and Release (http://weblogs.macromedia.com/flexteam/archives/2006/06/flex_2_changes.cfm ) It's a bit of a show stopper at the moment... any suggestions? thanx ** http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0856.html __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] mysql amfphp array parsing
JesterXL wrote: Maybe labelName for the ComboBox set to teamname? You , are a heck of a person :P I didn't think to look at it as setting the dataprovider then setting the labelfield but yes setting up as: dataProvider={teams} labelField=teamname was the trick. ty ty Impudent1 LeapFrog Productions -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] [v2.0] ItemRenderer error:
Brendan Meutzner Sun, 30 Jul 2006 21:14:58 -0700 sorry... if(value == null) cheers Brendan. That did indeed fix it. Thankyou. but I do have to ask why, since the existing code (without the corrections mentioned on that example) worked fine with B3... (I just need a better understanding of what to look for in the rest of the B3 code). I can't seem to find your fix as a specific reference in http://weblogs.macromedia.com/flexteam/archives/2006/06/flex_2_changes.cfm any background info is appreciated. I'm still getting used to Flex... thanx again barry.b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] DataService.fill() Binding to ArrayCollection not triggered.
ArrayCollection will fire a collectoinChange event when the data is populated, binding events will not fire. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thunder Stumpges Sent: Thursday, July 27, 2006 8:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataService.fill() Binding to ArrayCollection not triggered. Hey guys, I've set up binding (ChangeWatcher) to an ArrayCollection that is passed to a DataService.fill() call. The DataService call completes, and the result event has the results object. With no action in my result handler, the ArrayCollection gets the updated results, but he binding is never triggered on the ArrayCollection. If I manually re-assign the source array in the result handler the binding IS called... is this as designed? See source below. thanks, Thunder In the Application (watching) public function initializeComponent(event:Event):void { // get notified when the dashboards are loaded. dashboardDataWatcher = mx.binding.utils.ChangeWatcher.watch(af.data.ConfigModelLocator.getInstance(),[dashboards,source],onDashboardData); // load the dashboards CairngormEventDispatcher.getInstance().dispatchEvent(new CairngormEvent(ApplicationFrontController.COMMAND_GET_DASHBOARDS)); } private var dashboardDataWatcher:ChangeWatcher; public function onDashboardData(event:Event):void { // we got data var oDashboard:Object = af.data.ConfigModelLocator.getInstance().dashboards; } In the Delegate: public function getDashboards() : void { call = service.fill( ConfigModelLocator.getInstance().dashboards, DashboardsByApplicationid, [ConfigModelLocator.getInstance().applicationid]); service.addEventListener(ResultEvent.RESULT,responder.onResult); service.addEventListener(FaultEvent.FAULT,responder.onFault); } public function onResult(event:*=null):void { var result:Object = event.result; if (result is Array) { // If I do this, then the binding is triggered, otherwise it is not. // Either way the dashboards collection gets the result of the call. // ConfigModelLocator.getInstance().dashboards.source = (result as Array); } } __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] getItemIndex(someObj) -- mx_internal_uid
getItemIndex is looking for exact match, as in it passes a == b. since you have two different object instances (in memory) regardless of the mx_internal_uid property they will not match. ArrayCollection is not set up to support something like the Java .equals method, so if you want to change the behavior youll need to subclass and adjust yourself. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Wayne McFetridge Sent: Thursday, July 27, 2006 8:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] getItemIndex(someObj) -- mx_internal_uid I'm looking at doing this to prevent drag from datagrid into a favourites panel if the user already has that item in favs. Drag from data gird, the panel that may receive the drop does a check of the favourites arraycollection via *model.favourites,getItemIndex(theItemImDragging)* and if returns *-1* accepts the drop otherwise no go. The arraycollection of favourites and the arraycollection in the grid's dataProvider are both just arraycollections of my own WineVO. Docs say that getItemAt returns -1 if the obj is not in the ArrayCollection and mentions an exact match. My question is does this exact match take into account the mx_internal_uid that flex carries around in each item in an arraycollection? I'm guessing it does because when I drag a new item into my panel I accept the drop and then if i try to repeat I get no drop, as I want. If however I do another search, returning the same finds but now in a re - sourced arraycollection with diff internal_uid's and try to drop them it allows the drop to happen and I get duplicates in my favourites. I'm seeing that the only difference is the mx_internal_uid is obviously different in the datagrids arraycollection dataprovider. Any way of handling this, or doing it differently wayne mcfetridge -- __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Question about Data Service Assemblers
Unfortunately the service isnt smart enough to allow you to specify what a fill will look like. In this case your assembler should return everything, return a full collection of the employees (though if you want you can return the employee just with its id property and not completely filled in). Then the data service will page the employees collection in, instead of returning the whole collection at once. But it will take care of that at the network level, not your assembler level. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dreuimar Sent: Friday, July 28, 2006 7:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Question about Data Service Assemblers If I have a one-to-many relationship between a VO like: public class company { public var id : int; public var name : String; public var employees : ArrayCollection; } one-to-many property=employees destination=employee lazy=true/ And the employees are lazy loaded, how should I construct my employee assembler? I know that with a one-to-one it calls getItem(), but is this calling a fill()? And if so, what parameters is it sending? Thanks, Brennan __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] [v2.0] ItemRenderer error:
I don't have a solid answer, but I'd guess that the setter is getting called during initialization process before the object exists in the dataProvider... try running in debug mode and look through the stack trace when the error is caught... might provide some answers... On 7/30/06, Barry Beattie [EMAIL PROTECTED] wrote: Brendan Meutzner Sun, 30 Jul 2006 21:14:58 -0700 sorry... if(value == null) cheers Brendan. That did indeed fix it. Thankyou. but I do have to ask why, since the existing code (without the corrections mentioned on that example) worked fine with B3... (I just need a better understanding of what to look for in the rest of the B3 code). I can't seem to find your fix as a specific reference in http://weblogs.macromedia.com/flexteam/archives/2006/06/flex_2_changes.cfm any background info is appreciated. I'm still getting used to Flex... thanx again barry.b __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Embedded Fonts Cause Issue with DataGrid Headers
Just wanted to see if the Adobe folks were aware of the issue with Embedded fonts and DataGrids... there was an earlier post on this as well, but nobody clarified if this was a known bug: http://groups.yahoo.com/group/flexcoders/message/44067;_ylc=X3oDMTM3Y3BlaHMwBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTYwMDAwNzIwNwRtc2dJZAM0NDA2NwRzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzExNTM0MTA3MTUEdHBjSWQDNDQwNjc- Sure enough, changing the font size to anything but 12pt solved the issue, and I also found that setting the headerStyleName seperate from the row styles in the DataGrid (we're using itemRenderers, and setting the Label font styleName inside) worked to fix the problem as well... it seems to only affect the datagrid if nesting the DataGrid instance inside another component which has the style applied. Thoughts?Brendan __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Embedded Fonts Cause Issue with DataGrid Headers
Betcha' the measure function is having issues measure the embedded font. Are you using FlashType or just the regular way? If you're feeling brave, go look in DataGrid.as, and tell us if anything looks like its measuring text. - Original Message - From: Brendan Meutzner To: flexcoders@yahoogroups.com Sent: Monday, July 31, 2006 1:29 AM Subject: [flexcoders] Embedded Fonts Cause Issue with DataGrid Headers Just wanted to see if the Adobe folks were aware of the issue with Embedded fonts and DataGrids... there was an earlier post on this as well, but nobody clarified if this was a known bug:http://groups.yahoo.com/group/flexcoders/message/44067;_ylc=X3oDMTM3Y3BlaHMwBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTYwMDAwNzIwNwRtc2dJZAM0NDA2NwRzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzExNTM0MTA3MTUEdHBjSWQDNDQwNjc-Sure enough, changing the font size to anything but 12pt solved the issue, and I also found that setting the headerStyleName seperate from the row styles in the DataGrid (we're using itemRenderers, and setting the Label font styleName inside) worked to fix the problem as well... it seems to only affect the datagrid if nesting the DataGrid instance inside another component which has the style applied. Thoughts?Brendan __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___