[flexcoders] Re: How to configure BlazeDS to use Spring?
You should read the documentation I wrote on the Igenko wiki : http://code.google.com/p/igenko/wiki/FlexDataServices --- In flexcoders@yahoogroups.com, vkc_nair [EMAIL PROTECTED] wrote: Hi all, Could you please provide an example on how to configure blazeds with spring? Thanks VN
[flexcoders] Re: E4X Namespace Issues...
Then what you need is: private var ns:Namespace = new Namespace(http://...;); default xml namespace ns; use namespace applies to AS3's namespace, has nothing to do with XML. see: http://livedocs.adobe.com/flex/201/langref/statements.html for a clear description of: namespace, use namespace default xml namespace hth julio ps: I've struggled with this for a long time too as there aren't many E4X examples involving namespaces around --- In flexcoders@yahoogroups.com, Todd [EMAIL PROTECTED] wrote: Hello, I got it to work. I had to change the e4x expression a little to get it to work. I needed to qualify the ID with the namespace. So this code works: var xml:XML = new XML(inputXML.text); var ns:Namespace = xml.namespace(); trace(xml.namespace()); var filterdXML:XMLList = new XMLList(xml..ns::folder.(ns::id == 13)); outputXML.text = filterdXML.toXMLString(); Notice the ns:id == 13. So, now that I got it working, I'd still like to get it working with the following syntax so I dont have to add namespace aliases to my e4x: private namespace ns=http://; use namespace ns Thanks for any suggestions on taking this further. --- In flexcoders@yahoogroups.com, Todd tprekaski@ wrote: OK, I tried the following code and it's not working: var xml:XML = new XML(inputXML.text); var ns:Namespace = xml.namespace(); var filterdXML:XMLList = new XMLList(xml..ns::folder.(id == 13)); outputXML.text = filterdXML.toXMLString(); But, if I add a prefix to the namespace declared in the XML, it all works. xmlns:com=http://www.directTestmarketing.com/ws/schemas/communicationHi\ \ erarchyService ( added the :com). I'm still not considering my situation fixed, though. I'd like to be able to get at the default namespace. Thanks, Todd --- In flexcoders@yahoogroups.com, fourctv fourctv@ wrote: try this: var xml:XML = new XML(inputXML.text); // get the xml var ns:Namespace = xml.namespace(); // extract the default namespace trace('folder13:',xml..ns::folder.(id ==13)); // use it in the E4X expression hth julio
[flexcoders] Re: Login Problem
if your username is [EMAIL PROTECTED] then the welcome message will say Welcome to the app [EMAIL PROTECTED] which is somewhat impersonal. If there are first and last name properties of the user then it may be friendlier to use those, not to mention it then serves as a visual cue that the login worked. But you are right, you could just bind whatever they type into the username field to a label saying hello. --- In flexcoders@yahoogroups.com, Tim Ashworth [EMAIL PROTECTED] wrote: This way would work, but may not be what you want. P.S. I haven't had a chance to check this as I am on a different machine without Flex Builder on it so treat this a pseudo code if it doesn't work. mx:Label text=Welcome to the app {userName}/ mx:TextInput id=userName text=Username/ So initially the label will read 'Username' and afterward it will display whatever they type in. This will happen before login checks. If you want to change it on response then you'll need a function triggered when the data returns from the database. If this is what you want to do, like Tracy says - post code pls. t _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of simonjpalmer Sent: 18 January 2008 17:56 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Login Problem do they provide their login details via HTML or fields in your flex app? The question I am really asking is what controls the login transaction with the server? If it is your flex app (otherwise you should go and post on an HTML forum) then what about adding a result responder to your login request and sending back the user's name/nickname/whatever. When the response returns to the client and the responder runs, extract the user's name and update your field which says hello. I do something very similar in my app but I label a button with their full name which the user can click to set their personal preferences. It also serves to remind them who they are logged in as, which works very well for demos. In principle I don't see why this is any different to any other server request, it just happens to be login. --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, NileAge, Mail mail@ wrote: Hi all I'm working with flex 2 and asp.net . I face a problem when I make login I want to write welcome User Name as we see in most web sites. This occur when I make login and then press F5 I need to do this without pressing F5 or after I make login immediately
[flexcoders] how to get image real/natural size?
I am making an image from string url of the image name. How would I find it's real/natural image size? .V
[flexcoders] Re: Border Thickness On ComboBox?
Ok, I was wrong. Setting the borderStyle and borderThickness on the combo box does not do anything. Instead, I set a custom skin on the combobox and it works. border-style: solid; border-color: #00ff00; border-thickness: 5; down-skin: ClassReference('ComboBoxSkin'); over-skin: ClassReference('ComboBoxSkin'); up-skin: ClassReference('ComboBoxSkin'); In the ComboBoxSkin, get the borderThickness and borderColor style properties and draw the borders for all the states. - venkat http://www.venkatj.com --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: If i had to guess i think it may have something to do with the scale9Grid but I am relatively new to flex Flex examines the scale9Grid property to determine the value of the borderMetrics style. - Original Message From: Ethan Miller [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, January 18, 2008 6:56:35 PM Subject: [flexcoders] Re: Border Thickness On ComboBox? --- In [EMAIL PROTECTED] ups.com, rueter007 rueter007@ .. wrote: set the borderStyle to be solid. Tried that There's a note in the docs about borderThickness being overridden if dropDownStyle is set... tried nulling that as well. Still no effect. ?? ethan Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
RE: [flexcoders] Flare For Flex
Just what I needed to hear. Thanks! !k _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Maciek Sakrejda Sent: Friday, January 18, 2008 12:51 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flare For Flex Hi Kevin, I've gotten flare to work in our Flex-based app. I'm still just experimenting with it, but it works quite well. The main trick is to add a Visualization instace to a UIComponent, and then add that UIComponent to your Flex application (you can't add Visualization directly as a child because it doesn't implement IUIComponent. I believe Jeff plans to add (some) more Flex support, but looking at svn, he's focusing on the data package right now. -Maciek -Original Message- From: Kevin Aebig [EMAIL PROTECTED] mailto:kevin%40keslabs.com com Reply-To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com Subject: [flexcoders] Flare For Flex Date: Fri, 18 Jan 2008 12:31:44 -0600 Hey all, Has anyone successfully used the Flare library inside of a Flex/Air application yet? I know that it's been compiled to .swc's but I noticed that within the source it uses the Flash based classes instead of the Flex variations. Thanks, !k
[flexcoders] Flex Builder 3 Beta 3 download is unavailable?
The link to flex builder 3 beta 3 at http://labs.adobe.com/technologies/flex/flexbuilder3/ has been 'temporarily unavailable' since I started checking it a day ago. How long has that been going on? Is there another url where beta 3 can be downloaded?
Re: [flexcoders] how to get image real/natural size?
wouldn't that be the unscaledHeight, and unscaledWidth, so img.unscaledHeight - Original Message From: v.cekvenich [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 19, 2008 10:18:25 AM Subject: [flexcoders] how to get image real/natural size? I am making an image from string url of the image name. How would I find it's real/natural image size? .V Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
[flexcoders] Multiple chartelements as annotationElements [CHART]
If I have 2 chartelements added as annotation element in my cartesian chart,only the callback function specific to the second chartelemet are executed.It seems that the second chartelement override the registration of the events of the first one. Both chartelements work without any issue if I add them separately in my chart Thank you for your help. Claude Hussenet
[flexcoders] Re: Masked Text Input
Try; http://weblogs.macromedia.com/flexteam/archives/2006/11/component_maske.\ cfm http://weblogs.macromedia.com/flexteam/archives/2006/11/component_maske\ .cfm --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: link doesnt work either - Original Message From: aceoohay [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, January 18, 2008 9:05:13 PM Subject: [flexcoders] Masked Text Input Has anyone developed an input tool for that has the functionality of Masked Textinput (http://weblogs. macromedia. com/flexteam/ archives/ 2006/11/componen t_mas ke.cfm), without the drawbacks? The problems that I seem to have are mainly the way it behaves when using it; 1) When you select the entire text and start typing, it just appends your text to the end. 2) You cannot insert text into the middle of a field. 3) If you delete a character out of the middle of a field it leaves a space. 4) If there is a space in the middle of text and you try to select the entire field to delete it, the selection disappears when you release the mouse. I have posted this info on their blog, with no apparent response. I am about to embark on creating quite a few data entry forms, and would like something that I can use that has masking functionality but behaves similar to what most users expect. Are there alternatives to Masked TextInput? Where can I find them? Paul \ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
[flexcoders] May I click a button to ScrollDown in TileList
Hi there, I am using TileList to build my simple application, is there a way to click a button to scroll down in TileList component? I would like to set vercitalScrollPolicy=off and then add a new button on the stage, user can click the button to scroll down in TileList. Thanks
[flexcoders] Getting a StackTrace from Tomcat for LCDS web app
Does anyone know how to get a stack trace on a Mac running LCDS in Tomcat? I can't for the life of me figure out how to do it. I have tried, crtl-\. jstack kill, but they don't seem to do anything. I have also tried (http://www.adaptj.com/main/download). I think part of the problem is that I can't find a process id for the webapp (or tomcat). I am pretty new to this server debug stuff so possibly there is something simple I am missing. Any help would be greatly appreciated. I am desperate. I need to debug some remote call freezes I am having and without a stack trace it is near impossible. Thanks for the help! - Kevin
RE: [flexcoders] how to get image real/natural size?
Assuming it is in the same security domain, you can use content.loaderInfo.width/height after the complete event like this: mx:SWFLoader id=ldr source=wooddesk.jpg complete=trace(ldr.content.loaderInfo.width, ldr.content.loaderInfo.height) / From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of v.cekvenich Sent: Saturday, January 19, 2008 8:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to get image real/natural size? I am making an image from string url of the image name. How would I find it's real/natural image size? .V
[flexcoders] Re: Multiple chartelements as annotationElements [CHART] [SOLVED]
Instead of creating a transparent square to insure that events are triggered within a chartelement as implemented in this sample (http://demo.quietlyscheming.com/ChartSampler/srcview/index.html) ,I registered the events on this.chart . Claude Hussenet --- In flexcoders@yahoogroups.com, Claude Hussenet [EMAIL PROTECTED] wrote: If I have 2 chartelements added as annotation element in my cartesian chart,only the callback function specific to the second chartelemet are executed.It seems that the second chartelement override the registration of the events of the first one. Both chartelements work without any issue if I add them separately in my chart Thank you for your help. Claude Hussenet
RE: [flexcoders] Flex Builder 3 Beta 3 download is unavailable?
Yes, we've been having some trouble with adobe.com. we're hoping everything will be up soon. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of m.pengi Sent: Saturday, January 19, 2008 9:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Builder 3 Beta 3 download is unavailable? The link to flex builder 3 beta 3 at http://labs.adobe.com/technologies/flex/flexbuilder3/ has been 'temporarily unavailable' since I started checking it a day ago. How long has that been going on? Is there another url where beta 3 can be downloaded?
[flexcoders] Populating DataGrid
Hi all, The following shorter code renders the dataGrid, but without data. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=dvdData.send() mx:Script ![CDATA[ import mx.rpc.events.*; import mx.collections.*; import mx.controls.*; [Bindable]private var dvdCollection:ArrayCollection; private function dvdCollectionHandler(evt:ResultEvent):void { dvdCollection = evt.result.dvdCollection.dvd; } ]] /mx:Script mx:HTTPService id=dvdData url=assets/dvdCollection.xml result=dvdCollectionHandler(event) / mx:DataGrid x=56 y=250 width=950 dataProvider={dvdCollection} / /mx:Application --DVD Collection-- dvdCollection.xml ?xml version=1.0 encoding=iso-8859-1? dvdCollection dvd titlePulp Fiction/title genreCrime/Dramagenre ratingR/rating actorsJohn Travolta,Sam Jackson/actors directorsLawrence Bender/directors plotGangsters, Boxers and Dancing/plot /dvd dvd titleThe Professional/title genreCrime/Dramagenre ratingR/rating actorsJean Reno, Natalie Portman/actors directorsLuc Besson/directors plotAssassin Becomes a Nanny/plot /dvd /dvdCollection On Jan 18, 2008, at 12:34 PM, Merrill, Jason wrote: I wasn't really about posting ettiquite, :) I just thinking how you can get others to better repond to get the answers you need. Also, where do you declare new XML() in your code, I didn't see it. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community
[flexcoders] flex 3 cairngorm
Hello, which version of Cairngorm workes with Flex 3, the final beta version? Regards,
RE: [flexcoders] Populating DataGrid
Try this: Import mx.utils.ObjectUtil And then trace out the result to make sure you are getting something back by doing this trace(ObjectUtil.toString(evt.result)) Clint Tredway Cynergy Systems | Consultant 706 7th St SE, Washington DC, 20003 W. http://www.cynergysystems.com E. [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of CK Sent: Saturday, January 19, 2008 3:21 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Populating DataGrid Hi, Yes using e4x, however evt.result.dvd, did not populate the grid. Chris On Jan 19, 2008, at 1:08 PM, Sherif Abdou wrote: evt.result.dvd instead, ur using e4x correct? - Original Message From: CK [EMAIL PROTECTED] mailto:ck%40bushidodeep.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Saturday, January 19, 2008 2:20:36 PM Subject: [flexcoders] Populating DataGrid Hi all, The following shorter code renders the dataGrid, but without data. ?xml version=1.0 encoding=utf- 8? mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml layout=absolute creationComplete= dvdData. send() mx:Script ![CDATA[ import mx.rpc.events. *; import mx.collections. *; import mx.controls. *; [Bindable]private var dvdCollection: ArrayCollection; private function dvdCollectionHandle r(evt:ResultEven t):void { dvdCollection = evt.result.dvdColle ction.dvd; } ]] /mx:Script mx:HTTPService id=dvdData url=assets/ dvdCollection. xml result=dvdCollecti onHandler( event) / mx:DataGrid x=56 y=250 width=950 dataProvider= {dvdCollection} / /mx:Application --DVD Collection-- - --- dvdCollection. xml ?xml version=1.0 encoding=iso- 8859-1? dvdCollection dvd titlePulp Fiction/title genreCrime/ Dramagenre ratingR/rating actorsJohn Travolta,Sam Jackson/actors directorsLawrence Bender/directors plotGangsters, Boxers and Dancing/plot /dvd dvd titleThe Professional /title genreCrime/ Dramagenre ratingR/rating actorsJean Reno, Natalie Portman/actors directorsLuc Besson/directors plotAssassin Becomes a Nanny/plot /dvd /dvdCollection On Jan 18, 2008, at 12:34 PM, Merrill, Jason wrote: I wasn't really about posting ettiquite, :) I just thinking how you can get others to better repond to get the answers you need. Also, where do you declare new XML() in your code, I didn't see it. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Looking for last minute shopping deals? Find them fast with Yahoo! Search.
Re: [flexcoders] Populating DataGrid
Hi, Yes using e4x, however evt.result.dvd, did not populate the grid. Chris On Jan 19, 2008, at 1:08 PM, Sherif Abdou wrote: evt.result.dvd instead, ur using e4x correct? - Original Message From: CK [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 19, 2008 2:20:36 PM Subject: [flexcoders] Populating DataGrid Hi all, The following shorter code renders the dataGrid, but without data. ?xml version=1.0 encoding=utf- 8? mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml layout=absolute creationComplete= dvdData. send() mx:Script ![CDATA[ import mx.rpc.events. *; import mx.collections. *; import mx.controls. *; [Bindable]private var dvdCollection: ArrayCollection; private function dvdCollectionHandle r(evt:ResultEven t):void { dvdCollection = evt.result.dvdColle ction.dvd; } ]] /mx:Script mx:HTTPService id=dvdData url=assets/ dvdCollection. xml result=dvdCollecti onHandler( event) / mx:DataGrid x=56 y=250 width=950 dataProvider= {dvdCollection} / /mx:Application --DVD Collection-- - --- dvdCollection. xml ?xml version=1.0 encoding=iso- 8859-1? dvdCollection dvd titlePulp Fiction/title genreCrime/ Dramagenre ratingR/rating actorsJohn Travolta,Sam Jackson/actors directorsLawrence Bender/directors plotGangsters, Boxers and Dancing/plot /dvd dvd titleThe Professional /title genreCrime/ Dramagenre ratingR/rating actorsJean Reno, Natalie Portman/actors directorsLuc Besson/directors plotAssassin Becomes a Nanny/plot /dvd /dvdCollection On Jan 18, 2008, at 12:34 PM, Merrill, Jason wrote: I wasn't really about posting ettiquite, :) I just thinking how you can get others to better repond to get the answers you need. Also, where do you declare new XML() in your code, I didn't see it. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Looking for last minute shopping deals? Find them fast with Yahoo! Search.
Re: [flexcoders] Populating DataGrid
this works evt.result.dvd.* - Original Message From: CK [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 19, 2008 3:21:25 PM Subject: Re: [flexcoders] Populating DataGrid Hi, Yes using e4x, however evt.result.dvd, did not populate the grid. Chris On Jan 19, 2008, at 1:08 PM, Sherif Abdou wrote: evt.result.dvd instead, ur using e4x correct? - Original Message From: CK [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Saturday, January 19, 2008 2:20:36 PM Subject: [flexcoders] Populating DataGrid Hi all, The following shorter code renders the dataGrid, but without data. ?xml version=1.0 encoding=utf- 8? mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml layout=absolute creationComplete= dvdData. send() mx:Script ![CDATA[ import mx.rpc.events. *; import mx.collections. *; import mx.controls. *; [Bindable]private var dvdCollection: ArrayCollection; private function dvdCollectionHandle r(evt:ResultEven t):void { dvdCollection = evt.result.dvdColle ction.dvd; } ]] /mx:Script mx:HTTPService id=dvdData url=assets/ dvdCollection. xml result=dvdCollecti onHandler( event) / mx:DataGrid x=56 y=250 width=950 dataProvider= {dvdCollection} / /mx:Application --DVD Collection-- - --- dvdCollection. xml ?xml version=1.0 encoding=iso- 8859-1? dvdCollection dvd titlePulp Fiction/title genreCrime/ Dramagenre ratingR/rating actorsJohn Travolta,Sam Jackson/actors directorsLawrence Bender/directors plotGangsters, Boxers and Dancing/plot /dvd dvd titleThe Professional /title genreCrime/ Dramagenre ratingR/rating actorsJean Reno, Natalie Portman/actors directorsLuc Besson/directors plotAssassin Becomes a Nanny/plot /dvd /dvdCollection On Jan 18, 2008, at 12:34 PM, Merrill, Jason wrote: I wasn't really about posting ettiquite, :) I just thinking how you can get others to better repond to get the answers you need. Also, where do you declare new XML() in your code, I didn't see it. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Looking for last minute shopping deals? Find them fast with Yahoo! Search. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: [flexcoders] Populating DataGrid
Hi, An unterminated element in the XML. Thanks. Chris On Jan 19, 2008, at 1:19 PM, Clint Tredway wrote: Try this: Import mx.utils.ObjectUtil And then trace out the result to make sure you are getting something back by doing this trace(ObjectUtil.toString(evt.result)) Clint Tredway Cynergy Systems | Consultant 706 7th St SE, Washington DC, 20003 W. http://www.cynergysystems.com E. [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of CK Sent: Saturday, January 19, 2008 3:21 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Populating DataGrid Hi, Yes using e4x, however evt.result.dvd, did not populate the grid. Chris On Jan 19, 2008, at 1:08 PM, Sherif Abdou wrote: evt.result.dvd instead, ur using e4x correct? - Original Message From: CK [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 19, 2008 2:20:36 PM Subject: [flexcoders] Populating DataGrid Hi all, The following shorter code renders the dataGrid, but without data. ?xml version=1.0 encoding=utf- 8? mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml layout=absolute creationComplete= dvdData. send() mx:Script ![CDATA[ import mx.rpc.events. *; import mx.collections. *; import mx.controls. *; [Bindable]private var dvdCollection: ArrayCollection; private function dvdCollectionHandle r(evt:ResultEven t):void { dvdCollection = evt.result.dvdColle ction.dvd; } ]] /mx:Script mx:HTTPService id=dvdData url=assets/ dvdCollection. xml result=dvdCollecti onHandler( event) / mx:DataGrid x=56 y=250 width=950 dataProvider= {dvdCollection} / /mx:Application --DVD Collection-- - --- dvdCollection. xml ?xml version=1.0 encoding=iso- 8859-1? dvdCollection dvd titlePulp Fiction/title genreCrime/ Dramagenre ratingR/rating actorsJohn Travolta,Sam Jackson/actors directorsLawrence Bender/directors plotGangsters, Boxers and Dancing/plot /dvd dvd titleThe Professional /title genreCrime/ Dramagenre ratingR/rating actorsJean Reno, Natalie Portman/actors directorsLuc Besson/directors plotAssassin Becomes a Nanny/plot /dvd /dvdCollection On Jan 18, 2008, at 12:34 PM, Merrill, Jason wrote: I wasn't really about posting ettiquite, :) I just thinking how you can get others to better repond to get the answers you need. Also, where do you declare new XML() in your code, I didn't see it. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Looking for last minute shopping deals? Find them fast with Yahoo! Search.
Re: [flexcoders] Populating DataGrid
and i Noticed that ur xml is not formed well, have no idea if that is just formatting error from the email or what here is one of them genreCrime/ Dramagenre it should be genreCrime Drama/genre - Original Message From: CK [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 19, 2008 3:36:45 PM Subject: Re: [flexcoders] Populating DataGrid Hi, An unterminated element in the XML. Thanks. Chris On Jan 19, 2008, at 1:19 PM, Clint Tredway wrote: Try this: Import mx.utils.ObjectUtil And then trace out the result to make sure you are getting something back by doing this trace(ObjectUtil. toString( evt.result) ) Clint Tredway Cynergy Systems | Consultant 706 7th St SE, Washington DC, 20003 W. http://www.cynergys ystems.com E. clint.tredway@ cynergysystems. com From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of CK Sent: Saturday, January 19, 2008 3:21 PM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Populating DataGrid Hi, Yes using e4x, however evt.result.dvd, did not populate the grid. Chris On Jan 19, 2008, at 1:08 PM, Sherif Abdou wrote: evt.result.dvd instead, ur using e4x correct? - Original Message From: CK [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Saturday, January 19, 2008 2:20:36 PM Subject: [flexcoders] Populating DataGrid Hi all, The following shorter code renders the dataGrid, but without data. ?xml version=1.0 encoding=utf- 8? mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml layout=absolute creationComplete= dvdData. send() mx:Script ![CDATA[ import mx.rpc.events. *; import mx.collections. *; import mx.controls. *; [Bindable]private var dvdCollection: ArrayCollection; private function dvdCollectionHandle r(evt:ResultEven t):void { dvdCollection = evt.result.dvdColle ction.dvd; } ]] /mx:Script mx:HTTPService id=dvdData url=assets/ dvdCollection. xml result=dvdCollecti onHandler( event) / mx:DataGrid x=56 y=250 width=950 dataProvider= {dvdCollection} / /mx:Application --DVD Collection-- - --- dvdCollection. xml ?xml version=1.0 encoding=iso- 8859-1? dvdCollection dvd titlePulp Fiction/title genreCrime/ Dramagenre ratingR/rating actorsJohn Travolta,Sam Jackson/actors directorsLawrence Bender/directors plotGangsters, Boxers and Dancing/plot /dvd dvd titleThe Professional /title genreCrime/ Dramagenre ratingR/rating actorsJean Reno, Natalie Portman/actors directorsLuc Besson/directors plotAssassin Becomes a Nanny/plot /dvd /dvdCollection On Jan 18, 2008, at 12:34 PM, Merrill, Jason wrote: I wasn't really about posting ettiquite, :) I just thinking how you can get others to better repond to get the answers you need. Also, where do you declare new XML() in your code, I didn't see it. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Looking for last minute shopping deals? Find them fast with Yahoo! Search. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: [flexcoders] Populating DataGrid
Hi, That was the problem. Many thanks! CK On Jan 19, 2008, at 1:45 PM, Sherif Abdou wrote: and i Noticed that ur xml is not formed well, have no idea if that is just formatting error from the email or what here is one of them genreCrime/ Dramagenre it should be genreCrime Drama/genre - Original Message From: CK [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 19, 2008 3:36:45 PM Subject: Re: [flexcoders] Populating DataGrid Hi, An unterminated element in the XML. Thanks. Chris On Jan 19, 2008, at 1:19 PM, Clint Tredway wrote: Try this: Import mx.utils.ObjectUtil And then trace out the result to make sure you are getting something back by doing this trace(ObjectUtil. toString ( evt.result) ) Clint Tredway Cynergy Systems | Consultant 706 7th St SE, Washington DC, 20003 W. http://www.cynergys ystems.com E. clint.tredway@ cynergysystems. com From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of CK Sent: Saturday, January 19, 2008 3:21 PM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Populating DataGrid Hi, Yes using e4x, however evt.result.dvd, did not populate the grid. Chris On Jan 19, 2008, at 1:08 PM, Sherif Abdou wrote: evt.result.dvd instead, ur using e4x correct? - Original Message From: CK [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Saturday, January 19, 2008 2:20:36 PM Subject: [flexcoders] Populating DataGrid Hi all, The following shorter code renders the dataGrid, but without data. ?xml version=1.0 encoding=utf- 8? mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml layout=absolute creationComplete= dvdData. send() mx:Script ![CDATA[ import mx.rpc.events. *; import mx.collections. *; import mx.controls. *; [Bindable]private var dvdCollection: ArrayCollection; private function dvdCollectionHandle r(evt:ResultEven t):void { dvdCollection = evt.result.dvdColle ction.dvd; } ]] /mx:Script mx:HTTPService id=dvdData url=assets/ dvdCollection. xml result=dvdCollecti onHandler( event) / mx:DataGrid x=56 y=250 width=950 dataProvider= {dvdCollection} / /mx:Application --DVD Collection-- - --- dvdCollection. xml ?xml version=1.0 encoding=iso- 8859-1? dvdCollection dvd titlePulp Fiction/title genreCrime/ Dramagenre ratingR/rating actorsJohn Travolta,Sam Jackson/actors directorsLawrence Bender/directors plotGangsters, Boxers and Dancing/plot /dvd dvd titleThe Professional /title genreCrime/ Dramagenre ratingR/rating actorsJean Reno, Natalie Portman/actors directorsLuc Besson/directors plotAssassin Becomes a Nanny/plot /dvd /dvdCollection On Jan 18, 2008, at 12:34 PM, Merrill, Jason wrote: I wasn't really about posting ettiquite, :) I just thinking how you can get others to better repond to get the answers you need. Also, where do you declare new XML() in your code, I didn't see it. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Looking for last minute shopping deals? Find them fast with Yahoo! Search. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
RE: [flexcoders] How to change the text in datagrid ?
You could just do the work in your SQL select statement: select (case when status = 1 then 'open' else 'close' end) as acctStatus from ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Friday, January 18, 2008 1:54 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to change the text in datagrid ? You could use a switch() in a labelFunction(-). Tracy _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of markflex2007 Sent: Friday, January 18, 2008 2:32 PM To: [EMAIL PROTECTED] Subject: [flexcoders] How to change the text in datagrid ? Hi, I have a account list like this accout name status acc1 1 acc2 0 acc3 1 It is ok binding with datagrid. but I like it showed in datagrid like this accout name status acc1 open acc2 close acc3 open How to change 1 to open and 0 to close in datagrid. Thanks Mark acc3 1 No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.19.7/1232 - Release Date: 1/18/2008 7:32 PM
[flexcoders] Sorting DataGrid Header Text
Hi, Now I've the test data displayed, how does one go about setting the default header order? So when the grid is first rendered it sorts: Title Actors Directors Genre Plot Rating
[flexcoders] Re: Get fields from dataProvider
var oneRow:Object = ObjectUtil.getClassInfo (gridObj.dataProvider.getItemAt(0)); does return an object but it does not have a list of fields names. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: getClassInfo(gridObj.dataProvider.getItmeAt(0) should return that list. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Friday, January 18, 2008 3:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Get fields from dataProvider Yes, gridObj.dataProvider.getItemAt(0) will return a row that might look like this: consistpersonnel1 id18/id consistnum1/consistnum header_id1/header_id person2/person namewewr/name worknum/ /consistpersonnel1 But how do I get names of fields: id, consistnum, header_id, and so forth? Thanks --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Alex Harui aharui@ wrote: gridObj.dataProvider.getItamAt(0) From: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of markgoldin_2000 Sent: Friday, January 18, 2008 8:33 AM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Re: Get fields from dataProvider I am executing this line of the code: var ClassInfo:Object = ObjectUtil.getClassInfo (gridObj.dataProvider); but I am not sure I can see a list of the fields. Am I doing something wrong? -- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Alex Harui aharui@ wrote: ObjectUtil.getClassInfo() From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of markgoldin_2000 Sent: Thursday, January 17, 2008 2:48 PM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Get fields from dataProvider How can I extract a list of fields from DataGrid's dataProvider? I need it ftom dataProvider because not all data is shown in the grids. Thanks
Re: [flexcoders] Sorting DataGrid Header Text
use the sort class on the arrayCollection - Original Message From: CK [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 19, 2008 4:27:43 PM Subject: [flexcoders] Sorting DataGrid Header Text Hi, Now I've the test data displayed, how does one go about setting the default header order? So when the grid is first rendered it sorts: Title Actors Directors Genre Plot Rating Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Re: [flexcoders] Sorting DataGrid Header Text
kinda like this var a:ArrayCollection = new ArrayCollection(); var field:SortField = new SortField(/*place how u wnat the sort*/) var sort:Sort = new Sort(); sort.fields=field; a.sort=//ur stuff a.refresh(); - Original Message From: CK [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 19, 2008 4:27:43 PM Subject: [flexcoders] Sorting DataGrid Header Text Hi, Now I've the test data displayed, how does one go about setting the default header order? So when the grid is first rendered it sorts: Title Actors Directors Genre Plot Rating Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
RE: [flexcoders] flex 3 cairngorm
That version has worked fine for me across all the flex 3 betas with no trouble or attention whatsoever. I think they might have pulled it out of beta and put a release tag on it quite recently, but checking the labs page should tell you that. Best of luck with it (I'm a fan, myself). -Original Message- From: flexcoders@yahoogroups.com on behalf of hworke Sent: Sat 19/01/2008 20:17 To: flexcoders@yahoogroups.com Subject: [flexcoders] flex 3 cairngorm Hello, which version of Cairngorm workes with Flex 3, the final beta version? Regards, __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __winmail.dat
RE: [flexcoders] flex 3 cairngorm
Apologies everybody, my answer was confusing. I was referring to the last beta version of Cairngorm ( 2.2.1 Beta). It is indeed now released and the current download on the cairngorm labs page. It seems to be working fine for me in the current (final) flex 3 beta. -Original Message- From: flexcoders@yahoogroups.com on behalf of Jim Hayes Sent: Sat 19/01/2008 22:28 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] flex 3 cairngorm That version has worked fine for me across all the flex 3 betas with no trouble or attention whatsoever. I think they might have pulled it out of beta and put a release tag on it quite recently, but checking the labs page should tell you that. Best of luck with it (I'm a fan, myself). -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com on behalf of hworke Sent: Sat 19/01/2008 20:17 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] flex 3 cairngorm Hello, which version of Cairngorm workes with Flex 3, the final beta version? Regards, __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __ __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __winmail.dat
[flexcoders] adobe.com issues
Latest update I've seen is that many of the apps like the Wish Form, some of Livedocs, trial downloads (which includes FB3 beta), and the Fusetalk forums won't be back up until tomorrow sometime. Sorry for the inconvenience, apparently we had a pretty big database failure which is still being recovered. I'm glad I'm not on our IT team :-)
[flexcoders] Re: May I click a button to ScrollDown in TileList
Any suggestions? Cheers --- In flexcoders@yahoogroups.com, flexawesome [EMAIL PROTECTED] wrote: Hi there, I am using TileList to build my simple application, is there a way to click a button to scroll down in TileList component? I would like to set vercitalScrollPolicy=off and then add a new button on the stage, user can click the button to scroll down in TileList. Thanks
[flexcoders] Update ArrayCollection from PopUp TitleWindow
I've found it amazingly easy to add an item to an ArrayCollection from a PopUp window: var newItem:Object = {date: myDate.id, height: myHeight, subject: mySubject.text, notes: myNotes.text}; mainApp.myAC.addItem(newItem); However, when it comes to updating that item from a PopUp, it appears to be amazingly difficult (so difficult that I can't figure it out!). mainApp.myAC.updateItem() doesn't seem to be possible from the PopUp, in fact, I can't even do: trace (mainApp.myAC.length); This throw the common Cannot access a property or method of a null object reference error. I haven't tried it yet, but all I've found that looks like a possibility, is to create variables in the parent, set those from the PopUp, and then run a function to perform updateItem(), for each value in the ArrayCollection row OR, delete the row, and add a new one. Both create issues with sychronizing front-end display items and backend databases. Please help
Re: [flexcoders] Update ArrayCollection from PopUp TitleWindow
mainApp.myAC. updateItem( ) where are you getting the updateItem() method from? there is no updateItem() method in the collection, best stradgey for this i would think is so just use the setItemAt() and getItemAt(); m.setItemAt(newItem,m.getItemAt(oldItem)) - Original Message From: jmfillman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 19, 2008 8:35:59 PM Subject: [flexcoders] Update ArrayCollection from PopUp TitleWindow I've found it amazingly easy to add an item to an ArrayCollection from a PopUp window: var newItem:Object = {date: myDate.id, height: myHeight, subject: mySubject.text, notes: myNotes.text} ; mainApp.myAC. addItem(newItem) ; However, when it comes to updating that item from a PopUp, it appears to be amazingly difficult (so difficult that I can't figure it out!). mainApp.myAC. updateItem( ) doesn't seem to be possible from the PopUp, in fact, I can't even do: trace (mainApp.myAC. length); This throw the common Cannot access a property or method of a null object reference error. I haven't tried it yet, but all I've found that looks like a possibility, is to create variables in the parent, set those from the PopUp, and then run a function to perform updateItem() , for each value in the ArrayCollection row OR, delete the row, and add a new one. Both create issues with sychronizing front-end display items and backend databases. Please help Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
RE: [flexcoders] Re: May I click a button to ScrollDown in TileList
You should be able to set the tilelist's verticalScrollPosition from your button's click handler. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexawesome Sent: Saturday, January 19, 2008 5:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: May I click a button to ScrollDown in TileList Any suggestions? Cheers --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , flexawesome [EMAIL PROTECTED] wrote: Hi there, I am using TileList to build my simple application, is there a way to click a button to scroll down in TileList component? I would like to set vercitalScrollPolicy=off and then add a new button on the stage, user can click the button to scroll down in TileList. Thanks
[flexcoders] Re: Update ArrayCollection from PopUp TitleWindow
I'm a little dyslexic :-), I meant itemUpdated() --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: mainApp.myAC. updateItem( ) where are you getting the updateItem() method from? there is no updateItem() method in the collection, best stradgey for this i would think is so just use the setItemAt() and getItemAt(); m.setItemAt(newItem,m.getItemAt(oldItem)) - Original Message From: jmfillman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 19, 2008 8:35:59 PM Subject: [flexcoders] Update ArrayCollection from PopUp TitleWindow I've found it amazingly easy to add an item to an ArrayCollection from a PopUp window: var newItem:Object = {date: myDate.id, height: myHeight, subject: mySubject.text, notes: myNotes.text} ; mainApp.myAC. addItem(newItem) ; However, when it comes to updating that item from a PopUp, it appears to be amazingly difficult (so difficult that I can't figure it out!). mainApp.myAC. updateItem( ) doesn't seem to be possible from the PopUp, in fact, I can't even do: trace (mainApp.myAC. length); This throw the common Cannot access a property or method of a null object reference error. I haven't tried it yet, but all I've found that looks like a possibility, is to create variables in the parent, set those from the PopUp, and then run a function to perform updateItem() , for each value in the ArrayCollection row OR, delete the row, and add a new one. Both create issues with sychronizing front-end display items and backend databases. Please help __ __ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
RE: [flexcoders] adobe.com issues
Right, Or they are changing over for the release. Wishful thinking? Regards Dale Fraser From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Sunday, 20 January 2008 12:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] adobe.com issues Latest update I've seen is that many of the apps like the Wish Form, some of Livedocs, trial downloads (which includes FB3 beta), and the Fusetalk forums won't be back up until tomorrow sometime. Sorry for the inconvenience, apparently we had a pretty big database failure which is still being recovered. I'm glad I'm not on our IT team :-)
[flexcoders] Re: Update ArrayCollection from PopUp TitleWindow
setItemAt and getItemAt work in the main application, but not from the PopUp window. From the PopUp, Cannot access a property or method of a null object reference. Seems only addItem() works from the PopUp. --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: mainApp.myAC. updateItem( ) where are you getting the updateItem() method from? there is no updateItem() method in the collection, best stradgey for this i would think is so just use the setItemAt() and getItemAt(); m.setItemAt(newItem,m.getItemAt(oldItem)) - Original Message From: jmfillman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 19, 2008 8:35:59 PM Subject: [flexcoders] Update ArrayCollection from PopUp TitleWindow I've found it amazingly easy to add an item to an ArrayCollection from a PopUp window: var newItem:Object = {date: myDate.id, height: myHeight, subject: mySubject.text, notes: myNotes.text} ; mainApp.myAC. addItem(newItem) ; However, when it comes to updating that item from a PopUp, it appears to be amazingly difficult (so difficult that I can't figure it out!). mainApp.myAC. updateItem( ) doesn't seem to be possible from the PopUp, in fact, I can't even do: trace (mainApp.myAC. length); This throw the common Cannot access a property or method of a null object reference error. I haven't tried it yet, but all I've found that looks like a possibility, is to create variables in the parent, set those from the PopUp, and then run a function to perform updateItem() , for each value in the ArrayCollection row OR, delete the row, and add a new one. Both create issues with sychronizing front-end display items and backend databases. Please help __ __ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Re: [flexcoders] Re: addchild
Now I'm really confused. How do I make a ball using standard Flex components ? Everything I've seen uses a sprite. Where can I find complete Flex examples that use standard Flex components ? Gordon Smith wrote: Built in to the Flash Player are low-level flash.* classes such as Sprite. The Flex framework libraries contains higher-level mx.* classes such as UIComponent, Button, Container, VBox, etc. which add many capabilities beyond those in the Player. The Flex framework was designed with the assumption that most developers would be delighted with the greater capabilities of the high-level classes and not have much interest in the low-level ones, which are primitive by comparison. In hindsight, this was wrongheaded. Many people like you want to mix the two -- generally because the low-level classes can have greater performance or smaller code size, or because you're bringing over code from the Flash-not-Flex world -- and it isn't as easy as it should be to mix them. I hope we can do better in a future release. You write AS3 code to use both flash.* and mx.* classes, and, once you understand a few rules, you can use both sets of classes in a Flex application. But it isn't completely trivial, so it's dangerous to just take a simple Sprite-based class and expect it to just work in Flex. The problem you're running into here is that Flex Containers such as VBox assume that their children are high-level UIComponents rather than just low-level Sprites. One reason is that containers do automatic layout management, which requires code in the children to report how big the child wants to be, etc. So currently you have to work around this assumption by doing things like creating an intermediate UIComponent to parent the Sprite or adding the Sprite to the Container as a raw child (see the rawChildren property). If you're new to Flex, I suggest beginning with complete Flex examples that use standard Flex components and postponing trying to use Sprites-based classes. You'll make more progress, gain confidence, and then be in a better position to understand how to take advantage of Sprites later. Gordon Smith Adobe Flex SDK Team *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *rueter007 *Sent:* Thursday, January 17, 2008 10:12 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: addchild you cannot add sprites directly that way. you can do the following. var ballParent: UIComponent = new UIComponent(); ballParent.addChild(ball); vbox.addChild(ballParent); and ofcourse, you have to set the width, height etc. - venkat http://www.venkatj.com http://www.venkatj.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: This is the entire ball class package com.oreilly.programmingflex.states { import flash.display.Sprite; public class Ball extends Sprite { private var radius:Number; private var color:uint; public function Ball(radius:Number=40, color:uint=0xff) { this.radius = radius; this.color = color; init(); } public function init():void { graphics.beginFill(color); graphics.drawCircle(0, 0, radius); graphics.endFill(); } } } Sherif Abdou wrote: it means that the ball is not a IUIcomponenet which it is required for it to be added on stage, show me a bit of the ball class code so i can know - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Thursday, January 17, 2008 11:38:26 PM Subject: Re: [flexcoders] addchild OK thanks. Now when I try to use addChild, I get this error. What does it mean ? myball=new Ball; addChild(myball) ; TypeError: Error #1034: Type Coercion failed: cannot convert com.oreilly. programmingflex. states::Ball@ 5787299 to mx.core.IUIComponen t. at mx.core::Container/http://www.adobe. com/2006/ flex/mx/internal ::addingChild http://www.adobe.com/2006/flex/mx/internal::addingChild http://www.adobe.com/2006/flex/mx/internal::addingChild() at mx.core::Container/ addChildAt( ) at mx.core::Container/ addChild( ) at Main/::initializeHa ndler() at Main/___Application 1_initialize( ) at flash.events: :EventDispatcher /flash.events: EventDispatcher: :dispatchEventFu nction() at flash.events: :EventDispatcher /dispatchEvent( ) at mx.core::UIComponen t/dispatchEvent( ) at mx.core::UIComponen t/set processedDescriptor s() at mx.core::Container/ createComponents FromDescriptors( ) Sherif Abdou wrote: addChild not addchild - Original Message From: [EMAIL PROTECTED] org mailto:info1%40reenie.org [EMAIL PROTECTED] org mailto:info1%40reenie.org To: [EMAIL
[flexcoders] HorizontalList questions
Hi, I've a couple of question about the HorizontalList component: 1. is there any event which is dispatched when component adds horizontal scrollbar to the display? (horizontalScrollPolicy=auto) 2. How to tell horizontalList to display only full items in the list? I've got custom item renderers and it displays as much of them as possible, clipping the last visible item. Thanks! Cheers, Dmitri.
RE: [flexcoders] Re: Update ArrayCollection from PopUp TitleWindow
It is really a matter of determining when those values get set. You might be using them before they are defined. Post some of your code. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jmfillman Sent: Saturday, January 19, 2008 9:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Update ArrayCollection from PopUp TitleWindow setItemAt and getItemAt work in the main application, but not from the PopUp window. From the PopUp, Cannot access a property or method of a null object reference. Seems only addItem() works from the PopUp. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Sherif Abdou [EMAIL PROTECTED] wrote: mainApp.myAC. updateItem( ) where are you getting the updateItem() method from? there is no updateItem() method in the collection, best stradgey for this i would think is so just use the setItemAt() and getItemAt(); m.setItemAt(newItem,m.getItemAt(oldItem)) - Original Message From: jmfillman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Saturday, January 19, 2008 8:35:59 PM Subject: [flexcoders] Update ArrayCollection from PopUp TitleWindow I've found it amazingly easy to add an item to an ArrayCollection from a PopUp window: var newItem:Object = {date: myDate.id, height: myHeight, subject: mySubject.text, notes: myNotes.text} ; mainApp.myAC. addItem(newItem) ; However, when it comes to updating that item from a PopUp, it appears to be amazingly difficult (so difficult that I can't figure it out!). mainApp.myAC. updateItem( ) doesn't seem to be possible from the PopUp, in fact, I can't even do: trace (mainApp.myAC. length); This throw the common Cannot access a property or method of a null object reference error. I haven't tried it yet, but all I've found that looks like a possibility, is to create variables in the parent, set those from the PopUp, and then run a function to perform updateItem() , for each value in the ArrayCollection row OR, delete the row, and add a new one. Both create issues with sychronizing front-end display items and backend databases. Please help __ __ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping http://tools.search.yahoo.com/newsearch/category.php?category=shopping
RE: [flexcoders] flex 3 cairngorm
I've been using 2.2.1 with beta 3. No problems (apart from my code) so far. Apologies everybody, my answer was confusing. I was referring to the last beta version of Cairngorm ( 2.2.1 Beta). It is indeed now released and the current download on the cairngorm labs page. It seems to be working fine for me in the current (final) flex 3 beta. -Original Message- From: flexcoders@yahoogroups.com on behalf of Jim Hayes Sent: Sat 19/01/2008 22:28 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] flex 3 cairngorm That version has worked fine for me across all the flex 3 betas with no trouble or attention whatsoever. I think they might have pulled it out of beta and put a release tag on it quite recently, but checking the labs page should tell you that. Best of luck with it (I'm a fan, myself). -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com on behalf of hworke Sent: Sat 19/01/2008 20:17 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] flex 3 cairngorm Hello, which version of Cairngorm workes with Flex 3, the final beta version? Regards, __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __ __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
Re: [flexcoders] Re: Login Problem
Well the suggestion was just a quick one using binding. The other way if you wanted to format the string would be to use the change event on the text field to trigger a function. So this (again I haven't got FlexBuilder here, so treat this as pseudocode) mx:Script [CDATA] (Does CDATA look like that? Dunno never typed it ;) ) private function formatName():void { var formattedString:String = //whatever code you need to do the formatting. } outputLabel.text = Welcome to the app +formattedString; /[CDATA] /mx:Script mx:Label id=outputLabel/ mx:TextInput id=inputText change=formatName()/ But depending on what your username is, the binding is a bit less code. if your username is [EMAIL PROTECTED] then the welcome message will say Welcome to the app [EMAIL PROTECTED] which is somewhat impersonal. If there are first and last name properties of the user then it may be friendlier to use those, not to mention it then serves as a visual cue that the login worked. But you are right, you could just bind whatever they type into the username field to a label saying hello. --- In flexcoders@yahoogroups.com, Tim Ashworth [EMAIL PROTECTED] wrote: This way would work, but may not be what you want. P.S. I haven't had a chance to check this as I am on a different machine without Flex Builder on it so treat this a pseudo code if it doesn't work. mx:Label text=Welcome to the app {userName}/ mx:TextInput id=userName text=Username/ So initially the label will read 'Username' and afterward it will display whatever they type in. This will happen before login checks. If you want to change it on response then you'll need a function triggered when the data returns from the database. If this is what you want to do, like Tracy says - post code pls. t _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of simonjpalmer Sent: 18 January 2008 17:56 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Login Problem do they provide their login details via HTML or fields in your flex app? The question I am really asking is what controls the login transaction with the server? If it is your flex app (otherwise you should go and post on an HTML forum) then what about adding a result responder to your login request and sending back the user's name/nickname/whatever. When the response returns to the client and the responder runs, extract the user's name and update your field which says hello. I do something very similar in my app but I label a button with their full name which the user can click to set their personal preferences. It also serves to remind them who they are logged in as, which works very well for demos. In principle I don't see why this is any different to any other server request, it just happens to be login. --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, NileAge, Mail mail@ wrote: Hi all I'm working with flex 2 and asp.net . I face a problem when I make login I want to write welcome User Name as we see in most web sites. This occur when I make login and then press F5 I need to do this without pressing F5 or after I make login immediately