[flexcoders] Re: how to set button colors - flex 1.5
allready did. it does NOT work. it seems waht i need are : selectedFillColors highlightColor but they both do NOT do a thing, they have no affection. what i found is that the only way to change highlightColor is by themeColor. but this will also change the selectedFillColors to be the same colors and i dont want that. eg: i want the highlightColor to be red and the down-state fill color be blue. how do i do this? --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Maybe try the selectedFillColors style? Otherwise you may need to re-skin. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shemeshkale Sent: Tuesday, August 22, 2006 1:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: how to set button colors - flex 1.5 PLEASE !! someone? if its not possible i would like to know. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , shemeshkale baldhead72@ wrote: using flex 1.5 how do i set the fill-colors of a pressed (down) state of a button? how do i set its highlight color? not with using themeColor kuz i want every color being different. plus: how do i set the 'thickness' of the highlight color? -- 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: Downloadable Flexcoders List Archive ??
Flexcoders is archives at the mail-archive which does say that you can download the archive to your own harddrive: http://www.mail-archive.com/faq.html#download. I dont follow what website mirroring tools are out there but if youre willing to play by their rules its one option. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of data.kyle Sent: Tuesday, August 22, 2006 7:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Downloadable Flexcoders List Archive ?? No replies yet, can someone help or make suggestions? Thanks -kd --- In [EMAIL PROTECTED]ups.com, data.kyle [EMAIL PROTECTED].. wrote: Can someone help? I am often offline and so I download plain text archives of lists like flashcoders and osflash to use at this time. I really to be able to download an archive of the Flexcoders list for offline work but cannot find one. Just so we are clear here is a link to the flashcoders plain text archive: http://chattyfig.figleaf.com/pipermail/flashcoders/ where you can download a plain text archive of posts for each month. Where is the Flexcoders equivalent? Can one be made ? I really need it. Thanks - kd __._,_.___ -- 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] event error
Hi All, I am tryign to migrate an application from flex 1.5 to flex 2 : In flex 1.5 my code was somewat lk this: service\RemoteService.mxml(328): Warning: variable 'event' and 'args' has no type declaration. private function __applyErrors(event):void { var errorHash : Object = event.result.errors; dispatchEvent(new ServiceErrorEventerrorHash)); for (var key : String in errorHash) { var errorList : Array = errorHash[key]; ErrorManager.getInstance().dispatchErrorserrorList); } var args = event.call.__args; Can anyone plz tell me what should be the type of 'event' and 'args'. Thanks , Monika -- 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: Webservice Destination with Basic Authentication
On Tuesday 22 August 2006 15:34, someguy7_7 wrote: I don't understand what you mean. Are you saying that the webservice I am trying to connect to has to have a services-config.xml? What information needs to be in the services-config.xml. I am connecting to a j2ee webservice. Maybe you should post some code then, because I think the error is coming from a call to RemoteObject - it says 'RPC fault'. -- Tom Chiverton Helping to continually establish eligible appliances 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] Re: AMFPHP: Mapping date objects between PHP and Flex
--- In flexcoders@yahoogroups.com, Nate Hardt [EMAIL PROTECTED] wrote: Probably whoever designed the date class wanted to represent a date down to milliseconds, whereas the unix timestamp only represents a date down to the second. I finally decided to use two date properties on my value objects: One date property holds the date as Unix timestamp, the other one holds the date as a Flex Date() object. When the date is retrieved from MySQL it is retrieved as a Unix timestamp (UNIX_TIMESTAMP()). For example, in Flex/Cairngorm my UserVO has these date properties: public class UserVO implements ValueObject { public var activeStartDate : Date; public var activeStartDateUnix : Number; public var activeEndDate : Date; public var activeEndDateUnix : Number; } Whenever I need a date property as Flex Date() object, I do conversions like these: model.selectedUser.activeStartDate = new Date(model.selectedUser.activeStartDateUnix*1000); model.selectedUser.activeEndDate = new Date(model.selectedUser.activeEndDateUnix*1000); I'd be happy if anyone could come up with a better solution. 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] Re: Help with adding datagrid to non-visible Sprite
i've tried setting the height/width on the datagrid, the sprite the datagrid is being added to and the class level sprite, but nothing seems to work. When I check the properties in the debugger the values for height/width are 0 regardless of what I tried to set them to. var pdg:PrintDataGrid=new PrintDataGrid(); var s:Sprite=new Sprite(); pdg.explicitHeight=600; pdg.explicitWidth=600; pdg.setActualSize(600,600); pdg.width=600; pdg.height=600; s.addChild(pdg); s.height=600; s.width=600; My class executing this code extends Sprite so I've simply added this.width=600; this.height=600; to the constructor of my class. Still no luck. What am I doing wrong??? Thanks! Wayne --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 21 August 2006 22:41, wayneposner wrote: I'm tyring to add a datagrid to a sprite class that doesn't display any data--its used strickly for printing. When I add the datagrid to the sprite, the resulting printed output is just a blank page. There is an issue with printing non-visible content - one work around is to add your datagrid and set it's data, then use callLater to fire the printJob or you can set a width/height on the top level Sprite by hand. -- Tom Chiverton Helping to preemptively expedite proactive supply-chains 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] validating editable columns in the datagrid
Hi, I have a datagrid, which has some 2 columns editable. In order to validate those two columns, I am using the cellrenderer property of the grid. The validators are working fine, but my problem is,if I enter a wrong data in the editable field, I get the red boundary of the validator giving appropriate message, but still I can save that data to the database. Generally we use IsStructureValid to do the checking before saving, but in this case, how do I achieve the same? Thanks in advance :-) Bhargavi -- 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
Dave: I agree that a 1/3 of a second is not going to be noticed by the end-user. However, when you add 100s or 1,000s of users . . . . does that make a difference? I don't know . . . . that's why I am asking. You guys have the experience. Can you share info on how large is the largest production application in terms of total users and average simultaneous users? Thanks, Jack From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave WolfSent: Tuesday, August 22, 2006 3:20 PMTo: flexcoders@yahoogroups.comSubject: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides I simply have to disagree here. We can demonstrate several inproduction applications which we have developed using SOAP XMLWebServices and they perform like a champ. One of them was the runnerup for last years MAX award. The majority of the applications wedevelop use this architecture and to date not a single time has aclient nor a user complained about the performance of runtime dataservices based on SOAP.There are a few false rumors that continue to creep up in the Flexcommunity about the performance issues around SOAP.There are benchmarks which show that AMF can be drastically fasterthan a SOAP call for the same data. Sometimes even 100% faster. Yupthat's true there are. But you have to peel away the layers of theonion to see the reality. Statistics can be misleading. Forinstance, if AMF is 300 milliseconds and SOAP is 600 milliseconds the100% difference isnt even relative. How many people do you know whocan even see 1/3 of a seconds difference? In the end raw marshallingisnt the issue, it is the user and their experience. Flex2 madeDRASTIC improvements it the performance of XML parsing and in our ownbenchmarks the delta between the two services choices is often as lowas 10%.Of a much greater impact that the marshalling time is the UI"shredding" and binding of the data. Most badly performing RIA'ssuffer from data being returned from the back-end in a format thatholds no fidelity with the RIA. This requires the RIA to tear apartthe returned structural data and place it into its own structures andobjects and bind those to UI controls. Developing your userexperience in a front-to-back approach which assures great fidelitybetween the data formats of the tiers can account for an order ofmagnitude performance increase. That is the kind of performanceincrease users will actually experience. There are many other very smart things you can do like extendingexisting controls to do streaming rendering of data to provide theperception of speed, server side paging, caching, etc. In the end perception is reality. All that matters from the UIperspective is the experience that the user has. Worring about 300milliseconds is like trying to debate the number of angels that coulddance on the end of a pin. If the user can't see them, it doesn'tmatter how many there are.The running rumor that you simply cannot develop first class RIAs inFlex using a SOAP web services back-end is simply not accurate, and wehave the apps in production with our clients to prove it.-- Dave WolfCynergy Systems, Inc.Adobe Flex Alliance Partnerhttp://www.cynergysystems.comhttp://www.cynergysystems.com/blogsEmail: [EMAIL PROTECTED]stems.comOffice: 866-CYNERGY--- In [EMAIL PROTECTED]ups.com, "Shannon Hicks" [EMAIL PROTECTED] wrote: Bob- Web Services / HTTP services are not built to be the primary backendof your flex applications. Because they are XML based, they have quite a bitmore overhead than flex's built-in AMF (Action Message Format). AMF issmaller, faster and uses less bandwidth than XML. AMF is what FDS and ColdFusion 7.0.2 use to communicate to a Flex app. So let's say that your question is narrowed down to "FDS or CF?".Adobe's ideal answer is "yes." They are complimentary to each other, CFallows for wonderful rapid development of Flex apps, and FDS brings some amazing features to the table through it's Messaging an Data Managementservices. Web Services (SOAP) support is in Flex primarily to consume third-party data, allowing you to add it to your app. Hope this points you in the right direction. Shan _ From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of rhlarochelle Sent: Tuesday, August 22, 2006 10:27 AM To: [EMAIL PROTECTED]ups.com Subject: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backendsystems - which provides best functionality Franck, I appreciate your respons. When you say Remote Objects/Flex Data Services provides the most advanced way of interoperating with the backend, what specifically is possible? What are the capabilities that I would get leveraging Remote Objects/Flex Data Services that I would not get (or would be difficult to implement) with Web services or HTTP services. If there are resources on the Adobe site that spell this out, please point me tothem. Since we are looking at the
RE: [flexcoders] Flex/Flash Remoting for Ruby on Rails
Congratulations. I have one question on your use of the GPL: Does this mean that any commercial applications (say, an RoR web application) would be required to open the source if they utilized WebORB. Thanks, -DT P.S. You may want to add the obligatory, Can I use it for commercial work FAQ. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Piller Sent: Tuesday, August 22, 2006 12:13 To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex/Flash Remoting for Ruby on Rails Hi guys, I just wanted to let you know we released WebORB for Ruby on Rails today. The product is free and open-source (GPL license) and makes is super simple to integrate Flex and/or Flash Remoting applications with Rails. We implemented both AMF0 and AMF3 protocols as well as added support for service deployment via standard Flex configuration file (remoting-config.xml). From a Flex developer's perspective, WebORB for Rails looks like an FDS server - you create a Flex project, point it to an installation of WebORB and all registered Ruby destinations can be invoked from Flex. Flash Remoting apps will see WebORB for Rails as remoting gateway. Ruby developers will enjoy the same ease-of-use and convenience they are already accustomed to with Rails. You do not need to do anything special with your classes to expose them to Flex and Flash - WebORB automatically locates classes and adapts client side types to their Ruby counterparts. To download or to learn more visit product's home page: http://www.themidnightcoders.com/weborb/rubyonrails/index.htm Cheers, Mark -- 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] Re: FDS Data Management quesion
Yes, using a separate destination and DataService instance for each object would give you individual control over objects managed by those destinations. Because of how we implemented the client side library, if you create more than one DataService for the same destination in the same client they actually all end up mapping to the same collection of objects. There is one additional caveat which is that the commit queue and merge queue are really managed by a lower level object called the DataStore which is accessed via a property in the DataService. By default each DataService has its own DataStore so you should be fine but if you use managed associations (i.e. your destination has a one-to-one, one-to-many, etc. tag defining a relationship between two objects), they will share the same DataStore by default. This is so that we can keep changes in order when there are dependencies between the changes. For example if you create a new item, then change a property of another item to refer to that newly created item, the server side really wants to process that create first before it processes the update to refer to the created item so we need one queue which stores both changes when you have relationships. Yes, you can revert the changes for items independently. Just call dataService.revertChanges(item). We find all messages that affect that item and undo those changes and then remove those messages from the queue. Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of thunderstumpgesatwork Sent: Tuesday, August 22, 2006 1:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: FDS Data Management quesion Thanks for the explanation, I think I have a better understanding now. So, I think what I got from that is that if I want to have control over each object that I commit, I have to use a separate DataService for each one? Thanks for logging the enhancement request, as selecting which managed object to commit would be the ideal way to handle this. You mentioned that I cannot release a single item from a managed collection, but is it possible to revert a single item in a managed collection? Thanks, Thunder --- In [EMAIL PROTECTED]ups.com, Jeff Vroom [EMAIL PROTECTED] wrote: First off, a bit about how FDMS works behind the scenes. As you change a property of an object, a PropertyChangedEvent is fired which tells FDMS of the change. A message is logged for the item indicating that the property is changed. If you change a second property on the object, we merge that property change event into to the first message. If autoCommit is false, when you call commit, all pending changes are sent. So if you are not changing an item, nothing is sent but if you have changed items A and B and the changes were logged for these items, there is no way to just commit the changes for item B. You can individually revert changes made to items however but that will roll the state of the item back to its state before the change. Now it is possible to release an item so that FDMS is no longer managing its state. At this point, FDMS will not be tracking changes to that item so you could call getItem on A and getItem on B, then releaseItem on A. Now only changes to B will be tracked. If you call fill and get a collection of objects, there is no way to release just a single item in the collection however. Your use case is an interesting one and it would not be hard for us to add a method which just commits the changes to a specify item so I'll add an enhancement for that. As for your final question, merge is used when you have set autoMerge=false and it will merge changes received by the server into the current managed set of items. As changes are received by a client for some set of managed items, by default they are automatically merged into the current versions of the items, but when you turn autoMerge=false, they are queued up instead (the mergeRequired property is set in this case). At that point, you call merge to apply those changes. Jeff From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of thunderstumpgesatwork Sent: Tuesday, August 22, 2006 9:58 AM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] FDS Data Management quesion I have a question (or two) about saving/persisting/updating changes that have been made. I'm trying to maintain some granular level of control of which managed objects are saved and which are rolled back. First scenario: Assume we used dataservice.fill() to load a collection. Is it possible to save only one item in the collection? How would this be done? The only method I saw for updating (dataservice.commit()) says it updates all collections managed by this data service. Second scenario: Assume we decided to query each item individually using dataservice.getItem(), is it
[flexcoders] Re: Choice of backend systems - which provides best functionality
I think one thing not given enough consideration in this discussion is cost. We've been developing an enterprise-type application in Flex 2 and initially chose to use AMF Remoting. At the time, the licensing costs were not available. However, now that we know it will cost us $20K per CPU for unlimited connections we're reconsidering. Webservices provide a nice alternative, but the marshalling/compression done by the AMF engine between AS and Java is very powerful. We've yet to start evaluating the third party products, so I can't speak to them yet. -Steven --- 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] Request to post messages - Approval needed
Request to post messages - Approval needed -- 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: AreaChart DataRenderer
Okay, I figured it out. I should not have been setting the itemRenderer style...I should have been setting the areaRenderer style. So now I've successfully subclassed AreaRenderer, but I'm now struggling with how I can change the fill color based on the data. I see where the superclass uses getStyle to get the fill color for the current area, but I don't see any method for setting that style from within the AreaRenderer. Oh well, back to the search. mark -- 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] e4x data question
With the code below, how come I can not use a datagrid like below without an error? Why is data.name working in TileList but not for a DataGrid? HELP :) { mx:DataGrid dataProvider={xlc} mx:columns mx:DataGridColumn dataField={data.name} headerText=Name/ mx:DataGridColumn dataField={data.price} headerText=Price/ mx:DataGridColumn dataField={data.brand} headerText=Brand/ /mx:DataGridColumn /mx:columns /mx:DataGrid } === ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=catalogService.send() viewSourceURL=srcview/index.html mx:Script ![CDATA[ private function filterProduct(item:Object):Boolean { return item.name.match(new RegExp(^ + brandText.text, i)); } ]] /mx:Script mx:HTTPService id=catalogService url=http://127.0.0.1/scratch/Flex/FlexDemo/catalog.xml; resultFormat=e4x / mx:XMLListCollection id=xlc source={catalogService.lastResult.*} filterFunction=filterProduct / mx:Panel title=Product Catalog width=380 height=385 mx:TileList dataProvider={xlc} width=100% height=300 columnCount=2 rowCount=2 mx:itemRenderer mx:Component mx:VBox paddingLeft=30 width=150 height=150 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Label text={data.name} / mx:Label text={data.price}/ mx:Label text={data.brand}/ /mx:VBox /mx:Component /mx:itemRenderer /mx:TileList mx:ControlBar mx:Label text=Brand / mx:TextInput id=brandText width=75 change=xlc.refresh() / /mx:ControlBar /mx:Panel /mx:Application __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.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] Collection View changes order on update
Hi, I have bound a Collectionlist of a datagrid which renders the item as a checkbox. Im using the default bindling of the datagrid (for select and update) to update the selected value back to the Collection. This all works fine, and the checked value is reflected back into the collection and the source behind the collection. But I notice that when the value is set the collection randomly changes order hence from the UI the display checkbox keep moving up and down (though the selecton value is still correct on each item). Is there any reason why this is happening and anyway to prevent it? I just want my collection to retain the ordering of the source hence I also have not defined any ordering/sorting on my view. Please suggest a solution. My only datagrid column looks something like mx:DataGridColumn dataField=totalOn editorDataField=selected rendererIsEditor=true headerText=At the change in column(s): mx:itemRenderer mx:Component mx:CheckBox label={data.displayName} /mx:CheckBox /mx:Component /mx:itemRenderer /mx:DataGridColumn -- 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: Webservice Destination with Basic Authentication
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. Here is my webservice definition. mx:WebService id=myService destination=mytest useProxy=true Am I missing a step somewhere? --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 22 August 2006 01:40, someguy7_7 wrote: faultString=[MessagingError message='Unknown destination 'mytest'. What do I need to do besides add the destination to the WEB-INF/flex/proxy-config.xml of my application so my app can find the It doesn't appear to be in the services-config.xml of the server you are connecting too. -- Tom Chiverton Helping to centrally mesh fourth-generation m-commerce 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] focus new row?
hi all i have this code to delete rows in my grid but if there is no selected row it gives an error what i would like is to set focus on the new row so it won't give any errorto add Rows[Bindable]private var _xlcdatagrid:XMLListCollection;[Bindable]private var _xlcdatagrid2:XMLListCollection = new XMLListCollection;private function onResult(oEvent:ResultEvent):void{_xlcdatagrid = new XMLListCollection(oEvent.result.name) datagrid.dataProvider = _xlcdatagrid; }private function selectItem():void{_xlcdatagrid2.addItem(datagrid.selectedItem);}delete code: function deleteRow():void { if (datagrid2.selectedIndex!=undefined) { _xlcdatagrid2.removeItemAt(datagrid2.selectedIndex); } __._,_.___ -- 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
In my world, 300 milliseconds does matter. 10 sequential calls and you have 3 seconds of latency, which is definitely in the realm of something the end user would notice. Sometimes the end user is a key decision maker comparing two apps side-by-side and making a judgment call as to which one will be further developed. Sometimes the one that feels snappier wins. Do I think I should have to be making 10 sequential web service calls? No. But then again, I don't develop web services. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Wolf Sent: Tuesday, August 22, 2006 4:20 PM To: flexcoders@yahoogroups.com Subject: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides 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. -- 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, Shannon Hicks [EMAIL PROTECTED] wrote: Bob- Web Services / HTTP services are not built to be the primary backend of your flex applications. Because they are XML based, they have quite a bit more overhead than flex's built-in AMF (Action Message Format). AMF is smaller, faster and uses less bandwidth than XML. AMF is what FDS and ColdFusion 7.0.2 use to communicate to a Flex app. So let's say that your question is narrowed down to FDS or CF?. Adobe's ideal answer is yes. They are complimentary to each other, CF allows for wonderful rapid development of Flex apps, and FDS brings some amazing features to the table through it's Messaging an Data Management services. Web Services (SOAP) support is in Flex primarily to consume third-party data, allowing you to add it to your app. Hope this points you in the right direction. Shan _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rhlarochelle Sent: Tuesday, August 22, 2006 10:27 AM To: flexcoders@yahoogroups.com Subject: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides best functionality Franck, I appreciate your respons. When you say Remote Objects/Flex Data Services provides the most advanced way of interoperating with the backend, what specifically is possible? What are the capabilities that I would get leveraging Remote Objects/Flex Data Services that I would not get (or would be
[flexcoders] Change HorizontalList column width based on content
Hi Is there anyway I can change the columns width based on the content. Im using a HorizontalList to display some checkbox items. I would like the width of the column to be based on the content so its small and large as needed. How do I get this done? This what my code looks like. mx:HorizontalList dataProvider={ModelLocator.getInstance ().rpsyManager.formatTypes} borderStyle=none horizontalScrollPolicy=off labelField=@name width=100% mx:itemRenderer mx:Component mx:CheckBox label={XML(data)[EMAIL PROTECTED] width=100% selected={XML(data)[EMAIL PROTECTED] == true} click=outerDocument.selectFormat(XML(data), CheckBox (event.target).selected) /mx:CheckBox /mx:Component /mx:itemRenderer /mx:HorizontalList -- 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] Adobe, Help Memory Leaking !!
I have an application that uses many repeaters where the repeater's dataproviders are constantly updated which redraws the view. All look fine visually, however the flash player continues to use more and more memory. I created a demo version of this at http://www.everythingflex.com/flex2/MemoryTest/ I have buttons which up the amount of repeater items and then lower them and also attemp to delete the arraycollection, delete the dataprovider, etc but the memory never is recaptured. The source is also provided. Does anyone know how to get the garbage collection to run when the repeaters content changes?? Rich -- 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: Cairngorm eLearning Course and Quiz - who's in?
Hi guys, I'm on the Breeze Training team and I'm currently learning Flex2 and Cairngorm to potentially use in a future version of Breeze. I would love to help out with this effort. I'm not sure if people are familiar with Breeze Presenter or Captivate, but we could potentially use this as a solution for generating the quizzes. Breeze Presenter is great for quickly putting together training material. All you need is PowerPoint and the Breeze plugin. There is a Quizzing wizard which allows you to easily create true/false, multiple-choice and multiple answer questions. We could then host the content on the Breeze service and people could view the courses there. Breeze also has tracking features so we could report on how learners answered different questions and so forth. I can help set up the account for free of charge, which is an added plus :) Here's a link to Breeze Training if you guys are interested: http://www.adobe.com/products/breeze/productinfo/features/training/ Please let me know if you're interested in this as a potential solution. I would definitely be happy to help out with this effort. Thanks, Quinn --- In flexcoders@yahoogroups.com, Evan Gifford [EMAIL PROTECTED] wrote: Ok, cool I've got a few off-list responses to this, looks like we'll have the horsepower to make this thing run! I'm still looking for an animator/storyboarder if anyone would like to help with that aspect, otherwise let's get started this weekend. For those of you who have expressed interest in helping, I'll message you off list and we'll create a play of attack. You guys rock! -Evan -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.10.10/419 - Release Date: 8/15/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.4/424 - Release Date: 8/21/2006 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] How to bring a combo box component inside the dataGrid Component
Hi Folks, Is there a way to bring the combox box component inside the Grid where i can populate values for the combo box from XML File. -- 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] Rich Text Editor Error
Hi all, I'm getting this error Application uses a value of the wrong type for the current operation when ever i try to put in more than one break return in a rich text editor. It says its an error executing the database query but i know for sure that the datbase field is a memo field and can handle pleany of text, which in this case is html going in. Anyone have any suggestions? 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] Bug in Using the XMLListCollection class Example and the Fix
Any one tried this example? Flex 2 Developer's Guide Building User Interfaces forFlex Applications Using Data Providers and Collections Using hierarchical data providers Using an XML data provider http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0513.html "Using the XMLListCollection class" example has a serious problem, when you delete an item in the List, if it is a leaf node in the Tree it gets deleted too This is happening because of cross references that exist (we are directly adding the node toListwhich still has references to myData, the tree dataProvider) Solution to this problem is simple, we need to make a copy to add to the list, then everything will be all right we just need to change the doTreeSelect function as follows // Add the item selected in the Tree to the List XMLList data provider. private function doTreeSelect():void { if (prodTree.selectedItem) listDP.addItem(prodTree.selectedItem.copy()); } I've attached thebug fixedMXML as well Regards, Arul Adobe Community Expert http://www.shockwave-india.com/blog __._,_.___ -- 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. __,_._,___ XMLListCollectionExample.mxml Description: Binary data
[flexcoders] Re: Send Tree data to CF
Answered my own question after browsing through cflex.net - what a great resource! For anyone interested, check out the Beginner Tutorials section of cflex.net, and then the Intro to Flex 2 with Coldfusion Remoting tutorial. This gives a very nice layout of both sending and receiving between Flex2 and CF7.02. Worked great - moving right along... Thanks, - Chris --- In flexcoders@yahoogroups.com, qnotemedia [EMAIL PROTECTED] wrote: ...could someone write me some basic cfc code (and/or mxml if needed) that can receive this data and place it in a CF array - or at least lead me in the right direction to a tutorial online? -- 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] Extending the List Component: Sticky Selection
Ok, I have a client of mine who is stuck (no pun intended) on the idea of having a List component to which he does not have to hold CTRL down to do multiple selections. Essentially, he wants to be able to click on items and have them be selected and if they have already been selected, then deselect them. As if he was holding the CTRL key down the entire time. Could anyone help me with at least a starting point? I am totally freaked out about this for some reason. LOL -K -- 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] Why my compiled swf is loading too slowly?
From: Satish To: flexcoders@yahoogroups.com Sent: Saturday, August 19, 2006 10:55 AM Subject: Re: [flexcoders] Why my compiled swf is loading too slowly? I think my application is initalizing and taking long time to load. Because i am seeing preloader with persentile for a long time. Thanks Karl, - Original Message - From: Karl Johnson To: flexcoders@yahoogroups.com Sent: Thursday, August 17, 2006 4:34 PM Subject: RE: [flexcoders] Why my compiled swf is loading too slowly? When you say it is loading slowly, do you mean it takes a long time to download? Or does it take a long time to initialize, create all of the controlsand render? When it is taking a long time, are you seeing the preloader? Karl Cynergy Systems, Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of SatishSent: Thursday, August 17, 2006 1:25 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Why my compiled swf is loading too slowly? Hi, Previous ly we are directly accessing th site with .mxml url. Thta time file was loading too slowly. But afterwords, we are loading compiled .swf file. It is much better. assume, we are having two swfs 1.compiled swf is 400KB. 2. and one animated swf is 1.5MB. here for our site animated swf it self is loading much faster then my compiled swf. Why it is happenning like this? What we have to do to load our compiled .swf also to be loaded much fastly. Thanks Satish KC. __._,_.___ -- 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] Run SWF file in Flash Player
Hi All, I am new to flex. I want to run a swf file on a button click in flash player. Currently I am using navigatetoURL() function and it opening that swf file in Browser can we use some thing else and open file in flash player itself. Thanks Kumar __._,_.___ -- 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] How to bring a combo box component inside the dataGrid Component
check outhttp://livedocs.macromedia.com/flex/2/langref/mx/controls/DataGrid.htmlthere should be some examples on renderers there DKOn 8/23/06, richinternetapps [EMAIL PROTECTED] wrote: Hi Folks,Is there a way to bring the combox box component inside the Grid wherei can populate values for the combo box from XML File.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/-- Douglas Knudsenhttp://www.cubicleman.com this is my signature, like it? __._,_.___ -- 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] AWT-EventQueue-0 java.lang.NullPointerException
I have a FLEX application that runs on a Tomcat 5 server. I leave the application open over night and I see this error in the log. Have you guys seen anything like this?I use Flex 2.0/Tomcat 5 on development env. Any suggestions?Best regards, Valy Sivec Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at sun.awt.Win32GraphicsEnvironment.displayChanged(Win32GraphicsEnvironment.java:109) at sun.awt.windows.WToolkit$4.run(WToolkit.java:698) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. __._,_.___ -- 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 ControlBar Panel child in states or in ActionScript?
Hi All! Is there any way to show and hide ControlBar dynamically in Panel? I want to make two states for Panel: one with ControlBar and another one - without. But as I see, ControlBar is more like compile-time feature. :( Sergey. -- 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] Custom containers in Flex 2
Any tips, tutorials or examples on creating custom containers anyone can point me to? Looks like the main methods to override are updateDisplayList() and measure(). Anything else? Basically I am looking at doing some sort of canvas then implementing an autolayout feature for 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: Cairngorm and MVC: Quickie
How are people organizing truly large applications? 50-70 Commands is nothing! I have a legacy system with 300 form which we are looking at doing with Flex and Cairngorm. I have yet to see an example of how Cairngorm can scale with that type of system size. Steven: We need some whitepapers explaining HOW to design large systems. (ie: how to break them into separate applications, how to construct Viewstacks with dozens of forms, how to manage the MVC structure for large systems. --- In flexcoders@yahoogroups.com, Steven Webster [EMAIL PROTECTED] wrote: That's right Kenny ... and that's fine; the alternative would be fewer classes with much more code in them. Best, Steven -- 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: Resizable, Collapsible, Draggable Panel??
Thank you for your help, I'm making progress!! I got SizeableTitleWindow to work! Yay! It starts off really tiny, is there a way to make the initial size a bit bigger? I'll look through the code and see if I can tell what I need to change. Also, is there some way I could get the two graphics you refer to (upArrow.gif and downArrow.gif)? I'm still getting errors on MaxRestorePanel once I fixed those things I mentioned earlier. The code below has the error 1059: Property is read-only. public function MaxRestorePanel(){ this.className = MaxRestorePanel; } The code below has this error on both lines - 1067: Implicit coercion of a value of type flash.display:DisplayObject to an unrelated type mx.core:IFlexDisplayObject var upAsset:IFlexDisplayObject = btStateUp.getChildByName(upIcon); var downAsset:IFlexDisplayObject = btStateDown.getChildByName(upIcon); And these lines have 1120 - Access of undefined property allChildrenList allChildrenList.addChild(btStateUp); allChildrenList.addChild(btStateDown); Thanks so much. :) -- 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: Extending the List Component: Sticky Selection
Sound to me like you will need to handle the mouse click events on the List and manage the selection yourself. Not positive though there might be an easier way to get around this, I haven't actually looked at the List source to tell. --- In flexcoders@yahoogroups.com, lostinrecursion [EMAIL PROTECTED] wrote: Ok, I have a client of mine who is stuck (no pun intended) on the idea of having a List component to which he does not have to hold CTRL down to do multiple selections. Essentially, he wants to be able to click on items and have them be selected and if they have already been selected, then deselect them. As if he was holding the CTRL key down the entire time. Could anyone help me with at least a starting point? I am totally freaked out about this for some reason. LOL -K -- 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
Jack Caldwell wrote: Dave: I agree that a 1/3 of a second is not going to be noticed by the end-user. However, when you add 100s or 1,000s of users . . . . does that make a difference? I don't know . . . . that's why I am asking. You guys have the experience. It doesn't make any difference as the timings are on the client side, not the server. There will be some difference in time required to handle requests on the server which may be down to the data format but they would have to be investigated on a case by case basis. martin. -- 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] How to cast a WebService lastResult when CFC returnType=xml
Darren, If your XML nodes have attributes (ie. node label=foo/node) you can use the labelField attribute to control the labels. mx:Tree id=myTree labelField=@label/ If they dont (ie. foobar/foo) or if you want to do any sort of custom label logic, you need to use the labelFunction attribute to set the values appropriately. mx:Tree id=myTree2 labelFunction=myLabelFunc/ public function myLabelFunc (item:XML):String{ //if node has children if(item.children().toString() != ''){ return item.name(); } //no children, its a leaf so get the value else{ return item.toXMLString(); } } regards, peter From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Darren Houle Sent: Monday, August 21, 2006 4:33 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to cast a WebService lastResult when CFC returnType=xml Bump?? Darren From: Darren Houle [EMAIL PROTECTED]com Reply-To: [EMAIL PROTECTED]ups.com To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] How to cast a WebService lastResult when CFC returnType=xml Date: Fri, 18 Aug 2006 23:08:44 -0400 I have a ColdFusion Component (web service) that looks like... cffunction name=getEmployees access=remote output=false returntype=xml cfxml variable=myxml people person firstnameJohn/firstname lastnameSmith/lastname job titleDoctor/title descriptionblah blah blah/description /job /person person firstnameJane/firstname lastnameDoe/lastname job titleLawyer/title descriptionblah blah blah/description /job /person /people /cfxml cfreturn myxml /cffunction and some Flex code that looks like... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml creationComplete=TestService.getEmployees.send(); mx:WebService id=TestService wsdl=http://localhost/hr.cfc?wsdl mx:operation name=getEmployees / /mx:WebService mx:Tree id=myTree width=50% height=50% showRoot=false dataProvider={TestService.getEmployees.lastResult}/ /mx:Application But what I get is a Tree that looks like: Flex doesn't seem to be able to extract the XML from the SOAP message, which is just SOAP XML wrapping my XML data. Changing the Operation's resultFormat from e4x to xml to object changes the amount of junk in the Tree, but doesn't fix the problem. As a matter of fact, it works best when I leave off this attribute and let the Operation decide what resultFormat to use. Casting lastResult as XML or XMLList doesn't seem to help either, and neither does ArrayUtil.toArray(TestService.getEmployee.lastResult) Is there something I need to do to the lastResult to get it to work in Trees, DataGrids, etc? Like cast it as some other data type? Why doesn't e4x parse the SOAP message properly and extract my XML? Just about every example I can find out there shows people using HTTPService to pull back just the XML data without the SOAP webservice stuff, or else shows how to create XML inside the mxml code itself using mx:XML but I can find nothing that shows how to return XML from a CFC web service and use/parse it in Flex properly (as easy as, say, a CFC that returns a Query object.) Darren __._,_.___ -- 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] CairngormEvent Antipattern
Hello group- I hadn't seen a previous post regarding this explicity so I wrote a small blog about it. It helps reduce the #of classes that get created when using Cairngorm (a big issue with me since the client is VERY picky with their swf file sizes). This blog shows the code for usuing a reusable CairngormEvent versus creating separate classes for each dispatchable event. http://ebaggg.blogspot.com/2006/08/cairngormevent-anti-pattern-we-all.html Thoughts? -- 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] e4x data question
With the code below, how come I can not use a datagrid like below without an error? Why is data.name working in TileList but not for a DataGrid? HELP :) { mx:DataGrid dataProvider={xlc} mx:columns mx:DataGridColumn dataField={data.name} headerText=Name/ mx:DataGridColumn dataField={data.price} headerText=Price/ mx:DataGridColumn dataField={data.brand} headerText=Brand/ /mx:DataGridColumn /mx:columns /mx:DataGrid } === ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=catalogService.send() viewSourceURL=srcview/index.html mx:Script ![CDATA[ private function filterProduct(item:Object):Boolean { return item.name.match(new RegExp(^ + brandText.text, i)); } ]] /mx:Script mx:HTTPService id=catalogService url=http://127.0.0.1/scratch/Flex/FlexDemo/catalog.xml; resultFormat=e4x / mx:XMLListCollection id=xlc source={catalogService.lastResult.*} filterFunction=filterProduct / mx:Panel title=Product Catalog width=380 height=385 mx:TileList dataProvider={xlc} width=100% height=300 columnCount=2 rowCount=2 mx:itemRenderer mx:Component mx:VBox paddingLeft=30 width=150 height=150 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Label text={data.name} / mx:Label text={data.price}/ mx:Label text={data.brand}/ /mx:VBox /mx:Component /mx:itemRenderer /mx:TileList mx:ControlBar mx:Label text=Brand / mx:TextInput id=brandText width=75 change=xlc.refresh() / /mx:ControlBar /mx:Panel /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] How to cast a WebService lastResult when CFC returnType=xml
Darren, If your XML nodes have attributes (ie. node label=foo/node) you can use the labelField attribute to control the labels. mx:Tree id=myTree labelField=@label/ If they dont (ie. foobar/foo) or if you want to do any sort of custom label logic, you need to use the labelFunction attribute to set the values appropriately. mx:Tree id=myTree2 labelFunction=myLabelFunc/ public function myLabelFunc (item:XML):String{ //if node has children if(item.children().toString() != ''){ return item.name(); } //no children, its a leaf so get the value else{ return item.toXMLString(); } } regards, peter From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Darren Houle Sent: Monday, August 21, 2006 4:33 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to cast a WebService lastResult when CFC returnType=xml Bump?? Darren From: Darren Houle [EMAIL PROTECTED]com Reply-To: [EMAIL PROTECTED]ups.com To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] How to cast a WebService lastResult when CFC returnType=xml Date: Fri, 18 Aug 2006 23:08:44 -0400 I have a ColdFusion Component (web service) that looks like... cffunction name=getEmployees access=remote output=false returntype=xml cfxml variable=myxml people person firstnameJohn/firstname lastnameSmith/lastname job titleDoctor/title descriptionblah blah blah/description /job /person person firstnameJane/firstname lastnameDoe/lastname job titleLawyer/title descriptionblah blah blah/description /job /person /people /cfxml cfreturn myxml /cffunction and some Flex code that looks like... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml creationComplete=TestService.getEmployees.send(); mx:WebService id=TestService wsdl=http://localhost/hr.cfc?wsdl mx:operation name=getEmployees / /mx:WebService mx:Tree id=myTree width=50% height=50% showRoot=false dataProvider={TestService.getEmployees.lastResult}/ /mx:Application But what I get is a Tree that looks like: Flex doesn't seem to be able to extract the XML from the SOAP message, which is just SOAP XML wrapping my XML data. Changing the Operation's resultFormat from e4x to xml to object changes the amount of junk in the Tree, but doesn't fix the problem. As a matter of fact, it works best when I leave off this attribute and let the Operation decide what resultFormat to use. Casting lastResult as XML or XMLList doesn't seem to help either, and neither does ArrayUtil.toArray(TestService.getEmployee.lastResult) Is there something I need to do to the lastResult to get it to work in Trees, DataGrids, etc? Like cast it as some other data type? Why doesn't e4x parse the SOAP message properly and extract my XML? Just about every example I can find out there shows people using HTTPService to pull back just the XML data without the SOAP webservice stuff, or else shows how to create XML inside the mxml code itself using mx:XML but I can find nothing that shows how to return XML from a CFC web service and use/parse it in Flex properly (as easy as, say, a CFC that returns a Query object.) Darren __._,_.___ -- 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: Help with adding datagrid to non-visible Sprite
On Wednesday 23 August 2006 13:12, wayneposner wrote: i've tried setting the height/width on the datagrid, the sprite the datagrid is being added to and the class level sprite, but nothing seems to work. When I check the properties in the debugger the values for height/width are 0 regardless of what I tried to set them to. Did you try putting the sprite on a visible object (say by using a viewstack and changing selectedIndex while you print) and/or calling printJob.start() etc. in a sperate method invoked by callLater() ? -- Tom Chiverton Helping to autoschediastically enhance interdependent schemas 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: Webservice Destination with Basic Authentication
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 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
Martin: OK . . . . so the lag time is when the data gets back to the end-user? Bottom line . . . . with all things being equal . . . . Does a web service request take longer to process on the server than aAMF request? If the answer is . . . . in general yes, then that can be an issue with an increase in users. If the answer is . . . . it depends on the data being requested and/or the data format then that seems to suggest thateveryone must runtests to compare results and thentest again based on scaling up. Is that about right? Thanks, Jack From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Martin WoodSent: Wednesday, August 23, 2006 8:13 AMTo: flexcoders@yahoogroups.comSubject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides Jack Caldwell wrote: Dave: I agree that a 1/3 of a second is not going to be noticed by the end-user. However, when you add 100s or 1,000s of users . . . . does that make a difference? I don't know . . . . that's why I am asking. You guys have the experience.It doesn't make any difference as the timings are on the client side, not the server.There will be some difference in time required to handle requests on the server which may be down to the data format but they would have to be investigated on a case by case basis.martin. __._,_.___ -- 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] Adobe? Choice of backend systems
I'm a little nervous on how quiet the Adobe guys are on this issue. They should be jumping all over this, explaining why the Adobe solutions are faster better. Shan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jack CaldwellSent: Wednesday, August 23, 2006 9:40 AMTo: flexcoders@yahoogroups.comSubject: [Junk E-Mail - LOW] RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides Martin: OK . . . . so the lag time is when the data gets back to the end-user? Bottom line . . . . with all things being equal . . . . Does a web service request take longer to process on the server than aAMF request? If the answer is . . . . in general yes, then that can be an issue with an increase in users. If the answer is . . . . it depends on the data being requested and/or the data format then that seems to suggest thateveryone must runtests to compare results and thentest again based on scaling up. Is that about right? Thanks, Jack From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Martin WoodSent: Wednesday, August 23, 2006 8:13 AMTo: [EMAIL PROTECTED]ups.comSubject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides Jack Caldwell wrote: Dave: I agree that a 1/3 of a second is not going to be noticed by the end-user. However, when you add 100s or 1,000s of users . . . . does that make a difference? I don't know . . . . that's why I am asking. You guys have the experience.It doesn't make any difference as the timings are on the client side, not the server.There will be some difference in time required to handle requests on the server which may be down to the data format but they would have to be investigated on a case by case basis.martin. --No virus found in this incoming message.Checked by AVG Free Edition.Version: 7.1.405 / Virus Database: 268.11.5/425 - Release Date: 8/22/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/425 - Release Date: 8/22/2006
Re: [flexcoders] How to bring a combo box component inside the dataGrid Component
Here's another link that might also shed some light on the subject. HTH... http://thesourcecode.org/?p=15 P E A C E Hasan Marx Media www.marxmedia.net hasan.otuome.com thesourcecode.org Adobe Certified Professional (Flash MX2004 Developer) __._,_.___ -- 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. __,_._,___
[Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
One quite important thing to keep in mind is that in many cases (say Java) the exact same servant class can be used for either RemoteObject or WebService, which means the server-side processing actually is basically identical. It also means that switching from RemoteObject to a web service is almost as simple as copying the classes from one directory to another. -- 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, Jack Caldwell [EMAIL PROTECTED] wrote: Martin: OK . . . . so the lag time is when the data gets back to the end-user? Bottom line . . . . with all things being equal . . . . Does a web service request take longer to process on the server than a AMF request? If the answer is . . . . in general yes, then that can be an issue with an increase in users. If the answer is . . . . it depends on the data being requested and/or the data format then that seems to suggest that everyone must run tests to compare results and then test again based on scaling up. Is that about right? Thanks, Jack _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Martin Wood Sent: Wednesday, August 23, 2006 8:13 AM To: flexcoders@yahoogroups.com Subject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides Jack Caldwell wrote: Dave: I agree that a 1/3 of a second is not going to be noticed by the end-user. However, when you add 100s or 1,000s of users . . . . does that make a difference? I don't know . . . . that's why I am asking. You guys have the experience. It doesn't make any difference as the timings are on the client side, not the server. There will be some difference in time required to handle requests on the server which may be down to the data format but they would have to be investigated on a case by case basis. martin. -- 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: 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/plain;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:Header /soapenv:Bodysoapenv:Fault xmlns:axis2=http://www.w3.org/2003/05/soap-envelope;faultcodeaxis2: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 [EMAIL PROTECTED] 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 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] Re: xml data http services
hi tracy your xml about it the xml data file is downloaded in cache. which i dont want coz it can expose the confidential data. is there any other way to use xml data file or http services -- 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/
[Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
--- In flexcoders@yahoogroups.com, Tom Lee [EMAIL PROTECTED] wrote: Do I think I should have to be making 10 sequential web service calls? No. But then again, I don't develop web services. Which is an interesting loop back to my initial reply to this thread where I discussed developing RIA's from the front to the back or as DK pointed out, using the UI to drive out the middle tier API's. See the issue you have isnt with the choice of marshalling prototcol. The issue is with an API that holds no fidelity with the user experience you are trying to present. In your case having to make multiple sequential calls. In other cases it can be much worse where the RIA has to shread and re-combine data feeds to match the experience. This is exactly what I pointed out as being one of the largest contributors to a poorly peforming RIA. It is the elephant in the room. -- Dave Wolf Cynergy Systems, Inc. Adobe Flex Alliance Partner http://www.cynergysystems.com http://www.cynergysystems.com/blogs Email: [EMAIL PROTECTED] Office: 866-CYNERGY -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Wolf Sent: Tuesday, August 22, 2006 4:20 PM To: flexcoders@yahoogroups.com Subject: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides 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. -- 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, Shannon Hicks shan@ wrote: Bob- Web Services / HTTP services are not built to be the primary backend of your flex applications. Because they are XML based, they have quite a bit more overhead than flex's built-in AMF (Action Message Format). AMF is smaller, faster and uses less bandwidth than XML. AMF is what FDS and ColdFusion 7.0.2 use to communicate to a Flex app. So let's say that your question is narrowed down to FDS or CF?. Adobe's ideal answer is yes. They are complimentary to each other, CF allows for wonderful rapid development of Flex apps, and FDS brings some amazing features to the table through it's Messaging an Data Management services. Web Services (SOAP) support is in Flex primarily to consume third-party data, allowing you to add it to your app.
RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
OK, so Ive watching this thread going back and forth over and over Now its time for my two cents. It looks like this thread began by someone saying that you cannot use web services in a real world flex application. Ive got to agree with Dave on this. You definitely can, and we have done it numerous times here at Cynergy. Are there tradeoffs? Yes. As others have said already in the post: The decision on what mechanism to use should be dealt with on a case by case basis. Lets consider a few things: Do the web services already exist and can they handle the current load? If they do, use them. Why reinvent the wheel? Yes, there is a performance advantage to using AMF, but most users will not notice the difference in transport speed it is fractions of a second. If your application is properly architected and your backend is optimized, the end user will never know the difference. I personally like using remote objects, but not every solution allows for this. In the cases where you cannot use remote objects, web services still work great. SOAP is a very verbose protocol, but by no means is it unusable. If that were the case, why would web services be so prevalent? Why would there be all the buzz about service oriented architectures? If you feel that a web service is too verbose or too slow, and you cant use remote objects, then use a HTTPService to return XML. There are many solutions. It really all boils down to how you use and retrieve your data and depends on your requirements and application architecture. If the processing time on the server is too much for your application to handle, then chances are there is a problem with your applications back end, not the webservice/serialization layer. To generalize and say that you should never use a web service is a very big mistake. -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jack Caldwell Sent: Wednesday, August 23, 2006 10:40 AM To: flexcoders@yahoogroups.com Subject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides Martin: OK . . . . so the lag time is when the data gets back to the end-user? Bottom line . . . . with all things being equal . . . . Does a web service request take longer to process on the server than aAMF request? If the answer is . . . . in general yes, then that can be an issue with an increase in users. If the answer is . . . . it depends on the data being requested and/or the data format then that seems to suggest thateveryone must runtests to compare results and thentest again based on scaling up. Is that about right? Thanks, Jack From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Martin Wood Sent: Wednesday, August 23, 2006 8:13 AM To: [EMAIL PROTECTED]ups.com Subject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides Jack Caldwell wrote: Dave: I agree that a 1/3 of a second is not going to be noticed by the end-user. However, when you add 100s or 1,000s of users . . . . does that make a difference? I don't know . . . . that's why I am asking. You guys have the experience. It doesn't make any difference as the timings are on the client side, not the server. There will be some difference in time required to handle requests on the server which may be down to the data format but they would have to be investigated on a case by case basis. martin. __._,_.___ -- 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 bring a combo box component inside the dataGrid Component
I just finished a sample application because I needed to do the same exact thing for a recent project. I posted my sample files and source on my blog, hope it helps: http://thanksmister.com/?p=24 - mr --- In flexcoders@yahoogroups.com, richinternetapps [EMAIL PROTECTED] wrote: Hi Folks, Is there a way to bring the combox box component inside the Grid where i can populate values for the combo box from XML File. -- 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] What is the best invalidation technique for non-UI classes?
Hi All! I have a class inherited from EventDispatcher and want to make some routine in the next frame, exactly as UIComponent does. But EventDispatcher does not dispatch Event.ENTER_FRAME event. What should I do instead? Whether Timer is ok or not? Any other ideas? Regards, Sergey. -- 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
Jack Caldwell wrote: Martin: OK . . . . so the lag time is when the data gets back to the end-user? exactly, its the time it takes for the flash player or actionscript code to convert the incoming data into a format usable by the application. Before in the flash world that was a big deal as XML processing was expensive and often tedious to code whilst remoting was natively implemented and provided you with typed business objects as a result of the call. With Flex 2 the differences are not so important as the features like data binding and e4x pretty much level the playing field for the data formats. Bottom line . . . . with all things being equal . . . . Does a web service request take longer to process on the server than a AMF request? If the answer is . . . . in general yes, then that can be an issue with an increase in users. If the answer is . . . . it depends on the data being requested and/or the data format then that seems to suggest that everyone must run tests to compare results and then test again based on scaling up. I suppose one of the main factors would be the server code that handles the incoming request and then transforms the business data into the required format to send back to the client. That could be anything from some hand written php code to a commercial remoting gateway. Its so context dependent that its impossible to make a general statement of the type 'Remoting performs better than Web Services' It would be interesting to see a comparison of the throughput you could expect when comparing different solutions on the same server hardware, e.g. PHP Nu-Soap against AMFPHP.. Jrun's remoting vs. OpenAMF vs JAX-WS etc.. and where they each perform the same business operation and return the same data.. but then there are other concerns such as memory usage and what else the server is used for and how it performs for those use cases. thats what i mean by you have to take it on a case by case basis. :) martin -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex 2 and document encryption
On Tuesday 22 August 2006 21:32, Evert | Collab wrote: Using https would be a good way.. that way everything will happen on a much lower level.. That works to mostly prevent the files while in transit, but if the poster meant that the server never sees the plain text it wont. -- Tom Chiverton Helping to advantageously incentivize bricks-and-clicks applications 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] Cairngorm and MVC: Quickie
On Wednesday 23 August 2006 02:03, Darren Houle wrote: Very true. Alternatively you could create these three data structure within the one ModelLocator and refer to them like... model.biz.userRole = ... model.core.adminViewStackState = ... model.icon.deleteButton = ... I would tend to go this way. -- Tom Chiverton Helping to vitalistically aggregate bricks-and-clicks materials 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] OT: Flex Developer Required in London area
Hi everyone, Sorry for the OT post. I'm looking for a Flex Developer that has solid Flex 1.5 experience. If you have Flex 2 experience it will be of benefit. This will be for a contract position for 3 months initially. Please drop me an email off list at niklas [at] prismix [dot] com Thanks! Regards Niklas -- Niklas Richardson Prismix Ltd UK based Flex and ColdFusion Specialists -- 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'm sure someone already pointed this out, but network latency is also a factor. AMF is a compressed format, so it can load faster and in that sense make your app more responsive. With XML web services, the tags themselves add a degree of overhead. There are schemes for compressing web services which can help. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Martin Wood Sent: Wednesday, August 23, 2006 11:27 AM To: flexcoders@yahoogroups.com Subject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides Jack Caldwell wrote: Martin: OK . . . . so the lag time is when the data gets back to the end-user? exactly, its the time it takes for the flash player or actionscript code to convert the incoming data into a format usable by the application. Before in the flash world that was a big deal as XML processing was expensive and often tedious to code whilst remoting was natively implemented and provided you with typed business objects as a result of the call. With Flex 2 the differences are not so important as the features like data binding and e4x pretty much level the playing field for the data formats. Bottom line . . . . with all things being equal . . . . Does a web service request take longer to process on the server than a AMF request? If the answer is . . . . in general yes, then that can be an issue with an increase in users. If the answer is . . . . it depends on the data being requested and/or the data format then that seems to suggest that everyone must run tests to compare results and then test again based on scaling up. I suppose one of the main factors would be the server code that handles the incoming request and then transforms the business data into the required format to send back to the client. That could be anything from some hand written php code to a commercial remoting gateway. Its so context dependent that its impossible to make a general statement of the type 'Remoting performs better than Web Services' It would be interesting to see a comparison of the throughput you could expect when comparing different solutions on the same server hardware, e.g. PHP Nu-Soap against AMFPHP.. Jrun's remoting vs. OpenAMF vs JAX-WS etc.. and where they each perform the same business operation and return the same data.. but then there are other concerns such as memory usage and what else the server is used for and how it performs for those use cases. thats what i mean by you have to take it on a case by case basis. :) martin -- 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/
[Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
In the cases where you cannot use remote objects, web services still work great Andrew, do you have any examples when one would not be able to use remote objects? I am interested to know if you have any technical reasons, rather than just economical. Cheers, Mark --- In flexcoders@yahoogroups.com, Andrew Trice [EMAIL PROTECTED] wrote: OK, so I've watching this thread going back and forth over and over... Now it's time for my two cents. It looks like this thread began by someone saying that you cannot use web services in a real world flex application. I've got to agree with Dave on this. You definitely can, and we have done it numerous times here at Cynergy. Are there tradeoffs? Yes. As others have said already in the post: The decision on what mechanism to use should be dealt with on a case by case basis. Let's consider a few things: 1.Do the web services already exist and can they handle the current load? If they do, use them. Why reinvent the wheel? 2.Yes, there is a performance advantage to using AMF, but most users will not notice the difference in transport speed... it is fractions of a second. If your application is properly architected and your backend is optimized, the end user will never know the difference. I personally like using remote objects, but not every solution allows for this. In the cases where you cannot use remote objects, web services still work great. SOAP is a very verbose protocol, but by no means is it unusable. If that were the case, why would web services be so prevalent? Why would there be all the buzz about service oriented architectures? If you feel that a web service is too verbose or too slow, and you can't use remote objects, then use a HTTPService to return XML. There are many solutions. It really all boils down to how you use and retrieve your data and depends on your requirements and application architecture. If the processing time on the server is too much for your application to handle, then chances are there is a problem with your application's back end, not the webservice/serialization layer. To generalize and say that you should never use a web service is a very big mistake. -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jack Caldwell Sent: Wednesday, August 23, 2006 10:40 AM To: flexcoders@yahoogroups.com Subject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides Martin: OK . . . . so the lag time is when the data gets back to the end-user? Bottom line . . . . with all things being equal . . . . Does a web service request take longer to process on the server than a AMF request? If the answer is . . . . in general yes, then that can be an issue with an increase in users. If the answer is . . . . it depends on the data being requested and/or the data format then that seems to suggest that everyone must run tests to compare results and then test again based on scaling up. Is that about right? Thanks, Jack From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Martin Wood Sent: Wednesday, August 23, 2006 8:13 AM To: flexcoders@yahoogroups.com Subject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides Jack Caldwell wrote: Dave: I agree that a 1/3 of a second is not going to be noticed by the end-user. However, when you add 100s or 1,000s of users . . . . does that make a difference? I don't know . . . . that's why I am asking. You guys have the experience. It doesn't make any difference as the timings are on the client side, not the server. There will be some difference in time required to handle requests on the server which may be down to the data format but they would have to be investigated on a case by case basis. martin. -- 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
Exactly so. My experience has been that some folks expect the Flash platform to be a means of improving the user experience for legacy systems. The data services themselves can't change: they're in use already by partners, or by other front ends. So, you end up going through a lot of client-side gyrations to give the illusion of better performance. Using AMF to squeeze every last bit of performance out of the data transfer can be an option, because you can implement as middleware. It looks like the original message was dealing with starting from scratch though... So I won't hijack the thread any further. ;) -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Wolf Sent: Wednesday, August 23, 2006 11:34 AM To: flexcoders@yahoogroups.com Subject: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides --- In flexcoders@yahoogroups.com, Tom Lee [EMAIL PROTECTED] wrote: Do I think I should have to be making 10 sequential web service calls? No. But then again, I don't develop web services. Which is an interesting loop back to my initial reply to this thread where I discussed developing RIA's from the front to the back or as DK pointed out, using the UI to drive out the middle tier API's. See the issue you have isnt with the choice of marshalling prototcol. The issue is with an API that holds no fidelity with the user experience you are trying to present. In your case having to make multiple sequential calls. In other cases it can be much worse where the RIA has to shread and re-combine data feeds to match the experience. This is exactly what I pointed out as being one of the largest contributors to a poorly peforming RIA. It is the elephant in the room. -- Dave Wolf Cynergy Systems, Inc. Adobe Flex Alliance Partner http://www.cynergysystems.com http://www.cynergysystems.com/blogs Email: [EMAIL PROTECTED] Office: 866-CYNERGY -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Wolf Sent: Tuesday, August 22, 2006 4:20 PM To: flexcoders@yahoogroups.com Subject: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides 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. -- Dave Wolf Cynergy Systems, Inc. Adobe Flex Alliance Partner http://www.cynergysystems.com http://www.cynergysystems.com/blogs Email: [EMAIL
[flexcoders] mic.setLoopback latency
I wonder if someone could try the following application, and see if they get a short delay between speaking into their microphone and hearing the loopback. Thats what Im getting here. Cheers, Tim ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute creationComplete=init() mx:Script ![CDATA[ private var mic:Microphone = Microphone.getMicrophone(); private function init ():void { mic.setLoopBack (true); } ]] /mx:Script /mx:Application __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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
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 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 exchange when things could be automated. Having worked at Cynergy Systems, everyone needs to realize that Carson, Dave and Team are industry leading professionals at Web Services. They know SOAP better than any single consulting firm that I know of. These guys were on teams at Sybase and Microsoft building the first generation of Web Services integration servers (MS BizTalk, EAServer)!!! They have the expertise to make Web Services/JAVA work seamlessly with Flex but this is out of reach for most (unless you hire them). They can jump through flaming hoops that few developers can with the FLEX / TOMCAT / AXIS / JAVA stack. They have been down a very hard road and have learning all the tricks to making this stack work very well for their clients. Looking back and knowing what I know now about Flex Data Services much of this hard work could have been dramatically simplified and automated (but then again Flex 2/FDS hadnt shipped yet). FDS makes all this hard work evaporate and makes easy for anyone to exchange data like an industry leading professional. The really funny part is that we are only talking about the RPC portions of Flex Data Services. Messaging and Data Management are really valuable features to understand and explore. These two features are 70% of the FDS product. We(Adobe) need to do a better job of making this value crystal clear. Flex Data Services is the most productive and high performance way to exchange data with the Flash Player. Period, Hands Down, Next! My 2 cents, Ted Patrick Flex Evangelist Adobe Systems Incorporated __._,_.___ -- 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
[flexcoders] Re: Adobe, Help Memory Leaking !!
Anyone have any ideas on this issue? Rich On 8/23/06, Rich Tretola [EMAIL PROTECTED] wrote: I have an application that uses many repeaters where the repeater's dataproviders are constantly updated which redraws the view. All look fine visually, however the flash player continues to use more and more memory. I created a demo version of this at http://www.everythingflex.com/flex2/MemoryTest/ I have buttons which up the amount of repeater items and then lower them and also attemp to delete the arraycollection, delete the dataprovider, etc but the memory never is recaptured. The source is also provided. Does anyone know how to get the garbage collection to run when the repeaters content changes?? Rich -- Rich Tretola mx:EverythingFlex/ http://www.EverythingFlex.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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
Simply turing on gzip compression has an amazing effect here dramatically reducing the total payload size of web service calls. Carson Carson HagerCynergy Systems, Inc.http://www.cynergysystems.comEmail: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom LeeSent: Wednesday, August 23, 2006 9:22 AMTo: flexcoders@yahoogroups.comSubject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides I'm sure someone already pointed this out, but network latency is also afactor. AMF is a compressed format, so it can load faster and in that sensemake your app more responsive. With XML web services, the tags themselvesadd a degree of overhead. There are schemes for compressing web serviceswhich can help.-Original Message-From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] OnBehalf Of Martin WoodSent: Wednesday, August 23, 2006 11:27 AMTo: [EMAIL PROTECTED]ups.comSubject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems- which providesJack Caldwell wrote: Martin: OK . . . . so the lag time is when the data gets back to the end-user?exactly, its the time it takes for the flash player or actionscript code to convert the incoming data into a format usable by the application.Before in the flash world that was a big deal as XML processing wasexpensive and often tedious to code whilst remoting was natively implemented andprovided you with typed business objects as a result of the call.With Flex 2 the differences are not so important as the features like data binding and e4x pretty much level the playing field for the data formats. Bottom line . . . . with all things being equal . . . . Does a web service request take longer to process on the server than a AMF request? If the answer is . . . . in general yes, then that can be an issue with an increase in users. If the answer is . . . . it depends on the data being requested and/or the data format then that seems to suggest that everyone must run tests to compare results and then test again based on scaling up.I suppose one of the main factors would be the server code that handles the incoming request and then transforms the business data into the requiredformat to send back to the client.That could be anything from some hand written php code to a commercialremoting gateway.Its so context dependent that its impossible to make a general statement ofthetype 'Remoting performs better than Web Services'It would be interesting to see a comparison of the throughput you couldexpect when comparing different solutions on the same server hardware, e.g. PHP Nu-Soap against AMFPHP.. Jrun's remoting vs. OpenAMF vs JAX-WS etc..and where they each perform the same business operation and return the samedata..but then there are other concerns such as memory usage and what else theserver is used for and how it performs for those use cases.thats what i mean by you have to take it on a case by case basis.:)martin--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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 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] Benoit Hediard: iTunes MP3 in flash player issue
Hi This email is for Benoit Hediard: You submitted an issue saying that an MP3 that has ID encoded with iTunes doesn't play in flash player. I tried reproducing with itunes 6.0.5.20 , but it played just fine. We also knew about an iTunes bug where the ID3 is encoded incorrectly, however my understanding was that the bug was fixed, which is the reason I couldn't repro with 6.0.5.20. So I closed out the issue when you first submitted it in the beta phase. Recently, you submitted this issue again, saying that you repro'ed with 6.0.5.20. I have not been able to repro. Can you please provide me the .mp3 file that you can't run in flash player 9? You ddin't leave your e-mail address, so this is why I'm sending out a blanket one to flexcoders yahoo group. Thanks, Amir Memon Quality Engineer for Flash Player Adobe Inc. -- 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/
[Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
Basically every webcontainer these days supports GZIP compression. We use Tomcat in many circumstances which is hyper configurable. We can actually tell it to only compress the SOAP traffic and to do so when it exceeds N bytes etc. So in effect we turn SOAP into a compressed binary format. That makes that differential much less relevant. -- 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, Tom Lee [EMAIL PROTECTED] wrote: I'm sure someone already pointed this out, but network latency is also a factor. AMF is a compressed format, so it can load faster and in that sense make your app more responsive. With XML web services, the tags themselves add a degree of overhead. There are schemes for compressing web services which can help. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Martin Wood Sent: Wednesday, August 23, 2006 11:27 AM To: flexcoders@yahoogroups.com Subject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides Jack Caldwell wrote: Martin: OK . . . . so the lag time is when the data gets back to the end-user? exactly, its the time it takes for the flash player or actionscript code to convert the incoming data into a format usable by the application. Before in the flash world that was a big deal as XML processing was expensive and often tedious to code whilst remoting was natively implemented and provided you with typed business objects as a result of the call. With Flex 2 the differences are not so important as the features like data binding and e4x pretty much level the playing field for the data formats. Bottom line . . . . with all things being equal . . . . Does a web service request take longer to process on the server than a AMF request? If the answer is . . . . in general yes, then that can be an issue with an increase in users. If the answer is . . . . it depends on the data being requested and/or the data format then that seems to suggest that everyone must run tests to compare results and then test again based on scaling up. I suppose one of the main factors would be the server code that handles the incoming request and then transforms the business data into the required format to send back to the client. That could be anything from some hand written php code to a commercial remoting gateway. Its so context dependent that its impossible to make a general statement of the type 'Remoting performs better than Web Services' It would be interesting to see a comparison of the throughput you could expect when comparing different solutions on the same server hardware, e.g. PHP Nu-Soap against AMFPHP.. Jrun's remoting vs. OpenAMF vs JAX-WS etc.. and where they each perform the same business operation and return the same data.. but then there are other concerns such as memory usage and what else the server is used for and how it performs for those use cases. thats what i mean by you have to take it on a case by case basis. :) martin -- 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
Dave, That is not true. Swaping RemoteObject and WebService is not as easy as you make it out to be. Web Services typing errors are highly dependent on the server side implementation. Your team knows how to configure the server side with WebServices but most developers cannot do this. With RemoteObject you get strong typing seamlessly in AMF3. The move from WebServices to RemoteObjects is much easier than the inverse. But then again you all are pros at Web Services. J Ted Patrick Flex Evangelist Adobe Systems Incorporated From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dave Wolf Sent: Wednesday, August 23, 2006 8:25 AM To: flexcoders@yahoogroups.com Subject: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides One quite important thing to keep in mind is that in many cases (say Java) the exact same servant class can be used for either RemoteObject or WebService, which means the server-side processing actually is basically identical. It also means that switching from RemoteObject to a web service is almost as simple as copying the classes from one directory to another. -- Dave Wolf Cynergy Systems, Inc. Adobe Flex Alliance Partner http://www.cynergysystems.com http://www.cynergysystems.com/blogs Email: [EMAIL PROTECTED]stems.com Office: 866-CYNERGY --- In [EMAIL PROTECTED]ups.com, Jack Caldwell jwcaldwell@... wrote: Martin: OK . . . . so the lag time is when the data gets back to the end-user? Bottom line . . . . with all things being equal . . . . Does a web service request take longer to process on the server than a AMF request? If the answer is . . . . in general yes, then that can be an issue with an increase in users. If the answer is . . . . it depends on the data being requested and/or the data format then that seems to suggest that everyone must run tests to compare results and then test again based on scaling up. Is that about right? Thanks, Jack _ From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Martin Wood Sent: Wednesday, August 23, 2006 8:13 AM To: [EMAIL PROTECTED]ups.com Subject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides Jack Caldwell wrote: Dave: I agree that a 1/3 of a second is not going to be noticed by the end-user. However, when you add 100s or 1,000s of users . . . . does that make a difference? I don't know . . . . that's why I am asking. You guys have the experience. It doesn't make any difference as the timings are on the client side, not the server. There will be some difference in time required to handle requests on the server which may be down to the data format but they would have to be investigated on a case by case basis. martin. __._,_.___ -- 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 !!
Rich, The app takes memory up 7MB then drops back to 5Mb on a GC run. There is no way to force the GC to run. Can you also send me your browser, os, player version. Also are you on a dual-core machine? Ted From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rich Tretola Sent: Wednesday, August 23, 2006 5:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Adobe, Help Memory Leaking !! I have an application that uses many repeaters where the repeater's dataproviders are constantly updated which redraws the view. All look fine visually, however the flash player continues to use more and more memory. I created a demo version of this at http://www.everythingflex.com/flex2/MemoryTest/ I have buttons which up the amount of repeater items and then lower them and also attemp to delete the arraycollection, delete the dataprovider, etc but the memory never is recaptured. The source is also provided. Does anyone know how to get the garbage collection to run when the repeaters content changes?? Rich __._,_.___ -- 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] edit Date within DataGrid
I have a question in regards to editing a date in a DataGrid. I have this code: mx:DataGrid id=memberGrid width=480 height=140 editable=true mx:columns mx:DataGridColumn textAlign=left dataField=fullName headerText=Name/ mx:DataGridColumn labelFunction=formatDate headerText=Start Date itemRenderer=mx.controls.DateField editorDataField=selectedDate/ /mx:columns /mx:DataGrid Where the labelFunction calls a function to edit and format a date (dd-mmm-), which works fine - but then I'd like to edit the date using the DateField. I know that it needs to be a date, but how does one do this? Do I need to create a custom itemrenderer to do this? When I use the DateField, the format of the date is funky and it doesn't show the correct date - unless I pick a new date. 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/
[Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
That is *exactly* what I am suggesting. Although not quite letting my UI drive the API, but using it to drive my API yes. -- 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, Douglas Knudsen [EMAIL PROTECTED] wrote: Dave, by 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 In short you are suggesting letting your UI drive the API the UI uses, eh? DK On 8/22/06, Dave Wolf [EMAIL PROTECTED] 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. -- 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, Shannon Hicks shan@ wrote: Bob- Web Services / HTTP services are not built to be the primary backend of your flex applications. Because they are XML based, they have quite a bit more overhead than flex's built-in AMF (Action Message Format). AMF is smaller, faster and uses less bandwidth than XML. AMF is what FDS and ColdFusion 7.0.2 use to communicate to a Flex app. So let's say that your question is narrowed down to FDS or CF?. Adobe's ideal answer is yes. They are complimentary to each other, CF allows for wonderful rapid development of Flex apps, and FDS brings some amazing features to the table through it's Messaging an Data Management services. Web Services (SOAP) support is in Flex primarily to consume third-party data, allowing you to add it to your app. Hope this points you in the right direction. Shan _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rhlarochelle Sent: Tuesday, August 22, 2006 10:27 AM To: flexcoders@yahoogroups.com Subject: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides best functionality Franck, I appreciate your respons. When you say Remote Objects/Flex Data Services provides the most advanced
RE: [flexcoders] Custom containers in Flex 2
There is an example in the Creating Components book of creating a subclass of VBox that might be useful: http://livedocs.macromedia.com/flex/2/docs/1737.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jgraham_usSent: Wednesday, August 23, 2006 9:20 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Custom containers in Flex 2 Any tips, tutorials or examples on creating custom containers anyone can point me to? Looks like the main methods to override are updateDisplayList() and measure().Anything else?Basically I am looking at doing some sort of canvas then implementing an autolayout feature for it. __._,_.___ -- 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: Custom containers in Flex 2
The documentation has most of this covered... See this topic on creating Advanced Visual components, and all the sub-topics. Read several times. Example is in there too. http://livedocs.macromedia.com/flex/2/docs/1721.html This page specifically has an example on overriding the layout mechanism of the VBox container: http://livedocs.macromedia.com/flex/2/docs/1737.html Here's a thread in flex-coders discussing the correct way to dynamically add child components to a custom container: http://groups.yahoo.com/group/flexcoders/message/47695 That should be enough to get you going (if you read, try, re-read, etc...) good luck! Thunder --- In flexcoders@yahoogroups.com, jgraham_us [EMAIL PROTECTED] wrote: Any tips, tutorials or examples on creating custom containers anyone can point me to? Looks like the main methods to override are updateDisplayList() and measure(). Anything else? Basically I am looking at doing some sort of canvas then implementing an autolayout feature for 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/
RE: [flexcoders] How to cast a WebService lastResult when CFC returnType=xml
Peter, Thanks! But I'm not using the results in a Tree or Grid, which seem to have some magical parsing happening inside for you. I just want to do something as simple as pulling a node value out of the incoming SOAP wrapped XML and using it in, say, a TextArea. But... the following doesn't work... mx:TextArea text={MyService.myOperation.lastResult.people.person.firstname} / nor does MyService.myOperation.lastResult.people.person[0].firstname MyService.myOperation.lastResult.person.firstname MyService.myOperation.lastResult.person[0].firstname or any other pattern I've tried. Amy suggested referencing the path all the way from the root node of the SOAP packet itself and treating the entire SOAP message as a bix XML result, instead of just the node path of the result. Something like... MyService.myOperation.lastResult.myOperationResult.people.person.firstname but I couldn't get that to work either. Darren From: Peter Watson [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to cast a WebService lastResult when CFC returnType=xml Date: Wed, 23 Aug 2006 07:29:48 -0700 Darren, If your XML nodes have attributes (ie. node label=foo/node) - you can use the 'labelField' attribute to control the labels. mx:Tree id=myTree labelField=@label/ If they don't (ie. foobar/foo) - or if you want to do any sort of custom label logic, you need to use the 'labelFunction' attribute to set the values appropriately. mx:Tree id=myTree2 labelFunction=myLabelFunc/ public function myLabelFunc (item:XML):String{ //if node has children if(item.children().toString() != ''){ return item.name(); } //no children, it's a leaf so get the value else{ return item.toXMLString(); } } regards, peter From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Darren Houle Sent: Monday, August 21, 2006 4:33 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to cast a WebService lastResult when CFC returnType=xml Bump?? Darren From: Darren Houle [EMAIL PROTECTED] mailto:lokka_%40hotmail.com Reply-To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] How to cast a WebService lastResult when CFC returnType=xml Date: Fri, 18 Aug 2006 23:08:44 -0400 I have a ColdFusion Component (web service) that looks like... cffunction name=getEmployees access=remote output=false returntype=xml cfxml variable=myxml people person firstnameJohn/firstname lastnameSmith/lastname job titleDoctor/title descriptionblah blah blah/description /job /person person firstnameJane/firstname lastnameDoe/lastname job titleLawyer/title descriptionblah blah blah/description /job /person /people /cfxml cfreturn myxml /cffunction and some Flex code that looks like... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml creationComplete=TestService.getEmployees.send(); mx:WebService id=TestService wsdl=http://localhost/hr.cfc?wsdl http://localhost/hr.cfc?wsdl mx:operation name=getEmployees / /mx:WebService mx:Tree id=myTree width=50% height=50% showRoot=false dataProvider={TestService.getEmployees.lastResult}/ /mx:Application But what I get is a Tree that looks like: Flex doesn't seem to be able to extract the XML from the SOAP message, which is just SOAP XML wrapping my XML data. Changing the Operation's resultFormat from e4x to xml to object changes the amount of junk in the Tree, but doesn't fix the problem. As a matter of fact, it works best when I leave off this attribute and let the Operation decide what resultFormat to use. Casting lastResult as XML or XMLList doesn't seem to help either, and neither does ArrayUtil.toArray(TestService.getEmployee.lastResult) Is there something I need to do to the lastResult to get it to work in Trees, DataGrids, etc? Like cast it as some other data type? Why doesn't e4x parse the SOAP message properly and extract my XML? Just about every example I can find out there shows people using HTTPService to pull back just the XML data without the SOAP webservice stuff, or else shows how to create XML inside the mxml code itself using mx:XML but I can find nothing that shows how to return XML from a CFC web service and use/parse it in Flex properly (as easy as, say, a CFC that returns a Query object.) Darren
[flexcoders] Similar Node Access Question
Don't know if this is the same problem as my recent, previous post, or if it's different, but I basically have the same question... Now I'm calling a CF WebService that returns a Query object... it just contains one row, one column, called FULLNAME. Using the WebService lastResult in a DataGrid's dataprovider works fine, there's a million examples of that, but trying to pull out that FULLNAME cell's string value is proving to be a challenge for me... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=IACleanService.authenticateUser.send() mx:WebService id=IACleanService wsdl=http://localhost/ia_cleanup.cfc?wsdl; mx:operation name=authenticateUser mx:request xmlns= usernamejsmith/username passwordasdf1234/password /mx:request /mx:operation /mx:WebService mx:DataGrid height=400 width=400 dataProvider={IACleanService.authenticateUser.lastResult} / mx:TextArea width=400 height=400 text={IACleanService.authenticateUser.lastResult.fullname} / /mx:Application The DataGrid above displays the FULLNAME field just fine, but the TextArea displays nothing. Doesn't help to uppercase it to lastResult.FULLNAME either. I'm probably missing something really simple, but... just about all the examples in the Flex documentation either show how to pull out a single node value from an HTTPService... or show how to use a WebService in a DataGrid... but I can't find any examples where single values are pulled out of a WebService result. Something where the result node values are split up and used in different places, like one node value is used as a role variable, another is used to set a model state variable, another is used as a button label, etc. I need an example of calling a WebService and breaking the result into pieces for use in multiple places, not just sticking the whole lastResult into the dreaded DataGrid. Any help would be appreciated :-) 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/
RE: [flexcoders] Benoit Hediard: iTunes MP3 in flash player issue
Indeed, I just made a test with a recently encoded file with iTunes and it worked. So I'm going to send you one the files that was causing a problem. Thank you for looking at this issue. Benoit Hediard -Message d'origine- De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de Amir Envoyé : mercredi 23 août 2006 18:09 À : flexcoders@yahoogroups.com Objet : [flexcoders] Benoit Hediard: iTunes MP3 in flash player issue Hi This email is for Benoit Hediard: You submitted an issue saying that an MP3 that has ID encoded with iTunes doesn't play in flash player. I tried reproducing with itunes 6.0.5.20 , but it played just fine. We also knew about an iTunes bug where the ID3 is encoded incorrectly, however my understanding was that the bug was fixed, which is the reason I couldn't repro with 6.0.5.20. So I closed out the issue when you first submitted it in the beta phase. Recently, you submitted this issue again, saying that you repro'ed with 6.0.5.20. I have not been able to repro. Can you please provide me the .mp3 file that you can't run in flash player 9? You ddin't leave your e-mail address, so this is why I'm sending out a blanket one to flexcoders yahoo group. Thanks, Amir Memon Quality Engineer for Flash Player Adobe Inc. -- 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] Populating a tree with E4X notation
Here is the working version :) Regards, Arul ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"mx:Script![CDATA[mx.collections.XMLListCollection;mx.collections.ArrayCollection; [Bindable] public var myData:XML =catalogcategory name="Companies" //catalog;function buildTree():void{/*you have created tags with the name "name" instead creating attribute *///myData.category.name[0]="Nat West PLC";//myData.category.name[0].name[0]="Nat West Reading";[EMAIL PROTECTED]"Nat West PLC";[EMAIL PROTECTED]"Nat West Reading";}]]/mx:Scriptmx:Panelmx:Tree id="prodTree" dataProvider="{myData}" width="200" showRoot="false" labelField="@name" enabled="true" borderStyle="inset"/mx:Button click="buildTree()" label="Build"//mx:Panel/mx:Application - Original Message - From: "jamiebadman" [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, August 22, 2006 6:35 PM Subject: [flexcoders] Populating a tree with E4X notation Hi, Wonder if someone can help... I'm trying to build a basic tree using E4X notation but it's going kinda weird - as you can see if you run the code below, the tree seems to show ok - but it also shows the XML over the top of the tree! I guess I'm doing something quite wrong here - could someone put me on the right track ? (code below) Thanks, Jamie. ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" mx:Script ![CDATA[ import mx.collections.XMLListCollection; import mx.collections.ArrayCollection; [Bindable] public var myData:XML = catalog category name="Companies" / /catalog; private function buildTree():void{ myData.category.name[0]="Nat West PLC"; myData.category.name[0].name[0]="Nat West Reading"; } ]] /mx:Script mx:Panel mx:Tree id="prodTree" dataProvider="{myData}" width="200" showRoot="false" labelField="@name" enabled="true" borderStyle="inset"/ mx:Button click="buildTree()" label="Build"/ /mx:Panel /mx:Application __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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. __,_._,___ treeTest.mxml Description: Binary data
[flexcoders] Remote object help again..
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; 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/; 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 faultString:'No destination 'ROTEST' exists in service flex.messaging.services.RemotingService' faultDetail:'null' I know my destination exists in my services-config.xml file, but for some reason it can not find it. I have set the channel correctly in my services-config.xml file as well. channels channel-definition id=my-cfamf class=mx.messaging.channels.AMFChannel endpoint uri=http://beta.homesmartagent.com/flex2gateway/; class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition /channels Can someone shed some light on this for me. -- 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: Custom containers in Flex 2
Heh,On that note :: I reread what I wrote and noticed something that some might not see right off the bat.this part ;override protected function updateDisplayList({ super.updateDisplayList (... mySlider.move(... mySlider.setActualSize(...}Should be (since you are doing this at runtime not createChildren();override protected function updateDisplayList({ super.updateDisplayList (... if (mySlider) { mySlider.move(... mySlider.setActualSize(... }} Always protect dynamic stuff like this. Then dumb runtime erros like this become a thing of the past.:)Peace, Mike On 8/23/06, thunderstumpgesatwork [EMAIL PROTECTED] wrote: The documentation has most of this covered... See this topic on creating Advanced Visual components, and all the sub-topics. Read several times. Example is in there too. http://livedocs.macromedia.com/flex/2/docs/1721.html This page specifically has an example on overriding the layout mechanism of the VBox container: http://livedocs.macromedia.com/flex/2/docs/1737.html Here's a thread in flex-coders discussing the correct way to dynamically add child components to a custom container: http://groups.yahoo.com/group/flexcoders/message/47695 That should be enough to get you going (if you read, try, re-read, etc...) good luck! Thunder --- In flexcoders@yahoogroups.com, jgraham_us [EMAIL PROTECTED] wrote: Any tips, tutorials or examples on creating custom containers anyone can point me to? Looks like the main methods to override are updateDisplayList() and measure(). Anything else? Basically I am looking at doing some sort of canvas then implementing an autolayout feature for it. -- 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. __,_._,___
[flexcoders] Flex 2 History Manager Oddities
I set up a virutal server in Apache (on my laptop) for my FB project using the address dev.djindexes.com, and set up that as a local address in my hosts file, and as a local address in IE. When I run my project - it runs in the address - great. However, when I try implementing HistoryManager, I get a security sandbox error saying that the LOC running in domain djindexes cannot access domain dev.djindexes.com. I deciced to try creating a new virtual domain starting with www instead - now it works fine. Seems I can re-create the behavior using any subdomain other than www - is this a bug? Or is there a known way to get the History Manager Lc to work with subdomains? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c) -- 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] FDS, VOs, and ignoring client-side properties
Again, thanks for the suggestions. I've tried manually implementing the IManaged interface and using a custom event name (per your suggestions), and I can't seem to get bindings to work on my unmanaged property. I've posted a simple test app at: http://www.phlod.com/TestBinding/TestBinding.htmland the source code is available at:http://www.phlod.com/TestBinding/srcview/ According to what you're saying, this should work right? Unfortunately as you see, bindings don't work for the checked property. Am I doing something wrong?As I mentioned before, if I manually implement the propertyChange event or allow Flex to generate it, then the code above works as expected. However, in our app, the DataStore then recognizes a change in the Managed ProjectTypeVO object ... which is exactly what we *don't* want. Also, our corporation has a support contract with Adobe for Flex. Is this an issue we should take up there? Or will they just redirect us back to you? Let me know, and thanks for all your help!Jim 2006/8/22, Jeff Vroom [EMAIL PROTECTED]: I think the problem is that currently when you specify [Managed] on a class, we will do code-generation for all properties of the class, even those properties which explicitly specify the [Bindable(event="someEvent")] metadata tag on them. (If your class specifies [Bindable], we do skip code-gen for the property if it has a per-property metadata tag though). There is a bug opened on this and I think we'll fix it soon. In the meantime, probably the only option is to take out the [Managed] tag which would require you to add the managed code yourself to that class. For the properties you want to FDS to ignore, just do not fire the PropertyChangedEvent. Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Monday, August 21, 2006 9:54 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] FDS, VOs, and ignoring client-side properties Hmm, if you can send us a smaller example we can look but I believe that the approach that I mentioned should work. If you have bindings that fire because of events that aren't "propertyChanged" the managed stuff shouldn't notice. Matt From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Jim Laing Sent: Thursday, August 17, 2006 10:15 AM To: [EMAIL PROTECTED]ups.com Subject: Re: [flexcoders] FDS, VOs, and ignoring client-side properties I tried doing exactly that (dispatching the custom event in my setter) when using implicit getters/setters for my unmanagedProp ... but for some reason the bindings didn't work. However, if I use a propertyChange event (either dispatching it myself or letting Flex generate it), the bindings seems to work fine. However, as I said, in this case it still doesn't accomplish what I want ( i.e. having the DataStore ignore that property). Even if I could make the bindings with with my custom binding event, I'm not sure it would accomplish what I want. Jim 2006/8/17, Matt Chotin [EMAIL PROTECTED] : If you do [Bindable(event=unmanaged)] it is your responsibility to dispatch the unmanaged event. If you just do [Bindable] it will dispatch the propertyChange event which will case management to notice. So write a getter/setter with [Bindable(event=unmanagedPropChange)] and then in the setter dispatch that event. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jim Laing Sent: Thursday, August 17, 2006 6:57 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FDS, VOs, and ignoring client-side properties Thanks for the idea, Matt. Unfortunately, it doesn't seem to work. I forgot to mention that my unmanaged property needs to be bindable, and it seems that enabling binding on this property causes the DataStore to keep track of the property just like all the managed properties. Curiously, binding on the unmanaged property only works when I don't use a custom event name. Simply saying [Bindable] on the unmanaged property causes the binding to work as it should (but also causes the unmanaged property to become managed). Saying [Bindable(event=someEvent)] causes the property to be treated as unmanaged ... but also causes binding not to work. I also tried using implicit getters/setters on the unmanaged property with similar results. Below is code similar to the code I used. Let me know if I'm doing something wrong. And thanks for the suggestion! Jim package com.wgint.navigator.vo { import mx.data.utils.Managed; import mx.data.IManaged; import mx.utils.UIDUtil; import mx.events.PropertyChangeEvent; import flash.events.EventDispatcher; import flash.events.IEventDispatcher; import flash.events.Event; [RemoteClass(alias=com.wgint.navigator.vo.ProjectTypeVO)] public class ProjectTypeVO implements IManaged { [Bindable(event=unmanagedPropChanged)] public var unmanagedProp: Boolean; private var
[flexcoders] Functionality Between Components and the Main Application
Hi! I've been trying to figure out how to do this sort of thing, and thought I'd ask before messing with it anymore. I have a toolbar that's in its own component, and it has some buttons on it that will open new windows/popups. What I need to have happen is, when one of the buttons gets clicked, the window pops up inside a container that's on the main application. Right now they show up at the top corner of the toolbar. I gave the VBox in the middle of the main application an ID, but when I try to tell the toolbar to open the window there, it gives me an error because that ID doesn't exist inside the toolbar... I've also tried telling the button to run a function in the main application to open the popup but it tells me that I'm calling a possibly undefined method through a reference with static type Class. I hope that makes sense. Any ideas? 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] Re: AMFPHP: Mapping date objects between PHP and Flex
--- In flexcoders@yahoogroups.com, Oriol Gual [EMAIL PROTECTED] wrote: I had already posted a solution some posts ago, but this will be the solution to you: LOL... Sorry, I read your post but I didn't realize that I could apply your solution to my Cairngorm VOs. Yes, it works. Thank you! 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/
Re: [flexcoders] Adobe, Help Memory Leaking !!
I am testing locally on a pentium m 1.6 2 gigs ram FP 9.16I have tried firefox, and ie on winxpOn 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 and the memory is out of control, eventually crashing the browser (remember I have 2 gigs of ram). RichOn 8/23/06, Ted Patrick [EMAIL PROTECTED] wrote: Rich, The app takes memory up 7MB then drops back to 5Mb on a GC run. There is no way to force the GC to run. Can you also send me your browser, os, player version. Also are you on a dual-core machine? Ted From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rich Tretola Sent: Wednesday, August 23, 2006 5:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Adobe, Help Memory Leaking !! I have an application that uses many repeaters where the repeater's dataproviders are constantly updated which redraws the view. All look fine visually, however the flash player continues to use more and more memory. I created a demo version of this at http://www.everythingflex.com/flex2/MemoryTest/ I have buttons which up the amount of repeater items and then lower them and also attemp to delete the arraycollection, delete the dataprovider, etc but the memory never is recaptured. The source is also provided. Does anyone know how to get the garbage collection to run when the repeaters content changes?? Rich -- Rich Tretolamx:EverythingFlex/http://www.EverythingFlex.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] Functionality Between Components and the Main Application
Your custom component should dispatch its events. The parent application which should be listening for them. Something like this might work: comp:MyComp itemClicked=popUpWindow(event)/ Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Megan Sent: Wednesday, August 23, 2006 1:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Functionality Between Components and the Main Application Hi! I've been trying to figure out how to do this sort of thing, and thought I'd ask before messing with it anymore. I have a toolbar that's in its own component, and it has some buttons on it that will open new windows/popups. What I need to have happen is, when one of the buttons gets clicked, the window pops up inside a container that's on the main application. Right now they show up at the top corner of the toolbar. I gave the VBox in the middle of the main application an ID, but when I try to tell the toolbar to open the window there, it gives me an error because that ID doesn't exist inside the toolbar... I've also tried telling the button to run a function in the main application to open the popup but it tells me that I'm calling a possibly undefined method through a reference with static type Class. I hope that makes sense. Any ideas? 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 -- 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 and document encryption
Does anyone have a method of encrypting a file on the Client prior to an upload to the server? I need to build a Flex based frontend to replace a PureEdge system which is capable of doing this. SSL only encrypts the message, NOT a document uploaded.Are there any action script libraries for DES3 out there? --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 22 August 2006 21:32, Evert | Collab wrote: Using https would be a good way.. that way everything will happen on a much lower level.. That works to mostly prevent the files while in transit, but if the poster meant that the server never sees the plain text it wont. -- Tom Chiverton Helping to advantageously incentivize bricks-and-clicks applications 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] mx:Button but without the border
Just to note something that got me with skinning a button was that I was using a toggle button. When using one you have to define additional skins for the selected state ala: .MuteButton { upSkin: Embed(source=/skin_assets/AudioOn.png); downSkin: Embed(source=/skin_assets/AudioOff.png); selectedUpSkin: Embed(source=/skin_assets/AudioOff.png); selectedDownSkin: Embed(source=/skin_assets/AudioOn.png); overSkin: Embed(source=/skin_assets/AudioOnOver.png); selectedOverSkin: Embed(source=/skin_assets/AudioOffOver.png); } hth someone :) Impudent1 LeapFrog Productions -- 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] Cairngorm 2 - Web Service event handlers
I have a cairngorm 2 app that uses multiple delegates to call different methods of a single web service. The problem is, each delegate adds it's own onResult and onFault events, so that when the web service operation is called, *ALL* of the onResult functions are called instead of just the one associated with the calling delegate. For example, one delegate has the following code: this.service = ServiceLocator.getInstance().getService (sym_security_standard) as WebService; service.addEventListener(ResultEvent.RESULT, sym_security_sp_login_search_onResult); service.addEventListener(FaultEvent.FAULT, sym_security_sp_login_search_onFault); Another delegate has the following (similar) code: this.service = ServiceLocator.getInstance().getService (sym_security_standard) as WebService; service.addEventListener(ResultEvent.RESULT, sym_security_sp_group_search_onResult); service.addEventListener(FaultEvent.FAULT, sym_security_sp_group_search_onFault); Since there's only one instance of the ServiceLocator, each delegate is registering onResult / onFault events to the *same* object instance, and therefore the onResult event triggers the onResult function of multiple delegates instead of the single/target delegate. Any ideas on how to avoid this? Thanks in advance! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] 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, Jeremy Rottman [EMAIL PROTECTED] 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; 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/; 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 faultString:'No destination 'ROTEST' exists in service flex.messaging.services.RemotingService' faultDetail:'null' I know my destination exists in my services-config.xml file, but for some reason it can not find it. I have set the channel correctly in my services-config.xml file as well. channels channel-definition id=my-cfamf class=mx.messaging.channels.AMFChannel endpoint uri=http://beta.homesmartagent.com/flex2gateway/; class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition /channels Can someone shed some light on this for me. -- 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] Embedded SWF as backgroundImage causing mouseOut event to dispatch
Hi All,I've created a container which contains a couple of sub-containers that have SWF symbols set to the backgroundImage. Problem is occurring when I set a mouseOver/mouseOut on the parent container, having the backgroundImages causes the mouseOut to get fired on the parent container. Any solutions to prevent this from happening? Example :[Embed(source='/assets/swf/elements.swf', symbol='flag_start')][Bindable] private var flag_start:Class;mx:HBox id=panelParent mouseOver=overMouse(event) mouseOut=outMouse(event) width=100% height=100% //This container will cause the parent to dispatch the mouseOut event because of the backgroundImage // remove the backgroundImage and it doesn't happen mx:HBox id=flag_start_box height=100% width=50% backgroundImage={flag_start} / /mx:HBoxThanks in advance,Brendan __._,_.___ -- 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, 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: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Choice of backend systems - which provides best functionality Date: Tue, 22 Aug 2006 18:03:24 +0200 Hi Barry, Im not sure if I can be of much help here. Im not into PHP, Im 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, dont 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 vendor lock-in, which I consider undesirable. * The trend in my business is that more and more you get projects only for a front-end or back-end solution. In the past it occurred more that you had to build them together, but that is changing. Its very acceptable to request a back-end to expose its operations through webservices. Its not very accetable to request them to expose it via FDS or something like that. To be fair, there are some disadvantages using web services as well; among others: * No automatic conversion of the web service results into your custom action script classes. You have to make converters yourself to accomplish this. With FDS/AMF I understand you can have this conversion automatically done for you. * Performance. People tend to say that webservices are slow. Its true that the serialization/deserialization of the XML (both on client and server) side takes computing time. My experiences so far are that this extra computing time is not causing any serious damage in the user experience. * Flex has some trouble communicating with DOC/Literal encoded webservices. Especially in the .Net corner this is causing problems. But that should be temporarily ... The adobe guys are working on it and hopefully in a next release these issues will be fixed. For me the advantages of webservices by far outweigh the disadvantages. So if you ask me: use webservices! You keep your freedom ... Cheers, Franck _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of barry.beattie Sent: Tuesday, August 22, 2006 9:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Choice of backend systems - which provides best functionality Franck and Doug: may I be so bold as to include here some information I sent to our programming team for them to have some context? I offer it here as a talking point only - and would invite any comments or corrections to help me gain a better understanding myself ... this has just been gathered by my own ad-hoc investigations. the context of the email was a report that Adobe were seriously targeting PHP developers for Flex. regarding Flash remoting: some background to put it into context: there are three basic ways of getting communication happening between a SWF (now-a-days built with Flex) and server-side code: webservices XML HTTP requests Flash Remoting (using the Async Message Format - AMF) PHPAMF (Flash remoting with PHP) is not a Macromedia/Adobe product. It was reverse engineered by the PHP community to use Flash remoting. It's been around for a few years (that I know of) and may be even more popular than CF-AMF (don't know for sure) here's the important bit: PHPAMF, OpenAMF, the Adobe .NET/ Java remoting add-in and ColdFusion 6.1 remoting all use the AMF0 protocol. ColdFusion 7.02 and FlexDataServices (Java) all use AMF3 What's the diff? 2 things: Apart from some removal of dumb stuff-ups and a reduction of data packet size (thanx to new encoding), AMF3 is very strongly typed which allows a seamless (and easy) mapping/conversion between server side objects (eg: Java value objects and ColdFusion's CFC's). This is why FlexBuilder can have a simple wizard to take your CFC and create Actionscript classes from it (and/or visa-versa). Before it was all manual with a tonne of testing
RE: [flexcoders] FDS, VOs, and ignoring client-side properties
Hi Jim, 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. Best, Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Laing Sent: Wednesday, August 23, 2006 11:31 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FDS, VOs, and ignoring client-side properties Again, thanks for the suggestions. I've tried manually implementing the IManaged interface and using a custom event name (per your suggestions), and I can't seem to get bindings to work on my unmanaged property. I've posted a simple test app at: http://www.phlod.com/TestBinding/TestBinding.html and the source code is available at: http://www.phlod.com/TestBinding/srcview/ According to what you're saying, this should work right? Unfortunately as you see, bindings don't work for the checked property. Am I doing something wrong? As I mentioned before, if I manually implement the propertyChange event or allow Flex to generate it, then the code above works as expected. However, in our app, the DataStore then recognizes a change in the Managed ProjectTypeVO object ... which is exactly what we *don't* want. Also, our corporation has a support contract with Adobe for Flex. Is this an issue we should take up there? Or will they just redirect us back to you? Let me know, and thanks for all your help! Jim 2006/8/22, Jeff Vroom [EMAIL PROTECTED]: I think the problem is that currently when you specify [Managed] on a class, we will do code-generation for all properties of the class, even those properties which explicitly specify the [Bindable(event=someEvent)] metadata tag on them. (If your class specifies [Bindable], we do skip code-gen for the property if it has a per-property metadata tag though). There is a bug opened on this and I think we'll fix it soon. In the meantime, probably the only option is to take out the [Managed] tag which would require you to add the managed code yourself to that class. For the properties you want to FDS to ignore, just do not fire the PropertyChangedEvent. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Monday, August 21, 2006 9:54 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] FDS, VOs, and ignoring client-side properties Hmm, if you can send us a smaller example we can look but I believe that the approach that I mentioned should work. If you have bindings that fire because of events that aren't propertyChanged the managed stuff shouldn't notice. Matt From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Laing Sent: Thursday, August 17, 2006 10:15 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FDS, VOs, and ignoring client-side properties I tried doing exactly that (dispatching the custom event in my setter) when using implicit getters/setters for my unmanagedProp ... but for some reason the bindings didn't work. However, if I use a propertyChange event (either dispatching it myself or letting Flex generate it), the bindings seems to work fine. However, as I said, in this case it still doesn't accomplish what I want ( i.e. having the DataStore ignore that property). Even if I could make the bindings with with my custom binding event, I'm not sure it would accomplish what I want. Jim 2006/8/17, Matt Chotin [EMAIL PROTECTED] : If you do [Bindable(event=unmanaged)] it is your responsibility to dispatch the unmanaged event. If you just do [Bindable] it will dispatch the propertyChange event which will case management to notice. So write a getter/setter with [Bindable(event=unmanagedPropChange)] and then in the setter dispatch that event. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Laing Sent: Thursday, August 17, 2006 6:57 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FDS, VOs, and ignoring client-side properties Thanks for the idea, Matt. Unfortunately, it doesn't seem to work. I forgot to mention that my unmanaged property needs to be bindable, and it seems that enabling binding on this property causes the DataStore to keep track of the property just like all the managed properties. Curiously, binding on the unmanaged property only works when I don't use a custom event name. Simply saying [Bindable] on the unmanaged property causes the binding to work as it should (but also causes the unmanaged property to become managed). Saying [Bindable(event=someEvent)] causes the property to be treated as unmanaged ... but also causes binding not to work. I also tried using implicit getters/setters on the unmanaged property with similar results. Below is code similar to the code I used. Let me know if I'm doing
[flexcoders] recurse tree and set selectedNode
Hello, I am trying to reset the selectedNode property on the tree control after I have changed a value in the dataProvider with this retrieveNode() function... private function retrieveNode(theNode):TreeNode{ for(var index in theNode.getChildNodes()){ var node:TreeNode = TreeNode(theNode.getChildNodes()[index]); if(node.getData().periodID == view.txtPeriodID.text){ return theNode.getTreeNodeAt(index); } retrieveNode(node); } } view.treeCalendar.selectedNode = retrieveNode(view.treeCalendar.dataProvider); why won't the treeCalendar.selectedNode property accept this value? But this getTreeNode() function will work? private function getTreeNode() { if (view.txtPeriodID.text != null) { var node:TreeNode = TreeNode(view.treeCalendar.dataProvider.getChildNodes()[0]); while (node != null) { if(node.getData().periodID == view.txtPeriodID.text){ return node; } node = TreeNode(node.getChildNodes()[0]); } } return null; } -- 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] mx:Button but without the border
Just another note;You can kill the button skins by setting their style to nullPeace, MikeOn 8/23/06, Impudent1 [EMAIL PROTECTED] wrote: Just to note something that got me with skinning a button was that I was using a toggle button. When using one you have to define additional skins for the selected state ala: .MuteButton { upSkin: Embed(source=/skin_assets/AudioOn.png); downSkin: Embed(source=/skin_assets/AudioOff.png); selectedUpSkin: Embed(source=/skin_assets/AudioOff.png); selectedDownSkin: Embed(source=/skin_assets/AudioOn.png); overSkin: Embed(source=/skin_assets/AudioOnOver.png); selectedOverSkin: Embed(source=/skin_assets/AudioOffOver.png); } hth someone :) Impudent1 LeapFrog Productions -- 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] 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? RichOn 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 and the memory is out of control, eventually crashing the browser (remember I have 2 gigs of ram). Rich On 8/23/06, Ted Patrick [EMAIL PROTECTED] wrote: Rich, The app takes memory up 7MB then drops back to 5Mb on a GC run. There is no way to force the GC to run. Can you also send me your browser, os, player version. Also are you on a dual-core machine? Ted From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rich Tretola Sent: Wednesday, August 23, 2006 5:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Adobe, Help Memory Leaking !! I have an application that uses many repeaters where the repeater's dataproviders are constantly updated which redraws the view. All look fine visually, however the flash player continues to use more and more memory. I created a demo version of this at http://www.everythingflex.com/flex2/MemoryTest/ I have buttons which up the amount of repeater items and then lower them and also attemp to delete the arraycollection, delete the dataprovider, etc but the memory never is recaptured. The source is also provided. Does anyone know how to get the garbage collection to run when the repeaters content changes?? Rich -- Rich Tretola mx:EverythingFlex/ http://www.EverythingFlex.com -- Rich Tretolamx:EverythingFlex/http://www.EverythingFlex.com __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design 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: Webservice Destination with Basic Authentication
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/plain;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:Header /soapenv:Bodysoapenv:Fault xmlns:axis2=http://www.w3.org/2003/05/soap-envelope;faultcodeaxis2: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 [EMAIL PROTECTED] 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 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: Disabling a nested menu item in a menu bar?
Hi Jeff MenuBar.getMenuAt() returns a reference to a Menu. getMenuAt() is a method on MenuBar and menuItems is a property on MenuBar, which is why you encounter the errors below when you try to use those APIs on a Menu. Since Menus are dynamically created as needed, there is a possibility a nested child menu has not been created yet. As menus get created, MenuBar adds those menus to its menus array. menus is a handy array that stores Menus created for that MenuBar control and you might find that handy for your needs. If you cant guarantee that the menus have been created but you still want to walk your MenuBar, you can go at it from a data-centric point of view. You can use the MenuBars dataDescriptor to walk the MenuBars data looking for children (hasChildren(), getChildren() will be handy) at each node. If children exist, you know that node has a sub-menu. One last thing it looks like your original question was how to disable menu items. Since disabling/enabling is a data-driven functionality (all you need to do is toggle the enabled property) you can do it through the data bound to the MenuBar instead of walking the MenuBars individual Menus and sub-Menus. For example, you can use e4x to access the node you want to disable in the MenuBar dataProvider and set the enabled attribute to false and boom, your MenuBar will show that menu item as disabled without any extra work. Or, you can go at it through your MenuBars dataDescriptor and find the node you want to disable and use IMenuDataDescriptor.setEnabled() to disable that node. HTH deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jeff tapper Sent: Monday, August 21, 2006 12:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Disabling a nested menu item in a menu bar? Sadly, thats where the problems started for me. I'm able to get at the top level items, using getMenuAt or even using the menuItems array, but sadly, i cant seem to get a handle on the first child menu var myMenu:MenuBar = myMenuBar; var nextLevel:* = myMenu.getMenuAt(0); // throws error Property menuItems not found on mx.controls.Menu var firstNestedChild:* = nextLevel.menuItems; // throws error (Property getMenuAt not found on mx.controls.Menu) var firstNestedChild:* = nextLevel.getMenuAt(0); so, coming back to the original question, what syntax can i use to get a handle on the nested children MenuBarItems? --- In [EMAIL PROTECTED]ups.com, Tim Hoff [EMAIL PROTECTED] wrote: Bummer - sorry, Probably need to look at MenuBar.getMenuAt(index). -TH --- In [EMAIL PROTECTED]ups.com, jeff tapper jeff@ wrote: unfortunately not, its populated dynamically at run time. Any other ideas on how to address a nested child of the menu? --- In [EMAIL PROTECTED]ups.com, Tim Hoff TimHoff@ wrote: Hi Jeff, You can handle this with binding. Something like this: menuItem label=File enabled={model.FileMenuEnabledFlags (0)} menuItem label=New enabled={model.FileMenuEnabledFlags (1)}/ menuItem label=Open enabled={model.FileMenuEnabledFlags (2)}/ menuItem label=Save enabled={model.FileMenuEnabledFlags (3)}/ /menuItem model.FileMenuEnabledFlags is an array of Boolean values. -TH --- In [EMAIL PROTECTED]ups.com, jeff tapper jeff@ wrote: Anyone have a clue how to disable a menu bar item, when it is not the top level? Given a structure like this: menuItem label=File menuItem label=New / menuItem label=Open / menuItem label=Save / /menuItem I can easily get a handle on the root node (File), by accessing myMenu.menuItems[0], however, i'm banging my head against the wall trying to get a handle on Save as a MenuBarItem, as the File item doesnt seem to have child items representing the others. Can someone point me in the right direction here? 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. __,_._,___
[flexcoders] Flex / Coldfusion / Combobox / Retrieve selected data value
Ok, so I've created a combo box with id cvcompanyValue, then I call my coldfusion cfc and return a query with two fields data and label. Data holding a list of company IDs and label holding the corresponding company names. Then I set the combobox provider to the result and everything populates as it should. I can easily return the selected label in the combobox using: Alert.show(cvcompanyValue.selectedLabel.valueOf()); But, how do I return the data of the selected combobox (my original IDs)? Do I have to sort through the ArrayCollection until I find the matching label? I can't imagine there isn't something like: Alert.show(cvcompanyValue.selectedData.valueOf()); Help please! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex / Coldfusion / Combobox / Retrieve selected data value
Alert.show(cvcompanyValue.selectedItem.data);selectedItem 'holds' the complete object in the dataprovider that is selected. This is a really neat uber kewl treat, eh?Ironically a coworker asked me the same question minutes ago. DKOn 8/23/06, michrx7 [EMAIL PROTECTED] wrote: Ok, so I've created a combo box with id cvcompanyValue, then I call mycoldfusion cfc and return a query with two fields data and label.Data holding a list of company IDs and label holding the corresponding company names. Then I set the combobox provider to the result andeverything populates as it should.I can easily return the selected label in the combobox using:Alert.show(cvcompanyValue.selectedLabel.valueOf ());But, how do I return the data of the selected combobox (my originalIDs)? Do I have to sort through the ArrayCollection until I find thematching label? I can't imagine there isn't something like: Alert.show(cvcompanyValue.selectedData.valueOf());Help please!--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? __._,_.___ -- 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] AWT-EventQueue-0 java.lang.NullPointerException
Hi Valy, This is a Java2D bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6358034 I believe it can be safely ignored. Best, Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Valy Sivec Sent: Wednesday, August 23, 2006 6:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] AWT-EventQueue-0 java.lang.NullPointerException I have a FLEX application that runs on a Tomcat 5 server. I leave the application open over night and I see this error in the log. Have you guys seen anything like this? I use Flex 2.0/Tomcat 5 on development env. Any suggestions? Best regards, Valy Sivec Exception in thread AWT-EventQueue-0 java.lang.NullPointerException at sun.awt.Win32GraphicsEnvironment.displayChanged(Win32GraphicsEnvironm ent.java:109) at sun.awt.windows.WToolkit$4.run(WToolkit.java:698) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh read.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -- 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
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.cynergysystems.com http://www.cynergysystems.com/blogs Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.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: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.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 vendor lock-in, which I consider undesirable. *The trend in my business is that more and more you get projects only for a front-end or back-end solution. In the past it occurred more that you had to build them together, but that is changing. It's very acceptable to request a back-end to expose its operations through webservices. It's not very accetable to request them to expose it via FDS or something like that. To be fair, there are some disadvantages using web services as well; among others: *No automatic conversion of the web service results into your custom action script classes. You have to make converters yourself to accomplish this. With FDS/AMF I understand you can have this conversion automatically done for you. *Performance. People tend to say that webservices are slow. It's true that the serialization/deserialization of the XML (both on client and server) side takes computing time. My experiences so far are that this extra computing time is not causing any serious damage in the user experience. *Flex has some trouble communicating with DOC/Literal encoded webservices. Especially in the .Net corner this is causing problems. But that should be temporarily ... The adobe guys are working on it and hopefully in a next release these issues will be fixed. For me the advantages of webservices by far outweigh the disadvantages. So if you ask me: use webservices! You keep your freedom ... Cheers, Franck _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of barry.beattie Sent: Tuesday, August 22, 2006 9:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Choice of backend systems - which provides best functionality Franck and Doug: may I be so bold as to include here some information I sent to our programming team for them to have some context? I offer it here as a talking point only - and would invite any comments or corrections to help me gain a better understanding myself ... this has just been gathered by my own ad-hoc investigations. the context of the email was a report that Adobe were seriously targeting PHP developers for Flex. regarding Flash remoting: some background to put it into context: there are three basic ways of getting communication happening between a SWF (now-a-days built with Flex) and server-side code: webservices XML HTTP requests Flash Remoting (using the Async Message Format - AMF) PHPAMF (Flash remoting with PHP) is not a Macromedia/Adobe product. It was reverse engineered by the PHP community to use Flash remoting. It's been around for a few years (that I know of) and may be even more popular than CF-AMF (don't know for sure) here's the important bit: PHPAMF, OpenAMF, the Adobe .NET/ Java remoting add-in
[flexcoders] Flash Data Services - help needed
Hi everyone, finally i found the time to try out the data services. I`m using tomcat 5.5 and Java Open Transaction Manager form my basic setup. I was able to run the samples that ship with fds but now when i try to set up my own projects i get stuck with some errors. I get the following message from the tomcat logs: Exception in thread RTMP-Server flex.messaging.endpoints.rtmp.RTMPException: The RTMP server has encountered a fatal exception starting up: Address already in use: bind at flex.messaging.endpoints.rtmp.BaseNIORTMPServer.run(BaseNIORTMPServer.java:310) at java.lang.Thread.run(Unknown Source) Let me say i`m not a server or java guy so if anyone has an idea. It would also be good if someone could point me to a basic tutorial for setting up fds and building a simple application not based on the samples that ship with fds. For me it would be important to know how to configure the various configuration xml files in the flex folder. Thanx for any help Benz __._,_.___ -- 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. __,_._,___