[flexcoders] Webservice troubles
Dear all, I'm experiencing a strange problem. My backend is SOAP based, where the Webservices are written in PHP5, connecting to an Oracle9. On my development system (Windows XP, Tomcat, Apache2 PHP5) everything works like a charm. On the production system, (Linux, Tomcat, Apache2 PHP5) none of the Webservices work. I always get the error message: Faulty WSDL format: Definitions must be the first element in a WSDL document. I compared all generated WSDL files and they are exactly the same on both systems. But why does Flex on Linux complain about the WSDL format? Any help or suggestions are highly appreciated! Thanks in advance Reto -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Webservice troubles (solved)
Hi again, I'm experiencing a strange problem. My backend is SOAP based, where the Webservices are written in PHP5, connecting to an Oracle9. Problem solved, it was not Flex related. It was a mix up in the WSDL Cache... Sorry for the inconvenience... CU Reto -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Instance variables and functions may not be used to initialize static variables.
Hi, I have a most puzzling problem (at least to me). I get the followinf error Instance variables and functions may not be used to initialize static variables. when I try to extend the mx.controls.Label class in an AS file under a package but not when it is at the root. To explain: I have a brand new Flex web app, nothing else in it other than the files in question. My app has one mxml file: \mystuff\main.mxml mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* xmlns:greek=alpha.* mx:Panel width=400 height=400 Delta/ greek:Beta/ /mx:Panel /mx:Application and two classes: \mystuff\WEB-INF\flex\user_classes\Delta.as import mx.controls.Label; class Delta extends mx.controls.Label { public function Delta() { text = Delta; } } \mystuff\WEB-INF\flex\user_classes\alpha\Beta.as import mx.controls.Label; class alpha.Beta extends mx.controls.Label { public function Beta() { text = Beta; } } My app works with just main.mxml and Delta.as but as soon as I include Beta.as I get the aforementioned error. As you can see the classes are essentially identical other than the package declaration and their respective locations. As far as I can tell the namespace declarations in the mxml file are correct. Can anybody shed some light on what the problem is? Oh and my flex-config.xml contains the section compiler ... !-- path locations of actionscript class files -- actionscript-classpath path-element/WEB-INF/flex/user_classes/path-element /actionscript-classpath ... /compiler Regards, Alan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex 2.0
We could start a pool? closest wins the pot?On 7/20/05, Scott Barnes [EMAIL PROTECTED] wrote: I have it on a good source that it will be released on July 10th, 2009at 3pm. This same source also told me that Yahoo stock would crashwithin the first day of it being listed and it was a throwawaytechnology - as Lycos is much more lucrative. :)I think it would be too early to speculate on timeframe/releases andthose that would know probably can't even publically say rekon itwould be next qtr or something like that.Will Flex be released this time next year: Outlook not so good (pulled from my 8Ball)On 7/21/05, jwc_wensan [EMAIL PROTECTED] wrote: To All: Anyone have any idea, speculation, guess, etc. on release timeframe of Flex 2.0 ? Thanks in advance, Jack -- 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--Regards,Scott Barneshttp://www.mossyblog.com--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Instance variables and functions may not be used to initialize static variables.
Try changing the namespace of your Beta class... it's possible it's choking on the alpha since it's a property on UIComponent. *If memory servers* On 7/21/05, alandouglasgray [EMAIL PROTECTED] wrote: Hi,I have a most puzzling problem (at least to me).I get the followinf error Instance variables and functions may not beused to initialize static variables. when I try to extend themx.controls.Label class in an AS file under a package but not when itis at the root.To explain: I have a brand new Flex web app, nothingelse in it other than the files in question.My app has one mxml file:\mystuff\main.mxml mx:Application xmlns:mx=http://www.macromedia.com/2003/mxmlxmlns=* xmlns:greek=alpha.*mx:Panel width=400 height=400 Delta/greek:Beta//mx:Panel/mx:Applicationand two classes:\mystuff\WEB-INF\flex\user_classes\Delta.asimport mx.controls.Label;class Delta extends mx.controls.Label{public function Delta() {text = Delta;}}\mystuff\WEB-INF\flex\user_classes\alpha\Beta.asimport mx.controls.Label;class alpha.Beta extends mx.controls.Label{public function Beta() {text = Beta;}}My app works with just main.mxml and Delta.as but as soon as I includeBeta.as I get the aforementioned error.As you can see the classesare essentially identical other than the package declaration and theirrespective locations.As far as I can tell the namespace declarations in the mxml file are correct.Can anybody shed some light on what the problem is?Oh and my flex-config.xml contains the sectioncompiler ...!-- path locations of actionscript class files -- actionscript-classpathpath-element/WEB-INF/flex/user_classes/path-element/actionscript-classpath .../compilerRegards, Alan--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Flex CPU License(s)
Renuan: Thanks for taking the time. Jack --- In flexcoders@yahoogroups.com, kaibabsowats [EMAIL PROTECTED] wrote: The number was a at least number, so it was definetely low. I'll take a stab and trying to explain all the depends, but I might be off on some of these. Performance hit - Flex compiling the MXML into SWF files, there is caching mechanisms built in, dont know the extent how well the caching works. This process is usaully CPU then Memory intensive. This is done when in the JVM so your bottleneck here is the JVM used (IBM, Sun, BEA Jrockit, etc... ). Backend Data Tier ( WebServices/Remoting etc... ) - This depends on what you end up using, could be Java, .Net, or ColdFusion (even PHP or Perl). Assuming you run any of these on the same machine you'll have performance in CPU or Memory, where these bottlenecks follow a typical application bottleneck. These service's performance is not directly related to Flex, unless you are using Flex's sandbox policy then there would be some overhead placed on the JVM again to handle each request. As for benchmarking there are software programs out there that can replay http requests and simulate lots of people hitting your servers. But its still hard to get good numbers unless you simulate your real deployment environment as close as possible. One thing going for Flex is the idea that instead of having alot of small requests hitting your server over a period of time, which eats up resources, you have one medium/big hit at first with little interaction with the server after (of course depending on if the application is getting real-time data or not). You have a situation where they hit it less times over a period of time thus off setting the time server resource you give up for running Flex. The disclaimer is that it just depends. Depends on size of the SWF's, complexity of MXML Flex compiling, data being transfered, interaction of user (does the app have real time data ), etc... In my case I am doing online video training and my bandwidth is going to be a bigger issue then Flex performance for the number of projected users. Its really hard to say what a specific server can do without knowing the extent of how its going to be used and the application being built. Renaun --- In flexcoders@yahoogroups.com, jwc_wensan [EMAIL PROTECTED] wrote: Renaun: I appreciate your input. That number seems low. What do you see is the bottleneck? Flex, CPU, RAM, etc.? Without going live, any suggestions on how to benchmark? Thanks, Jack --- In flexcoders@yahoogroups.com, kaibabsowats [EMAIL PROTECTED] wrote: I won't give you definite answer as it does really depend, but give you a at least number. With Java the JVM has a 1.5Gb ram limitation (unless using Sun boxes or 64 bit correct me if I am wrong). So I usually try and get 2Gb of ram minimum. This allows the JVM use its limit if needed and have stuff left over for normal OS and Database usage. The number I can give is that you can definitely handle a couple hundred simultaneous users on a server like that. To spec out anything more you need to benchmark the server with the actual application. I had a Dual 3.2Ghz Xeon 2Gb ram handle 1000-2000 simultaneous users for a Java application that was Memory intensive. It is pretty safe to say if you actually have a couple hundred simultaneous users you mostly likely have ten of thousand actual users. Of course there is no magic number but these are given as is and really should be benchmarked with the actual application. Renaun --- In flexcoders@yahoogroups.com, jwc_wensan [EMAIL PROTECTED] wrote: To All: Yesterday I made a post regarding trying to determine how many users a single server with one CPU could handle. I realize it depends and I did not define any type of application. I am trying to get some type of handle on what my costs will be regarding CPU licenses, servers, etc. So let me try again. Let's take the Flexstore as an example application. Based on this, can anyone shed some light as to how many users in an hour the server could adequately handle. Where will the bottleneck occur: Flex, server itself, database, etc. If an hour is not the right way to measure, then please offer any measurement you feel is correct. Server Configuration: Dell Server @ 3.8 GHz with 1 GB RAM JRUN4 Win 2000 Server 1 Flex license As Dave and others recommended, I will put the database on a separate server. I am not trying to tie anyone's hands here, just trying to get some perspective. Thanks in advance, Jack -- Flexcoders Mailing List FAQ:
[flexcoders] Passings args to an Alert.show() handler
I'm using Alert.show() to provide the user with a confirmation dialog before I make a method call to delete a user from the DB. Right now I have some code like this: mx.controls.Alert.show( Are you sure you want to delete this user?, Confirm Delete, mx.controls.Alert.YES | mx.controls.Alert.NO, this, deleteUser ); Is there any straightforward way to pass an argument to deleteUser? I could just let it look at a variable that's set in the component's scope but that seems messy to me. I'd much rather find a way to pass the userID right in. Thanks for your help! -Cliff -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] has anyone had problems setting media components volumes?
I'm loading an flv from an rtmp address (flashcom) and i'm trying to set the volume to zero. It's not working. I'm setting the volume to zero in the mxml. And I'm setting the volume to zero programatically before I play the video. Setting it in mxml doesn't seem to affect the media controller at all. When I set it in AS I can see the volume control on the controller move to zero. But the volume of the video is not affected. HOWEVER when I set the volume of the video manually it works. The volume is muted and stays muted for when I play all other videos. Anyone else have this problem? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] migrating to tomcat
Hey everyone, gotta quick question about migrating from jrun to tomcat? Which jars do i need, there's a lot of them , and i'm not sure which ones I need. Anything else I need to know? Basically what I'm trying to do is run a struts app using a Flex front end. i don't know jrun that well ,and would prefer working with a server I know. Thanks everyone. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] migrating to tomcat
I've used the following recipe with success; http://www.impossibilities.com/blog/entry_blog-145.php As I am running freebsd with apache2 and not the Mac OS I had to install the - Tomcat, Apache, JK2 Connector in order for Apache to serve up tomcat applications. (freebsd port -- your millage may vary) Port: mod_jk2-apache2-2.0.2 Path: /usr/ports/www/mod_jk2-apache2 Info: Apache JK2 module for connecting to Tomcat using AJP1X Maint: [EMAIL PROTECTED] B-deps: apache-2.0.50_3 autoconf-2.53_3 automake-1.5_2,1 expat-1.95.8 gettext-0.13.1_1 gmake-3.80_2 libiconv-1.9.2_1 libtool-1.3.5_2 m4-1.4.1 perl-5.8.5 R-deps: apache-2.0.50_3 expat-1.95.8 libiconv-1.9.2_1 perl-5.8.5 regards, Cary. Sauro, Nick wrote: Hey everyone, gotta quick question about migrating from jrun to tomcat? Which jars do i need, there's a lot of them , and i'm not sure which ones I need. Anything else I need to know? Basically what I'm trying to do is run a struts app using a Flex front end. i don't know jrun that well ,and would prefer working with a server I know. Thanks everyone. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: has anyone had problems setting media components volumes?
Are you using MediaPlayer or MediaController with MediaDisplay? You can try to set the volume level after you have loaded and started playing the media. I use MediaController and MediaDisplay, I can set the volume correctly after the videos have been loaded and then play them. But I am not using a rtmp address. Renaun --- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] wrote: I'm loading an flv from an rtmp address (flashcom) and i'm trying to set the volume to zero. It's not working. I'm setting the volume to zero in the mxml. And I'm setting the volume to zero programatically before I play the video. Setting it in mxml doesn't seem to affect the media controller at all. When I set it in AS I can see the volume control on the controller move to zero. But the volume of the video is not affected. HOWEVER when I set the volume of the video manually it works. The volume is muted and stays muted for when I play all other videos. Anyone else have this problem? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: has anyone had problems setting media components volumes?
MediaDisplay with a Controller I'll try setting it after it's playing... and report back. Thanks for the idea.On 7/21/05, kaibabsowats [EMAIL PROTECTED] wrote: rtmp address. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Looking for a consistent way to close the current browser window in Flex
Is there a better way of doing this? Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff Steiner Sent: Tuesday, July 19, 2005 9:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Looking for a consistent way to close the current browser window in Flex I am looking to close a window after a Flex app loads in it. I am using the following function it seems to close every now and then but not all the time. function closeWindow() { getURL('_javascript_:window.close()'); } Anyone have a sure fire way of doing this? Thanks, Jeff Founder Flex Authority http://www.flexauthority.com We are actively seeking contributors for the site. Have a sample that you want to share with the world? Send it to us! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Problem calling HTTPService under Sun One WebServer
I've run the tcpmon tool shipped with Axis to try and trace the comms a little more. One 'odd' behaviour is that if I directly hit the site, I always get the spinning cursor (as previously stated). If I add tcpmon into the mix, the flex clients fault handler is fired: A fault occurred: Could not retrieve Anyway, as requested, this is the comms trace from tcpmon. Again, the only differences from the (working) Tomcat deployment is the fact that the server using the Header 'Transfer-encoding: chunked', whereas tomcat is explicitly stating the 'Content-Length'. REQUEST BLOCK - start === GET /mtx-claimx/GetData.do?id=userinfouserName=asimmons HTTP/1.1 Host: 10.1.2.107:8088 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: JSESSIONID=90AD50658DDABC21CB7AEB8E1F23FABE GET /mtx-claimx/FormData.do?TYPE=GetCurrencyTargetName=GET_CURRENCY HTTP/1.1 Host: walsun2.centervilletech.com:8088 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: JSESSIONID=90AD50658DDABC21CB7AEB8E1F23FABE GET /crossdomain.xml HTTP/1.1 Host: walsun2.centervilletech.com:8088 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive === REQUEST BLOCK - end RESPONSE BLOCK - start === HTTP/1.1 200 OK Server: Sun-ONE-Web-Server/6.1 Date: Thu, 21 Jul 2005 15:33:01 GMT Content-type: text/xml; charset=UTF-8 Transfer-encoding: chunked 0083 ?xml version=1.0 encoding=UTF-8? objectsobject uri=ldap:///asimmons;usernameasimmons/username/object/objects 0 HTTP/1.1 200 OK Server: Sun-ONE-Web-Server/6.1 Date: Thu, 21 Jul 2005 15:33:01 GMT Content-type: text/xml; charset=UTF-8 Transfer-encoding: chunked 06b8 ?xml version=1.0 encoding=UTF-8? CurrencyListCurrencyCurrencyCodeUSD/CurrencyCodeExchangeRate1/ExchangeRateLocationUnited States/Location/CurrencyCurrencyCurrencyCodeAUD/CurrencyCodeExchangeRate1.2/ExchangeRateLocationAustralia/Location/CurrencyCurrencyCurrencyCodeBEF/CurrencyCodeExchangeRate31.1678/ExchangeRateLocationBelgium/Location/CurrencyCurrencyCurrencyCodeCAD/CurrencyCodeExchangeRate1.2166/ExchangeRateLocationCanada/Location/CurrencyCurrencyCurrencyCodeDKK/CurrencyCodeExchangeRate5.7641/ExchangeRateLocationDenmark/Location/CurrencyCurrencyCurrencyCodeEUR/CurrencyCodeExchangeRate0.7726/ExchangeRateLocationEuropean Union/Location/CurrencyCurrencyCurrencyCodeFIM/CurrencyCodeExchangeRate4.5938/ExchangeRateLocationFinland/Location/CurrencyCurrencyCurrencyCodeDEM/CurrencyCodeExchangeRate1.5111/ExchangeRateLocationGermany/Location/CurrencyCurrencyCurrencyCodeHKD/CurrencyCodeExchangeRate7.7998/ExchangeRateLocationHong Kong/Location/CurrencyCurrencyCurrencyCodeJPY/CurrencyCodeExchangeRate107.3486/ExchangeRateLocationJapan/Location/CurrencyCurrencyCurrencyCodeMXN/CurrencyCodeExchangeRate11.2334/ExchangeRateLocationMexico/Location/CurrencyCurrencyCurrencyCodeRUB/CurrencyCodeExchangeRate27.8521/ExchangeRateLocationRussia/Location/CurrencyCurrencyCurrencyCodeGBP/CurrencyCodeExchangeRate0.5317/ExchangeRateLocationUnited Kingdom/Location/CurrencyCurrencyCurrencyCodeATS/CurrencyCodeExchangeRate10.6316/ExchangeRateLocationAustria/Location/Currency/CurrencyList 0 HTTP/1.1 404 Not found Server: Sun-ONE-Web-Server/6.1 Date: Thu, 21 Jul 2005 15:33:01 GMT Content-length: 292 Content-type: text/html HEADMETA HTTP-EQUIV=Content-Type CONTENT=text/html;charset=ISO-8859-1TITLENot Found/TITLE/HEAD H1Not Found/H1 The requested object does not exist on this server. The link you followed is either outdated, inaccurate, or the server has been instructed not to let you have it. === RESPONSE BLOCK - end --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Can you try running a sniffer between your client and the proxy? Looks like you're seeing what the proxy sees, better see what the client is actually seeing too. Sniffer.exe might come if you do the integrated
Re: [flexcoders] Looking for a consistent way to close the current browser window in Flex
Define better. To me, I'd use the _javascript_ Flash Integration Kit that MM put out, and call proxy.call("closeWindow");. Integrates nicer into code than getURL, works on more browsers, and you can get a callback if need be. http://www.osflash.org/doku.php?id=flashjs - Original Message - From: Jeff Steiner To: flexcoders@yahoogroups.com Sent: Thursday, July 21, 2005 11:49 AM Subject: RE: [flexcoders] Looking for a consistent way to close the current browser window in Flex Is there a better way of doing this? Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff SteinerSent: Tuesday, July 19, 2005 9:31 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Looking for a consistent way to close the current browser window in Flex I am looking to close a window after a Flex app loads in it. I am using the following function it seems to close every now and then but not all the time. function closeWindow() { getURL('_javascript_:window.close()'); } Anyone have a sure fire way of doing this? Thanks, Jeff Founder Flex Authority http://www.flexauthority.com We are actively seeking contributors for the site. Have a sample that you want to share with the world? Send it to us! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] IFBIN Begins...
Flexcoders, As I stated in an earlier post I was working on a big Flex project. We launched the IFBIN Service this morning and will soon launch the Flex By Example subscription. http://www.ifbin.com I have been working on a new company, IFBIN Networks. We provide software examples for learning and reuse for Flash and Flex. The service application is written using Flex/Python and provides licensed access to a growing library of Flash and Flex software. We are currently in development with Flex content and will be launching the Flex By Example products in the next month. Technically, the IFBIN Service is a proxy server with logic for code authentication and software installation. The files are requested through a Flex UI and installed to the local machine. If one byte of an example is modified in the original, the service will not install it. You are one click from installing a Flex application onto your server. The application talks with the local proxy server via XMLSocket allowing the Flex shell to be served from within Flash, Flex Builder, or within a Browser. It is a new model of integration and provides a seamless secure local/remote feature set. In regards to Flex by Example, we have some really great projects in development. We will be providing 100% example coverage of the base Flex MXML tags and AS along with many applications and frameworks. Regards, Ted ;) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Closing Title Popup with [Escape], works in Mozilla but not IE??
Excellent, hope this works! I help now so you guys can help each other in the future, a cheesy pay it forward kind of thing J From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint Modien Sent: Thursday, July 21, 2005 5:53 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Closing Title Popup with [Escape], works in Mozilla but not IE?? works on my IE... and i don't seem to be doing anything fancy... here's the code i run... on the TitleWindow i set the keyUp to the func mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml keyUp=this_keyUp() //here's the code 4 the func private function this_keyUp() { if (Key.getCode() == Key.ESCAPE) this.deletePopUp(); } Disclaimer: Matt Chotin has helped me with almost every problem I've posted here. *Thanks for that Matt* On 7/21/05, Matt Chotin [EMAIL PROTECTED] wrote: I'm not sure I've ever gotten IE to pass the escape key through to the Player unfortunately. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Allen Manning Sent: Wednesday, July 20, 2005 9:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Closing Title Popup with [Escape], works in Mozilla but not IE?? Hello Flexcoders, I can close the pop-up with the Escape key in Mozilla but not IE. Any ideas? Index.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:Script private function openPopup():Void { /* createPopUp(parent:MovieClip, class:Object [, modal:Boolean, initobj:Object,outsideEvents:Boolean]) : MovieClip */ var model:Boolean = true; var myWin_mc = mx.managers.PopUpManager.createPopUp(this,TitleWindow,model); //center of this mc myWin_mc.centerPopUp(); //Create the event handler to delete the pop up when closed var eventHandlerObj = new Object(); eventHandlerObj.click = function(event) { event.target.deletePopUp(); } //Register the event handler with the TitleWindow container. myWin_mc.addEventListener(click,eventHandlerObj); } /mx:Script mx:HBox mx:Button click=openPopup() label=Open/ /mx:HBox /mx:Application TitleWindow.mxml ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml title=Popup width=300 height=300 closeButton=true initialize=initKeyDown(); mx:Script private function initKeyDown():Void { var myListener:Object = new Object(); myListener. handleKeyDown); Key.addListener(myListener); } private function handleKeyDown (event) : Void { if (Key.isDown(Key.ESCAPE)) { this.deletePopUp(); Key.removeListener(handleKeyDown); } } /mx:Script mx:Label text=Hit the [ESCAPE] button to close./ /mx:TitleWindow Thanks, Allen http://www.prismix.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 Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.2 - Release Date: 19/07/2005 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex 2.0
You can imagine that Flex 2 will take advantage of new capabilities offered. Some of them are very much inspired by Flex customers to begin with! As for timing, we have nothing announced right now. But I think its safe to assume we will be making announcements (not releasing anything, just announcements) before the end of the year. Hows that for non-helpful J Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sjors Pals Sent: Thursday, July 21, 2005 6:01 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 2.0 ;) Can someone tell or Flex 2.0 will be using specific flash 8 features? Greets, Sjors Clint Modien wrote: We could start a pool? closest wins the pot? On 7/20/05, *Scott Barnes* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have it on a good source that it will be released on July 10th, 2009 at 3pm. This same source also told me that Yahoo stock would crash within the first day of it being listed and it was a throwaway technology - as Lycos is much more lucrative. :) I think it would be too early to speculate on timeframe/releases and those that would know probably can't even publically say rekon it would be next qtr or something like that. Will Flex be released this time next year: Outlook not so good (pulled from my 8Ball) On 7/21/05, jwc_wensan [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: To All: Anyone have any idea, speculation, guess, etc. on release timeframe of Flex 2.0 ? Thanks in advance, Jack -- 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 -- Regards, Scott Barnes http://www.mossyblog.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 http://groups.yahoo.com/group/flexcoders/ mailto:[EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Problem calling HTTPService under Sun One WebServer
Directly hitting the site I wonder if youre having a problem with no crossdomain.xml (you can see the request and the subsequent 404)? Do you have control over the source server, can you add a crossdomain.xml on there? If youre going through the proxy and the only difference is the chunked its worth finding out if you can disable it. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of colinblackmore Sent: Thursday, July 21, 2005 8:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Problem calling HTTPService under Sun One WebServer I've run the tcpmon tool shipped with Axis to try and trace the comms a little more. One 'odd' behaviour is that if I directly hit the site, I always get the spinning cursor (as previously stated). If I add tcpmon into the mix, the flex clients fault handler is fired: A fault occurred: Could not retrieve Anyway, as requested, this is the comms trace from tcpmon. Again, the only differences from the (working) Tomcat deployment is the fact that the server using the Header 'Transfer-encoding: chunked', whereas tomcat is explicitly stating the 'Content-Length'. REQUEST BLOCK - start === GET /mtx-claimx/GetData.do?id=userinfouserName=asimmons HTTP/1.1 Host: 10.1.2.107:8088 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: JSESSIONID=90AD50658DDABC21CB7AEB8E1F23FABE GET /mtx-claimx/FormData.do?TYPE=GetCurrencyTargetName=GET_CURRENCY HTTP/1.1 Host: walsun2.centervilletech.com:8088 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: JSESSIONID=90AD50658DDABC21CB7AEB8E1F23FABE GET /crossdomain.xml HTTP/1.1 Host: walsun2.centervilletech.com:8088 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive === REQUEST BLOCK - end RESPONSE BLOCK - start === HTTP/1.1 200 OK Server: Sun-ONE-Web-Server/6.1 Date: Thu, 21 Jul 2005 15:33:01 GMT Content-type: text/xml; charset=UTF-8 Transfer-encoding: chunked 0083 ?xml version=1.0 encoding=UTF-8? objectsobject uri=ldap:///asimmonsusernameasimmons/username/object/objects 0 HTTP/1.1 200 OK Server: Sun-ONE-Web-Server/6.1 Date: Thu, 21 Jul 2005 15:33:01 GMT Content-type: text/xml; charset=UTF-8 Transfer-encoding: chunked 06b8 ?xml version=1.0 encoding=UTF-8? CurrencyListCurrencyCurrencyCodeUSD/CurrencyCodeExchangeRate1/ExchangeRateLocationUnited States/Location/CurrencyCurrencyCurrencyCodeAUD/CurrencyCodeExchangeRate1.2/ExchangeRateLocationAustralia/Location/CurrencyCurrencyCurrencyCodeBEF/CurrencyCodeExchangeRate31.1678/ExchangeRateLocationBelgium/Location/CurrencyCurrencyCurrencyCodeCAD/CurrencyCodeExchangeRate1.2166/ExchangeRateLocationCanada/Location/CurrencyCurrencyCurrencyCodeDKK/CurrencyCodeExchangeRate5.7641/ExchangeRateLocationDenmark/Location/CurrencyCurrencyCurrencyCodeEUR/CurrencyCodeExchangeRate0.7726/ExchangeRateLocationEuropean Union/Location/CurrencyCurrencyCurrencyCodeFIM/CurrencyCodeExchangeRate4.5938/ExchangeRateLocationFinland/Location/CurrencyCurrencyCurrencyCodeDEM/CurrencyCodeExchangeRate1.5111/ExchangeRateLocationGermany/Location/CurrencyCurrencyCurrencyCodeHKD/CurrencyCodeExchangeRate7.7998/ExchangeRateLocationHong Kong/Location/CurrencyCurrencyCurrencyCodeJPY/CurrencyCodeExchangeRate107.3486/ExchangeRateLocationJapan/Location/CurrencyCurrencyCurrencyCodeMXN/CurrencyCodeExchangeRate11.2334/ExchangeRateLocationMexico/Location/CurrencyCurrencyCurrencyCodeRUB/CurrencyCodeExchangeRate27.8521/ExchangeRateLocationRussia/Location/CurrencyCurrencyCurrencyCodeGBP/CurrencyCodeExchangeRate0.5317/ExchangeRateLocationUnited Kingdom/Location/CurrencyCurrencyCurrencyCodeATS/CurrencyCodeExchangeRate10.6316/ExchangeRateLocationAustria/Location/Currency/CurrencyList 0 HTTP/1.1 404 Not found Server: Sun-ONE-Web-Server/6.1 Date: Thu, 21 Jul 2005 15:33:01 GMT Content-length: 292 Content-type: text/html HEADMETA HTTP-EQUIV=Content-Type
Re: [flexcoders] migrating to tomcat
should be as simple as this... 1. zip up the current dir that your webapp is in... 2. rename from yourFile.zip to yourFile.war 3. drop it in the Tomcat webapps dir that's how simple it is to migrate Flex from jrun to tomcat... I've done this I'm not really sure about struts though... On 7/21/05, Cary Newfeldt [EMAIL PROTECTED] wrote: I've used the following recipe with success; http://www.impossibilities.com/blog/entry_blog-145.php As I am running freebsd with apache2 and not the Mac OS I had to install the - Tomcat, Apache, JK2 Connector in order for Apache to serve up tomcat applications. (freebsd port -- your millage may vary) Port: mod_jk2-apache2-2.0.2 Path: /usr/ports/www/mod_jk2-apache2 Info: Apache JK2 module for connecting to Tomcat using AJP1X Maint: [EMAIL PROTECTED] B-deps: apache-2.0.50_3 autoconf-2.53_3 automake-1.5_2,1 expat-1.95.8 gettext-0.13.1_1 gmake-3.80_2 libiconv-1.9.2_1 libtool-1.3.5_2 m4-1.4.1 perl-5.8.5 R-deps: apache-2.0.50_3 expat-1.95.8 libiconv-1.9.2_1 perl-5.8.5 regards, Cary. Sauro, Nick wrote: Hey everyone, gotta quick question about migrating from jrun to tomcat? Which jars do i need, there's a lot of them , and i'm not sure which ones I need. Anything else I need to know? Basically what I'm trying to do is run a struts app using a Flex front end. i don't know jrun that well ,and would prefer working with a server I know. Thanks everyone. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: has anyone had problems setting media components volumes?
Here are some snippets from my AS code to make sure we are on the same page. var mcDisplay:MediaDisplay; var mcController:MediaController; // can be done in the mxml also mcDisplay.associateController( mcController ); // Later at the function where I know the FLV has been loaded mcDisplay.volume = 50; mcController.volume = 50; mcDisplay.play(); So I actually set the volume before hand and it works, but I dont know if the rtmp actually messes with stuff as it is sending more information. My knowledge of FCS is limited but I think the volume can be controlled on that end so the Media Components might act different because of receiving volume info from the rtmp stream, but again my knowledge is limited on this subject. Renaun --- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] wrote: MediaDisplay with a Controller I'll try setting it after it's playing... and report back. Thanks for the idea. On 7/21/05, kaibabsowats [EMAIL PROTECTED] wrote: rtmp address. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: How to use setTextFormat?(Text Editor)
The TextFormat needs to be in a MovieClip like a Canvas component. ?xml version=1.0 encoding=utf-8?mx:Application verticalGap=0 backgroundColor=#7D8FA8 xmlns:mx= http://www.macromedia.com/2003/mxml xmlns=* pageTitle=Dingen width=690 height=484 mx:Script ![CDATA[ public function start() { var x_num = my_mc.mouseX; var y_num = my_mc.mouseY; var depth_num = my_mc.getNextHighestDepth(); var name_str = myOriginalInstanceName + depth_num; my_mc.createTextField(name_str, depth_num,x_num, y_num, 10, 20); var txt = my_mc[name_str]; txt.autoSize = left; txt.text = great1!!; var my_fmt:TextFormat = new TextFormat(); my_fmt.color = 0xFF; my_fmt.underline = true; txt.setTextFormat(0,2,my_fmt); }; ]] /mx:Script mx:Canvas width=300 height=200 id=my_mc mouseDown=start() backgroundColor=#FF/mx:Canvas /mx:Application On 7/15/05, Bruno Martins [EMAIL PROTECTED] wrote: I'd like build a Text Editor but the TextArea don't accept setTextFormat method. I try to create a TextField end bind the htmlText property to TextArea.htmlText and apply the TextFormat in the TextField component. But this simple example returns: undefined var my_txt:TextField = new TextField();my_txt.text = teste;alert( + my_txt.text); Thanks, Bruno Martins. Sorry about my english. This example works in flash: var my_fmt:TextFormat = new TextFormat();my_fmt.bold = true;my_fmt.font = Arial;my_fmt.color = 0xFF9900; var my_fmt2:TextFormat = new TextFormat();my_fmt2.bold = false;my_fmt2.font = Arial;my_fmt2.color = 0xFF; this.createTextField(my_txt, 10999, 0, 0, 400, 300);my_txt.wordWrap = true;my_txt.multiline = true;my_txt.border = true;my_txt.type = input;my_txt.setNewTextFormat(my_fmt); my_txt.text = Oranges are a good source of vitamin C;my_txt.html = true;trace( + my_txt.htmlText) my_txt.setTextFormat(0,7,my_fmt2); trace( + my_txt.htmlText) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Odd behaviors with List controls
Sorry it took so long to respond to this, you may have addressed some of these issues already: 1) I believe the extra row is actually just leftover space in the list. We dont show partial rows unless you explicitly set a count that would cause the row to appear. 2) I think youve fixed this on the site as it is now? 3) This resizing might be a bug in our List class. The extra row is simply because we have a minimum number of cells that need to get rendered to allow scrolling with variableRowHeight. 4) Since youve added more content since your post I cant reproduce this. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Devin Holloway Sent: Friday, July 15, 2005 9:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Odd behaviors with List controls I've been noticing a lot of odd behavior with the List and TileList controls. The application I'm working on is located at: http://default.devinholloway.com/flex/capoeira/ You should see the list of titles on the left hand side. If you scroll the product list all the way down, you'll see an empty row. Every time I use a list-based control, it always produces at least one extra empty row at the bottom. Is this expected behavior? Issue #2: Keep the product list scrolled to the bottom to where the top product for both tilelist columns are not visible (my browser is maximized at 1024x768), and then use the NumericStepper pager control to jump to the second page of results. When that loads, the top product for each column should be using the no image book cover. But instead, they're using the same two images for the top two products on the first page of results, only resized to same height as the no image icon. Now scroll to the bottom of the second page, and the last two products might also display the same two images rather then the no image icon. This is fairly consistent behavoir when flipping through pages. Issue #3: Go back to the first page and select the first product. On the right hand side, select the customer reviews accordion pane. This list displaying these reviews have variableRowHeight and wordWrap turned on. When you first select the customer reviews, the list isn't sized correctly. It's as if it figures out the height of the tallest list item, and uses that height for all visible list items. You have to scroll up and down to get it to recalculate and get each list item sized correctly. You should also see one extra blank list item at the bottom like I noted in the first issue. Issue #4: Now use the NumericStepper at the bottom of the reviews to flip to the second page of reviews, and scroll to the bottom. The second page has 5 review list items, although, the scroll bar stops at the end of the third item and won't let you scroll any further. Sometimes if you scroll up and down, or go to another page of reviews and come back, it'll let you see all of the reviews on this page. Here's the code snippets for both the lists: Product Tile List: mx:TileList id=productList dataProvider={aws.ItemSearch.result.Items.Item} cellRenderer=ProductListCellRenderer liveScrolling=false change=aws.ItemLookup.send(); width=100% height=100% itemWidth=225 itemHeight=125/ Product Tile List Cell Renderer: mx:Script ![CDATA[ [Embed(source=images/noimg.gif)] var noimage:String; function setValue(str:String, item:Object, sel:String) { if (item==undefined) { visible = false; return; } else { title.text=item.ItemAttributes.Title; author.text=(item.ItemAttributes.Author)?By + item.ItemAttributes.Author:; price.text=(item.Offers.Offer)?Price: + item.Offers.Offer.OfferListing.Price.FormattedPrice:; availability.text= (item.Offers.Offer.OfferListing.Availability)? item.Offers.Offer.OfferListing.Availability:Currently unavailable; if (item.SmallImage) { image.source=item.SmallImage.URL; image.width=item.SmallImage.Width; image.height=item.SmallImage.Height; } else { image.source=noimage; image.width=60; image.height=40; } visible=true; } } ]] /mx:Script mx:Text id=title width=225 height=30 selectable=false styleName=productTitle/ mx:HBox width=100% height=100% mx:Image id=image/ mx:VBox mx:Label id=author width=157/ mx:Text id=availability width=157 selectable=false/ mx:Label id=price styleName=productPrice/ /mx:VBox /mx:HBox Customer Reviews List: mx:List dataProvider={aws.ItemLookup.result.Items.Item.Cu stomerReviews.Review} cellRenderer=CustomerReviewsCellRenderer variableRowHeight=true wordWrap=true width=100% height=100%/ Customer Reviews List Cell Renderer: mx:Script ![CDATA[ [Embed(source=images/stars-0-0.gif)] var stars00:String; [Embed(source=images/stars-0-5.gif)] var stars05:String; [Embed(source=images/stars-1-0.gif)] var stars10:String; !-- and so forth -- function setValue(str:String, item:Object, sel:String) { if (item==undefined) { visible
[flexcoders] Re: cellRenderer question
Thanks Matt. The method inside the cellRenderer knows how to play an effect on the controls(e.g. HBox etc) that are created by the cellRenderer (and known only to the cellRenderer). The effects will be 'play'ed on 'condition's ONLY known to the holding grid, so, we need to be able to call the method from outside. Is this making sense ? Sanjay --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: The cellRenderer there is a class reference, not the instance of the class. I'm not sure we expose the reference to the cell renderer instances for you, why do you need access to an individual renderer from the outside? Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjayd Sent: Wednesday, July 20, 2005 11:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] cellRenderer question Hi. I have a public method inside a cellRenderer and I want to call the method from the mxml file that holds the grid. So, my cellRenderer has code like this: mx:Script ![CDATA[ public function test1() { mx.controls.Alert.show(got here , TestCellRenderer); } ]] /mx:Script and, I call the method like this, from inside the mxml file that holds the grid: function callTest1InCellRenderer() { var clObject:Object = myDataGrid.getColumnAt(3).cellRenderer; clObject.test1(); } BUT, this does not work..any suggestions ? Thanks in advance. Sanjay -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Comput er+software+testingw2=Macromedia+flexw3=Developmentw4=Software+develo perc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+softwar e+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s= 93.sig=dAUcEV7do91-wrRtVS641g Development http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+te stingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93. sig=AlxNUQBOI7Io7S7nhmxV0Q Software developer http://groups.yahoo.com/gads?t=msk=Software+developerw1=Computer+soft ware+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4 s=93.sig=QWIit8JayomoIHLVkV3FDg YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Halo theme icons
Halo is a great theme to work with, however, I've not noticed a set of matching requestor icons, such as the Warning: !, Error: X, and Information: ? icons that you see styled to OS themes. Do they exist? Or has someone made their own they'd be willing to share? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Closing Title Popup with [Escape], works in Mozilla but not IE??
Matt Clint, I tried the below code, and I cant get it to work for me in Mozilla or IE. Am I missing something? Thanks for your help! Allen Manning http://www.prismix.com/ ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:Script private function openPopup():Void { /* createPopUp(parent:MovieClip, class:Object [, modal:Boolean, initobj:Object,outsideEvents:Boolean]) : MovieClip */ var model:Boolean = true; var myWin_mc = mx.managers.PopUpManager.createPopUp(this,TitleWindow,model); //center of this mc myWin_mc.centerPopUp(); //Create the event handler to delete the pop up when closed var eventHandlerObj = new Object(); eventHandlerObj.click = function(event) { event.target.deletePopUp(); } //Register the event handler with the TitleWindow container. myWin_mc.addEventListener(click,eventHandlerObj); } /mx:Script mx:HBox mx:Button click=openPopup() label=Open/ /mx:HBox /mx:Application TitleWindow.mxml ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml keyUp=this_keyUp() mx:Script ![CDATA[ //here's the code 4 the func private function this_keyUp() { if (Key.getCode() == Key.ESCAPE) this.deletePopUp(); } ]] /mx:Script mx:Label text=Hit the [ESCAPE] button to close./ /mx:TitleWindow From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint Modien Sent: 21 July 2005 13:53 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Closing Title Popup with [Escape], works in Mozilla but not IE?? works on my IE... and i don't seem to be doing anything fancy... here's the code i run... on the TitleWindow i set the keyUp to the func mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml keyUp=this_keyUp() //here's the code 4 the func private function this_keyUp() { if (Key.getCode() == Key.ESCAPE) this.deletePopUp(); } Disclaimer: Matt Chotin has helped me with almost every problem I've posted here. *Thanks for that Matt* On 7/21/05, Matt Chotin [EMAIL PROTECTED] wrote: I'm not sure I've ever gotten IE to pass the escape key through to the Player unfortunately. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Allen Manning Sent: Wednesday, July 20, 2005 9:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Closing Title Popup with [Escape], works in Mozilla but not IE?? Hello Flexcoders, I can close the pop-up with the Escape key in Mozilla but not IE. Any ideas? Index.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:Script private function openPopup():Void { /* createPopUp(parent:MovieClip, class:Object [, modal:Boolean, initobj:Object,outsideEvents:Boolean]) : MovieClip */ var model:Boolean = true; var myWin_mc = mx.managers.PopUpManager.createPopUp(this,TitleWindow,model); //center of this mc myWin_mc.centerPopUp(); //Create the event handler to delete the pop up when closed var eventHandlerObj = new Object(); eventHandlerObj.click = function(event) { event.target.deletePopUp(); } //Register the event handler with the TitleWindow container. myWin_mc.addEventListener(click,eventHandlerObj); } /mx:Script mx:HBox mx:Button click=openPopup() label=Open/ /mx:HBox /mx:Application TitleWindow.mxml ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml title=Popup width=300 height=300 closeButton=true initialize=initKeyDown(); mx:Script private function initKeyDown():Void { var myListener:Object = new Object(); myListener. handleKeyDown); Key.addListener(myListener); } private function handleKeyDown (event) : Void { if (Key.isDown(Key.ESCAPE)) { this.deletePopUp(); Key.removeListener(handleKeyDown); } } /mx:Script mx:Label text=Hit the [ESCAPE] button to close./ /mx:TitleWindow Thanks, Allen http://www.prismix.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 Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.2 - Release Date: 19/07/2005 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:
RE: [flexcoders] Disabling theme on a component?
selectable=false and useRollover=false? Do you need to allow selection but just dont want to show it? Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Stacy Young Sent: Thursday, July 21, 2005 11:29 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Disabling theme on a component? That's what I've got now but I wanted to keep the alternating rows... :\ Stace -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sreejith Unnikrishnan Sent: Wednesday, July 20, 2005 3:23 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Disabling theme on a component? mx:DataGrid alternatingRowColors=[0xFF,0xFF] *selectable=false * ... Should do the job?? Sree Stacy Young wrote: Is it possible to disable the theme on a single component? Don't want a grid to show any colors for selectedIndex, rollover etc. Can't set the colours to white either due to alternating row colours... Thx! Stace -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] ComboBox cellRenderer
Hi, I'm trying to figure out how I could change the font size of combobox items. Let's say I have this code mx:Model id=sizes size6/size size7/size /mx:Model mx:ComboBox id=sizes_cb dataProvider={sizes.size}/ I'd like the first item to have a fontSize of 6, the second 7 etc ... I was trying to loop into the combo.getDropdown but it doesn't seem to be a good idea. I never used a cellRenderer before, has anyone a piece of code I could get inspired from? do I have to implement all cellRenderers functions (setValue ...) or can I just use the setSize? Is it possible to use an mxml file as cellRenderer? something like mx:Label mx:Scriptfunction setSize(){}/mx:Script /mx:Label Sorry for the confusion Regards, Philippe -- **STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus. -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Disabling theme on a component?
Omg Im blind. ;-) thx From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Thursday, July 21, 2005 2:47 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Disabling theme on a component? selectable=false and useRollover=false? Do you need to allow selection but just dont want to show it? Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Stacy Young Sent: Thursday, July 21, 2005 11:29 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Disabling theme on a component? That's what I've got now but I wanted to keep the alternating rows... :\ Stace -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sreejith Unnikrishnan Sent: Wednesday, July 20, 2005 3:23 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Disabling theme on a component? mx:DataGrid alternatingRowColors=[0xFF,0xFF] *selectable=false * ... Should do the job?? Sree Stacy Young wrote: Is it possible to disable the theme on a single component? Don't want a grid to show any colors for selectedIndex, rollover etc. Can't set the colours to white either due to alternating row colours... Thx! Stace -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] calling multiple 'cellRenderer's for the same DataGridColumn ?
Hi. I have 2 cellRenderers: CurrencyCellRenderer to format a number to include '$' and commas etc. ColorRenderer to color a cell. I wanted to call both these renderers for a DataGridColumn. Is there a starightforward way to do it ? Thanks in advance. Sanjay -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Passings args to an Alert.show() handler
Thanks for your help, that put me on the right track. -Cliff On 7/21/05, JesterXL [EMAIL PROTECTED] wrote: Make a command (Cairngorm has those, right?), and pass the arg in; then, have the Alert popup, and if the user responds yes, that arg will be available as a member variable, and thus you can use that arg in your delete function. - Original Message - From: Cliff Meyers [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 21, 2005 9:42 AM Subject: [flexcoders] Passings args to an Alert.show() handler I'm using Alert.show() to provide the user with a confirmation dialog before I make a method call to delete a user from the DB. Right now I have some code like this: mx.controls.Alert.show( Are you sure you want to delete this user?, Confirm Delete, mx.controls.Alert.YES | mx.controls.Alert.NO, this, deleteUser ); Is there any straightforward way to pass an argument to deleteUser? I could just let it look at a variable that's set in the component's scope but that seems messy to me. I'd much rather find a way to pass the userID right in. Thanks for your help! -Cliff -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] passing data to dynamically created TabNavigator children
I have a class that dynamically adds several components to a TabNavigator via AS. I need to pass some data into these components. If they were static (ie, created with MXML) I'd just add an attribute and so some databinding. How can I accomplish the same thing with AS? There doesn't seem to be a way to assign an ID to a component when creating it so I'm not sure what the best way to access the component is using AS. Thanks a lot! -Cliff -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] formating string
Hi dudes I want to modify an string on a textbox after to lost focus I need to change the first character to a capital letter for example txt_example.text before = hello world txt_example.text after= Hello World some ideas? i need the .as code thanks in advance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Halo theme icons
Okay, since I got no response, I took an hour and made some myself. Feel free to use them if you'd like http://members.cox.net/midian/resources/dialogicons.htm --- In flexcoders@yahoogroups.com, charlespaz1 [EMAIL PROTECTED] wrote: Halo is a great theme to work with, however, I've not noticed a set of matching requestor icons, such as the Warning: !, Error: X, and Information: ? icons that you see styled to OS themes. Do they exist? Or has someone made their own they'd be willing to share? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Odd behaviors with List controls
Hi Matt, thanks for responding! It seems like you'd only have extra space in a list control if the height of the control is greater then the combined height of all the elements in the control. That wouldn't be the case in this example, since you have to scroll vertically to see all the items. If you scroll to where the last row is completely visible, you can still keep scrolling quite a bit. I never did fix the second item, it's just that the steps to reproduce it have changed. Let me first explain the criteria on what must exist to create the bug. You have to have a dynamic image in a non-visible cell of the list (due to the list being scrolled up or down). Then you reload the data provider causing the scrolling to reset itself. Any cell that shares the same index as the previously hidden cell, that also becomes visible due to the resetting of the scrollbar, that also uses an embedded image, will be affected. So, in my application, http://default.devinholloway.com/flex/capoeira/, click on the Books link. With my screen resolution, I can see two columns and three rows of books (all dynamic images). With the scroll bar still at the top, click to go to page 2. The first two rows use the embedded no image icon. That's an example of it working correctly. Now click to back to page 1 and then scroll all the way to the bottom. The first two rows of books should be completely hidden (and hopefully you'll notice that huge amount of leftover space that the bottom). While the scroll bar is still at the bottom, click to go to page two. The first two rows of books on page two, which used to show the no image embedded icon, now show the same book covers that the first rows on the page 1 does, only resized to the height of the no image icon. If you want to see happen even more, scroll down to the bottom of the second page, you'll see that the last two products show the photos of the last two products on page one (again resized). for the 4th issue, you need to be on the books page, then the rest of the steps are the same. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Sorry it took so long to respond to this, you may have addressed some of these issues already: 1) I believe the extra row is actually just leftover space in the list. We don't show partial rows unless you explicitly set a count that would cause the row to appear. 2) I think you've fixed this on the site as it is now? 3) This resizing might be a bug in our List class. The extra row is simply because we have a minimum number of cells that need to get rendered to allow scrolling with variableRowHeight. 4) Since you've added more content since your post I can't reproduce this. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Devin Holloway Sent: Friday, July 15, 2005 9:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Odd behaviors with List controls I've been noticing a lot of odd behavior with the List and TileList controls. The application I'm working on is located at: http://default.devinholloway.com/flex/capoeira/ You should see the list of titles on the left hand side. If you scroll the product list all the way down, you'll see an empty row. Every time I use a list-based control, it always produces at least one extra empty row at the bottom. Is this expected behavior? Issue #2: Keep the product list scrolled to the bottom to where the top product for both tilelist columns are not visible (my browser is maximized at 1024x768), and then use the NumericStepper pager control to jump to the second page of results. When that loads, the top product for each column should be using the no image book cover. But instead, they're using the same two images for the top two products on the first page of results, only resized to same height as the no image icon. Now scroll to the bottom of the second page, and the last two products might also display the same two images rather then the no image icon. This is fairly consistent behavoir when flipping through pages. Issue #3: Go back to the first page and select the first product. On the right hand side, select the customer reviews accordion pane. This list displaying these reviews have variableRowHeight and wordWrap turned on. When you first select the customer reviews, the list isn't sized correctly. It's as if it figures out the height of the tallest list item, and uses that height for all visible list items. You have to scroll up and down to get it to recalculate and get each list item sized correctly. You should also see one extra blank list item at the bottom like I noted in the first issue. Issue #4: Now use the NumericStepper at the bottom of the reviews to flip to the second page of reviews, and scroll to the bottom. The
Re: [flexcoders] formating string
Use foxpro function proper() On 7/21/05, Miguel Diaz Valenzuela [EMAIL PROTECTED] wrote: Hi dudesI want to modify an string on a textbox after to lost focusI need to change the first character to a capital letter for exampletxt_example.text before = hello worldtxt_example.text after= Hello Worldsome ideas?i need the .as codethanks in advance --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] dynamically creating children suggestions?
How about expanding on your XML to group filter items so that you only have to display a subset at a time... eg using a tab navigator and/or a deferred instantiation strategy? Robert Brueckmann wrote: Im getting XML back from the database. The XML contains a bunch of elements, all containing children elements that tell me what type of component to display, i.e.: At any rateone of the reports the user can select returns XML that contains 104 elements, i.e.: 104 various filters they can set for this report. Wellneedless to say my form takes a long time to generate and the browser hangs while its being created. I should mention that when I get the XML from the database and its sent to my ViewHelper class, I use the XMLObjectOutput utility class to convert the XML to an object. That part, even for the 104 element XML is SO quick. Its when the form elements begin to get generated on the fly is where the browser hangs. (Ive tried removing the creation of the elements that require my custom Range form field component and that holds very little bearing on the length of time it takes to dynamically generate my form, as an aside). Is there a more elegant way to dynamically generate children so its not so memory-taxing? Is there a better approach altogether for this dynamic generation of children for my Form component? Any help is greatly appreciated. Thanks, -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] formating string
mx:TextInput id=txt_example focusOut=formatString(); / function formatString() { txt_example.text[0].toUpperCase(); } - Original Message - From: Miguel Diaz Valenzuela [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 21, 2005 5:37 PM Subject: [flexcoders] formating string Hi dudes I want to modify an string on a textbox after to lost focus I need to change the first character to a capital letter for example txt_example.text before = hello world txt_example.text after= Hello World some ideas? i need the .as code thanks in advance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] formating string
actually, just in case the compiler whines: function formatString() { var s:String = txt_example.text; s[0].toUpperCase(); txt_example.text = s; } - Original Message - From: JesterXL [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 21, 2005 7:12 PM Subject: Re: [flexcoders] formating string mx:TextInput id=txt_example focusOut=formatString(); / function formatString() { txt_example.text[0].toUpperCase(); } - Original Message - From: Miguel Diaz Valenzuela [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 21, 2005 5:37 PM Subject: [flexcoders] formating string Hi dudes I want to modify an string on a textbox after to lost focus I need to change the first character to a capital letter for example txt_example.text before = hello world txt_example.text after= Hello World some ideas? i need the .as code thanks in advance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] IFBIN Begins...
Hi Ted, Sounds like a master plan - looking forward to seeing more. Is this a FLEX OEM? btw? ie i thought it was a no no to deploy FLEX SWF's without FLEX server? On 7/22/05, Theodore E Patrick [EMAIL PROTECTED] wrote: Flexcoders, As I stated in an earlier post I was working on a big Flex project. We launched the IFBIN Service this morning and will soon launch the Flex By Example subscription. http://www.ifbin.com I have been working on a new company, IFBIN Networks. We provide software examples for learning and reuse for Flash and Flex. The service application is written using Flex/Python and provides licensed access to a growing library of Flash and Flex software. We are currently in development with Flex content and will be launching the Flex By Example products in the next month. Technically, the IFBIN Service is a proxy server with logic for code authentication and software installation. The files are requested through a Flex UI and installed to the local machine. If one byte of an example is modified in the original, the service will not install it. You are one click from installing a Flex application onto your server. The application talks with the local proxy server via XMLSocket allowing the Flex shell to be served from within Flash, Flex Builder, or within a Browser. It is a new model of integration and provides a seamless secure local/remote feature set. In regards to Flex by Example, we have some really great projects in development. We will be providing 100% example coverage of the base Flex MXML tags and AS along with many applications and frameworks. Regards, Ted ;) -- 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 -- Regards, Scott Barnes http://www.mossyblog.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] General Dialog listeners not working
I'm trying to create a single general use dialog requestor, but it isn't working like it should (or at least like I'm expecting it to). Everything loads fine, proper configuration of popups on button click, but the eventHandlers don't do anything. Also, why does the OK button not resize to fit the text Archive ? Do I have to resize it manually? How? Thanks ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ var objCoInfo:Object = { coname:Company Name }; [Embed(source=warning_icon.jpg)] var iconWarning:String; [Embed(source=critical_icon.jpg)] var iconCritical:String; function popupDialog(icon:String, text:String, title:String, button1:String, eventListener:String):Void { var titleStyles = new mx.styles.CSSStyleDeclaration(); titleStyles.setStyle(fontWeight, bold); mx.controls.Alert.titleStyleDeclaration = titleStyles; mx.controls.Alert.okLabel = button1; mx.controls.Alert.show(text, title, mx.controls.Alert.CANCEL | mx.controls.Alert.OK, this, eventListener, icon, mx.controls.Alert.CANCEL); } function deleteHandler(event):Void { if (event.detail==mx.controls.Alert.OK) { mx.controls.Alert.show(Delete Record); } } function archiveHandler(event):Void { if (event.detail==mx.controls.Alert.OK) { mx.controls.Alert.show(Archive); } } ]] /mx:Script mx:Button label=Delete Record click=popupDialog(iconCritical, 'Are you sure you want to delete this record?', 'Delete Record', 'Delete', 'deleteHandler');/ mx:Button label=Archive Record click=popupDialog(iconWarning, 'Are you sure you want to archive this record?', 'Archive Record', 'Archive', 'archiveHandler');/ /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] IFBIN Begins...
ooops disregard that last question, i re-read your post(s) on a prev thread. On 7/22/05, Scott Barnes [EMAIL PROTECTED] wrote: Hi Ted, Sounds like a master plan - looking forward to seeing more. Is this a FLEX OEM? btw? ie i thought it was a no no to deploy FLEX SWF's without FLEX server? On 7/22/05, Theodore E Patrick [EMAIL PROTECTED] wrote: Flexcoders, As I stated in an earlier post I was working on a big Flex project. We launched the IFBIN Service this morning and will soon launch the Flex By Example subscription. http://www.ifbin.com I have been working on a new company, IFBIN Networks. We provide software examples for learning and reuse for Flash and Flex. The service application is written using Flex/Python and provides licensed access to a growing library of Flash and Flex software. We are currently in development with Flex content and will be launching the Flex By Example products in the next month. Technically, the IFBIN Service is a proxy server with logic for code authentication and software installation. The files are requested through a Flex UI and installed to the local machine. If one byte of an example is modified in the original, the service will not install it. You are one click from installing a Flex application onto your server. The application talks with the local proxy server via XMLSocket allowing the Flex shell to be served from within Flash, Flex Builder, or within a Browser. It is a new model of integration and provides a seamless secure local/remote feature set. In regards to Flex by Example, we have some really great projects in development. We will be providing 100% example coverage of the base Flex MXML tags and AS along with many applications and frameworks. Regards, Ted ;) -- 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 -- Regards, Scott Barnes http://www.mossyblog.com -- Regards, Scott Barnes http://www.mossyblog.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: General Dialog listeners not working
It figures, as soon as I give up, I try one last time and it works. I just had to drop the type for the eventListener in the function declaration. Get so hung up on typing everything, when you can't, I still expect something to have to be there. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] dynamically creating children suggestions?
On 7/22/05, JesterXL [EMAIL PROTECTED] wrote: Stepping back, why not have a server side process generate the MXML (since it's just XML to begin with and you are merely changign the format), have the server-side component (CF/Java) write out the MXML, and then use a Loader to hit the MXML file? That sounds like the better choice imho, i had a situation with SynergyFLEX were i was concerend the XML would grow, so much so it could probably grow larger then the application. So using a CFMX+FLEX POC i was able to generate whats needed on the fly for that application. mx:Loader is gewd XML bad. I've moved away from XML to describe runtime logic requests and opted for another solution in its place. As XML seems two steps back especially when we are using XML in the first place? I also think that with FLASH 8 you should see a reduction in memory consumption with FLEX / Flash Player. As typically pre-8, the more controls/containers you create the memory gets allocated, so if you were to run a chunk of logic that say created 1 button controls and then destroyed them, the memory would continue to climb. From what has been said about FP8, the garbage collection is now fixed, and will return un-used memory back to the Operating Systems furnace *heh* - which is gewwwd/ 10 billion more ideas of course, Matt'll put the smack down when he finishes his tea and crepes. hahahahaha.. watch out for his version of The peoples elbow -- Regards, Scott Barnes http://www.mossyblog.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] problem in using web authentication using different website.
Dear All, I am havig problem with web authentication service along with flex. The idea is very simple. 1. I start a flex application (I am using viewstack), the first view in the stach appear with two buttons, one for members and one for guest. 2. if I am a member, I click a log in button and it takes me to a URL where I will authenticate myself (It works fine). 3. Once I authenticate myself, I should be able to go to the next view in the stack, where all my information will retrieved from the database and all textboxes will be populated. (I am able to authenticate and able to retrieve the information but it happens only if I set the call authentication function on application's initialize function. In that case I don't need first view in the stack (i.e. the view with two buttons). I'll automatically go to the web authentication URL upon the start of the application. ButI do need the first view). In my opinion what happening is that after completing the authentication (after coming back from web authentication URL), the application is again starting with first view. However I want it to start with the second view with the populated text boxes. can anyone give me some idea please. --Manu -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Dynamic tab binding Labels
Hi, I'm trying to have tabs generate when items are chosen from a List Component. So far I am able to get the tabs to come up and everything but what I would like to do is have each tab be bound to the selectedItem such that the label of the tab will be the same as the label of the selectedItem from the list. This is what I have right now: } function createSchoolTab(event){ var schoolName=event.target.selectedItem.label; var newTab:mx.core.UIObject=mx.core.UIObject(schoolsTabNav.createTab(SchoolView,{event.target.selectedItem.label},'The Canvas')); schoolsTabNav.selectedChild=newTab; } and this would be the errors that I get back: line 15 ': unexpected line 16 This statement is not permitted in a class definition line 21 unexpected '}' encountered Can anyone help me with this. Thanks Mani -- Live as if you were to die tomorrow. Learn as if you were to live forever. -- Mahatma Gandhi -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Global Variable or session Attribute
Hi, I want to set a variable which can be accessed from all the components (Session scope) and can be modified from any place. I want to maintain whether the user is logged in , ie when the user logs in I want to set the flag to true , and I should be able to check this flag from all my components in the application. I also need to set the Roles for the user in the global session scope. Is there any way to acces the session object and set attribute in it from my flex code. Thank You, Jay. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] mx:Panel and border_mc
This ones for the Framework Code-monkeys (btw i use the term code-monkey in a positive way not a negative). I'm basically re-working how the mx:Panel bordering works as I have a custom titlebackground asset loaded in its place that doesn't conform to rectangle shaping. I've managed to figure out how to move the boder_mc below the back_mc, along with adjusting the view metrics to suite. It all seems to work, except when i use the borderThickness=1, what happens is somehow *yet to be determined* a border is drawn around the entire panel, its origions unknown. I've tried to figure out where its being drawn and how but can't seem to find out? I'm assuming it has something to do with border_mc (ie mx.skins.halo.RectBorder), but yet it also appears to be outside the border_mc. in that, i put this in layoutChrome() border_mc._alpha = 0; back_mc._alpha = 0; controlBar_mc._alpha = 0; floatingBorder_mc._alpha = 0; all hide their respective visuals, except this outside border persists. Could someone shed some light onto how borderThickness gets drawn? am i looking in the right class? (ie mx.skins.halo.RectBorder) -- Regards, Scott Barnes http://www.mossyblog.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Problem parsing external XML
Can you package up a working sample that demonstrates the problem and send it to the list? You sure you're also referencing the actual file and that it is accessible? Eg you'll get that error when Flex can't acess the file (eg if you typo'd on the spelling), so the error is kind of misleading in that it sounds like it got it but can't process it. bogdans83flex wrote: Hi everybody! I get this error: problem parsing external XML whenever I try to add a mx:Model tag. It is a problem because the XML is well formed, so there shouldn't be any problems. I get the same error even when i try some tutorials from macromedia.com. Hope you can help! THanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] passing data to dynamically created TabNavigator children
Instead of using createTab(classRef, instanceName, label, icon) use createChildWithStyles(classRef, instanceName, initObj) ie: customCreateTab(classRef:Function, instanceName:String, label:String, icon:String, customParam:String):Void { var initObj = new Object(); if(label != undefined) { initObj.label = label; } if(icon != undefined) { initObj.icon = icon; } if(customParm != undefined) { initObj.customParam = customParam; } yourPathToTabNavigator.createChildWithStyles(classRef, instanceName, initObj); } I recommend you keep this in a method wrapper to safe guard yourself down the track in the event createChildWithStyles() is deleted from Flex 2.0, 3.0, 4.0 etc.. as your now off the reservation so to speak. On 7/22/05, Cliff Meyers [EMAIL PROTECTED] wrote: I have a class that dynamically adds several components to a TabNavigator via AS. I need to pass some data into these components. If they were static (ie, created with MXML) I'd just add an attribute and so some databinding. How can I accomplish the same thing with AS? There doesn't seem to be a way to assign an ID to a component when creating it so I'm not sure what the best way to access the component is using AS. Thanks a lot! -Cliff -- 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 -- Regards, Scott Barnes http://www.mossyblog.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex and CFCs -- problems displaying recordsets in datagrids
Hi Darius, welcome. Some things to keep in mind: - CF and it's CFCs are not case sensitive, where as Flex is. Eg if you do a CFQUERY and just send the results back, all the fields will be upper case. - I think on your doResult you'll need output.dataProvider = event.result._items; Here's some articles that should help you out: http://www.bpurcell.org/blog/index.cfm?mode=entryentry=1019 http://www.richinternet.de/blog/index.cfm?entry=831FE26E-0D70-9C2D-2549E1D1978CF1B0 coldfs wrote: Hi, I'm new to Flex and have been working over the last few weeks to integrate this product with CF. One of my central aims is to be able to pass data from Flex to a CFC which houses a query and will return a recordset back to Flex. Through piecing together examples here and there, I've figured out how to call the CFC and send data to it from Flex, but I've been unable to figure out how to display the recordset in a Flex datagrid. Any help/examples, best practices, on how to do this would be greatly appreciated. My existing code follows. The query recordset returns two fields. The error I receive is: 1 Error found. Error /FlexToCFC2.mxml:19 There is no property with the name 'text'. -- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:Script ![CDATA[ private function doClick():Void{ ro.GetUpdateAuthorization(input.text); } private function doResult(event:Object):Void{ output.text = event.result; } private function doFault(event:Object):Void{ alert(Error invoking CF: + event.fault.faultstring); } ]] /mx:Script mx:RemoteObject id=ro endpoint=http://gx270dev.childsupport.net/flashservices/gateway; source=Model.mUtilities.mUpdate.qry_UpdateAuthorization fault=doFault(event) result=doResult(event) /mx:RemoteObject mx:Panel title=Updates mx:Form defaultButton=sendButton mx:FormItem label=Input: direction=horizontal mx:TextInput id=input/ mx:Button id=sendButton label=Send click=doClick()/ /mx:FormItem mx:DataGrid id=output width=520 wordWrap=true mx:columns mx:Array mx:DataGridColumn width=200 headerText=Update Form columnName=Function/ mx:DataGridColumn width=320 headerText=Description columnName=Description/ /mx:Array /mx:columns /mx:DataGrid /mx:Form /mx:Panel /mx:Application Many thanks, Darius -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Writing a Custom Data Provider
Hi, I am trying to write a custome data provider for my list control. My data is not an array, so I am trying to rewrite all those APIs. Here are some questions: 1. is modelChanged event subscription handled by the flex framework? In another word, do I need to do any thing besides calling dispatchEvent({target:this, type:modelChanged, eventName:...)? 2. Is there any good example I could follow? I tried this example (http://www.macromedia.com/support/documentation/en/flex/1/mixin/mixin3.html), but ran into many issues, such as: a. getParent() required by the compiler. It's not in the ASDoc, however; b. I saw many warnings in the log: Warning: getChildNodes is not a function Warning: __get__editable is not a function Warning: hasChildNodes is not a function Warning: getParent is not a function ... c. The GUI doesn't update itself unless I hover my mouse around. Any advice will be greatly appreciated! Tim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: dynamically creating children suggestions?
That way for each different XML, backend Flex server needs to compile it into a new swf, which, in my experience, has been a not so fast process. Robert's screen is going to hang either way. But frankly, I don't have a solution :( tim --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: If deferred instantation does nothing, and a Repeater doesn't solve your woes, then I'd look to doing some lower level things such as creating your own UIObjectDescriptors, and staggering the drawing algorithm to only process a certain amount of children to create per frame. Stepping back, why not have a server side process generate the MXML (since it's just XML to begin with and you are merely changign the format), have the server-side component (CF/Java) write out the MXML, and then use a Loader to hit the MXML file? 10 billion more ideas of course, Matt'll put the smack down when he finishes his tea and crepes. - Original Message - From: Robert Brueckmann To: flexcoders@yahoogroups.com Sent: Thursday, July 21, 2005 6:10 PM Subject: [flexcoders] dynamically creating children suggestions? I'm getting XML back from the database. The XML contains a bunch of elements, all containing children elements that tell me what type of component to display, i.e.: . FILTERSORT EFL_NAMEASSETS/EFL_NAME EFL_DESCAssets/EFL_DESC EFL_SORTY/EFL_SORT EFL_FILTERY/EFL_FILTER PRM_TYPE_ID2/PRM_TYPE_ID PRM_TYPE_NAMENUMBER/PRM_TYPE_NAME PUI_ID3/PUI_ID PUI_TYPEMULTILIST/PUI_TYPE FILTERSORTVALUELIST PRM EFL_VALUE= FFL_DESC= EFL_SEQ=0/PRM PRM EFL_VALUE=1 FFL_DESC=Cash and Equivalents EFL_SEQ=2/PRM PRM EFL_VALUE=50 FFL_DESC=Equities EFL_SEQ=3/PRM PRM EFL_VALUE=10 FFL_DESC=Fixed Income EFL_SEQ=4/PRM PRM EFL_VALUE=65 FFL_DESC=Futures EFL_SEQ=5/PRM PRM EFL_VALUE=99 FFL_DESC=Indices EFL_SEQ=6/PRM PRM EFL_VALUE=60 FFL_DESC=Options EFL_SEQ=7/PRM PRM EFL_VALUE=95 FFL_DESC=Private Placements EFL_SEQ=8/PRM PRM EFL_VALUE=75 FFL_DESC=Rights and Warrants EFL_SEQ=9/PRM PRM EFL_VALUE=70 FFL_DESC=Swaps EFL_SEQ=10/PRM /FILTERSORTVALUELIST /FILTERSORT FILTERSORT EFL_NAMEACCOUNT_NAME/EFL_NAME EFL_DESCAccounts/EFL_DESC EFL_SORTY/EFL_SORT EFL_FILTERY/EFL_FILTER PRM_TYPE_ID2/PRM_TYPE_ID PRM_TYPE_NAMESTRING/PRM_TYPE_NAME PUI_ID3/PUI_ID PUI_TYPETEXTFIELD/PUI_TYPE /FILTERSORT . So my flex app gets this XML chunk, I loop through the XML and based on certain parameters in the example XML above, and in each loop, I call createChild on a Form component I have in my MXML file and I build a form that displays to the user various filters they can set for the report they just selected. I'm dynamically generating DateFields, Textfields, Lists, and a custom Range component that I created whose MXML file looks like this: ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml; width=200 fontWeight=bold mx:Script ![CDATA[ public var operator:String = 1; function updateOperator(e) { operator = e.target.selectedItem.data; } ]] /mx:Script mx:LinkBar width=100% dataProvider={rangeStack} / mx:ViewStack id=rangeStack width=100% mx:HBox width=100% label=comparison mx:ComboBox id=operatorList change=updateOperator(event); selectedIndex=0 width=50 mx:dataProvider mx:Array mx:Object label=lt; data=1 / mx:Object label=lt;= data=2 / mx:Object label=== data=3 / mx:Object label=gt;= data=4 / mx:Object label=gt; data=5 / /mx:Array /mx:dataProvider /mx:ComboBox mx:TextInput id=compVal width=100% / /mx:HBox mx:HBox width=100% label=range mx:Label
Re: [flexcoders] Re: dynamically creating children suggestions?
Key point here is the server deals with the processor hit, not the client. Secondly, the Flex server has caching built in, and won't compile the XML everytime, even if it changes often. - Original Message - From: zhongtie [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 21, 2005 10:10 PM Subject: [flexcoders] Re: dynamically creating children suggestions? That way for each different XML, backend Flex server needs to compile it into a new swf, which, in my experience, has been a not so fast process. Robert's screen is going to hang either way. But frankly, I don't have a solution :( tim --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: If deferred instantation does nothing, and a Repeater doesn't solve your woes, then I'd look to doing some lower level things such as creating your own UIObjectDescriptors, and staggering the drawing algorithm to only process a certain amount of children to create per frame. Stepping back, why not have a server side process generate the MXML (since it's just XML to begin with and you are merely changign the format), have the server-side component (CF/Java) write out the MXML, and then use a Loader to hit the MXML file? 10 billion more ideas of course, Matt'll put the smack down when he finishes his tea and crepes. - Original Message - From: Robert Brueckmann To: flexcoders@yahoogroups.com Sent: Thursday, July 21, 2005 6:10 PM Subject: [flexcoders] dynamically creating children suggestions? I'm getting XML back from the database. The XML contains a bunch of elements, all containing children elements that tell me what type of component to display, i.e.: . FILTERSORT EFL_NAMEASSETS/EFL_NAME EFL_DESCAssets/EFL_DESC EFL_SORTY/EFL_SORT EFL_FILTERY/EFL_FILTER PRM_TYPE_ID2/PRM_TYPE_ID PRM_TYPE_NAMENUMBER/PRM_TYPE_NAME PUI_ID3/PUI_ID PUI_TYPEMULTILIST/PUI_TYPE FILTERSORTVALUELIST PRM EFL_VALUE= FFL_DESC= EFL_SEQ=0/PRM PRM EFL_VALUE=1 FFL_DESC=Cash and Equivalents EFL_SEQ=2/PRM PRM EFL_VALUE=50 FFL_DESC=Equities EFL_SEQ=3/PRM PRM EFL_VALUE=10 FFL_DESC=Fixed Income EFL_SEQ=4/PRM PRM EFL_VALUE=65 FFL_DESC=Futures EFL_SEQ=5/PRM PRM EFL_VALUE=99 FFL_DESC=Indices EFL_SEQ=6/PRM PRM EFL_VALUE=60 FFL_DESC=Options EFL_SEQ=7/PRM PRM EFL_VALUE=95 FFL_DESC=Private Placements EFL_SEQ=8/PRM PRM EFL_VALUE=75 FFL_DESC=Rights and Warrants EFL_SEQ=9/PRM PRM EFL_VALUE=70 FFL_DESC=Swaps EFL_SEQ=10/PRM /FILTERSORTVALUELIST /FILTERSORT FILTERSORT EFL_NAMEACCOUNT_NAME/EFL_NAME EFL_DESCAccounts/EFL_DESC EFL_SORTY/EFL_SORT EFL_FILTERY/EFL_FILTER PRM_TYPE_ID2/PRM_TYPE_ID PRM_TYPE_NAMESTRING/PRM_TYPE_NAME PUI_ID3/PUI_ID PUI_TYPETEXTFIELD/PUI_TYPE /FILTERSORT . So my flex app gets this XML chunk, I loop through the XML and based on certain parameters in the example XML above, and in each loop, I call createChild on a Form component I have in my MXML file and I build a form that displays to the user various filters they can set for the report they just selected. I'm dynamically generating DateFields, Textfields, Lists, and a custom Range component that I created whose MXML file looks like this: ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml; width=200 fontWeight=bold mx:Script ![CDATA[ public var operator:String = 1; function updateOperator(e) { operator = e.target.selectedItem.data; } ]] /mx:Script mx:LinkBar width=100% dataProvider={rangeStack} / mx:ViewStack id=rangeStack width=100% mx:HBox width=100% label=comparison mx:ComboBox id=operatorList change=updateOperator(event); selectedIndex=0 width=50 mx:dataProvider mx:Array mx:Object label=lt; data=1 / mx:Object label=lt;= data=2 / mx:Object label=== data=3 / mx:Object label=gt;= data=4 / mx:Object label=gt; data=5 / /mx:Array /mx:dataProvider /mx:ComboBox mx:TextInput id=compVal width=100% / /mx:HBox mx:HBox width=100% label=range mx:Label text=From: / mx:TextInput id=fromVal width=100% / mx:Label text=To: / mx:TextInput id=toVal
RE: [flexcoders] Re: cellRenderer question
OK, well the cellRenderer gets a reference to the DataGrid through its listOwner property. I guess what you can do is just make sure to register the renderer instance with the DataGrid (subclass DataGrid, add a method called registerRenderer, on the creationComplete of your renderer call register, etc) and then youll be good to go. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of sanjayd Sent: Thursday, July 21, 2005 10:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: cellRenderer question Thanks Matt. The method inside the cellRenderer knows how to play an effect on the controls(e.g. HBox etc) that are created by the cellRenderer (and known only to the cellRenderer). The effects will be 'play'ed on 'condition's ONLY known to the holding grid, so, we need to be able to call the method from outside. Is this making sense ? Sanjay --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: The cellRenderer there is a class reference, not the instance of the class. I'm not sure we expose the reference to the cell renderer instances for you, why do you need access to an individual renderer from the outside? Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of sanjayd Sent: Wednesday, July 20, 2005 11:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] cellRenderer question Hi. I have a public method inside a cellRenderer and I want to call the method from the mxml file that holds the grid. So, my cellRenderer has code like this: mx:Script ![CDATA[ public function test1() { mx.controls.Alert.show(got here , TestCellRenderer); } ]] /mx:Script and, I call the method like this, from inside the mxml file that holds the grid: function callTest1InCellRenderer() { var clObject:Object = myDataGrid.getColumnAt(3).cellRenderer; clObject.test1(); } BUT, this does not work..any suggestions ? Thanks in advance. Sanjay -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Comput er+software+testingw2=Macromedia+flexw3=Developmentw4=Software+develo perc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+softwar e+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s= 93.sig=dAUcEV7do91-wrRtVS641g Development http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+te stingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93. sig=AlxNUQBOI7Io7S7nhmxV0Q Software developer http://groups.yahoo.com/gads?t=msk=Software+developerw1=Computer+soft ware+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4 s=93.sig=QWIit8JayomoIHLVkV3FDg YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] ComboBox cellRenderer
You will need to implement the normal methods of the cellRenderer (setValue) and then should use setStyle to set the font size of your label. I would basically make your cellRenderer a Label and just call setStyle within your setValue method. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Philippe Maegerman Sent: Thursday, July 21, 2005 12:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] ComboBox cellRenderer Hi, I'm trying to figure out how I could change the font size of combobox items. Let's say I have this code mx:Model id=sizes size6/size size7/size /mx:Model mx:ComboBox id=sizes_cb dataProvider={sizes.size}/ I'd like the first item to have a fontSize of 6, the second 7 etc ... I was trying to loop into the combo.getDropdown but it doesn't seem to be a good idea. I never used a cellRenderer before, has anyone a piece of code I could get inspired from? do I have to implement all cellRenderers functions (setValue ...) or can I just use the setSize? Is it possible to use an mxml file as cellRenderer? something like mx:Label mx:Scriptfunction setSize(){}/mx:Script /mx:Label Sorry for the confusion Regards, Philippe -- **STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus. -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] calling multiple 'cellRenderer's for the same DataGridColumn ?
You cant have both renderers applied separately so youll probably need to create a 3rd renderer that combines the functionality (perhaps create a subclass of one of them and add the functionality from the other). Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of sanjayd Sent: Thursday, July 21, 2005 1:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] calling multiple 'cellRenderer's for the same DataGridColumn ? Hi. I have 2 cellRenderers: CurrencyCellRenderer to format a number to include '$' and commas etc. ColorRenderer to color a cell. I wanted to call both these renderers for a DataGridColumn. Is there a starightforward way to do it ? Thanks in advance. Sanjay -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: dynamically creating children suggestions?
Crepes are for weekends Weve discussed something with another customer recently along the same lines, Ive put out a feeler to see if we solved their issue successfully. In theory I would say that you should be able to solve the problem without resorting to the server (which if you have a lot of clients hitting concurrently with different data coming back will be put under a heavier load because it wont be able to cache). Deferred instantiation is probably not taking hold in your case because youre explicitly calling createChild (Im guessing). If you created object descriptors and then instantiated the children using them you could probably do a queued policy that would speed up the responsiveness. The creation of those object descriptors of course is a little more dicey since I dont think we document them all that much. Ive pinged Alex, lets see if he comes up with anything Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL Sent: Thursday, July 21, 2005 7:22 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: dynamically creating children suggestions? Key point here is the server deals with the processor hit, not the client. Secondly, the Flex server has caching built in, and won't compile the XML everytime, even if it changes often. - Original Message - From: zhongtie [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 21, 2005 10:10 PM Subject: [flexcoders] Re: dynamically creating children suggestions? That way for each different XML, backend Flex server needs to compile it into a new swf, which, in my experience, has been a not so fast process. Robert's screen is going to hang either way. But frankly, I don't have a solution :( tim --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: If deferred instantation does nothing, and a Repeater doesn't solve your woes, then I'd look to doing some lower level things such as creating your own UIObjectDescriptors, and staggering the drawing algorithm to only process a certain amount of children to create per frame. Stepping back, why not have a server side process generate the MXML (since it's just XML to begin with and you are merely changign the format), have the server-side component (CF/Java) write out the MXML, and then use a Loader to hit the MXML file? 10 billion more ideas of course, Matt'll put the smack down when he finishes his tea and crepes. - Original Message - From: Robert Brueckmann To: flexcoders@yahoogroups.com Sent: Thursday, July 21, 2005 6:10 PM Subject: [flexcoders] dynamically creating children suggestions? I'm getting XML back from the database. The XML contains a bunch of elements, all containing children elements that tell me what type of component to display, i.e.: . FILTERSORT EFL_NAMEASSETS/EFL_NAME EFL_DESCAssets/EFL_DESC EFL_SORTY/EFL_SORT EFL_FILTERY/EFL_FILTER PRM_TYPE_ID2/PRM_TYPE_ID PRM_TYPE_NAMENUMBER/PRM_TYPE_NAME PUI_ID3/PUI_ID PUI_TYPEMULTILIST/PUI_TYPE FILTERSORTVALUELIST PRM EFL_VALUE= FFL_DESC= EFL_SEQ=0/PRM PRM EFL_VALUE=1 FFL_DESC=Cash and Equivalents EFL_SEQ=2/PRM PRM EFL_VALUE=50 FFL_DESC=Equities EFL_SEQ=3/PRM PRM EFL_VALUE=10 FFL_DESC=Fixed Income EFL_SEQ=4/PRM PRM EFL_VALUE=65 FFL_DESC=Futures EFL_SEQ=5/PRM PRM EFL_VALUE=99 FFL_DESC=Indices EFL_SEQ=6/PRM PRM EFL_VALUE=60 FFL_DESC=Options EFL_SEQ=7/PRM PRM EFL_VALUE=95 FFL_DESC=Private Placements EFL_SEQ=8/PRM PRM EFL_VALUE=75 FFL_DESC=Rights and Warrants EFL_SEQ=9/PRM PRM EFL_VALUE=70 FFL_DESC=Swaps EFL_SEQ=10/PRM /FILTERSORTVALUELIST /FILTERSORT FILTERSORT EFL_NAMEACCOUNT_NAME/EFL_NAME EFL_DESCAccounts/EFL_DESC EFL_SORTY/EFL_SORT EFL_FILTERY/EFL_FILTER PRM_TYPE_ID2/PRM_TYPE_ID PRM_TYPE_NAMESTRING/PRM_TYPE_NAME PUI_ID3/PUI_ID PUI_TYPETEXTFIELD/PUI_TYPE /FILTERSORT . So my flex app gets this XML chunk, I loop through the XML and based on certain parameters in the example XML above, and in each loop, I call createChild on a Form component I have in my MXML file and I build a form that displays to the user various filters they can set for the report they just selected. I'm dynamically generating DateFields, Textfields, Lists, and a custom Range component that I created whose MXML file looks like this: ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml width=200 fontWeight=bold mx:Script ![CDATA[ public var operator:String = 1; function updateOperator(e) { operator = e.target.selectedItem.data; } ]] /mx:Script mx:LinkBar width=100% dataProvider={rangeStack} / mx:ViewStack id=rangeStack width=100% mx:HBox width=100% label=comparison mx:ComboBox id=operatorList change=updateOperator(event); selectedIndex=0 width=50 mx:dataProvider mx:Array mx:Object label=lt; data="" / mx:Object label=lt;= data="" / mx:Object label=== data="" /
RE: [flexcoders] Flex and CFCs -- problems displaying recordsets in datagrids
When returning data from a CFC most of the time it changes the name to all caps. For example: SELECT Stuff FROM Table Cfreturn query Output it as: event.result[0].STUFF; Jeff Founder Flex Authority http://www.flexauthority.com We are actively seeking contributors for the site. Have a sample that you want to share with the world? Send it to us! From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of coldfs Sent: Thursday, July 21, 2005 4:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex and CFCs -- problems displaying recordsets in datagrids Hi, I'm new to Flex and have been working over the last few weeks to integrate this product with CF. One of my central aims is to be able to pass data from Flex to a CFC which houses a query and will return a recordset back to Flex. Through piecing together examples here and there, I've figured out how to call the CFC and send data to it from Flex, but I've been unable to figure out how to display the recordset in a Flex datagrid. Any help/examples, best practices, on how to do this would be greatly appreciated. My existing code follows. The query recordset returns two fields. The error I receive is: 1 Error found. Error /FlexToCFC2.mxml:19 There is no property with the name 'text'. -- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml xmlns=* mx:Script ![CDATA[ private function doClick():Void{ ro.GetUpdateAuthorization(input.text); } private function doResult(event:Object):Void{ output.text = event.result; } private function doFault(event:Object):Void{ alert(Error invoking CF: + event.fault.faultstring); } ]] /mx:Script mx:RemoteObject id=ro endpoint=http://gx270dev.childsupport.net/flashservices/gateway source=Model.mUtilities.mUpdate.qry_UpdateAuthorization fault=doFault(event) result=doResult(event) /mx:RemoteObject mx:Panel title=Updates mx:Form defaultButton=sendButton mx:FormItem label=Input: direction=horizontal mx:TextInput id=input/ mx:Button id=sendButton label=Send click=doClick()/ /mx:FormItem mx:DataGrid id=output width=520 wordWrap=true mx:columns mx:Array mx:DataGridColumn width=200 headerText=Update Form columnName=Function/ mx:DataGridColumn width=320 headerText=Description columnName=Description/ /mx:Array /mx:columns /mx:DataGrid /mx:Form /mx:Panel /mx:Application Many thanks, Darius -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Odd behaviors with List controls
Re the remaining space: I realize you have to scroll quite a bit (of course it differed depending on the size of my window) but I wonder if at any time the space available was actually larger than the full height of a row. Thats the key Both your list issues are funky, wish I had some better suggestions for you. For the TileList images maybe try setting the image source to null and then afterward setting it to the real value? So in setValue set it to null, then enter the if statement and set it to the real value? Or maybe call invalidate? It should work, its funky. Of course you could also just load the image from the web server and assume the browser cache will take care of it for you (turn it into a JPG or SWF instead of a GIF). For the review list I think theres basically a bug in the variableRowHeight code, only thing you could try is calling invalidate() (or maybe invalidateLayout) on the List and see if it resets its content rows? A Repeater also would do pretty well here, you could simulate the alternating background color pretty easily by doing some simple test in the initialize statement if event.target.getRepeaterIndex() % 2 == 0 and setting the backgroundColor appropriately. Sorry to not be of more help, Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Devin Holloway Sent: Thursday, July 21, 2005 3:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Odd behaviors with List controls Hi Matt, thanks for responding! It seems like you'd only have extra space in a list control if the height of the control is greater then the combined height of all the elements in the control. That wouldn't be the case in this example, since you have to scroll vertically to see all the items. If you scroll to where the last row is completely visible, you can still keep scrolling quite a bit. I never did fix the second item, it's just that the steps to reproduce it have changed. Let me first explain the criteria on what must exist to create the bug. You have to have a dynamic image in a non-visible cell of the list (due to the list being scrolled up or down). Then you reload the data provider causing the scrolling to reset itself. Any cell that shares the same index as the previously hidden cell, that also becomes visible due to the resetting of the scrollbar, that also uses an embedded image, will be affected. So, in my application, http://default.devinholloway.com/flex/capoeira/, click on the Books link. With my screen resolution, I can see two columns and three rows of books (all dynamic images). With the scroll bar still at the top, click to go to page 2. The first two rows use the embedded no image icon. That's an example of it working correctly. Now click to back to page 1 and then scroll all the way to the bottom. The first two rows of books should be completely hidden (and hopefully you'll notice that huge amount of leftover space that the bottom). While the scroll bar is still at the bottom, click to go to page two. The first two rows of books on page two, which used to show the no image embedded icon, now show the same book covers that the first rows on the page 1 does, only resized to the height of the no image icon. If you want to see happen even more, scroll down to the bottom of the second page, you'll see that the last two products show the photos of the last two products on page one (again resized). for the 4th issue, you need to be on the books page, then the rest of the steps are the same. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Sorry it took so long to respond to this, you may have addressed some of these issues already: 1) I believe the extra row is actually just leftover space in the list. We don't show partial rows unless you explicitly set a count that would cause the row to appear. 2) I think you've fixed this on the site as it is now? 3) This resizing might be a bug in our List class. The extra row is simply because we have a minimum number of cells that need to get rendered to allow scrolling with variableRowHeight. 4) Since you've added more content since your post I can't reproduce this. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Devin Holloway Sent: Friday, July 15, 2005 9:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Odd behaviors with List controls I've been noticing a lot of odd behavior with the List and TileList controls. The application I'm working on is located at: http://default.devinholloway.com/flex/capoeira/ You should see the list of titles on the left hand side. If you scroll the product list all the way down, you'll see an empty row. Every time I use a list-based control, it always produces at least one extra empty row at the bottom. Is this expected behavior?
RE: [flexcoders] problem in using web authentication using different website.
How are you doing the authentication? Are you using getURL to navigate the browser? Or are you using an HTTPService to retrieve the data and using basic authentication? Im not sure how your app is set up here. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of juyalmanu Sent: Thursday, July 21, 2005 4:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] problem in using web authentication using different website. Dear All, I am havig problem with web authentication service along with flex. The idea is very simple. 1. I start a flex application (I am using viewstack), the first view in the stach appear with two buttons, one for members and one for guest. 2. if I am a member, I click a log in button and it takes me to a URL where I will authenticate myself (It works fine). 3. Once I authenticate myself, I should be able to go to the next view in the stack, where all my information will retrieved from the database and all textboxes will be populated. (I am able to authenticate and able to retrieve the information but it happens only if I set the call authentication function on application's initialize function. In that case I don't need first view in the stack (i.e. the view with two buttons). I'll automatically go to the web authentication URL upon the start of the application. ButI do need the first view). In my opinion what happening is that after completing the authentication (after coming back from web authentication URL), the application is again starting with first view. However I want it to start with the second view with the populated text boxes. can anyone give me some idea please. --Manu -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Dynamic tab binding Labels
I think your parameters into createTab dont make sense. First is the class so thats right. Then should be an instance name like tab+schoolsTabNav.numChildren. And then the last parameter would be schoolName (or event.target.selectedItem.label). Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Manuel Saint-Victor, M.D. Sent: Thursday, July 21, 2005 11:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Dynamic tab binding Labels Hi, I'm trying to have tabs generate when items are chosen from a List Component. So far I am able to get the tabs to come up and everything but what I would like to do is have each tab be bound to the selectedItem such that the label of the tab will be the same as the label of the selectedItem from the list. This is what I have right now: } function createSchoolTab(event){ var schoolName=event.target.selectedItem.label; var newTab:mx.core.UIObject=mx.core.UIObject(schoolsTabNav.createTab(SchoolView,{event.target.selectedItem.label},'The Canvas')); schoolsTabNav.selectedChild=newTab; } and this would be the errors that I get back: line 15 ': unexpected line 16 This statement is not permitted in a class definition line 21 unexpected '}' encountered Can anyone help me with this. Thanks Mani -- Live as if you were to die tomorrow. Learn as if you were to live forever. -- Mahatma Gandhi -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Global Variable or session Attribute
Are you talking about on the server or in the flex app? In the Flex app you can set the variable on your main application and everyone can access it via Application.application.yourVar. As far as the server for RemoteObject session access check the docs for flashgateway.Gateway.getHttpRequest() Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of jaya_selva Sent: Thursday, July 21, 2005 12:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Global Variable or session Attribute Hi, I want to set a variable which can be accessed from all the components (Session scope) and can be modified from any place. I want to maintain whether the user is logged in , ie when the user logs in I want to set the flag to true , and I should be able to check this flag from all my components in the application. I also need to set the Roles for the user in the global session scope. Is there any way to acces the session object and set attribute in it from my flex code. Thank You, Jay. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] mx:Panel and border_mc
Im the wrong guy to talk about components. Only other _mc I saw was the overlay_mc. Maybe try setting its alpha to 0 and see what happens? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Barnes Sent: Thursday, July 21, 2005 6:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] mx:Panel and border_mc This ones for the Framework Code-monkeys (btw i use the term code-monkey in a positive way not a negative). I'm basically re-working how the mx:Panel bordering works as I have a custom titlebackground asset loaded in its place that doesn't conform to rectangle shaping. I've managed to figure out how to move the boder_mc below the back_mc, along with adjusting the view metrics to suite. It all seems to work, except when i use the borderThickness=1, what happens is somehow *yet to be determined* a border is drawn around the entire panel, its origions unknown. I've tried to figure out where its being drawn and how but can't seem to find out? I'm assuming it has something to do with border_mc (ie mx.skins.halo.RectBorder), but yet it also appears to be outside the border_mc. in that, i put this in layoutChrome() border_mc._alpha = 0; back_mc._alpha = 0; controlBar_mc._alpha = 0; floatingBorder_mc._alpha = 0; all hide their respective visuals, except this outside border persists. Could someone shed some light onto how borderThickness gets drawn? am i looking in the right class? (ie mx.skins.halo.RectBorder) -- Regards, Scott Barnes http://www.mossyblog.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Writing a Custom Data Provider
This sounds like youre implementing a TreeDataProvider more than a regular list DataProvider (if youre seeing calls to getChildNodes). The list/tree will subscribe automatically to the modelChanged event. Youre right that getParent() is required for the TreeDataProvider, I think the livedocs might have been updated to reflect it. I believe there is an example of a custom tree data provider out there but I couldnt speak of it for sure. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of zhongtie Sent: Thursday, July 21, 2005 6:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Writing a Custom Data Provider Hi, I am trying to write a custome data provider for my list control. My data is not an array, so I am trying to rewrite all those APIs. Here are some questions: 1. is modelChanged event subscription handled by the flex framework? In another word, do I need to do any thing besides calling dispatchEvent({target:this, type:modelChanged, eventName:...)? 2. Is there any good example I could follow? I tried this example (http://www.macromedia.com/support/documentation/en/flex/1/mixin/mixin3.html), but ran into many issues, such as: a. getParent() required by the compiler. It's not in the ASDoc, however; b. I saw many warnings in the log: Warning: getChildNodes is not a function Warning: __get__editable is not a function Warning: hasChildNodes is not a function Warning: getParent is not a function ... c. The GUI doesn't update itself unless I hover my mouse around. Any advice will be greatly appreciated! Tim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] How to get dynamically visible or enabled a control
I think youre going to need to do it later than creationComplete. Basically in your resultHandler function youre going to need to go through all your controls and call controlbehavior, Im guessing that the RemoteObject result is coming after the control has been created. Function resultHandler(result) { iniVal = result; controlBehavior(textID, iniVal.ISOLATIONTOITURESTATUS); //etc } From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ghislain Simard Sent: Thursday, July 21, 2005 7:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to get dynamically visible or enabled a control I have a function which as a role of getting dynamically visible or not a control. The decision of that behavior is coming from a value sent by RemoteObjectBut it doesn't want to do what I am looking for. Any help would be appreciated. Thanks CODE: As I will have to get a behavior in a form for each controls, I need to get a CreationComplete function on each of these controls. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml initialize=toitureObject.affichage.send() mx:RemoteObject id=toitureObject endpoint=http://132.156.178.59/flashservices/gateway source=EEwizard3.G.toit_nf mx:method name=affichage result=resultHandler(event.result) mx:arguments zoneID1/zoneID /mx:arguments /mx:method /mx:RemoteObject mx:Script ![CDATA[ var iniVal:Object; function resultHandler(result){ iniVal = result; } function controlBehavior(target:Object,x:String):Void{ switch (Number(x)){ case 0: target.visible = true; target.enabled = true; break; case 1: target.visible = true; target.enabled = false; break; case 2: target.visible = false; break; } } ]] /mx:Script mx:TextInput id=textID text={iniVal.ISOLATIONTOITURESTATUS} creationComplete=controlBehavior (textID,iniVal.ISOLATIONTOITURESTATUS)/ /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] problem in using web authentication using different website.
I am using HTTPService to do authentication and also to retrieve the data. Following is the part of the code.. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* height=661 autoLayout=false marginTop=0 marginLeft=0 marginRight=0 marginBottom=0 mx:Script ![CDATA[ //Call getuser, which calls webauth verify to check the current user function auth() { getuser.send({callap:mx.core.Application.application._url, logout: http://xxx.xxx}); } function auth_check() { //if the current user is not authenticated by webauth status will equal fail if (getuser.result.auth.status == fail) { //you should now redirect the user to the login page getURL(getuser.result.auth.redirect, _self); } else{ getData(); } } function getData(){ var myID = getuser.result.auth.asurite; lookup.send({myid: myID, user: xxx, passwd: x}); popCustomerForm_MyID(); } function popCustomerForm_MyID(customerData){ // Populate the fields in customerpanel customerinfostack.selectedChild = customerpanel; custfname.text = customerData.values.givenname; custlname.text = customerData.values.sn; custemail.text = customerData.values.mail; custphone.text = customerData.values.phonenumber; custdept.text = customerData.values.college; custcollege.text = customerData.values.department; contfname.text = customerData.values.givenname; contlname.text = customerData.values.sn; contemail.text = customerData.values.mail; contphone.text = customerData.values.phonenumber; } ]] /mx:Script mx:HTTPService id=getuser method=POST url=http://flex.xx.xxx.xxx/lxxx/l.php; useProxy=false result=auth_check()/ mx:HTTPService id=lookup url=http://xxx.xx.xxx.xxx/lxxx/l.php; fault=faultHandler(event.fault.faultstring, event.fault.faultcode) result=popCustomerForm(lookup.result) method=POST showBusyCursor=true useProxy=false / mx:ViewStack id=customerinfostack visible=true selectedIndex=0 width=884 height=559 mx:Panel width=865 title=Login Information id=loginpanel mx:Button label=login click=auth()/ /mx:Panel mx:Panel title=Customer information id=customerpanel width=714 height=581 verticalAlign=middle horizontalAlign=center ---This panel has form that needs to be populated /mx:Panel /mx:ViewStack /mx:Application On 7/21/05, Matt Chotin [EMAIL PROTECTED] wrote: How are you doing the authentication? Are you using getURL to navigate the browser? Or are you using an HTTPService to retrieve the data and using basic authentication? I'm not sure how your app is set up here. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of juyalmanu Sent: Thursday, July 21, 2005 4:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] problem in using web authentication using different website. Dear All, I am havig problem with web authentication service along with flex. The idea is very simple. 1. I start a flex application (I am using viewstack), the first view in the stach appear with two buttons, one for members and one for guest. 2. if I am a member, I click a log in button and it takes me to a URL where I will authenticate myself (It works fine). 3. Once I authenticate myself, I should be able to go to the next view in the stack, where all my information will retrieved from the database and all textboxes will be populated. (I am able to authenticate and able to retrieve the information but it happens only if I set the call authentication function on application's initialize function. In that case I don't need first view in the stack (i.e. the view with two buttons). I'll automatically go to the web authentication URL upon the start of the application. ButI do need the first view). In my opinion what happening is that after completing the authentication (after coming back from web authentication URL), the application is again starting with first view. However I want it to start with the second view with the populated text boxes. can anyone give me some idea please. --Manu -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List
RE: [flexcoders] Re: Writing a Custom Data Provider
Well they take two different data providers. So try to get one working first and then do the other one later (and youll want two different data provider classes). Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of zhongtie Sent: Thursday, July 21, 2005 10:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Writing a Custom Data Provider Thanks for your quick reply. You are right, I am trying to implement my own data providers for both list view and tree view -- based on the same data model. So far I have been walking in dark :( --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: This sounds like you're implementing a TreeDataProvider more than a regular list DataProvider (if you're seeing calls to getChildNodes). The list/tree will subscribe automatically to the modelChanged event. You're right that getParent() is required for the TreeDataProvider, I think the livedocs might have been updated to reflect it. I believe there is an example of a custom tree data provider out there but I couldn't speak of it for sure. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of zhongtie Sent: Thursday, July 21, 2005 6:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Writing a Custom Data Provider Hi, I am trying to write a custome data provider for my list control. My data is not an array, so I am trying to rewrite all those APIs. Here are some questions: 1. is modelChanged event subscription handled by the flex framework? In another word, do I need to do any thing besides calling dispatchEvent({target:this, type:modelChanged, eventName:...)? 2. Is there any good example I could follow? I tried this example (http://www.macromedia.com/support/documentation/en/flex/1/mixin/mixin3. html), but ran into many issues, such as: a. getParent() required by the compiler. It's not in the ASDoc, however; b. I saw many warnings in the log: Warning: getChildNodes is not a function Warning: __get__editable is not a function Warning: hasChildNodes is not a function Warning: getParent is not a function ... c. The GUI doesn't update itself unless I hover my mouse around. Any advice will be greatly appreciated! Tim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: How to get dynamically visible or enabled a control
Bingo! it works! Thanks --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I think you're going to need to do it later than creationComplete. Basically in your resultHandler function you're going to need to go through all your controls and call controlbehavior, I'm guessing that the RemoteObject result is coming after the control has been created. Function resultHandler(result) { iniVal = result; controlBehavior(textID, iniVal.ISOLATIONTOITURESTATUS); //etc } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ghislain Simard Sent: Thursday, July 21, 2005 7:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to get dynamically visible or enabled a control I have a function which as a role of getting dynamically visible or not a control. The decision of that behavior is coming from a value sent by RemoteObjectBut it doesn't want to do what I am looking for. Any help would be appreciated. Thanks CODE: As I will have to get a behavior in a form for each controls, I need to get a CreationComplete function on each of these controls. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; initialize=toitureObject.affichage.send() mx:RemoteObject id=toitureObject endpoint=http://132.156.178.59/flashservices/gateway; source=EEwizard3.G.toit_nf mx:method name=affichage result=resultHandler(event.result) mx:arguments zoneID1/zoneID /mx:arguments /mx:method /mx:RemoteObject mx:Script ![CDATA[ var iniVal:Object; function resultHandler(result){ iniVal = result; } function controlBehavior(target:Object,x:String):Void{ switch (Number(x)){ case 0: target.visible = true; target.enabled = true; break; case 1: target.visible = true; target.enabled = false; break; case 2: target.visible = false; break; } } ]] /mx:Script mx:TextInput id=textID text={iniVal.ISOLATIONTOITURESTATUS} creationComplete=controlBehavior (textID,iniVal.ISOLATIONTOITURESTATUS)/ /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/