[flexcoders] Apollo SDK
Hi All, I have a very basic question about getting started with Apollo. I downloaded Apollo SDK zip and checked out its content. It contains : 1) bin - all exe's to compile from command line 2) Frame work - swc's and action script classes 3) lib - contains jar 4) runtime - dll's 5) samples - sample application 6) src - contains application Now, I am using flex builder to develop flex application. After reading document , I understood that i need to install the Apollo extension for flex builder. But can I not work with flex builder and Apollo sdk? and how do I install apollo runtime from SDK zip. Is it neccessary to download Apollo extension for flex builder if i want to develop Apollo application. Can I not make to work by copy pasting the files form Apollo SDK to particular locations or something like that. Please guide me. Regards Ps
[flexcoders] Re: Urgent call for Flex Portlet (Flex Taglibs) specialists (James Ward, help!)
Sorry for having been so impatient, my bad... Firstly, thanks to everyone who's put in so many hours to bring us these technologies, I hope you had as much fun making it as I have using it. Matt, I can wait 48 hours, anything to get this technology in. I just really want it to work; 1 - Because I think it's fantasic, 2 - I'm a technology junky, 3 - It's above all, the best possible solution. Please drop a post when you guys have something, I'm holding my breath... Jeff, my portlet is real simple, I tested using a simple .mxml page, in which case I got the generateSwfCacheKey error, and then I used Flah Taglibs in a .jsp, and got the generateJspCacheKey error. To confirm, I just editied the .jsp and changed its contents to Hello..., and the portlet displayed it perfectly. As soon as you start using the mxml tags in the .jsp it goes bottoms-up. Portlet code below (I will wait for Matt's response on the 48 hour new stuff) package com.test; import javax.portlet.PortletRequestDispatcher; public class Test extends javax.portlet.GenericPortlet { public void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, java.io.IOException { response.setContentType(text/html); PortletRequestDispatcher rd = getPortletContext().getRequestDispatcher (/ftest/index.jsp); //ftest/index.mxml rd.include(request,response); } } --- In flexcoders@yahoogroups.com, jeffjvroom [EMAIL PROTECTED] wrote: I'm not sure why this is happening unfortunately. In both of those stack traces, the line of code looks like: String uri = request.getRequestURL().toString(); So either request is null or the request.getRequestURL() method is returning null? I'm not sure why either of those would happen. Jeff --- In flexcoders@yahoogroups.com, johan.wasserman johan.wasserman@ wrote: I have tried and tried, fried my brain, and I am desperate. I firstly wrote a simple portlet and tried to present a flex page on JBoss portal, unsuccessfull because of the - java.lang.NullPointerException at flex.server.j2ee.cache.CacheKeyUtils.generateJspCacheKe (CacheKeyUtils.java:68) OR generateSwfCacheKey(CacheKeyUtils.java:54) if I try to show the mxml file directly, without going through the taglib. - error. Then, with effort, learned how another portal server works, I inastalled and configured Jetspeed 2, and after trying just about every trick in the book, had to give up and realised the same - java.lang.NullPointerException at flex.server.j2ee.cache.CacheKeyUtils.generateJspCacheKey (CacheKeyUtils.java:68) - error haunting me. I have a simple, yet urgent requirement, I need to make Flex applications available as portlets, on (prefferably) an Appache opensource portal server. PLEASE will SOMEONE help me?! I'll send my JBoss and / or Jetspeed 2 installation, zipped, so you can have the full config and everything I have done, I'll send the MySQL databases for these portal servers, ANYTHING, just say what you need. The only common denominator is that both these portal servers are based on Apache Tomcat PLEASE PLEASE ASSIST.
[flexcoders] Flex dates
Hi guys, I am new to flex and have been having a huge learning curve. So be gentle. I'm kinda new to REAL OO. But I know CF very well. So with that said I'm stuck on dates. I am trying to format a date coming out of a database so it will look pretty. i.e. dd/mm/ I have an mx:datefield id=DateIn text=remoteService.qryDrawdown.lastResult[0].DateIn formatString=DD/MM//mx:datefield Now I know that the formatString paramater does that for when you choose it but how do you format it coming out of the database. Currently its Tue Feb 28 00:00:00 GMT etc etc. I found the mx:dateFormater tag but haven't been able to get it working correctly. Any Advise would be great!! Jeremy
Re: [flexcoders] Flex dates
Formatter will do that only for displaying your date. And how it comes out of database depends on database interface. In general you receive some standardized date/time. If you want to get specifically formatted date out of the database you should ask database to do it. Though I can't imagine why one may need that kind of formatting. R. On 20 Mar 2007 01:47:16 -0700, flexjeremy [EMAIL PROTECTED] wrote: Hi guys, I am new to flex and have been having a huge learning curve. So be gentle. I'm kinda new to REAL OO. But I know CF very well. So with that said I'm stuck on dates. I am trying to format a date coming out of a database so it will look pretty. i.e. dd/mm/ I have an mx:datefield id=DateIn text=remoteService.qryDrawdown.lastResult[0].DateIn formatString=DD/MM//mx:datefield Now I know that the formatString paramater does that for when you choose it but how do you format it coming out of the database. Currently its Tue Feb 28 00:00:00 GMT etc etc. I found the mx:dateFormater tag but haven't been able to get it working correctly. Any Advise would be great!! Jeremy
[flexcoders] List item selection with filterFunction
I have a List, and when a filter function is assigned to that list, whenever a selection is made (by clicking on a list item), the list items re-arrange in a strange way. I wonder why this is happening. When I remove the filter function, this does not occur. Any suggestions would be appreciated. Thanks, -- Frank
[flexcoders] Re: Urgent call for Flex Portlet (Flex Taglibs) specialists (James Ward, help!)
There is a 2.5 feature that allows quick enabling of Flex applications as local portlets and as WSRP producer portlets. It is documented in Chapter 18 of the Beta 2 documentation. Here is the summary paragraph from the documentation, The portal feature lets you easily configure Flex client applications as local portlets on a portal server. It also lets you enable Flex client applications for consumption by a portlet consumer using portal servers that support WSRP. The 2.5 Beta 2 will be publicly available tomorrow evening. If you would like access before then, please send an email to Leslie Lewis, [EMAIL PROTECTED] Best, Ed --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: your first email arrived 5 hours earlier than this in the middle of the night for most folks in north america, so give folks a little time :-) I'll see if anyone on the enterprise team knows anything. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of johan.wasserman Sent: Monday, March 19, 2007 7:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Urgent call for Flex Portlet (Flex Taglibs) specialists (James Ward, help!) Is there a point to posting questions and calls for assistance here? Where are all the really good guys out there that can actually solve some challanging issues to get Flex used in more and more applications? I really need assistance, what's going to happen next? Let my client choose other technology or try to get this Flex thing to work? I'll implement the solution, no matter what the technology, but I am proud of Flex and would like to see it work, how about you? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , johan.wasserman johan.wasserman@ wrote: I have tried and tried, fried my brain, and I am desperate. I firstly wrote a simple portlet and tried to present a flex page on JBoss portal, unsuccessfull because of the - java.lang.NullPointerException at flex.server.j2ee.cache.CacheKeyUtils.generateJspCacheKe (CacheKeyUtils.java:68) OR generateSwfCacheKey(CacheKeyUtils.java:54) if I try to show the mxml file directly, without going through the taglib. - error. Then, with effort, learned how another portal server works, I inastalled and configured Jetspeed 2, and after trying just about every trick in the book, had to give up and realised the same - java.lang.NullPointerException at flex.server.j2ee.cache.CacheKeyUtils.generateJspCacheKey (CacheKeyUtils.java:68) - error haunting me. I have a simple, yet urgent requirement, I need to make Flex applications available as portlets, on (prefferably) an Appache opensource portal server. PLEASE will SOMEONE help me?! I'll send my JBoss and / or Jetspeed 2 installation, zipped, so you can have the full config and everything I have done, I'll send the MySQL databases for these portal servers, ANYTHING, just say what you need. The only common denominator is that both these portal servers are based on Apache Tomcat PLEASE PLEASE ASSIST.
[flexcoders] don't highlight a datagrid?
Hi, guys, I encountered a problem here, after we select a row on a datagrid, can we deselect(or do not highlight) this row when we mouse click on other parts(except the datagrid area) of screen? thanks.
[flexcoders] Re: Maven plugin outputDirectory is READONLY
Hello Here is what you want : http://repo1.maven.org/maven2/net/israfil/mojo/maven-flex2-plugin/1.0-alpha-2/ I did it. I'm trying to patch it for my needs. Hope it helps you Regards
Re: [flexcoders] Apollo SDK
On Tuesday 20 Mar 2007, learner wrote: I downloaded Apollo SDK zip and checked out its content. It contains : .. Now, I am using flex builder to develop flex application. You don't want the SDK download then, you want the plugin. and how do I install apollo runtime from SDK zip. You can't - separate download. Is it neccessary to download Apollo extension for flex builder if i want to develop Apollo application. No, you can use the SDK or FB or Eclipse (with and without the FB plugin). Can I not make to work by copy pasting the files form Apollo SDK to particular locations or something like that. You could in principle make a directory watcher that launched the SDK compiler when files in a directory changed. Why would you want that though ? -- Tom Chiverton Helping to continually visualize out-of-the-box bandwidth On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/
AW: [flexcoders] Re: using itemRenderer with List, how can I set the icon?
You could extend ListItemRenderer for your custom itemRenderer and override updateDisplayList for your code to implement a custom background color. With this approach the icon should be displayed. Harald _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Greg Morphis Sent: Monday, March 19, 2007 4:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: using itemRenderer with List, how can I set the icon? Anyone know where I can go and actually maybe get a response from someone? good grief.. On 3/19/07, Greg Morphis [EMAIL PROTECTED] mailto:gmorphis%40gmail.com wrote: Can anyone offer any help with this please? On 3/16/07, Greg Morphis [EMAIL PROTECTED] mailto:gmorphis%40gmail.com wrote: Normally List has a iconFunction, I'm using an itemRenderer to give the list items a custom background color.. When I do this the icon doesn't show.. is there anyway around this? Thanks
Re: [flexcoders] flex builder and dreamweaver
On Tuesday 20 Mar 2007, Chad Gray wrote: I am a big Dreamweaver fan, but I keep seeing Adobe going away from Dreamweaver and using Eclipse. Why pay engineers to maintain the underlying guts and features of an IDE when Eclipse will do it all for free. Do you see SVN access (for instance) appearing in Dreamweaver *ever* ? Will Flex Builder ever be integrated into Dreamweaver? How about Spry? I *expect* eventually Dreamweaver will move to be based on Eclipse, same as Flex Builder is. And it'll have Spry wizards same as it has wizards for other things. Why re-invent the wheel with Eclipse when Dreamweaver exists? Other way around :-) Is Dreamweaver dying a slow death that I should not purchase the next release of Studio? I wouldn't go back to paying for Dreamweaver, given how good cheaper/free tools are these days. -- Tom Chiverton Helping to proactively drive attention-grabbing data On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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: LiveDocs Offline
On Monday 19 Mar 2007, mtthwnthnyhys wrote: Yes!! It seems intermittent though... I get the Flex 2 Language Reference (at the moment) but not the Programming AS3 book. Says: Page Does Not Exist. Later, when I reload the same page, it'll work fine. WEIRDNESS! Gee, what could be sucking up all Adobe's bandwidth... :-) Adobe.com was slow yesterday too. -- Tom Chiverton Helping to continuously iterate value-added web-readiness On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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: Automation API, Combobox and itemrenderer
--- In flexcoders@yahoogroups.com, pmotzfeldt [EMAIL PROTECTED] wrote: Hi, I am playing with the automation API, to be able to automate events. I am having a problem with the Combobox. I have just created a simple combobox as shown below. I works great in the application. But my problem is that the itemRenderer is null, which is probably right. I am able to open the combobox with the automation api, but when I try to select an item with mx.automation.events.ListItemSelectEvent, it needs an itemRenderer (mx.controls.listClasses.ListItemRenderer). SInce the combobox's itemRenderer is null, I can't use that, so do I need to create an itemRenderer? Does anyone know how I do this? (I use the replayAutomatableEvent in the automationManager class to perform the events) mx:ComboBox id=cbCombo automationName=cbCombo mx:dataProvider mx:Array mx:StringTest1/mx:String mx:StringTest2/mx:String /mx:Array /mx:dataProvider /mx:ComboBox I got an answer on this question from Adobe, if any is interested.. The thing I wanted to to, was to automate an selection of element with value for ex Test2. To do this I needed to iterate over the automationchildren of the combobox, and compare the value Test2 with the automationValue, and use the automationChild with this value as the itemRenderer in the ListItemSelectEvent. Works great. Peter
Re: [flexcoders] Apollo SDK
I downloaded the Apollo SDK before downloading the plugin for flexbuilder. Now thinking that it should be possible to work with Apollo SDK and flexbuilder by copying the files from Apollo SDK to flex sdk in corresponding directory and replacing the mxmlc.jar in libs and version (as mentioned in documentation) . It may require changing the configuration xmls. Not sure what exactly i need to change. Just wondering that it must be possible. I may be wrong though. Thanks for your reply. please clarify my doubts. Regards Mayur On 3/20/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 20 Mar 2007, learner wrote: I downloaded Apollo SDK zip and checked out its content. It contains : .. Now, I am using flex builder to develop flex application. You don't want the SDK download then, you want the plugin. and how do I install apollo runtime from SDK zip. You can't - separate download. Is it neccessary to download Apollo extension for flex builder if i want to develop Apollo application. No, you can use the SDK or FB or Eclipse (with and without the FB plugin). Can I not make to work by copy pasting the files form Apollo SDK to particular locations or something like that. You could in principle make a directory watcher that launched the SDK compiler when files in a directory changed. Why would you want that though ? -- Tom Chiverton Helping to continually visualize out-of-the-box bandwidth On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] Apollo SDK
Mayur You'll save yourself a lot of time and grief if you were to download and install the plugin for Flex Builder, especially if you're already using Flex Builder for development. It's made to work seemlessly... Andrew On 20/03/07, learner [EMAIL PROTECTED] wrote: I downloaded the Apollo SDK before downloading the plugin for flexbuilder. Now thinking that it should be possible to work with Apollo SDK and flexbuilder by copying the files from Apollo SDK to flex sdk in corresponding directory and replacing the mxmlc.jar in libs and version (as mentioned in documentation) . It may require changing the configuration xmls. Not sure what exactly i need to change. Just wondering that it must be possible. I may be wrong though. Thanks for your reply. please clarify my doubts. Regards Mayur On 3/20/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 20 Mar 2007, learner wrote: I downloaded Apollo SDK zip and checked out its content. It contains : .. Now, I am using flex builder to develop flex application. You don't want the SDK download then, you want the plugin. and how do I install apollo runtime from SDK zip. You can't - separate download. Is it neccessary to download Apollo extension for flex builder if i want to develop Apollo application. No, you can use the SDK or FB or Eclipse (with and without the FB plugin). Can I not make to work by copy pasting the files form Apollo SDK to particular locations or something like that. You could in principle make a directory watcher that launched the SDK compiler when files in a directory changed. Why would you want that though ? -- Tom Chiverton Helping to continually visualize out-of-the-box bandwidth On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- --- Andrew Muller http://www.webqem.com linkedin: http://www.linkedin.com/pub/1/151/905
Re: [flexcoders] Apollo SDK
On Tuesday 20 Mar 2007, learner wrote: Now thinking that it should be possible to work with Apollo SDK and flexbuilder by copying the files from Apollo SDK to flex sdk in corresponding directory I installed a separate Flex SDK to the one that comes with Flex builder, and updated that one with the Apollo SDK. Otherwise you run the risk of mixing things up that aren't meant to be. -- Tom Chiverton Helping to collaboratively synthesize front-end clusters On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Apollo SDK
Thanks ! downloading the plugin . Thanks once again for quick Replies. Regards On 20 Mar 2007 03:46:42 -0700, Andrew Muller [EMAIL PROTECTED] wrote: Mayur You'll save yourself a lot of time and grief if you were to download and install the plugin for Flex Builder, especially if you're already using Flex Builder for development. It's made to work seemlessly... Andrew On 20/03/07, learner [EMAIL PROTECTED] peacocksea%40gmail.com wrote: I downloaded the Apollo SDK before downloading the plugin for flexbuilder. Now thinking that it should be possible to work with Apollo SDK and flexbuilder by copying the files from Apollo SDK to flex sdk in corresponding directory and replacing the mxmlc.jar in libs and version (as mentioned in documentation) . It may require changing the configuration xmls. Not sure what exactly i need to change. Just wondering that it must be possible. I may be wrong though. Thanks for your reply. please clarify my doubts. Regards Mayur On 3/20/07, Tom Chiverton [EMAIL PROTECTED]tom.chiverton%40halliwells.com wrote: On Tuesday 20 Mar 2007, learner wrote: I downloaded Apollo SDK zip and checked out its content. It contains : .. Now, I am using flex builder to develop flex application. You don't want the SDK download then, you want the plugin. and how do I install apollo runtime from SDK zip. You can't - separate download. Is it neccessary to download Apollo extension for flex builder if i want to develop Apollo application. No, you can use the SDK or FB or Eclipse (with and without the FB plugin). Can I not make to work by copy pasting the files form Apollo SDK to particular locations or something like that. You could in principle make a directory watcher that launched the SDK compiler when files in a directory changed. Why would you want that though ? -- Tom Chiverton Helping to continually visualize out-of-the-box bandwidth On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- -- Andrew Muller http://www.webqem.com linkedin: http://www.linkedin.com/pub/1/151/905
Re: [flexcoders] Flex dates
Hi Jeremy, I recommend converting your date into a native actionscript date object. This has many benefits which include all of the date manipulation methods available, the dateformatter class, correct date sorting in the datagrid, etc. You can use var date_from_db:String = ; var d:date = new Date(); d.setTime(Date.parse(date_from_db)); Where date_from_db would equal one of the following string formats. MM/DD/ HH:MM:SS TZD HH:MM:SS TZD Day Mon/DD/ Mon DD HH:MM:SS TZD Day Mon DD HH:MM:SS TZD Day DD Mon HH:MM:SS TZD Mon/DD/ HH:MM:SS TZD /MM/DD HH:MM:SS TZD I'm not familiar with CF but the way I do it in PHP using MySQL is in this SQL query. The 'start_time' column is a datetime. SELECT replace(start_time,'-','/') as start_time FROM mytable In another project where I only receive the date in the format '-MM-DD', I use my own parseDate() method. public function parseDate(s:String):Date { if (!s) return null; var a:Array = s.split('-'); return new Date(parseInt(a[0]),parseInt(a[1])-1,parseInt(a[2])); } you would use it like: var d:Date = parseDate('2007-01-01'); Hope this helps. Cheers, Adam - Original Message - From: Roman Protsiuk To: flexcoders@yahoogroups.com Sent: Tuesday, March 20, 2007 7:16 PM Subject: Re: [flexcoders] Flex dates Formatter will do that only for displaying your date. And how it comes out of database depends on database interface. In general you receive some standardized date/time. If you want to get specifically formatted date out of the database you should ask database to do it. Though I can't imagine why one may need that kind of formatting. R. On 20 Mar 2007 01:47:16 -0700, flexjeremy [EMAIL PROTECTED] wrote: Hi guys, I am new to flex and have been having a huge learning curve. So be gentle. I'm kinda new to REAL OO. But I know CF very well. So with that said I'm stuck on dates. I am trying to format a date coming out of a database so it will look pretty. i.e. dd/mm/ I have an mx:datefield id=DateIn text=remoteService.qryDrawdown.lastResult[0].DateIn formatString=DD/MM//mx:datefield Now I know that the formatString paramater does that for when you choose it but how do you format it coming out of the database. Currently its Tue Feb 28 00:00:00 GMT etc etc. I found the mx:dateFormater tag but haven't been able to get it working correctly. Any Advise would be great!! Jeremy
Re: [flexcoders] Flex dates
There's no conversion needed. Date's sent from ColdFusion become ActionScript date objects. What you need to do is call the DateFormatter.format method when needed, passing it the Date object. Here's an example of a RemoteObject fetching news from a MySQL database, which contains: - newsHeader (string) - newsText (text) - newsDate (date) The results are displayed in a List instance (news_list). When an item is selected in the list, it displays the date (newsDate) of the selected item in a label (newsDate_label) instance. Instead of just displaying the date, it calls the format() method of the DateFormatter: --newsDate_fmt.format(this.news_list.selectedItem.newsDate) mx:RemoteObject id=newsSelect_ro destination=ColdFusion source=path.to.service.NewsSelect mx:method name=getNews / /mx:RemoteObject mx:DateFormatter id=newsDate_fmt formatString=, DD / mx:List id=news_list dataProvider={newsSelect_ro.getNews.lastResult} labelField=newsHeader / mx:Label id=newsDate_label text={newsDate_fmt.format(this.news_list.selectedItem.newsDate)} / regards, Muzak - Original Message - From: Adam Royle [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, March 20, 2007 11:56 AM Subject: Re: [flexcoders] Flex dates Hi Jeremy, I recommend converting your date into a native actionscript date object. This has many benefits which include all of the date manipulation methods available, the dateformatter class, correct date sorting in the datagrid, etc. You can use var date_from_db:String = ; var d:date = new Date(); d.setTime(Date.parse(date_from_db)); Where date_from_db would equal one of the following string formats. MM/DD/ HH:MM:SS TZD HH:MM:SS TZD Day Mon/DD/ Mon DD HH:MM:SS TZD Day Mon DD HH:MM:SS TZD Day DD Mon HH:MM:SS TZD Mon/DD/ HH:MM:SS TZD /MM/DD HH:MM:SS TZD I'm not familiar with CF but the way I do it in PHP using MySQL is in this SQL query. The 'start_time' column is a datetime. SELECT replace(start_time,'-','/') as start_time FROM mytable In another project where I only receive the date in the format '-MM-DD', I use my own parseDate() method. public function parseDate(s:String):Date { if (!s) return null; var a:Array = s.split('-'); return new Date(parseInt(a[0]),parseInt(a[1])-1,parseInt(a[2])); } you would use it like: var d:Date = parseDate('2007-01-01'); Hope this helps. Cheers, Adam - Original Message - From: Roman Protsiuk To: flexcoders@yahoogroups.com Sent: Tuesday, March 20, 2007 7:16 PM Subject: Re: [flexcoders] Flex dates Formatter will do that only for displaying your date. And how it comes out of database depends on database interface. In general you receive some standardized date/time. If you want to get specifically formatted date out of the database you should ask database to do it. Though I can't imagine why one may need that kind of formatting. R. On 20 Mar 2007 01:47:16 -0700, flexjeremy [EMAIL PROTECTED] wrote: Hi guys, I am new to flex and have been having a huge learning curve. So be gentle. I'm kinda new to REAL OO. But I know CF very well. So with that said I'm stuck on dates. I am trying to format a date coming out of a database so it will look pretty. i.e. dd/mm/ I have an mx:datefield id=DateIn text=remoteService.qryDrawdown.lastResult[0].DateIn formatString=DD/MM//mx:datefield Now I know that the formatString paramater does that for when you choose it but how do you format it coming out of the database. Currently its Tue Feb 28 00:00:00 GMT etc etc. I found the mx:dateFormater tag but haven't been able to get it working correctly. Any Advise would be great!! Jeremy
Re: [flexcoders] How to DataBind to DateField when Null Values come into play??
Mike: What is the type of the property you are trying to bind to in your Value Object? A DateField selectedDate property can be sent to null and should give you an empty date. I've extended the DateField making my own DateField Component - EditDateField and I always use that whenever I use Date. My Component looks like this: mx:DateField xmlns:mx=http://www.adobe.com/2006/mxml; focusOut=checkFilterDate(); editable=true mx:Script ![CDATA[ *import* com.myDomain.util.DateValidate; *public* *var* defaultDate:Date; *private* *function* checkFilterDate():*void * { *if* (*this*.text.length == 0) { *this*.selectedDate = *null*; } *else* *if* (!DateValidate.validate(*this*.text)) { *this*.selectedDate = defaultDate; } *else * { *this*.selectedDate = DateValidate.format(*this*.text); } } ]] /mx:Script /mx:DateField Where my DateValidate class is some custom functions I've written that allow formats like mmddyy or mmdd to be input and automatically cast to a Date type. Hope this helps Sam On 19 Mar 2007 12:06:30 -0700, Mike Anderson [EMAIL PROTECTED] wrote: Hello All, What is the proper way to bind Data to a DateField? I ask this, because I get an error when I bind a Variable contained within a ValueObject (which contains a Null Value), to a DateField Control. Is it safe to say, that this DateField doesn't act like a TextField? Do I require a regular Variable cast as a Date to serve as a go-between, when transferring the ValueObject data to the DateField? I hope I am properly asking this question :) Thanks in advance for your help, Mike
Re: [flexcoders] Storing Dates Times in VO's
Kevin: I dont' use AMFPHP so I can't specifically help you with that situation, but to your first question: I would recommend figuring out a way to get your PHP DateTypes to automatically transfer to Date type's in Flex. I went down both roads (Date and String in flex) and found that there is a Date Type in Flex for a reason. It makes your life easier when dealing with Dates, especially comparing, sorting and performing Date arithmetic. So my recommendation would be to make the extra effort to get your Object to transfer correctly typed properties... Sam On 19 Mar 2007 17:51:09 -0700, Kevin [EMAIL PROTECTED] wrote: Should Dates Times be stored as Strings in Flex VO's? If not, what is the proper way to assign a value from the server (which generally comes in as a string) to a Date type in a Flex VO? I have been struggling with this. I am using AMFPHP and mapping my PHP objects to Flex for calls returned from the server, however, my date fields are not mapping. Does a setter function get call when you are doing VO mapping?? Thanks for the help. Thanks, Kevin
[flexcoders] How to set remoteobject to reach a java(spring) bean in a remote machine
Hi everybody, I have a very simple problem with setting RemoteObject to connect a spring bean in a remote machine. I tried at Fds-Tomcat test drive server by Christopher Coenraets. However those samples(and all other samples) were for using a web-tier mxml compiler. I have to connect a local project to java(spring) beans in a remote object using tomcat server. Can anyone simply tell me how to configure services- config and remoting-config.xml. What should be the endpoint of the remoteobject, as it was gateway.php for AMFPHP? I saw that there were many configurations in web.xml of apache, I guess some were for web-tier compiler(client) and some for java backend. I could not just separate the configuration. Onw more thing, We are using WebOrb server for another project. Do we have to use such a special library for connecting client application to a remote java backend (I guess it should not be so...) Thanks for your help, Eren Bali Invento [EMAIL PROTECTED]
[flexcoders] AS3 Browser weirdness!!??
Hey all, I'm working on some physics/game stuff... not typical Flex area of concern, but... well eventually I'll be making use of the Flex specific stuff, and for now I want to write in in AS3 and am on a Mac, so no AS3 Preview for me... :( Anyways, I wrote a little function to try and capture persistent key press... as the Key.isDown() got deprecated. It looks like this: private var l:uint; //left private var u:uint; //up private var r:uint; //right private var d:uint; //down private function persistKeyDown(event:KeyboardEvent):void { if(event.keyCode == Keyboard.LEFT) { l = setInterval(control, 10, event); } if(event.keyCode == Keyboard.UP) { u = setInterval(control, 10, event); } if(event.keyCode == Keyboard.RIGHT) { r = setInterval(control, 10, event); } if(event.keyCode == Keyboard.DOWN) { d = setInterval(control, 10, event); } //tFrame.text = keyDown: + event.keyCode; } private function persistKeyUp(event:KeyboardEvent):void { if(event.keyCode == Keyboard.LEFT) { clearInterval(l); } if(event.keyCode == Keyboard.UP) { clearInterval(u); } if(event.keyCode == Keyboard.RIGHT) { clearInterval(r); } if(event.keyCode == Keyboard.DOWN) { clearInterval(d); } //tFrame.text = keyUp: + event.keyCode; } The control function just applies forces to an object on the screen. I have the seperate intervals for each key so that I can catch simultaneous keys being held down... is that right? I think I must be doing something wrong, because, though it works fine in FireFox, it behaves all weird in Safari. You can check it out here: http://www.noncehence.com/game/experiments/test05.html Ideally, the green ball should bounce off the walls and the grey box. You'll have to click inside the canvas to give it focus, and you can control the green ball with the arrow keys. It's actually kind of fun already, but only in FireFox. In Safari, the green ball seems to get stuck in one direction or another and magnatize to a wall. Is there a difference between how keyDown/Up events are dispatched in various browsers? That doesn't make any sense to me... but then, I don't know why I'm having this problem. If anyone can help, or has other questions for me, please let me know. Thanks much, //Matt
RE: [flexcoders] www.codeapollo.com
I can't deal with forums. Is it possible to get all posts as individual emails? Sorry if this is a dumb question, but I know some forums don't support this. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of d3lix3 Sent: Monday, March 19, 2007 6:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] www.codeapollo.com I've created a user-based community for Adobe Apollo, I felt this is a fit place to post this kind of thing. I am looking for a few dedicated people that can help push this and actually contribute, if you feel that you can--you'll be rewarded with moderator positions on the forum Let me know at the forum. I simply want to create a user-run community and get apollo out there. http://www.codeapollo.com http://www.codeapollo.com is currently the URL.
Re: [flexcoders] Re: Apollo (Should Adobe Keep the Name)
By the way, here were the results from the weekends poll: http://blog.everythingflex.com/2007/03/18/apollo-name-vote-results/ On 3/19/07, Rich Tretola [EMAIL PROTECTED] wrote: ApolloWeaver is just painful to say. I hope they do better than that. :-) -- Rich Tretola mx:EverythingFlex/ http://www.EverythingFlex.com
Re: [flexcoders] Cairngorm for Apollo?
why can't you use cairngorm for appollo as it is? On 19 Mar 2007 07:24:54 -0700, João Fernandes [EMAIL PROTECTED] wrote: I think the subject says all, will be a cairngorm version for Apollo? Thanks, João Fernandes -- j:pn http://www.lennel.org
RE: [flexcoders] Icons on TabBar or ToggleButton Bar
You should use the icon property of the containers in your ViewStack (in your example, Canvas). That should do the trick. If you wanted, you can also set the iconField property of your ToggleButtonBar or TabBar to use a custom property value (instead of icon). Phil -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of forrestmaready Sent: Monday, March 19, 2007 8:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Icons on TabBar or ToggleButton Bar Could someone let me know how they've succesfully populated the tabs on a TabBar or the buttons on a ToggleButtonBar with icons? I've tried putting the styleName tag on everything to no avail. Thanks! ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=horizontal width=470 height=100 horizontalAlign=center verticalAlign=middle mx:Style .myIcon { upSkin: Embed(assets/upIcon.jpg); overSkin: Embed(assets/overIcon.jpg); downSkin: Embed(assets/downIcon.jpg); } /mx:Style mx:ToggleButtonBar dataProvider=viewstack1 width=223 height=44/ mx:ViewStack id=viewstack1 width=18 height=24 selectedIndex=1 styleName=myIcon mx:Canvas label=Fred width=100% height=100% /mx:Canvas mx:Canvas label=Fred1 width=100% height=100% /mx:Canvas mx:Canvas label=Fred2 width=100% height=100% /mx:Canvas /mx:ViewStack /mx:Application
[flexcoders] An odd problem with the 'width' and 'height' of Sprite
Hi all. (This is my first post in this group, so I'd like to give all of you a greeting .) As the title, I've met an odd problem with using Sprite class. Because I'm a novice of Flex, my problem may be so trivial. But Your helps would make me happy. The simple version of my code is below. public class CustomSprite extends Sprite { public function TCellView(w:Number, h:Number) { this.width = w; this.height = h; draw(); } private function draw():void { this.graphics.clear(); this.graphics.lineStyle(2, 0x00, 0.7); this.graphics.drawRect(0, 0, this.width, this.height); } } The problem is that the assignments to width and height in the constructor of mine have no effect. So in draw(), the rectangle to be drawn has size of zero. The width and height are public properties of Sprite and are not read-only. Then why does the code like 'this.width = w' have no effect? (In debug mode of Flex Builder, the Variables view told me the values of width/height of the Sprite object have not changed by the codes.) After some investigation, I knew that the drawing on the graphics of Sprite causes update of width/height. That behavior is reasonable, I think. However, I wonder why a direct-assignment to width or height is banned, and how. Is there any mistake in my code? Or Do I misunderstand something? Please, tell me what's going on behind the scene about Sprite. Any replies of you would be grateful. Thank you. - Cho
[flexcoders] Anybody have doc about flash.profiler,profile and flash.profiler.heapDump ?
Hi, everybody: I have noticed that there are 2 undocumented function in the package flash.profiler, named profile and heapDump. Does anybody know how to use them? Thanks in advance.
Re: [flexcoders] Cairngorm for Apollo?
There doesn't need to be any different as Apollo is simply a wrapper, so you can use the current version of Cairngorm without any issues. On 19 Mar 2007 07:24:54 -0700, João Fernandes [EMAIL PROTECTED] wrote: I think the subject says all, will be a cairngorm version for Apollo? Thanks, João Fernandes -- Rich Tretola mx:EverythingFlex/ http://www.EverythingFlex.com
[flexcoders] filterFunction and List selection problem
I have a List with an ArrayCollection as the data provider. When I set a filter function on the collection, a strange thing happens: When clicking on a list item, the list elements re-arrange themselves in a strange way. The item selection occurs, but the selected item moves to another list position. When no filter function is set on the list, this does not occur. Any help or suggestions as why this is happening, would be appreciated. Thanks, - -Frank
Re: [flexcoders] Storing Dates Times in VO's
I would store it in a format that both PHP and Flex understand and can manipulate (i.e. epoch milliseconds). That way you can convert it to either a PHP date object or a Flex date object for convenience when you need to. Cheers, Brian On 3/20/07, Sam Shrefler [EMAIL PROTECTED] wrote: Kevin: I dont' use AMFPHP so I can't specifically help you with that situation, but to your first question: I would recommend figuring out a way to get your PHP DateTypes to automatically transfer to Date type's in Flex. I went down both roads (Date and String in flex) and found that there is a Date Type in Flex for a reason. It makes your life easier when dealing with Dates, especially comparing, sorting and performing Date arithmetic. So my recommendation would be to make the extra effort to get your Object to transfer correctly typed properties... Sam On 19 Mar 2007 17:51:09 -0700, Kevin [EMAIL PROTECTED] wrote: Should Dates Times be stored as Strings in Flex VO's? If not, what is the proper way to assign a value from the server (which generally comes in as a string) to a Date type in a Flex VO? I have been struggling with this. I am using AMFPHP and mapping my PHP objects to Flex for calls returned from the server, however, my date fields are not mapping. Does a setter function get call when you are doing VO mapping?? Thanks for the help. Thanks, Kevin -- Brian Dunphy
Re: [flexcoders] recieve RTMP Stream in flex? This can't be this hard?
I'm having similar headaches!! :) I've handled onMetaData, but now I get an asyncherror about streamInfo, which I can't place anywhere. Were you able to get your video and videoDisplay to play nice? On 10/6/06, eccentricwade [EMAIL PROTECTED] wrote: I am trying to connect to an RTMP stream from the Flash Media server in Flex 2. I have yet to be able to pull this off. Following the api I have the following class in the components directory and below that the mxml. This is the error that I receive. Any ideas on how to make this work would be greatly appreciated. Video Example! netStatusHandler connectStream netStatusHandler Unable to locate video: rtmp://10.3.0.104/iscam1 -- Wade package components { import flash.display.Sprite; import flash.events.*; import flash.media.Video; import flash.net.NetConnection; import flash.net.NetStream; public class VideoExample extends Sprite { private var videoURL:String = rtmp://10.3.0.104/iscam1; private var connection:NetConnection; private var stream:NetStream; public function VideoExample() { trace(Video Example!); connection = new NetConnection(); connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); connection.connect(null); } private function netStatusHandler(event:NetStatusEvent):void { trace(netStatusHandler); switch (event.info.code) { case NetConnection.Connect.Success: connectStream(); break; case NetStream.Play.StreamNotFound: trace(Unable to locate video: + videoURL); break; } } private function connectStream():void { trace(connectStream); var stream:NetStream = new NetStream(connection); stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); stream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler); var video:Video = new Video(); video.attachNetStream(stream); stream.play(videoURL); addChild(video); } private function securityErrorHandler(event:SecurityErrorEvent):void { trace(securityErrorHandler: + event); } private function asyncErrorHandler(event:AsyncErrorEvent):void { // ignore AsyncErrorEvent events. } } } AND THE MXML ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:T8=components.* layout=vertical horizontalAlign=left T8:VideoExample / /mx:Application -- John Wilker Vice President Software Development/Writer Red Omega Solutions, Inc. www.johnwilker.com / www.red-omega.com Everything changes, nothing remains without change. ~Buddha c.483 bc
[flexcoders] TabNavigator Filtering with Comparator class
I am using a tabnavigator with a Canvas and then a TileList in it. I have a horizontal slider similiar to the Flex store to filter products based upon price. My challenge is that when i adjust the slider the Comparator class adjusts the alpha of just the items visible in the tilelist. It does not filter the items when u scroll down the list. As well it filters all visible items except the first item. Does anyone have any ideas on how to address this? Thanks in advance Ammo987
[flexcoders] RE: Piechart doesnt show up in browser
I am trying out tan example that I read in JDJ magazine, and somehow the piechart shows in design view but when the applicaiton is run in the browser, the pie chart does nto show up all the labels and number can be seen. Here is a snippet if anyone can help, I am not an expert in flex so any advise is greatly appreciated. mx:PieChart id=portfolioPie dataProvider={portfolioModel.security} showDataTips=true itemClick=selectedSecurity=event.hitData.item.Symbol height=90% mx:series mx:Array mx:PieSeries labelPosition=callout field=Value labelFunction=showPosition nameField=Symbol explodeRadius=2/ /mx:Array /mx:series /mx:PieChart I already tried to set the visible property of the piechart to true , but that made no difference again thanks in advance Jenna
[flexcoders] Flex Module for Apache
Hi, just to let everybody know that the Flex module for Apache is working! Christian from adobe help me out so much`-` It is so cool, you can view mxml files on the server(localhost) without them being compiled, I think that the server compiles them, if so very fast on my mac. You can download this on adobe labs. Cheers, John Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121
[flexcoders] Re: List item selection with filterFunction
I experienced this when checking a CheckBox itemRenderer inside a DataGrid a few motnhs back. I thought I had determined that it was a change in the underlying dataProvider that caused the problem, but if you're experiencing it just selecting an entire list item that sounds different (but obviously related). I did have some trouble reproducing this bug consistently. I reported this to our support contact at Adobe but last I heard the engineers were unable to reproduce it. He suspected it might be a bug that was introduced in 2.0.1. Is that the version you're using? There is a fairly painless workaround. In my case, just before updating the item in the dataProvider, I would set the filterFunction to null, then update the value, then reassign the filterFunction. You don't need to call refresh() (I am assuming your dp is an ArrayCollection), so the list won't unsort and resort or anything like that. Sample code below: var ff:Function = myAC.filterFunction; myAC.filterFunction = null; myAC.getItemAt(someIndex).someValue = newValue; myAC.filterFunction = ff; HTH, Ben --- In flexcoders@yahoogroups.com, Frank Sommers [EMAIL PROTECTED] wrote: I have a List, and when a filter function is assigned to that list, whenever a selection is made (by clicking on a list item), the list items re-arrange in a strange way. I wonder why this is happening. When I remove the filter function, this does not occur. Any suggestions would be appreciated. Thanks, -- Frank
[flexcoders] Re: don't highlight a datagrid?
myDataGrid.selectedIndex = -1; should do it. HTH, Ben --- In flexcoders@yahoogroups.com, tang81285 [EMAIL PROTECTED] wrote: Hi, guys, I encountered a problem here, after we select a row on a datagrid, can we deselect(or do not highlight) this row when we mouse click on other parts(except the datagrid area) of screen? thanks.
Re: [flexcoders] Re: XML Attributes with a period in their name?
Dots are not allowed in attribute names. I'd use underscore or dash. Where in the XML spec does it state periods are not allowed? Sorry, my mistake. Dots are indeed allowed in attributes. In any case, that is completely irrelevant to the problem at hand. The XML configuration files for the phones DO have periods in their attribute names and I have no control over that, they've been deployed in the field by a top manufacturer for a number of years already. I'm just working on an application that needs to be able to read and write their configuration files. In any case i'm not aware of a way to dot down to them with E4X. You can access the values for example like this: var xml:XML = root foo.bar=hello world / trace([EMAIL PROTECTED]foo.bar]); Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
[flexcoders] Re: XML Attributes with a period in their name?
--- In flexcoders@yahoogroups.com, not_a_coop [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Claus Wahlers claus@ wrote: reg.1.user=1234 reg.1.server=192.168.0.1/ Dots are not allowed in attribute names. I'd use underscore or dash. Cheers, Claus. -- claus wahlers c�deazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/ Where in the XML spec does it state periods are not allowed? In any case, that is completely irrelevant to the problem at hand. The XML configuration files for the phones DO have periods in their attribute names and I have no control over that, they've been deployed in the field by a top manufacturer for a number of years already. I'm just working on an application that needs to be able to read and write their configuration files. I CAN get to the attributes by doing the following: myAtt:XMLList = xmlData.reg.attribute(reg.1.user); but I would really like to use the E4X capabilities to make this easier. Is there an easy way to set the reg.1.user attribute?
Re: [flexcoders] Re: XML Attributes with a period in their name?
On Tuesday 20 Mar 2007, not_a_coop wrote: field by a top manufacturer for a number of years already. I'm just working on an application that needs to be able to read and write their configuration files. So treat the XML as a plain string. -- Tom Chiverton Helping to preemptively syndicate open-source networks On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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: using itemRenderer with List, how can I set the icon?
Sorry man, just seemed like there was a lot of complaining on the list yesterday from lack of help. Sorry I made a joke and singled you out, and glad you found a solution. Sometimes it's so noisy in here, you do have to shout a little. I know I have. IMO I think this list is such high-volume, it could/should be split into a Flexnovice list, a Flexpro list, and an Apollo list. Jason Merrill Bank of America Global Technology Operations Learning Leadership Development eTools Multimedia Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Greg Morphis Sent: Monday, March 19, 2007 4:42 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: using itemRenderer with List, how can I set the icon? Screw you dude.. I've waited fairly patiently for a reply... On 3/19/07, Merrill, Jason [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Anyone know where I can go and actually maybe get a response from someone? good grief.. http://en.wikipedia.org/wiki/The_Whiners http://en.wikipedia.org/wiki/The_Whiners From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Greg Morphis Sent: Monday, March 19, 2007 4:37 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Re: using itemRenderer with List, how can I set the icon? Anyone know where I can go and actually maybe get a response from someone? good grief.. On 3/19/07, Greg Morphis [EMAIL PROTECTED] mailto:gmorphis%40gmail.com wrote: Can anyone offer any help with this please? On 3/16/07, Greg Morphis [EMAIL PROTECTED] mailto:gmorphis%40gmail.com wrote: Normally List has a iconFunction, I'm using an itemRenderer to give the list items a custom background color.. When I do this the icon doesn't show.. is there anyway around this? Thanks
Re: [flexcoders] Re: XML Attributes with a period in their name?
I CAN get to the attributes by doing the following: myAtt:XMLList = xmlData.reg.attribute(reg.1.user); but I would really like to use the E4X capabilities to make this easier. Is there an easy way to set the reg.1.user attribute? var xml:XML = root foo.bar=hello world / trace([EMAIL PROTECTED]foo.bar]); // hello world [EMAIL PROTECTED]all.your.base] = are belong to us; trace(xml.toXMLString()); // root foo.bar=hello world all.your.base=are belong to us/ Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
[flexcoders] Re: XML Attributes with a period in their name?
--- In flexcoders@yahoogroups.com, Claus Wahlers [EMAIL PROTECTED] wrote: I CAN get to the attributes by doing the following: myAtt:XMLList = xmlData.reg.attribute(reg.1.user); but I would really like to use the E4X capabilities to make this easier. Is there an easy way to set the reg.1.user attribute? var xml:XML = root foo.bar=hello world / trace([EMAIL PROTECTED]foo.bar]); // hello world [EMAIL PROTECTED]all.your.base] = are belong to us; trace(xml.toXMLString()); // root foo.bar=hello world all.your.base=are belong to us/ Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/ Perfect! I thought I tried every syntax trick I could think of, maybe just forgot to try square brackets. I couldnt find anything in the documentation about it. Thanks for your help!
Re: [flexcoders] JAWS read order
That did it. Thanks. On 3/19/07, Claus Wahlers [EMAIL PROTECTED] wrote: So here's what I'm running into: I have an HBox holding two VBoxes. I have a few Text fields inside. I'm thinking JAWS would read the contents of the first VBox in its entirety, then move on to the next VBox, but it is not. JAWS is reading what is displayed, right to left. Try giving your tabIndices consecutive, unique values. I noticed you have eg. multiple tabIndex=1 etc, so most likely the FocusManager internally sorts all elements with tabIndex=1 to the top in document order, which would explain the SR reading the first text blob first. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] Re: XML Attributes with a period in their name?
Perfect! I thought I tried every syntax trick I could think of, maybe just forgot to try square brackets. I couldnt find anything in the documentation about it. It's there, a bit hidden though: http://livedocs.adobe.com/flex/2/langref/operators.html#brackets_(XML) [ ] brackets (XML) operator Accesses a property or attribute of an XML or XMLList object. The brackets operator allows you to access property names that are not accessible with the dot (.) operator. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] Re: using itemRenderer with List, how can I set the icon?
It's cool and I understand the volume of people posting here. I was frustrated that I couldn't get this work and I shouldn't have posted the 3rd time. I appreciate this list and everyone on it. They've helped me out numerous times. On 3/20/07, Merrill, Jason [EMAIL PROTECTED] wrote: Sorry man, just seemed like there was a lot of complaining on the list yesterday from lack of help. Sorry I made a joke and singled you out, and glad you found a solution. Sometimes it's so noisy in here, you do have to shout a little. I know I have. IMO I think this list is such high-volume, it could/should be split into a Flexnovice list, a Flexpro list, and an Apollo list. Jason Merrill Bank of America Global Technology Operations Learning Leadership Development eTools Multimedia Team -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Greg Morphis *Sent:* Monday, March 19, 2007 4:42 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: using itemRenderer with List, how can I set the icon? Screw you dude.. I've waited fairly patiently for a reply... On 3/19/07, Merrill, Jason [EMAIL PROTECTED] wrote: Anyone know where I can go and actually maybe get a response from someone? good grief.. http://en.wikipedia.org/wiki/The_Whiners -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Greg Morphis *Sent:* Monday, March 19, 2007 4:37 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: using itemRenderer with List, how can I set the icon? Anyone know where I can go and actually maybe get a response from someone? good grief.. On 3/19/07, Greg Morphis [EMAIL PROTECTED] gmorphis%40gmail.com wrote: Can anyone offer any help with this please? On 3/16/07, Greg Morphis [EMAIL PROTECTED] gmorphis%40gmail.com wrote: Normally List has a iconFunction, I'm using an itemRenderer to give the list items a custom background color.. When I do this the icon doesn't show.. is there anyway around this? Thanks
Re: [flexcoders] AS3 Browser weirdness!!??
Not sure what you're specific problem may be, but to answer the question of what to do since there's no Key.isDown()... I borrowed this from Andre Michelle... works a charm. private var keyState:Array = new Array(); private function handleKeyDown(event:KeyboardEvent):void { keyState[event.keyCode] = true; } private function handleKeyUp(event:KeyboardEvent):void { keyState[event.keyCode] = false; } This takes advantage of the fact that AS3 arrays are sparse (otherwise you could just use an Object or Dictionary). Just replace any calls to Key.isDown() with keyState[Keyboard.CONSTANT]. Troy. On 20 Mar 2007 05:22:18 -0700, mtthwnthnyhys [EMAIL PROTECTED] wrote: Hey all, I'm working on some physics/game stuff... not typical Flex area of concern, but... well eventually I'll be making use of the Flex specific stuff, and for now I want to write in in AS3 and am on a Mac, so no AS3 Preview for me... :( Anyways, I wrote a little function to try and capture persistent key press... as the Key.isDown() got deprecated. It looks like this: private var l:uint; //left private var u:uint; //up private var r:uint; //right private var d:uint; //down private function persistKeyDown(event:KeyboardEvent):void { if(event.keyCode == Keyboard.LEFT) { l = setInterval(control, 10, event); } if(event.keyCode == Keyboard.UP) { u = setInterval(control, 10, event); } if(event.keyCode == Keyboard.RIGHT) { r = setInterval(control, 10, event); } if(event.keyCode == Keyboard.DOWN) { d = setInterval(control, 10, event); } //tFrame.text = keyDown: + event.keyCode; } private function persistKeyUp(event:KeyboardEvent):void { if(event.keyCode == Keyboard.LEFT) { clearInterval(l); } if(event.keyCode == Keyboard.UP) { clearInterval(u); } if(event.keyCode == Keyboard.RIGHT) { clearInterval(r); } if(event.keyCode == Keyboard.DOWN) { clearInterval(d); } //tFrame.text = keyUp: + event.keyCode; } The control function just applies forces to an object on the screen. I have the seperate intervals for each key so that I can catch simultaneous keys being held down... is that right? I think I must be doing something wrong, because, though it works fine in FireFox, it behaves all weird in Safari. You can check it out here: http://www.noncehence.com/game/experiments/test05.html Ideally, the green ball should bounce off the walls and the grey box. You'll have to click inside the canvas to give it focus, and you can control the green ball with the arrow keys. It's actually kind of fun already, but only in FireFox. In Safari, the green ball seems to get stuck in one direction or another and magnatize to a wall. Is there a difference between how keyDown/Up events are dispatched in various browsers? That doesn't make any sense to me... but then, I don't know why I'm having this problem. If anyone can help, or has other questions for me, please let me know. Thanks much, //Matt
Re: [flexcoders] An odd problem with the 'width' and 'height' of Sprite
Hi Cho, I assume in your example code below that TCellView was supposed to be CustomSprite (i.e. the constructor). This was mentioned recently so you could probably find some details in the archives, though I'm not sure what to suggest you search for, so I'll repeat what I learned as best as possible: When you set the width and height of a sprite, Flash attempts to scale the sprite to that width and height. So, it'll set the new width and height but it will also adjust the scaleX and scaleY properties such that *if* your sprite had content it would be scaled up to the new size (kinda what you would expect if you resized a movie clip). Of course, the big problem is that the documentation for width/height (or DisplayObject) makes absolutely no mention of this, and it appears that the behavior has simply been deduced through trial and error (Gordon or other Adobe folks, I'd love to see some official confirmation on what's happening -- and an update to the LiveDocs!). What is happening in your case is the width and height of your new Sprite is 0 because it doesn't contain any vector art, etc. So, you set the width and height manually and the Sprite attempts to adjust scaleX and scaleY to compensate. Since the width and height are at zero, the scales become NaN (division by zero), and thus are set to zero. Now, future drawing/sizing gets squished by the fact that scale is set to zero. To fix it, you can set your width and height *then* reset scaleX and scaleY back to 1.0. That should do it. Adobe? Undocumented! Troy. On 20 Mar 2007 05:43:55 -0700, celdi30 [EMAIL PROTECTED] wrote: Hi all. (This is my first post in this group, so I'd like to give all of you a greeting .) As the title, I've met an odd problem with using Sprite class. Because I'm a novice of Flex, my problem may be so trivial. But Your helps would make me happy. The simple version of my code is below. public class CustomSprite extends Sprite { public function TCellView(w:Number, h:Number) { this.width = w; this.height = h; draw(); } private function draw():void { this.graphics.clear(); this.graphics.lineStyle(2, 0x00, 0.7); this.graphics.drawRect(0, 0, this.width, this.height); } } The problem is that the assignments to width and height in the constructor of mine have no effect. So in draw(), the rectangle to be drawn has size of zero. The width and height are public properties of Sprite and are not read-only. Then why does the code like 'this.width = w' have no effect? (In debug mode of Flex Builder, the Variables view told me the values of width/height of the Sprite object have not changed by the codes.) After some investigation, I knew that the drawing on the graphics of Sprite causes update of width/height. That behavior is reasonable, I think. However, I wonder why a direct-assignment to width or height is banned, and how. Is there any mistake in my code? Or Do I misunderstand something? Please, tell me what's going on behind the scene about Sprite. Any replies of you would be grateful. Thank you. - Cho
Re: [flexcoders] Re: using itemRenderer with List, how can I set the icon?
There's already an apollo list http://tech.groups.yahoo.com/group/apollocoders/ - Original Message - From: Merrill, Jason [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, March 20, 2007 2:35 PM Subject: RE: [flexcoders] Re: using itemRenderer with List, how can I set the icon? Sorry man, just seemed like there was a lot of complaining on the list yesterday from lack of help. Sorry I made a joke and singled you out, and glad you found a solution. Sometimes it's so noisy in here, you do have to shout a little. I know I have. IMO I think this list is such high-volume, it could/should be split into a Flexnovice list, a Flexpro list, and an Apollo list. Jason Merrill
[flexcoders] Disabling Selectable Text for a ComboBox
I've got a ComboBox in a Form and for some reason the text is selectable (i.e., the I-bar cursor is displayed when you move over the ComboBox and you can drag-select the text displayed for the currently selected list item). The editable property is not defined, and it doesn't make a difference if editable is explicitly set to false (note that it is not possible to type text into the ComboBox, just select the text that is there). There's no selectable property for a ComboBox, so I can't use that to disable text selection. I have ComboBoxes in other Forms that don't have this problem and I don't see any differences between this ComboBox and the others in my code. Any ideas on what I can do to make the ComboBox text non-selectable? Thanks! Paul
[flexcoders] Apollo question here or there (was: Re: using itemRenderer with List, how can I set the icon?)
Cool, I'm just one small voice in the cosmic fuge as Carl Sagan would say, but I would vote we moderate Apollo questions to head over there then - this list is already quite high volume with novice, intermediate, and advanced Flex/AS3 questions. At the same time, I understand though, Apollo public alpha just launched yesterday, so there's going to be some noise everywhere... Jason Merrill Bank of America Global Technology Operations Learning Leadership Development eTools Multimedia Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Tuesday, March 20, 2007 11:03 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: using itemRenderer with List, how can I set the icon? There's already an apollo list http://tech.groups.yahoo.com/group/apollocoders/ http://tech.groups.yahoo.com/group/apollocoders/ - Original Message - From: Merrill, Jason [EMAIL PROTECTED] mailto:jason.merrill%40bankofamerica.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Tuesday, March 20, 2007 2:35 PM Subject: RE: [flexcoders] Re: using itemRenderer with List, how can I set the icon? Sorry man, just seemed like there was a lot of complaining on the list yesterday from lack of help. Sorry I made a joke and singled you out, and glad you found a solution. Sometimes it's so noisy in here, you do have to shout a little. I know I have. IMO I think this list is such high-volume, it could/should be split into a Flexnovice list, a Flexpro list, and an Apollo list. Jason Merrill
[flexcoders] Help: test EventDispatcher speed please
Hello list ! I noticed something weird about EventDispatcher execution speed in my mac player. EventDispatcher.dispatchEvent execution is slow compared to a custom dispatcher implementation (named EventBroadcaster). On Mac, EventDispatcher is slow: EventBroadcaster: 2925 EventDispatcher: 12438 On Pc, EventDispatcher is faster. EventBroadcaster: 3908 EventDispatcher: 3407 Can you please report the values you got (displayed on screen) when you open the url below and the browser you used for testing. It takes few seconds to initialize (bench with iterations) http://www.tweenpix.net/TestEventBroadcaster.swf Any clue is welcome. ;) Thanks in advance guys ! francis Content of the test: var tf1 : TextField = new TextField(); var tf2 : TextField = new TextField(); var tf3 : TextField = new TextField(); tf2.y += 30; tf3.y += 60; tf1.width = tf2.width = tf3.width = 150; this.addChild( tf1 ); this.addChild( tf2 ); this.addChild( tf3 ); var holder : Array = new Array(); var l1 : Number = 1; var l2 : Number = 1; var lNum : Number = 500; var eb : EventBroadcaster = new EventBroadcaster ( this ); var ed : EventDispatcher = new EventDispatcher (); while( --lNum -(-1) ) { var tg : Object = {foo:function( e : Event ):void{ this.e = e.type; }}; ed.addEventListener( foo, tg.foo ); eb.addEventListener( foo, tg ); holder.push( tg ); } var t : Number = 0; var e : Event = new Event( foo ); // t = getTimer(); while( --l2 -(-1)) eb.broadcastEvent( e ); t = getTimer() - t; trace( EventBroadcaster: , t ); tf1.text = EventBroadcaster: + t; // t = getTimer(); while( --l1 -(-1)) ed.dispatchEvent( e ); t = getTimer() - t; trace( EventDispatcher: , t ); tf2.text = EventDispatcher: + t; tf3.text = flash.system.Capabilities.version;
[flexcoders] Displaying 'No Data Found' message
Is there a quick way to simply display a 'No Data Found' label on a chart? Thanks.
[flexcoders] WebService Fault Handling - Flash Player 9 Update
Hello, I just examined the latest FP9 Update Fixed Issues web page, and see no mention of the WebService Fault Handling Issue (fault body not passed to player) that has been discussed many times here... This is a really big issue for people not using a proxy, and I'm surprised that more of us haven't asked Adobe for this to be a priority fix, or at least come up with a real work around. Can someone tell me when this will be addressed..? Thanks, Paul
[flexcoders] Re: List item selection with filterFunction
Thanks for the suggestion. In my case, I don't change the underlying data provider, though - I simply have an ArrayCollection set as the data provider for a List. When the filter function is set, the right thing happens: Only items in the list matching the filter criteria show. However, when at that point I click on a list item, the selected item sometimes jumps, so to speak, to a position above where it originally was, and other items rearrange in the list. I don't have a sort function set for the ArrayCollection, btw. I also noticed that this does not occur when the subset created with the filter function is small, i..e, 4-5 items or less. But when the subset is bigger (a dozen or more items), this occurs every time. And when the subset is very long (few dozen items), this makes the list unusable, as users cannot reliably select list items. I also verified this with a list that has no custom item renderer, btw. Yes, I'm using 2.0.1. Thanks, -- Frank --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: I experienced this when checking a CheckBox itemRenderer inside a DataGrid a few motnhs back. I thought I had determined that it was a change in the underlying dataProvider that caused the problem, but if you're experiencing it just selecting an entire list item that sounds different (but obviously related). I did have some trouble reproducing this bug consistently. I reported this to our support contact at Adobe but last I heard the engineers were unable to reproduce it. He suspected it might be a bug that was introduced in 2.0.1. Is that the version you're using? There is a fairly painless workaround. In my case, just before updating the item in the dataProvider, I would set the filterFunction to null, then update the value, then reassign the filterFunction. You don't need to call refresh() (I am assuming your dp is an ArrayCollection), so the list won't unsort and resort or anything like that. Sample code below: var ff:Function = myAC.filterFunction; myAC.filterFunction = null; myAC.getItemAt(someIndex).someValue = newValue; myAC.filterFunction = ff; HTH, Ben
[flexcoders] Re: Disabling Selectable Text for a ComboBox
I actually discovered this same issue in my app a few days ago. I also have several other ComboBoxes (including one right next to the problematic one) that don't display the i-beam. After a bit of investigation, it seems that having enabled=false in the ComboBox's MXML tag (then enabling it at some point of course) causes the selectable text. Any idea on a workaround? Thanks, Ben --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: I've got a ComboBox in a Form and for some reason the text is selectable (i.e., the I-bar cursor is displayed when you move over the ComboBox and you can drag-select the text displayed for the currently selected list item). The editable property is not defined, and it doesn't make a difference if editable is explicitly set to false (note that it is not possible to type text into the ComboBox, just select the text that is there). There's no selectable property for a ComboBox, so I can't use that to disable text selection. I have ComboBoxes in other Forms that don't have this problem and I don't see any differences between this ComboBox and the others in my code. Any ideas on what I can do to make the ComboBox text non-selectable? Thanks! Paul
[flexcoders] Help - Flex application no longer works!
I am getting the following runtime error when running my application: Error: Could not find resource bundle formatters at mx.resources::ResourceBundle$/getResourceBundle() at mx.formatters::DateBase$cinit() at global$init() at mx.formatters::DateFormatter/format() at util.renderers::DateRenderer/set data() at mx.controls.dataGridClasses::DataGridBase/mx.controls.dataGridClasses: DataGridBase::makeRowsAndColumns() at mx.controls::DataGrid/mx.controls:DataGrid::makeRowsAndColumns() at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::up dateDisplayList() at mx.controls::DataGrid/mx.controls:DataGrid::updateDisplayList() at util::OptimizedDataGrid/util:OptimizedDataGrid::updateDisplayList() at mx.core::UIComponent/validateDisplayList() at mx.managers::LayoutManager/::validateDisplayList() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() at flash.utils::Timer/flash.utils:Timer::_timerDispatch() at flash.utils::Timer/flash.utils:Timer::tick() Any ideas what may be causing this? It was working fine this morning and I swear I haven't changed anything since then - certainly none of the classes listed above. I've tried cleaning all my projects in Flex Builder but this hasn't helped. Any ideas what this error means? Thanks, Nick.
[flexcoders] Re: error with HTTPService
Hi and thank you for your reply. Yes, I did bind the results like your example and it works great. Thank you! --- In flexcoders@yahoogroups.com, TCash21 [EMAIL PROTECTED] wrote: Did you try [EMAIL PROTECTED] --- In flexcoders@yahoogroups.com, danj520 danj520@ wrote: Hello, I'm trying to bind the returned results from a ComboBox to a url in HTTPService. Flex returns a Value must be quoted error with this statement: mx:HTTPService id=productService url={appName.SelectedItem.url} result=productServiceResultHandler(event) showBusyCursor=true/ Here's my code for theComboBox. mx:ComboBox id=appName styleName=glass width=161 change=productService.send(); mx:dataProvider mx:Array mx:Object label=â12.5V HF SSBâ url=âdata/125-hf-ssb.xml?filter=12vhgssbâ/ mx:Object label=â28V HF SSBâ url=âdata/28v-hf-ssb.xml?filter=28vhfssbâ/ mx:Object label=â50V HF SSBâ url=âdata/50v-hf-ssb.xml?filter=50vhfssbâ/ mx:Object label=âCell Basestationâ url=âdata/cell-basestation.xml?filter=cellbasestationâ/ mx:Object label=âCellular Mobileâ url=âdata/cellular-mobile.xml?filter=cellularmobileâ/ mx:Object label=âDME TACANâ url=âdata/dme-tacan.xml?filter=dme-tacanâ/ /mx:Array /mx:dataProvider /mx:ComboBox Can't seem to find much in the docs about this, except that url must be quoted. What am I doing wrong? Thanks in advance.
[flexcoders] Coldfusion FDS App Wizards for FB 2 ?
Hi, Hopefully this is a quick'un! I've just installed CF developers edition and FDS single user SDK - I'd like to use the CF App Wizard from Eclipse - I'm *sure* it used to be an option to install it at some stage but I was offered no such option when I installed CF or FDS... any ideas ? I've looked all over for a separate download for this to no avail. Perhaps it's part of the FB2 install ? If so, is there any way I can install the plugin without having to reinstall FB2 ? Thanks, Jamie.
[flexcoders] Flex Caching Data?
I have a component which downloads a list of credit card numbers for the customer to work through. This file is delivered to the container as a CSV then turned into a collection of DTO objects. Is there a way to MAKE SURE that flash does not leave this on the disk after the container closes (like closing a browser). I am worried about a laptop using our program once, then being stolen. Is this configurable? Encryptable? I've been digging but all the cache info I find is about the swf file itself. Thanks!
Re: [flexcoders] Coldfusion FDS App Wizards for FB 2 ?
On Tuesday 20 Mar 2007, jamiebadman wrote: Perhaps it's part of the FB2 install ? If so, is there any way I can install the plugin without having to reinstall FB2 ? There should be a .zip in FB2's install directory. -- Tom Chiverton Helping to completely strategize holistic customers On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/0It09A/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Help: test EventDispatcher speed please
On Tuesday 20 Mar 2007, Francis Bourre wrote: On Mac, EventDispatcher is slow: ... On Pc, EventDispatcher is faster. So you've discovered that different hardware, on a different O/S, runs the same code at different speeds ? Wow. -- Tom Chiverton Helping to continually coordinate attention-grabbing communities On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Coldfusion FDS App Wizards for FB 2 ?
When you finished the DB install it should have popped up and asked you do you want to know how to install the CF Extensions?. Basically, there is a ZIP file on your machine, somewhere under where the FB installer bits put themselves, and you need to add that archive as a new Eclipse plug-in (in FB, Help-Software Updates-Find And Install-Search for new features to install-New Archived Site button, and then select the ZIP file). --- Ben From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jamiebadman Sent: Tuesday, March 20, 2007 12:22 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Coldfusion FDS App Wizards for FB 2 ? Hi, Hopefully this is a quick'un! I've just installed CF developers edition and FDS single user SDK - I'd like to use the CF App Wizard from Eclipse - I'm *sure* it used to be an option to install it at some stage but I was offered no such option when I installed CF or FDS... any ideas ? I've looked all over for a separate download for this to no avail. Perhaps it's part of the FB2 install ? If so, is there any way I can install the plugin without having to reinstall FB2 ? Thanks, Jamie.
[flexcoders] Re: Flex Caching Data?
As a follow-up... I am not writing this to disk myself. I am using an HTTPService to download the file, then processing it in memory into a data-store. Never (by me) is either the downloaded file, nor the data-store intentionally written to disk. I think, because of this, the two files being written I am concerned about (cache) are temporary internet files and normal swap-like disk caching. Thanks again --- In flexcoders@yahoogroups.com, Matt Maher [EMAIL PROTECTED] wrote: I have a component which downloads a list of credit card numbers for the customer to work through. This file is delivered to the container as a CSV then turned into a collection of DTO objects. Is there a way to MAKE SURE that flash does not leave this on the disk after the container closes (like closing a browser). I am worried about a laptop using our program once, then being stolen. Is this configurable? Encryptable? I've been digging but all the cache info I find is about the swf file itself. Thanks!
Re: [flexcoders] Coldfusion FDS App Wizards for FB 2 ?
It is part of the FB2 install, though the installer does not do it for you. Assuming you're on Windows, if you look in your WINDOWS\Downloaded Installations\Adobe Flex Builder 2.0.1\ColdFusion Extensions for Flex Builder/ folder, you'll see the zip file. Just add it as an archived site via the usual Eclipse Find and Install functionality. On 20 Mar 2007 09:21:48 -0700, jamiebadman [EMAIL PROTECTED] wrote: Hi, Hopefully this is a quick'un! I've just installed CF developers edition and FDS single user SDK - I'd like to use the CF App Wizard from Eclipse - I'm *sure* it used to be an option to install it at some stage but I was offered no such option when I installed CF or FDS... any ideas ? I've looked all over for a separate download for this to no avail. Perhaps it's part of the FB2 install ? If so, is there any way I can install the plugin without having to reinstall FB2 ? Thanks, Jamie.
[flexcoders] Constant Variable declaration in Custom Component
Hi, I need to declare a constant public variable in a custom component (say direction with values horizontal and vertical). When I use this custom component in any MXML, and try to assign the value for direction, it should give me the values horizontal and vertical so that the user selects one of them. Has anyone implemented this? Any help would be greatly appreciated. Thanks, Madhu
[flexcoders] FlexBuilder Project Layout Help
Where does FB keep information about your workspaces? The reason I am wondering is because I have deleted my FB workspace from the file system but when I try to recreate it in FB, FB tells me the work space would overlap. It still thinks the old workspace is around. Maybe someone could tell me where to look to fix this : ) Thanks, Ros
RE: [flexcoders] Help - Flex application no longer works!
Have you tried cleaning the project? I used resource bundles and had to clean the project nearly every time I compiled - I was getting compilation errors though not runtime errors. Giles Roadnight From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nick Durnell Sent: 20 March 2007 16:13 To: flexcoders@yahoogroups.com Subject: [flexcoders] Help - Flex application no longer works! I am getting the following runtime error when running my application: Error: Could not find resource bundle formatters at mx.resources::ResourceBundle$/getResourceBundle() at mx.formatters::DateBase$cinit() at global$init() at mx.formatters::DateFormatter/format() at util.renderers::DateRenderer/set data() at mx.controls.dataGridClasses::DataGridBase/mx.controls.dataGridClasses: DataGridBase::makeRowsAndColumns() at mx.controls::DataGrid/mx.controls:DataGrid::makeRowsAndColumns() at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::up dateDisplayList() at mx.controls::DataGrid/mx.controls:DataGrid::updateDisplayList() at util::OptimizedDataGrid/util:OptimizedDataGrid::updateDisplayList() at mx.core::UIComponent/validateDisplayList() at mx.managers::LayoutManager/::validateDisplayList() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() at flash.utils::Timer/flash.utils:Timer::_timerDispatch() at flash.utils::Timer/flash.utils:Timer::tick() Any ideas what may be causing this? It was working fine this morning and I swear I haven't changed anything since then - certainly none of the classes listed above. I've tried cleaning all my projects in Flex Builder but this hasn't helped. Any ideas what this error means? Thanks, Nick.
RE: [flexcoders] Re: Flex Caching Data?
Have you looked in the browser temporary files folder to see if it has turned up there? I think that's the only place it'll be stored. I don't think Flash does any caching, it just relies on the browser cache. Giles Roadnight From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Maher Sent: 20 March 2007 16:33 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex Caching Data? As a follow-up... I am not writing this to disk myself. I am using an HTTPService to download the file, then processing it in memory into a data-store. Never (by me) is either the downloaded file, nor the data-store intentionally written to disk. I think, because of this, the two files being written I am concerned about (cache) are temporary internet files and normal swap-like disk caching. Thanks again --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Maher [EMAIL PROTECTED] wrote: I have a component which downloads a list of credit card numbers for the customer to work through. This file is delivered to the container as a CSV then turned into a collection of DTO objects. Is there a way to MAKE SURE that flash does not leave this on the disk after the container closes (like closing a browser). I am worried about a laptop using our program once, then being stolen. Is this configurable? Encryptable? I've been digging but all the cache info I find is about the swf file itself. Thanks!
Re: [flexcoders] FlexBuilder Project Layout Help
You could simply go into the folder and physically delete the entire project folder that was there in the work space. This happens with you delete the work space and not the contents. Roscoe P Coltrane wrote: Where does FB keep information about your workspaces? The reason I am wondering is because I have deleted my FB workspace from the file system but when I try to recreate it in FB, FB tells me the work space would overlap. It still thinks the old workspace is around. Maybe someone could tell me where to look to fix this : ) Thanks, Ros -- View this message in context: http://www.nabble.com/FlexBuilder-Project-Layout-Help-tf3434904.html#a9576964 Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Help - Flex application no longer works!
Hi Giles, Yes I've tried cleaning all my projects in Flex Builder but I still get the same problem. After a quick Google it sounds like this may be a locale issue. I have tried: - Setting my locale to US English (it is usually UK English); - Adding the compiler argument -locale en_US to my library projects (it was already there on my Flex (MXML) project). All no no avail - I still get the same error :-( Nick. --- In flexcoders@yahoogroups.com, Giles Roadnight [EMAIL PROTECTED] wrote: Have you tried cleaning the project? I used resource bundles and had to clean the project nearly every time I compiled - I was getting compilation errors though not runtime errors. Giles Roadnight From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nick Durnell Sent: 20 March 2007 16:13 To: flexcoders@yahoogroups.com Subject: [flexcoders] Help - Flex application no longer works! I am getting the following runtime error when running my application: Error: Could not find resource bundle formatters at mx.resources::ResourceBundle$/getResourceBundle() at mx.formatters::DateBase$cinit() at global$init() at mx.formatters::DateFormatter/format() at util.renderers::DateRenderer/set data() at mx.controls.dataGridClasses::DataGridBase/mx.controls.dataGridClasses: DataGridBase::makeRowsAndColumns() at mx.controls::DataGrid/mx.controls:DataGrid::makeRowsAndColumns() at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::up dateDisplayList() at mx.controls::DataGrid/mx.controls:DataGrid::updateDisplayList() at util::OptimizedDataGrid/util:OptimizedDataGrid::updateDisplayList() at mx.core::UIComponent/validateDisplayList() at mx.managers::LayoutManager/::validateDisplayList() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() at flash.utils::Timer/flash.utils:Timer::_timerDispatch() at flash.utils::Timer/flash.utils:Timer::tick() Any ideas what may be causing this? It was working fine this morning and I swear I haven't changed anything since then - certainly none of the classes listed above. I've tried cleaning all my projects in Flex Builder but this hasn't helped. Any ideas what this error means? Thanks, Nick.
[flexcoders] getObjectsUnderPoint problems
Okay, this is really driving me crazy... I've got a UIComponent which is nested several layers deep in a layout. Inside that UIComponent I've got a series of sprites that are nested one inside of the other 4 or 5 levels deep with a Bitmap nested as the deepest level. In the top-level sprite of my UIComponent (child of the UIComponent) I'm intercepting mouse clicks (sprite.mouseChildren = false) and trying to determine what underlying sprite was clicked on (think the SpriteArranger example). Easy, right? Just take the stageX and stageY coordinates from the mouse down event, pass them to getObjectsUnderPoint, and voila, a list of objects (sprites, bitmaps, etc.) underneath that point on the stage. But its not working for me... a few weird issues are popping up: First, 99% the only object that is in the returned list is the top-level sprite of my component. What's weird is its the DisplayObjectContainer I'm calling getObjectsUnderPoint on, so I wouldn't expect it to be included in the list (because the docs say children, grandchildren, etc.). Second, the 1% of the time it finds something else its the deepest child, the Bitmap, which is the only other object with art, so that's too be expected. But it only finds the object if I click on the top edge of the bitmap. E.g., if I click at (20, 120) it finds the bitmap, but if I click at (20, 121) or (20, 119) it doesn't find the bitmap, even though its 100x100 (its fairly big on the screen, I can tell when I'm clicking inside of it!). And I check the hitArea... NULL on all my DisplayObjects, so they should be running off of the visual areas... Third, the getPointsUnderObject seems to be offset... the docs say to use stage coordinates, so I use the stageX and stageY from the mouse event. But, no objects are returned when I reach the edge of my UIComponent due to what appears to be some offset due to the fact that the UIComponent is centered... ARrrgh! This seems so basic? Are there gotchas I'm not aware of when dealing with getObjectsUnderPoint? I can find very few examples of this being used and the ones I can find seem to agree with what I'm doing! Help! Please help! :) Troy.
[flexcoders] Re: Disabling Selectable Text for a ComboBox
Thanks Ben, that helped a bit. I have two ComboBoxes on the Form and each had an enabled=false in the MXML. However, when I removed the enabled=false from the MXML I was still getting the i-beam and selectable text. In my code I'm also programatically changing the enabled state of the ComboBoxes, so I tried removing the code where the ComboBoxes are disabled in response to other settings in the form. This time it worked: the i-beam cursor was gone and the text was no longer selectable. Of course the ComboBoxes are always enabled now, which is bad. I did discover something else odd. With the enabled=false gone in the MXML I can programatically enable and disable the SECOND ComboBox without it becoming selectable (the first ComboBox still has the problem when it is programatically disabled and enabled). Anyone know of a way to disabling/enabling a ComboBox without running into this problem of the text becoming selectable? Paul --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: I actually discovered this same issue in my app a few days ago. I also have several other ComboBoxes (including one right next to the problematic one) that don't display the i-beam. After a bit of investigation, it seems that having enabled=false in the ComboBox's MXML tag (then enabling it at some point of course) causes the selectable text. Any idea on a workaround? Thanks, Ben --- In flexcoders@yahoogroups.com, Paul Whitelock news@ wrote: I've got a ComboBox in a Form and for some reason the text is selectable (i.e., the I-bar cursor is displayed when you move over the ComboBox and you can drag-select the text displayed for the currently selected list item). The editable property is not defined, and it doesn't make a difference if editable is explicitly set to false (note that it is not possible to type text into the ComboBox, just select the text that is there). There's no selectable property for a ComboBox, so I can't use that to disable text selection. I have ComboBoxes in other Forms that don't have this problem and I don't see any differences between this ComboBox and the others in my code. Any ideas on what I can do to make the ComboBox text non-selectable? Thanks! Paul
RE: [flexcoders] WebService Fault Handling - Flash Player 9 Update
Unfortunately we cannot fix this without support from the browser vendors. We are in discussions with them to try to have the right information accessible to plugins in some of their next versions. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of paulwelling Sent: Tuesday, March 20, 2007 8:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] WebService Fault Handling - Flash Player 9 Update Hello, I just examined the latest FP9 Update Fixed Issues web page, and see no mention of the WebService Fault Handling Issue (fault body not passed to player) that has been discussed many times here... This is a really big issue for people not using a proxy, and I'm surprised that more of us haven't asked Adobe for this to be a priority fix, or at least come up with a real work around. Can someone tell me when this will be addressed..? Thanks, Paul
RE: [flexcoders] Re: Help - Flex application no longer works!
Add a DateFormatter to the main app. If that solves the problem then you have a linker dependency issue. If you are using modules, rsls or otherwise using -extern options you might be excluding the locale data somehow. -link-report is helpful in these situations. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nick Durnell Sent: Tuesday, March 20, 2007 10:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Help - Flex application no longer works! Hi Giles, Yes I've tried cleaning all my projects in Flex Builder but I still get the same problem. After a quick Google it sounds like this may be a locale issue. I have tried: - Setting my locale to US English (it is usually UK English); - Adding the compiler argument -locale en_US to my library projects (it was already there on my Flex (MXML) project). All no no avail - I still get the same error :-( Nick. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Giles Roadnight [EMAIL PROTECTED] wrote: Have you tried cleaning the project? I used resource bundles and had to clean the project nearly every time I compiled - I was getting compilation errors though not runtime errors. Giles Roadnight From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Nick Durnell Sent: 20 March 2007 16:13 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Help - Flex application no longer works! I am getting the following runtime error when running my application: Error: Could not find resource bundle formatters at mx.resources::ResourceBundle$/getResourceBundle() at mx.formatters::DateBase$cinit() at global$init() at mx.formatters::DateFormatter/format() at util.renderers::DateRenderer/set data() at mx.controls.dataGridClasses::DataGridBase/mx.controls.dataGridClasses: DataGridBase::makeRowsAndColumns() at mx.controls::DataGrid/mx.controls:DataGrid::makeRowsAndColumns() at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::up dateDisplayList() at mx.controls::DataGrid/mx.controls:DataGrid::updateDisplayList() at util::OptimizedDataGrid/util:OptimizedDataGrid::updateDisplayList() at mx.core::UIComponent/validateDisplayList() at mx.managers::LayoutManager/::validateDisplayList() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply http://adobe.com/AS3/2006/builtin::apply () at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() at flash.utils::Timer/flash.utils:Timer::_timerDispatch() at flash.utils::Timer/flash.utils:Timer::tick() Any ideas what may be causing this? It was working fine this morning and I swear I haven't changed anything since then - certainly none of the classes listed above. I've tried cleaning all my projects in Flex Builder but this hasn't helped. Any ideas what this error means? Thanks, Nick.
[flexcoders] Re: getObjectsUnderPoint problems
Okay, found this in the archives: http://tech.groups.yahoo.com/group/flexcoders/message/48653 So, I tried out the function at the end of the thread. Seems the one thing I was doing wrong (?) was this: I called this.getObjectsUnderPoint(point); where this was a Sprite at the root of my UIComponent. Everything works correctly if I instead call this.stage.getObjectsUnderPoint(point). That... well, doesn't make sense. Anyone care to clarify? Troy. --- In flexcoders@yahoogroups.com, thirtyfivemph [EMAIL PROTECTED] wrote: Okay, this is really driving me crazy... I've got a UIComponent which is nested several layers deep in a layout. Inside that UIComponent I've got a series of sprites that are nested one inside of the other 4 or 5 levels deep with a Bitmap nested as the deepest level. In the top-level sprite of my UIComponent (child of the UIComponent) I'm intercepting mouse clicks (sprite.mouseChildren = false) and trying to determine what underlying sprite was clicked on (think the SpriteArranger example). Easy, right? Just take the stageX and stageY coordinates from the mouse down event, pass them to getObjectsUnderPoint, and voila, a list of objects (sprites, bitmaps, etc.) underneath that point on the stage. But its not working for me... a few weird issues are popping up: First, 99% the only object that is in the returned list is the top-level sprite of my component. What's weird is its the DisplayObjectContainer I'm calling getObjectsUnderPoint on, so I wouldn't expect it to be included in the list (because the docs say children, grandchildren, etc.). Second, the 1% of the time it finds something else its the deepest child, the Bitmap, which is the only other object with art, so that's too be expected. But it only finds the object if I click on the top edge of the bitmap. E.g., if I click at (20, 120) it finds the bitmap, but if I click at (20, 121) or (20, 119) it doesn't find the bitmap, even though its 100x100 (its fairly big on the screen, I can tell when I'm clicking inside of it!). And I check the hitArea... NULL on all my DisplayObjects, so they should be running off of the visual areas... Third, the getPointsUnderObject seems to be offset... the docs say to use stage coordinates, so I use the stageX and stageY from the mouse event. But, no objects are returned when I reach the edge of my UIComponent due to what appears to be some offset due to the fact that the UIComponent is centered... ARrrgh! This seems so basic? Are there gotchas I'm not aware of when dealing with getObjectsUnderPoint? I can find very few examples of this being used and the ones I can find seem to agree with what I'm doing! Help! Please help! :) Troy.
[flexcoders] Re: FlexBuilder Project Layout Help
that was what I originally did and FB still thinks it is there. So now I can't recreate it... --- In flexcoders@yahoogroups.com, xmrcivicboix [EMAIL PROTECTED] wrote: You could simply go into the folder and physically delete the entire project folder that was there in the work space. This happens with you delete the work space and not the contents. Roscoe P Coltrane wrote: Where does FB keep information about your workspaces? The reason I am wondering is because I have deleted my FB workspace from the file system but when I try to recreate it in FB, FB tells me the work space would overlap. It still thinks the old workspace is around. Maybe someone could tell me where to look to fix this : ) Thanks, Ros -- View this message in context: http://www.nabble.com/FlexBuilder-Project-Layout-Help-tf3434904.html#a9576964 Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: WebService Fault Handling - Flash Player 9 Update
I find it hard to believe that we can create our own implementation that would support this using sockets but the built in method requires browser vendor help. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Unfortunately we cannot fix this without support from the browser vendors. We are in discussions with them to try to have the right information accessible to plugins in some of their next versions. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of paulwelling Sent: Tuesday, March 20, 2007 8:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] WebService Fault Handling - Flash Player 9 Update Hello, I just examined the latest FP9 Update Fixed Issues web page, and see no mention of the WebService Fault Handling Issue (fault body not passed to player) that has been discussed many times here... This is a really big issue for people not using a proxy, and I'm surprised that more of us haven't asked Adobe for this to be a priority fix, or at least come up with a real work around. Can someone tell me when this will be addressed..? Thanks, Paul
[flexcoders] Re: Apollo SDK
Im not sure if this helps... You could probably hear me screaming last Saturday afternoon from my office in Cupertino, CA. The fact that it was beautiful outside didnt help. I searched the CD (The stuff that became available for Apollo over the weekend was a hand out at ApolloCamp on Friday night.) I read the release notes, so I had the file name, but I still couldnt find it on the CD. I finally found it in the Flex Builder directory fb_apollo_extensions_win_alpha1rc3.exe The location of this file was a point of confusion for me, first because there was an Apollo directory at the same level. I had already installed Flex Builder and wasnt interested in the Flex Builder folder whatsoever. I searched the Apollo folder and others on the CD several times and couldnt find this file and the information wasnt on the website yet. I was pulling my hair out. If you havent yet already, be sure to install the runtime as well. If you havent yet this may be the problem. If you havent run the plugin installer you'll need to do that next. Go to Apollo... http://adobe.com/go/apollo this will redirect you to http://labs.adobe.com/technologies/apollo/ and at the bottom of that page you can find the runtime under Run Apollo Applications(INSTALL THAT FIRST) and the plugin Develop Apollo Applications (INSTALL THIS NEXT). Im not sure if the order is important, i did it that order and it works for me. Though I am having minor trouble with transparent apps? I think they tried to make it really easy. (And maybe fo someone who understands Eclipse, as well as those Adobe guys do, it probably was. Anyway the installer (fb_apollo_extensions_win_alpha1rc3.exe) makes it simple, good luck.
[flexcoders] Re: Disabling Selectable Text for a ComboBox
I just discovered why the second ComboBox was not affected -- it's because I was disabling the ** Form item ** that wraps the ComboBox and not the ComboBox itself. I changed my code so that I enable and disable both ComboBoxes by setting the enabled property for the Form item rather than for the ComboBox and now the problem with the selectable text is gone (you can even set the enabled property for the Form item to false in the MXML without causing a problem). One possible drawback that I found in doing this is that the Form item's label text is dimmed when the Form item is disabled (disabling only the ComboBox left the Form item's label untouched). Still, it's better than the alternative of selectable text in the ComboBox. Paul --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: Thanks Ben, that helped a bit. I have two ComboBoxes on the Form and each had an enabled=false in the MXML. However, when I removed the enabled=false from the MXML I was still getting the i-beam and selectable text. In my code I'm also programatically changing the enabled state of the ComboBoxes, so I tried removing the code where the ComboBoxes are disabled in response to other settings in the form. This time it worked: the i-beam cursor was gone and the text was no longer selectable. Of course the ComboBoxes are always enabled now, which is bad. I did discover something else odd. With the enabled=false gone in the MXML I can programatically enable and disable the SECOND ComboBox without it becoming selectable (the first ComboBox still has the problem when it is programatically disabled and enabled). Anyone know of a way to disabling/enabling a ComboBox without running into this problem of the text becoming selectable? Paul --- In flexcoders@yahoogroups.com, ben.clinkinbeard ben.clinkinbeard@ wrote: I actually discovered this same issue in my app a few days ago. I also have several other ComboBoxes (including one right next to the problematic one) that don't display the i-beam. After a bit of investigation, it seems that having enabled=false in the ComboBox's MXML tag (then enabling it at some point of course) causes the selectable text. Any idea on a workaround? Thanks, Ben --- In flexcoders@yahoogroups.com, Paul Whitelock news@ wrote: I've got a ComboBox in a Form and for some reason the text is selectable (i.e., the I-bar cursor is displayed when you move over the ComboBox and you can drag-select the text displayed for the currently selected list item). The editable property is not defined, and it doesn't make a difference if editable is explicitly set to false (note that it is not possible to type text into the ComboBox, just select the text that is there). There's no selectable property for a ComboBox, so I can't use that to disable text selection. I have ComboBoxes in other Forms that don't have this problem and I don't see any differences between this ComboBox and the others in my code. Any ideas on what I can do to make the ComboBox text non-selectable? Thanks! Paul
[flexcoders] Re: Re: AS3 Browser weirdness!!??... Thanks!!
Hey Troy, Thanks! That was totally it! Fixed the browser problem, and it's way less code... awesome! //Matt --- In flexcoders@yahoogroups.com, Troy Gilbert [EMAIL PROTECTED] wrote: Not sure what you're specific problem may be, but to answer the question of what to do since there's no Key.isDown()... I borrowed this from Andre Michelle... works a charm. private var keyState:Array = new Array(); private function handleKeyDown(event:KeyboardEvent):void { keyState[event.keyCode] = true; } private function handleKeyUp(event:KeyboardEvent):void { keyState[event.keyCode] = false; } This takes advantage of the fact that AS3 arrays are sparse (otherwise you could just use an Object or Dictionary). Just replace any calls to Key.isDown() with keyState[Keyboard.CONSTANT]. Troy. On 20 Mar 2007 05:22:18 -0700, mtthwnthnyhys [EMAIL PROTECTED] wrote: Hey all, I'm working on some physics/game stuff... not typical Flex area of concern, but... well eventually I'll be making use of the Flex specific stuff, and for now I want to write in in AS3 and am on a Mac, so no AS3 Preview for me... :( Anyways, I wrote a little function to try and capture persistent key press... as the Key.isDown() got deprecated. It looks like this: private var l:uint; //left private var u:uint; //up private var r:uint; //right private var d:uint; //down private function persistKeyDown(event:KeyboardEvent):void { if(event.keyCode == Keyboard.LEFT) { l = setInterval(control, 10, event); } if(event.keyCode == Keyboard.UP) { u = setInterval(control, 10, event); } if(event.keyCode == Keyboard.RIGHT) { r = setInterval(control, 10, event); } if(event.keyCode == Keyboard.DOWN) { d = setInterval(control, 10, event); } //tFrame.text = keyDown: + event.keyCode; } private function persistKeyUp(event:KeyboardEvent):void { if(event.keyCode == Keyboard.LEFT) { clearInterval(l); } if(event.keyCode == Keyboard.UP) { clearInterval(u); } if(event.keyCode == Keyboard.RIGHT) { clearInterval(r); } if(event.keyCode == Keyboard.DOWN) { clearInterval(d); } //tFrame.text = keyUp: + event.keyCode; } The control function just applies forces to an object on the screen. I have the seperate intervals for each key so that I can catch simultaneous keys being held down... is that right? I think I must be doing something wrong, because, though it works fine in FireFox, it behaves all weird in Safari. You can check it out here: http://www.noncehence.com/game/experiments/test05.html Ideally, the green ball should bounce off the walls and the grey box. You'll have to click inside the canvas to give it focus, and you can control the green ball with the arrow keys. It's actually kind of fun already, but only in FireFox. In Safari, the green ball seems to get stuck in one direction or another and magnatize to a wall. Is there a difference between how keyDown/Up events are dispatched in various browsers? That doesn't make any sense to me... but then, I don't know why I'm having this problem. If anyone can help, or has other questions for me, please let me know. Thanks much, //Matt
Re: [flexcoders] Re: Maven plugin outputDirectory is READONLY
I'll be getting back to it soon with some updates. Christian. On Mar 20, 2007, at 5:47 AM, romaindelfour wrote: Hello Here is what you want : http://repo1.maven.org/maven2/net/israfil/mojo/maven-flex2-plugin/ 1.0-alpha-2/ I did it. I'm trying to patch it for my needs. Hope it helps you Regards christian gruber + [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023 process coach and architect + ISRAFIL CONSULTING SERVICES
[flexcoders] Re: FlexBuilder Project Layout Help - add'ntl info
This is the message I get from FB when I try to create a new workspace: C:\Projects\ProjA overlaps the workspace location: C:\Projects\ProjA However, ProjA was previously deleted. --- In flexcoders@yahoogroups.com, Roscoe P Coltrane [EMAIL PROTECTED] wrote: Where does FB keep information about your workspaces? The reason I am wondering is because I have deleted my FB workspace from the file system but when I try to recreate it in FB, FB tells me the work space would overlap. It still thinks the old workspace is around. Maybe someone could tell me where to look to fix this : ) Thanks, Ros
[flexcoders] Dimension limit on Sprite or Displayobject?
If a have a sprite and i draw a rectangle of more then 65535, all then content is repeated. (not working example) public class UserViewEntry extends Sprite { public function UserViewEntry(entryData:EntryData){ //create ONE label and add it this.addChild(label) label.x=0//be sure to move to 0 this.graphics.drawRect(0,0,10,20); } public function click():void{ //why the label is visible in position 0, 65535, 131070... this.x+=65535 } }
[flexcoders] Re: Maven plugin outputDirectory is READONLY
Thanks for the reply, Christian. Great plugin, BTW. I wanted to get access to the sources with the eclipse .project files so I can alter it to enable changing the default directory, but the SVN access is not working. Are going going to fix access to that? Thanks again, Frank P.S. If you need help, I have experience writing Maven plugins. I was the original co-author of the JIBX maven plugin before I handed it over to the current maintainer. --- In flexcoders@yahoogroups.com, Christian Gruber [EMAIL PROTECTED] wrote: I'll be getting back to it soon with some updates. Christian. On Mar 20, 2007, at 5:47 AM, romaindelfour wrote: Hello Here is what you want : http://repo1.maven.org/maven2/net/israfil/mojo/maven-flex2-plugin/ 1.0-alpha-2/ I did it. I'm trying to patch it for my needs. Hope it helps you Regards christian gruber + [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023 process coach and architect + ISRAFIL CONSULTING SERVICES
Re: [flexcoders] amfphp problem - making more than 1 call at the same time :: fixed
i've migrated from amfphp1.2 to amfphp1.9beta2 and adodb to PDO in the server side and the problem is fixed... - Original Message From: Yiðit Boyar [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, March 19, 2007 10:28:09 PM Subject: [flexcoders] amfphp problem - making more than 1 call at the same time hi all; i'm using amfphp1.2-cairngoru m. (and postgres to store data) when i try to call 2 or more service calls at the same time; none of them can succeed; but if i call them one after another; there is no problem... what can cause this error ? or is this an error or a property of amfphp ? (actually ; there was not such a problem in my old projects ) --yigit Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a { text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc { background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o {font-size:0;} .MsoNormal { margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq {margin:4;} -- Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/
[flexcoders] Re: WebService Fault Handling - Flash Player 9 Update
Hello, Thank you for the response. A malformed WSDL string set in the WebService will cause a 404 with the following error, that does get passed to the FlashPlayer: Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL. Is it only Faults - 500, that won't get passed to the FlashPlayer when run without a proxy? Is it realistic to expect that this issue will get addressed in the short-term? Thank you, Paul --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Unfortunately we cannot fix this without support from the browser vendors. We are in discussions with them to try to have the right information accessible to plugins in some of their next versions. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of paulwelling Sent: Tuesday, March 20, 2007 8:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] WebService Fault Handling - Flash Player 9 Update Hello, I just examined the latest FP9 Update Fixed Issues web page, and see no mention of the WebService Fault Handling Issue (fault body not passed to player) that has been discussed many times here... This is a really big issue for people not using a proxy, and I'm surprised that more of us haven't asked Adobe for this to be a priority fix, or at least come up with a real work around. Can someone tell me when this will be addressed..? Thanks, Paul
Re: [flexcoders] Storing Dates Times in VO's
thanks for the advice. I completely agree that I need to store them as dates. Unfortunately, my problem seems to be how to do that from the PHP end of things. As I understand it, becuase PHP is not a typed language, AMFPHP tries to guess as what the type is. Unfortunately, I can't figure out how to force it to see a date type. It sees anything I send it as a string or number (UTC). Any suggestions from AMFPHP coders out there?? In the meantime here is what I am going to try: in PHP: send a VO with class myDate(){ public phpDate; // as a string } in FLEX: public class myDate(){ public phpDate:String; public function get flexDate():Date{ return new Date(phpDate); //parse PHP date (not sure how best to do this yet) } public function set flexDate(value:Date):void{ this.phpDate = value.toString; //or something like this... } } Hopefully this will work and be as clean as I can make it until I figure out how to return Date types from AMFPHP. Thanks, Kevin On Mar 20, 2007, at 8:20 AM, Brian Dunphy wrote: I would store it in a format that both PHP and Flex understand and can manipulate (i.e. epoch milliseconds). That way you can convert it to either a PHP date object or a Flex date object for convenience when you need to. Cheers, Brian On 3/20/07, Sam Shrefler [EMAIL PROTECTED] wrote: Kevin: I dont' use AMFPHP so I can't specifically help you with that situation, but to your first question: I would recommend figuring out a way to get your PHP DateTypes to automatically transfer to Date type's in Flex. I went down both roads (Date and String in flex) and found that there is a Date Type in Flex for a reason. It makes your life easier when dealing with Dates, especially comparing, sorting and performing Date arithmetic. So my recommendation would be to make the extra effort to get your Object to transfer correctly typed properties... Sam On 19 Mar 2007 17:51:09 -0700, Kevin [EMAIL PROTECTED] wrote: Should Dates Times be stored as Strings in Flex VO's? If not, what is the proper way to assign a value from the server (which generally comes in as a string) to a Date type in a Flex VO? I have been struggling with this. I am using AMFPHP and mapping my PHP objects to Flex for calls returned from the server, however, my date fields are not mapping. Does a setter function get call when you are doing VO mapping?? Thanks for the help. Thanks, Kevin -- Brian Dunphy
RE: [flexcoders] Dimension limit on Sprite or Displayobject?
You have to stay within 2880 pixels. http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14437 It is one of the reasons why the list classes virtualize the rows. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nxzone Sent: Tuesday, March 20, 2007 12:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Dimension limit on Sprite or Displayobject? If a have a sprite and i draw a rectangle of more then 65535, all then content is repeated. (not working example) public class UserViewEntry extends Sprite { public function UserViewEntry(entryData:EntryData){ //create ONE label and add it this.addChild(label) label.x=0//be sure to move to 0 this.graphics.drawRect(0,0,10,20); } public function click():void{ //why the label is visible in position 0, 65535, 131070... this.x+=65535 } }
[flexcoders] Event Dispatching through more than one component
I'm still messing around with custom events. If I have a popup embedded within another popup and want to dispatch an event from the top-most component down to the parent application, do I have to dispatch it to the first popup, and then redispatch the same event to the parent app? Is there any way to dispatch an event, but have it automatically go through all components down to the root? Obviously I've tried, but events seems to stop at the parent component, and they are not automatically delivered to their parent's parent, etc. What I'm thinking of doing instead is having each popup send a message to the root to open other embedded popups, so that they are ALL created from the root application rather than the popup. In essence, a custom popup manager. But I'm still curious if there's a way around the above scenario. Thanks, - Chris
[flexcoders] Re: Apollo (Should Adobe Keep the Name)
So funny, haha! --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: I must be old - I was thinking where I'd heard of Apollo before (besides mythology and the space program) and I remembered there used to be a range of unix servers called Apollo. Now I've completely lost 95% of this list.. OK, mind barf is now over.. Paul - Original Message - From: Mike Chambers [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 18, 2007 6:24 PM Subject: Re: [flexcoders] Re: Apollo (Should Adobe Keep the Name) Yes. We also really like the Apollo name, but for various reasons we cannot use it as the final name. Apollo is just a code name, and will not be the final name. mike chambers [EMAIL PROTECTED] Brendan Meutzner wrote: So Rich, I think this poll/campaign is unfortunately going to futile. Although they're still keeping mum about the final name, Kevin Lynch assured the attendees at Apollo Camp last night that the name was 'very cool' I guess we just need to stay tuned... Brendan -- 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
Re: [flexcoders] Event Dispatching through more than one component
It doesn't happen automatically. You need to set this up, but it's not hard to do. the thing about popups is that they act essentially like their own application. so they don't normally pass events outside of the popup window. events originate and terminate with the popup. so for example, if you have parent application | popup #1 | popup #2 dispatch the event in popup #2 and listen for it in popup #1. in popup #2 you would do a dispatchEvent(new Event(myCustomEventPopUp2)) and in popup #1 in the same location that you generate/ create popup#2 you would put an event listener on popup #2. ie: popupObj.addEventListener(myCustomEventPopUp2,myPopUp2Function) then in your function: function myPopUp2Function(event){ dispatchEvent(event) } Then in your parent app, you would put in the same kind of listener as you had in the first popup: ie: popupObj.addEventListener(myCustomEventPopUp2,myPopUp2Function) It's a little round about, but it will get the job done. unfortunately, flex doesn't handle this sort of event handling. Hope that helps. Jon Hirschi - Original Message From: qnotemedia [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, March 20, 2007 1:21:29 PM Subject: [flexcoders] Event Dispatching through more than one component I'm still messing around with custom events. If I have a popup embedded within another popup and want to dispatch an event from the top-most component down to the parent application, do I have to dispatch it to the first popup, and then redispatch the same event to the parent app? Is there any way to dispatch an event, but have it automatically go through all components down to the root? Obviously I've tried, but events seems to stop at the parent component, and they are not automatically delivered to their parent's parent, etc. What I'm thinking of doing instead is having each popup send a message to the root to open other embedded popups, so that they are ALL created from the root application rather than the popup. In essence, a custom popup manager. But I'm still curious if there's a way around the above scenario. Thanks, - Chris Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html
[flexcoders] Re: Event Dispatching through more than one component
Have you tried setting bubbles to true on your event? You should be able to bubble the event and it will get up to the systemManager where it can be handled by your app. --- In flexcoders@yahoogroups.com, Jon Hirschi [EMAIL PROTECTED] wrote: It doesn't happen automatically. You need to set this up, but it's not hard to do. the thing about popups is that they act essentially like their own application. so they don't normally pass events outside of the popup window. events originate and terminate with the popup. so for example, if you have parent application | popup #1 | popup #2 dispatch the event in popup #2 and listen for it in popup #1. in popup #2 you would do a dispatchEvent(new Event(myCustomEventPopUp2)) and in popup #1 in the same location that you generate/ create popup#2 you would put an event listener on popup #2. ie: popupObj.addEventListener(myCustomEventPopUp2,myPopUp2Function) then in your function: function myPopUp2Function(event){ dispatchEvent(event) } Then in your parent app, you would put in the same kind of listener as you had in the first popup: ie: popupObj.addEventListener(myCustomEventPopUp2,myPopUp2Function) It's a little round about, but it will get the job done. unfortunately, flex doesn't handle this sort of event handling. Hope that helps. Jon Hirschi - Original Message From: qnotemedia [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, March 20, 2007 1:21:29 PM Subject: [flexcoders] Event Dispatching through more than one component I'm still messing around with custom events. If I have a popup embedded within another popup and want to dispatch an event from the top-most component down to the parent application, do I have to dispatch it to the first popup, and then redispatch the same event to the parent app? Is there any way to dispatch an event, but have it automatically go through all components down to the root? Obviously I've tried, but events seems to stop at the parent component, and they are not automatically delivered to their parent's parent, etc. What I'm thinking of doing instead is having each popup send a message to the root to open other embedded popups, so that they are ALL created from the root application rather than the popup. In essence, a custom popup manager. But I'm still curious if there's a way around the above scenario. Thanks, - Chris Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html
Re: [flexcoders] Re: Apollo (Should Adobe Keep the Name)
The beta names are always cooler than the shipping names anyhow. I totally understand, they cannot sell chambants or big electric cats but they are still kinda fun :P Impudent1 LeapFrog Productions
RE: [flexcoders] Re: Event Dispatching through more than one component
Each popup is parented by the systemManager so it won't bubble from one popup to the next. However, each popup can listen to the systemManager for the event to bubble to it, or listen in capture phase so you don't have to use bubbling. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul DeCoursey Sent: Tuesday, March 20, 2007 1:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Event Dispatching through more than one component Have you tried setting bubbles to true on your event? You should be able to bubble the event and it will get up to the systemManager where it can be handled by your app. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jon Hirschi [EMAIL PROTECTED] wrote: It doesn't happen automatically. You need to set this up, but it's not hard to do. the thing about popups is that they act essentially like their own application. so they don't normally pass events outside of the popup window. events originate and terminate with the popup. so for example, if you have parent application | popup #1 | popup #2 dispatch the event in popup #2 and listen for it in popup #1. in popup #2 you would do a dispatchEvent(new Event(myCustomEventPopUp2)) and in popup #1 in the same location that you generate/ create popup#2 you would put an event listener on popup #2. ie: popupObj.addEventListener(myCustomEventPopUp2,myPopUp2Function) then in your function: function myPopUp2Function(event) { dispatchEvent(event) } Then in your parent app, you would put in the same kind of listener as you had in the first popup: ie: popupObj.addEventListener(myCustomEventPopUp2,myPopUp2Function) It's a little round about, but it will get the job done. unfortunately, flex doesn't handle this sort of event handling. Hope that helps. Jon Hirschi - Original Message From: qnotemedia [EMAIL PROTECTED] To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Tuesday, March 20, 2007 1:21:29 PM Subject: [flexcoders] Event Dispatching through more than one component I'm still messing around with custom events. If I have a popup embedded within another popup and want to dispatch an event from the top-most component down to the parent application, do I have to dispatch it to the first popup, and then redispatch the same event to the parent app? Is there any way to dispatch an event, but have it automatically go through all components down to the root? Obviously I've tried, but events seems to stop at the parent component, and they are not automatically delivered to their parent's parent, etc. What I'm thinking of doing instead is having each popup send a message to the root to open other embedded popups, so that they are ALL created from the root application rather than the popup. In essence, a custom popup manager. But I'm still curious if there's a way around the above scenario. Thanks, - Chris __ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html http://autos.yahoo.com/new_cars.html
[flexcoders] Using Flex to extract a phrase from a text file
I have one text file with about 100 lines of random text. Somewhere on the file, there is an URL for a SWF. The url has the .swf word in it, and it's between 's . The format of the file can change over time, and there is only one SWF file on the text file. I need to find the best algorithm to extract the URL from the text file. Any suggestions? Thanks, João Saleiro
RE: [flexcoders] Using Flex to extract a phrase from a text file
How about: var pos:int = randomText.indexOf('.swf'); var url:String = randomText.substring(0, pos + 4); pos = url.lastIndexOf(''); url = url.substring(pos + 1); From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João Sent: Tuesday, March 20, 2007 2:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using Flex to extract a phrase from a text file I have one text file with about 100 lines of random text. Somewhere on the file, there is an URL for a SWF. The url has the .swf word in it, and it's between 's . The format of the file can change over time, and there is only one SWF file on the text file. I need to find the best algorithm to extract the URL from the text file. Any suggestions? Thanks, João Saleiro
[flexcoders] ChangeWatcher question
Flex community, Would someone be willing to help out with the following two questions I have. 1. I need to keep track of a number of properties (about 20 per object) of a large number of objects (hundreds to thousand range). I can either use an army of ChangeWatcher instances or add some code to the set method for each of these properties. I like the idea of using independent changewatchers but I am not sure what the performance/memory penalty is going to be. Has anyone some guidance? 2. Is it possible to figure out, given an object instance and a property name, whether a ChangeWatcher is active? If so, how would that work? Or do I have to keep track of all ChangeWatcher.watch instances that get created. Thanks! Peter
Re: [flexcoders] Re: Maven plugin outputDirectory is READONLY
Yeah. Others have asked. I don't have a public svn repo right now. I'm going to try to set one up, but my current project has me pretty locked up. As soon as I can do, I'll get that going so others can contribute, patch their own, yadda yadda. Sorry for the delay on this. Christian. On Mar 20, 2007, at 3:59 PM, Frank wrote: Thanks for the reply, Christian. Great plugin, BTW. I wanted to get access to the sources with the eclipse .project files so I can alter it to enable changing the default directory, but the SVN access is not working. Are going going to fix access to that? Thanks again, Frank P.S. If you need help, I have experience writing Maven plugins. I was the original co-author of the JIBX maven plugin before I handed it over to the current maintainer. --- In flexcoders@yahoogroups.com, Christian Gruber [EMAIL PROTECTED] wrote: I'll be getting back to it soon with some updates. Christian. On Mar 20, 2007, at 5:47 AM, romaindelfour wrote: Hello Here is what you want : http://repo1.maven.org/maven2/net/israfil/mojo/maven-flex2-plugin/ 1.0-alpha-2/ I did it. I'm trying to patch it for my needs. Hope it helps you Regards christian gruber + [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023 process coach and architect + ISRAFIL CONSULTING SERVICES christian gruber + [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023 process coach and architect + ISRAFIL CONSULTING SERVICES