[flexcoders] Re: ArrayCollection to Delimited String

2009-06-05 Thread Tim Hoff
Well, let's not assume anything: private function parseArrayCollection():void { var myString:String = ; for each ( var myObject:Object in myAC ) { myString += myObject.label + | + myObject.data + ||; } trace(myString); } -TH --- In

[flexcoders] Cross-domain data flow

2009-06-05 Thread steve horvath
I've got a SWF on my website that loads images and videos from another domain. If a client loads my web page and accesses the images, will the traffic be routed through my ISP? For instance, myowndomain.com hosts my.swf which loads images from youtube and flickr. Some person on their own ISP

RE: [flexcoders] Dynamically referencing arbitrarily deep arrays?

2009-06-05 Thread Yves Riel
Not sure I understand why you're doing this but you could try to individually access each nested object until you get to the desired object; then you access its content. I rewrote the loop of your code to do this. ?xml version=1.0 encoding=utf-8? mx:Application

RE: [flexcoders] asdoc and flexlib

2009-06-05 Thread Stephen Gilson
Is the directory that contains PromptingTextInput included in the source-path when you run asdoc? Stephen From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of arisco97 Sent: Thursday, June 04, 2009 4:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] asdoc

[flexcoders] Re: reference xml using variable dynamically

2009-06-05 Thread Jason B
weird how adobe does that kind of thing, as I remember I used + sign to concat a variable and string somewhere else but then they use no + sign ? Why the inconsistency. It works by the way --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: Try: for each(var item:Object in

RE: [flexcoders] itemrenderer in popupMenuButton?

2009-06-05 Thread Yves Riel
ItemRenderers are used for list based controls. When you want to customize the look and feel of buttons, you must do it through their skins. You can use a programmatic skin to do it. However, from your text, I think that what you want to do is actually add an icon to each item in the list shown

[flexcoders] Re: Dynamically referencing arbitrarily deep arrays?

2009-06-05 Thread Keith Hughitt
Thanks Yves, I think that will work :) The reason I want to do this is because I'm working on a component to allow multiple filters to be easily assigned to a DataGrid (http://tech.groups.yahoo.com/group/flexcoders/message/143771), and to also be able to work with multi-dimensional

[flexcoders] Re: Creating Link inisde a Data Grid Collumn

