[flexcoders] Run Swf File in flash player.
I am using below code for running an swf file. mx:SWFLoader id=Load source=@Embed(source='c:/flash.swf') height=100 width=350/ And this opens the file in explorer can we do some thing to open this file directly in flash player. Can anybody suggest some solution. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company 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] Adobe, Help Memory Leaking !!
On Wednesday 23 August 2006 22:09, Rich Tretola wrote: If I am running the app on a machine with less ram will the browser use less memory? Is that what you are saying? Firefox certainly attempts to set some internal pool sizes based on the O/S RAM size. -- Tom Chiverton Helping to heterogeneously restore cutting-edge methodologies This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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] Re: Flex 2 and document encryption
On Wednesday 23 August 2006 20:22, Wally Randall wrote: only encrypts the message, NOT a document uploaded.Are there any action script libraries for DES3 out there? http://www.meychi.com/archive/21.php -- Tom Chiverton Helping to simultaneously architect advanced metrics This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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] Display rendered HTML in Flex?
Hi! What approach would you recommend me to use if I want to achieve rendering of html the way a web browser would render it (i.e. recording to w3c recommendations) We are using Flex to manage a template based webpage. The preview of this has to be 100% the way it will appear in a browser. -- 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] auto scale display objects inside a canvas
Hi there, i am trying to work out how to auto scale display objects inside a canvas if the canvas size changes, ie i have a set of labels/form items inside a canvas component. This component is then inside my main app set to 100% when the main app resizes i was hoping to also have the labels/formitem within the canvas resize ddynamically but without changing its layout. I designed it for 320x240 but if i reduce it to 240x180 scrollbars show up. I was also hoping to find out how to auto scale my application depending on the size set in the flash object plugin in the browser, any ideaS ? __._,_.___ -- 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] Adobe, Help Memory Leaking !!
False is the default setting for recycleChildren, but I have also added it and tried it both ways.RichOn 8/23/06, Joshua Garnett [EMAIL PROTECTED] wrote: Have you tried setting the recycleChildren attribute of the Repeater to false? I believe when you have recycleChildren set to true, even if you reduce the number of items in the dataProvider, it still keeps an object in memory that it will reuse. I've actually encountered other issues with having recycleChildren set to true when the repeaters are nested within repeaters. There doesn't seem to be any noticeable performance hit by switching it to false. --JoshOn 8/23/06, Rich Tretola [EMAIL PROTECTED] wrote: How you found any kind of resolution? As it stand right now my application will be unusable by most of my audience which will obviously not make management happy. I haven't had this problem with other apps, but there were not nearly as object and data intense. RichOn 8/23/06, sinatosk [EMAIL PROTECTED] wrote: just want to say your not the only one... 2 other people have had the same sort of problem here and I have too... it's annoying to be honest. it does go down eventually but not by it self... I've left it running overnight ( one of my applications ) doesn't go down much On 24/08/06, Rich Tretola [EMAIL PROTECTED] wrote: Just try loading a large amount of buttons a few times and watch the memory go up and up. When I went back to just a few buttons, the memory actually went up a little rather than dropping back down. http://www.everythingflex.com/flex2/MemoryTest/ RichOn 8/23/06, Rich Tretola [EMAIL PROTECTED] wrote: The 300 megs is the application that I am working on, not the sample app. The actual project app has about 20 or so repeaters, the sample was just a single version to demonstrate that the garbage collector is not working. I have been able to get the sample app over 200 megs of ram usage by runnig 5000 buttons a few times, the app memory in the txt box shows about 185 megs See the attached screen shots. The 5000 was created 1st and then I updated the array to 5 buttons and waited and then took the 2nd screen shot. The browser never releases the memory and neither does the flash player. RichOn 8/23/06, Ted Patrick [EMAIL PROTECTED] wrote: Rich, No. I have yet to run this app and see 300MB of RAM consumed ever. Mine gets a ceiling of like 12MB and never goes higher. When the GC runs it destroys objects within the totalMemory within the player. When the player needs more memory for new objects, it adds memory if the gc cannot dispose of what is needed. It is true to say that on machines with ample resources, the player may accumulate more resources but this is true with all applications. I have to say I think you may be looking at a bug specific to your os/system configuration. Is the behavior browser specific? Just to be sure: 300 megabytes = 314,572,800 bytes Ted Patrick Flex Evangelist Adobe Systems Incorporated From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rich Tretola Sent: Wednesday, August 23, 2006 2:09 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Adobe, Help Memory Leaking !! I first noticed this issue while looking at the task manager and seeing firefox and IE memory usage going up and up to well over 300 megs of ram. If I am running the app on a machine with less ram will the browser use less memory? Is that what you are saying? Rich On 8/23/06, Ted Patrick [EMAIL PROTECTED] wrote: Rich, Ok got some information for you: flash.system.System.totalMemory - The amount of memory (in bytes) currently in use by Adobe Flash Player. A better way to think about this is allocated memory. When the player needs more memory it acquires it from the OS/Browser in use. The player doesn't necessarily give the memory back. Within that memory in use are the objects being used. When GC runs, it disposes objects within the allocated memory but doesn't give memory back to the OS/Browser. The GC is running and collecting objects, but f lash.system.System.totalMemory is not the right way to see this happening. Ted Patrick Flex Evangelist Adobe Systems Incorporated From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rich Tretola Sent: Wednesday, August 23, 2006 12:11 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Adobe, Help Memory Leaking !! I am testing locally on a pentium m 1.6 2 gigs ram FP 9.16 I have tried firefox, and ie on winxp On my sample, if you change the number to like 500 and create 500 buttons and then change it back to 3 buttons, why can I not recover the memory from the 497 buttons that are no longer being used? This is a huge probolem on my app because it has like 30 Repeaters that are constantly changing dataProviders on user decisions
RE: [flexcoders] Display rendered HTML in Flex?
Hi, you may want to try this one: http://www.deitte.com/archives/2006/08/finally_updated.htm Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of daniel_croona Sent: Thursday, August 24, 2006 11:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Display rendered HTML in Flex? Hi! What approach would you recommend me to use if I want to achieve rendering of html the way a web browser would render it (i.e. recording to w3c recommendations) We are using Flex to manage a template based webpage. The preview of this has to be 100% the way it will appear in a browser. -- 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] Need help identifying which Event to listen for
I would think you could try the show / hide events also.The ViewStack would be making the next child visible as it is changing the selectedChild.Peace, MikeOn 8/23/06, Jeremy Lu [EMAIL PROTECTED] wrote: When selection changes, you can access current selected child via ViewStack.selectedChild, which points to the currently selected child container, you can then trigger a method inside the child to re-grab the data. see if this works for you :-) On 8/24/06, Mike Anderson [EMAIL PROTECTED] wrote: Hello All, I have a ViewStack Container, with many Children within. Each child has it's own unique set of data-driven controls, and each time the user goes back to a specific Child, I need to Requery the database, so that I get the freshest data each time. The easiest way to do this, is listen for the Event for when a Child gets toggled. I tried activate but this event kicks off only the FIRST time a Container gets shown. I need this even to kick off each and every time, the ViewStack's Children get toggled. Could any of you point out which event I need to trigger, in order to for this to happen? Thanks in advance, Mike -- What goes up, does come down. __._,_.___ -- 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] FDS, VOs, and ignoring client-side properties
2006/8/23, Seth Hodgson [EMAIL PROTECTED]: Try tagging the properties that you don't want managed in your [Managed] AS class as [Transient]. This should prevent changes to them from being logged/committed. Hahaha. That does exactly what I want! Thanks, Seth!! Incidentally, is that in the docs anywhere? I tried looking for it, but to no avail. Thanks to everyone for helping me track down this issue. 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: Re: [flexcoders] Re: How to refresh a tree
Hey Guys, my problem was, that the tree was reacting weird when scrolling around after adding data to its dataprovider (XMLListCollection) using setChildren. (When the user clicks a branch node, it's childnodes should be loaded from my streamingserver (=returns XML)) I found out, that the problem was, that the tree wasn't "prepared" for the "arrival" of new childnodes.. The nodes (branchNodes) where I wanted to add children later gave me the return valueof false on asking hasChildren() And there lies the problem: The tree doesn't expect new children and reacts a little bit weird (which maybe belongs to the uncorrect use of measure, as you said, Mike). Anyway, I solved my problem like this: When first generating my DataProvider I added on each empty branch node a single node with just the label "loading...", what makes the datadescriptor return true on hasChildren. When the subenodes are loaded, I just delete the "loading..." node, as you can see on these screenshots: http://marcelfahle.com/labs/flex2/screens/cptreeproblem1.jpg http://marcelfahle.com/labs/flex2/screens/cptreeproblem2.jpg http://marcelfahle.com/labs/flex2/screens/cptreeproblem3.jpg Using this "hack" everything works good for me.. If anybody wants to see it in action, just drop me a line off-list.. Michael Schmalle wrote: Hi, There is some issues with the Tree and XML dtat provider collections. One thing I can suggest is; Add an event listener to the divider bar release, I can't remeber what it is, in that handler call myTree.invalidateList(); Give it a try and let me know. I have the same issues with using itemRenderers and changing some internal data specific things. After I am done with my process, I called invalidateList() and it did a nice redraw quickly. There probably is just an update isse and measure() is not being called correctly. Peace, Mike On 8/23/06, e baggg [EMAIL PROTECTED]com wrote: I too have had problems with XML nodes in tree. One thing that eliminated a lot of the issues was reassigning the dataProvider of the tree explictly (right after you update the node. so... [Bindable] private var xmlN : XML private function updateTreeDataProvider : void { //code that updates xmlN treeNav.dataProvider= xmlN; } mx:Tree id="treeNav" Marcel Fahle [EMAIL PROTECTED]com wrote: Hi Dave, did you found a solution on that? I've got a similar problem here. Marcel Dave Bobby wrote: This is flaky, might be a bug. root -a --aa --ab --ac -b -c --ca --cb --cc say the last server retrieval got ca, cb and cc. but the tree did not show a scrollbar. this tree is in a vDivided box, so when i move the divider upto b, i see a scrollbar, but when i move divider to cb or cc, ca-cb and cc disappear and no scrollbar. bug? or am i doing something wrong? i think that the tree should be refreshing when i do such operations. thanks. --- In [EMAIL PROTECTED]ups.com, "Dave Bobby" [EMAIL PROTECTED] wrote: I am trying to append data retrieved to selectedItems in the tree represented by an XMLListCollection. During the trace I see that the retrieived items have been added to the XMLListCollection correctly and this collection in Bindable. But the tree itself behaves wierd. Sometimes it shows the scrollbars, sometimes not. Sometimes, when I scroll up and down, it collates different nodes to different parents visually. Any ideas? Thanks. Dave. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- What goes up, does come down. __._,_.___ -- 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] passing data jsp to mxml using flex 2
I have jsp page i want ro pass data from that jsp page to an mxml file. how do i do that? If anybody can come up with a sniplet. thank you -- 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] Tree item in datagrid ??
Can anybody tell me if it's possible to have a tree component in a datagrid item ? Pirvulescu Adrian Romania -- 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: How to cast a WebService lastResult when CFC returnType=xml
I did this with HTTPService with returning an xml as a string from a cfm. The HTTPService resultformat is object. A combo box would us it this way. mx:ComboBox width=140 toolTip=Product Filter id=productlist dataProvider={getSearchCombos.lastResult.searchcombos.product} / This example shows a piece of xml that has all my combo lists. This one is the product array. For your xml you would use .lastResult.people.person -- 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] ListCollectionView.contains( )
Hello,Can someone explain me the use ofListCollectionView.contains( )? I can't get it to work.var keyword:String = txtSearch.text; if( !keywords.contains( {label:keyword} )) { keywords.addItem( {label:keyword} ); }tnx ! __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company 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] How to assign NetStream to VideoDisplay component?
Hi all I have Flex application which connects to FMS 2 and retrieves NetStream. How can I use VideoDisplay or other resizable component instead Video object for displaying media? Thanks Mozilla By __._,_.___ -- 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] Embed an image for a Sprite
Hi there How does one attach an image to a sprite class? I have tried the following example, but nothing gets displayed on the screen: package { import flash.display.Bitmap; import flash.display.Sprite; public class MySprite extends Sprite{ [Embed(source='/assets/board.png')] public var MyPhoto:Class; function MySprite() { var pic:Bitmap = new MyPhoto(); this.addChild(pic); } } } Thanks Tracy -- 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] Extending a subclass of Proxy
Hello Danny, To use namespace you should use this syntax use namespace instead of import So just try that: use namespace flash_proxy; //instead of import flash.utils.flash_proxy; Cheers, De Ridder Yaniv Flex Consultant (Rich Internet Applications) Adobe Consulting Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK m: +44 (0)7758 643 37 81 [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Danny Patterson Sent: Wednesday, August 23, 2006 5:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Extending a subclass of Proxy I'm trying to extend a subclass of the Proxy class and I'm getting an error. Here is an example of my problem: // ProxyA.as package { import flash.utils.Proxy; import flash.utils.flash_proxy; public class ProxyA extends Proxy { flash_proxy override function callProperty(methodName:*, ...args):* { return ProxyA: + methodName; } } } // ProxyB.as package { import flash.utils.flash_proxy; public class ProxyB extends ProxyA { flash_proxy override function callProperty(methodName:*, ...args):* { return ProxyB: + methodName; } } } // ProxyBugExample.as package { import flash.display.Sprite; import flash.utils.Proxy; public class ProxyBugExample extends Sprite { public function ProxyBugExample() { var proxy:Proxy = new ProxyB(); trace(proxy.test()); } } } I the ProxyB class I get the following error: Namespace was not found or is not a compile-time constant. I assume this is referring to the flash_proxy namespace, but it is imported just like in the ProxyA class. I'm not sure what the problem here is, any help would be appreciated. Thanks, Danny __._,_.___ -- 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: Choice of backend systems - which provides best functionality
Franck, Makes sense to me. Do you (or does anyone) know of any open/standards based architecture for this SOAP token security? Any OOTB solutions out there, or do I need to redesign the wheel? Thanks! Darren From: Franck de Bruijn [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Choice of backend systems - which provides best functionality Date: Thu, 24 Aug 2006 07:33:13 +0200 Hi Darren, I developed my webservices such that you have to supply a security token in the header section of a SOAP operation. By using a security token you prevent needing to send the user credentials over the line every time for every request to the back-end. It's a mechanism used heavily in most web-based systems (including single sign-on). Maybe the difference is that often these security tokens are sent in by means of cookies. Webservices don't need cookies; they have a header section (something that simple HTTP requests/posts don't). After a successful login operation, a security token is generated and stored in the database together with the necessary user profile information. So, the user session information is actually stored in the database and not in the application server. Yes, you have to do an extra query to your database to get the session information back, but since it's a very simple and fast query on a primary key it will take be nearly costless. Databases are around now for more than 20 years. They have been totally optimized for data storage and data distribution (if you need a clustered database). It's my belief that databases can do this much better than application servers (or myself/yourself). I also try to rule out caching (of dynamic data) in my application servers. Each normal thinking human being understands that caching (and the distribution of the cache among your application server cluster) introduces many headaches. In my experience, when performance issues arise, most often these are solved by writing cleverer queries, rearchitecting your interface, and even maybe take some consequences in the UI (ok, we don't display that attribute directly, but behind a tab or something). In my opinion caching is rarely the best solution for performance increase, but probably the easiest to develop ... and the hardest to maintain. Cheers, Franck _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Wolf Sent: Wednesday, August 23, 2006 11:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Choice of backend systems - which provides best functionality Darren, Flex inherits the HTTP session that the page which contained the EMBED tag acquired. Dont forget that HTTP/HTML is entirely stateless and yet we can easily secure those. The theory is identical with Flex. -- Dave Wolf Cynergy Systems, Inc. Adobe Flex Alliance Partner http://www.cynergys http://www.cynergysystems.com ystems.com http://www.cynergys http://www.cynergysystems.com/blogs ystems.com/blogs Email: [EMAIL PROTECTED] mailto:dave.wolf%40cynergysystems.com stems.com Office: 866-CYNERGY --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, Darren Houle [EMAIL PROTECTED] wrote: Franck, I agree with you, but... how do you handle security in a stateless back-end? I mean... how do you maintain logged-in / user session information? Or unauthorized access of the web services by others? If Flex is *completely* agnostic of the back-end technology then how do you securely link them together? Darren From: Franck de Bruijn [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com Subject: RE: [flexcoders] Re: Choice of backend systems - which provides best functionality Date: Tue, 22 Aug 2006 18:03:24 +0200 Hi Barry, I'm not sure if I can be of much help here. I'm not into PHP, I'm not into FDS and remoting and the AMF protocol that is related to it. For me, but that is totally a personal opinion, the only acceptable solution for communication with a back-end is webservices, and nothing else. Briefly here are my reasons: * The coolest thing about Flex is not the graphics ... but that you can make your server stateless, meaning that you obtain 100% fail-over characteristics including linear scalability. With FDS (or any other related solution) you highly likely lose this `feature' and my guess is that scalability will be tougher to achieve; for sure it is harder to guarantee ... with a stateless server solution you can. And we always want to grow with our applications, don't we??? * I like to keep my Flex layer totally independent of my back-end layer. My back-end layer should not be aware by any means of the client technology. With webservices you realize this. With FDS (or any other related solution) you get a
RE: [flexcoders] Re: How to cast a WebService lastResult when CFC returnType=xml
Mike, Yes, I'm good with HTTPService, it was WebService that was causing me the grief, but I'm good now. Thanks, Darren From: Mike Collins [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to cast a WebService lastResult when CFC returnType=xml Date: Thu, 24 Aug 2006 12:39:29 - I did this with HTTPService with returning an xml as a string from a cfm. The HTTPService resultformat is object. A combo box would us it this way. mx:ComboBox width=140 toolTip=Product Filter id=productlist dataProvider={getSearchCombos.lastResult.searchcombos.product} / This example shows a piece of xml that has all my combo lists. This one is the product array. For your xml you would use .lastResult.people.person -- 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] ListCollectionView.contains( )
Hi,Unfortunately, I think I remember looking at the source of the ListCollectionView and it only check object(item) reference.So what you are doing will not work. You could easily subclass ListCollectionView and override contains to do what you want there. Just create your own implementation. Actually, you should just create a new public method for your class like; containsLikeObject(), hmm maybe that isn't good.You could override contains and first call super.contains() then you still get the inherent ref check. If that returns false, then go into your custom loop and test the way you want for the below conditions. Peace, MikeOn 8/24/06, Webdevotion [EMAIL PROTECTED] wrote: Hello,Can someone explain me the use ofListCollectionView.contains( )? I can't get it to work.var keyword:String = txtSearch.text; if( !keywords.contains( {label:keyword} )) { keywords.addItem( {label:keyword} ); }tnx ! -- What goes up, does come down. __._,_.___ -- 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] Extending a subclass of Proxy
Hi,It should be;package {// you need the import AND use namespace// if you don't have the import, the compiler has no idea what flash_proxy is in the namespace callimport flash.utils.flash_proxy;use namespace flash_proxy; public class ProxyB extends ProxyA {flash_proxy override function callProperty(methodName:*, ...args):* {return ProxyB: + methodName;}}}Peace, MikeOn 8/24/06, Yaniv De Ridder [EMAIL PROTECTED] wrote: Hello Danny, To use namespace you should use this syntax "use namespace" instead of "import" So just try that: use namespace flash_proxy ; //instead of import flash.utils.flash_proxy; Cheers, De Ridder Yaniv Flex Consultant (Rich Internet Applications) Adobe Consulting Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK m: +44 (0)7758 643 37 81 [EMAIL PROTECTED] From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of Danny Patterson Sent: Wednesday, August 23, 2006 5:19 AM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Extending a subclass of Proxy I'm trying to extend a subclass of the Proxy class and I'm getting an error. Here is an example of my problem: // ProxyA.as package { import flash.utils.Proxy; import flash.utils.flash_proxy; public class ProxyA extends Proxy { flash_proxy override function callProperty(methodName:*, ...args):* { return ProxyA: + methodName; } } } // ProxyB.as package { import flash.utils.flash_proxy; public class ProxyB extends ProxyA { flash_proxy override function callProperty(methodName:*, ...args):* { return ProxyB: + methodName; } } } // ProxyBugExample.as package { import flash.display.Sprite; import flash.utils.Proxy; public class ProxyBugExample extends Sprite { public function ProxyBugExample() { var proxy:Proxy = new ProxyB(); trace(proxy.test()); } } } I the ProxyB class I get the following error: Namespace was not found or is not a compile-time constant. I assume this is referring to the flash_proxy namespace, but it is imported just like in the ProxyA class. I'm not sure what the problem here is, any help would be appreciated. Thanks, Danny -- What goes up, does come down. __._,_.___ -- 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] using the repeater with image
I'm trying to get the data out of a clicked image:I'm working with the adobe flickr classes.mx:Tilemx:Repeater id=rp dataProvider={ photos } mx:Button click= dump.text = 'url is: ' +event.target.getRepeaterItem().url//mx:Repeater /mx:TileAll I get is [object Photo] for theevent.target.getRepeaterItem () part.event.target.getRepeaterItem().url returns null Cananyoneshedsomelightinmydarkness?Thanks! __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company 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] mx:ToggleButtonBar / mx:Button
Hi,You don't put components in a dataProvider. The ButtonBar reads from the model of a dataProvider which has for example a label property in the list of objects.You can also just specify an array of strings to be the label names. The ButtonBar will always use a Button for it's button. ;-) Peace, MikeOn 8/22/06, Gunther [EMAIL PROTECTED] wrote: Why does the following code throws an exception: Error: ERROR: The dataProvider of 'a ToggleButtonBar' must be String, ViewStack, Array, or IList. mx:ToggleButtonBar x=10 y=60 width=640 height=202 mx:Array mx:Button label=Button 1 / mx:Button label=Button 2 / mx:Button label=Button 3 / /mx:Array /mx:ToggleButtonBar If I use this code: mx:ToggleButtonBar x=10 y=60 width=640 height=202 mx:Array mx:StringTest/mx:String mx:Button label=Button 1 / mx:Button label=Button 2 / mx:Button label=Button 3 / /mx:Array /mx:ToggleButtonBar There is no problem ?? I want to make a toggable button bar where each button is skinnable and has the possibility for an up/down/selected image. -- What goes up, does come down. __._,_.___ -- 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: ListCollectionView.contains( )
- Returns whether the view contains the specified object. Unlike the IViewCursor.findxxx methods, this search is succesful only if it finds an item that exactly matches the parameter. trace ({label:keyword} == {label:keyword}); // false You can sort the collection, create a view cursor and use findAny. http://livedocs.macromedia.com/flex/2/langref/mx/collections/ListColl ectionView.html#createCursor() http://livedocs.macromedia.com/flex/2/langref/mx/collections/IViewCur sor.html Or just loop through it yourself. You could also convert the data into an array and use the some/every methods on it; kinda the same as looping through all of em. --- In flexcoders@yahoogroups.com, Webdevotion [EMAIL PROTECTED] wrote: Hello, Can someone explain me the use of ListCollectionView.contains( ) ? I can't get it to work. var keyword:String = txtSearch.text; if( !keywords.contains( {label:keyword} )) { keywords.addItem( {label:keyword} ); } tnx ! -- 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
Id like to hear the first story that changing webservices by AMF increased the user experience significantly and sealed a certain business proposition. I was developing a Flash front-end for an existing .Net application. The Flash app used web services, whereas the .Net app was able to access SQL stored procedures and such directly. The .Net app was slightly more responsive, due to the fact that less data was being sent over the wire, as well as the extra parsing time. Long story short, the Flash app got canned because it was being compared side by side to a faster alternative. If I could have convinced them to give AMF a shot, Im sure we couldve got those performance issues ironed out. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Franck de Bruijn Sent: Thursday, August 24, 2006 1:33 AM To: flexcoders@yahoogroups.com Subject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides Hi Ted, We all understand your arguments 1 and 2. But in the end, and thats already identified in this topic, its the user experience that counts. If it does not suffer by using web services, its not an issue! Id like to hear the first story that changing webservices by AMF increased the user experience significantly and sealed a certain business proposition. For argument 3 Developer Productivity its true that developers need to program more lines of code to obtain the same result (having your webservice result as an ActionScript object), which is, I admit, error prone. But in the total view of the costs of a development project ... it will not make much of a difference. The actual additional lines of code Im talking about, however, are very easy to generate from a model if you wish. Again, FDS is cool, really true and it does have its place. But for many applications FDS (including the extra features messaging and data management) is neither an option nor necessary. Cheers, Franck From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ted Patrick Sent: Wednesday, August 23, 2006 6:47 PM To: flexcoders@yahoogroups.com Subject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides AMF is faster in 3 fundamental ways: Bandwidth Size Smaller, lighter, faster!!! Parsing Speed Less work on both client and server!!! Developer Productivity Less work for developers!!! Web Services are dependent on XML Parsing on both the client and server side. Although its a good story, XML parsers are not very efficient as parsing documents is an interpreted process. The Flash Player XML parser will always be dramatically slower than AMF parsing, binary formats are notoriously faster in this regard. XML parsing additionally decays rapidly as the file size increases. Flash Player XML parsing time increase non-linearly with larger XML documents. With AMF parsing times are linear with data size. The XML decay can be attributed to the number of inner objects that need to be created during a parsing run. AMF objects are 1:1 with the data received where XML data is 1:N per Elements/Attribute. Comparing XML to AMF is an unfair race, AMF wins every time. When you add in the overhead of WS SOAP parsing atop the base XML parser speed you begin to see performance issues. With SOAP, you interpret an XML document back into typed objects depending on the SOAP specifics used. Sure 350ms is ok once or twice, but try doing 200 transactions in this format and you will see performance issues arise. Using Web Services you are forcing the Flash Player to do allot of unneeded work. The goal is to build richer applications, not burn up player performance in crud operations. Additionally non-proxied Web Service use suffers with Flash Player because of the browser variation in the plug-in APIS. You cannot get the 500 Errors response content in IE and thus the SOAP fault standard breaks down. In SOAP there are important messages that arrive with 500 Errors and the inability of the Flash Player to receive these is a problem. Unfortunately there is no seamless way to get 500 Errors into the Flash Player other then rewriting an HTTP Client in the Socket class. This effort would also require a new SOAP library within Flex and socket use on low ports requires a more complex crossdomain.xml configuration. Even then you still suffer the same performance issues. Performance aside, the productivity discussion is much more important. AMF3 and Flex Data Services are wildly productive. Once you compile your Java Class and configure a destination in FDS (1 XML Element), you are done. All typing is handled, All methods are ready to run with any number of client applications. It is the easiest way to create a server side API that I know of. Actually most cases, implementing FDS will removes $20,000 of developer time wasted on implementing other data
Re: [flexcoders] Re: How to refresh a tree
Hey Guys, my problem was, that the tree was reacting weird when scrolling around after adding data to its dataprovider (XMLListCollection) using setChildren. (When the user clicks a branch node, it's childnodes should be loaded from my streamingserver (=returns XML)) I found out, that the problem was, that the tree wasn't "prepared" for the "arrival" of new childnodes.. The nodes (branchNodes) where I wanted to add children later gave me the return valueof false on asking hasChildren() And there lies the problem: The tree doesn't expect new children and reacts a little bit weird (which maybe belongs to the uncorrect use of measure, as you said, Mike). Anyway, I solved my problem like this: When first generating my DataProvider I added on each empty branch node a single node with just the label "loading...", what makes the datadescriptor return true on hasChildren. When the subenodes are loaded, I just delete the "loading..." node, as you can see on these screenshots: http://marcelfahle.com/labs/flex2/screens/cptreeproblem1.jpg http://marcelfahle.com/labs/flex2/screens/cptreeproblem2.jpg http://marcelfahle.com/labs/flex2/screens/cptreeproblem3.jpg Using this "hack" everything works good for me.. If anybody wants to see it in action, just drop me a line off-list.. Michael Schmalle wrote: Hi, There is some issues with the Tree and XML dtat provider collections. One thing I can suggest is; Add an event listener to the divider bar release, I can't remeber what it is, in that handler call myTree.invalidateList(); Give it a try and let me know. I have the same issues with using itemRenderers and changing some internal data specific things. After I am done with my process, I called invalidateList() and it did a nice redraw quickly. There probably is just an update isse and measure() is not being called correctly. Peace, Mike On 8/23/06, e baggg [EMAIL PROTECTED]com wrote: I too have had problems with XML nodes in tree. One thing that eliminated a lot of the issues was reassigning the dataProvider of the tree explictly (right after you update the node. so... [Bindable] private var xmlN : XML private function updateTreeDataProvider : void { //code that updates xmlN treeNav.dataProvider= xmlN; } mx:Tree id="treeNav" Marcel Fahle [EMAIL PROTECTED]com wrote: Hi Dave, did you found a solution on that? I've got a similar problem here. Marcel Dave Bobby wrote: This is flaky, might be a bug. root -a --aa --ab --ac -b -c --ca --cb --cc say the last server retrieval got ca, cb and cc. but the tree did not show a scrollbar. this tree is in a vDivided box, so when i move the divider upto b, i see a scrollbar, but when i move divider to cb or cc, ca-cb and cc disappear and no scrollbar. bug? or am i doing something wrong? i think that the tree should be refreshing when i do such operations. thanks. --- In [EMAIL PROTECTED]ups.com, "Dave Bobby" [EMAIL PROTECTED] wrote: I am trying to append data retrieved to selectedItems in the tree represented by an XMLListCollection. During the trace I see that the retrieived items have been added to the XMLListCollection correctly and this collection in Bindable. But the tree itself behaves wierd. Sometimes it shows the scrollbars, sometimes not. Sometimes, when I scroll up and down, it collates different nodes to different parents visually. Any ideas? Thanks. Dave. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- What goes up, does come down. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company 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: ListCollectionView.contains( )
Thanks guys for your input ! __._,_.___ -- 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: Webservice Destination with Basic Authentication
Hi someguy, Based on the traffic that you sent it appears that your WS app server is not blocking access at this point - the error is occuring in your Axis web service rather than at the web container level. And this error is complaining that there is no auth header. Here's my series of educated guesses. - assuming that the contraints are set up properly you may have successfully authenticated at some point as far as the web container is concerned. Subsequently it sees your jsessionid and says, Hey, this guy is already logged in so no need to ask for credentials again. - your web service is assuming that there will always be an auth header. Not true - it will only be sent in response to a challenge from the server. If the server recognizes the authenticated session then there will be no further challenge and therefore no auth header. If you need to do user verification from the service you will need to do manual checking of user info then you'll need to use request.getUserPrincipal(). Tom Ruggles FDS QA --- In flexcoders@yahoogroups.com, Seth Hodgson [EMAIL PROTECTED] wrote: Hi, Have you verified that the server hosting your web service has basic auth configured correctly? Your code looks correct so perhaps when the FDS proxy makes the call against the remote server it isn't being challenged for basic auth credentials? Try requesting your WSDL in a browser and verify that the browser's challenge box pops up. Best, Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of someguy7_7 Sent: Wednesday, August 23, 2006 8:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Webservice Destination with Basic Authentication I cannot see the authorization header anywhere in the http dump. Here is some more information on how I am testing. I deployed the fds samples.war and placed my test mxml in the samples application. I added the following definition to samples/WEB-INF/flex/proxy- config.xml. destination id=mytest adapter ref=soap-proxy / properties wsdlhttp://machine/app/webservice/wsdl/wsdl soaphttp://machine/app/services/myService/soap /properties /destination Do I need to add some security constraints to the destination definition? Here is a dump of the request and response. POST /myapp/services/myservice HTTP/1.1 user-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6 accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/p lain;q=0.8,image/png,*/*;q=0.5 accept-language: en-us,en;q=0.5 accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 keep-alive: 300 pragma: akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-serial-no referer: http://localhost:8080/samples/WSTest.mxml.swf SOAPAction: searchIt Content-Type: text/xml; charset=utf-8 Host: mymachine Cookie: $Version=0; JSESSIONID=034C89B28DEB60ECC77ED6C10141E5A4 Content-Length: 855 ?xml version=1.0 encoding=utf-8?SOAP-ENV:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;SOAP- ENV:Bodyns0:myParam xmlns:ns0=http://www.server.com/myApi/xsd;ns0:handle1/ns0:handle /ns0:myParam/SOAP-ENV:Body/SOAP-ENV:Envelope HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=utf-8 Transfer-Encoding: chunked Date: Wed, 23 Aug 2006 15:05:01 GMT Connection: close ?xml version='1.0' encoding='utf-8'?soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;soapenv:He ader /soapenv:Bodysoapenv:Fault xmlns:axis2=http://www.w3.org/2003/05/soap- envelopefaultcodeaxis2:Sender/faultcode faultstringUnauthorized/faultstringdetailExceptionorg.apache. axis2.AxisFault: Unauthorized; nested exception is: java.lang.Exception: Missing HTTP Basic authentication header#13; --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ wrote: On Wednesday 23 August 2006 04:22, someguy7_7 wrote: I have figured out the destination issue and my request is making it to the webservice but the Authorization header is not being sent. I am calling setRemoteCredentials before setting any params and calling send. Hmm. You've dumped out the HTTP traffic to confirm this ? -- Tom Chiverton Helping to globally envisioneer end-to-end models This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered
[flexcoders] Re: Change HorizontalList column width based on content
Can someone please look into this? -- 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] 1.5 : components can't be cached ??
Hi there, I use Flex 1.5 /Tomcat 5.5 and I noticed that in my {appRoot}/WEB-INF/flex/log/flex{x}.log there is thse messages : 03/07 15:37:15 INFO Cached Component Loader: component Contact cannot be cached. 03/07 15:37:15 INFO Cached Component Loader: component BasDePage cannot be cached. 03/07 15:37:15 INFO Cached Component Loader: component CustomLycra cannot be cached. 03/07 15:37:15 INFO Cached Component Loader: component thumbnailProduct cannot be cached. etc these components refers to all my mxml and as files I use in my Application ... Does this mean my 'application' is compiled every time a client connect to my App ? How can I resolve this, and can't find any information about that in macromedia's doc ... (please Adobe continue support for Flex 1.5 as Flash 9 player is not well diffused now) I've check the configuration files and except the fact I use production mode to false (as I may set new versions sometimes without wanting to restart my tomcat server) but everything else seems ok in my flex-config.xml for example : cache !-- cache compiled custom components as swo files -- cache-swostrue/cache-swos !-- content cache for dynamically generated SWF, SWD, and HTML -- content-size500/content-size !-- source cache for dynamically generated MXML (from JSP) -- mxml-size500/mxml-size !-- force a check for validation of page freshness every XX seconds -- http-maximum-age1/http-maximum-age !-- check for changes to dependent files on disk every XX seconds -- !-- when production-mode is true, the file watcher runs once at startup -- file-watcher-interval1/file-watcher-interval /cache thanks if someone could clear my mind about this issue Antoine Malpel __._,_.___ -- 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] Adobe, Help Memory Leaking !!
A little update with some additional testing.I am running the exact same application on 2 machines, one has 2 gigs of system ram and the other has 128 megs of ram. On the machine with the low ram, the app runs with a much smaller ram footprint. Does the flash player allocate more memory than needed when it is available on some machines as comparted to machines that have limited ram?RichOn 8/24/06, Rich Tretola [EMAIL PROTECTED] wrote: False is the default setting for recycleChildren, but I have also added it and tried it both ways.Rich On 8/23/06, Joshua Garnett [EMAIL PROTECTED] wrote: Have you tried setting the recycleChildren attribute of the Repeater to false? I believe when you have recycleChildren set to true, even if you reduce the number of items in the dataProvider, it still keeps an object in memory that it will reuse. I've actually encountered other issues with having recycleChildren set to true when the repeaters are nested within repeaters. There doesn't seem to be any noticeable performance hit by switching it to false. --JoshOn 8/23/06, Rich Tretola [EMAIL PROTECTED] wrote: How you found any kind of resolution? As it stand right now my application will be unusable by most of my audience which will obviously not make management happy. I haven't had this problem with other apps, but there were not nearly as object and data intense. RichOn 8/23/06, sinatosk [EMAIL PROTECTED] wrote: just want to say your not the only one... 2 other people have had the same sort of problem here and I have too... it's annoying to be honest. it does go down eventually but not by it self... I've left it running overnight ( one of my applications ) doesn't go down much On 24/08/06, Rich Tretola [EMAIL PROTECTED] wrote: Just try loading a large amount of buttons a few times and watch the memory go up and up. When I went back to just a few buttons, the memory actually went up a little rather than dropping back down. http://www.everythingflex.com/flex2/MemoryTest/ RichOn 8/23/06, Rich Tretola [EMAIL PROTECTED] wrote: The 300 megs is the application that I am working on, not the sample app. The actual project app has about 20 or so repeaters, the sample was just a single version to demonstrate that the garbage collector is not working. I have been able to get the sample app over 200 megs of ram usage by runnig 5000 buttons a few times, the app memory in the txt box shows about 185 megs See the attached screen shots. The 5000 was created 1st and then I updated the array to 5 buttons and waited and then took the 2nd screen shot. The browser never releases the memory and neither does the flash player. RichOn 8/23/06, Ted Patrick [EMAIL PROTECTED] wrote: Rich, No. I have yet to run this app and see 300MB of RAM consumed ever. Mine gets a ceiling of like 12MB and never goes higher. When the GC runs it destroys objects within the totalMemory within the player. When the player needs more memory for new objects, it adds memory if the gc cannot dispose of what is needed. It is true to say that on machines with ample resources, the player may accumulate more resources but this is true with all applications. I have to say I think you may be looking at a bug specific to your os/system configuration. Is the behavior browser specific? Just to be sure: 300 megabytes = 314,572,800 bytes Ted Patrick Flex Evangelist Adobe Systems Incorporated From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rich Tretola Sent: Wednesday, August 23, 2006 2:09 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Adobe, Help Memory Leaking !! I first noticed this issue while looking at the task manager and seeing firefox and IE memory usage going up and up to well over 300 megs of ram. If I am running the app on a machine with less ram will the browser use less memory? Is that what you are saying? Rich On 8/23/06, Ted Patrick [EMAIL PROTECTED] wrote: Rich, Ok got some information for you: flash.system.System.totalMemory - The amount of memory (in bytes) currently in use by Adobe Flash Player. A better way to think about this is allocated memory. When the player needs more memory it acquires it from the OS/Browser in use. The player doesn't necessarily give the memory back. Within that memory in use are the objects being used. When GC runs, it disposes objects within the allocated memory but doesn't give memory back to the OS/Browser. The GC is running and collecting objects, but f lash.system.System.totalMemory is not the right way to see this happening. Ted Patrick Flex Evangelist Adobe Systems Incorporated From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rich Tretola Sent: Wednesday, August 23, 2006 12:11 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Adobe, Help
[flexcoders] Re: Choice of backend systems - which provides best functionality
Given our own license we will almost always look towards developing on a J2EE infrastructure running on Apache Tomcat using Apache AXIS SOAP web services. This platform provides unquestioned scalability and reliability. Flex integrates absolutely seamlessly into this environment inlcuding RPC, session management and security. Your back-end infrastructure will be based on open standards and can be developed with great separation of concerns allowing you to have a complete services oriented architecture that is flexible and easy to expand and integrate. Our user-centric front to back development approach helps make sure the end state is exactly that, and using best of breed tools and frameworks readily available in the Java/J2EE camps you can signigicantly reduce the complexity involved in its development. -- Dave Wolf Cynergy Systems, Inc. Adobe Flex Alliance Partner http://www.cynergysystems.com http://www.cynergysystems.com/blogs Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, rhlarochelle [EMAIL PROTECTED] wrote: I am new to Flex 2, and have the opportunity to develop a new application. Given all of the choices of back end technology out there (J2EE, Coldfusion, PHP), which will provide for the richest user experience? It seems that leveraging J2EE and Java gives the best potential for sharing objects (and updates to objects ) over the wire. Have I got this right? -- 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: Embed an image for a Sprite
Ok, I managed to figure out what the problem was from a previous post - one cannot add a sprite directly to a container, one has to first add it to a UIComponent type. Anyone with more info / experience with this? Cheers Tracy --- In flexcoders@yahoogroups.com, polestar11 [EMAIL PROTECTED] wrote: Hi there How does one attach an image to a sprite class? I have tried the following example, but nothing gets displayed on the screen: package { import flash.display.Bitmap; import flash.display.Sprite; public class MySprite extends Sprite{ [Embed(source='/assets/board.png')] public var MyPhoto:Class; function MySprite() { var pic:Bitmap = new MyPhoto(); this.addChild(pic); } } } Thanks Tracy -- 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: Choice of backend systems - which provides best functionality
WS-Security is the standard spec for securing web service calls. Most web service stacks have some level of support for it. Among the things it offers are username/token style security and encryption of some/all of the SOAP envelope. There is an overview and a few good links here: http://www-128.ibm.com/developerworks/library/specification/ws- secure/ Also, see the Adobe AS3 UsernameToken support in the corelibs project here: http://weblogs.macromedia.com/as_libraries/docs/corelib/ Hope that helps, Derek --- In flexcoders@yahoogroups.com, Darren Houle [EMAIL PROTECTED] wrote: Franck, Makes sense to me. Do you (or does anyone) know of any open/standards based architecture for this SOAP token security? Any OOTB solutions out there, or do I need to redesign the wheel? Thanks! Darren -- 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] Looking for simplest way to transform a MenuBar event: mouseOver=click
I'm trying to capture a mouseOver event and propogate it as if it were a click event to control menu opening without forcing the user to actually click. Perusing the MenuBar.as and Menu.as class files, I've seen candidate functions, but they are either set as private or I get a 1061 or 1195 error: Attempted access of inaccessible method showMenu through a reference with static type mx.controls:MenuBar. I'm wondering if there is a workaround that is simpler that creating a custom class that extends MenuBar. The alternative is to write a menuing class from scratch as I've done previously in Flash. Any thougts? -- 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: using the repeater with image
uhmmm ... try with event.currenTarget.getRepeaterItem(). --- In flexcoders@yahoogroups.com, Webdevotion [EMAIL PROTECTED] wrote: I'm trying to get the data out of a clicked image: I'm working with the adobe flickr classes. mx:Tile mx:Repeater id=rp dataProvider={ photos } mx:Button click=dump.text = 'url is: ' +event.target.getRepeaterItem().url/ /mx:Repeater /mx:Tile All I get is [object Photo] for the event.target.getRepeaterItem () part. event.target.getRepeaterItem().url returns null Can anyone shed some light in my darkness ? 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] changing state of all itemrenderer instances?
I have a list using a custom MXML item renderer: mx:List id=personList itemRenderer=PersonRenderer dataProvider={people}/ I'd like the user to have a checkbox in the main application to decide if they want to see the people's pictures in the list or not. On change of the checkbox, I'd like to be able to say Hey list (or list's item renderer class), change all your items from the base state to a state called withPhoto. I tried to make a static function changeState for PersonRenderer, but then I can't access the currentState property... makes sense. I was thinking of looping through each item in the list and changing it's specific instance of PersonRenderer's state? But I'm not too sure how to do that. Or is there a better way to do it? I currently have the base and withPhoto states defined in the renderer, and would like to keep it in that one renderer. I considered just changing the list's itemRenderer to PersonRendererWithPhoto but then I'd lose any pretty transitions, fades, etc. as the photo is displayed... that's no good. Thanks! -- TC -- 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: Flex 2 Final : Error #1009, in RadioButton/get labelPlacement()
Has anyone found a workaround to the bug with RadioButton groups and repeater components described here? I have having this same problem. --jason --- In flexcoders@yahoogroups.com, Benoit Hediard [EMAIL PROTECTED] wrote: I've investigated this issue a little bit more. It looks like there some problems with RadioButton when they are used in groups. First display is generally correct, but when the display list is refreshed, it generates some bugs. In our case, the RadioButton group is used in a popup, and even after the popup is deleted, some popup display routines are still executed. When debugging is on, the error is generated in RadioButton.as, at line 172, because the property group is null : if (_labelPlacement != ) { value = _labelPlacement; } else if (_group group.labelPlacement != ) { // L.172 value = group.labelPlacement; } Workaround : always define labelPlacement in all your RadioButton (so that the group labelPlacement is never read). I've also encountered a similar error in another case : RadioButton groups used inside a Repeater, with the groupName defined during the repeater execution (groupName={theRepeater.currentIndex}). First execution is correct, but the next ones generate an error. When debugging is on, the error is generated in the RadioButton.as, at line 454, for the same reason (property group is null) : var g:RadioButtonGroup = group: g.addInstance(this); // L.454 I haven't found a workaround for this one. It's too bad because all of this was working in previous beta but not on the final release ;). Benoit Hediard _ De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de Benoit Hediard Envoyé : lundi 3 juillet 2006 12:36 À : flexcoders@yahoogroups.com Objet : [flexcoders] Flex 2 Final : Error #1009, in RadioButton/get labelPlacement() Error #1009: Il est impossible d'accéder à la propriété ou la méthode d'une référence d'objet nul. (in english, something like it is not possible to access the property or the method of the null object reference) at mx.controls::RadioButton/get labelPlacement() at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::layoutConten ts() at mx.controls::Button/mx.controls:Button::updateDisplayList() ... In Flex2 final, I'm getting this error regularly... Not tried yet to reproduce it on a simple regular case, but it looks like pretty random. I don't use the labelPlacement property in our app. I've never encountered this error in previous beta, only since the FP9 / Flex2 Final. Looks like a very annoying low level framework error, related to the layout of RadioButtons. Anyone else facing this issue? And found a workaround? Benoit Hediard -- 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] Passing data from JSP to Flex
I am new to Flex. Could someone help me with the following question.We have a struts-based application that we are gradually porting over to Flex. Currently, the user authentication (login screen) is done via a JSP page. A new module of the application is wrriten in Flex.We would like to pass the logged-in user information to Flex. How should we do that?Thank you very much for your kind assistance. -- Anas Mughal Get your email and more, right on the new Yahoo.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 Software development tool Software development Software development services Home design software Software development company 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] Don't bindings work both ways??
Bind your outgoing data to a model and submit that to the server:mx:Model id="infoModel" info text2{text1.text}/text1 text2{text2.text}/text2 info/mx:ModelSend it to the server via an HTTPService:mx:HTTPService id="saveAny" method="POST" url=""http://yourserver/process.a">http://yourserver/process.a" useProxy="false" showBusyCursor="true"/mx:HTTPServiceSend like this:saveAny.send(infoModel);Bind the incoming like this:mx:Form width="50%" height="100%" mx:FormHeading label="Standard Info"/ mx:FormItem label="Text 1" mx:TextArea id="text1" text="{generalInfo.lastResult.response.info.text1}"/ /mx:FormItem mx:FormItem label="Text 2" mx:TextArea id="text2" text="{generalInfo.lastResult.response.info.text2}"/ /mx:FormItemmx:FormTo a service like this:mx:HTTPService id="generalInfo" url=""http://yourserver/get">http://yourserver/get" useProxy="false"/mx:HTTPServiceI use php, here's how I return the data. I put everything in an associate array then output it with a function:$row['text1'] = "some data";$row['text2'] = "some more data";print "?xml version=\"1.0\" ?\n";print "response";print namedAssocToXml('info', $out);print "/response";function namedAssocToXml($rowname, $attributes) { $output = "$rowname\n"; foreach ($attributes as $name = $value) { if (is_array($value)) { if (is_numeric($name)) {$output .= namedAssocToXml('row', $value); } else {$output .= namedAssocToXml($name, $value); } } else { $value = str_replace("", "lt;", $value); $value = str_replace("", "gt;", $value); if (is_numeric($name)) {$output .= "item" . $value . "/item\n"; } else {$output .= "$name" . $value . "/$name\n"; } } } $output .= "/$rowname\n"; return $output;}I think using HTTPService is the older model for doing things. With FDS you can do a lot of cooler things, but hopefully that will get you started. NateOn Aug 24, 2006, at 11:09 AM, Mike Anderson wrote:I will jump back into the Docs right away, but in the meantime, is there a faster way to do this? Or must I do it the traditional way, by systematically assigning the values to the ValueObject, just prior to sending the Variables over to the server? i.e. myValueObjectVO.propertyOne = textFieldOne.text;myValueObjectVO.propertyTwo = textFieldTwo.text;myValueObjectVO.propertyThree = textFieldThree.text; Thanks in advance! MikeFrom: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt ChotinSent: Thursday, August 24, 2006 12:32 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Don't bindings work both ways??No, binding is only one-way, you’ll need to set up the 2-way yourself. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mike AndersonSent: Wednesday, August 23, 2006 9:56 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Don't bindings work both ways?? Hello All,I have a Form with several fields - and those fields are all bound to aValueObject (using the Curly Braces method).After doing my database calls, etc., my Form populates beautifully withall the values. However, if I edit any of those fields on the Form, andthen send the same ValueObject back to the server, nothing is changed -it's as if I didn't make any changes to the Form itself.It was my understanding, that once a Binding Relationship is created,that any changes (either in the Model itself, or the Fields that aretied to the Model) will update in both directions.Is this not true, or am I missing something?Thanks all for your help,Mike __._,_.___ -- 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
Frank, RPC IS LESS THAN 25% OF FLEX DATA SERVICES!!! Flex Data Services is so much more that RPC. This entire discussion is really FDS.RPC to WebServices. FDS contains 4 major parts: 1. Messaging - ASMessaging and JMSMessaging 2. Data Management - Data Synchronization and Distributed ArrayCollections 3. Web Tier Compiler - Compilation of AS/MXML on the server side. 4. RPC - Remoting and WebService Proxy Using Web Services directly affects user experience!!! Using Web Services directly affects user experience!!! Using Web Services directly affects user experience!!! Web Services burns up player performance that you could be using to make the user experience better. When working in Flash Player, everything affects performance. If you abuse the player in one area, you limit what you can do elsewhere before the player starts to slow down. The Flash Player (like all software) is limited in capability; if you spend that capability doing hard things (read Web Services) then you will not be able to do other things. On a high quality machine, WS can take 400ms, but on a slower machine it can take 3-10 seconds for a single call and the larger the data exchanged, the worse it gets. Not good. With Flash Player it is important to keep things light and fast. Web Services are abusive to the Flash Player runtime. Support is included for integration purposes but it was really not designed as an optimized way to exchange data. Web Services view: Flash Player Receives XML ASCII Text XML Parsing → XML Parsing!!! SOAP Parsing occurs to AS Objects → Traverse SOAP Objects Recursively!!! Objects are passed into events RemoteObject: Flash Player Receives AMF Data AMF Binary Decoding → Direct to typed objects. Objects are passed into events I am sure there are many smart people out there who will get WebServices to work well for them with Flex. It is a lot of hard work to make this work well and I have only seen one company do it really well. I do not doubt that others will make this work reliably but I question its use. It will affect performance which is why AMF was created in the first place as an optimized data exchange format for Flash Player. One of the key advantages for WebServices is the wide availability of Web Service clients for any language. With AMF we only have one client( Flash Player ) and several AMF servers. One key enterprise objection to using AMF is the lack of AMF clients for integration. Cases: - PHP form could remote to FDS - C++ application joins FDS messaging as a client - Java process remotes to FDS - Python process remotes to Data Services for Ruby (MidnightCoders) - C# remotes data with FDS as a client Part of the distributed computing revolution is the realization that anything can be both a client and a server. One of the problem areas in FDS is that only Flash and Java:JMS can participate within the FDS as clients. Would non-flash clients for AMF and Messaging help? Regards, Ted Patrick Flex Evangelist Adobe Systems Incorporated From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Franck de Bruijn Sent: Wednesday, August 23, 2006 10:33 PM To: flexcoders@yahoogroups.com Subject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides Hi Ted, We all understand your arguments 1 and 2. But in the end, and that’s already identified in this topic, it’s the user experience that counts. If it does not suffer by using web services, it’s not an issue! I’d like to hear the first story that changing webservices by AMF increased the user experience significantly and sealed a certain business proposition. For argument 3 ‘Developer Productivity’ it’s true that developers need to program more lines of code to obtain the same result (having your webservice result as an ActionScript object), which is, I admit, error prone. But in the total view of the costs of a development project ... it will not make much of a difference. The actual additional lines of code I’m talking about, however, are very easy to generate from a model if you wish. Again, FDS is cool, really true and it does have its place. But for many applications FDS (including the extra features messaging and data management) is neither an option nor necessary. Cheers, Franck -- 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] Don't bindings work both ways??
Thanks for that informative post - I guess I shouldn't post such (not dumb) but simplistic questions - I know better than that :) Since Flex 2.0 has added such intuitive new features - one of those being the ability to directly find a Value within a Grid or List control, without having to Iterate through the values inside a Loop, that DataBinding may have had some enhancements to it as well. I think it would be neat, to have an optional type of Binding scenario - in which the data flows both ways automatically... In my case, I will just take the most typical path, and create 2 sets of Binding Commands - one that assigns the ValueObject properties to all my controls, and one that assigns all my control properties to the ValueObject. That should take care of any changes that are made in either direction... I was just expecting too much, from the Binding features of Flex - and just have to continue to do it the traditional way... Thanks again for all your help - Mike From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nate HardtSent: Thursday, August 24, 2006 10:49 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Don't bindings work both ways?? Bind your outgoing data to a model and submit that to the server: mx:Model id="infoModel" info text2{text1.text}/text1 text2{text2.text}/text2 info /mx:Model Send it to the server via an HTTPService: mx:HTTPService id="saveAny" method="POST" url=""http://yourserver/process.a">http://yourserver/process.a" useProxy="false" showBusyCursor="true" /mx:HTTPService Send like this: saveAny.send(infoModel); Bind the incoming like this: mx:Form width="50%" height="100%" mx:FormHeading label="Standard Info"/ mx:FormItem label="Text 1" mx:TextArea id="text1" text="{generalInfo.lastResult.response.info.text1}"/ /mx:FormItem mx:FormItem label="Text 2" mx:TextArea id="text2" text="{generalInfo.lastResult.response.info.text2}"/ /mx:FormItem mx:Form To a service like this: mx:HTTPService id="generalInfo" url=""http://yourserver/get">http://yourserver/get" useProxy="false" /mx:HTTPService I use php, here's how I return the data. I put everything in an associate array then output it with a function: $row['text1'] = "some data"; $row['text2'] = "some more data"; print "?xml version=\"1.0\" ?\n"; print "response"; print namedAssocToXml('info', $out); print "/response"; function namedAssocToXml($rowname, $attributes) { $output = "$rowname\n"; foreach ($attributes as $name = $value) { if (is_array($value)) { if (is_numeric($name)) { $output .= namedAssocToXml('row', $value); } else { $output .= namedAssocToXml($name, $value); } } else { $value = str_replace("", "lt;", $value); $value = str_replace("", "gt;", $value); if (is_numeric($name)) { $output .= "item" . $value . "/item\n"; } else { $output .= "$name" . $value . "/$name\n"; } } } $output .= "/$rowname\n"; return $output; } I think using HTTPService is the older model for doing things. With FDS you can do a lot of cooler things, but hopefully that will get you started. Nate On Aug 24, 2006, at 11:09 AM, Mike Anderson wrote: I will jump back into the Docs right away, but in the meantime, is there a faster way to do this? Or must I do it the traditional way, by systematically assigning the values to the ValueObject, just prior to sending the Variables over to the server? i.e. myValueObjectVO.propertyOne = textFieldOne.text; myValueObjectVO.propertyTwo = textFieldTwo.text; myValueObjectVO.propertyThree = textFieldThree.text; Thanks in advance! Mike From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt ChotinSent: Thursday, August 24, 2006 12:32 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Don't bindings work both ways?? No, binding is only one-way, youll need to set up the 2-way yourself. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mike AndersonSent: Wednesday, August 23, 2006 9:56 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Don't bindings work both ways?? Hello All,I have a Form with several fields - and those fields are all bound to aValueObject (using the Curly Braces method).After doing my database calls, etc., my Form populates beautifully withall the values. However, if I edit any of those fields on the Form, andthen send the same ValueObject back to the server, nothing is changed -it's as if I didn't make any changes to the Form itself.It was my understanding, that once a Binding Relationship is created,that any changes (either in the Model itself, or the Fields that aretied to the Model) will update in both directions.Is this not true, or am I missing something?Thanks all for your help,Mike __._,_.___ -- Flexcoders
Re: [flexcoders] Adobe, Help Memory Leaking !!
Thanks Ted,I have another question that is somewhat related. Is there a difference in ram usage between the following:OPTION A: mx:HBox width=500 mx:Spacer width=100%/ mx:Label text=Hello World / mx:Spacer width=100%/ /mx:HBox OPTION B: mx:Canvas width=500 mx:Label text=Hello World horizontalCenter=0/ /mx:CanvasRichOn 8/24/06, Ted Patrick [EMAIL PROTECTED] wrote: Rich, I believe the process of allocating RAM to the Player is dependent on the OS/Browser. If the OS/Browser feels like giving the player more RAM then the player will behave differently in its performance profile. The player is always designed with the low end machines in mind. Note: The player is greedy, once you give it system resources; it uses those in an optimized manner. It will give back resources but only when the use pattern has materially changed. Again, using flash.system.System.totalMemory represents all the memory allocated to the player, not necessarily the memory being used by objects. An incremental GC run will reduce the objects within the totalMemory but the value WILL NOT CHANGE EVER!!! Please do not use totalMemory as a gauge for leaking memory or GC action/inaction. Depending on the OS, the player will be allocated more or less resources and will tune within what is provided. Rich, I believe your machine is giving the player lots of RAM and the player is just not giving it back. There may be a use case within the way you are using Repeater such that inner references are not being cleaned up. You can also use ItemRenderer to accomplish the same thing. See if you are seeing the same behavior there. The crashing concerns me and I have logged a bug. Ted Patrick Flex Evangelist Adobe Systems Incorporated From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rich Tretola Sent: Thursday, August 24, 2006 8:10 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Adobe, Help Memory Leaking !! A little update with some additional testing. I am running the exact same application on 2 machines, one has 2 gigs of system ram and the other has 128 megs of ram. On the machine with the low ram, the app runs with a much smaller ram footprint. Does the flash player allocate more memory than needed when it is available on some machines as comparted to machines that have limited ram? Rich On 8/24/06, Rich Tretola [EMAIL PROTECTED] wrote: False is the default setting for recycleChildren, but I have also added it and tried it both ways. Rich On 8/23/06, Joshua Garnett [EMAIL PROTECTED] wrote: Have you tried setting the recycleChildren attribute of the Repeater to false? I believe when you have recycleChildren set to true, even if you reduce the number of items in the dataProvider, it still keeps an object in memory that it will reuse. I've actually encountered other issues with having recycleChildren set to true when the repeaters are nested within repeaters. There doesn't seem to be any noticeable performance hit by switching it to false. --Josh On 8/23/06, Rich Tretola [EMAIL PROTECTED] wrote: How you found any kind of resolution? As it stand right now my application will be unusable by most of my audience which will obviously not make management happy. I haven't had this problem with other apps, but there were not nearly as object and data intense. Rich On 8/23/06, sinatosk [EMAIL PROTECTED] wrote: just want to say your not the only one... 2 other people have had the same sort of problem here and I have too... it's annoying to be honest. it does go down eventually but not by it self... I've left it running overnight ( one of my applications ) doesn't go down much On 24/08/06, Rich Tretola [EMAIL PROTECTED] wrote: Just try loading a large amount of buttons a few times and watch the memory go up and up. When I went back to just a few buttons, the memory actually went up a little rather than dropping back down. http://www.everythingflex.com/flex2/MemoryTest/ Rich On 8/23/06, Rich Tretola [EMAIL PROTECTED] wrote: The 300 megs is the application that I am working on, not the sample app. The actual project app has about 20 or so repeaters, the sample was just a single version to demonstrate that the garbage collector is not working. I have been able to get the sample app over 200 megs of ram usage by runnig 5000 buttons a few times, the app memory in the txt box shows about 185 megs See the attached screen shots. The 5000 was created 1st and then I updated the array to 5 buttons and waited and then took the 2nd screen shot. The browser never releases the memory and neither does the flash player. Rich On 8/23/06, Ted Patrick [EMAIL PROTECTED] wrote: Rich, No. I have yet to run this app and see 300MB of RAM consumed ever. Mine gets a ceiling of like 12MB and never goes higher.
[flexcoders] Re: Don't bindings work both ways??
--- In flexcoders@yahoogroups.com, Nate Hardt [EMAIL PROTECTED] wrote: Bind your outgoing data to a model and submit that to the server: In terms of Cairngorm, is it possible to cast mx:Model id=myModel to a VO in the ModelLocator? Something like this: selectedUser = new UserVO(); selectedUser = UserVO(myModel); Or what is considered best Cairngorm practice for collecting input data from a form and sending it to the server? 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] Limiting decimal places
In my application, I am doing auto calculations of dollar amounts that are based on several forumlas. The problem that I am having is that the some times the dollar amounts are coming out as something like this. 1499.9993939393939. I am trying to figure out how to limit the decimal places to just two. Anyone have an idea how I can do this? -- 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] Need drag drop example
Hi,I need an example for simple drag drop operation using only the displayObject in flex 2.0. Can anyone please share it with me, If you have already done?The examplecan be as simple as flash's startDrag() (starts dragging) stopDrag()(stops dragging).I have tried using flex 2 help, but the drag operation is not as smooth as that of flash,and dropping the dragged object is also a problem in flex.Thanks in advance, Martina Here's a new way to find what you're looking for - Yahoo! Answers Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company 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: using the repeater with image
This did the trick:mx:Image source=mypicture.jpg click=loadBigPhoto(event.currentTarget.getRepeaterItem()) / __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company 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] How to get the row index double-clicked in a datagrid (AS3)
As a noob to flex I am having some difficulty with what in most other environments seems fairly trivial. How to get the row index in a grid I double-click on. It would seem that I get a doubleclick event regardless of where in a grid I do it. For my purposes I need the rowindex for the actual row a user doubleclicks on and all other dbl clicks should be ignored. Can anyone point me to some example code? TIA! -- 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
On a high quality machine, WS can take 400ms, but on a slower machine it can take 3-10 seconds for a single call and the larger the data exchanged, the worse it gets. Not good. Aren't you exaggerating a bit here? Can you give a real world example of a SOAP XML that takes 400ms to parse/consume on a high end machine? I mean, we're talking Flash Player 9, aren't we? Cheers, Claus. -- 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: Is it possible to embed a html page in Flex application?
I just wanted to update this post, this is a link to embed an html page in Flex 2.0 (updated). And I tested it on my local machine. Works great! http://www.deitte.com/archives/2006/08/finally_updated.htm Jenn --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Here is an example how to embed an html page in Flex using an IFrame. http://coenraets.com/viewarticle.jsp?articleId=95 http://coenraets.com/viewarticle.jsp?articleId=95 -TH --- In flexcoders@yahoogroups.com, user_abcxyz user_abcxyz@ wrote: Can we embed a html page in Flex application? If so, please show me an example and/or explanation of how to do it. Thank you. -- 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] add additional data to list-based drag and drop?
I have a few lists whose items I want to drag and drop to another component. I can roll my own and code the entire drag/drop operation, but I'm lazy. I looked at the list-based drag and drop features, which look cool: mx:List id=personList dragEnabled=true / mx:List id=eventList dragEnabled=true / but when I drop items on my eventual drag and drop target, I'd like the target to know a little more, like which list it came from (or more loosely coupled, what type of data it is (person or event). Is there a way to add a format to the list-based drag and drop dragSource, like iAmAPerson or iAmAnEvent? Or is this the line I cross and have to move into the DragDropManager? -- TC -- 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] draggable rows in datagrid
Hello, I need to be able to drag rows as well as columns in a datagrid. I haven't seen anywhere that this is possible. My first question is, is there an easy way to do draggable rows? My plan, if no one else has built something like this, is to subclass the DataGrid control or DataGridBase or maybe even ListBase, using the dataGridClasses as a starting code base. It could be a fair bit of work but it seems like much of the code from DataGridColumn and DataGridDragProxy could be converted over quickly by changing width to height, x to y and vice versa and etc. My second question is, does that seem like the right path to take for draggable rows? There's not a component that already has this functionality, right? I am already partly down the subclass path because I missed a crucial piece of information about the cell editing process. I'm not sure if I need to back up and re-think this or forge ahead. Thanks for any guidance you can provide. Nate -- 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
I can vouch for that statement, from my own personal experience. If you're working with large amounts of data, the lag is quite unacceptable. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claus Wahlers Sent: Thursday, August 24, 2006 1:00 PM To: flexcoders@yahoogroups.com Subject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides On a high quality machine, WS can take 400ms, but on a slower machine it can take 3-10 seconds for a single call and the larger the data exchanged, the worse it gets. Not good. Aren't you exaggerating a bit here? Can you give a real world example of a SOAP XML that takes 400ms to parse/consume on a high end machine? I mean, we're talking Flash Player 9, aren't we? Cheers, Claus. -- 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
No I am not exaggerating. Run a Web Services call on my mothers old Dell and you can count the seconds. When AMF was first added to Flash Player 6, the primary reason was performance on slow machines. AMF was much faster then and it remains the case. XML parsing performance decays non-linearly on slower machines and with larger xml documents. Keep me honest Claus! Ted Patrick Flex Evangelist Adobe Systems Incorporated From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Claus Wahlers Sent: Thursday, August 24, 2006 10:00 AM To: flexcoders@yahoogroups.com Subject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides On a high quality machine, WS can take 400ms, but on a slower machine it can take 3-10 seconds for a single call and the larger the data exchanged, the worse it gets. Not good. Aren't you exaggerating a bit here? Can you give a real world example of a SOAP XML that takes 400ms to parse/consume on a high end machine? I mean, we're talking Flash Player 9, aren't we? Cheers, Claus. __._,_.___ -- 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
One key enterprise objection to using AMF is the lack of AMF clients for integration. Would non-flash clients for AMF and Messaging help? I can understand why it would be difficult to shell out $20K per proc for something that is solely for the Flash platform. That's almost as much as SQL licenses. Not feasible where I work. If you have to use Flex Data Services to realize the full benefits of Flex, that high cost can lead teams to shy away from the Flash Platform because the remaining benefits may be less clear. However, aside from the cost, I don't see why anyone would have a problem with putting middleware in place for a specific client. Non-Flash clients can use whatever other communications protocols you like, which are possibly already in place. Granted, you've got to test things thoroughly to make sure your existing environment is not affected by the installation of FDS (which can be a daunting task). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ted Patrick Sent: Thursday, August 24, 2006 12:50 PM To: flexcoders@yahoogroups.com Subject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides Frank, RPC IS LESS THAN 25% OF FLEX DATA SERVICES!!! Flex Data Services is so much more that RPC. This entire discussion is really FDS.RPC to WebServices. FDS contains 4 major parts: 1. Messaging - ASMessaging and JMSMessaging 2. Data Management - Data Synchronization and Distributed ArrayCollections 3. Web Tier Compiler - Compilation of AS/MXML on the server side. 4. RPC - Remoting and WebService Proxy Using Web Services directly affects user experience!!! Using Web Services directly affects user experience!!! Using Web Services directly affects user experience!!! Web Services burns up player performance that you could be using to make the user experience better. When working in Flash Player, everything affects performance. If you abuse the player in one area, you limit what you can do elsewhere before the player starts to slow down. The Flash Player (like all software) is limited in capability; if you spend that capability doing hard things (read Web Services) then you will not be able to do other things. On a high quality machine, WS can take 400ms, but on a slower machine it can take 3-10 seconds for a single call and the larger the data exchanged, the worse it gets. Not good. With Flash Player it is important to keep things light and fast. Web Services are abusive to the Flash Player runtime. Support is included for integration purposes but it was really not designed as an optimized way to exchange data. Web Services view: Flash Player Receives XML ASCII Text XML Parsing → XML Parsing!!! SOAP Parsing occurs to AS Objects → Traverse SOAP Objects Recursively!!! Objects are passed into events RemoteObject: Flash Player Receives AMF Data AMF Binary Decoding → Direct to typed objects. Objects are passed into events I am sure there are many smart people out there who will get WebServices to work well for them with Flex. It is a lot of hard work to make this work well and I have only seen one company do it really well. I do not doubt that others will make this work reliably but I question its use. It will affect performance which is why AMF was created in the first place as an optimized data exchange format for Flash Player. One of the key advantages for WebServices is the wide availability of Web Service clients for any language. With AMF we only have one client( Flash Player ) and several AMF servers. One key enterprise objection to using AMF is the lack of AMF clients for integration. Cases: - PHP form could remote to FDS - C++ application joins FDS messaging as a client - Java process remotes to FDS - Python process remotes to Data Services for Ruby (MidnightCoders) - C# remotes data with FDS as a client Part of the distributed computing revolution is the realization that anything can be both a client and a server. One of the problem areas in FDS is that only Flash and Java:JMS can participate within the FDS as clients. Would non-flash clients for AMF and Messaging help? Regards, Ted Patrick Flex Evangelist Adobe Systems Incorporated From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Franck de Bruijn Sent: Wednesday, August 23, 2006 10:33 PM To: flexcoders@yahoogroups.com Subject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides Hi Ted, We all understand your arguments 1 and 2. But in the end, and that’s already identified in this topic, it’s the user experience that counts. If it does not suffer by using web services, it’s not an issue! I’d like to hear the first story that changing webservices by AMF increased the user experience significantly and sealed a certain business proposition. For argument 3 ‘Developer Productivity’ it’s true that
[flexcoders] Re: Limiting decimal places
Use a Currency Formatter: // import the class import mx.formatters.CurrencyFormatter; // in code create and instance and set the format (also include $|,|. selection) var cashFormatter:CurrencyFormatter = new CurrencyFormatter(); cashFormatter.precision=2; // apply the format to the raw and save productPrice.text = cashFormatter.format(productObj.retailprice); -- 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: Passing data from JSP to Flex
I have posted the example before, take a look: http://groups.yahoo.com/group/flexcoders/message/42468 --- In flexcoders@yahoogroups.com, Anas Mughal [EMAIL PROTECTED] wrote: I am new to Flex. Could someone help me with the following question. We have a struts-based application that we are gradually porting over to Flex. Currently, the user authentication (login screen) is done via a JSP page. A new module of the application is wrriten in Flex. We would like to pass the logged-in user information to Flex. How should we do that? Thank you very much for your kind assistance. -- Anas Mughal - Get your email and more, right on the new Yahoo.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: changing state of all itemrenderer instances?
Look into using the dataChange event in your renderer class. Basically this event fires whenever the dataProvider is changed on your list: this should include reapplying the same dataprovider that was previously assigned. I'd apply a change event function on your check box that basically re-assigns the dataprovider for the list. Then in the itemRenderer white a function that check the state of this check box and includes excludes content based on its value. Here's an example. mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; dataChange=updateChecks() mx:Script ![CDATA[ import mx.core.Application; private function manageAttribute():void{ // interacts with the data model } public function updateChecks():void{ //interact with global data model to determine status and set checkbox thisCB.selected=selectedValue; } ]] /mx:Script mx:HBox mx:CheckBox id=thisCB horizontalCenter=0 label={data.attributename} click=manageAttribute()/ /mx:HBox /mx:Canvas You could do the same thing to hide/show an mxml based image or use actionscript to dynamically and condtionally add one -- 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: Remote object help again..
Mark you advice worked like a charm. It now sees my destinations. And thanks to you jeff, that is a handy trick. On 8/23/06, Mark Piller [EMAIL PROTECTED] wrote: Hey Jeff, This is very helpful. I didn't know about the trace(ServerConfig.xml) trick. Would it make sense to add some special logic to the compiler to validate all destinations in the code? That would need to apply to all mx:RemoteObject declarations as well as ro.destination = xxx type of assignments. Cheers, Mark --- In flexcoders@yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: I have not heard of this caching bug before, but I'll follow up and see Flex Builder is doing any caching that might cause this. It is the case that when you compile your SWF, the compiler needs to have a pointer to your services-config.xml file. It includes a subset of the destination configuration into the SWF. You can see what it has included when you enable debug logging on the client (e.g. via: mx:TraceTarget/), or you can just trace it out via: import mx.messaging.config.ServerConfig; trace(ServerConfig.xml); When I've seen this problem in the past, it was due to the fact that the compiler's configuration did not include a pointer to the correct services-config.xml. Jeff From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Mark Piller Sent: Wednesday, August 23, 2006 12:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Remote object help again.. Did you add your destination after your Flex Builder project was created? We hear about this problem quite often. It appears Flex Builder caches remoting-config.xml and does not fetch the file every time you build the project. As a result, if a destination is added after the project is created, it will not be recognized unless you do one of the following: - restart Flex Builder - open project properties window, select the 'Flex Compiler' section and click 'Apply' It would be very helpful to get a confirmation from Adobe for this bug. Thanks, Mark --- In flexcoders@yahoogroups.com mailto: flexcoders%40yahoogroups.com , Jeremy Rottman rottmanList@ wrote: I am working on a simple application that uses remote objects to pass data to and from my db. But I keep running into the same problem. In my services-config.xml file, I have setup the destination ROTEST. It looks like this destination id=ROTEST channels channel ref=my-cfamf/ /channels properties sourcebeta.cfc.ROtest/source !-- define the resolution rules and access level of the cfc being invoked -- access !-- Use the ColdFusion mappings to find CFCs, by default only CFC files under your webroot can be found. -- use-mappingsfalse/use-mappings !-- allow public and remote or just remote methods to be invoked -- method-access-levelremote/method-access-level /access property-case !-- cfc property names -- force-cfc-lowercasefalse/force-cfc-lowercase !-- Query column names -- force-query-lowercasefalse/force-query-lowercase !-- struct keys -- force-struct-lowercasefalse/force-struct-lowercase /property-case /properties /destination I wrote this simple flex application to test my connectivity. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.Fault; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; private function qryService_userSearch(lastName){ qryService.userSearch(lastName) } private function qryService_userSearch_Result(event:ResultEvent):void{ testDG.dataProvider = event.result; } private function qryService_userSearch_Fault(event:FaultEvent):void{ errorText.text = event.fault.message; } ]] /mx:Script mx:RemoteObject id=qryService destination=ROTEST result=qryService_userSearch_Result(event) endpoint=http://beta.homesmartagent.com/flex2gateway/ http://beta.homesmartagent.com/flex2gateway/ showBusyCursor=true fault=qryService_userSearch_Fault(event)/ mx:Canvas x=0 y=0 width=100% height=100% mx:Label x=10 y=10 text=Name:/ mx:TextInput id=lastName x=60 y=8/ mx:Button x=228 y=8 click=qryService_userSearch(lastName.text) label=Button/ mx:DataGrid x=10 y=38 id=testDG width=779 height=326 mx:columns mx:DataGridColumn headerText=Column 1 dataField=fld_agentFullName/ mx:DataGridColumn headerText=Column 2 dataField=fld_agentId/ mx:DataGridColumn headerText=Column 3 dataField=fld_agentEmail/ /mx:columns /mx:DataGrid mx:TextArea x=10 y=372 id=errorText width=523 height=221/ /mx:Canvas /mx:Application Everytime I test the application, I get this error. faultCode:Server.Processing
Re: [flexcoders] Don't bindings work both ways??
Ahh, I mistook your question as being from someone who was just getting started, like myself. Maybe with Cairngorn, RemoteObject or FDS you can do more what you are looking for. It looks like your server language will make the most difference on what is available. From here I gotta leave you to the experts.On Aug 24, 2006, at 12:45 PM, Mike Anderson wrote: Thanks for that informative post - I guess I shouldn't post such (not dumb) but simplistic questions - I know better than that :) __._,_.___ -- 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] Flex DataGird CFC Query Call Help
Hello, I'm trying to populate a datagrid with data from a web service. I do not know what I'm doing wrong please help. Everything compiles but nothing is populated in the grid. Here's my CFC Code cfcomponent cffunction name=getData access=remote returntype=query cfquery name=ELogs datasource=Error SELECT * from ErrorLog /cfquery cfreturn ELogs /cffunction /cfcomponent Here's my Flex Code ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; import mx.collections.ArrayCollection; [Bindable] private var myData:ArrayCollection; private function resultHandler (event:ResultEvent):void{ myData = event.result as ArrayCollection } ]] /mx:Script mx:WebService id=myService wsdl=http://www.hawaiihotels.com/WSTest/Simple1.cfc?wsdl; load=myService.getData(); result=resultHandler(event)/ mx:DataGrid dataProvider={myData}/ /mx:Application Thanks Davide -- 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] Don't bindings work both ways??
Hi,I don't know if this helps or not but,I use the change event in the textinput to update the model.Then when you want to update to the server the model is current.mx:TextInput id=userName text={model.userName} change={model.userName = userName.text}/then you can submit the model with userName VO to the server with out assigning anything.Peace, Mike On 8/24/06, Mike Anderson [EMAIL PROTECTED] wrote: Thanks for that informative post - I guess I shouldn't post such (not dumb) but simplistic questions - I know better than that :) Since Flex 2.0 has added such intuitive new features - one of those being the ability to directly find a Value within a Grid or List control, without having to Iterate through the values inside a Loop, that DataBinding may have had some enhancements to it as well. I think it would be neat, to have an optional type of Binding scenario - in which the data flows both ways automatically... In my case, I will just take the most typical path, and create 2 sets of Binding Commands - one that assigns the ValueObject properties to all my controls, and one that assigns all my control properties to the ValueObject. That should take care of any changes that are made in either direction... I was just expecting too much, from the Binding features of Flex - and just have to continue to do it the traditional way... Thanks again for all your help - Mike From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Nate HardtSent: Thursday, August 24, 2006 10:49 AMTo: [EMAIL PROTECTED]ups.comSubject: Re: [flexcoders] Don't bindings work both ways?? Bind your outgoing data to a model and submit that to the server: mx:Model id=infoModel info text2{text1.text}/text1 text2{text2.text}/text2 info /mx:Model Send it to the server via an HTTPService: mx:HTTPService id=saveAny method=POST url="" href="http://yourserver/process.a" target="_blank" >http://yourserver/process.a useProxy=false showBusyCursor=true /mx:HTTPService Send like this: saveAny.send(infoModel); Bind the incoming like this: mx:Form width=50% height=100% mx:FormHeading label=Standard Info/ mx:FormItem label=Text 1 mx:TextArea id=text1 text={generalInfo.lastResult.response.info.text1}/ /mx:FormItem mx:FormItem label=Text 2 mx:TextArea id=text2 text={generalInfo.lastResult.response.info.text2}/ /mx:FormItem mx:Form To a service like this: mx:HTTPService id=generalInfo url="" href="http://yourserver/get" target="_blank" >http://yourserver/get useProxy=false /mx:HTTPService I use php, here's how I return the data. I put everything in an associate array then output it with a function: $row['text1'] = some data; $row['text2'] = some more data; print ?xml version=\1.0\ ?\n; print response; print namedAssocToXml('info', $out); print /response; function namedAssocToXml($rowname, $attributes) { $output = $rowname\n; foreach ($attributes as $name = $value) { if (is_array($value)) { if (is_numeric($name)) { $output .= namedAssocToXml('row', $value); } else { $output .= namedAssocToXml($name, $value); } } else { $value = str_replace(, lt;, $value); $value = str_replace(, gt;, $value); if (is_numeric($name)) { $output .= item . $value . /item\n; } else { $output .= $name . $value . /$name\n; } } } $output .= /$rowname\n; return $output; } I think using HTTPService is the older model for doing things. With FDS you can do a lot of cooler things, but hopefully that will get you started. Nate On Aug 24, 2006, at 11:09 AM, Mike Anderson wrote: I will jump back into the Docs right away, but in the meantime, is there a faster way to do this? Or must I do it the traditional way, by systematically assigning the values to the ValueObject, just prior to sending the Variables over to the server? i.e. myValueObjectVO.propertyOne = textFieldOne.text; myValueObjectVO.propertyTwo = textFieldTwo.text; myValueObjectVO.propertyThree = textFieldThree.text; Thanks in advance! Mike From: [EMAIL PROTECTED]ups.com [ mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Thursday, August 24, 2006 12:32 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Don't bindings work both ways?? No, binding is only one-way, you'll need to set up the 2-way yourself. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com ] On Behalf Of Mike Anderson Sent: Wednesday, August 23, 2006 9:56 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Don't bindings work both ways?? Hello All,I have a Form with several fields - and those fields are all bound to aValueObject (using the Curly Braces method). After doing my database calls, etc., my Form populates beautifully withall the values. However, if I edit any of those fields on the Form,
[flexcoders] SecureAMF: SSL Handshake Prob
Hi all, Anyone run into this when using AMF over SSL? ... 08/24 13:47:37 DEBUG Optimizing... 960ms 08/24 13:47:37 DEBUG Total time: 11864ms 08/24 13:47:38 DEBUG SWF Encoding... 420ms Aug 24, 2006 1:47:39 PM EDT Warning Security BEA-090476 Invalid/unknown SSL header was received from peer localhost - 127.0.0.1 during SSL handshake. ... Running locally with self-signed cert for testing ...everything else seems to be fine. The movie loads, just hangs on first remote call. Cheers, Stace -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. -- 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
shouldn't we qualify some of this with 'depends on what data you are moving'?? I'm finding that using a REST call to return XML can be WAY faster then using RemoteObject for a reporting tool. In this case I could care less about the magically uber kewl mapping of AS -- CFC/POJOs, eh? DKOn 8/24/06, Ted Patrick [EMAIL PROTECTED] wrote: Frank,RPC IS LESS THAN 25% OF FLEX DATA SERVICES!!!Flex Data Services is so much more that RPC. This entire discussion is really FDS.RPC to WebServices.FDS contains 4 major parts:1. Messaging - ASMessaging and JMSMessaging 2. Data Management - Data Synchronization and Distributed ArrayCollections3. Web Tier Compiler - Compilation of AS/MXML on the server side.4. RPC - Remoting and WebService ProxyUsing Web Services directly affects user experience!!! Using Web Services directly affects user experience!!!Using Web Services directly affects user experience!!!Web Services burns up player performance that you could be using to make the user experience better. When working in Flash Player, everything affects performance. If you abuse the player in one area, you limit what you can do elsewhere before the player starts to slow down. The Flash Player (like all software) is limited in capability; if you spend that capability doing hard things (read Web Services) then you will not be able to do other things. On a high quality machine, WS can take 400ms, but on a slower machine it can take 3-10 seconds for a single call and the larger the data exchanged, the worse it gets. Not good. With Flash Player it is important to keep things light and fast. Web Services are abusive to the Flash Player runtime. Support is included for integration purposes but it was really not designed as an optimized way to exchange data. Web Services view:Flash Player Receives XML ASCII TextXML Parsing → XML Parsing!!!SOAP Parsing occurs to AS Objects → Traverse SOAP Objects Recursively!!!Objects are passed into eventsRemoteObject: Flash Player Receives AMF DataAMF Binary Decoding → Direct to typed objects.Objects are passed into eventsI am sure there are many smart people out there who will get WebServices to work well for them with Flex. It is a lot of hard work to make this work well and I have only seen one company do it really well. I do not doubt that others will make this work reliably but I question its use. It will affect performance which is why AMF was created in the first place as an optimized data exchange format for Flash Player. One of the key advantages for WebServices is the wide availability of Web Service clients for any language. With AMF we only have one client( Flash Player ) and several AMF servers. One key enterprise objection to using AMF is the lack of AMFclients for integration. Cases:- PHP form could remote to FDS- C++ application joins FDS messaging as a client- Java process remotes to FDS- Python process remotes to Data Services for Ruby (MidnightCoders)- C# remotes data with FDS as a client Part of the distributed computing revolution is the realization that anything can be both a client and a server. One of the problem areas in FDS is that only Flash and Java:JMS can participate within the FDS as clients. Would non-flash clients for AMF and Messaging help?Regards,Ted PatrickFlex EvangelistAdobe Systems IncorporatedFrom: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Franck de BruijnSent: Wednesday, August 23, 2006 10:33 PMTo: flexcoders@yahoogroups.comSubject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which providesHi Ted,We all understand your arguments 1 and 2. But in the end, and that's already identified in this topic, it's the user experience that counts. If it does not suffer by using web services, it's not an issue! I'd like to hear the first story that changing webservices by AMF increased the user experience significantly and sealed a certain business proposition. For argument 3 'Developer Productivity' it's true that developers need to program more lines of code to obtain the same result (having your webservice result as an ActionScript object), which is, I admit, error prone. But in the total view of the costs of a development project ... it will not make much of a difference. The actual additional lines of code I'm talking about, however, are very easy to generate from a model if you wish. Again, FDS is cool, really true and it does have its place. But for many applications FDS (including the extra features messaging and data management) is neither an option nor necessary.Cheers,Franck --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:
Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
I am sure there are many smart people out there who will get WebServices to work well for them with Flex. It is a lot of hard work to make this work well and I have only seen one company do it really well. I do not doubt that others will make this work reliably but I question its use. It will affect performance which is why AMF was created in the first place as an optimized data exchange format for Flash Player. I got around this problem by abstraction and preemptively loading data that was likely to be loaded. I made up template-like objects that the client loaded that describe what makes a page of data, which included all of the possible design elements and whatnot. That way, when you actually go to load the data, the size of the data going to and from the server was minimal (and compressed). And I preloaded large blocks of commonly used data and cached them on the client side, keeping it updated by sending an MD5 hash back to the server-side to be compared to the current data set on a regular basis or whenever that data was accessed. For a dial-up user that might be a problem, but for a business app it didn't even cause a noticable bump in their bandwidth usage. You just have to plan appropriately and do thorough use cases, so that you can develop a set of rules that will tell you what data is likely to be needed next. All the most common usage paths through the app were fast and responsive, and only the really heavy stuff, like real time reports that go back over tons of db records and stuff, took any noticable time to load. The end result was 100% compatible with either an AJAX front end or a Flash front end, the back end didn't know or care which it was talking to. With appropriate planning and a good architecture, which transport method you use is almost irrelevant as long as it is flexible and compatible. ;-) ryanm -- 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] Don't bindings work both ways??
I think using HTTPService is the older model for doing things. No, you use it when you are not using FDS or do not have access to it or the money. ;-)Don't feel bad, you are not alone and everybody is not an enterprise either. See the ongoing 50 thread post on this in the last 3 days.Peace, MikeOn 8/24/06, Michael Schmalle [EMAIL PROTECTED] wrote:Hi,I don't know if this helps or not but,I use the change event in the textinput to update the model. Then when you want to update to the server the model is current.mx:TextInput id=userName text={model.userName} change={model.userName = userName.text}/then you can submit the model with userName VO to the server with out assigning anything.Peace, Mike On 8/24/06, Mike Anderson [EMAIL PROTECTED] wrote: Thanks for that informative post - I guess I shouldn't post such (not dumb) but simplistic questions - I know better than that :) Since Flex 2.0 has added such intuitive new features - one of those being the ability to directly find a Value within a Grid or List control, without having to Iterate through the values inside a Loop, that DataBinding may have had some enhancements to it as well. I think it would be neat, to have an optional type of Binding scenario - in which the data flows both ways automatically... In my case, I will just take the most typical path, and create 2 sets of Binding Commands - one that assigns the ValueObject properties to all my controls, and one that assigns all my control properties to the ValueObject. That should take care of any changes that are made in either direction... I was just expecting too much, from the Binding features of Flex - and just have to continue to do it the traditional way... Thanks again for all your help - Mike From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@ yahoogroups.com] On Behalf Of Nate HardtSent: Thursday, August 24, 2006 10:49 AMTo: [EMAIL PROTECTED]ups.comSubject: Re: [flexcoders] Don't bindings work both ways?? Bind your outgoing data to a model and submit that to the server: mx:Model id=infoModel info text2{text1.text}/text1 text2{text2.text}/text2 info /mx:Model Send it to the server via an HTTPService: mx:HTTPService id=saveAny method=POST url="" href="http://yourserver/process.a" target="_blank" >http://yourserver/process.a useProxy=false showBusyCursor=true /mx:HTTPService Send like this: saveAny.send(infoModel); Bind the incoming like this: mx:Form width=50% height=100% mx:FormHeading label=Standard Info/ mx:FormItem label=Text 1 mx:TextArea id=text1 text={generalInfo.lastResult.response.info.text1}/ /mx:FormItem mx:FormItem label=Text 2 mx:TextArea id=text2 text={generalInfo.lastResult.response.info.text2}/ /mx:FormItem mx:Form To a service like this: mx:HTTPService id=generalInfo url="" href="http://yourserver/get" target="_blank" >http://yourserver/get useProxy=false /mx:HTTPService I use php, here's how I return the data. I put everything in an associate array then output it with a function: $row['text1'] = some data; $row['text2'] = some more data; print ?xml version=\1.0\ ?\n; print response; print namedAssocToXml('info', $out); print /response; function namedAssocToXml($rowname, $attributes) { $output = $rowname\n; foreach ($attributes as $name = $value) { if (is_array($value)) { if (is_numeric($name)) { $output .= namedAssocToXml('row', $value); } else { $output .= namedAssocToXml($name, $value); } } else { $value = str_replace(, lt;, $value); $value = str_replace(, gt;, $value); if (is_numeric($name)) { $output .= item . $value . /item\n; } else { $output .= $name . $value . /$name\n; } } } $output .= /$rowname\n; return $output; } I think using HTTPService is the older model for doing things. With FDS you can do a lot of cooler things, but hopefully that will get you started. Nate On Aug 24, 2006, at 11:09 AM, Mike Anderson wrote: I will jump back into the Docs right away, but in the meantime, is there a faster way to do this? Or must I do it the traditional way, by systematically assigning the values to the ValueObject, just prior to sending the Variables over to the server? i.e. myValueObjectVO.propertyOne = textFieldOne.text; myValueObjectVO.propertyTwo = textFieldTwo.text; myValueObjectVO.propertyThree = textFieldThree.text; Thanks in advance! Mike From: [EMAIL PROTECTED]ups.com [ mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Thursday, August 24, 2006 12:32 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Don't bindings work both ways?? No, binding is only one-way, you'll need to set up the 2-way yourself. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com ] On Behalf Of Mike Anderson Sent: Wednesday, August 23, 2006 9:56 PM To:
[flexcoders] How to render HTML text in data grid column?
Hi all, Anyone know how i could display HTML text in a datagrid column? Haven't seen any examples or tutorials on the subject. Thanks, David -- 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: [Junk E-Mail - LOW] [flexcoders] Flex DataGird CFC Query Call Help
In order to return a ColdFusion query object as an Array Collection, you have to be using a remote object (flexgateway in 7.0.2), not a web service. If you need to use web services, you have to turn that query into an array of structures before sending it back. Shan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David SmithersSent: Thursday, August 24, 2006 12:22 PMTo: flexcoders@yahoogroups.comSubject: [Junk E-Mail - LOW] [flexcoders] Flex DataGird CFC Query Call Help Hello,I'm trying to populate a datagrid with data from a web service. I do not know what I'm doing wrong please help. Everything compiles but nothing is populated in the grid.Here's my CFC Codecfcomponentcffunction name="getData" access="remote" returntype="query"cfquery name="ELogs" datasource="Error"SELECT * from ErrorLog/cfquerycfreturn ELogs/cffunction/cfcomponentHere's my Flex Code?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"mx:Script![CDATA[import mx.rpc.events.ResultEvent;import mx.collections.ArrayCollection;[Bindable]private var myData:ArrayCollection;private function resultHandler(event:ResultEvent):void{myData = event.result as ArrayCollection}]]/mx:Scriptmx:WebService id="myService" wsdl="http://www.hawaiihotels.com/WSTest/Simple1.cfc?wsdl"load="myService.getData();"result="resultHandler(event)"/mx:DataGrid dataProvider="{myData}"//mx:ApplicationThanks Davide --No virus found in this incoming message.Checked by AVG Free Edition.Version: 7.1.405 / Virus Database: 268.11.5/426 - Release Date: 8/23/2006 __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company 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. __,_._,___ -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.5/426 - Release Date: 8/23/2006
Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
I have to agree with Ted regarding productivity.Of course I may just be revealing that I am not as smart as the rest of you, but when I was considering various means of connecting to my java server during the transition to Flex2, I explored Axis and Axis2 for web services. Figuring out how to use them was *no joke*. I am sure if I had dedicated the time to it I could have gotten up and running. But, honestly, I gave up after several days of study.The Axis umailing list was fairly useless for beginners, there were lots of people having problems with Axis2 and the documentation was almost unbearable. Now if you are already an expert then none of this applies to you. But the idea that from flash that you can just call your server side code just by declaring the classes you are working with in a configuration file is magic. It is so easy. Of course the typing issues on web services sound like a bear too and there are none with remoting, but I cant really talk about that because I never got that far with web services. FDS and Flex2 are far far easier to work with. My only problem with FDS is pricing. Remoting used to cost $1000 or so per server, or it was free if you used an open source solution. Now it costs $20,000 per server after you need more than one server. I may actually have to switch back to an AMF0 version of remoting by the time my first server is overwhelmed because $20k is insane. I am using amazon S3 and for 20k worth of bandwidth and storage I could support millions of users over a year. but 20k in FDS software probably only supports 100k users. So the economics of FDS are insane. They are probably driven by the desire not to screw the Flex 1.5 people who paid a lot of money for their servers. Nevertheless, for remoting only apps FDS pricing is the only reason not to use it. But technically if you dont have to learn web services FDS will save you a lot of time. Regards,HankOn 8/23/06, Ted Patrick [EMAIL PROTECTED] wrote: AMF is faster in 3 fundamental ways: Bandwidth Size – Smaller, lighter, faster!!! Parsing Speed – Less work on both client and server!!! Developer Productivity – Less work for developers!!! Web Services are dependent on XML Parsing on both the client and server side. Although it's a good story, XML parsers are not very efficient as parsing documents is an interpreted process. The Flash Player XML parser will always be dramatically slower than AMF parsing, binary formats are notoriously faster in this regard. XML parsing additionally decays rapidly as the file size increases. Flash Player XML parsing time increase non-linearly with larger XML documents. With AMF parsing times are linear with data size. The XML decay can be attributed to the number of inner objects that need to be created during a parsing run. AMF objects are 1:1 with the data received where XML data is 1:N per Elements/Attribute. Comparing XML to AMF is an unfair race, AMF wins every time. When you add in the overhead of WS SOAP parsing atop the base XML parser speed you begin to see performance issues. With SOAP, you interpret an XML document back into typed objects depending on the SOAP specifics used. Sure 350ms is ok once or twice, but try doing 200 transactions in this format and you will see performance issues arise. Using Web Services you are forcing the Flash Player to do allot of unneeded work. The goal is to build richer applications, not burn up player performance in crud operations. Additionally non-proxied Web Service use suffers with Flash Player because of the browser variation in the plug-in APIS. You cannot get the 500 Errors response content in IE and thus the SOAP fault standard breaks down. In SOAP there are important messages that arrive with 500 Errors and the inability of the Flash Player to receive these is a problem. Unfortunately there is no seamless way to get 500 Errors into the Flash Player other then rewriting an HTTP Client in the Socket class. This effort would also require a new SOAP library within Flex and socket use on low ports requires a more complex crossdomain.xml configuration. Even then you still suffer the same performance issues. Performance aside, the productivity discussion is much more important. AMF3 and Flex Data Services are wildly productive. Once you compile your Java Class and configure a destination in FDS (1 XML Element), you are done. All typing is handled, All methods are ready to run with any number of client applications. It is the easiest way to create a server side API that I know of. Actually most cases, implementing FDS will removes $20,000 of developer time wasted on implementing other data exchange for an application. FDS value is easy to see when viewed through this productivity ROI metric. If you add CF integration into FDS, you enjoy an even more productive jump. We spend so much time talking about performance but we often waste so much developer time doing mundane data
RE: [flexcoders] specifying a percentage width in script?
Hello Doug, Try space.percentWidth=100% /yaniv From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doug Arthur Sent: Thursday, August 24, 2006 7:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] specifying a percentage width in script? How can I specify spacer.width = 100%??? It throws an error because 100% is not an int. Thanks! __._,_.___ -- 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
No I am not exaggerating. Run a Web Services call on my mothers old Dell and you can count the seconds. When AMF was first added to Flash Player 6, the primary reason was performance on slow machines. AMF was much faster then and it remains the case. XML parsing performance decays non-linearly on slower machines and with larger xml documents. I fully understand that AMF is faster than XML. I also understand that FDS offers us way more than just AMF. I also understand that FDS in general, and AMF in particular makes things much easier for developers. I just don't want to accept that XML is as slow as you make it appear to be ;) Keep me honest Claus! I try ;) Cheers, Claus. -- 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: How to render HTML text in data grid column?
I would create an ItemRenderer and use either a Label or a Text tag, both have an htmlText property. No all the html tags are available tough. --- In flexcoders@yahoogroups.com, envidobi [EMAIL PROTECTED] wrote: Hi all, Anyone know how i could display HTML text in a datagrid column? Haven't seen any examples or tutorials on the subject. Thanks, David -- 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: specifying a percentage width in script?
Set the percentWidth or percentHeight property instead. Steve --- In flexcoders@yahoogroups.com, Doug Arthur [EMAIL PROTECTED] wrote: How can I specify spacer.width = 100%??? It throws an error because 100% is not an int. 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] specifying a percentage width in script?
Hi,UsemyComponent.percentWidth = 100;Peace, MikeOn 8/24/06, Doug Arthur [EMAIL PROTECTED] wrote: How can I specify spacer.width = 100%??? It throws an error because 100% is not an int. Thanks! -- What goes up, does come down. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company 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] specifying a percentage width in script?
I think you may have to determine the width of the outer container and calculate the percentage (in pixels) the manual way.Thanks,BrianOn 8/24/06, Doug Arthur [EMAIL PROTECTED] wrote: How can I specify spacer.width = 100%??? It throws an error because 100% is not an int. Thanks! -- Brian Dunphy __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company 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: specifying a percentage width in script?
In ActionScript there is a property available that is not available in MXML, and it is. [drum roll] percentWidth !!! (and of course percentHeight) In some of the betas this was also available in MXML. --- In flexcoders@yahoogroups.com, Doug Arthur [EMAIL PROTECTED] wrote: How can I specify spacer.width = 100%??? It throws an error because 100% is not an int. 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] specifying a percentage width in script?
I had this problem too, you'll be mad about the simple answer. =)percentWidthLOL.Enjoy!-Tom2On 8/24/06, Brian Dunphy [EMAIL PROTECTED] wrote: I think you may have to determine the width of the outer container and calculate the percentage (in pixels) the manual way.Thanks,Brian On 8/24/06, Doug Arthur [EMAIL PROTECTED] wrote: How can I specify spacer.width = 100%??? It throws an error because 100% is not an int. Thanks! -- Brian Dunphy __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
Claus, The specific case here is using WebServices which is additive to using just XML. Ted From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Claus Wahlers Sent: Thursday, August 24, 2006 11:33 AM To: flexcoders@yahoogroups.com Subject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides No I am not exaggerating. Run a Web Services call on my mothers old Dell and you can count the seconds. When AMF was first added to Flash Player 6, the primary reason was performance on slow machines. AMF was much faster then and it remains the case. XML parsing performance decays non-linearly on slower machines and with larger xml documents. I fully understand that AMF is faster than XML. I also understand that FDS offers us way more than just AMF. I also understand that FDS in general, and AMF in particular makes things much easier for developers. I just don't want to accept that XML is as slow as you make it appear to be ;) Keep me honest Claus! I try ;) Cheers, Claus. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company 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] Items Invisible in ComboBox
I have a very standard combobox control: mx:ComboBox id=cbStatus dataProvider={statusesWithAll} labelField=sStatus change=filterChange()/mx:ComboBox When I click on it and it opens, some items are invisible. The space for them is there, but the text is missing. If I select an invisible item, it displays properly in the closed combobox and works as designed with the app. It seems to randomly make items appear and disappear with each open and close of the combobox. Sometimes the selected item will reappear with the highlight on it or sometimes just the empty row will be highlighted. Any ideas? Thanks, Steve H. -- 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE - FDS Express is limited to one 1 physical CPU (multi-core supported) - FDS Express cannot be clustered for failover and redundancy. All higher level FDS Licenses address the redundancy and failover aspects for departmental use (100 concurrent users) and enterprise (unlimited users). The blanket statement that FDS costs $20,000 is dead wrong. For a large majority of projects it is free, free, free. Ted Patrick Flex Evangelist Adobe Systems Incorporated From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of hank williams Sent: Thursday, August 24, 2006 11:19 AM To: flexcoders@yahoogroups.com Subject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides I have to agree with Ted regarding productivity. Of course I may just be revealing that I am not as smart as the rest of you, but when I was considering various means of connecting to my java server during the transition to Flex2, I explored Axis and Axis2 for web services. Figuring out how to use them was *no joke*. I am sure if I had dedicated the time to it I could have gotten up and running. But, honestly, I gave up after several days of study. The Axis umailing list was fairly useless for beginners, there were lots of people having problems with Axis2 and the documentation was almost unbearable. Now if you are already an expert then none of this applies to you. But the idea that from flash that you can just call your server side code just by declaring the classes you are working with in a configuration file is magic. It is so easy. Of course the typing issues on web services sound like a bear too and there are none with remoting, but I cant really talk about that because I never got that far with web services. FDS and Flex2 are far far easier to work with. My only problem with FDS is pricing. Remoting used to cost $1000 or so per server, or it was free if you used an open source solution. Now it costs $20,000 per server after you need more than one server. I may actually have to switch back to an AMF0 version of remoting by the time my first server is overwhelmed because $20k is insane. I am using amazon S3 and for 20k worth of bandwidth and storage I could support millions of users over a year. but 20k in FDS software probably only supports 100k users. So the economics of FDS are insane. They are probably driven by the desire not to screw the Flex 1.5 people who paid a lot of money for their servers. Nevertheless, for remoting only apps FDS pricing is the only reason not to use it. But technically if you dont have to learn web services FDS will save you a lot of time. Regards, Hank On 8/23/06, Ted Patrick [EMAIL PROTECTED]com wrote: AMF is faster in 3 fundamental ways: Bandwidth Size Smaller, lighter, faster!!! Parsing Speed Less work on both client and server!!! Developer Productivity Less work for developers!!! Web Services are dependent on XML Parsing on both the client and server side. Although it's a good story, XML parsers are not very efficient as parsing documents is an interpreted process. The Flash Player XML parser will always be dramatically slower than AMF parsing, binary formats are notoriously faster in this regard. XML parsing additionally decays rapidly as the file size increases. Flash Player XML parsing time increase non-linearly with larger XML documents. With AMF parsing times are linear with data size. The XML decay can be attributed to the number of inner objects that need to be created during a parsing run. AMF objects are 1:1 with the data received where XML data is 1:N per Elements/Attribute. Comparing XML to AMF is an unfair race, AMF wins every time. When you add in the overhead of WS SOAP parsing atop the base XML parser speed you begin to see performance issues. With SOAP, you interpret an XML document back into typed objects depending on the SOAP specifics used. Sure 350ms is ok once or twice, but try doing 200 transactions in this format and you will see performance issues arise. Using Web Services you are forcing the Flash Player to do allot of unneeded work. The goal is to build richer applications, not burn up player performance in crud operations. Additionally non-proxied Web Service use suffers with Flash Player because of the browser variation in the plug-in APIS. You cannot get the 500 Errors response content in IE and thus the SOAP fault standard breaks down. In SOAP there are important messages that arrive with 500 Errors and
RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
Ted: How many concurrent users can FDS Expresssupport? On the departmental version, if the 101st concurrent user tries to connect is there an error message or busy message or do they just wait a little longer to get the data? Thanks, Jack From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ted PatrickSent: Thursday, August 24, 2006 1:57 PMTo: flexcoders@yahoogroups.comSubject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE - FDS Express is limited to one 1 physical CPU (multi-core supported) - FDS Express cannot be clustered for failover and redundancy. All higher level FDS Licenses address the redundancy and failover aspects for departmental use (100 concurrent users) and enterprise (unlimited users). The blanket statement that FDS costs $20,000 is dead wrong. For a large majority of projects it is free, free, free. Ted Patrick Flex Evangelist Adobe Systems Incorporated From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of hank williamsSent: Thursday, August 24, 2006 11:19 AMTo: [EMAIL PROTECTED]ups.comSubject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides I have to agree with Ted regarding productivity.Of course I may just be revealing that I am not as smart as the rest of you, but when I was considering various means of connecting to my java server during the transition to Flex2, I explored Axis and Axis2 for web services. Figuring out how to use them was *no joke*. I am sure if I had dedicated the time to it I could have gotten up and running. But, honestly, I gave up after several days of study.The Axis umailing list was fairly useless for beginners, there were lots of people having problems with Axis2 and the documentation was almost unbearable. Now if you are already an expert then none of this applies to you. But the idea that from flash that you can just call your server side code just by declaring the classes you are working with in a configuration file is magic. It is so easy. Of course the typing issues on web services sound like a bear too and there are none with remoting, but I cant really talk about that because I never got that far with web services. FDS and Flex2 are far far easier to work with. My only problem with FDS is pricing. Remoting used to cost $1000 or so per server, or it was free if you used an open source solution. Now it costs $20,000 per server after you need more than one server. I may actually have to switch back to an AMF0 version of remoting by the time my first server is overwhelmed because $20k is insane. I am using amazon S3 and for 20k worth of bandwidth and storage I could support millions of users over a year. but 20k in FDS software probably only supports 100k users. So the economics of FDS are insane. They are probably driven by the desire not to screw the Flex 1.5 people who paid a lot of money for their servers. Nevertheless, for remoting only apps FDS pricing is the only reason not to use it. But technically if you dont have to learn web services FDS will save you a lot of time. Regards,Hank On 8/23/06, Ted Patrick [EMAIL PROTECTED]com wrote: AMF is faster in 3 fundamental ways: Bandwidth Size Smaller, lighter, faster!!! Parsing Speed Less work on both client and server!!! Developer Productivity Less work for developers!!! Web Services are dependent on XML Parsing on both the client and server side. Although it's a good story, XML parsers are not very efficient as parsing documents is an interpreted process. The Flash Player XML parser will always be dramatically slower than AMF parsing, binary formats are notoriously faster in this regard. XML parsing additionally decays rapidly as the file size increases. Flash Player XML parsing time increase non-linearly with larger XML documents. With AMF parsing times are linear with data size. The XML decay can be attributed to the number of inner objects that need to be created during a parsing run. AMF objects are 1:1 with the data received where XML data is 1:N per Elements/Attribute. Comparing XML to AMF is an unfair race, AMF wins every time. When you add in the overhead of WS SOAP parsing atop the base XML parser speed you begin to see performance issues. With SOAP, you interpret an XML document back into typed objects depending on the SOAP specifics used. Sure 350ms is ok once or twice, but try doing 200 transactions in this format and you will see performance
RE: [flexcoders] Re: Flex 2 Final : Error #1009, in RadioButton/get labelPlacement()
Hi Jason, Yes, I found one workaround to this issue. Use the repeatEnd event to execute a function that will assign the groupName to each one of your RadioButton. Use also this function to assign the selected button (because the bindings are a source of the problem). Benoit Hediard -Message d'origine- De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de Jason Envoyé : jeudi 24 août 2006 18:11 À : flexcoders@yahoogroups.com Objet : [flexcoders] Re: Flex 2 Final : Error #1009, in RadioButton/get labelPlacement() Has anyone found a workaround to the bug with RadioButton groups and repeater components described here? I have having this same problem. --jason --- In flexcoders@yahoogroups.com, Benoit Hediard [EMAIL PROTECTED] wrote: I've investigated this issue a little bit more. It looks like there some problems with RadioButton when they are used in groups. First display is generally correct, but when the display list is refreshed, it generates some bugs. In our case, the RadioButton group is used in a popup, and even after the popup is deleted, some popup display routines are still executed. When debugging is on, the error is generated in RadioButton.as, at line 172, because the property group is null : if (_labelPlacement != ) { value = _labelPlacement; } else if (_group group.labelPlacement != ) { // L.172 value = group.labelPlacement; } Workaround : always define labelPlacement in all your RadioButton (so that the group labelPlacement is never read). I've also encountered a similar error in another case : RadioButton groups used inside a Repeater, with the groupName defined during the repeater execution (groupName={theRepeater.currentIndex}). First execution is correct, but the next ones generate an error. When debugging is on, the error is generated in the RadioButton.as, at line 454, for the same reason (property group is null) : var g:RadioButtonGroup = group: g.addInstance(this); // L.454 I haven't found a workaround for this one. It's too bad because all of this was working in previous beta but not on the final release ;). Benoit Hediard _ De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de Benoit Hediard Envoyé : lundi 3 juillet 2006 12:36 À : flexcoders@yahoogroups.com Objet : [flexcoders] Flex 2 Final : Error #1009, in RadioButton/get labelPlacement() Error #1009: Il est impossible d'accéder à la propriété ou la méthode d'une référence d'objet nul. (in english, something like it is not possible to access the property or the method of the null object reference) at mx.controls::RadioButton/get labelPlacement() at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::layoutConten ts() at mx.controls::Button/mx.controls:Button::updateDisplayList() ... In Flex2 final, I'm getting this error regularly... Not tried yet to reproduce it on a simple regular case, but it looks like pretty random. I don't use the labelPlacement property in our app. I've never encountered this error in previous beta, only since the FP9 / Flex2 Final. Looks like a very annoying low level framework error, related to the layout of RadioButtons. Anyone else facing this issue? And found a workaround? Benoit Hediard -- 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] Launch Failed error
Hi all, When I have two application files in a project, I cant get Flex to debug/launch the new one. The error I get is Launch Failed, File not found. It looks like Flex is not creating the HTML file for the swf. Any tips?? -Ken __._,_.___ -- 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
FDS NOT FREE AFTER THE FIRST SERVER FDS NOT FREE AFTER THE FIRST SERVERFDS NOT FREE AFTER THE FIRST SERVER FDS NOT FREE AFTER THE FIRST SERVERFDS NOT FREE AFTER THE FIRST SERVER FDS NOT FREE AFTER THE FIRST SERVER FDS NOT FREE AFTER THE FIRST SERVER FDS NOT FREE AFTER THE FIRST SERVERFDS NOT FREE AFTER THE FIRST SERVER FDS NOT FREE AFTER THE FIRST SERVER FDS NOT FREE AFTER THE FIRST SERVER FDS NOT FREE AFTER THE FIRST SERVERlol.But seriously Ted, you didnt read my post very carefully. What I said was this:Now it costs $20,000 per server after you need more than one server. This is significant because it means that you are locked in and if you do well, at some point you will have to pay the piper significantly in order to scale. That second server cliff is a doosey!Regards,Hank On 8/24/06, Ted Patrick [EMAIL PROTECTED] wrote: FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE - FDS Express is limited to one 1 physical CPU (multi-core supported) - FDS Express cannot be clustered for failover and redundancy. All higher level FDS Licenses address the redundancy and failover aspects for departmental use (100 concurrent users) and enterprise (unlimited users). The blanket statement that FDS costs $20,000 is dead wrong. For a large majority of projects it is free, free, free. Ted Patrick Flex Evangelist Adobe Systems Incorporated From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of hank williams Sent: Thursday, August 24, 2006 11:19 AM To: flexcoders@yahoogroups.com Subject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides I have to agree with Ted regarding productivity. Of course I may just be revealing that I am not as smart as the rest of you, but when I was considering various means of connecting to my java server during the transition to Flex2, I explored Axis and Axis2 for web services. Figuring out how to use them was *no joke*. I am sure if I had dedicated the time to it I could have gotten up and running. But, honestly, I gave up after several days of study. The Axis umailing list was fairly useless for beginners, there were lots of people having problems with Axis2 and the documentation was almost unbearable. Now if you are already an expert then none of this applies to you. But the idea that from flash that you can just call your server side code just by declaring the classes you are working with in a configuration file is magic. It is so easy. Of course the typing issues on web services sound like a bear too and there are none with remoting, but I cant really talk about that because I never got that far with web services. FDS and Flex2 are far far easier to work with. My only problem with FDS is pricing. Remoting used to cost $1000 or so per server, or it was free if you used an open source solution. Now it costs $20,000 per server after you need more than one server. I may actually have to switch back to an AMF0 version of remoting by the time my first server is overwhelmed because $20k is insane. I am using amazon S3 and for 20k worth of bandwidth and storage I could support millions of users over a year. but 20k in FDS software probably only supports 100k users. So the economics of FDS are insane. They are probably driven by the desire not to screw the Flex 1.5 people who paid a lot of money for their servers. Nevertheless, for remoting only apps FDS pricing is the only reason not to use it. But technically if you dont have to learn web services FDS will save you a lot of time. Regards, Hank On 8/23/06, Ted Patrick [EMAIL PROTECTED] wrote: AMF is faster in 3 fundamental ways: Bandwidth Size – Smaller, lighter, faster!!! Parsing Speed – Less work on both client and server!!! Developer Productivity – Less work for developers!!! Web Services are dependent on XML Parsing on both the client and server side. Although it's a good story, XML parsers are not very efficient as parsing documents is an interpreted process. The Flash Player XML parser will always be dramatically slower than AMF parsing, binary formats are notoriously faster in this regard. XML parsing additionally decays rapidly as the file size increases. Flash Player XML parsing time increase non-linearly with larger XML documents. With AMF parsing times are linear with data size. The XML decay can be attributed to the number of inner objects that need to be created during a parsing run. AMF objects are 1:1 with the data received where XML data is 1:N per Elements/Attribute.
[flexcoders] ControlBar added in script display issues...
I'm creating a popup with a progress bar and a cancel button, I want to add a controlBar container, but it's not padding the width of the container properly, any help would be great. Below is the code:progressStatus = PopUpManager.createPopUp(Container(Application.application), TitleWindow, true);progressStatus.width = 300;progressStatus.styleName = opaquePanel; progressStatus.title = 'Download in Progress:';bar.mode = 'manual';bar.label = 'Loading ' + currentIndex + ' of ' + totalOrders + '...';btnCancel.addEventListener(MouseEvent.CLICK, cancel);btnCancel.enabled = true;btnCancel.label = 'Cancel';var ctrlBar:ControlBar = new ControlBar();ctrlBar.percentWidth = 100;ctrlBar.addChild(btnCancel);progressStatus.addChild(ctrlBar);progressStatus.addChildAt (bar, 0);PopUpManager.centerPopUp(progressStatus);PopUpManager.bringToFront(progressStatus); __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company 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: How to render HTML text in data grid column?
OK, Here is an example : ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ [Bindable] public var myArray:Array = [{colA:'A',colB:'B'},{colA:'A1',colB:'B1'}]; ]] /mx:Script mx:DataGrid id=myGrid dataProvider={myArray} width=100% height=50% variableRowHeight=true mx:columns mx:Array mx:DataGridColumn dataField=colA headerText=Column A width=70/ mx:DataGridColumn dataField=colB headerText=Column B width=50 wordWrap=true mx:itemRenderer mx:Component mx:Label height=100 mx:htmlText ![CDATA[This is font color=#FFHTML text/font in a bText component/b. Using the uhtmlText attribute/u of the font color=#008800Text component/font you can use basic HTML markup.]] /mx:htmlText /mx:Label /mx:Component /mx:itemRenderer /mx:DataGridColumn /mx:Array /mx:columns /mx:DataGrid /mx:Application --- In flexcoders@yahoogroups.com, Oscar [EMAIL PROTECTED] wrote: I would create an ItemRenderer and use either a Label or a Text tag, both have an htmlText property. No all the html tags are available tough. --- In flexcoders@yahoogroups.com, envidobi envidobi@ wrote: Hi all, Anyone know how i could display HTML text in a datagrid column? Haven't seen any examples or tutorials on the subject. Thanks, David -- 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
Hate to jump in, because I see your question is targeted at ted, but I have to say one thing. The issue isnt how many users FDS Express can support but how many users your entire application can support per server. Because FDS is just a piece of your web application (WAR). So if you are doing something that is computationally intense or disk access intense it will suck up system resources more than otherwise, thus reducing the number of concurrent users your FDS app can support. So you really need to test your app to see how many concurrent users your apps, without FDS, will support. Adding FDS to that will obviously consume resources as well. What this means is FDS is more expensive when attached to a more heavy application.Regards,HankOn 8/24/06, Jack Caldwell [EMAIL PROTECTED] wrote: Ted: How many concurrent users can FDS Expresssupport? On the departmental version, if the 101st concurrent user tries to connect is there an error message or busy message or do they just wait a little longer to get the data? Thanks, Jack From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ted PatrickSent: Thursday, August 24, 2006 1:57 PMTo: flexcoders@yahoogroups.comSubject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE FDS Express == 1CPU FREE - FDS Express is limited to one 1 physical CPU (multi-core supported) - FDS Express cannot be clustered for failover and redundancy. All higher level FDS Licenses address the redundancy and failover aspects for departmental use (100 concurrent users) and enterprise (unlimited users). The blanket statement that FDS costs $20,000 is dead wrong. For a large majority of projects it is free, free, free. Ted Patrick Flex Evangelist Adobe Systems Incorporated From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of hank williamsSent: Thursday, August 24, 2006 11:19 AMTo: [EMAIL PROTECTED]ups.comSubject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides I have to agree with Ted regarding productivity.Of course I may just be revealing that I am not as smart as the rest of you, but when I was considering various means of connecting to my java server during the transition to Flex2, I explored Axis and Axis2 for web services. Figuring out how to use them was *no joke*. I am sure if I had dedicated the time to it I could have gotten up and running. But, honestly, I gave up after several days of study.The Axis umailing list was fairly useless for beginners, there were lots of people having problems with Axis2 and the documentation was almost unbearable. Now if you are already an expert then none of this applies to you. But the idea that from flash that you can just call your server side code just by declaring the classes you are working with in a configuration file is magic. It is so easy. Of course the typing issues on web services sound like a bear too and there are none with remoting, but I cant really talk about that because I never got that far with web services. FDS and Flex2 are far far easier to work with. My only problem with FDS is pricing. Remoting used to cost $1000 or so per server, or it was free if you used an open source solution. Now it costs $20,000 per server after you need more than one server. I may actually have to switch back to an AMF0 version of remoting by the time my first server is overwhelmed because $20k is insane. I am using amazon S3 and for 20k worth of bandwidth and storage I could support millions of users over a year. but 20k in FDS software probably only supports 100k users. So the economics of FDS are insane. They are probably driven by the desire not to screw the Flex 1.5 people who paid a lot of money for their servers. Nevertheless, for remoting only apps FDS pricing is the only reason not to use it. But technically if you dont have to learn web services FDS will save you a lot of time. Regards,Hank On 8/23/06, Ted Patrick [EMAIL PROTECTED] wrote: AMF is faster in 3 fundamental ways: Bandwidth Size – Smaller, lighter, faster!!! Parsing Speed – Less work on both client and server!!! Developer Productivity – Less work for developers!!! Web Services are dependent on XML Parsing on both the client and server side. Although it's a good story, XML parsers are not very efficient as parsing documents is an interpreted process. The Flash Player XML parser will always be dramatically slower than AMF parsing, binary formats are notoriously
RE: [flexcoders] Can Flex Data Services Compile on the Fly?
Yes FDS contains a Web Tier Compiler. In any webapp with FDS enabled, simply drop an MXML file and call it from a URL like so: http://myserver/mywebapp/app.mxml This will be compiled on first call and will only be recompiled when the source MXML changes. Ted Patrick Flex Evangelist Adobe Systems Incorporated From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of this_is_louie Sent: Thursday, August 24, 2006 12:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Can Flex Data Services Compile on the Fly? Hi, I'm new to flex and curious about the capabilities of it. From what I understand, Flex 1 was originally a server architecture where it would only compile server side. Now that flex 2 is out, can FDS still compile on the fly? If it can, can you point me in the right direction? Thanks and I look forward to your reply. __._,_.___ -- 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
Something I have done in the past is to create a hybrid solution. One of the biggest advantages of Web Services is of course its ability to be consumed by just about everything. That being said, Java can consume web services! I have found creating Web Service Facades that FDS connects to can keep both sides happy. You get the performance of AMF to the client side, and you get to keep your services in one central location (as long as you dont try to recreate business logic in java, just make it the middle man). One definite downfall is your J2EE server will do the parsing and translation of the web services (this can impact all users as the system scales if the server isnt very powerful, or the services are poorly designed), as well as the consumption of services in java isnt always the easiest thing. On the flip side of that your java server can also do the exception handling and send better exceptions to the client side. This may be a good middle ground for those searching for the benefits of both. Dustin Mercer __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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: Problems interpolating a BarChart
--- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: I have a BarChart that is displaying its data correctly. I also have a combobox that, upon its change event, calls a function that repopulates the BarChart's dataProvider. The BarChart updates its display as expected, but if I try to set the showDataEffect attribute of any of the child BarSeries components (which I am successfully using on a ColumnChart elsewhere), I get an RTE with the infamous Error #1009: Cannot access a property or method of a null object reference. message. The debugger opens and selects a mx.charts.chartClasses.CartesianTransform instance, but other than that I get no feedback on what the actual problem is. At first I thought that maybe it was having trouble scaling some of the BarSeries items to a value of 0, but the more I investigate, the less it seems like that is the issue. So my question is a basic one: does anyone have any ideas what could be causing this or suggestions of where I should further investigate? Thanks, Ben Hi Ben - Could you post the code? --Brian -- 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] Blitz XRay
http://www.osflash.org/xray#connectors_8.11.2006Let mek now if you have any questionsJPGOn 8/24/06, Chad Callahan [EMAIL PROTECTED] wrote: I was looking at http://osflash.org/xray for the XRay connector for Flex2 but couldn't find any downloads or links to it. If anyone knows where to download the connector for Flex2, please email me a link. Thanks CHAD CALLAHAN PROGRAMMER T8DESIGN.COM | P 319.266.7574 - x195 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. -- [JPG] __._,_.___ -- 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] Can Flex Data Services Compile on the Fly?
Hi, I'm new to flex and curious about the capabilities of it. From what I understand, Flex 1 was originally a server architecture where it would only compile server side. Now that flex 2 is out, can FDS still compile on the fly? If it can, can you point me in the right direction? Thanks and I look forward to your reply. -- 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
You are forgetting that if a request takes half the time to complete, it needs less cpu time and you can double the concurrent requests per server. Evert Dave Wolf wrote: I simply have to disagree here. We can demonstrate several in production applications which we have developed using SOAP XML WebServices and they perform like a champ. One of them was the runner up for last years MAX award. The majority of the applications we develop use this architecture and to date not a single time has a client nor a user complained about the performance of runtime data services based on SOAP. There are a few false rumors that continue to creep up in the Flex community about the performance issues around SOAP. There are benchmarks which show that AMF can be drastically faster than a SOAP call for the same data. Sometimes even 100% faster. Yup that's true there are. But you have to peel away the layers of the onion to see the reality. Statistics can be misleading. For instance, if AMF is 300 milliseconds and SOAP is 600 milliseconds the 100% difference isnt even relative. How many people do you know who can even see 1/3 of a seconds difference? In the end raw marshalling isnt the issue, it is the user and their experience. Flex2 made DRASTIC improvements it the performance of XML parsing and in our own benchmarks the delta between the two services choices is often as low as 10%. Of a much greater impact that the marshalling time is the UI shredding and binding of the data. Most badly performing RIA's suffer from data being returned from the back-end in a format that holds no fidelity with the RIA. This requires the RIA to tear apart the returned structural data and place it into its own structures and objects and bind those to UI controls. Developing your user experience in a front-to-back approach which assures great fidelity between the data formats of the tiers can account for an order of magnitude performance increase. That is the kind of performance increase users will actually experience. There are many other very smart things you can do like extending existing controls to do streaming rendering of data to provide the perception of speed, server side paging, caching, etc. In the end perception is reality. All that matters from the UI perspective is the experience that the user has. Worring about 300 milliseconds is like trying to debate the number of angels that could dance on the end of a pin. If the user can't see them, it doesn't matter how many there are. The running rumor that you simply cannot develop first class RIAs in Flex using a SOAP web services back-end is simply not accurate, and we have the apps in production with our clients to prove it. -- 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: How to render HTML text in data grid column?
Hi Oscar, Thanks a bunch for replying. I've had about 10 posts now and i've not gotten a single reply. Thanks for your time! :) I get what you're doing but if i'm getting data from a remote object how would i display it? Hers's what i have thus far (and you'll have to excuse my beginner skills here): mx:DataGrid id=masterList doubleClickEnabled=true doubleClick=this.currentIndex=this.masterList.selectedIndex; if(this.masterList.selectedItem!=null) { WindowManager.add( getDetailComponent(this.masterList.selectedItem.ProductionID), this, false ); } width=100% height=100% top=0 left=0 right=0 bottom=0 mx:columns mx:DataGridColumn dataField=ProductionTitle headerText=Production Title / mx:DataGridColumn dataField=ProductionType headerText=Production Type / mx:DataGridColumn dataField=Description headerText=Description mx:itemRenderer mx:Component mx:Label height=100 mx:htmlText How do i bind Description data here? /mx:htmlText /mx:Label /mx:Component /mx:itemRenderer /mx:DataGridColumn /mx:columns /mx:DataGrid The data in the Description field is all in HTML, and i want to display it as rendered HTML rather than plain text. Thanks again, David -- 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
I am not clear how what you are talking about relates to the problems that ted described. Regards Hank On 8/24/06, ryanm [EMAIL PROTECTED] wrote: I am sure there are many smart people out there who will get WebServices to work well for them with Flex. It is a lot of hard work to make this work well and I have only seen one company do it really well. I do not doubt that others will make this work reliably but I question its use. It will affect performance which is why AMF was created in the first place as an optimized data exchange format for Flash Player. I got around this problem by abstraction and preemptively loading data that was likely to be loaded. I made up template-like objects that the client loaded that describe what makes a page of data, which included all of the possible design elements and whatnot. That way, when you actually go to load the data, the size of the data going to and from the server was minimal (and compressed). And I preloaded large blocks of commonly used data and cached them on the client side, keeping it updated by sending an MD5 hash back to the server-side to be compared to the current data set on a regular basis or whenever that data was accessed. For a dial-up user that might be a problem, but for a business app it didn't even cause a noticable bump in their bandwidth usage. You just have to plan appropriately and do thorough use cases, so that you can develop a set of rules that will tell you what data is likely to be needed next. All the most common usage paths through the app were fast and responsive, and only the really heavy stuff, like real time reports that go back over tons of db records and stuff, took any noticable time to load. The end result was 100% compatible with either an AJAX front end or a Flash front end, the back end didn't know or care which it was talking to. With appropriate planning and a good architecture, which transport method you use is almost irrelevant as long as it is flexible and compatible. ;-) ryanm -- 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] Blitz XRay
I was looking at http://osflash.org/xray for the XRay connector for Flex2 but couldnt find any downloads or links to it. If anyone knows where to download the connector for Flex2, please email me a link. Thanks CHAD CALLAHAN PROGRAMMER T8DESIGN.COM | P 319.266.7574 - x195 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company 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] Can Flex Data Services Compile on the Fly?
Yes it can compile on the fly. When you install FDS and then create a new Flex application it will bring up a dialog box that asks if you want the app to be compiled on the fly. Regards, Hank On 8/24/06, this_is_louie [EMAIL PROTECTED] wrote: Hi, I'm new to flex and curious about the capabilities of it. From what I understand, Flex 1 was originally a server architecture where it would only compile server side. Now that flex 2 is out, can FDS still compile on the fly? If it can, can you point me in the right direction? Thanks and I look forward to your reply. -- 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] Re: Need drag drop example
This link might help you. http://www.adobe.com/devnet/flex/quickstart/adding_drag_and_drop/ --- In flexcoders@yahoogroups.com, Martina Smith [EMAIL PROTECTED] wrote: Hi, I need an example for simple drag drop operation using only the displayObject in flex 2.0. Can anyone please share it with me, If you have already done? The example can be as simple as flash's startDrag() (starts dragging) stopDrag()(stops dragging). I have tried using flex 2 help, but the drag operation is not as smooth as that of flash, and dropping the dragged object is also a problem in flex. Thanks in advance, Martina - Here's a new way to find what you're looking for - Yahoo! Answers Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW -- 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
Several of these posts now have seemed to indicate environments where the Flex developer has the capability to manipulate the server side to their liking. Yes, you can squeeze a lot of performance out of any transport method if you can manipulate it as you see fit. I wonder if that scenario is typical. In my case, every modification to the web services must be done with extreme care, as we have partners who also consume those services. It doesn't make sense to optimize the services just for Flex, as it is only a small part of our total picture. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ryanm Sent: Thursday, August 24, 2006 2:05 PM To: flexcoders@yahoogroups.com Subject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides I am sure there are many smart people out there who will get WebServices to work well for them with Flex. It is a lot of hard work to make this work well and I have only seen one company do it really well. I do not doubt that others will make this work reliably but I question its use. It will affect performance which is why AMF was created in the first place as an optimized data exchange format for Flash Player. I got around this problem by abstraction and preemptively loading data that was likely to be loaded. I made up template-like objects that the client loaded that describe what makes a page of data, which included all of the possible design elements and whatnot. That way, when you actually go to load the data, the size of the data going to and from the server was minimal (and compressed). And I preloaded large blocks of commonly used data and cached them on the client side, keeping it updated by sending an MD5 hash back to the server-side to be compared to the current data set on a regular basis or whenever that data was accessed. For a dial-up user that might be a problem, but for a business app it didn't even cause a noticable bump in their bandwidth usage. You just have to plan appropriately and do thorough use cases, so that you can develop a set of rules that will tell you what data is likely to be needed next. All the most common usage paths through the app were fast and responsive, and only the really heavy stuff, like real time reports that go back over tons of db records and stuff, took any noticable time to load. The end result was 100% compatible with either an AJAX front end or a Flash front end, the back end didn't know or care which it was talking to. With appropriate planning and a good architecture, which transport method you use is almost irrelevant as long as it is flexible and compatible. ;-) ryanm -- 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] SecureAMF: SSL Handshake Prob
p.s. my cert has been imported into the JVM From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stacy Young Sent: Thursday, August 24, 2006 1:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] SecureAMF: SSL Handshake Prob Hi all, Anyone run into this when using AMF over SSL? ... 08/24 13:47:37 DEBUG Optimizing... 960ms 08/24 13:47:37 DEBUG Total time: 11864ms 08/24 13:47:38 DEBUG SWF Encoding... 420ms Aug 24, 2006 1:47:39 PM EDT Warning Security BEA-090476 Invalid/unknown SSL header was received from peer localhost - 127.0.0.1 during SSL handshake. ... Running locally with self-signed cert for testing ...everything else seems to be fine. The movie loads, just hangs on first remote call. Cheers, Stace -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. -- 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/