RE: [flexcoders] Question about error message
Hi, you get this error message when you have more than 32KB code in a block. For example: if(..) { //more than 32 kb code } function foo() { //32 KB code } similarly in other types of blocks.. Try to refactor your code... Search the archives of this list for related discussion... -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]Sent: Tuesday, May 17, 2005 10:26 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Question about error message Ok I was writing a rather large mxml file one that is about 62KB, its never given me any problems with the amount of memory before and I actually removed like about a few hundred lines of code to make the application smaller. So what has me so confused is why am I getting a message saying its exceeded the 32K span? Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] BiDi/right-to-left support in Flex
A TextField, which is the underlying Flash Player object rendering the text, does not support right-to-left scripts such as Hebrew or Arabic. Are you developing applications for these markets? Can you let us know about the demand for them, to help our player team judge the importance of this feature? - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jruud68 Sent: Monday, May 16, 2005 10:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] BiDi/right-to-left support in Flex I was just browsing through the code for mx:TextInput, trying to figure out if it would be possible to add right-to-left support to the basic Flex input controls (like mx:TextInput). However, I suspect there is probably some reason why this wasn't just added to Flex in the first place... Has anybody tried to implement this themselves, and did you have any luck? Thanks, John Yahoo! Groups Links 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] BiDi/right-to-left support in Flex
Hi, Macromedia Flash Player doesn't have complete support for RTL. Macromedia Flex applications run in Macromedia Flash Player, so it's not Flex issue. Thanks -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jruud68 Sent: Tuesday, May 17, 2005 10:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] BiDi/right-to-left support in Flex I was just browsing through the code for mx:TextInput, trying to figure out if it would be possible to add right-to-left support to the basic Flex input controls (like mx:TextInput). However, I suspect there is probably some reason why this wasn't just added to Flex in the first place... Has anybody tried to implement this themselves, and did you have any luck? Thanks, John Yahoo! Groups Links 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] cell render problem
When are you calling initCellRenderer? May be data has not yet arrived and this functiong gets called. Are you able to see data in initCellRenderer function? -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Tuesday, May 17, 2005 2:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] cell render problem Hi, I am trying to create a combobox cell renderer. In my mxml file I am trying to set a httpserivce as the dataprovider for the cell renderer note:: clTypeSrv is my HTTPService and clTypeSrv.send() is called on application initilize. private function initCellRenderer() : Void { ComboBoxCellRenderer.dataProvider = clTypeSrv.result.types.type; } this is creating a empty combobox Note: There is data coming back from the httpserivce as I am using it in another place when I set it as static values I can see the combobox. i.e., ComboBoxCellRenderer.dataProvider = [ Development Director, Technical Director, Technical Architect ]; How can I make my combobox accept a httpservice as a dataprovider. Rajesh J Yahoo! Groups Links 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] XML vs Model?
I've got a external source that pulls in XML file (config). Now, I'm having my own internal debate as to which of the two is betterere? I've noticed no real signficant performance gains (via profiler) with using either, the only thing it kind of brings to the table is that you can access a node XYZ levels deep by using property chains (parent.child.infant.siblings). Thats fine, but this will be parsed once-off, and i've found that i've i go the XML route (ie writing my own specific parser, it tends to be less work. (in that i've found that you have nodes in your XML that are using the same name, but can be either 1 or more, you have to test to see if the node in question is an array, otherwise its a literal object and treat it as such - when using model vs childNodes approach via XML (which is always array). What's folks here input on pro's / con's of XML vs Model? -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Cairngorm + Tartan Thread
Good idea Allen!On 5/16/05, Allen Manning [EMAIL PROTECTED] wrote: Neil, Could you unzip the directory and then rename all of the sub-zips to 'zippo', and email them to us as an attachment if you get the time. I think that might trick the anti-virus software. Otherwise, if you could email it to me offlist, then I will post it up on a website. I'm sure we will get there somehow. :) Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of dave buhlerSent: 16 May 2005 14:54To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm + Tartan Thread Hi Allen,I had the same problem, too, searching back to January.Neil,I think there were 3 zips, total. TartanUI.zip TartanFlex.zip TartanCF.zip The link to the TartanFramework download site does not include a working example of Flex with Tartan. Oddly, it doesn't include a working example of Flash Remoting with Tartan, either.Agha's examples included a working example of the framework and right middleware (CF) for my purposes.Dave On 5/16/05, Allen Manning [EMAIL PROTECTED] wrote: I had a good look through the flexcoders Yahoo group website and had a difficult time searching back to January when this message was posted. I'll keep looking around and if I find the zip, I'll postit up here. Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Cliff MeyersSent: 16 May 2005 13:10To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm + Tartan Thread Yeah, I'd love to get my greedy mits on those too if they're availablesomewhere.-CliffOn 5/16/05, dave buhler [EMAIL PROTECTED] wrote: Thanks very much Allen. It is! Are Agha's Zips still available? Dave On 5/16/05, Allen Manning [EMAIL PROTECTED] wrote:Hello David, Is this the one you are looking for? http://groups.yahoo.com/group/flexcoders/message/8408 HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of dave buhler Sent: 16 May 2005 08:43 To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm + Tartan Thread Does somoene have a link to the thread where one of our FlexCoders had posted a sample of Cairngorm being used with Tartan?Thanks, David Buhler Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Datagrid word wrap- it isnt working.
You have'nt read all the replies to your question, have you? :) Anyways, specify the wordwrap in the mx:DataGridColumn as see below. mx:DataGrid id="dg" width="680" height="320" variableRowHeight="true" mx:columns mx:Array mx:DataGridColumn columnName="Total" headerText="Total reserves" wordWrap="true" / have'nt And there are quite a few posts that explain how you could split the variables to 2 lines as well! Sree Hai, I tried giving variableRowHeight to true and wordwrap=true but still it doesnt work. pls help me with this.. my code is: mx:DataGrid id="dg" width="680" height="320" variableRowHeight="true" wordWrap="true" mx:columns mx:Array mx:DataGridColumn columnName="Total" headerText="Total reserves" / I want the column to display "total" in the first line of the header and "reserves" in the next line.. Matt Chotin [EMAIL PROTECTED] wrote: Have you set variableRowHeight to true? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of nithya karthik Sent: Sunday, May 15, 2005 10:14 PM To: flexcoders Subject: [flexcoders] Datagrid word wrap- it isnt working. Hai, when i give wordwrap="true" in a datagrid, it isnt wraping the text... May i know the reason and the way to rectify it? I used something like this: mx:DataGridColumn columnName="Total" headerText="Total reserves" wordWrap="true"/ I want 'Total' in the first line and 'reserves' in the next line of the header.. How to do this? Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: BiDi/right-to-left support in Flex
Gordon, we are developing a prototype of an application that would run on a number of different languages, including RTL languages (arabic is likely the most urgent). The lack of RTL support may be a deal-breaker, but it would be helpful if we could tell our potential customer that RTL support is coming (and give them as much information about it as possible). Thanks, John --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: A TextField, which is the underlying Flash Player object rendering the text, does not support right-to-left scripts such as Hebrew or Arabic. Are you developing applications for these markets? Can you let us know about the demand for them, to help our player team judge the importance of this feature? - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jruud68 Sent: Monday, May 16, 2005 10:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] BiDi/right-to-left support in Flex I was just browsing through the code for mx:TextInput, trying to figure out if it would be possible to add right-to-left support to the basic Flex input controls (like mx:TextInput). However, I suspect there is probably some reason why this wasn't just added to Flex in the first place... Has anybody tried to implement this themselves, and did you have any luck? Thanks, John Yahoo! Groups Links 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 Google Maps
I came across something like this on http://www.flexauthority.com/samplesIndex.cfm Look under Advanced tab. Indy On 5/17/05, Corey [EMAIL PROTECTED] wrote: Hi All, Has anyone used Flex as a front end for Google Maps? I was thinking of giving this a stab but I have no idea how hard it might be or if I should even try it? Any thoughts on this idea? Thanks, COREY Yahoo! Groups Links 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] help on HTTP service
not able to send data from the mxml to the jsp page i want create a page which takes the values like LOGIN ID and PASSWORD to the another JSP page( this pages validates the loginid from my database) im using the following code : ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:HTTPService id=foo method=POST url=http://pjainserver:8101/login/loginvalidate.jsp; mx:request pi_user_id{username.text}/pi_user_id pi_passwd{password.text}/pi_passwd /mx:request /mx:HTTPService mx:Form defaultButton=mySubmitButton mx:FormItem label=Username mx:TextInput id=username width=100/ /mx:FormItem mx:FormItem label=Password mx:TextInput id=password width=100 password=true/ /mx:FormItem mx:FormItem mx:Button id=mySumitButton label=Login click=foo.send () / /mx:FormItem /mx:Form /mx:Application this is returning a error HTTP SERVICE FAULT. A start tag had nocorresponding end tag note : my LOGINVALIDATE.JSP also contain html tags. wht to do now 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: cell render problem
It appears that you are value that you are trying to setup agains t the dataProvider is incorrect. I've found that the best way to debug such issues is to turn on debugging for http-services in flex-config.xml, and then look at the flash log for the results returned. Alternately, if you use Flex Builder, setup breakpoint within the function where you set setting the dataprovider value, and view the variables available at that point. Indy --- In flexcoders@yahoogroups.com, Rajesh Jayabalan [EMAIL PROTECTED] wrote: Hi, I am trying to create a combobox cell renderer. In my mxml file I am trying to set a httpserivce as the dataprovider for the cell renderer note:: clTypeSrv is my HTTPService and clTypeSrv.send() is called on application initilize. private function initCellRenderer() : Void { ComboBoxCellRenderer.dataProvider = clTypeSrv.result.types.type; } this is creating a empty combobox Note: There is data coming back from the httpserivce as I am using it in another place when I set it as static values I can see the combobox. i.e., ComboBoxCellRenderer.dataProvider = [ Development Director, Technical Director, Technical Architect ]; How can I make my combobox accept a httpservice as a dataprovider. Rajesh J 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] New Moderation Policy - FYI
All, Yesterday we realised that yahoogroups now supports a "moderate first post" option to the flexcoders mailing list; this means when someone joins the list, their first post will have to get moderator approval before they are allowed to post again. This should hopefully curtail the number of "Oracle 10g Jobs in Chennai" posts that have been coming through to the list from recruitment spams in recent weeks. The flipside is that your first post to the list may take several hours (if the moderators are in bed) to appear. I trust that this is acceptable, for the reduction of (admittedly low volumes right now) spam to the list. Best, Steven -- Steven WebsterTechnical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately.Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: BiDi/right-to-left support in Flex
this has been requested in every version of the flash player recently and i am not expecting it in the next release either :( On 5/17/05, jruud68 [EMAIL PROTECTED] wrote: Gordon, we are developing a prototype of an application that would run on a number of different languages, including RTL languages (arabic is likely the most urgent). The lack of RTL support may be a deal-breaker, but it would be helpful if we could tell our potential customer that RTL support is coming (and give them as much information about it as possible). Thanks, John --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: A TextField, which is the underlying Flash Player object rendering the text, does not support right-to-left scripts such as Hebrew or Arabic. Are you developing applications for these markets? Can you let us know about the demand for them, to help our player team judge the importance of this feature? - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jruud68 Sent: Monday, May 16, 2005 10:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] BiDi/right-to-left support in Flex I was just browsing through the code for mx:TextInput, trying to figure out if it would be possible to add right-to-left support to the basic Flex input controls (like mx:TextInput). However, I suspect there is probably some reason why this wasn't just added to Flex in the first place... Has anybody tried to implement this themselves, and did you have any luck? Thanks, John Yahoo! Groups Links Yahoo! Groups Links -- j:pn 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] cell render problem
If Abdul's query is true about the data arriving later ... you should maybe call the initCellRenderer later. I assume you are calling initCellRenderer on initialize of the application. (I assumed so since there are traces of Steven's post (http://www.richinternetapps.com/archives/72.html) in your post. Try the following. 1. Call clTypeSrv.send() in the application tag 2. Call a function populateComboBox() in the HTTPService tag 3. Populate the values to the ComboBoxRenderer through the script (this ensures that the population happens after data is retrieved) 4. Maybe and a slight maybe that "type" in "clTypeSrv.result.types.type" is a reserved word and is creating a problem! (somebody with better knowledge on this can clarify!) ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" initialize="clTypeSrv.send()" mx:Script ![CDATA[ function populateComboBox () { var comboBoxValues = clTypeSrv.result.types.type; ComboBoxCellRenderer.dataProvider = comboBoxValues; // You do not have to use the initCellRenderer now ... you are doing it in the above line } ]] /mx:Script mx:HTTPService id="clTypeSrv" result="populateComboBox()" mx:request ... /mx:request /mx:HTTPService .. mx:DataGrid ... /mx:DataGrid /mx:Application Regards Sree Abdul Qabiz wrote: When are you calling initCellRenderer? May be data has not yet arrived and this functiong gets called. Are you able to see data in initCellRenderer function? -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rajesh Jayabalan Sent: Tuesday, May 17, 2005 2:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] cell render problem Hi, I am trying to create a combobox cell renderer. In my mxml file I am trying to set a httpserivce as the dataprovider for the cell renderer note:: clTypeSrv is my HTTPService and clTypeSrv.send() is called on application initilize. private function initCellRenderer() : Void { ComboBoxCellRenderer.dataProvider = clTypeSrv.result.types.type; } this is creating a empty combobox Note: There is data coming back from the httpserivce as I am using it in another place when I set it as static values I can see the combobox. i.e., ComboBoxCellRenderer.dataProvider = [ "Development Director", "Technical Director", "Technical Architect" ]; How can I make my combobox accept a httpservice as a dataprovider. Rajesh J Yahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: cell render problem
That might also be the case, so there are two reasons it is not working: 1) function to populate combobox being called before data arrives from server 2) dataProvider is not being set to right type. I have doubt in (1), if it is fine, then you can go ahead anc check for second option.. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of indiver Sent: Tuesday, May 17, 2005 2:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: cell render problem It appears that you are value that you are trying to setup agains t the dataProvider is incorrect. I've found that the best way to debug such issues is to turn on debugging for http-services in flex-config.xml, and then look at the flash log for the results returned. Alternately, if you use Flex Builder, setup breakpoint within the function where you set setting the dataprovider value, and view the variables available at that point. Indy --- In flexcoders@yahoogroups.com, Rajesh Jayabalan [EMAIL PROTECTED] wrote: Hi, I am trying to create a combobox cell renderer. In my mxml file I am trying to set a httpserivce as the dataprovider for the cell renderer note:: clTypeSrv is my HTTPService and clTypeSrv.send() is called on application initilize. private function initCellRenderer() : Void { ComboBoxCellRenderer.dataProvider = clTypeSrv.result.types.type; } this is creating a empty combobox Note: There is data coming back from the httpserivce as I am using it in another place when I set it as static values I can see the combobox. i.e., ComboBoxCellRenderer.dataProvider = [ Development Director, Technical Director, Technical Architect ]; How can I make my combobox accept a httpservice as a dataprovider. Rajesh J Yahoo! Groups Links 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] help on HTTP service
Hi, Make sure LOGINVALIDATE.JSP has XHTML rather than HTML i.e. make sure all tags have end tags or closed properly. You can return a xml string from LOGINVALIDATE.JSP. It's better to create a separate LOGINVALIDATE.JSP for flex only, I mean if you are using LOGINVALIDATE.JSP for a html front-end also then it might not work with HTTPService. HTTPService expects result in form of XML or LoadVars(if you specify that option). For example: ##LOGINVALIDATE.JSP## % //process uid and password //set userID and bLoginSucceeded % LOGIN_RESULT USER_ID%=userID%/USER_ID VALID%=bLoginSucceeded%/VALID /LOGIN_RESULT In flex app, you can access response in following way, suppose hs id of HTTPService tag: hs.result.LOGIN_RESULT.USER_ID hs.result.LOGIN_RESULT.VALID -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gaurav verma Sent: Tuesday, May 17, 2005 11:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] help on HTTP service not able to send data from the mxml to the jsp page i want create a page which takes the values like LOGIN ID and PASSWORD to the another JSP page( this pages validates the loginid from my database) im using the following code : ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:HTTPService id=foo method=POST url=http://pjainserver:8101/login/loginvalidate.jsp; mx:request pi_user_id{username.text}/pi_user_id pi_passwd{password.text}/pi_passwd /mx:request /mx:HTTPService mx:Form defaultButton=mySubmitButton mx:FormItem label=Username mx:TextInput id=username width=100/ /mx:FormItem mx:FormItem label=Password mx:TextInput id=password width=100 password=true/ /mx:FormItem mx:FormItem mx:Button id=mySumitButton label=Login click=foo.send () / /mx:FormItem /mx:Form /mx:Application this is returning a error HTTP SERVICE FAULT. A start tag had nocorresponding end tag note : my LOGINVALIDATE.JSP also contain html tags. wht to do now Yahoo! Groups Links 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] XML vs Model?
They are similar things IMO. If you specify a source file for XML or Model tag, source (xml)file is compiled into swf. So no loading on runtime but a large initial swf size. P I think, Model should be good at performance because it is simple Object not a XMLNode. Let's see, what other people say... -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Barnes Sent: Tuesday, May 17, 2005 12:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] XML vs Model? I've got a external source that pulls in XML file (config). Now, I'm having my own internal debate as to which of the two is betterere? I've noticed no real signficant performance gains (via profiler) with using either, the only thing it kind of brings to the table is that you can access a node XYZ levels deep by using property chains (parent.child.infant.siblings). Thats fine, but this will be parsed once-off, and i've found that i've i go the XML route (ie writing my own specific parser, it tends to be less work. (in that i've found that you have nodes in your XML that are using the same name, but can be either 1 or more, you have to test to see if the node in question is an array, otherwise its a literal object and treat it as such - when using model vs childNodes approach via XML (which is always array). What's folks here input on pro's / con's of XML vs Model? -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com Yahoo! Groups Links 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: embed flash symbol problem
Thanks, It worked just fine. João Fernandes --- In flexcoders@yahoogroups.com, Wilfred LEUNG [EMAIL PROTECTED] wrote: Use this syntax: [Embed(source=/images/icons/mensagens.swf, symbol=icon_info1)] var icon_info:String; Wilfred -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of joao_m_fernandes Sent: Monday, May 16, 2005 9:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] embed flash symbol problem Hi there, I have a AS file that have all my icons (gif format) and now I'm trying to set new ones but in swf format like this: [Embed(source=/images/icons/mensagens.swf#icon_info1)] var icon_info:String; when I run my aplication I get this error: Error D:\sites\intranet 2\foot\component_entidade-generated.as:2 Failed to find resource: /images/icons/mensagens.swf#icon_info1 but if I this code mx:Image source=@Embed('/images/icons/mensagens.swf#icon_info1') / It works just fine. Any ideia? Is there any special property to be set inside flash for exporting? thanks, João Fernandes Yahoo! Groups Links 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] Serious corruption in Flex-generated SWF
Morning all, We're having severe issues with components within a Flex-generated SWF being displayed corrupt. The problem is that this doesn't happen all the time, and I can't seem to find a reproducable method of forcing the corruption. Examples of the sort of thing we're seeing can be seen here: http://kryten.rawnet.com/flex/flex-corrupt.html All corruption occurs at the same time (i.e. when one thing goes, they all go), but not all components are affected. The problem only seems to affect components displayed within an accordian, but again not all contained components are effected. If you look at example 1 on the page above, the items under edit existing... are corrupt, whereas those under the create new... heading are displayed fine. Does anyone have any idea what's going on here? Has anyone seen this before? Thanks, Tim. -- --- Badpen Tech - CF and web-tech: http://tech.badpen.com/ --- RAWNET LTD - independent digital media agency We are big, we are funny and we are clever! New site launched at http://www.rawnet.com/ --- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. --- 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] Image not being resized in mx:Image tag
Hello, I'm having trouble with images not resizing to fit the mx:Image tag specfied (and also with SWFs not resizing to fit the appropriate mx:Loader). An example can be seen at the following URL, where the image (green boxes) *should* be contained within the grey box top right: http://kryten.rawnet.com/flex/flex-corrupt.html#lgimage The MXML to output the image is as follows: mx:Image id=assetPreview source={assetURL + asset.assetURL} scaleContent=true maintainAspectRatio=true width=200 height=120 borderStyle=solid horizontalAlign=center / Extra information: - assetURL is a simple string like http://server/path/ - asset is an instance of an AS class - asset.assetURL is a dynamic property of the asset instance, with an appropriate changeEvent defined Any idea why this should be the case? Thanks, Tim. -- --- Badpen Tech - CF and web-tech: http://tech.badpen.com/ --- RAWNET LTD - independent digital media agency We are big, we are funny and we are clever! New site launched at http://www.rawnet.com/ --- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. --- Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] How to render cell to be in edit mode dynamically through cell renderer
I am trying to use a Custom Date Cell Renderer which goes in edit mode only when cell gains focus on it. Otherwise a label displays formatted Date value. Following is the code for the DateRenderer :- import mx.core.UIComponent import mx.core.UIObject import mx.controls.DateField import mx.controls.Label import mx.controls.Alert import mx.formatters.DateFormatter class common.control.DateRenderer extends UIComponent{ var dateObj:DateField; var label:Label; var dateFormat: DateFormatter; var listOwner : MovieClip; var getDataLabel : Function; var getCellIndex : Function; var __value; public function DateRenderer(){ dateFormat = new DateFormatter(); dateFormat.formatString=MM-DD-; this.addEventListener(focusIn, this); this.addEventListener(focusOut, this); } function createChildren(Void) : Void{ super.createChildren(); createClassObject( Label, label, 1, {owner:this}); label.width=80; } //Display date field for editing on focus. function focusIn() : Void { createClassObject( DateField, dateObj, 2, {owner:this}); dateObj.width=80; dateObj.dateFormatter = this.formatDate; dateObj.selectedDate = __value; dateObj.addEventListener(change, this); label.visible = false; dateObj.visible = true; } //Remove date field and make label visible again. function focusOut() : Void { dateObj.visible = false; label.visible = true; destroyObject(dateObj); } //Format function function formatDate(itemDate){ return dateFormat.format(itemDate); } function setValue( str:String, item:Object, sel:Boolean ) : Void{ if(item != undefined){ label.text= formatDate( item[getDataLabel()]); __value = item[getDataLabel()]; label.visible = true; } } function getValue() : String { return __value; } function getPreferredWidth(Void) : Number{ return 80; } function getPreferredHeight(Void) : Number{ return 30; } function change() { listOwner.editField(getCellIndex().itemIndex, getDataLabel(), dateObj.selectedDate); __value = dateObj.selectedDate; // Fire Cell edit event for the DataGrid on date change listOwner.dispatchEvent({type:cellEdit, columnIndex:getCellIndex().columnIndex, itemIndex:getCellIndex().itemIndex}); } } Intially label displays the formatted date. But on clicking on the cell default editor(textfield) is displayed. Can somebody please help on what could be causing this problem. Can i create my own custom editor just like the default text editor? Thanks in advance, Pradeep 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] Disappearing images in custom cell renderer
What is it with me and images at the moment...? Anyway, I'm having trouble with displaying thumbnails in a custom cell renderer within a TileList component. The code for the cell renderer is displayed below (AssetThumbnail.mxml) and the line that defines the TileList is also shown (ThumbnailView.mxml). When the user clicks on a given item, a search is performed which populates the aAssetSearch array with the appropriate Asset instances to display thumbnails for; this is then bound to the TileList as the dataProvider. When the list of images are displayed, one of the following happens: 1. the thumbnail displays correctly; 2. displays correctly, then after a second or so vanishes; 3. nothing is displayed. My guess is that #3 is actually #2 happening very quickly so the in between redraw doesn't actually happen. I can often get the missing images to redisplay by performing a new search and then going back to the original, at which point the original search's assets have already been pulled back from the database and cached. Sometimes this can be achieved by scrolling the TileList up and down to redraw the appropriate cells. Neither of these two methods either works 100% of the time, and quite often the cells remain blank. This pointed me towards the thought that there was something strange going on with the Asset instances that meant they weren't returning the appropriate URL for the image, or it was being returned and then reset. However, I tried adding a trace into the dynamic get function for the thumbnail URL (see code for Asset.as below) and all looks fine (i.e. it returned the URL correctly). Has anyone got any idea why this may be happening? Thanks, Tim. ThumbnailView.mxml: --- !-- aAssetSearch is an array of Asset instances -- mx:TileList id=browseList width=100% height=100% itemWidth=120 itemHeight=120 dataProvider={aAssetSearch} cellRenderer=AssetThumbnail / AssetThumbnail.mxml: ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml; width=100% height=100% horizontalAlign=center verticalAlign=middle toolTip={asset.title} mx:Script ![CDATA[ // define the variables we'll need here private var asset:Asset; // define the setValue function that's needed function setValue(sLabel:String, oItem:Object, sState:String) { // only display something if this cell has content if (oItem == undefined) { visible = false; return; } // content here so display it visible = true; // set item data so it's available elsewhere for binding asset = Asset(oItem); // and call to redraw appropriately invalidate(); } // set the preferred height and width properties for the cell function getPreferredHeight():Number { return 120; } function getPreferredWidth():Number { return 120; } ]] /mx:Script !-- display the thumbnail and the label -- mx:Image id=thumb source={asset.thumbURL} / mx:Text id=title selectable=false text={asset.title} width=100% height=100% / /mx:VBox Asset.as [ChangeEvent(thumbURLChanged)] public function get thumbURL(): String { return AssetManager.getInstance().getAssetPath(_thumbfile, true, thumb); } public function set thumbURL(sURL: String): Void { dispatchEvent( {type:thumbURLChanged} ); } -- --- Badpen Tech - CF and web-tech: http://tech.badpen.com/ --- RAWNET LTD - independent digital media agency We are big, we are funny and we are clever! New site launched at http://www.rawnet.com/ --- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. --- 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 Google Maps
corey, Manish did this a while back and posted the sample on Flex Authority. Look in the Samples section under Advanced. Jeff http://www.flexauthority.com - Original Message - From: Corey [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, May 16, 2005 10:13 PM Subject: [flexcoders] Flex and Google Maps Hi All, Has anyone used Flex as a front end for Google Maps? I was thinking of giving this a stab but I have no idea how hard it might be or if I should even try it? Any thoughts on this idea? Thanks, COREY Yahoo! Groups Links 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: BiDi/right-to-left support in Flex
Hi, We understand the need for RTL/Bi-Di text and want to get this into the Flash Player as soon as possible. However, it is not in the upcoming release, so it will be some time before this can happen. Please don't make any plans assuming we will be able to make it work. I know this is unfortunate for a number of uses of Flex and we want to fix it. But it is a significant engineering change to the Flash Player and we can't just squeeze it in. I can't make any predictions yet about when we will get it in, but for your planning purposes certainly please do not expect it in the next 12 months. :( Regards, David Macromedia -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jruud68 Sent: Tuesday, May 17, 2005 3:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: BiDi/right-to-left support in Flex Gordon, we are developing a prototype of an application that would run on a number of different languages, including RTL languages (arabic is likely the most urgent). The lack of RTL support may be a deal-breaker, but it would be helpful if we could tell our potential customer that RTL support is coming (and give them as much information about it as possible). Thanks, John --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: A TextField, which is the underlying Flash Player object rendering the text, does not support right-to-left scripts such as Hebrew or Arabic. Are you developing applications for these markets? Can you let us know about the demand for them, to help our player team judge the importance of this feature? - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jruud68 Sent: Monday, May 16, 2005 10:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] BiDi/right-to-left support in Flex I was just browsing through the code for mx:TextInput, trying to figure out if it would be possible to add right-to-left support to the basic Flex input controls (like mx:TextInput). However, I suspect there is probably some reason why this wasn't just added to Flex in the first place... Has anybody tried to implement this themselves, and did you have any luck? Thanks, John Yahoo! Groups Links Yahoo! Groups Links 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] combobox selectedIndex
Title: Mercury Email Signature Hi Does anyone know how to set an initial selected index on a Combo (for edit dialog for example) i have tried this code and it doesn't work . mx:ComboBox id="intervalCMB"dataProvider="{intervals}" selectedIndex="2" /thanks Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] combobox selectedIndex
Title: Mercury Email Signature Shlomi, There's nothing wrong with the code that you have posted below. Only reason why I think this would not work is if you have only 2 items in the ComboBox! If not, try this as well mx:ComboBox id="intervalCMB"dataProvider="{intervals}" initialize="intervalCMB.selectedIndex="2" / Sree Shlomi Cohen wrote: Hi Does anyone know how to set an initial selected index on a Combo (for edit dialog for example) i have tried this code and it doesn't work . mx:ComboBox id="intervalCMB"dataProvider="{intervals}" selectedIndex="2" / thanks Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] combobox selectedIndex
Title: Mercury Email Signature Shlomi, One possibility is that you are setting the index of the combobox before the databinding fires. Thus: 1. It attempts to set the index to 2. 2. It sees the dataprovider has length 0. 3. It silently fails at runtime. some time goes by 4. The dataprovider is populated by databinding. You might want to try this: private function getMySelectedIndex(intervals:Object):Number { return(2); } mx:ComboBox id="intervalCMB"dataProvider="{intervals}"selectedIndex="{getMySelectedIndex(intervals)}"/ When 'intervals' changes it fires off a call to the local function getMySelectedIndex via databinding. HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sreejith UnnikrishnanSent: 17 May 2005 14:34To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] combobox selectedIndex Shlomi,There's nothing wrong with the code that you have posted below.Only reason why I think this would not work is if you have only 2 items in the ComboBox!If not, try this as wellmx:ComboBox id="intervalCMB"dataProvider="{intervals}" initialize="intervalCMB.selectedIndex="2" /SreeShlomi Cohen wrote: Hi Does anyone know how to set an initial selected index on a Combo (for edit dialog for example) i have tried this code and it doesn't work . mx:ComboBox id="intervalCMB"dataProvider="{intervals}" selectedIndex="2" /thanks Shlomi__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Flex and Google Maps
Hi Jeff, Thanks for the information. I figured someone had done something like this already. I can use what Manish has started to do what I need. Thanks, Corey --- In flexcoders@yahoogroups.com, Jeff Steiner [EMAIL PROTECTED] wrote: corey, Manish did this a while back and posted the sample on Flex Authority. Look in the Samples section under Advanced. Jeff http://www.flexauthority.com - Original Message - From: Corey [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, May 16, 2005 10:13 PM Subject: [flexcoders] Flex and Google Maps Hi All, Has anyone used Flex as a front end for Google Maps? I was thinking of giving this a stab but I have no idea how hard it might be or if I should even try it? Any thoughts on this idea? Thanks, COREY Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex and Google Maps
Hi Jeff, I tried to view the code from FlexAuthority.com for the google maps and it pops up a window but never loads the content in the window. Do you know where I can view the code for this flex based google maps? Thanks, COREY --- In flexcoders@yahoogroups.com, Corey [EMAIL PROTECTED] wrote: Hi Jeff, Thanks for the information. I figured someone had done something like this already. I can use what Manish has started to do what I need. Thanks, Corey --- In flexcoders@yahoogroups.com, Jeff Steiner [EMAIL PROTECTED] wrote: corey, Manish did this a while back and posted the sample on Flex Authority. Look in the Samples section under Advanced. Jeff http://www.flexauthority.com - Original Message - From: Corey [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, May 16, 2005 10:13 PM Subject: [flexcoders] Flex and Google Maps Hi All, Has anyone used Flex as a front end for Google Maps? I was thinking of giving this a stab but I have no idea how hard it might be or if I should even try it? Any thoughts on this idea? Thanks, COREY Yahoo! Groups Links 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] Serious corruption in Flex-generated SWF
I've seen it with Canvas containers, but that was because the author didn't specific x and y positions for the controls. Are you using an event to redraw/reposition elements in the containers of the Accordion? - Original Message - From: Tim Blair [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 17, 2005 6:57 AM Subject: [flexcoders] Serious corruption in Flex-generated SWF Morning all, We're having severe issues with components within a Flex-generated SWF being displayed corrupt. The problem is that this doesn't happen all the time, and I can't seem to find a reproducable method of forcing the corruption. Examples of the sort of thing we're seeing can be seen here: http://kryten.rawnet.com/flex/flex-corrupt.html All corruption occurs at the same time (i.e. when one thing goes, they all go), but not all components are affected. The problem only seems to affect components displayed within an accordian, but again not all contained components are effected. If you look at example 1 on the page above, the items under edit existing... are corrupt, whereas those under the create new... heading are displayed fine. Does anyone have any idea what's going on here? Has anyone seen this before? Thanks, Tim. -- --- Badpen Tech - CF and web-tech: http://tech.badpen.com/ --- RAWNET LTD - independent digital media agency We are big, we are funny and we are clever! New site launched at http://www.rawnet.com/ --- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. --- Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How to render cell to be in edit mode dynamically through cell renderer
Hey Pradeep, I've done this very thing using the date field as a cell renderer, so it is possible, but I did it using a subclass of the DataGrid instead of event listeners. Using event listeners instead is an interesting approach, and if you can get it to work, would be superior to using a subclass. One thing to try: There is a boolean isCellEditor that the DataGrid looks for in a cell renderer to decide if it should create a TextInput cell editor or not. Try including a line like: var isCellEditor : Boolean = true; Using the subclassed datagrid approach, I've already posted some sample code that does this with a combo box instead of a date field. Check out the following message: http://groups.yahoo.com/group/flexcoders/message/14768. E-mail me off list if you want the code for the Date Field cell renderer. Jim On 5/17/05, Pradeep [EMAIL PROTECTED] wrote: I am trying to use a Custom Date Cell Renderer which goes in edit mode only when cell gains focus on it. Otherwise a label displays formatted Date value. Following is the code for the DateRenderer :- import mx.core.UIComponent import mx.core.UIObject import mx.controls.DateField import mx.controls.Label import mx.controls.Alert import mx.formatters.DateFormatter class common.control.DateRenderer extends UIComponent{ var dateObj:DateField; var label:Label; var dateFormat: DateFormatter; var listOwner : MovieClip; var getDataLabel : Function; var getCellIndex : Function; var __value; public function DateRenderer(){ dateFormat = new DateFormatter(); dateFormat.formatString=MM-DD-; this.addEventListener(focusIn, this); this.addEventListener(focusOut, this); } function createChildren(Void) : Void{ super.createChildren(); createClassObject( Label, label, 1, {owner:this}); label.width=80; } //Display date field for editing on focus. function focusIn() : Void { createClassObject( DateField, dateObj, 2, {owner:this}); dateObj.width=80; dateObj.dateFormatter = this.formatDate; dateObj.selectedDate = __value; dateObj.addEventListener(change, this); label.visible = false; dateObj.visible = true; } //Remove date field and make label visible again. function focusOut() : Void { dateObj.visible = false; label.visible = true; destroyObject(dateObj); } //Format function function formatDate(itemDate){ return dateFormat.format(itemDate); } function setValue( str:String, item:Object, sel:Boolean ) : Void{ if(item != undefined){ label.text= formatDate( item[getDataLabel()]); __value = item[getDataLabel()]; label.visible = true; } } function getValue() : String { return __value; } function getPreferredWidth(Void) : Number{ return 80; } function getPreferredHeight(Void) : Number{ return 30; } function change() { listOwner.editField(getCellIndex().itemIndex, getDataLabel(), dateObj.selectedDate); __value = dateObj.selectedDate; // Fire Cell edit event for the DataGrid on date change listOwner.dispatchEvent({type:cellEdit, columnIndex:getCellIndex().columnIndex, itemIndex:getCellIndex().itemIndex}); } } Intially label displays the formatted date. But on clicking on the cell default editor(textfield) is displayed. Can somebody please help on what could be causing this problem. Can i create my own custom editor just like the default text editor? Thanks in advance, Pradeep Yahoo! Groups Links 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: Flex and Google Maps
On 5/17/05, Corey [EMAIL PROTECTED] wrote: Do you know where I can view the code for this flex based google maps? http://manish.revise.org/flash/flex/gmap.zip 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] Disappearing images in custom cell renderer
On 5/17/05, Tim Blair [EMAIL PROTECTED] wrote: [...] 2. displays correctly, then after a second or so vanishes; 3. nothing is displayed. [...] asset = Asset(oItem); What happens if you set 'source' directly instead of using binding? Try it. 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] Development of components with AS
Title: Message This is a great help (the trick with fdb). In order to make it somehow more workable i run fdb.exe like this: fdb.exe http://adresfdb.log Then when fdb is running i type: list package.Class:1 3 This will put the whole class in the fdb.log file. In order to get feedback from the commands u can run this java application in a sepperate window: import java.io.*;public class LogReader { public static void main(String args[]) { if (args.length 1) { System.out.println("Usage LogReader filename"); return; } BufferedReader d=null; try { d= new BufferedReader(new InputStreamReader(new FileInputStream(args[0])) ); while (true) { String s=d.readLine(); if (s!=null) { System.out.println(s); } else { //give up system and ignore Exceptionstry { Thread.sleep(500); }catch(Exception e){catch(Exception e) { e.printStackTrace(); }finally { try { d.close(); } catch(Exception e) { e.printStackTrace(); } } }} Greetz Erik From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon FifieldSent: dinsdag 17 mei 2005 9:29To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Development of components with AS Hi Gordon, Thanks for the reply. I had a look at that but I kept on getting an error "Expected line number; got 1,". It seems that although you should be able to specify a start and end location ("1, 500" for example) this does not work! Looks like its back to listing 10 lines at a time. I have increased my buffer size now though so that I can list the whole thing, then copy paste into an editor. Does anyone know of a better way of doing this? Regards, Simon Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Image not being resized in mx:Image tag
On 5/17/05, Tim Blair [EMAIL PROTECTED] wrote: I'm having trouble with images not resizing to fit the mx:Image tag specfied (and also with SWFs not resizing to fit the appropriate mx:Loader). See if this helps: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg06839.html 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] Turn Off Caching in Flex
Is there a way to turn off caching in Flex? I have stuff coming up in my browser whose objects I deleted two iterations ago : ) Makes it hard to do development. The problem occurs in FB as well as Eclipse. I found this on the web: cache-mxmlfalse/cache-mxml for the flex-config file, but evidently that line went away with the advent of Flex 1.5. becuz it just gives an error when I add it. Thanks, Libby 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] help on HTTP service
On 5/17/05, gaurav verma [EMAIL PROTECTED] wrote: i want create a page which takes the values like LOGIN ID and PASSWORD to the another JSP page( this pages validates the loginid from my database) im using the following code : [...] this is returning a error HTTP SERVICE FAULT. A start tag had nocorresponding end tag Your JSP needs to return valid XML. Or you could set resultFormat to text. 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] Turn Off Caching in Flex
On 5/17/05, Libby [EMAIL PROTECTED] wrote: Is there a way to turn off caching in Flex? I have stuff coming up in my browser whose objects I deleted two iterations ago : ) Makes it hard to do development. The problem occurs in FB as well as Eclipse. If you load images and such from Flex, then the web browser caches those. Unfortunately it can be hard to refresh these sometimes (based on what I've heard here). One trick I know is to append a random string to the end of the image URL. Do this in ActionScript. See this example: http://www.shockwave-india.com/blog/actionscript/?asfile=skipCache.as Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex and Google Maps
Hi Manish, Thank you very much for the code. Corey --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 5/17/05, Corey [EMAIL PROTECTED] wrote: Do you know where I can view the code for this flex based google maps? http://manish.revise.org/flash/flex/gmap.zip 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] PrintJob frustrations
I'm trying to print some charts along with a header. In my app, the header (a GridRow) is hidden until the print function is called, but for some reason I CANNOT get the item to show in time to be sent to the printer. I tried setting up a separate function to show the header and then have the actual print function fire when the show event of the GridRow is fired. STILL it does not work. In general, I have to say that my experience with printing in Flex leaves a great deal to be desired. As reporting is a vital function in enterprise contexts, I can only hope that the print implementation is more refined in future releases. Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c) 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] Serious corruption in Flex-generated SWF
Yes, actually, I get this behavior every week or so, and it is also with an accordion container and standard VBox and HBoxes. I don't have any idea what causes it however. For me, simply refreshing the app corrects the problem so mine is a rendereing issue and not a compile issue. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Blair Sent: Tuesday, May 17, 2005 6:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Serious corruption in Flex-generated SWF Morning all, We're having severe issues with components within a Flex-generated SWF being displayed corrupt. The problem is that this doesn't happen all the time, and I can't seem to find a reproducable method of forcing the corruption. Examples of the sort of thing we're seeing can be seen here: http://kryten.rawnet.com/flex/flex-corrupt.html All corruption occurs at the same time (i.e. when one thing goes, they all go), but not all components are affected. The problem only seems to affect components displayed within an accordian, but again not all contained components are effected. If you look at example 1 on the page above, the items under edit existing... are corrupt, whereas those under the create new... heading are displayed fine. Does anyone have any idea what's going on here? Has anyone seen this before? Thanks, Tim. -- --- Badpen Tech - CF and web-tech: http://tech.badpen.com/ --- RAWNET LTD - independent digital media agency We are big, we are funny and we are clever! New site launched at http://www.rawnet.com/ --- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. --- Yahoo! Groups Links 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] Serious corruption in Flex-generated SWF
And by the way, shouldn't we move this to flexcoders? This forum is pretty much defunct. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Tuesday, May 17, 2005 11:58 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Serious corruption in Flex-generated SWF Yes, actually, I get this behavior every week or so, and it is also with an accordion container and standard VBox and HBoxes. I don't have any idea what causes it however. For me, simply refreshing the app corrects the problem so mine is a rendereing issue and not a compile issue. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Blair Sent: Tuesday, May 17, 2005 6:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Serious corruption in Flex-generated SWF Morning all, We're having severe issues with components within a Flex-generated SWF being displayed corrupt. The problem is that this doesn't happen all the time, and I can't seem to find a reproducable method of forcing the corruption. Examples of the sort of thing we're seeing can be seen here: http://kryten.rawnet.com/flex/flex-corrupt.html All corruption occurs at the same time (i.e. when one thing goes, they all go), but not all components are affected. The problem only seems to affect components displayed within an accordian, but again not all contained components are effected. If you look at example 1 on the page above, the items under edit existing... are corrupt, whereas those under the create new... heading are displayed fine. Does anyone have any idea what's going on here? Has anyone seen this before? Thanks, Tim. -- --- Badpen Tech - CF and web-tech: http://tech.badpen.com/ --- RAWNET LTD - independent digital media agency We are big, we are funny and we are clever! New site launched at http://www.rawnet.com/ --- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. --- Yahoo! Groups Links Yahoo! Groups Links 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] Serious corruption in Flex-generated SWF
Yes, actually, I get this behavior every week or so, and it is also with an accordion container and standard VBox and HBox. I don't have any idea what causes it however. For me, simply refreshing the app corrects the problem so mine is a rendering issue and not a compile issue. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Blair Sent: Tuesday, May 17, 2005 6:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Serious corruption in Flex-generated SWF Morning all, We're having severe issues with components within a Flex-generated SWF being displayed corrupt. The problem is that this doesn't happen all the time, and I can't seem to find a reproducable method of forcing the corruption. Examples of the sort of thing we're seeing can be seen here: http://kryten.rawnet.com/flex/flex-corrupt.html All corruption occurs at the same time (i.e. when one thing goes, they all go), but not all components are affected. The problem only seems to affect components displayed within an accordian, but again not all contained components are effected. If you look at example 1 on the page above, the items under edit existing... are corrupt, whereas those under the create new... heading are displayed fine. Does anyone have any idea what's going on here? Has anyone seen this before? Thanks, Tim. -- --- Badpen Tech - CF and web-tech: http://tech.badpen.com/ --- RAWNET LTD - independent digital media agency We are big, we are funny and we are clever! New site launched at http://www.rawnet.com/ --- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. --- Yahoo! Groups Links 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] PrintJob frustrations
Using setInterval/clearInterval seems to be a good workaround, unless someone else has something better. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Tuesday, May 17, 2005 11:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] PrintJob frustrations I'm trying to print some charts along with a header. In my app, the header (a GridRow) is hidden until the print function is called, but for some reason I CANNOT get the item to show in time to be sent to the printer. I tried setting up a separate function to show the header and then have the actual print function fire when the show event of the GridRow is fired. STILL it does not work. In general, I have to say that my experience with printing in Flex leaves a great deal to be desired. As reporting is a vital function in enterprise contexts, I can only hope that the print implementation is more refined in future releases. Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c) Yahoo! Groups Links 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] Question about error message
You often will not find the offending code in your own source though. Sometimes it is in the way the flex compiler generates the underlying AS classes. This has been thoroughly discussed, but here are a few pointers: mxml files with large amounts of UI code PLUS moderate amounts of AS code are a problem Putting AS code into a file included with mx:Script source- does NOT help Putting AS code in a class helps a lot. If your app is fairly well refactored or modularized already, try adding some more code, even if it is bogus. This can trick the flex compiler into breaking your code into smaller bits, thereby avoiding the problem. Run the app with debug=true. This causes debug code to be added to the generated code, and if you can then compile an run, you almost certainly have the boundary issue noted above. Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Abdul Qabiz Sent: Tuesday, May 17, 2005 2:07 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Question about error message Hi, you get this error message when you have more than 32KB code in a block. For example: if(..) { //more than 32 kb code } function foo() { //32 KB code } similarly in other types of blocks.. Try to refactor your code... Search the archives of this list for related discussion... -abdul From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, May 17, 2005 10:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Question about error message Ok I was writing a rather large mxml file one that is about 62KB, its never given me any problems with the amount of memory before and I actually removed like about a few hundred lines of code to make the application smaller. So what has me so confused is why am I getting a message saying its exceeded the 32K span? Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Flex and Google Maps
I got this to work on flexauthority, but it was extremely slow. Are you sure you gave it enough time? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Corey Sent: Tuesday, May 17, 2005 11:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex and Google Maps Hi Manish, Thank you very much for the code. Corey --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 5/17/05, Corey [EMAIL PROTECTED] wrote: Do you know where I can view the code for this flex based google maps? http://manish.revise.org/flash/flex/gmap.zip Yahoo! Groups Links 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] Serious corruption in Flex-generated SWF
I got a similar problem a few months ago when i changed the width of a h-slider programmatically. I did try everything but in the end i made 2 sliders with corresponding values and instead of resizing i did a show/hide trick. Will try or i can setup a sample which reproduces it. Greets, Sjors Tracy Spratt wrote: Yes, actually, I get this behavior every week or so, and it is also with an accordion container and standard VBox and HBoxes. I don't have any idea what causes it however. For me, simply refreshing the app corrects the problem so mine is a rendereing issue and not a compile issue. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Blair Sent: Tuesday, May 17, 2005 6:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Serious corruption in Flex-generated SWF Morning all, We're having severe issues with components within a Flex-generated SWF being displayed corrupt. The problem is that this doesn't happen all the time, and I can't seem to find a reproducable method of forcing the corruption. Examples of the sort of thing we're seeing can be seen here: http://kryten.rawnet.com/flex/flex-corrupt.html All corruption occurs at the same time (i.e. when one thing goes, they all go), but not all components are affected. The problem only seems to affect components displayed within an accordian, but again not all contained components are effected. If you look at example 1 on the page above, the items under edit existing... are corrupt, whereas those under the create new... heading are displayed fine. Does anyone have any idea what's going on here? Has anyone seen this before? Thanks, Tim. -- --- Badpen Tech - CF and web-tech: http://tech.badpen.com/ --- RAWNET LTD - independent digital media agency We are big, we are funny and we are clever! New site launched at http://www.rawnet.com/ --- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. --- Yahoo! Groups Links *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] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. 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] help on HTTP service
Call your JSP from a browser. You will easily be able to see where the xml is invalid Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gaurav verma Sent: Tuesday, May 17, 2005 2:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] help on HTTP service not able to send data from the mxml to the jsp page i want create a page which takes the values like LOGIN ID and PASSWORD to the another JSP page( this pages validates the loginid from my database) im using the following code : ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:HTTPService id=foo method=POST url=http://pjainserver:8101/login/loginvalidate.jsp; mx:request pi_user_id{username.text}/pi_user_id pi_passwd{password.text}/pi_passwd /mx:request /mx:HTTPService mx:Form defaultButton=mySubmitButton mx:FormItem label=Username mx:TextInput id=username width=100/ /mx:FormItem mx:FormItem label=Password mx:TextInput id=password width=100 password=true/ /mx:FormItem mx:FormItem mx:Button id=mySumitButton label=Login click=foo.send () / /mx:FormItem /mx:Form /mx:Application this is returning a error HTTP SERVICE FAULT. A start tag had nocorresponding end tag note : my LOGINVALIDATE.JSP also contain html tags. wht to do now Yahoo! Groups Links 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] XML vs Model?
One of my issues with Model is I had trouble determining how the xml was going to be deserialized into the object. What happens to attributes? What happens to child nodes and text nodes? Since I was comfortable with xml I mostly stuck with that. I haven't even needed the available Xpath library yet. And I hear that improved XML support is on the way. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul Qabiz Sent: Tuesday, May 17, 2005 6:08 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] XML vs Model? They are similar things IMO. If you specify a source file for XML or Model tag, source (xml)file is compiled into swf. So no loading on runtime but a large initial swf size. P I think, Model should be good at performance because it is simple Object not a XMLNode. Let's see, what other people say... -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Barnes Sent: Tuesday, May 17, 2005 12:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] XML vs Model? I've got a external source that pulls in XML file (config). Now, I'm having my own internal debate as to which of the two is betterere? I've noticed no real signficant performance gains (via profiler) with using either, the only thing it kind of brings to the table is that you can access a node XYZ levels deep by using property chains (parent.child.infant.siblings). Thats fine, but this will be parsed once-off, and i've found that i've i go the XML route (ie writing my own specific parser, it tends to be less work. (in that i've found that you have nodes in your XML that are using the same name, but can be either 1 or more, you have to test to see if the node in question is an array, otherwise its a literal object and treat it as such - when using model vs childNodes approach via XML (which is always array). What's folks here input on pro's / con's of XML vs Model? -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com Yahoo! Groups Links Yahoo! Groups Links 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: Flex and Google Maps
On 5/17/05, Tracy Spratt [EMAIL PROTECTED] wrote: I got this to work on flexauthority, but it was extremely slow. The way to make it fast is to cache the generated JPEGs on the server. The GIF-to-JPEG conversion is what takes up most of the time. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Cairngorm 0.99
http://www.iterationtwo.com/open_source_cairngorm.html Any questions, we'll answer them tomorrow ... team iteration::two are off to the bar:-) We shall have a drink at the bar on behalf of the rest of the Cairngorm Project Team as well (in fact, Ilya/Matt/Dirk/Romain/Jimmy, could you let us know where to send our bar bills...?) who also played their ever important roles in pulling this release together. Enjoy :) Steven -- Steven WebsterTechnical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately.Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Serious corruption in Flex-generated SWF
Are you using an event to redraw/reposition elements in the containers of the Accordion? On some of the views that are effected I'm using events to clear out what's shown, but others are simply displayed. I'm also having the same problem with components in a TabNavigator component, so it's not just the Accordian. Yes, actually, I get this behavior every week or so, and it is also with an accordion container and standard VBox and HBoxes. I don't have any idea what causes it however. For me, simply refreshing the app corrects the problem so mine is a rendereing issue and not a compile issue. This is the same thing: a render issue, not compile issue. Sometimes it works, sometimes it doesn't but I have no clue what triggers it! Hmm, this is getting very annoying... -- --- Badpen Tech - CF and web-tech: http://tech.badpen.com/ --- RAWNET LTD - independent digital media agency We are big, we are funny and we are clever! New site launched at http://www.rawnet.com/ --- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. --- Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Cairngorm 0.99
stephen, great and thanks! One thing before the pub (if you're not already gone) -- could you check the release notes PDF -- I'm getting a message that it is corrupt and can't be repaired. The install directions are fine. ta, d On 5/17/05, Steven Webster [EMAIL PROTECTED] wrote: http://www.iterationtwo.com/open_source_cairngorm.html Any questions, we'll answer them tomorrow ... team iteration::two are off to the bar :-) We shall have a drink at the bar on behalf of the rest of the Cairngorm Project Team as well (in fact, Ilya/Matt/Dirk/Romain/Jimmy, could you let us know where to send our bar bills...?) who also played their ever important roles in pulling this release together. Enjoy :) Steven -- Steven Webster Technical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- -- David Aden Webworld Technologies Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Cairngorm 0.99
never mind -- downloading and opening it worked fine, just opening from within Firefox didn't work. d On 5/17/05, David Aden [EMAIL PROTECTED] wrote: stephen, great and thanks! One thing before the pub (if you're not already gone) -- could you check the release notes PDF -- I'm getting a message that it is corrupt and can't be repaired. The install directions are fine. ta, d On 5/17/05, Steven Webster [EMAIL PROTECTED] wrote: http://www.iterationtwo.com/open_source_cairngorm.html Any questions, we'll answer them tomorrow ... team iteration::two are off to the bar :-) We shall have a drink at the bar on behalf of the rest of the Cairngorm Project Team as well (in fact, Ilya/Matt/Dirk/Romain/Jimmy, could you let us know where to send our bar bills...?) who also played their ever important roles in pulling this release together. Enjoy :) Steven -- Steven Webster Technical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- -- David Aden Webworld Technologies -- -- David Aden Webworld Technologies 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: cell render problem
Hi Sree, That helped an another solution that I found was to use combo.dataProvider = parentDocument.clTypeSrv.result.types.type; in my setValue method of the cell renderer. Now my combobox is showing up fine, but it is not selecting any thing by default and when I select some option and move to a diffent row I see [object,object] in there. I think this is because the example I am using does not have a data and a label while mine has the xml I am using is ?xml version=1.0 encoding=utf-8 ? types type label=-- Select -- data= / type label=Advertising Company data=AD/PROMO CO / type label=Broker data=BROKER / type label=Clearing Company data=CLEARING / type label=Agency data=DEMO AGENCY / type label=Distributor data=DISTRIBUTORS / type label=Manufacturer data=MANUFACTURER / type label=Marketing Company data=MARKETING CO / type label=Other data=OTHER / type label=Retailer data=RETAILER / /types my setValue looks like function setValue( str : String, item : Object, selection : String ) : Void { //combo.dataProvider = parentDocument.clTypeSrv.result.types.type; if ( item == undefined ) { comboLabel.visible = false; combo.visible = false; return; } if ( selection == normal || selection == highlighted ) { comboLabel.text = item[ getDataLabel() ]; combo.visible = false; comboLabel.visible = true; } else if ( selection == selected ) { selectedItem = item; for( var i = 0; i combo.dataProvider.length; i++ ) { if( combo.dataProvider[i] == item[ getDataLabel() ] ) { combo.selectedIndex = i; break; } } comboLabel.visible = false; combo.visible = true; combo.setFocus( false ); } } I thought maybe there might be a method getData in the list that I can use but I don't think there is one. I am not sure how to more forward Rajesh J Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Cairngorm 0.99
The link is for the .95 release. On 5/17/05, Steven Webster [EMAIL PROTECTED] wrote: http://www.iterationtwo.com/open_source_cairngorm.html Any questions, we'll answer them tomorrow ... team iteration::two are off to the bar:-) We shall have a drink at the bar on behalf of the rest of the Cairngorm Project Team as well (in fact, Ilya/Matt/Dirk/Romain/Jimmy, could you let us know where to send our bar bills...?) who also played their ever important roles in pulling this release together. Enjoy :) Steven -- Steven WebsterTechnical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately.Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Cairngorm 0.99
Hi great guys , thanks i think you forgot some resources (procust images) at the assets/products of the store sample. and the installation guide needs to be fixed regarding the DB path , the default ..\\db\\ in store.cfg is not working. (and i have tried all combinations -:-) i had to specify a full path to that . Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhlerSent: Tuesday, May 17, 2005 21:20To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm 0.99 The link is for the .95 release. On 5/17/05, Steven Webster [EMAIL PROTECTED] wrote: http://www.iterationtwo.com/open_source_cairngorm.html Any questions, we'll answer them tomorrow ... team iteration::two are off to the bar:-) We shall have a drink at the bar on behalf of the rest of the Cairngorm Project Team as well (in fact, Ilya/Matt/Dirk/Romain/Jimmy, could you let us know where to send our bar bills...?) who also played their ever important roles in pulling this release together. Enjoy :) Steven -- Steven WebsterTechnical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately.Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Cairngorm 0.99
Links for both 0.95 and 0.99 are there Stace p.s. nice work lads! J From: dave buhler [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 17, 2005 2:20 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Cairngorm 0.99 The link is for the .95 release. On 5/17/05, Steven Webster [EMAIL PROTECTED] wrote: http://www.iterationtwo.com/open_source_cairngorm.html Any questions, we'll answer them tomorrow ... team iteration::two are off to the bar:-) We shall have a drink at the bar on behalf of the rest of the Cairngorm Project Team as well (in fact, Ilya/Matt/Dirk/Romain/Jimmy, could you let us know where to send our bar bills...?) who also played their ever important roles in pulling this release together. Enjoy :) Steven -- Steven Webster Technical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. AVIS IMPORTANTWARNING Les informations contenues dans le present document et ses pieces jointes sont strictement confidentielles et reservees a l'usage de la (des) personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, distribution, copie, ou autre utilisation de ces informations est strictement prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur et detruire ce document sans en faire de copie sous quelque forme. The information contained in this document and attachments is confidential and intended only for the person(s) named above. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution, or any other use of the information is strictly prohibited. If you have received this document by mistake, please notify the sender immediately and destroy this document and attachments without making any copy of any kind. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] TitleWindow show event
I've got a TitleWindow popup that appears when a button is clicked. When the window appears, I want to set focus on a TextInput component that is in the TitleWindow. I assume that the event I'm looking for is show - but it doesn't seem to be broadcasting that event when the TitleWindow is popped up. Does anyone have advice or examples of events being used with TitleWindow popups? /** * Jeff Beeman **/ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Cairngorm 0.99
CHEERS!!! Ryan From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Steven Webster Sent: Tuesday, May 17, 2005 12:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm 0.99 http://www.iterationtwo.com/open_source_cairngorm.html Any questions, we'll answer them tomorrow ... team iteration::two are off to the bar:-) We shall have a drink at the bar on behalf of the rest of the Cairngorm Project Team as well (in fact, Ilya/Matt/Dirk/Romain/Jimmy, could you let us know where to send our bar bills...?) who also played their ever important roles in pulling this release together. Enjoy :) Steven -- Steven Webster Technical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Is there a way to schedule something with Flex
Sure, but you will need to build it. Id create an associative array consisting of and id as key/property name, and, as the value, either simple time number, or an object if you want to store more complex data. Var oOpSpec:Object = new Object(); oOpSpec.datetime = scheduledDateTime; oScheduledOperations[myOperationId] = oOpSpec; Then youd need a conditional function to check the scheduled time against the current time. Var oOpSpecCur:Object = oScheduledOperations[myOperationId]; If (oOpSpecCur.datetime dateTimeNow) return true; The benefit of the associative array is you wont have to iterate through and compare keys to access, add or modify a scheduled item, but you should check for undefined. Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, May 17, 2005 1:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Is there a way to schedule something with Flex Then have a button only work IF the time that is scheduled matches the current time? Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] TitleWindow show event
I'd use creationComplete of the TitleWindow instead. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Beeman Sent: Tuesday, May 17, 2005 2:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] TitleWindow show event I've got a TitleWindow popup that appears when a button is clicked. When the window appears, I want to set focus on a TextInput component that is in the TitleWindow. I assume that the event I'm looking for is show - but it doesn't seem to be broadcasting that event when the TitleWindow is popped up. Does anyone have advice or examples of events being used with TitleWindow popups? /** * Jeff Beeman **/ Yahoo! Groups Links 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] TitleWindow show event
Works like a charm: ?xml version="1.0" encoding="utf-8"?mx:TitleWindow xmlns:mx="http://www.macromedia.com/2003/mxml" closeButton="true" width="200" click="this.deletePopUp();" creationComplete="setMyFocus()"mx:Scriptfunction setMyFocus() {form1.setFocus();}/mx:Scriptmx:TextInput id="form1" text="Your Name" / /mx:TitleWindow From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy SprattSent: Tuesday, May 17, 2005 3:48 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] TitleWindow show event I'd use creationComplete of the TitleWindow instead.Tracy-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of Jeff BeemanSent: Tuesday, May 17, 2005 2:53 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] TitleWindow show eventI've got a TitleWindow popup that appears when a button is clicked.When the window appears, I want to set focus on a TextInput componentthat is in the TitleWindow. I assume that the event I'm looking for is"show" - but it doesn't seem to be broadcasting that event when theTitleWindow is popped up. Does anyone have advice or examples of eventsbeing used with TitleWindow popups?/*** Jeff Beeman**/Yahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Cairngorm 0.99
i think you forgot some resources (procust images) at the assets/products of the store sample. We didn't forget, we chose not to ship the images it's in the Installation guide how to copy them from Flexsamples. and the installation guide needs to be fixed regarding the DB path , the default ..\\db\\ in store.cfg is not working. (and i have tried all combinations -:-) i had to specify a full path to that . It's going to be appserver specific; let us know your appserver and appserver paths, and we can suggest a fix. You canput an absolute instead of relative URL in store.cfg for HSQLDB if you want to. Best, Steven -- Steven WebsterTechnical Director iteration::two[EMAIL PROTECTED] Office: +44 (0)131 338 6108Mobile: +44 (0)7977 216 223 This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately.Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] DataGrid.labelFunction
This works, but my code in my main app doesn't work... imagine that alskdjflajdlksfjl kasfdlaksj dfliasjdlifj o asdlfj ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; initialize=initApp(); mx:Script ![CDATA[ function initApp() { datagrid1.labelFunction = test; datagrid1.dataProvider = [{col1: sup, col2: g money}]; } function test(item, colName) { return cow; } ]] /mx:Script mx:DataGrid id=datagrid1 mx:columns mx:Array mx:DataGridColumn headerText=Column 1 columnName=col1 / mx:DataGridColumn headerText=Column 2 columnName=col2 / /mx:Array /mx:columns /mx:DataGrid /mx:Application - Original Message - From: JesterXL [EMAIL PROTECTED] To: Flexcoders flexcoders@yahoogroups.com Sent: Tuesday, May 17, 2005 4:19 PM Subject: [flexcoders] DataGrid.labelFunction I cannot get this to work. I've tried: my_datagrid.labelFunction = Delegate.create(this, onMyLabelFunction); my_datagrid.labelFunction = onMyLabelFunction; As well as through the attribute in the datagrid tag: mx:DataGrid labelFunction=onMyLabelFunction I can trace out that it's actually setting the value to a valid function through the debugger and me tracing out the values to a TextArea, but that same debugging session shows the actual function itself never getting run. I've tried setting the dataProviders right after, 1 frame after, and even 2 frames after via multiple doLaters. I've tried setting the ViewStack hosting this component to to auto creationLayout instead of all, and used childrenCreated to defer the actual setup. Nothing works. :: whips out gak and unloads a few rounds into monitor :: --JesterXL Yahoo! Groups Links 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] TitleWindow show event
That was far too easy /** * Jeff Beeman **/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Horn Sent: Tuesday, May 17, 2005 12:35 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] TitleWindow show event Works like a charm: ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml closeButton=true width=200 click=this.deletePopUp(); creationComplete=setMyFocus() mx:Script function setMyFocus() { form1.setFocus(); } /mx:Script mx:TextInput id=form1 text=Your Name / /mx:TitleWindow From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Tuesday, May 17, 2005 3:48 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] TitleWindow show event I'd use creationComplete of the TitleWindow instead. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Beeman Sent: Tuesday, May 17, 2005 2:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] TitleWindow show event I've got a TitleWindow popup that appears when a button is clicked. When the window appears, I want to set focus on a TextInput component that is in the TitleWindow. I assume that the event I'm looking for is show - but it doesn't seem to be broadcasting that event when the TitleWindow is popped up. Does anyone have advice or examples of events being used with TitleWindow popups? /** * Jeff Beeman **/ Yahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] DataGrid.labelFunction
Maybe the signature of your function is not the right one, try using : private function onMyLabelFunction (item , columnName) : String { From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Tuesday, May 17, 2005 3:20 PM To: Flexcoders Subject: [flexcoders] DataGrid.labelFunction I cannot get this to work. I've tried: my_datagrid.labelFunction = Delegate.create(this, onMyLabelFunction); my_datagrid.labelFunction = onMyLabelFunction; As well as through the attribute in the datagrid tag: mx:DataGrid labelFunction=onMyLabelFunction I can trace out that it's actually setting the value to a valid function through the debugger and me tracing out the values to a TextArea, but that same debugging session shows the actual function itself never getting run. I've tried setting the dataProviders right after, 1 frame after, and even 2 frames after via multiple doLaters. I've tried setting the ViewStack hosting this component to to auto creationLayout instead of all, and used childrenCreated to defer the actual setup. Nothing works. :: whips out gak and unloads a few rounds into monitor :: --JesterXL Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Custom Component Help
Hello! I'm getting started with a custom Flex component (based on ComboBox), and running into a bit of difficulty. I bought, the developing rich clients with macromedia flex book, and have to say it comes very close in helping but I'm still stuck. BTW thanks Steve Alistair for writing a great book. I've developed a previous Flash application that has a custom dropdown component which already takes the following XML to initialize itself. (XML generated outside of the Flash application), I'd like to take the exact same XML and wrap it into a Custom Flex Component, but XML structure below is presenting some problems... One of the issues is that while I can create a class named Prefix to match the Prefix tag...The Prefix class cannot take attributes on itself, I get an error message if I try, Property elements may not have attributes.. I would have to have them in another child tag. This is somewhat like the Portfolio and Account Objects described on page 61 of the book, except my Account tag was not embedded in a CurrentAccount tag. I understand I could wrap these in either my own tags where the attributes would be in another child tag, or mx:object tags, or put the whole Component XML in an mx:xml tag, but all of these require changing my existing XML structure which I don't really want to do. I'm also having trouble with the Name tag in a similar fashion. I tried using an instance variable of type object, or string, but that won't work, I pretty much need a class for it, but since there is no attribute holding it's value, I'm stuck there as well. Please help! Thanks, Jason DropDownBox Width=86 Scrolling=false Id=DropDownBox_OFGTZRQZVUI height=30 Tooltip/Tooltip NamemyDropdown/Name Value/Value SelectedKeyb/SelectedKey Prefix prefix_visible=true prefix_style=GRAPHIC / Items DropDownItem Valuea/Value Keya/Key Action ActionUrl=myframe1.xml ActionTarget=Frame1 / /DropDownItem DropDownItem Valueb/Value Keyb/Key Action ActionUrl=URL2.xml ActionTarget=Frame1 / /DropDownItem /Items /DropDownBox 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] DataGrid.labelFunction
Can someone explain why this doesn't work with the labelFunction? ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Script![CDATA[ import mx.utils.Delegate; function test(item, colName){return "cow";} function doStuff(){var d = view.getChildAt(0);//d.datagrid1.labelFunction = Delegate.create(this, test);d.datagrid1.labelFunction = test;} function traceIt(){var d = view.getChildAt(0);d.datagrid1.dataProvider = [{col1: "sup", col2: "g money"}];} ]]/mx:Scriptmx:Button label="Label Function" click="doStuff();" /mx:Button label="Set Dataprovider" click="traceIt();" /mx:ViewStack id="view" creationPolicy="all" mx:VBox id="myVB" mx:DataGrid id="datagrid1" mx:columns mx:Array mx:DataGridColumn headerText="Column 1" columnName="col1" / mx:DataGridColumn headerText="Column 2" columnName="col2" / /mx:Array /mx:columns /mx:DataGrid /mx:VBox /mx:ViewStack/mx:Application Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] DataGrid.labelFunction
Just a guess looking at the Flash code (if someone could confirm in the REAL Flex classes which I haven't got). - it seems mx.controls.listclasses.SelectableRow has it's owner property set when it's created to know scope. This scope is used to call labelFunction. - SelectableRow is the default cellRenderer for ScrollSelect list, which DataGrid extends. SelectableRow creates rows using ScrollSelectList by default for the cellRenderer, which he sets the owner to this, the DataGrid - since the DataGrid's labelFunction property is already set, when the SelectableRow is looking for a label, and calls labelFunction on the DataGrid, it's really doing: theDataGrid.labelFunction(object) Now, since Flex changes this, so for DataGrids you also get the columnName, I'm thinking that change might of not been tested heavily with DataGrids in ViewStacks. Either that, or I'm missing something horribly obvious. Anyone have a mx.controls.listclasses.SelectableRow.as file to send me for Flex so I can see? - Original Message - From: JesterXL To: flexcoders@yahoogroups.com Sent: Tuesday, May 17, 2005 4:57 PM Subject: Re: [flexcoders] DataGrid.labelFunction Can someone explain why this doesn't work with the labelFunction? ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Script![CDATA[ import mx.utils.Delegate; function test(item, colName){return "cow";} function doStuff(){var d = view.getChildAt(0);//d.datagrid1.labelFunction = Delegate.create(this, test);d.datagrid1.labelFunction = test;} function traceIt(){var d = view.getChildAt(0);d.datagrid1.dataProvider = [{col1: "sup", col2: "g money"}];} ]]/mx:Scriptmx:Button label="Label Function" click="doStuff();" /mx:Button label="Set Dataprovider" click="traceIt();" /mx:ViewStack id="view" creationPolicy="all" mx:VBox id="myVB" mx:DataGrid id="datagrid1" mx:columns mx:Array mx:DataGridColumn headerText="Column 1" columnName="col1" / mx:DataGridColumn headerText="Column 2" columnName="col2" / /mx:Array /mx:columns /mx:DataGrid /mx:VBox /mx:ViewStack/mx:Application Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] XML vs Model?
Performance-wise I find that both to be equivalent. But mx:Model provides a much easier way to access nodes of an xml document (and most of the times, the easier, the better!). But I agree with Matt's observation that mx:XML serves a better dataProvider for the Tree control. Indy On 5/18/05, Tracy Spratt [EMAIL PROTECTED] wrote: One of my issues with Model is I had trouble determining how the xml was going to be deserialized into the object. What happens to attributes? What happens to child nodes and text nodes? Since I was comfortable with xml I mostly stuck with that. I haven't even needed the available Xpath library yet. And I hear that improved XML support is on the way. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul Qabiz Sent: Tuesday, May 17, 2005 6:08 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] XML vs Model? They are similar things IMO. If you specify a source file for XML or Model tag, source (xml)file is compiled into swf. So no loading on runtime but a large initial swf size. P I think, Model should be good at performance because it is simple Object not a XMLNode. Let's see, what other people say... -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Barnes Sent: Tuesday, May 17, 2005 12:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] XML vs Model? I've got a external source that pulls in XML file (config). Now, I'm having my own internal debate as to which of the two is betterere? I've noticed no real signficant performance gains (via profiler) with using either, the only thing it kind of brings to the table is that you can access a node XYZ levels deep by using property chains (parent.child.infant.siblings). Thats fine, but this will be parsed once-off, and i've found that i've i go the XML route (ie writing my own specific parser, it tends to be less work. (in that i've found that you have nodes in your XML that are using the same name, but can be either 1 or more, you have to test to see if the node in question is an array, otherwise its a literal object and treat it as such - when using model vs childNodes approach via XML (which is always array). What's folks here input on pro's / con's of XML vs Model? -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Cairngorm 0.99
I'm having some trouble getting my Services.mxml to work with .99.I keep getting errors like:Error /com/cadpo/shared/business/Services.mxml:4Namespace http://www.iterationtwo.com/cairngorm has not been associated with component manifest.Error /com/cadpo/shared/business/Services.mxml:4No type for element "http://www.iterationtwo.com/cairngorm:ServiceLocator"Error /com/cadpo/shared/business/Services.mxml:4Unexpected root element "http://www.iterationtwo.com/cairngorm:ServiceLocator" does not extend MovieClipI put the cairngorm-manifest.xml into the WEB-INF/flex directory, but it still doesn't want to eat it.Here is the first part of my Services.mxml:?xml version="1.0" encoding="utf-8"?cairngorm:ServiceLocator xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:cairngorm="http://www.iterationtwo.com/cairngorm" mx:WebService id="myWS"...Is the xmlns:cairngorm="http://www.iterationtwo.com/cairngorm" attribute correct? I copied it out of one of the sample apps included in .99.Any ideas?Thanks,Sean McKibben Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Displaying dynamic HTML file in a Flex Window
We have a Flex application that needs to integrate with a third party web (JSP) application. We would prefer displaying the HTML pages from the third party application in a child Flex windows (like a dialog box) to make the applications appear as one. Is there a Flex component that can display an HTML page from another web application? The applications reside on the same server so this should not break any browser security policies. Thanks in advance for your help. Brett 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] XML vs Model?
Thanks All! :) I think XML is the best buy for my situation but will keep the above opinions in the back of the mind for future use. On 5/18/05, Indy Nagpal [EMAIL PROTECTED] wrote: Performance-wise I find that both to be equivalent. But mx:Model provides a much easier way to access nodes of an xml document (and most of the times, the easier, the better!). But I agree with Matt's observation that mx:XML serves a better dataProvider for the Tree control. Indy On 5/18/05, Tracy Spratt [EMAIL PROTECTED] wrote: One of my issues with Model is I had trouble determining how the xml was going to be deserialized into the object. What happens to attributes? What happens to child nodes and text nodes? Since I was comfortable with xml I mostly stuck with that. I haven't even needed the available Xpath library yet. And I hear that improved XML support is on the way. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul Qabiz Sent: Tuesday, May 17, 2005 6:08 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] XML vs Model? They are similar things IMO. If you specify a source file for XML or Model tag, source (xml)file is compiled into swf. So no loading on runtime but a large initial swf size. P I think, Model should be good at performance because it is simple Object not a XMLNode. Let's see, what other people say... -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Barnes Sent: Tuesday, May 17, 2005 12:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] XML vs Model? I've got a external source that pulls in XML file (config). Now, I'm having my own internal debate as to which of the two is betterere? I've noticed no real signficant performance gains (via profiler) with using either, the only thing it kind of brings to the table is that you can access a node XYZ levels deep by using property chains (parent.child.infant.siblings). Thats fine, but this will be parsed once-off, and i've found that i've i go the XML route (ie writing my own specific parser, it tends to be less work. (in that i've found that you have nodes in your XML that are using the same name, but can be either 1 or more, you have to test to see if the node in question is an array, otherwise its a literal object and treat it as such - when using model vs childNodes approach via XML (which is always array). What's folks here input on pro's / con's of XML vs Model? -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com (Coming Soon) 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] E4X in Flex 2.0, part 1: Reading XML
Title: Message This is very exciting! Im especially excited about the double-dot and wildcard operators. Thanks for this update, as itll help with planning for future projects. Keep em coming! /** * Jeff Beeman **/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Tuesday, May 17, 2005 4:54 PM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] E4X in Flex 2.0, part 1: Reading XML As you may have gathered, we've been spending a lot of time lately leveraging the new features of the Flash Player in the new Flex application model. Naturally, you'll also be able to leverage those same new features, so we thought we'd start giving you a run down of what's new. Of course we don't have beta software for you to play with yet, so for now, we'll provide a lot of detail so you can evaluate these new features and give guidance for us. XML manipulation in Flex 2.0 is going to get a lot more powerful, as well as faster.By the time that Flex 2.0 ships, the Flash Player will support E4X (ECMAScript for XML), a set of programming language extensions adding native XML support to ECMAScript.The player team is busy implementing Standard ECMA-357 as described in http://www.ecma-international.org/publications/standards/Ecma-357.htm. Here'show the spec describes whatthis feature offers:E4X adds native XML datatypes to the ECMAScript language, extends the semantics of familiar ECMAScript operators for manipulating XML objects and adds a small set of new operators for common XML operations, such as searching and filtering. It also adds support for XML literals, namespaces, qualified names and other mechanisms to facilitate XML processing. Lets take a look at a few examples of how you can read XML data using E4X. As in the current player, you'll be able to create variables of type XML by parsing a String. But XML literals will now be supported as well: var employees:XML = employees employee ssn=123-123-1234 name first=John last=Doe/ address street11 Main St./street citySan Francisco/city stateCA/state zip98765/zip /address /employee employee ssn=789-789-7890 name first=Mary last=Roe/ address street99 Broad St./street cityNewton/city stateMA/state zip01234/zip /address /employee /employees; Instead of using DOM-style APIs like firstChild, nextSibling, etc., with E4X you just dot down to grab the node you want.Multiple nodes are indexable with [n], similar to the elements of an Array: trace(employees.employee[0].address.zip); --- 98765 Tograb an attribute, you just use the .@ operator: trace([EMAIL PROTECTED]); --- 789-789-7890 If you don't pick out a particular node, you get all of them, as an indexable list: trace(employees.employee.name); --- name first=John last=Doe/ name first=Mary last=Roe/ (And note that nodeseven toString() themselves into formatted XML!) A handy double-dot operator lets you omit the path down into the XML _expression_, so you could shorten the previous three examples to trace(employees..zip[0]); trace([EMAIL PROTECTED]]); trace(employees..name); You can use a * wildcard toget a list of multiple nodes or attributes with various names, and the resulting list is indexable: trace(employees.employee[0].address.*); --- street11 Main St./street citySan Francisco/city stateCA/state zip98765/zip trace([EMAIL PROTECTED]); --- Doe You don't have to hard-code the identifiers for the nodes or attributes... they can themselves be variables: var whichNode:String = zip; trace(employees.employee[0].address[whichNode]); --- 98765 var whichAttribute:String = ssn; trace([EMAIL PROTECTED]); --- 789-789-7890 Anew for-each loop lets you loop over multiple nodes or attributes: for each (var ssn:XML in [EMAIL PROTECTED]) { trace(ssn); } --- 123-123-1234 789-789-7890 Most powerful of all, E4X supports predicate filtering using the syntax .(condition),which lets you pick out nodes or attributes that meet a condition you specify using a Boolean _expression_. For example, you can pick out the employee with a particular social security number like this, andget her state: var ssnToFind:String = 789-789-7890; trace(employees.employee.(@ssn == ssnToFind)..state); --- MA Instead of using a simple conditional operator like ==, you can also write a complicated predicate filtering function to pick out the data you need. By the way, although none ofmy examples use XML namespaces, E4X has complete support for them.
RE: [flexcoders] E4X in Flex 2.0, part 1: Reading XML
ROFL! Come on Gordon! If you are going to accidentally leak info, can you make it a bit juicier? ;) Maybe something about some super-secret project or the Adobe buyout or Flex 2 release dates. This is good info, but not *that* exciting! Still laughing... :) -James On Tue, 2005-05-17 at 17:15 -0700, Gordon Smith wrote: Oops... I meant to send this to an internal group, not to flexcoders. Enjoy the information, but, for now, don't expect this level of detail about our future plans. Of course, we do want your feedback on features for the next release, and we'll be sharing more plans with you in the future, as we get closer to the next release. Sorry, Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Tuesday, May 17, 2005 4:54 PM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] E4X in Flex 2.0, part 1: Reading XML As you may have gathered, we've been spending a lot of time lately leveraging the new features of the Flash Player in the new Flex application model. Naturally, you'll also be able to leverage those same new features, so we thought we'd start giving you a run down of what's new. Of course we don't have beta software for you to play with yet, so for now, we'll provide a lot of detail so you can evaluate these new features and give guidance for us. XML manipulation in Flex 2.0 is going to get a lot more powerful, as well as faster. By the time that Flex 2.0 ships, the Flash Player will support E4X (ECMAScript for XML), a set of programming language extensions adding native XML support to ECMAScript. The player team is busy implementing Standard ECMA-357 as described in http://www.ecma-international.org/publications/standards/Ecma-357.htm. Here's how the spec describes what this feature offers: E4X adds native XML datatypes to the ECMAScript language, extends the semantics of familiar ECMAScript operators for manipulating XML objects and adds a small set of new operators for common XML operations, such as searching and filtering. It also adds support for XML literals, namespaces, qualified names and other mechanisms to facilitate XML processing. Lets take a look at a few examples of how you can read XML data using E4X. As in the current player, you'll be able to create variables of type XML by parsing a String. But XML literals will now be supported as well: var employees:XML = employees employee ssn=123-123-1234 name first=John last=Doe/ address street11 Main St./street citySan Francisco/city stateCA/state zip98765/zip /address /employee employee ssn=789-789-7890 name first=Mary last=Roe/ address street99 Broad St./street cityNewton/city stateMA/state zip01234/zip /address /employee /employees; Instead of using DOM-style APIs like firstChild, nextSibling, etc., with E4X you just dot down to grab the node you want. Multiple nodes are indexable with [n], similar to the elements of an Array: trace(employees.employee[0].address.zip); --- 98765 To grab an attribute, you just use the .@ operator: trace([EMAIL PROTECTED]); --- 789-789-7890 If you don't pick out a particular node, you get all of them, as an indexable list: trace(employees.employee.name); --- name first=John last=Doe/ name first=Mary last=Roe/
RE: [flexcoders] E4X in Flex 2.0, part 1: Reading XML
OK, OK. Next time I'll try to leak something that will get me fired. Somebody on the list can give me a job as a Flex developer. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of James Ward Sent: Tuesday, May 17, 2005 5:24 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] E4X in Flex 2.0, part 1: Reading XML ROFL! Come on Gordon! If you are going to accidentally leak info, can you make it a bit juicier? ;) Maybe something about some super-secret project or the Adobe buyout or Flex 2 release dates. This is good info, but not *that* exciting! Still laughing... :) -James On Tue, 2005-05-17 at 17:15 -0700, Gordon Smith wrote: Oops... I meant to send this to an internal group, not to flexcoders. Enjoy the information, but, for now, don't expect this level of detail about our future plans. Of course, we do want your feedback on features for the next release, and we'll be sharing more plans with you in the future, as we get closer to the next release. Sorry, Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Tuesday, May 17, 2005 4:54 PM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] E4X in Flex 2.0, part 1: Reading XML As you may have gathered, we've been spending a lot of time lately leveraging the new features of the Flash Player in the new Flex application model. Naturally, you'll also be able to leverage those same new features, so we thought we'd start giving you a run down of what's new. Of course we don't have beta software for you to play with yet, so for now, we'll provide a lot of detail so you can evaluate these new features and give guidance for us. XML manipulation in Flex 2.0 is going to get a lot more powerful, as well as faster. By the time that Flex 2.0 ships, the Flash Player will support E4X (ECMAScript for XML), a set of programming language extensions adding native XML support to ECMAScript. The player team is busy implementing Standard ECMA-357 as described in http://www.ecma-international.org/publications/standards/Ecma-357.htm. Here's how the spec describes what this feature offers: E4X adds native XML datatypes to the ECMAScript language, extends the semantics of familiar ECMAScript operators for manipulating XML objects and adds a small set of new operators for common XML operations, such as searching and filtering. It also adds support for XML literals, namespaces, qualified names and other mechanisms to facilitate XML processing. Lets take a look at a few examples of how you can read XML data using E4X. As in the current player, you'll be able to create variables of type XML by parsing a String. But XML literals will now be supported as well: var employees:XML = employees employee ssn=123-123-1234 name first=John last=Doe/ address street11 Main St./street citySan Francisco/city stateCA/state zip98765/zip /address /employee employee ssn=789-789-7890 name first=Mary last=Roe/ address street99 Broad St./street cityNewton/city stateMA/state zip01234/zip /address /employee /employees; Instead of using DOM-style APIs like firstChild, nextSibling, etc., with E4X you just dot down to grab the node you want. Multiple nodes are indexable with [n], similar to the elements of an Array: trace(employees.employee[0].address.zip); --- 98765 To grab an attribute, you just use the .@ operator: trace([EMAIL PROTECTED]); --- 789-789-7890 If you don't pick
RE: [flexcoders] Cairngorm 0.99
Hi, You must add the appropriate entry for the cairngorm-manifest.xml in the flex-config.xml (portion in red below): namespace uri="http://www.macromedia.com/2003/mxml" manifest/WEB-INF/flex/mxml-manifest.xml/manifest/namespace namespace uri=http://www.iterationtwo.com/cairngorm manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace This probably explains the error meesage. Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Sean McKibben [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 17, 2005 6:25 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm 0.99 I'm having some trouble getting my Services.mxml to work with .99. I keep getting errors like: Error /com/cadpo/shared/business/Services.mxml:4 Namespace http://www.iterationtwo.com/cairngorm has not been associated with component manifest. Error /com/cadpo/shared/business/Services.mxml:4 No type for element "http://www.iterationtwo.com/cairngorm:ServiceLocator" Error /com/cadpo/shared/business/Services.mxml:4 Unexpected root element "http://www.iterationtwo.com/cairngorm:ServiceLocator" does not extend MovieClip I put the cairngorm-manifest.xml into the WEB-INF/flex directory, but it still doesn't want to eat it. Here is the first part of my Services.mxml: ?xml version="1.0" encoding="utf-8"? cairngorm:ServiceLocator xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:cairngorm="http://www.iterationtwo.com/cairngorm" mx:WebService id="myWS" ... Is thexmlns:cairngorm="http://www.iterationtwo.com/cairngorm" attribute correct? I copied it out of one of the sample apps included in .99. Any ideas? Thanks, Sean McKibben Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Hibernate 3
Haven't done it yet... been using Hibernate 2.1.8 for now in the integration layer with Flex as the presentation layer. It shouldn't be any different. What problem are you experiencing? Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Rich Tretola [mailto:[EMAIL PROTECTED] Sent: Monday, May 16, 2005 12:19 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Hibernate 3 Has anyone been able to get data using Hibernate 3 ?Rich Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Custom Component Help
I could be wrong, but I think you are trying to specify data for a component in xml. The only way I know to do this is to specify a property of type XML then assign it and pick it apart. Here's a mini- example: Test.MXML alexButton xmlData mx:XML node name=Barney / /mx:XML /xmlData /alexButton alexButton.as class alexButton extends Button { function init() { super.init(); label = foo; } var __data:XML; function get xmlData():XML { return __data; } function set xmlData(data:XML) { __data = data; invalidateProperties(); } function commitProperties() { if (__data) { trace(setting label for + this + + __data.firstChild.nodeName); label = __data.firstChild.attributes.name; } } } In theory you could drop your entire XML structure where my node name=Barney is and then write more code in commitProperties to initialize the component. 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: DataGrid.labelFunction
The DataGrid has a labelFunction property that it inherits from its base classes, but it does not use it. Instead each column has a labelFunction property that you want to set. 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: combobox selectedIndex
The code snippet worked fine for me if the intervals property is an array of strings. Is it possible you are initializing intervals from a web service call? If so, you have a timing problem in that the selected index was set long before the data arrived (actually it thought it had zero rows of data). In such a case you should reset the selected index when the data arrives. 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: DataGrid.labelFunction
Thank you very much; after testing it works like a charm. However, I must take this opportunity to urge Macromedia to release the Flex component classes for Flex 2.0. I could have spent 2 hours effectively debugging my problem, perhaps less, rather than flailing and flying blind. - Original Message - From: alex_harui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 17, 2005 9:38 PM Subject: [flexcoders] Re: DataGrid.labelFunction The DataGrid has a labelFunction property that it inherits from its base classes, but it does not use it. Instead each column has a labelFunction property that you want to set. 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] RemoteObject source= bug?
Yeah, RemoteObject requires the classname to be set at compile-time in the tag, no binding allowed. Thats a bug that it didnt raise a compiler error. In 2.0 were trying to allow a lot more runtime tweaking of all of our services including RemoteObject to allow things like this. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Barnes Sent: Monday, May 16, 2005 10:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] RemoteObject source= bug? Indy @ Straker noticed today that you can't use source={binding.to.a.obj.value} in mx:RemoteObject? In that it appears it ignores the fact that the curly braces are there and simply takes it as string value .. ie: call {binding.to.a.obj.value}.doMethod() is the invocation attempt via Debug. I did find a a work-around in that you could do: function initRemoteObjectService() { // tricks the flex compiler. serviceID['__serviceName'] = binding.to.a.obj.value; } but seems dodge ? is it a bug or was that meant to be the case in terms of assigning dynamic values to the source attribute. -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com (Coming Soon) Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Announcing Flex Style Explorer
Not sure if you have heard the news: Announcing Flex Style Explorer http://www.markme.com/mc/archives/007740.cfm 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] E4X in Flex 2.0, part 1: Reading XML
Title: Message I don't suppose we'll be reading part 2 of this email via FlexCoders then. ;-) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon SmithSent: Tuesday, May 17, 2005 5:15 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] E4X in Flex 2.0, part 1: Reading XML Oops... I meant to send this to an internal group, not to flexcoders. Enjoy the information, but, for now, don't expect this level of detail about our future plans. Of course, we do want your feedback on features for the next release, and we'll be sharing more plans with you in the future, as we get closer to the next release. Sorry, Gordon -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon SmithSent: Tuesday, May 17, 2005 4:54 PMTo: 'flexcoders@yahoogroups.com'Subject: [flexcoders] E4X in Flex 2.0, part 1: Reading XML As you may have gathered, we've been spending a lot of time lately leveraging the new features of the Flash Player in the new Flex application model. Naturally, you'll also be able to leverage those same new features, so we thought we'd start giving you a run down of what's new. Of course we don't have beta software for you to play with yet, so for now, we'll provide a lot of detail so you can evaluate these new features and give guidance for us. XML manipulation in Flex 2.0 is going to get a lot more powerful, as well as faster.By the time that Flex 2.0 ships, the Flash Player will support E4X ("ECMAScript for XML"), a set of programming language extensions adding native XML support to ECMAScript.The player team is busy implementing Standard ECMA-357 as described in http://www.ecma-international.org/publications/standards/Ecma-357.htm. Here'show the spec describes whatthis feature offers:"E4X adds native XML datatypes to the ECMAScript language, extends the semantics of familiar ECMAScript operators for manipulating XML objects and adds a small set of new operators for common XML operations, such as searching and filtering. It also adds support for XML literals, namespaces, qualified names and other mechanisms to facilitate XML processing." Lets take a look at a few examples of how you can read XML data using E4X. As in the current player, you'll be able to create variables of type XML by parsing a String. But XML literals will now be supported as well: var employees:XML = employees employee ssn="123-123-1234" name first="John" last="Doe"/ address street11 Main St./street citySan Francisco/city stateCA/state zip98765/zip /address /employee employee ssn="789-789-7890" name first="Mary" last="Roe"/ address street99 Broad St./street cityNewton/city stateMA/state zip01234/zip /address /employee /employees; Instead of using DOM-style APIs like firstChild, nextSibling, etc., with E4X you just "dot down" to grab the node you want.Multiple nodes are indexable with [n], similar to the elements of an Array: trace(employees.employee[0].address.zip); --- 98765 Tograb an attribute, you just use the .@ operator: trace([EMAIL PROTECTED]); --- 789-789-7890 If you don't pick out a particular node, you get all of them, as an indexable list: trace(employees.employee.name); --- name first="John" last="Doe"/ name first="Mary" last="Roe"/ (And note that nodeseven toString() themselves into formatted XML!) A handy double-dot operator lets you omit the "path" down into the XML _expression_, so you could shorten the previous three examples to trace(employees..zip[0]); trace([EMAIL PROTECTED]]); trace(employees..name); You can use a * wildcard toget a list of multiple nodes or attributes with various names, and the resulting list is indexable: trace(employees.employee[0].address.*); --- street11 Main St./street citySan Francisco/city stateCA/state zip98765/zip trace([EMAIL PROTECTED]); --- Doe You don't have to hard-code the identifiers for the nodes or attributes... they can themselves be variables: var whichNode:String = "zip"; trace(employees.employee[0].address[whichNode]); --- 98765 var whichAttribute:String = "ssn"; trace([EMAIL PROTECTED]); --- 789-789-7890 Anew for-each loop lets you loop over multiple nodes or attributes: for each (var ssn:XML in [EMAIL PROTECTED]) { trace(ssn); } --- 123-123-1234 789-789-7890 Most powerful of
Re: [flexcoders] Announcing Flex Style Explorer
very nice! At 10:26 PM 5/17/2005, you wrote: Not sure if you have heard the news: Announcing Flex Style Explorer http://www.markme.com/mc/archives/007740.cfmhttp://www.markme.com/mc/archives/007740.cfm -- Yahoo! Groups Links * To visit your group on the web, go to: * http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/flexcoders/ * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. 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] Explaining Flex Log In and User Role Functionality to Java Developers
Here's the deal. I have a client putting together a (fairly large) Flex application; actually the company that I work for is putting together the Flex portion and the client and another vendor is putting together the J2EE back-end. So they come to me and say How are we handling logging in a user. Are we using cookies? What we've done in the past with Flash (sorry. I know that's a dirty word here) is have the user log in and have the server pass back a user object that contains (among other things) a role. If the server doesn't pass the user object, then they get the login screen again. If the user is logged in, they see screens/forms per what level their role is set. The security on this new application is going to need to be a bit more strict. My problem is this: I am NOT a full-time J2EE developer and the people who are asking these questions are very experienced J2EE developers. Every time I attempt to explain to them how we should handle user log in I appearently am not using the correct words. Can someone either point me to a document that explains how user log in would normally would be handled with Flex in a J2EE environment? Or give it to me is easy to understand language so I can relieve these guys' (and my) stress? Is there a best practice for handling user login in a secure application? Also, they threw me a curve today: How do we handle it if a user's role is demoted or promoted in the middle of a session? Can we immediately change what they see on-screen? Or can we immediately have them log off? Any thoughts? Leif http://www.leifwells.com Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Explaining Flex Log In and User Role Functionality to Java Developers
Hi Leif, I had presented a similar question a few days ago regarding Flex and CF7 which runs on j2EE. I can share with you what I know, but I am also looking to learn more about security with Remoting, myself. You should be able to attach setCredentials to your Remote Call. I know setCredentials is configurable with CFLogin, which compiled down to Java on J2ee. Searching the Macromedia site for CFLogin and setCredentials should yield some additional information. Also, from my recollection, you will want to check permissions on each request before passing back data. Within Flex, you could check permissions on the result to see if permissions have changed. More info here: http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm?href="" Also, the carbonFive project will have more information in depth for remoting and Java: http://carbonfive.sourceforge.net/flashgatekeeper/api/com/carbonfive/flashgateway/security/package-summary.html Dave On 5/17/05, Leif Wells [EMAIL PROTECTED] wrote: Here's the deal. I have a client putting together a (fairly large) Flex application; actually the company that I work for is putting together the Flex portion and the client and another vendor is putting together the J2EE back-end. So they come to me and say How are we handling logging in a user. Are we using cookies? What we've done in the past with Flash (sorry. I know that's a dirty word here) is have the user log in and have the server pass back a user object that contains (among other things) a role. If the server doesn't pass the user object, then they get the login screen again. If the user is logged in, they see screens/forms per what level their role is set. The security on this new application is going to need to be a bit more strict. My problem is this: I am NOT a full-time J2EE developer and the people who are asking these questions are very experienced J2EE developers. Every time I attempt to explain to them how we should handle user log in I appearently am not using the correct words. Can someone either point me to a document that explains how user log in would normally would be handled with Flex in a J2EE environment? Or give it to me is easy to understand language so I can relieve these guys' (and my) stress? Is there a best practice for handling user login in a secure application? Also, they threw me a curve today: How do we handle it if a user's role is demoted or promoted in the middle of a session? Can we immediately change what they see on-screen? Or can we immediately have them log off? Any thoughts? Leif http://www.leifwells.com Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Announcing Flex Style Explorer
That's awesome! Thanks for the link. - Original Message - From: Jae Hess [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 17, 2005 10:26 PM Subject: [flexcoders] Announcing Flex Style Explorer Not sure if you have heard the news: Announcing Flex Style Explorer http://www.markme.com/mc/archives/007740.cfm Yahoo! Groups Links 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] Explaining Flex Log In and User Role Functionali ty to Java Developers
Do you have a copy of the Developing Rich Clients book? The Integration Tier section (primarily chapters 20 and 21) would probably help you out. The docs talk about setting up your J2EE server with authentication support here: http://livedocs.macromedia.com/flex/15/flex_docs_en/0760.htm. You can also point your developers here: http://livedocs.macromedia.com/flex/15/flex_docs_en/2247.htm to learn about ways the RemoteObject can get access to the session information including user roles. I dont have any explicit examples of login, I think we have some example code in the docs but I dont have any code right now. As far as your apps noticing when the users role is changed, it certainly wont come automatically. You could have your Flex app occasionally check with a RemoteObject if the role is still valid, but just like HTML it wont be immediate. Hope this can get you in the right direction, Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Leif Wells Sent: Tuesday, May 17, 2005 8:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Explaining Flex Log In and User Role Functionality to Java Developers Here's the deal. I have a client putting together a (fairly large) Flex application; actually the company that I work for is putting together the Flex portion and the client and another vendor is putting together the J2EE back-end. So they come to me and say How are we handling logging in a user. Are we using cookies? What we've done in the past with Flash (sorry. I know that's a dirty word here) is have the user log in and have the server pass back a user object that contains (among other things) a role. If the server doesn't pass the user object, then they get the login screen again. If the user is logged in, they see screens/forms per what level their role is set. The security on this new application is going to need to be a bit more strict. My problem is this: I am NOT a full-time J2EE developer and the people who are asking these questions are very experienced J2EE developers. Every time I attempt to explain to them how we should handle user log in I appearently am not using the correct words. Can someone either point me to a document that explains how user log in would normally would be handled with Flex in a J2EE environment? Or give it to me is easy to understand language so I can relieve these guys' (and my) stress? Is there a best practice for handling user login in a secure application? Also, they threw me a curve today: How do we handle it if a user's role is demoted or promoted in the middle of a session? Can we immediately change what they see on-screen? Or can we immediately have them log off? Any thoughts? Leif http://www.leifwells.com Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] E4X in Flex 2.0, part 1: Reading XML
That is flat out increadible. I can't wait! Jeff http://www.flexauthority.com - Original Message - From: Jeff Beeman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 17, 2005 5:04 PM Subject: RE: [flexcoders] E4X in Flex 2.0, part 1: Reading XML This is very exciting! I'm especially excited about the double-dot and wildcard operators. Thanks for this update, as it'll help with planning for future projects. Keep 'em coming! /** * Jeff Beeman **/ _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Tuesday, May 17, 2005 4:54 PM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] E4X in Flex 2.0, part 1: Reading XML As you may have gathered, we've been spending a lot of time lately leveraging the new features of the Flash Player in the new Flex application model. Naturally, you'll also be able to leverage those same new features, so we thought we'd start giving you a run down of what's new. Of course we don't have beta software for you to play with yet, so for now, we'll provide a lot of detail so you can evaluate these new features and give guidance for us. XML manipulation in Flex 2.0 is going to get a lot more powerful, as well as faster. By the time that Flex 2.0 ships, the Flash Player will support E4X (ECMAScript for XML), a set of programming language extensions adding native XML support to ECMAScript. The player team is busy implementing Standard ECMA-357 as described in http://www.ecma-international.org/publications/standards/Ecma-357.htm. Here's how the spec describes what this feature offers: E4X adds native XML datatypes to the ECMAScript language, extends the semantics of familiar ECMAScript operators for manipulating XML objects and adds a small set of new operators for common XML operations, such as searching and filtering. It also adds support for XML literals, namespaces, qualified names and other mechanisms to facilitate XML processing. Lets take a look at a few examples of how you can read XML data using E4X. As in the current player, you'll be able to create variables of type XML by parsing a String. But XML literals will now be supported as well: var employees:XML = employees employee ssn=123-123-1234 name first=John last=Doe/ address street11 Main St./street citySan Francisco/city stateCA/state zip98765/zip /address /employee employee ssn=789-789-7890 name first=Mary last=Roe/ address street99 Broad St./street cityNewton/city stateMA/state zip01234/zip /address /employee /employees; Instead of using DOM-style APIs like firstChild, nextSibling, etc., with E4X you just dot down to grab the node you want. Multiple nodes are indexable with [n], similar to the elements of an Array: trace(employees.employee[0].address.zip); --- 98765 To grab an attribute, you just use the .@ operator: trace([EMAIL PROTECTED]); --- 789-789-7890 If you don't pick out a particular node, you get all of them, as an indexable list: trace(employees.employee.name); --- name first=John last=Doe/ name first=Mary last=Roe/ (And note that nodes even toString() themselves into formatted XML!) A handy double-dot operator lets you omit the path down into the XML expression, so you could shorten the previous three examples to trace(employees..zip[0]); trace([EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ]); trace(employees..name); You can use a * wildcard to get a list of multiple nodes or attributes with various names, and the resulting list is indexable: trace(employees.employee[0].address.*); --- street11 Main St./street citySan Francisco/city stateCA/state zip98765/zip trace([EMAIL PROTECTED]); --- Doe You don't have to hard-code the identifiers for the nodes or attributes... they can themselves be variables: var whichNode:String = zip; trace(employees.employee[0].address[whichNode]); --- 98765 var whichAttribute:String = ssn; trace([EMAIL PROTECTED]); --- 789-789-7890 A new for-each loop lets you loop over multiple nodes or attributes: for each (var ssn:XML in [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ) { trace(ssn); } --- 123-123-1234 789-789-7890 Most powerful of all, E4X supports predicate filtering using the syntax .(condition), which lets you pick out nodes or attributes that meet a condition you specify using a Boolean expression. For example, you can pick out the
Re: [flexcoders] E4X in Flex 2.0, part 1: Reading XML
heheheheheheh thats funny. I had to do a double take and thought am i reading the right list here or... Nice work ;) On 5/18/05, Hans Omli [EMAIL PROTECTED] wrote: I don't suppose we'll be reading part 2 of this email via FlexCoders then. ;-) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Tuesday, May 17, 2005 5:15 PM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] E4X in Flex 2.0, part 1: Reading XML Oops... I meant to send this to an internal group, not to flexcoders. Enjoy the information, but, for now, don't expect this level of detail about our future plans. Of course, we do want your feedback on features for the next release, and we'll be sharing more plans with you in the future, as we get closer to the next release. Sorry, Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Tuesday, May 17, 2005 4:54 PM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] E4X in Flex 2.0, part 1: Reading XML As you may have gathered, we've been spending a lot of time lately leveraging the new features of the Flash Player in the new Flex application model. Naturally, you'll also be able to leverage those same new features, so we thought we'd start giving you a run down of what's new. Of course we don't have beta software for you to play with yet, so for now, we'll provide a lot of detail so you can evaluate these new features and give guidance for us. XML manipulation in Flex 2.0 is going to get a lot more powerful, as well as faster. By the time that Flex 2.0 ships, the Flash Player will support E4X (ECMAScript for XML), a set of programming language extensions adding native XML support to ECMAScript. The player team is busy implementing Standard ECMA-357 as described in http://www.ecma-international.org/publications/standards/Ecma-357.htm. Here's how the spec describes what this feature offers: E4X adds native XML datatypes to the ECMAScript language, extends the semantics of familiar ECMAScript operators for manipulating XML objects and adds a small set of new operators for common XML operations, such as searching and filtering. It also adds support for XML literals, namespaces, qualified names and other mechanisms to facilitate XML processing. Lets take a look at a few examples of how you can read XML data using E4X. As in the current player, you'll be able to create variables of type XML by parsing a String. But XML literals will now be supported as well: var employees:XML = employees employee ssn=123-123-1234 name first=John last=Doe/ address street11 Main St./street citySan Francisco/city stateCA/state zip98765/zip /address /employee employee ssn=789-789-7890 name first=Mary last=Roe/ address street99 Broad St./street cityNewton/city stateMA/state zip01234/zip /address /employee /employees; Instead of using DOM-style APIs like firstChild, nextSibling, etc., with E4X you just dot down to grab the node you want. Multiple nodes are indexable with [n], similar to the elements of an Array: trace(employees.employee[0].address.zip); --- 98765 To grab an attribute, you just use the .@ operator: trace([EMAIL PROTECTED]); --- 789-789-7890 If you don't pick out a particular node, you get all of them, as an indexable list: trace(employees.employee.name); --- name first=John last=Doe/ name first=Mary last=Roe/ (And note that nodes even toString() themselves into formatted XML!) A handy double-dot operator lets you omit the path down into the XML expression, so you could shorten the previous three examples to trace(employees..zip[0]); trace([EMAIL PROTECTED]); trace(employees..name); You can use a * wildcard to get a list of multiple nodes or attributes with various names, and the resulting list is indexable: trace(employees.employee[0].address.*); --- street11 Main St./street citySan Francisco/city stateCA/state zip98765/zip trace([EMAIL PROTECTED]); --- Doe You don't have to hard-code the identifiers for the nodes or attributes... they can themselves be variables:
Re: [flexcoders] Explaining Flex Log In and User Role Functionality to Java Developers
Like Dave said, you could use setCredentials over the pipe to access remote methods, but for those who are anti-letting-client-side-have-username-password-stored-locally you can still leveridge existing session scope compliance. In that, you can make your backend handle its security model transparent to FLEX. One case is you could provide an api that asks the server a question before allowing them to continue.. eg: var doLogin:Boolean = remoteService.isAuthenticated() if(!doLogin) { // show login screen. } and... var isAllowed:Boolean = remoteService.canDeleteRowInGrid(obj.gridID) if(isAllowed) { // perform business logic } else { // perform exception logic. } Obviously thats a really verbose/plain ol simple example of the concept, but what i'm hinting at is you can leave that stuff' to server-side. As with FLEX you are treated the same as a normal HTML page (cookies, session scopes etc). On 5/18/05, dave buhler [EMAIL PROTECTED] wrote: Hi Leif, I had presented a similar question a few days ago regarding Flex and CF7 which runs on j2EE. I can share with you what I know, but I am also looking to learn more about security with Remoting, myself. You should be able to attach setCredentials to your Remote Call. I know setCredentials is configurable with CFLogin, which compiled down to Java on J2ee. Searching the Macromedia site for CFLogin and setCredentials should yield some additional information. Also, from my recollection, you will want to check permissions on each request before passing back data. Within Flex, you could check permissions on the result to see if permissions have changed. More info here: http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm?href=0282.htm Also, the carbonFive project will have more information in depth for remoting and Java: http://carbonfive.sourceforge.net/flashgatekeeper/api/com/carbonfive/flashgateway/security/package-summary.html Dave On 5/17/05, Leif Wells [EMAIL PROTECTED] wrote: Here's the deal. I have a client putting together a (fairly large) Flex application; actually the company that I work for is putting together the Flex portion and the client and another vendor is putting together the J2EE back-end. So they come to me and say How are we handling logging in a user. Are we using cookies? What we've done in the past with Flash (sorry. I know that's a dirty word here) is have the user log in and have the server pass back a user object that contains (among other things) a role. If the server doesn't pass the user object, then they get the login screen again. If the user is logged in, they see screens/forms per what level their role is set. The security on this new application is going to need to be a bit more strict. My problem is this: I am NOT a full-time J2EE developer and the people who are asking these questions are very experienced J2EE developers. Every time I attempt to explain to them how we should handle user log in I appearently am not using the correct words. Can someone either point me to a document that explains how user log in would normally would be handled with Flex in a J2EE environment? Or give it to me is easy to understand language so I can relieve these guys' (and my) stress? Is there a best practice for handling user login in a secure application? Also, they threw me a curve today: How do we handle it if a user's role is demoted or promoted in the middle of a session? Can we immediately change what they see on-screen? Or can we immediately have them log off? Any thoughts? Leif http://www.leifwells.com Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com (Coming Soon) 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] Explaining Flex Log In and User Role Functionality to Java Developers
Dave, thanks for replying. The link you provided for the livedocs takes me to a page about containers. Since that is not the point we were discussing, I can only imagine that something is wrong with that link. ;-) (either that or Gmail is misinterpreting the link) If you could provide the topic of that link it would be very helpful! Thanks!On 5/17/05, dave buhler [EMAIL PROTECTED] wrote:More info here: http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm?href="" Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] RemoteObject source= bug?
Robin Hilliard asked a nice question regarding this last night, in that will this get around whitelist security? or is it stored elsewhere and acts as a filter before allowing remote calls to be made? On 5/18/05, Matt Chotin [EMAIL PROTECTED] wrote: Yeah, RemoteObject requires the classname to be set at compile-time in the tag, no binding allowed. That's a bug that it didn't raise a compiler error. In 2.0 we're trying to allow a lot more runtime tweaking of all of our services including RemoteObject to allow things like this. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Barnes Sent: Monday, May 16, 2005 10:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] RemoteObject source= bug? Indy @ Straker noticed today that you can't use source={binding.to.a.obj.value} in mx:RemoteObject? In that it appears it ignores the fact that the curly braces are there and simply takes it as string value .. ie: call {binding.to.a.obj.value}.doMethod() is the invocation attempt via Debug. I did find a a work-around in that you could do: function initRemoteObjectService() { // tricks the flex compiler. serviceID['__serviceName'] = binding.to.a.obj.value; } but seems dodge ? is it a bug or was that meant to be the case in terms of assigning dynamic values to the source attribute. -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com (Coming Soon) Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com (Coming Soon) 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] SynergyFLEX Framework Presentation.
Scott Barnes wrote: For those who have emailed me asking for the latest build, i've uploaded a public preview / alpha build of the framework via my blog tonight. URL: http://www.mossyblog.com/archives/473.cfm Feedback welcomed. What is the rationale for SynergyFLEX? How does it compare to other frameworks, such as Crainborn? What are some advantages of SynergyFLEX? I read the entries at http://www.mossyblog.com/archives/451.cfm and http://www.mossyblog.com/archives/434.cfm but I don't know enough about Flex to be able to evaluate the advantages and disadvantages of your approach. At what point does a framework like this become overkill? Will. 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/