2009-06-05 Thread valdhor
This is one of my itemrenderers: package Renderers { import mx.controls.*; import mx.controls.dataGridClasses.DataGridListData; import mx.core.IFactory; public class LinkCellField extends LinkButton implements IFactory { public function LinkCellField ()

[flexcoders] Re: Creating Link inisde a Data Grid Collumn

2009-06-05 Thread valdhor
Oh, forgot to add the code for a cell clicked event: myDataGrid.addEventListener(ListEvent.ITEM_CLICK, cellClicked); private function cellClicked(event:ListEvent):void { if(event.columnIndex == 0) // Or whatever column you want { navigateToURL(new URLRequest('rediff.com'));

Re: [flexcoders] Problem loading signed RSL

2009-06-05 Thread Adrian Williams
Hi Denis, If you've compiled using the RSL instead of merged code, you will need to locate the framework file (in your case: framework_3.2.03958.swf) on the computer used to compile and push that file to your web server along with your application swf's...when you use the RSL's and make

[flexcoders] Re: reference xml using variable dynamically

2009-06-05 Thread Amy
--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: Try: for each(var item:Object in nutritionXML[carousel].itemdata) Another syntax that's more reliable and understandable is: for each (var item:XMLList in nutritionXML.child(carousel).child(itemdata)) { //stuff }

[flexcoders] Re: Is this list declining?

2009-06-05 Thread Amy
--- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote: Sorry, I don't have an update on that, Amy. Maybe Vera knows, so I've cc'd her. Thanks :-)

[flexcoders] Re: Variables to reference variables/ids (not variable variables)

2009-06-05 Thread Trefalgar Bain
Exactly what I needed, and it works just as expected. Thank you very much, Tracy! --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: You can do: this[chart].series = currentSeries; if linechart0 is an id for a component instance or a property of this Tracy

[flexcoders] Pb with Amfphp

2009-06-05 Thread christophe_jacquelin
Hello, Suddently Amfphp is not working with my application. Before it was working well. I have the message : Channel Disconnected before an acknowledgment was received. Thank you, Christophe,

Re: [flexcoders] Cross-domain data flow

2009-06-05 Thread Manish Jethani
That's right. The browser will contact YouTube and Flickr directly to load content from those websites. Only the SWF will be loaded from your site. On 6/5/09, steve horvath flexcod...@stevehorvath.com wrote: I've got a SWF on my website that loads images and videos from another domain. If a

[flexcoders] Re:Pb with Amfphp

2009-06-05 Thread Martin Moschitz
i had this error frequently while using ZendAMF. It was always a Problem with the PHP code. Some call to a method which did not exist, a class method call without $this, or any other minor thing which should cause PHP to send a warning, but in conjunction with ZendAMF (since

[flexcoders] Closures in ActionScript 3?

2009-06-05 Thread Keith Hughitt
Could someone please explain to me how closures work in ActionScript? I am attempting to create a set of Flex Form fields, and assign an event-handler to each of them, however, it seems that after creation, all of the fields have the same event handler. For example: var i:int = 0; for

[flexcoders] Re: Closures in ActionScript 3?

2009-06-05 Thread valdhor
I wouldn't do it that way. I would add one event handler for all textinputs and then figure out which textinput generated the event. input.addEventListener(change, changeHandler); private function changeHandler(event:Event):void { Alert.show(event.target.parent.label); } --- In

RE: [flexcoders] Re: reference xml using variable dynamically

2009-06-05 Thread Tracy Spratt
Yeah, that really is better. I just have used the bracket notation for so much longer than e4x that I forget. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Amy Sent: Friday, June 05,

Re: [flexcoders] how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-05 Thread Pan Troglodytes
Yes. A gigantic 15 items. ;) I wouldn't have thought going through a list of 15 items would be quite so processor intensive. Though even if it's just 5 items and I use Array instead of ArrayCollection, it's still choppy. The problem isn't so much that it's scanning through the entire

[flexcoders] SWOBJECT: no action responded to swfobject

2009-06-05 Thread flexaustin
Not sure if anyone is using ruby on rails and flex, but has anyone see this error ( No action responded to swfobject) before? Can't seem to find anything? Here is how I am using swfobject. script type=text/javascript src=swfobject.js/script script type=text/javascript

[flexcoders] An excellent FB4 webservices tutorial

2009-06-05 Thread hworke
http://rrao.host.adobe.com/screencasts/DCD_WS.swf By the way also check out this one also: http://blog.flexgeek.in/2009/05/flash-builder-4-demo-dashboard-with-google-app-engine-built-in-10-mins/

Re: [flexcoders] GoogleMaté Sample Application

2009-06-05 Thread Richard Rodseth
Looks very clean, Tim! I've been itching to create a sample showing MVP. Yours looks great! On Thu, Jun 4, 2009 at 5:35 PM, Tim Hofftimh...@aol.com wrote: Hi all, For any of you interested in learning more about the Maté framework, I've created a sample that's publically available.  It's a

[flexcoders] Re: GoogleMaté Sample Application

2009-06-05 Thread Tim Hoff
Thanks Richard, I appreciate it. Most of my good stuff is behind coporate firewalls, so I wanted to put something out there that might help others in the community. Thanks again, -TH --- In flexcoders@yahoogroups.com, Richard Rodseth rrods...@... wrote: Looks very clean, Tim! I've been

[flexcoders] Re: sorting XMLListCollection

2009-06-05 Thread Amy
--- In flexcoders@yahoogroups.com, Cordova Aaron basic...@... wrote: I've looked at several examples using google. All the examples sort on an XML attribute, but I want to sort on a value of a particular tag. http://tech.groups.yahoo.com/group/flexcoders/message/121808

Re: [flexcoders] Re: Creating Link inisde a Data Grid Collumn

2009-06-05 Thread guess what
Thank you so so much. --- On Fri, 6/5/09, valdhor valdhorli...@embarqmail.com wrote: From: valdhor valdhorli...@embarqmail.com Subject: [flexcoders] Re: Creating Link inisde a Data Grid Collumn To: flexcoders@yahoogroups.com Date: Friday, June 5, 2009, 7:59 AM

[flexcoders] Re: Closures in ActionScript 3?

2009-06-05 Thread tom93438
Just a shot in the dark here... I could be completely wrong, I dont use closures much in AS. Does AS3 have block scope? (I suspect not). If not, then you're recycling the variable 'input' each time you loop. So each time you add a new event listener to 'input', you're adding it to all your

[flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-05 Thread Tim Hoff
Hi Jason, Have you tried it from within the itemRenderer? Something like: private var adg : AdvancedDataGrid; override public function set data(value:Object):void { super.data = value; adg = owner as AdvancedDataGrid; } override protected function updateDisplayList( w:Number,

[flexcoders] Re: reference xml using variable dynamically

2009-06-05 Thread Amy
--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: Yeah, that really is better. I just have used the bracket notation for so much longer than e4x that I forget. except it should be nutritionXML.child(carousel).child('itemdata') oops :o)

[flexcoders] Microphone soundTransform and SPEEX codec bug

2009-06-05 Thread Ryan Graham
Hi All, Can anyone else confirm the following bug? When using a SoundTransform to set the Microphone volume to 0 (to avoid feedback), you get the expected silent behavior with the default Nellymoser codec, while still seeing microphone activity. If you switch the Microphone's codec to SPEEX,

Re: [flexcoders] Closures in ActionScript 3?

2009-06-05 Thread Dave Cates
Hi Keith, Main issue is that there is nothing to distinguish the TextInput instances. Plus the I iterative isn¹t working because it indeed will be that last number of the loop ­ it¹s not being used for anything else or assigned to anything. To get around this, you could assign a different name

[flexcoders] Re: Closures in ActionScript 3?

2009-06-05 Thread daveca...@ymail.com
Hi Keith, Main issue is that there is nothing to distinguish the TextInput instances. Plus the I iterative isn't working because it indeed will be that last number of the loop – it's not being used for anything else or assigned to anything. To get around this, you could assign a different name

[flexcoders] Question about ArrayCollections

2009-06-05 Thread Raymond Brown
Here is some code of what I am using today: private function startAliveDeadCheck():void { startMonitor(127.0.0.1, 80); } private function startMonitor(location:String, port:uint):void { monitor = new SocketMonitor(location, port);

[flexcoders] Re: Question about ArrayCollections

2009-06-05 Thread Tim Hoff
for each ( var item:Object in socketsToMonitor ) { trace(item.ip); } -TH --- In flexcoders@yahoogroups.com, Raymond Brown silenttr...@... wrote: Here is some code of what I am using today: private function startAliveDeadCheck():void { startMonitor(127.0.0.1, 80); } private

RE: [flexcoders] Microphone soundTransform and SPEEX codec bug

2009-06-05 Thread Ryan Graham
I couldn't find a bug related to this in JIRA so I went ahead and created one, in case anyone would like to vote for it: https://bugs.adobe.com/jira/browse/FP-2161 Thanks, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Ryan Graham Sent: Friday,

[flexcoders] Comma Seperator , Advanced Data Grid

2009-06-05 Thread guess what
I have a XML which has nodes . Nodes has lot of values which has comma separated values 123,345 457,98 99,1232 When i Do a grouping in my advanced Data Grid i noticed that if data has comma in the values , the display does not show up . But if i remove the comma , it works perfectly fine

Re: [flexcoders] Closures in ActionScript 3?

2009-06-05 Thread Manish Jethani
On Fri, Jun 5, 2009 at 7:58 PM, Keith Hughittkeith.hugh...@gmail.com wrote: Could someone please explain to me how closures work in ActionScript? I am attempting to create a set of Flex Form fields, and assign an event-handler to each of them, however, it seems that after creation, all of the

[flexcoders] Re: reference xml using variable dynamically

2009-06-05 Thread Jason B
Actually this works nutritionXML.child(carousel).itemdata NOT THIS nutritionXML.child(carousel).child(itemdata) the second one seems to give me back the first itemdata node not all of them for the foreach, just an FYI for any future googler looking at this response

[flexcoders] MaxWait time in the server.xml file in Tomcat 6.0

2009-06-05 Thread Simon Mathew
I found out the reason for the below issue, it has to do something with max wait time, it was 10 seconds, when I increased to 20 seconds it started working fine. When accessing from out of country, it is still throwing the same error message, I think it is because it takes little longer to