[flexcoders] Re: manipulate XML
Hi Fabio, Here is an example that you can follow that will hopefully clear-up some of your questions. View Sample -TH___ Tim HoffCynergy Systems, Inchttp://www.CynergySystems.comOffice: 1.866.CYNERGY --- In flexcoders@yahoogroups.com, "Fabio Barreiro" [EMAIL PROTECTED] wrote: Hi guys I have this XML returned to my app: menu categoria nome="cat1" itemitem 1/item itemitem 2/item itemitem 3/item /categoria categoria nome="cat2" itemitem 1b/item itemitem 2b/item itemitem 3b/item /categoria categoria nome="cat3" itemitem 1c/item itemitem 2c/item itemitem 3c/item /categoria /menu this is retrieved by an HTTPService mx:HTTPService id="xmlMenu" url="" method="POST" useProxy="false" result="handler()" resultFormat="e4x" / How to manipulate the XML data in then result handler using action script? - show nodes length - get the atribute of node categoria - get to the values of node item i've tried xmlMenu.lastResult.menu.length.toString() xmlMenu.lastResult.menu.categoria[0].length.toString() [EMAIL PROTECTED] xmlMenu.lastResult.menu.categoria[0].item[0] nothing happens __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Subclassing DataGrid Observations
Thanks for the feedback Tim. Ive forwarded these on so we can have the suggestions added into the bugbase. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tim Hoff Sent: Saturday, October 21, 2006 8:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Subclassing DataGrid Observations Hi all, In the process of creating this sample, I learned a couple of things about the DataGrid control that might be useful to others and Adobe. The followinghighlighted items are thenew CSS properties that I used: headerColors:#99, white, white; headerColorsRatios:0, 60, 255; headerColorsAlphas:.6, .4, 1; headerSeparatorSkin:ClassReference(skins.DataGridHeaderSeparator); rollOverColor:white; rollOverColorAlpha:.3; selectionColor:white; selectionColorAlpha:.4; caretColor:#DD; caretColorAlpha:1; Observations: 1. The headerColors drawn are actually three colors instead of two. The first and second colors drawnare hardcoded to use the first headerColor in the array. The third color drawn uses the second headerColor in the array. Changed the CSS to allow three different colors. 2. When making the headers transparent, the headerSeparator doesn't line-up correctly. Used a headerSeparatorSkin. 3.A caret is the outline border around the selected item. 4. By default, the caret is drawn only when the user selects anitem with keyboard navigation. However, once activated, the caret is drawn when an item is selected with the mouse as well. I liked the look of the caret, so I activated it when the item is selected (either way). Also, added the ability to change the caret color and alpha. Some might also like to see the caret when an item is highlighted, but I didn't want to mess with the drawItem() function. 4. The drawItem() function in the ListBase class is used to draw a sprite for the selected or highlighted cell. However, this function is overriden in the DataGridBase class to repeat for each cell on the row. 5. The applySelectionEffect() function has hardcoded tween alpha values from 0 to 1. 6. The ListBase class uses a couple of private functions to handle the tween effect. These must be copied, as well as any necessary imports, into thesubclass. Wish List: (I know, not the right place for this, but related none the less) 1. CSS properties listed above. 2. Conditional row and item colors. (see RowColorDataGrid) 3. Persistent sort orders. The sort is reset when the dataProvider is refreshed with new data. It would be nice to have a CSS Boolean property to swithch this behavior on or off. I'm mentioning these observations, not to criticize, but rather to offer suggestions that might be incorporated into a future release. My thought is, if you offer a backgroundAlpha property for a composite control or composite container (Panel), thedeveloper should also have control over alpha values for the other parts of the control. Yes, you can apply an alpha value for the entire control, but this might not always be suitable or as easy to read. Just observations and constructive suggestions. -TH ___ Tim Hoff Cynergy Systems, Inc http://www.CynergySystems.com Office: 1.866.CYNERGY __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] How to programmatically scroll back to top of page?
Check out the verticalScrollPosition property on the various containers and controls. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of andrewstuartblah Sent: Saturday, October 21, 2006 9:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to programmatically scroll back to top of page? Hello We have a long form and the user must scroll down to fill out all the fields. When they hit submit, error/validation messages are displayed at the top of the page and the user must correct invalid fields. The problem is though that after hitting submit the display remains stuck at the bottom of the page, and the errors messages are at the top of the page and the users will not see them. Is there any way in Flex to scroll page to the top of the page? When programming a browser it is possible to use scrollintoview, which does just the sort of thing that I am after. Does Flex have an equivalent? http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/scrollintoview.asp scrollintoview - scrolls to an element on an HTML page Or is there some other way to achieve this goal? Thanks Andrew Blah __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Using external image icons in a List Component - should be easy
Hello dorkie, ddfd This is an easy one but have not found an answer. I have a ddfd standard List component that will pull in and display external ddfd images. http://www.mail-archive.com/flexcoders@yahoogroups.com/msg39945.html -- Best regards, Andriymailto:[EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] JPEG ByteArray to BitmapAsset
I have a bunch of JPEG ByteArrays I am trying to get converted to BitmapAssets (I need to enable smoothing after the ByteArray conversion thats I why I need to use BitmapAsset, but there might be a better way) These ByteArrays are all generated from Java based off a remote file system, so I can't use the AS Embed statement. So here's the question, what is the easiest way to achieve this? I have tried using a loader, but have had some odd results. Plus I have had troubles relating the loader's content back to the vo which contains the ByteArray. I have tried drawing the ByteArray off some examples I found, by looping through the ByteArray and calling readUnsignedInt (and all the other methods) but all I got was garbage drawings. The drawing side of things is something I am not very familiar with. I guess I am just wondering what is the best way to accomplish what I need? I think I have tried about every option, but It's just not working for me. Any help would be more than appriciated. Thanks! Dustin Mercer -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Using ActionScript 3.0 WebService Class - Need Help
Carson - thanks for the reply. I had previously tried handling the load event and then calling the getRate method from within the load handler, but that did not work either. Here is the code with the loadWSDL being handled separately. Any other ideas? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=useWebService() mx:Script ![CDATA[ import mx.rpc.soap.LoadEvent; import mx.controls.Alert; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; import mx.rpc.soap.LoadEvent; import mx.rpc.soap.WebService; public var service:WebService ; public function useWebService():void { service = new WebService(); service.wsdl = http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl; service.getRate.addEventListener(result, resultHandler); service.getRate.addEventListener(fault, faultHandler); service.addEventListener(load, loadHandler); service.loadWSDL(); } public function loadHandler(event:LoadEvent):void { Alert.show(load event); service.getRate(canada, united states); } public function resultHandler(event:ResultEvent):void { myTextArea.text = Result returned; } public function faultHandler(event:FaultEvent):void { Alert.show(fault: + event.toString()); } ]] /mx:Script mx:TextArea x=134 y=65 id=myTextArea text=getting service/ /mx:Application Bruce --- In flexcoders@yahoogroups.com, Carson Hager [EMAIL PROTECTED] wrote: Bruce, The loadWSDL() method fires asycnhronously. You will need to load the wsdl up front then call the service. Try that and see if you get a little further. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com http://www.cynergysystems.com/ Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of phillips1021 Sent: Saturday, October 21, 2006 10:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using ActionScript 3.0 WebService Class - Need Help I'm trying to learn how to use the WebService class in ActionScript 3.0 as part of a Flex 2.0 XML tutorial I'm writing for my blog (www.brucephillips.name/blog). I'm having great difficulty getting the code below to work. I've read throught the RPC components section of the Flex 2 Developer's Guide and the WebServices description in the ActionScript 3.0 Reference. I've also search through FlexCoders and Google. The references are extremely POOR in giving working examples of how to use class WebService. The below code uses the currency exchange rate WebService described here: http://www.xmethods.net http://www.xmethods.net (under demo services). I know the WebService works as I've tested it using ColdFusion. Any help you can provide me would be much appreciated and I will mention your assistance in my blog. The problem appears that my resultHandler function is never called as the test in my TextArea component does not change. Here is the code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute creationComplete=useWebService() mx:Script ![CDATA[ import mx.rpc.soap.LoadEvent; import mx.controls.Alert; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; import mx.rpc.soap.WebService; public function useWebService():void { var service:WebService = new WebService(); service.wsdl = http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl service.getRate.addEventListener(result, resultHandler); service.getRate.addEventListener(fault, faultHandler); service.loadWSDL(); service.getRate(canada, united states); } public function resultHandler(event:ResultEvent):void { myTextArea.text = Result returned; } public function faultHandler(event:FaultEvent):void { Alert.show(fault: + event.toString()); } ]] /mx:Script mx:TextArea x=134 y=65 id=myTextArea text=getting service/ /mx:Application Thanks in advance. Bruce Phillips --
[flexcoders] Cancel usergesture?
I wonder, if it is possible to cancel a click on a TabNavigator. When there are unsaved changes in the current tab, I want to alert the user, before changing the tab. Cheers, Ralf. -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Cancel usergesture?
As a workaround you could use a TabBar and a ViewStack instead.http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0536.html On 10/22/06, Ralf Bokelberg [EMAIL PROTECTED] wrote: I wonder, if it is possible to cancel a click on a TabNavigator. When there are unsaved changes in the current tab, I want to alert the user, before changing the tab. Cheers, Ralf. -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Questions about RTMP ports and channel definitions
Hi All, I recently wrote a post on my blog http://www.brightworks.com/flex_ability/?p=17 about an error I was encountering. A kind commenter explained that my problem was caused by the fact that I had two different webApps running that were both configured - in their services-config.xml files - so that their RTMP channels used the same port. I want to revise my post to explain this, but want to make sure that I understand how things work first. So I'd welcome any feedback on the following explanations questions: 1. Obviously it is bad to have two different webApps use the same RTMP port. I assume that webApps can't share the same port because, well, how would they know which webApp a particular message is being sent to? I suppose that this could be resolved by giving different destination names to the different webApp's RTMP destinations, but I can imagine how this approach could create problems. Anyway, I'm wondering if anyone here can explain the crux of the problem more clearly or succinctly... 2. I assume that configuring a channel with a specific port number (e.g. uri=rtmp://{server.name}:2038) does two things: a. It tells the FDS server-side code to listen to that port for that channel. b. It tells clients to connect to that port if they're using that channel. I assume that there's some mechanism whereby clients say, hey webApp, what port do I use for this RTMP channel? Am I understanding correctly here? 3. I'm guessing that sharing ports between webApps isn't a problem for HTTP and AMF channels. The reason I think this is that they are configured in channel definitions with URIs like this: uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling ... as opposed to specifying a specific port, as we do in RTMP channel defs. Do I understand this correctly? 4. I'm guessing that the reason why this isn't a problem is that they don't use a sustained connection, as RTMP channels do. Is this correct? Thanks in advance for any input! :-) Douglas McCarroll -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Using ActionScript 3.0 WebService Class - Need Help
I think part of my problem with this web service might be related to the XML name space (see page 1150 in the Flex 2.0 Developer's Guide). However, I cannot figure out what the name space should be for the web service. I was able to use a different web service for my tutorial on using web services that return XML in Flex 2.0. You can read the tutorial here: http://www.brucephillips.name/blog/index.cfm/2006/10/22/Using-XML-in-Flex--Tutorial-Part-4--WebService I certainly appreciate any feed back or suggestions on how to get the WebService code below to work. Bruce --- In flexcoders@yahoogroups.com, phillips1021 [EMAIL PROTECTED] wrote: Carson - thanks for the reply. I had previously tried handling the load event and then calling the getRate method from within the load handler, but that did not work either. Here is the code with the loadWSDL being handled separately. Any other ideas? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=useWebService() mx:Script ![CDATA[ import mx.rpc.soap.LoadEvent; import mx.controls.Alert; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; import mx.rpc.soap.LoadEvent; import mx.rpc.soap.WebService; public var service:WebService ; public function useWebService():void { service = new WebService(); service.wsdl = http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl; service.getRate.addEventListener(result, resultHandler); service.getRate.addEventListener(fault, faultHandler); service.addEventListener(load, loadHandler); service.loadWSDL(); } public function loadHandler(event:LoadEvent):void { Alert.show(load event); service.getRate(canada, united states); } public function resultHandler(event:ResultEvent):void { myTextArea.text = Result returned; } public function faultHandler(event:FaultEvent):void { Alert.show(fault: + event.toString()); } ]] /mx:Script mx:TextArea x=134 y=65 id=myTextArea text=getting service/ /mx:Application Bruce --- In flexcoders@yahoogroups.com, Carson Hager carson.hager@ wrote: Bruce, The loadWSDL() method fires asycnhronously. You will need to load the wsdl up front then call the service. Try that and see if you get a little further. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com http://www.cynergysystems.com/ Email: carson.hager@ Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of phillips1021 Sent: Saturday, October 21, 2006 10:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using ActionScript 3.0 WebService Class - Need Help I'm trying to learn how to use the WebService class in ActionScript 3.0 as part of a Flex 2.0 XML tutorial I'm writing for my blog (www.brucephillips.name/blog). I'm having great difficulty getting the code below to work. I've read throught the RPC components section of the Flex 2 Developer's Guide and the WebServices description in the ActionScript 3.0 Reference. I've also search through FlexCoders and Google. The references are extremely POOR in giving working examples of how to use class WebService. The below code uses the currency exchange rate WebService described here: http://www.xmethods.net http://www.xmethods.net (under demo services). I know the WebService works as I've tested it using ColdFusion. Any help you can provide me would be much appreciated and I will mention your assistance in my blog. The problem appears that my resultHandler function is never called as the test in my TextArea component does not change. Here is the code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute creationComplete=useWebService() mx:Script ![CDATA[ import mx.rpc.soap.LoadEvent; import mx.controls.Alert; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; import mx.rpc.soap.WebService; public function
[flexcoders] Datagrid Style issues
I still haven't found solutions to the following problems, so I thought I'd ask again: 1. Is there an equivalent of colspan for datagrids? Do I need to play with headerRenderer perhaps? I just want to place a heading sitting over two others. Something that looks like this: - | | | Business| | Name | Value | Amount | Percent | - | John | 4.5 | 32.55 |20.5| I'd like Business sitting over the Amount and Percent columns. 2. Is there a way to draw (thicker) vertical lines between two columns. In the diagram above that would mean a thicker separator line between say, the Value and Amount columns. I noticed a function drawVerticalLine() in the help files, but I'm not ssure how to use it. Any examples would be greatly appreciated. Cheers John -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Value Object inside Value Object?
Oh, thanks. It is really that simple. Dan --- In flexcoders@yahoogroups.com, Thomas R?t;[EMAIL PROTECTED] wrote: Hi, yeah, sure... why not...? In your first VO: public var aString : String; public var anotherVO : anotherVO; In your second VO: public var anotherString : String; To use it: var localVO = new VO(); localVO.aString = 'foo 1'; var localOtherVO = new anotherVO(); localAnotherVO.anotherString = 'foo 2'; // assign the second VO to the first one... localVO.anotherVO = localAnotherVO; // localVO is now set with a string and another VO. Cheers, Thomas Thomas R?t;Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] Web http://www.akitogo.com Dan wrote: Hi, does anyone know besides primitive type, is it possible to have a value object as an element of another value object? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Datagrid Style issues
I am not aware of functionality similar to colspan. You can draw use the drawing API to draw thicker lines. Take a look at the bottom of my blog post here http://www.cynergysystems.com/blogs/page/andrewtrice?entry=changing_the_header_separator_on You can also take a look at the DataGridHeaderSeparator class in the framework SDK source code (C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\frameworks\source\mx\skins\halo) to see how it is done using the default framework skin. -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of John Mazzocchi Sent: Sunday, October 22, 2006 9:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid Style issues I still haven't found solutions to the following problems, so I thought I'd ask again: 1. Is there an equivalent of colspan for datagrids? Do I need to play with headerRenderer perhaps? I just want to place a heading sitting over two others. Something that looks like this: - | | | Business | | Name | Value | Amount | Percent | - | John | 4.5 | 32.55 | 20.5 | I'd like Business sitting over the Amount and Percent columns. 2. Is there a way to draw (thicker) vertical lines between two columns. In the diagram above that would mean a thicker separator line between say, the Value and Amount columns. I noticed a function drawVerticalLine() in the help files, but I'm not ssure how to use it. Any examples would be greatly appreciated. Cheers John __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Custom Cell Renderer for Rows of a DataGrid
Hi, Does anyone know how to do a custom Cell Rendered for Rows of a DataGrid? All the examples I've seen are for the DataGridColumn. I've got an app where the row values are different types, so I need to be able to use different renderers for different rows. I'd appreciate any help on the matter. Thanks, John -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Questions about RTMP ports and channel definitions
To answer # 1: trying to have two instances of FDS bind to the same port is the same as trying to run two web servers on the same machine and bind them both to port 80. Its not a matter of message routing the port is already in use so the second instance will fail since it can not bind to that same port number on startup. -Stace From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas McCarroll Sent: Sunday, October 22, 2006 1:44 PM To: flexcoders post Subject: [flexcoders] Questions about RTMP ports and channel definitions Hi All, I recently wrote a post on my blog http://www.brightworks.com/flex_ability/?p=17 about an error I was encountering. A kind commenter explained that my problem was caused by the fact that I had two different webApps running that were both configured - in their services-config.xml files - so that their RTMP channels used the same port. I want to revise my post to explain this, but want to make sure that I understand how things work first. So I'd welcome any feedback on the following explanations questions: 1. Obviously it is bad to have two different webApps use the same RTMP port. I assume that webApps can't share the same port because, well, how would they know which webApp a particular message is being sent to? I suppose that this could be resolved by giving different destination names to the different webApp's RTMP destinations, but I can imagine how this approach could create problems. Anyway, I'm wondering if anyone here can explain the crux of the problem more clearly or succinctly... 2. I assume that configuring a channel with a specific port number (e.g. uri=rtmp://{server.name}:2038) does two things: a. It tells the FDS server-side code to listen to that port for that channel. b. It tells clients to connect to that port if they're using that channel. I assume that there's some mechanism whereby clients say, hey webApp, what port do I use for this RTMP channel? Am I understanding correctly here? 3. I'm guessing that sharing ports between webApps isn't a problem for HTTP and AMF channels. The reason I think this is that they are configured in channel definitions with URIs like this: uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling ... as opposed to specifying a specific port, as we do in RTMP channel defs. Do I understand this correctly? 4. I'm guessing that the reason why this isn't a problem is that they don't use a sustained connection, as RTMP channels do. Is this correct? Thanks in advance for any input! :-) Douglas McCarroll AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via
[flexcoders] Re: my event isn't sufficiently loaded to provide this information.
Yes, I've seen this before. Although I don't know if it's a bug, I do know the workaround. If you call ObjectUtil.toString() on a UIComponent, you will get this, because many of the members of UIComponent.systemManager.loaderInfo throw this exception. In your case, I bet the 'target' property of the event is a UIComponent. The workaround is to exclude the 'loaderInfo' property from the dump, like this: ObjectUtil.toString(event, null, ['loaderInfo']) I agree the error message seems suspicious, since the app has completely finished loading. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I see it. It may be that the deep recursive printing in the MouseEvent is hitting something it shouldn't be. Maybe try excluding some of the properties like target so it doesn't go too deep? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Harris Sent: Thursday, October 12, 2006 1:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] my event isn't sufficiently loaded to provide this information. This is a bit weird. (Every other time I have said this it's been me but...) I have a custom event that I am broadcasting on a button click. The Button is clicked, which then calls a function. When I put a trace of the event.target I get the The loading object is not sufficiently loaded to provide this information. error. I am not sure why this is happening as the target is fully loaded before I click it. Any one else seen this? The below snippet causes this error for me. Do you see this error when you run the below code?: = ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute mx:Script ![CDATA[ import mx.utils.ObjectUtil; public function buttonClickHandler(event:MouseEvent):void { trace(ObjectUtil.toString(event)); } ]] /mx:Script mx:HBox mx:Button id=thisButton click=buttonClickHandler(event) / /mx:HBox /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/