[flexcoders] Re: Question to Adobe about Flex Framework 1.5 Code Quality
--- In flexcoders@yahoogroups.com, Ted Patrick [EMAIL PROTECTED] wrote: CAN YOU HERE ME, Ted??? The trick here is that I added 'myFoo.doFoo' I don't see any trick i see just event handling. Your issue is more walking a tree of custom objects. :) So how should we walk an object tree? Top to bottom? Left to Right? Big to Small? Should we walk all properties? Should we only walk objects of a certain type? How should we handle duplicate references? How should we handle circular references? How should we handle object identity? Should we embed this logic into the player or make this customizable? If you asking such questions YOU DON'T UNDERSTAND WHAT IS TREE. Read please some information about different types of collections (Hash, Tree, Vector etc.) and than ask non-dummy question and i'll give you response. However in my previous message was simple interface that gives all the responses if you have some experience in oo design. The new DOM event model is extensible, simple to use, and easy to understand once you get the hand of it. And DOM model is designed for TREE of objects, but we cannot use it in non-visual tree, that because ITS BAD DESIGNED. Again I will go on record as saying there isn't anything that I would change. :) It's just because you don't know how to make it better. Cheers, Max Cheers, Cynergy Systems, Inc. Theodore Patrick Sr. Consultant [EMAIL PROTECTED] tel: 1.866.CYNERGY http://www.cynergysystems.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Maxym Sent: Monday, April 10, 2006 4:18 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Question to Adobe about Flex Framework 1.5 Code Quality I had no possibility to reply, cause it was weekend, sorry. Your last post was child-like, but i'll try to take it seriously for a moment, cause someone can read this and think that it makes sense. 1. When you will have a possibility to compile AS code into swf using AS, when you will have AppDomains in AS, when you will have WMI (or smthn like that) etc. etc. etc. etc. etc. , when you will have flex framework embeded into flash player (22.4 M it's not only runtime) THAN YOU WILL COMPARE WEIGHT OF FLASH PLAYER AND .NET FRAMEWORK. It's NOT about technologie it's about event model. We don't need another .NET we have one allready. 2. We have allready untiped functors in flash. C# delegate it's only strong-typed functor. If you think that embeding this kind of functors into flash player takes a lot of weight you are wrong. 3. If you can't take things in general i'll show you small example why current event model is bad designed. Imagine that you have some tree of objects (non visual). you want to use bubbling, capturing etc. in this tree( i can show you wide range of tasks when it usefull in non visual objects). Now we have no possibility to do that. But for such task some simple interface like interface IChildDispatcher extends IEventDispatcher { public function get parent() : IEventDispatcher;//or it can returns IChildDispatcher if you like } is enough. Of course we can create such interface, then rewrite EventDispatcher then use bubbling etc. but FOR WHAT?? What do you thin about this ex.? -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.0/306 - Release Date: 4/9/ 2006 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex2B2 - bug? problem when calling a webservice method with a string[] arg
You're correct! Thanks Ben. this is not a bug. my mistake. --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: call.send([array1]); should be call.send(array1); The square brackets mean you are sending a one element array that contains array1. --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: When i call a .net webservice service method that looks like this public string myWebMethod(string[] array1) { } in flex 1.5 i had no problems but in flex 2 the array argument is being received as a fused string (where all the string args are concatenated). flex1.5 code var array1:Array = new Array(); array1.push(1); array1.push(2); array1.push(3); var call = webservice1.myWebMethod(array1); flex2 code var array1:Array = new Array(); array1.push(1); array1.push(2); array1.push(3); var call:mx.rpc.AbstractOperation = webservice1[myWebMethod]; call.send([array1]); -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: DataGrid has items but doesn't display text
Can you show us what your webservice returned data looks like. dont know if this helps but my webservice returned data was a string and i did the following private function returnWebService(event:ResultEvent):void { var xmlobj:XML = new XML(event.result); var xc3:XMLListCollection = new XMLListCollection(xmlobj.children ()); //in my eg, xmlobj.children() populated the dg dg.dataProvider = xc3; } --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: Hello, I am populating an XMLListCollection with the results of a WebService call (in AS, not MXML), and setting that XMLListCollection as the dataProvider for my DataGrid. I can see that it is binding the data, because if the XML contains 5 nodes, I can roll over 5 items in the DataGrid. The problem is that the DataGrid doesn't display the content of the nodes, they're just blank roll overs. If I write something like this: plans_xmlcoll.getItemAt(2).PlanNumber out to a textfield, the value shows up, so I know it is there. My DataGrid column whose dataField value is set to PlanNumber shows nothing, however. Why would the data not be showing up in the DataGrid? Thanks, Ben PS - I take it the resultFormat of a WebService called via AS is automatically (and unchangeably) E4X? Why do mx.rpc.soap.WebService and mx.rpc.soap.mxml.WebService have different capabilities? Heck, why are there even separate classes? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex2B2 simple question regarding xml attributes
Hi Werner. Thanks the suggestion. I wasn't able to run this because i'm getting a access to undefined property 'a' compile error --- In flexcoders@yahoogroups.com, Werner Sharp [EMAIL PROTECTED] wrote: How about this... var xml1:XML = Node1 a='b' c='d' e='f' g='h'/ for each (a in [EMAIL PROTECTED]) { trace (a.name()); trace (a.toXMLString()); } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972 Sent: Monday, April 10, 2006 8:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2B2 simple question regarding xml attributes i can't find what i'm looking for in the docs. i need help All i want to do is iterate over an xml node's attributes. XML.attributes() returns a list of all the attributes, but this is only half of what i want. i want the attribute names as well. var xml1:XML = Node1 a='b' c='d' e='f' g='h'/ i want the value 'a' and 'b' and 'c' and 'd' etc via a loop regards bod -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex2B2 simple question regarding xml attributes
i did the following for each (var a:Object in [EMAIL PROTECTED]) { trace (a.name()); trace (a.toXMLString()); } a.name doesn't trace anything. a.toXMLString() traces the attribute value. so we're half way their. --- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote: Hi Werner. Thanks the suggestion. I wasn't able to run this because i'm getting a access to undefined property 'a' compile error --- In flexcoders@yahoogroups.com, Werner Sharp wsharp@ wrote: How about this... var xml1:XML = Node1 a='b' c='d' e='f' g='h'/ for each (a in [EMAIL PROTECTED]) { trace (a.name()); trace (a.toXMLString()); } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972 Sent: Monday, April 10, 2006 8:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2B2 simple question regarding xml attributes i can't find what i'm looking for in the docs. i need help All i want to do is iterate over an xml node's attributes. XML.attributes() returns a list of all the attributes, but this is only half of what i want. i want the attribute names as well. var xml1:XML = Node1 a='b' c='d' e='f' g='h'/ i want the value 'a' and 'b' and 'c' and 'd' etc via a loop regards bod -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS *Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. *To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe *Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] labelfuction and column chart questions
hi, 1) me using flex 1.5 i have a ColumnChart. how can i change one column color on mouse hover on it? 2) how can i show images with labelFunction? i m calling a function with labelFunction from a PieChart and want to display images in the label. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
回复: Re: [flexcoders] Flex Builder to ship with JDT? Eclipse plugins compatibility wi th Flex Builder 2?
b2 plugin version didn't work fine in my computer,i can create flex project ,mxml file, and so on ,but there is no design panel in my workbench,and the states ,commponents panel only can display, and nothing in it except a words like this the panel is aviliable when edit mxml file !i just edit mxml file! --- Carlos Rovira [EMAIL PROTECTED]写道: Oh! I didn't remember the three flavors, that's good!, ...and solves problems with JDT :) 2006/2/15, Johannes Nel [EMAIL PROTECTED]: the installer for beta 1 gives you the choice between framework only, stand alone editor or plugin version. when you install the plugin version you get asked to point to your eclipse directory. not much more to say about it...well the zorn plugin now plays nice with all my other plugins so thats a good thing :) On 2/15/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi Johannes, Could you elaborate? What plugin version are you referring? Thanks for the support! 2006/2/15, Johannes Nel [EMAIL PROTECTED] : install the plugin version (don't copy it over as its not that simple). the stand alone editor is extremely crippled (even ant is not there!) On 2/15/06, Carlos Rovira [EMAIL PROTECTED] wrote: I'm this days trying the new Flex Builder 2 and I notice two things that I would ask to this list: 1.- JDT plugin is not included in the bundle. The final release will ship without this functionality? Why is to remove such useful functionality?. Flex is not only a product for develop rich client RIAs. Most of the times enterprise will use Java to code server side part of RIAs. (and more if you take account that FES is a J2EE web application). If not many people will have to open another IDE to code the server side part of their applications. 2.- I was trying to throw a plugin compatible with Eclipse 3.1.x in the plugins folder of my Flex builder 2 installation and nothing appears when I open Flex Builder 2. Is this normal?. One of the great things of eclipse is the posibility to incorporate other plugins available for the platform. For example the plugin I was trying to install (JOPE) allows me to have access to my JOnAS application server and is very useful to maintain my workflow in only one IDE. -- ::| Carlos Rovira ::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design developmenthttp://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software developmenthttp://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and developmenthttp://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flexhttp://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practicehttp://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw -- YAHOO! GROUPS LINKS - Visit your group flexcodershttp://groups.yahoo.com/group/flexcoders on the web. - To unsubscribe from this group, send an email to: [EMAIL PROTECTED][EMAIL PROTECTED] - Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- -- j:pn -- 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 Web site design
[flexcoders] Flex Consultant Needed
Hello Flex Developers, A dynamic firm in San Francisco is looking for help developing creating a new reporting interface prototype using Macromedia Flex. Prototype will most likely be developed using Flex 1.5. Subsequent versions could be developed in Flex 2.0. Consultant will be responsible for upgrade, replication, and rollout. Consultant will also participate in daily knowledge transfer sessions. Since client has already defined design specs, consultant is generally expected to complete assigned development tasks. If interested in more information, please call or email. Best regards, James Bell ESG Consulting 408-855-4153 [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/ * 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] Strange ComboBox problem
Hi, I've ran into a bug I'm unable to trace, I was wondering if anyone here encountered this (so far I could not find anything on the web) I'm extending a Flex control, in my new class I'm attaching a ComboBox to the control. The problem is: When I change the CB selection for the first time the selection is ignored, instead it gets back to it's default selection. This will happen only on the first time and after that the CB behavior is normal. Any ideas?? Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] AS3 class cast
hi, I have some problem with AS3 class cast (Flex2 Beta2). I have 2 classes, one (B for example) inherits from the other (A). here is some code : var b: B = new B(); b is B; // - return true b is A; // - return true A(b); // - return null For the last line, I was expecting A(b) returns b but considered as an instance of A (access to only A attributes and methods). -- David Rousselie * Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. Le Groupe France Telecom decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur. * This message and any attachments (the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. Messages are susceptible to alteration. France Telecom Group shall not be liable for the message if altered, changed or falsified. If you are not the intended addressee of this message, please cancel it immediately and inform 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 Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: DataGrid has items but doesn't display text
Sure, my returned data is a list of nodes like this:Plan xmlns="http://domain.com/BackOffice/DocumentMetadata" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ChartLabel1406238/ChartLabel IndustryMANUFACTURING/Industry IndustryOverride/ PlanName/ PlanNameOverride/ PlanNumber1406238/PlanNumber PlanSizeGroup50-149/PlanSizeGroup PlanSizeGroupOverride//Planand here is the code I use to populate my XMLListCollection object:var x:XML = new XML(event.message.body);namespace docResponse = "http://domain.com/BackOffice/DocumentMetadata";use namespace docResponse;dmws = x..Document;plans_ac = new XMLListCollection(x..PlanData.Plans.Plan);tf.text = plans_ac.toString();And here is my DataGrid:mx:DataGrid dataProvider="{plans_ac}" x="71" y="116" width="545" height="146" showHeaders="true" id="planList_dg" mx:columns mx:DataGridColumn headerText="Plan Number" dataField="PlanNumber"/ mx:DataGridColumn headerText="Plan Name" dataField="PlanName"/ mx:DataGridColumn headerText="Industry" dataField="Industry"/ mx:DataGridColumn headerText="Group Size" dataField="PlanSizeGroup"/ /mx:columns /mx:DataGrid--- In flexcoders@yahoogroups.com, "bhaq1972" [EMAIL PROTECTED] wrote: Can you show us what your webservice returned data looks like. dont know if this helps but my webservice returned data was a string and i did the following private function returnWebService(event:ResultEvent):void { var xmlobj:XML = new XML(event.result); var xc3:XMLListCollection = new XMLListCollection(xmlobj.children ()); //in my eg, xmlobj.children() populated the dg dg.dataProvider = xc3; } --- In flexcoders@yahoogroups.com, "ben.clinkinbeard" ben.clinkinbeard@ wrote: Hello, I am populating an XMLListCollection with the results of a WebService call (in AS, not MXML), and setting that XMLListCollection as the dataProvider for my DataGrid. I can see that it is binding the data, because if the XML contains 5 nodes, I can roll over 5 items in the DataGrid. The problem is that the DataGrid doesn't display the content of the nodes, they're just blank roll overs. If I write something like this:plans_xmlcoll.getItemAt(2).PlanNumber out to a textfield, the value shows up, so I know it is there. My DataGrid column whose dataField value is set to PlanNumber shows nothing, however.Why would the data not be showing up in the DataGrid?Thanks, BenPS - I take it the resultFormat of a WebService called via AS is automatically (and unchangeably) E4X? Why do mx.rpc.soap.WebService and mx.rpc.soap.mxml.WebService have different capabilities? Heck, why are there even separate classes? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Question to Adobe about Flex Framework 1.5 Code Quality
And DOM model is designed for TREE of objects, but we cannot use it in non-visual tree, that because ITS BAD DESIGNED. --- WITH FLEX 2 YOU CAN SUPPORT THIS TODAY, YOU ARE NOT RESTRICTED. --- I believe that adding this into the player or Flex by default would be a mistake. Here is my logic: 1. DOM Events exist to give context to user interaction on the DisplayList. These events originate on the visual layer of the application where elements are exposed to Mouse, Keyboard, DisplayObject events. Only objects that extend DisplayObject can be added to the DisplayList, custom classes can listen through a DisplayObject's events but they are not directly on the DisplayList. 2. Any object can listen for events at any node of the DisplayList tree. (I posted an example of this) This allows custom classes to participate in events from the DisplayList. 3. How events are processed within custom classes is the class's responsibility (read: encapsulation). If your class needs events to walk its children, then implement it. Here is an example of event processing with custom classes using trees: package { import flash.util.trace; import flash.events.* public class FooClass extends EventDispatcher { public var children:Array = []; public function FooClass(){ this.addEventListener( 'resize' , processEvent ) } public function processEvent( event:Event ){ for( var i:uint=0 ; i children.length ; i++ ){ children[i].dispatchEvent( event ); } } public function addChild( child:Object ){ children.push( child ); } } } // AS code within AS3/Flex application: // Build a tree of custom classes // create a root object rootFoo = new FooClass(); // add child objects rootFoo.addChild( new FooClass() ) rootFoo.addChild( new FooClass() ) rootFoo.addChild( new FooClass() ) // add more child objects rootFoo.children[0].addChild( new FooClass() ) rootFoo.children[0].addChild( new FooClass() ) rootFoo.children[0].addChild( new FooClass() ) // add more more child objects rootFoo.children[0].children[1].addChild( new FooClass() ) rootFoo.children[0].children[1].addChild( new FooClass() ) rootFoo.children[0].children[1].addChild( new FooClass() ) // dispatch an event to walk children rootFoo.dispatchEvent( new Event('resize') ); In this case, at each level I am using an Array to hold children events would be processed like so: rootFoo.children[0].children[0] rootFoo.children[0].children[1].children[0] rootFoo.children[0].children[1].children[1] rootFoo.children[0].children[1].children[2] rootFoo.children[0].children[1] rootFoo.children[0].children[2] rootFoo.children[0] rootFoo.children[1] rootFoo.children[2] rootFoo In adding listeners in the constructor, this forces child objects to have event precedence in the tree. At each level the events will process to the deepest child and then handle events upward based on the order events were added into each node. If you wanted to see different pattern of event processing, simply change the eventProcessor method or how listeners are added to fit your needs. It really is wide open. Hope this helps! Cheers, Cynergy Systems, Inc. Theodore Patrick Sr. Consultant [EMAIL PROTECTED] tel: 1.866.CYNERGY http://www.cynergysystems.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.1/307 - Release Date: 4/10/2006 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Question to Adobe about Flex Framework 1.5 Code Quality
Ted, You've not understood me one more time. I don't have a problem with creating my own code with my own logic (btw your code is bad). But as a developer you don't have to be targeted to some concrete case but you have to operate with abstractions. And if in bubbled dispatching you see events dispatching through a tree of visual object, I see few abstractions that we can separate from each other. And if now it's not separated it's not so extensible as it can be. And the question was NOT how to create some bla-bla-bla with bla-bla- bla BUT Why we have different abstractions hardcoded in one class and why Adobe doesn't provide better solution, cause it can be better even leaving current interface??? And looking back to flex 1.5 framework code I'm not wondered, cause it's created using copypaste. Hope you will understand me this time. Max --- In flexcoders@yahoogroups.com, Ted Patrick [EMAIL PROTECTED] wrote: And DOM model is designed for TREE of objects, but we cannot use it in non-visual tree, that because ITS BAD DESIGNED. --- WITH FLEX 2 YOU CAN SUPPORT THIS TODAY, YOU ARE NOT RESTRICTED. --- I believe that adding this into the player or Flex by default would be a mistake. Here is my logic: 1. DOM Events exist to give context to user interaction on the DisplayList. These events originate on the visual layer of the application where elements are exposed to Mouse, Keyboard, DisplayObject events. Only objects that extend DisplayObject can be added to the DisplayList, custom classes can listen through a DisplayObject's events but they are not directly on the DisplayList. 2. Any object can listen for events at any node of the DisplayList tree. (I posted an example of this) This allows custom classes to participate in events from the DisplayList. 3. How events are processed within custom classes is the class's responsibility (read: encapsulation). If your class needs events to walk its children, then implement it. Here is an example of event processing with custom classes using trees: package { import flash.util.trace; import flash.events.* public class FooClass extends EventDispatcher { public var children:Array = []; public function FooClass(){ this.addEventListener( 'resize' , processEvent ) } public function processEvent( event:Event ){ for( var i:uint=0 ; i children.length ; i++ ){ children[i].dispatchEvent( event ); } } public function addChild( child:Object ){ children.push( child ); } } } // AS code within AS3/Flex application: // Build a tree of custom classes // create a root object rootFoo = new FooClass(); // add child objects rootFoo.addChild( new FooClass() ) rootFoo.addChild( new FooClass() ) rootFoo.addChild( new FooClass() ) // add more child objects rootFoo.children[0].addChild( new FooClass() ) rootFoo.children[0].addChild( new FooClass() ) rootFoo.children[0].addChild( new FooClass() ) // add more more child objects rootFoo.children[0].children[1].addChild( new FooClass() ) rootFoo.children[0].children[1].addChild( new FooClass() ) rootFoo.children[0].children[1].addChild( new FooClass() ) // dispatch an event to walk children rootFoo.dispatchEvent( new Event('resize') ); In this case, at each level I am using an Array to hold children events would be processed like so: rootFoo.children[0].children[0] rootFoo.children[0].children[1].children[0] rootFoo.children[0].children[1].children[1] rootFoo.children[0].children[1].children[2] rootFoo.children[0].children[1] rootFoo.children[0].children[2] rootFoo.children[0] rootFoo.children[1] rootFoo.children[2] rootFoo In adding listeners in the constructor, this forces child objects to have event precedence in the tree. At each level the events will process to the deepest child and then handle events upward based on the order events were added into each node. If you wanted to see different pattern of event processing, simply change the eventProcessor method or how listeners are added to fit your needs. It really is wide open. Hope this helps! Cheers, Cynergy Systems, Inc. Theodore Patrick Sr. Consultant [EMAIL PROTECTED] tel: 1.866.CYNERGY http://www.cynergysystems.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.1/307 - Release Date: 4/10/
[flexcoders] Re: DataGrid has items but doesn't display text
Sorry, I can't help. this might give you ideas. I was trying this little test out based on your code. var x:XML = Plan xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; ChartLabel1406238/ChartLabel IndustryMANUFACTURING/Industry IndustryOverride/ PlanNamea/PlanName PlanNameOverrideb/PlanNameOverride PlanNumber1406238/PlanNumber PlanSizeGroup50-149/PlanSizeGroup PlanSizeGroupOverrided/PlanSizeGroupOverride /Plan; plans_ac = new XMLListCollection(XMLList(x)); this populated the datagrid as long as i didn't have the namespace xmlns=http://domain.com/BackOffice/DocumentMetadata; in the xml. --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: Sure, my returned data is a list of nodes like this: Plan xmlns=http://domain.com/BackOffice/DocumentMetadata; xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; ChartLabel1406238/ChartLabel IndustryMANUFACTURING/Industry IndustryOverride/ PlanName/ PlanNameOverride/ PlanNumber1406238/PlanNumber PlanSizeGroup50-149/PlanSizeGroup PlanSizeGroupOverride/ /Plan and here is the code I use to populate my XMLListCollection object: var x:XML = new XML(event.message.body); namespace docResponse = http://domain.com/BackOffice/DocumentMetadata;; use namespace docResponse; dmws = x..Document; plans_ac = new XMLListCollection(x..PlanData.Plans.Plan); tf.text = plans_ac.toString(); And here is my DataGrid: mx:DataGrid dataProvider={plans_ac} x=71 y=116 width=545 height=146 showHeaders=true id=planList_dg mx:columns mx:DataGridColumn headerText=Plan Number dataField=PlanNumber/ mx:DataGridColumn headerText=Plan Name dataField=PlanName/ mx:DataGridColumn headerText=Industry dataField=Industry/ mx:DataGridColumn headerText=Group Size dataField=PlanSizeGroup/ /mx:columns /mx:DataGrid --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: Can you show us what your webservice returned data looks like. dont know if this helps but my webservice returned data was a string and i did the following private function returnWebService(event:ResultEvent):void { var xmlobj:XML = new XML(event.result); var xc3:XMLListCollection = new XMLListCollection (xmlobj.children ()); //in my eg, xmlobj.children() populated the dg dg.dataProvider = xc3; } --- In flexcoders@yahoogroups.com, ben.clinkinbeard ben.clinkinbeard@ wrote: Hello, I am populating an XMLListCollection with the results of a WebService call (in AS, not MXML), and setting that XMLListCollection as the dataProvider for my DataGrid. I can see that it is binding the data, because if the XML contains 5 nodes, I can roll over 5 items in the DataGrid. The problem is that the DataGrid doesn't display the content of the nodes, they're just blank roll overs. If I write something like this: plans_xmlcoll.getItemAt(2).PlanNumber out to a textfield, the value shows up, so I know it is there. My DataGrid column whose dataField value is set to PlanNumber shows nothing, however. Why would the data not be showing up in the DataGrid? Thanks, Ben PS - I take it the resultFormat of a WebService called via AS is automatically (and unchangeably) E4X? Why do mx.rpc.soap.WebService and mx.rpc.soap.mxml.WebService have different capabilities? Heck, why are there even separate classes? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Question to Adobe about Flex Framework 1.5 Code Quality
Maxym, you're the best (in so many ways).This is such groundbreaking insight, do keep it coming.e k z___Ikezi KamanuAdobe Consulting On 4/11/06, maxym.hryniv [EMAIL PROTECTED] wrote: Ted, You've not understood me one more time. I don't have a problem with creating my own code with my own logic (btw your code is bad). But as a developer you don't have to be targeted to some concrete case but you have to operate with abstractions. And if in bubbled dispatching you see events dispatching through a tree of visual object, I see few abstractions that we can separate from each other. And if now it's not separated it's not so extensible as it can be. And the question was NOT how to create some … bla-bla-bla with bla-bla- bla BUT Why we have different abstractions hardcoded in one class and why Adobe doesn't provide better solution, cause it can be better even leaving current interface??? And looking back to flex 1.5 framework code I'm not wondered, cause it's created using copypaste. Hope you will understand me this time. Max -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Question to Adobe about Flex Framework 1.5 Code Quality
OUT OF CONTEXT --- In flexcoders@yahoogroups.com, Ikezi Kamanu [EMAIL PROTECTED] wrote: Maxym, you're the best (in so many ways). This is such groundbreaking insight, do keep it coming. e k z ___ Ikezi Kamanu Adobe Consulting On 4/11/06, maxym.hryniv [EMAIL PROTECTED] wrote: Ted, You've not understood me one more time. I don't have a problem with creating my own code with my own logic (btw your code is bad ). But as a developer you don't have to be targeted to some concrete case but you have to operate with abstractions. And if in bubbled dispatching you see events dispatching through a tree of visual object, I see few abstractions that we can separate from each other. And if now it's not separated it's not so extensible as it can be. And the question was NOT how to create some bla-bla-bla with bla- bla- bla BUT Why we have different abstractions hardcoded in one class and why Adobe doesn't provide better solution, cause it can be better even leaving current interface??? And looking back to flex 1.5 framework code I'm not wondered, cause it's created using copypaste. Hope you will understand me this time. Max -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] gant chart
Has anyone worked on creating a gant chart capability with Flex? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex1.5: Limit of series a graph component can have
I dont think they would want to resample or view chunks of data as a graph detail. This is more a political question. If it can be done, then my managers will trust Flex implicitly. Otherwise, they will force us to use some other product, or even switch to .NET. This financial application is being built for our federal government, and so theres a lot of red-tape going on in this project. So I ask againcan it be done? Thanks in advance. J. -Mensaje original- De: Roger Gonzalez [mailto:[EMAIL PROTECTED]] Enviado el: Lunes, 10 de Abril de 2006 08:35 p.m. Para: flexcoders@yahoogroups.com Asunto: RE: [flexcoders] Flex1.5: Limit of series a graph component can have That would be pretty impractical in Flex 1.5 without providing truckloads of RAM. I suspect you need to either do it on the server as an image sent to the client, or else do it in Flex 2. What kind of graph is this? Do you really need 100k samples on screen simultaneously? Can you do overview/detail? Can you downsample and then plot the downsampled data? -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of RAMOS CARDONA JESUS SALVADOR Sent: Monday, April 10, 2006 6:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex1.5: Limit of series a graph component can have Hi all. My manager has come to me with an unusual question: Is there a limit as to the number of series (or dots) a flex graph can have? The need arose because of a requirement of a financial application being built on Flex, which needs to output dot graphs of at least 100,000 dots. Without considering the performance or overhead, is this possible in Flex? Thanks. J. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Dreamweaver 8 MXML Syntax Highlighting?
Does anyone know how to get MXML syntax highlighting in Dreamweaver 8? How about code-hinting? --JesterXL -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Question to Adobe about Flex Framework 1.5 Code Quality
OUT OF CONTEXT At least he wasn't shouting... Or keeping scores. Let's face it Max, you're rude and have been throughout this thread. Go read up on list etiquette before trying to revolutionize the programming world. Stefan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex Contract Opportunity
Hello, We are looking for 1-2 Flex developers for a 6 month contract (1099, Corp-to-Corp). Initial contract is 6 months, but could be extended beyond that. Location - anywhere you want. Depending on your location, minimal travel (1-2 days) may be involved. You must have proven (real world preferred) Flex experience (Flex 2 preferred) and be deadline driven (our deadlines, that is :-) You must be able to work with designs produced by UI designers and in some cases, create your own designs. Experience with Cairngorm framework is highly desirable. If you've been active in this group, I'll know your name. Other nice skills to have would be: Flash Effects Remote Objects FDS Java App Server (JBoss/Tomcat) install (minimal configuration) Database (MySQL) install (minimal configuration) CVS JUnit/FlexUnit If you are qualified and interested, please contact me offline. Jim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex1.5: Limit of series a graph component can have
There are no hardcoded limits that I know of, it all comes down to performance - CPU and memory. I'd still like to see an instance of what this sort of graph would look like. Unless you're doing a scatterplot (and given the amount of data you're talking about, perhaps even in that case), its sounding like you're significantly oversampling screen resolution, which doesn't make sense from a graph design perspective. You're not going to be able to read any information out of the plot, it will just look like mud. On a 1000x1000 pixel graph with zero overlap and one pixel per datapoint, you're covering 10% of the available surface area with 100k samples. Of course, you're not actually going to use one pixel per datapoint (as that totally hides extrema), so you're probably getting up into the 50% of the available surface area painted in at this point. There's no information there. Mud. Have you read Edward Tufte's books? I think your best approach (never mind Flex, just in general) is to separate the plotted data from the actual data. Reduce the actual data to a representation that can be plotted and interpreted by humans - bars with high/low extrema, click to zoom, etc. It isn't a failing of Flex that 100,000 datapoints can't reasonably be plotted on a normal chart, its a failing of all normal chart types. You need to come up with a better representation. I could be totally off-base and misinterpreting your needs, though. -rg -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of RAMOS CARDONA JESUS SALVADOR Sent: Tuesday, April 11, 2006 8:22 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex1.5: Limit of series a graph component can have I don't think they would want to resample or view chunks of data as a graph detail. This is more a political question. If it can be done, then my managers will trust Flex implicitly. Otherwise, they will force us to use some other product, or even switch to .NET. This financial application is being built for our federal government, and so there's a lot of red-tape going on in this project. So I ask again...can it be done? Thanks in advance. J. -Mensaje original- De: Roger Gonzalez [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 10 de Abril de 2006 08:35 p.m. Para: flexcoders@yahoogroups.com Asunto: RE: [flexcoders] Flex1.5: Limit of series a graph component can have That would be pretty impractical in Flex 1.5 without providing truckloads of RAM. I suspect you need to either do it on the server as an image sent to the client, or else do it in Flex 2. What kind of graph is this? Do you really need 100k samples on screen simultaneously? Can you do overview/detail? Can you downsample and then plot the downsampled data? -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of RAMOS CARDONA JESUS SALVADOR Sent: Monday, April 10, 2006 6:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex1.5: Limit of series a graph component can have Hi all. My manager has come to me with an unusual question: 'Is there a limit as to the number of series (or dots) a flex graph can have?' The need arose because of a requirement of a financial application being built on Flex, which needs to output dot graphs of at least 100,000 dots. Without considering the performance or overhead, is this possible in Flex? Thanks. J. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS *Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. *To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Question to Adobe about Flex Framework 1.5 Code Quality
Let me just point out no one from Flex Engineering is paying attention to this thread anymore. If you guys want to fight offlist that's fine with me. Matt -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Question to Adobe about Flex Framework 1.5 Code Quality
Max, I think I have been professional here and other would agree. I have listened to you, tried to understand, and posted code to help. Please keep Flexcoders professional, it is not personal. :) Flash/Flex is simple for a reason. As a platform, it was designed to create light and fast distributed applications. I think it accomplishes this design better than any technology to date and it will continue to improve. Perfection is achieved, not when there is nothing left to add, but when there is nothing left to remove. - Antoine de Saint-Exupery Cheers, Ted :) ps. Since my code is bad, I am going to crawl into a hole and drink some beers given this profound realization that my code sucks. :) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of maxym.hryniv Sent: Tuesday, April 11, 2006 10:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Question to Adobe about Flex Framework 1.5 Code Quality Ted, You've not understood me one more time. I don't have a problem with creating my own code with my own logic (btw your code is bad). But as a developer you don't have to be targeted to some concrete case but you have to operate with abstractions. And if in bubbled dispatching you see events dispatching through a tree of visual object, I see few abstractions that we can separate from each other. And if now it's not separated it's not so extensible as it can be. And the question was NOT how to create some ... bla-bla-bla with bla-bla- bla BUT Why we have different abstractions hardcoded in one class and why Adobe doesn't provide better solution, cause it can be better even leaving current interface??? And looking back to flex 1.5 framework code I'm not wondered, cause it's created using copypaste. Hope you will understand me this time. Max --- In flexcoders@yahoogroups.com, Ted Patrick [EMAIL PROTECTED] wrote: And DOM model is designed for TREE of objects, but we cannot use it in non-visual tree, that because ITS BAD DESIGNED. --- WITH FLEX 2 YOU CAN SUPPORT THIS TODAY, YOU ARE NOT RESTRICTED. --- I believe that adding this into the player or Flex by default would be a mistake. Here is my logic: 1. DOM Events exist to give context to user interaction on the DisplayList. These events originate on the visual layer of the application where elements are exposed to Mouse, Keyboard, DisplayObject events. Only objects that extend DisplayObject can be added to the DisplayList, custom classes can listen through a DisplayObject's events but they are not directly on the DisplayList. 2. Any object can listen for events at any node of the DisplayList tree. (I posted an example of this) This allows custom classes to participate in events from the DisplayList. 3. How events are processed within custom classes is the class's responsibility (read: encapsulation). If your class needs events to walk its children, then implement it. Here is an example of event processing with custom classes using trees: package { import flash.util.trace; import flash.events.* public class FooClass extends EventDispatcher { public var children:Array = []; public function FooClass(){ this.addEventListener( 'resize' , processEvent ) } public function processEvent( event:Event ){ for( var i:uint=0 ; i children.length ; i++ ){ children[i].dispatchEvent( event ); } } public function addChild( child:Object ){ children.push( child ); } } } // AS code within AS3/Flex application: // Build a tree of custom classes // create a root object rootFoo = new FooClass(); // add child objects rootFoo.addChild( new FooClass() ) rootFoo.addChild( new FooClass() ) rootFoo.addChild( new FooClass() ) // add more child objects rootFoo.children[0].addChild( new FooClass() ) rootFoo.children[0].addChild( new FooClass() ) rootFoo.children[0].addChild( new FooClass() ) // add more more child objects rootFoo.children[0].children[1].addChild( new FooClass() ) rootFoo.children[0].children[1].addChild( new FooClass() ) rootFoo.children[0].children[1].addChild( new FooClass() ) // dispatch an event to walk children rootFoo.dispatchEvent( new Event('resize') ); In this case, at each level I am using an Array to hold children events would be processed like so: rootFoo.children[0].children[0] rootFoo.children[0].children[1].children[0] rootFoo.children[0].children[1].children[1]
RE: [flexcoders] Re: Flex2B2 simple question regarding xml attributes
Hmm, that works for me. You could also try for each (var a:Object in xml1.attributes()) { } Or use a for loop var xl:XMLList = xml1.attributes(); for (var i:int = 0; i xl.length(); i++) { trace (xl[0].toXMLString(); // or try typeof, nodeKind(), etc. } From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of bhaq1972 Sent: Tuesday, April 11, 2006 1:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex2B2 simple question regarding xml attributes i did the following for each (var a:Object in [EMAIL PROTECTED]) { trace (a.name()); trace (a.toXMLString()); } a.name doesn't trace anything. a.toXMLString() traces the attribute value. so we're half way their. --- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote: Hi Werner. Thanks the suggestion. I wasn't able to run this because i'm getting a access to undefined property 'a' compile error --- In flexcoders@yahoogroups.com, Werner Sharp wsharp@ wrote: How about this... var xml1:XML = Node1 a='b' c='d' e='f' g='h'/ for each (a in [EMAIL PROTECTED]) { trace (a.name()); trace (a.toXMLString()); } From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of bhaq1972 Sent: Monday, April 10, 2006 8:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2B2 simple question regarding xml attributes i can't find what i'm looking for in the docs. i need help All i want to do is iterate over an xml node's attributes. XML.attributes() returns a list of all the attributes, but this is only half of what i want. i want the attribute names as well. var xml1:XML = Node1 a='b' c='d' e='f' g='h'/ i want the value 'a' and 'b' and 'c' and 'd' etc via a loop regards bod -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Question to Adobe about Flex Framework 1.5 Code Quality
I don't think you should change working code only because it's doesn't have the perfect design, but that might just me. Of course, you can do something refactoring. You can only break ;-) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex1.5: Limit of series a graph component can have
Thank you for your answer, Roger. I agree with the uselessness of a 100k point chart, and I have had long arguments with my superiors regarding the actual need of this, but I backed out after I was introduced to the political issues regarding this project. As I stated before, this is more a political issue than a practical issue. Regards. J. -Mensaje original- De: Roger Gonzalez [mailto:[EMAIL PROTECTED] Enviado el: Martes, 11 de Abril de 2006 11:21 a.m. Para: flexcoders@yahoogroups.com Asunto: RE: [flexcoders] Flex1.5: Limit of series a graph component can have There are no hardcoded limits that I know of, it all comes down to performance - CPU and memory. I'd still like to see an instance of what this sort of graph would look like. Unless you're doing a scatterplot (and given the amount of data you're talking about, perhaps even in that case), its sounding like you're significantly oversampling screen resolution, which doesn't make sense from a graph design perspective. You're not going to be able to read any information out of the plot, it will just look like mud. On a 1000x1000 pixel graph with zero overlap and one pixel per datapoint, you're covering 10% of the available surface area with 100k samples. Of course, you're not actually going to use one pixel per datapoint (as that totally hides extrema), so you're probably getting up into the 50% of the available surface area painted in at this point. There's no information there. Mud. Have you read Edward Tufte's books? I think your best approach (never mind Flex, just in general) is to separate the plotted data from the actual data. Reduce the actual data to a representation that can be plotted and interpreted by humans - bars with high/low extrema, click to zoom, etc. It isn't a failing of Flex that 100,000 datapoints can't reasonably be plotted on a normal chart, its a failing of all normal chart types. You need to come up with a better representation. I could be totally off-base and misinterpreting your needs, though. -rg -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of RAMOS CARDONA JESUS SALVADOR Sent: Tuesday, April 11, 2006 8:22 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex1.5: Limit of series a graph component can have I don't think they would want to resample or view chunks of data as a graph detail. This is more a political question. If it can be done, then my managers will trust Flex implicitly. Otherwise, they will force us to use some other product, or even switch to .NET. This financial application is being built for our federal government, and so there's a lot of red-tape going on in this project. So I ask again...can it be done? Thanks in advance. J. -Mensaje original- De: Roger Gonzalez [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 10 de Abril de 2006 08:35 p.m. Para: flexcoders@yahoogroups.com Asunto: RE: [flexcoders] Flex1.5: Limit of series a graph component can have That would be pretty impractical in Flex 1.5 without providing truckloads of RAM. I suspect you need to either do it on the server as an image sent to the client, or else do it in Flex 2. What kind of graph is this? Do you really need 100k samples on screen simultaneously? Can you do overview/detail? Can you downsample and then plot the downsampled data? -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of RAMOS CARDONA JESUS SALVADOR Sent: Monday, April 10, 2006 6:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex1.5: Limit of series a graph component can have Hi all. My manager has come to me with an unusual question: 'Is there a limit as to the number of series (or dots) a flex graph can have?' The need arose because of a requirement of a financial application being built on Flex, which needs to output dot graphs of at least 100,000 dots. Without considering the performance or overhead, is this possible in Flex? Thanks. J. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS *Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. *To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ:
RE: [flexcoders] Flex1.5: Limit of series a graph component can have
Is it possible? Yes. Will it have reasonable performance? Probably not, but it's a really easy test to find out. Charts probably will not perform well under this load, but I'm not sure you'll even get that far. First you have to send 200k floats over the wire, and deserialize them in the player, which has its own performance problems. So, I'd say, write a quick test and see how it feels. But in general, I'd agree with Roger, you're better off aggregating your data in some way and displaying that. If that's not an option, then you might want to seek out other alternatives. (btw, if you want to use flex, one reasonable alternative would be to use flex for the application, but generate the chart on the server using one of the many server side chart generation packages out there that render to bitmaps, and just displaying the bitmap in the flex app). Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Roger Gonzalez Sent: Tuesday, April 11, 2006 9:21 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex1.5: Limit of series a graph component can have There are no hardcoded limits that I know of, it all comes down to performance - CPU and memory. I'd still like to see an instance of what this sort of graph would look like. Unless you're doing a scatterplot (and given the amount of data you're talking about, perhaps even in that case), its sounding like you're significantly oversampling screen resolution, which doesn't make sense from a graph design perspective. You're not going to be able to read any information out of the plot, it will just look like mud. On a 1000x1000 pixel graph with zero overlap and one pixel per datapoint, you're covering 10% of the available surface area with 100k samples. Of course, you're not actually going to use one pixel per datapoint (as that totally hides extrema), so you're probably getting up into the 50% of the available surface area painted in at this point. There's no information there. Mud. Have you read Edward Tufte's books? I think your best approach (never mind Flex, just in general) is to separate the plotted data from the actual data. Reduce the actual data to a representation that can be plotted and interpreted by humans - bars with high/low extrema, click to zoom, etc. It isn't a failing of Flex that 100,000 datapoints can't reasonably be plotted on a normal chart, its a failing of all normal chart types. You need to come up with a better representation. I could be totally off-base and misinterpreting your needs, though. -rg -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of RAMOS CARDONA JESUS SALVADOR Sent: Tuesday, April 11, 2006 8:22 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex1.5: Limit of series a graph component can have I don't think they would want to resample or view chunks of data as a graph detail. This is more a political question. If it can be done, then my managers will trust Flex implicitly. Otherwise, they will force us to use some other product, or even switch to .NET. This financial application is being built for our federal government, and so there's a lot of red-tape going on in this project. So I ask again...can it be done? Thanks in advance. J. -Mensaje original- De: Roger Gonzalez [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 10 de Abril de 2006 08:35 p.m. Para: flexcoders@yahoogroups.com Asunto: RE: [flexcoders] Flex1.5: Limit of series a graph component can have That would be pretty impractical in Flex 1.5 without providing truckloads of RAM. I suspect you need to either do it on the server as an image sent to the client, or else do it in Flex 2. What kind of graph is this? Do you really need 100k samples on screen simultaneously? Can you do overview/detail? Can you downsample and then plot the downsampled data? -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of RAMOS CARDONA JESUS SALVADOR Sent: Monday, April 10, 2006 6:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex1.5: Limit of series a graph component can have Hi all. My manager has come to me with an unusual question: 'Is there a limit as to the number of series (or dots) a flex graph can have?' The need arose because of a requirement of a financial application being built on Flex, which needs to output dot graphs of at least 100,000 dots. Without considering the performance or overhead, is this possible in Flex? Thanks. J. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
RE: [flexcoders] labelfuction and column chart questions
1) write a custom renderer for your columnseries. This renderer should fill the columns with the standard color, _unless_ it's filling the selected index. Something like this: Class MyCustomRenderer { public var index:Number; public var selectedIndex:Number; function beginDraw(...) { index = 0; } function draw(...) { if (index == selectedindex) { // draw in selected color } else { // draw in normal color } index++; } } Then set the selected index in a mouseOverData function: mx:ColumnChart mouseOverData=event.hitData.element.renderer.selectedIndex = event.hitData.index;event.hitData.element.invalidate() mx:series mx:Array mx:ColumnSeries mx:renderer MyCustomRenderer / Or something to that effect. 2) not really possible in Flex 1.5. Both of these are much more doable in Flex 2. Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shemeshkale Sent: Tuesday, April 11, 2006 3:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] labelfuction and column chart questions hi, 1) me using flex 1.5 i have a ColumnChart. how can i change one column color on mouse hover on it? 2) how can i show images with labelFunction? i m calling a function with labelFunction from a PieChart and want to display images in the label. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Maintaining documentation in Flex App in property file / xml file
Hi, How can I use a resource property file in Flex. I want to store the static component labels as well as error messages / alert messages of the application in a property file or an xml file. When Flex loads the mxml or application throws error message etc., it should get the description of the message dynamically from the property file. Basically, I am looking for a Flex equivalent for a ApplicationResources.properties file in Struts. How can I do this? Does anybody have any sample code for this to try out. Thanks, Shweta -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Removing Items from a list
Use the click event of the button to call list.removeAll() to remove all of the items or removeItemAt(int) to remove a specific list item. Is that what you are asking? If you want to remove the list item that is selected, you should be to just do list.removeItemAt(list.selectedIndex); in the click event handler for the button. | Karl Johnson Cynergy Systems http://www.cynergysystems.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of merrittwchapman Sent: Monday, April 10, 2006 3:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Removing Items from a list Can someone provide me with an example of how to use actionscript to remove items from a list control by clicking a button? Thanks! MC -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] gant chart
Yep I created one. It combines a tree control with a grid. The grid is a not actually a grid control because of performance problems, but is actually a big canvas. On the expand and collapse events of the tree, I redraw the gantt chart grid (using the drawing api) to have rows (color determined by criteria for each row) that match the amount of expanded tree nodes. The perf is pretty good, mostly instant drawing and no datagrid overhead etc. The control is pretty much modeled after the MS Project gantt chart. | Karl Johnson Cynergy Systems http://www.cynergysystems.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of juscodin Sent: Tuesday, April 11, 2006 11:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] gant chart Has anyone worked on creating a gant chart capability with Flex? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex2B2: cannot convert flash.display::SimpleButton to mx.core.IUIComponent
What do I need to do to add a SimpleButton to my component without getting the type coercion error above? The code I'm using is taken directly from the docs and it's pasted below. The parent component is an HBox. ... import flash.display.*; private function doInit():void { var myButton:SimpleButton = new SimpleButton(); var downSprite:Sprite = new Sprite(); downSprite.graphics.lineStyle(2, 0x202020); downSprite.graphics.beginFill(0x00FF00); downSprite.graphics.drawRect(10, 10, 50, 50); var upSprite:Sprite = new Sprite(); upSprite.graphics.lineStyle(2, 0x202020); upSprite.graphics.beginFill(0x00); upSprite.graphics.drawRect(10, 10, 50, 50); myButton.upState = upSprite; myButton.overState = upSprite; myButton.downState = downSprite; myButton.useHandCursor = true; myButton.hitTestState = this; this.addChild( myButton );}... -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flex2 beta 2: java adaptor, RTMP and security
The Flex 2 Java adaptor is awesome. But it works over RTMP, which is an insecure transport. This severely limits it's usefulness. Yes, it's true you could send your username and password separatly over the ssl line, but what if your working with sensitive data like banking or medical systems; Everything going over the wire has to be encrypted. Does anybody know if a secure RTMP version is going to be available or at least a java adaptor that uses a secure protocol? -JB -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] gant chart
nice idea, I'm just about to get my hands on the gantt chart, but with real GridTree control so each row can display more than drawings.On 4/12/06, Karl Johnson [EMAIL PROTECTED] wrote: Yep I created one.It combines a tree control with a grid. The grid is a not actually agrid control because of performance problems, but is actually a bigcanvas. On the expand and collapse events of the tree, I redraw the gantt chart grid (using the drawing api) to have rows (color determinedby criteria for each row) that match the amount of expanded tree nodes.The perf is pretty good, mostly instant drawing and no datagrid overhead etc. The control is pretty much modeled after the MS Project ganttchart.|Karl JohnsonCynergy Systemshttp://www.cynergysystems.com-Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of juscodinSent: Tuesday, April 11, 2006 11:18 AM To: flexcoders@yahoogroups.comSubject: [flexcoders] gant chartHas anyone worked on creating a gant chart capability with Flex? --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Beta2 - How to access a dataGrid cell?
Very simple question... Have a dataGrid with three columns, one visible. When the user clicks on an item, it should populate two textInputs with the values of the two hidden columns in the row they clicked. Can somebody help with the syntax? Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Beta2 - How to access a dataGrid cell?
Very simple question... Have a dataGrid with three columns, one visible. When the user clicks on an item, it should populate two textInputs with the values of the two hidden columns in the row they clicked. Can somebody help with the syntax? Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex2 beta 2: java adaptor, RTMP and security
I don't know if this exists or is planned but considering that rtmp stems from Flash Media Server and that this now supports SSL natively (rtmps) I'd presume that it should be an easy feature to add. Can we be certain that this is not supported already? Stefan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of box110aSent: 11 April 2006 18:20To: flexcoders@yahoogroups.comSubject: [flexcoders] Flex2 beta 2: java adaptor, RTMP and security The Flex 2 Java adaptor is awesome. But it works over RTMP, which isan insecure transport. This severely limits it's usefulness. Yes,it's true you could send your username and password separatly over thessl line, but what if your working with sensitive data like banking ormedical systems; Everything going over the wire has to be encrypted.Does anybody know if a secure RTMP version is going to be available orat least a java adaptor that uses a secure protocol?-JB -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Possible to invoke Flex2b2 compiler as a Java class?
I'd like to invoke the Flex2b2 compiler from ColdFusion using the Java class, if possible. I looked at the file MANIFEST.MF in mxmlc.jar, and saw: Main-Class: flex2.tools.Compiler So, I tried this in CF: Application.com.MXMLc = Application.com.URLClassLoader.LoadJarClass(CompilerPath, flex2.tools.Compiler); That works, and I can CFDUMP the object to see a list of its methods and properties, but: - I can't set the property FILE_SPECS: I get an java.lang.IllegalAccessException with the message: field is final - I can't invoke the compile method. My code is: Application.com.MXMLc.compile(JavaCast(String, MxmlPath)); I get the CF message The selected method compile was not found. Can anyone shed some light on this? Is it documented anywhere? I apologize if this is silly; I'm expert with CFML but not experienced with Java interaction. I did try to just use CFEXECUTE at first, with mxmlc.exe, but had trouble with it. I've always found CFEXECUTE frustrating, so I thought I'd give this approach a try. Thanks! Avi Flax Flex Newbie Arc90, New York http://www.arc90.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex2B2: cannot convert flash.display::SimpleButton to mx.core.IUIComponent
What does your component extend? If you're extending a Container, you can only use addChild() to content children which implement the IUIComponent interface. In order to support the LayoutManager, a content child has to implement things like measure(), etc. However you should able to add it as a non-content or chrome child by doing rawChildren.addChild(myButton). Non-content children don't undergo automatic sizing and layout, so you'll have to set the size and position of myButton yourself. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tom Bray Sent: Tuesday, April 11, 2006 11:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2B2: cannot convert flash.display::SimpleButton to mx.core.IUIComponent What do I need to do to add a SimpleButton to my component without getting the type coercion error above? The code I'm using is taken directly from the docs and it's pasted below. The parent component is an HBox. ... import flash.display.*; private function doInit():void { var myButton:SimpleButton = new SimpleButton(); var downSprite:Sprite = new Sprite(); downSprite.graphics.lineStyle(2, 0x202020); downSprite.graphics.beginFill(0x00FF00); downSprite.graphics.drawRect(10, 10, 50, 50); var upSprite:Sprite = new Sprite(); upSprite.graphics.lineStyle(2, 0x202020); upSprite.graphics.beginFill(0x00); upSprite.graphics.drawRect(10, 10, 50, 50); myButton.upState = upSprite; myButton.overState = upSprite; myButton.downState = downSprite; myButton.useHandCursor = true; myButton.hitTestState = this; this.addChild( myButton ); } ... -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Question about a particular flex book by Steven Webster and Alistar McCloud
I have the book Developing Rich Clients with Macromedia Flex by Steven Webster and Alistair McCloud. I was wondering if someone could tell me where I would be able to download the samples that are in the book I was told I could do that somewhere? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] F2B2: Canvas clipping problem
I have a Canvas that I'm programatically adding an image after a drag and drop. The method is a simple call to canvas.addChild(image); I've explicitly set clipContent to true, and scroll policies to auto, but still if the image is dropped slightly to the left or above the canvas (x or y is a negative value) the image does not clip but overflows the Canvas border. No scrollbars are created. The DD operation allows the drop because it seems to base dropability on the mouse position, not on the image boundaries, which may be offset from the image's 0,0. Is this a known problem? Thanks. Dave Moylan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Question about a particular flex book by Steven Webster and Alistar McCloud
I found it on google, perhaps you should try that next time. http://www.iterationtwo.com/flexbook/source.html Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, April 11, 2006 4:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Question about a particular flex book by Steven Webster and Alistar McCloud I have the book Developing Rich Clients with Macromedia Flex by Steven Webster and Alistair McCloud. I was wondering if someone could tell me where I would be able to download the samples that are in the book I was told I could do that somewhere? -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] AS3 Array Question
I'm trying to populate a dataProvider array for a comboBox that contains unique status values from another array, that is used as the dataProvider for a dataGrid. The comboBox is used to filter the dataGrid. The code below works, but I seem to remember seeing this done somewhere that doesn't use nested for statements. Does anyone know how I can identify if the array's status value already exists in the new status array without iterating the new array every time? public function populateStatusArray(array:Array):void { var status : Array = new Array; status.push(All); var n:int = citations.length; for (var i:int = 0; i n; i++) { var m:int = status.length; var found:Boolean = false; for (var j:int = 0; j m; j++) { if (status[j] == array[i].status){ found = true; } } if (found == false) { status.push(array[i].status); } } status.sort(); ModelLocator.getInstance().statusArray = status; } Thank You, Tim Hoff -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Maintaining documentation in Flex App in property file / xml file
Hi Shweta, Maybe these links can help you:ResourceBundle class:http://livedocs.macromedia.com/labs/1/flex20beta2/langref//mx/resource/ResourceBundle.html Localizing apps:http://livedocs.macromedia.com/labs/1/flex20beta2/1159.htmlOriol 2006/4/11, shweta_parekh [EMAIL PROTECTED]: Hi,How can I use a resource property file in Flex. I want to store thestatic component labels as well as error messages / alert messages ofthe application in a property file or an xml file. When Flex loads the mxml or application throws error message etc., it should get thedescription of the message dynamically from the property file.Basically, I am looking for a Flex equivalent for aApplicationResources.properties file in Struts. How can I do this? Doesanybody have any sample code for this to try out.Thanks,Shweta--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] F2B2: Canvas clipping problem
I've come across this too. We found that our content is not clipped as it zooms in via a Move effect. But, if the content requires scrollbars, the clipping is applied. Peter On 4/11/06, David Moylan [EMAIL PROTECTED] wrote: I have a Canvas that I'm programatically adding an image after a dragand drop.The method is a simple call tocanvas.addChild(image);I've explicitly set clipContent to true, and scroll policies to auto, but still if the image is dropped slightly to the left or above thecanvas (x or y is a negative value) the image does not clip butoverflows the Canvas border.No scrollbars are created.The DDoperation allows the drop because it seems to base dropability on the mouse position, not on the image boundaries, which may be offset fromthe image's 0,0.Is this a known problem?Thanks.Dave Moylan -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Possible to invoke Flex2b2 compiler as a Java class?
In any Java JAR there can be a main-class which is the class called when no classname is specified. That main-class will also have a main() method which si the default entry point of the class. That method has the following signature public static void main(String[] args); Where the String[] are the command line arguments. Call the main() method passing in whatever command line arguments there would be as the String[]. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, Avi Flax [EMAIL PROTECTED] wrote: I'd like to invoke the Flex2b2 compiler from ColdFusion using the Java class, if possible. I looked at the file MANIFEST.MF in mxmlc.jar, and saw: Main-Class: flex2.tools.Compiler So, I tried this in CF: Application.com.MXMLc = Application.com.URLClassLoader.LoadJarClass(CompilerPath, flex2.tools.Compiler); That works, and I can CFDUMP the object to see a list of its methods and properties, but: - I can't set the property FILE_SPECS: I get an java.lang.IllegalAccessException with the message: field is final - I can't invoke the compile method. My code is: Application.com.MXMLc.compile(JavaCast(String, MxmlPath)); I get the CF message The selected method compile was not found. Can anyone shed some light on this? Is it documented anywhere? I apologize if this is silly; I'm expert with CFML but not experienced with Java interaction. I did try to just use CFEXECUTE at first, with mxmlc.exe, but had trouble with it. I've always found CFEXECUTE frustrating, so I thought I'd give this approach a try. Thanks! Avi Flax Flex Newbie Arc90, New York http://www.arc90.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: AS3 Array Question
For large arrays, it will be more efficient to do this: 1) Make a copy of the input array, if necessary 2) Sort the array by status 3) Iterate through the array once, storing new status values and skipping the duplicates --- In flexcoders@yahoogroups.com, turbo_vb [EMAIL PROTECTED] wrote: I'm trying to populate a dataProvider array for a comboBox that contains unique status values from another array, that is used as the dataProvider for a dataGrid. The comboBox is used to filter the dataGrid. The code below works, but I seem to remember seeing this done somewhere that doesn't use nested for statements. Does anyone know how I can identify if the array's status value already exists in the new status array without iterating the new array every time? public function populateStatusArray(array:Array):void { var status : Array = new Array; status.push(All); var n:int = citations.length; for (var i:int = 0; i n; i++) { var m:int = status.length; var found:Boolean = false; for (var j:int = 0; j m; j++) { if (status[j] == array[i].status){ found = true; } } if (found == false) { status.push(array[i].status); } } status.sort(); ModelLocator.getInstance().statusArray = status; } Thank You, Tim Hoff -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] RPC Http Calls In Flex HOW TO??/
I am having trouble calling a function via XML-RPC ,, I have called an Http Service and it is running , but when i do this posting.send({blogger_getRecentPosts: 'blogid,user,password,posts'}) I have replaced the params for security resons, anways when i call posting.send({blogger_getRecentPosts: 'blogid,user,password,posts'}) like this click=posting.send({blogger_getRecentPosts: 'blogid,user,password,posts'}) it will get the HTTP service but will not display the function blogger_getRecentPosts when i bind it to the text feild. Instead it will get this message at www.g-unix.com/xmlrpc.php XML-RPC server accepts POST requests only. I do not know what to do , ive been trying to get this to work all weekend and yes i do have the http tag method set to POST -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: AS3 Array Question
You can use a plain Object as a Set... see the code below. You first put key/value pairs into the Object, but it makes no difference what the values are. You just care about the keys, and the Object's hash table takes care of ensuring that setting a key more than once is harmless. Then you iterate over the Object, pulling out the unique keys into an Array that can be sorted. Finally, you stick All at the top, after the sort. - Gordon ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; width=600 height=600 mx:Script ![CDATA[ [Bindable] private var array:Array = [ B, C, A, B, A, D ]; public function getUniqueItems(array:Array):Array { var uniqueItemHash:Object = {}; var n:int = array.length; for (var i:int = 0; i n; i++) { uniqueItemHash[array[i]] = true; } var uniqueItemArray:Array = []; for (var p:String in uniqueItemHash) { uniqueItemArray.push(p); } uniqueItemArray.sort(); uniqueItemArray.unshift(All); return uniqueItemArray; } ]] /mx:Script mx:ComboBox dataProvider={getUniqueItems(array)}/ /mx:Application -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder Sent: Tuesday, April 11, 2006 5:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AS3 Array Question For large arrays, it will be more efficient to do this: 1) Make a copy of the input array, if necessary 2) Sort the array by status 3) Iterate through the array once, storing new status values and skipping the duplicates --- In flexcoders@yahoogroups.com, turbo_vb [EMAIL PROTECTED] wrote: I'm trying to populate a dataProvider array for a comboBox that contains unique status values from another array, that is used as the dataProvider for a dataGrid. The comboBox is used to filter the dataGrid. The code below works, but I seem to remember seeing this done somewhere that doesn't use nested for statements. Does anyone know how I can identify if the array's status value already exists in the new status array without iterating the new array every time? public function populateStatusArray(array:Array):void { var status : Array = new Array; status.push(All); var n:int = citations.length; for (var i:int = 0; i n; i++) { var m:int = status.length; var found:Boolean = false; for (var j:int = 0; j m; j++) { if (status[j] == array[i].status){ found = true; } } if (found == false) { status.push(array[i].status); } } status.sort(); ModelLocator.getInstance().statusArray = status; } Thank You, Tim Hoff -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] um, where is my session?
Hi, Well it depends on what you are doing. I don't know if this is your first try at building Flex applications or not and if it is, then perhaps this explains why you are asking this question. With building RIAs you no longer need to maintain the state of the application in various session objects as we have all done in the past when using JSPs and such. You can now concentrate everything in a global model object (see ModelLocator in Cairngorm) to do this for you. Perhaps you can give us a quick use-case of what you are doing, and then maybe we can provide any explanations you might need. Dimitrios Gianninas RIADeveloper Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of box110aSent: Monday, April 10, 2006 10:33 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] um, where is my session? I have been soaking up the Flex 2, FDS and Cairngorm stuff and feelpretty good. I've got Jrun4 with Service pack 6 so I can use java5. Ialso have hibernate 3.1.3 with annotations working in the samecontainer (hint: in your jrun-web.xml file, setload-system-classes-first = true)... It all seems to work well. I am using the Flex Java DAO adapter. There is only one thing I can'tseem to get an answer on. Where is my session with the server and howdo I access it with Flex? It seems like Cairngorm wants to take overthe entire state of the application. This only works if you entireapplication is inside one Flex application. Any thoughts from thecommunity on this? I've got ideas on how to hack it all together, butI want to hear what you've got to say.thanks,JB -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flex 2 Object Inspector
Hi,Is there an easy way to inspect objects in Flex 2? I tried setting an object as the dataProvider for a Tree component but the root just says [object Object]. Is there a component I can use to see what's inside of an object?Thank you.-Z How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates. -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: um, where is my session?
I think its too simplistic to think you can always store all state in the RIA. The problem is it makes an assumption that the application is very homogenous. I think you will find that over time these more complex applications are a mixture of Flex, Flash and HTML. The ability to maintain session state across these elements using a servant session is going to definately have value. It is absolutely true that one of the biggest advantages of the RIA is that you can get away from the primitive page-centric request response architecture where you have no choice but to maintain state in the server. I just want to say I think that the session has real-world value and we cant just write it off. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: Hi, Well it depends on what you are doing. I don't know if this is your first try at building Flex applications or not and if it is, then perhaps this explains why you are asking this question. With building RIAs you no longer need to maintain the state of the application in various session objects as we have all done in the past when using JSPs and such. You can now concentrate everything in a global model object (see ModelLocator in Cairngorm) to do this for you. Perhaps you can give us a quick use-case of what you are doing, and then maybe we can provide any explanations you might need. Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of box110a Sent: Monday, April 10, 2006 10:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] um, where is my session? I have been soaking up the Flex 2, FDS and Cairngorm stuff and feel pretty good. I've got Jrun4 with Service pack 6 so I can use java5. I also have hibernate 3.1.3 with annotations working in the same container (hint: in your jrun-web.xml file, set load-system-classes-first = true)... It all seems to work well. I am using the Flex Java DAO adapter. There is only one thing I can't seem to get an answer on. Where is my session with the server and how do I access it with Flex? It seems like Cairngorm wants to take over the entire state of the application. This only works if you entire application is inside one Flex application. Any thoughts from the community on this? I've got ideas on how to hack it all together, but I want to hear what you've got to say. thanks, JB -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] RE: OutOfMemory Error
As suggested I ran the compile outside of Tomcat. The application compiled just fine using mxmlc. No out of memory error.So Iguess I can assume the problem lies in Tomcat. I upped the memory allocation in the catalina.bat file to 1024. No luck. I'm still getting the error compiling with Tomcat. If anyone else has any suggestions, please let me know. I'm still wondering if it has to do with flex beta 2 since the problem did occur shortly after installing that. Although I completely removed it and still have the same problem. Thanks, Kim --- In flexcoders@yahoogroups.com, "Peter Farland" [EMAIL PROTECTED] wrote: Yep, as Carson said, I'd be interested to see what happens when you change the maximum memory allocation size for the jvm.config file used by mxmlc? I'm also interested to see whether other simpler applications cause this error? If it still happens then, would it be possible to prepare a reproducible test case and file a bug (or prepare a bug and send it to me so I can forward it to QA?). At the very least if you could describe the number of components, classes and files used in the application it might help too. Thanks, Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kim Reddington Sent: Wednesday, April 05, 2006 12:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: OutOfMemoryError Peter, I am running the application in Flex 1.5 and have installed Flex 2.0 for a different project. It doesn't matter how I run the app, I always get an OutOfMemory Error. I've tried running from Flex Builder, by typing the mxml filename in the browser address field, by bringing up the app via a jsp. I've tried it in IE and Firefox. I've removed flex 1.5 and flex 20 and reinstalled flex 1.5. Anyway I try to compile it still gives me an error. Yes, I have "save generated as" and "save swf file" both enabled to help me track down this problem. Someone else asked about Memory. I've upped the memory in Tomcat to be above and beyond what my colleagues are running. They can still get the app to run on their PC. The only differences are what software we have installed on our machines outside of this project. Thanks, Kim --- In flexcoders@yahoogroups.com, "Peter Farland" pfarland@ wrote: Hi Kim, How are you compiling the application? The reason I ask is that it's not clear from your email what is reporting this error or where/how it is reported to you... When you say that you tried to run it in a browser, are you relying on the webtier compiler by browsing to a .mxml file to dynamically compile your application to a SWF? Or are you using JSP tags to dynamically general .mxml (If so, then I'm confused as you say you can see the .as file being generated... is this simply because you have keep generated actionscript enabled?). Or are you using Flex Builder?Actually, I need further clarification - are you using Flex 2 to compile this application, or did you simply install Flex 2 in addition to/next to a Flex 1.5 application and now the Flex 1.5 application is reporting this error? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kim Reddington Sent: Wednesday, April 05, 2006 10:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] OutOfMemoryError I have a large application that I've been running for over a year. All of a sudden the app stopped running. I am getting an OutOfMemory Error when I tried to run in any browser. My first thought was it must have been the changes I've made. Luckily, we are using CVS, so I grabbed a version of our software from a couple weeks ago. Well, the out of memory error is still there. So then I thought maybe it's because I installed Flex 2 Beta 2, so I uninstalled all the Beta 2 items (Builder, FDS, etc). The application was still erroring out. In trying to debug what is happening, I can see that the .as file is being generated, but the SWF file is not being created. The comiler is timing out before it completes the SWF.If anyone has any ideas of what I could look at, try, whatever. I been trying to figure this out for a couple of weeks and have run out of ideas. Has anyone seen this before? Has anyone had similar experiences after installing Flex 2? What might have changed? Thank you so much for your help, Kim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group "flexcoders http://groups.yahoo.com/group/flexcoders " on the web.* To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the
[flexcoders] Flex 2 Object Inspector
Hi,Is there an easy way to inspect objects in Flex 2? Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex 2 Object Inspector
Sorry. Don't know why this went twice.-ZZane Hejduk [EMAIL PROTECTED] wrote:Hi,Is there an easy way to inspect objects in Flex 2? Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2¢/min with Yahoo! Messenger with Voice. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flex1.5: print an element in Accordion - strange behavior
print elements function works well in most cases. But things go wrong when I try to print an element within an Accordion element. The size of the printed image become extremly small in first Accordion. In second Accordion, the size is normal, but position is wrong (too much margin in paper). Could anyone kindly help me? Thanks in advance! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] WebService to RemoteObject, Why do I get [object Object] from the RO but it work
Hi, I have a TileList that gets populated from a WebService search results and that works fine, I wanted to change it to a RemoteObject and for some reason I am getting [object Object] as results in the TileList, here is what I have in the Webservice: mx:Model id=searchCriteria filter / /mx:Model mx:WebService id=EmployeeService wsdl=http://MyIPAddress:myPort/CFIDE/components/ContactManagerCFC.cfc ?WSDL useProxy=false showBusyCursor=true mx:operation name=search mx:request searchCriteria{searchCriteria.filter}/searchCriteria /mx:request /mx:operation /mx:WebService mx:ArrayCollection id=searchResults source={mx.utils.ArrayUtil.toArray(EmployeeService.search.result)} /mx:ArrayCollection And the TileList: mx:TileList id=myList dataProvider={searchResults} columnCount=1 change=selectedItem = event.target.selectedItem;ViewEmployeeVisible() height=100% width=100% textRollOverColor=#99 textAlign=left selectionColor=#55 wordWrap=false rowCount=10 itemRenderer=myComponents.admins.employees.employeelist/ SO THIS WORKS, but doing this doesn't: mx:Model id=searchCriteria filter / /mx:Model mx:RemoteObject id=EmployeeService destination=ColdFusion source=CFIDE.components.ContactManagerCFC showBusyCursor=true fault=Alert.show(event.fault.faultstring); mx:method name=search mx:arguments searchCriteria{searchCriteria.filter}/searchCriteria /mx:arguments /mx:method /mx:RemoteObject mx:ArrayCollection id=searchResults source={mx.utils.ArrayUtil.toArray(EmployeeService.search.result)} /mx:ArrayCollection And the TileList: mx:TileList id=myList dataProvider={searchResults} columnCount=1 change=selectedItem = event.target.selectedItem;ViewEmployeeVisible() height=100% width=100% textRollOverColor=#99 textAlign=left selectionColor=#55 wordWrap=false rowCount=10 itemRenderer=myComponents.admins.employees.employeelist/ I AM GETTING [object Object] Any Ides? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/