Re: [flexcoders] XMPP AS3 class libraries on Labs
I'm not seeing the XMPP libraries you're talking about on labs -- could one of you send me a link? Thanks!-TomOn 8/16/06, João Fernandes [EMAIL PROTECTED] wrote: Hi Danny,I was trying to connect to GTalk since it implements Jabber. I had an error of security sandbox violation and it seems that they don't have a cross-domain policy file. I Installed locally wildfire ( jivesoftware.org) and It connects perfecly. I was looking for more details about what this library is composed. I looked for how to handle the roster but couldn't find anything.João Fernandes On 8/16/06, Daniel Dura [EMAIL PROTECTED] wrote: Hi Joao,Those libraries should work with the release version of Flex Builder. I will double check and make sure though. What errors are you running into?Also, I will be making an update to these libraries very soon. They are still under development and the next update should be much more stable. - DannyOn 8/16/06, João Fernandes [EMAIL PROTECTED] wrote: Hi there, I started playing around with the available XMPP(Jabber) classes on Labs but I've got some errors. Are those still under development or can already be used? Thanks, João Fernandes __._,_.___ -- 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: decimal numbers in financial applications
Hi Anatole, I understand your sentiments, and I do understand and respect your viewpoint. However Gordon has been kind enough to quickly make some very clear statements for me regarding where we are at today, and as a result, I'm making progress in solving the problem. I'm afraid that trivializing the matter will impede this process. If there's any hope in building a grass roots ground swell of support for adding fixed decimal support to Flex, it has to come from educating the folks about what we've got, and what the options are. I'm happy others like Jeff want to know more about this. It is time, for those who are unaware of what happens when you expect and require the results and accuracy of decimal math while working with floating point values, to learn and understand what the difference is, the implications, and limitations of being forced to use floating point variables. The problem is far more serious and practical that it is theoretical. To appreciate the complexity of dealing with fixed decimal numbers, take a look at the over 10,000 lines of code in 7 different classes in the Java API which deal directly with fixed decimal support. Make no bones about it, there's a lot more going on than just carefully placed rounding statements. Jeff, the client side as it stands now is incapable of accurately performing any mathematical function with accuracy on arbitrary precision decimal numbers, especially when executed repeatedly. The adding machine on your desk and the same formula within Flash client will never agree with each other 100%. A balance sheet must balance to the penny. A journal entry must balance to the penny. A sales tax rate must be exactly 5.92 percent, etc. Don't depend on the Flash client to do this successfully without adding fixed decimal support of some kind to your application. When doing decimal data entry in the Flash client, if the data is first stored in a Number object before being transferred to the server, the value will appear to change randomly before being stored in the database. It is because some fractions can only be represented in binary as an aproximation (not exact). This is how we encountered the problem. It was a simple CRUD application written to FDS. The object had two fields - Description and Rate. Rate was a Number object in Actionscript, a BigDecimal 7 long with 4 decimal positions on the server. 1.92 was keyed into Rate in Flash, and FDS wrote 1.91 to the database. It's that simple. Anatole, out DAO layer is not able to compensate for this because we're using FDS. FDS passes in a BigDecimal already initialized with the wrong number. The problem, as you rightly point out, is a rounding issue. The problem is precisely that FDS must always be rounding down (because our value of 1.92, converted to double as 1.91999... ends up 1.91 in the database. FDS deserialization is not considering the scale and precision of the destination field during the conversion. If it did, we'd be highly accurate, but not perfectly accurate. After enough iterations, we'd still loose a penny eventually, and the CPA or CFO would storm into my office and say The system doesn't work right because... Prior to Flex, I've been working with C++ on the client side with a fixed decimal library which is at least 15 years old, and with IBM midrange business computers developed in the late 70's on the server side, with languages where there is no such thing as a float (ONLY fixed decimals). This is the kind of software/hardware which was developed to handle business transactions over 30 years ago, and much of the world still runs on them. Until Flex and all of the other new technologies have support for fixed decimals and can add up a balance sheet, we will not be able to replace these old back end systems which at the end of the day have to balance the books month in and month out - to the penny. Let's work to educate Flex users about the benefits of fixed decimal math, and ask Adobe to make sure it gets in to the next version. It will help solidify the future of the rich internet application a great deal. Best regards to all, Matt -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: CheckBox.......help needed
you can always look at the underlying dataprovider for the datagrid eg if u have this mx:DataGridColumn dataField=data1 itemRenderer=CheckBox/ then you can do this var record:Object = IList(myDataGrid.dataProvider).getItemAt(2); var chekbox_value:Boolean = record[data1]; --- In flexcoders@yahoogroups.com, jlingwai [EMAIL PROTECTED] wrote: Any one have to logic to figure out if an item is check in a datagrid? any help is needed. thanks JoSh -- 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: decimal numbers in financial applications
Matt, Sorryif Isound too simplistic - just trying to explain the approach I usually take with the issue. 1. 1.91 1.92 issue. The way I see it (correct me if I am wrong ) is that DB has 4.2 format. The way I would solve it is to define rate as double on data transfer object and let DB driver to do the rounding - you have very good chances that it would work. Let me give you my understanding on similar but not identical subject: java.util.Date vs java.sql.Date - very similar, sql one has higher precision - but Flex supports utils one only, so we use only that and do rounding on theserver side. There are cases when it is a wrong thing to do - I encountered it once in20 years, and I honestly can not remember the case - it was due to assumptions based algorithm. 2.Rounding on the client. If you must to round up every transaction up to the penny, you have to do client side rounding. That does not sound like financial application but rather tax reporting, and in the last 10 years they allowed different rounding butyou do whathave to do. You do not need large library - basically it is always long(x*100)/100 - unless you have very large numbers. I am just saying that 10,000 lines in 7 classes may be to much for thin client deployment environment with 1MB footprint. IfI correlate the number of people affected, the scope of workaround and deployment impact, smaller, simplier, financially orientedcomponent of 50 lines or lessstarts making more sense to me. Sincerely, Anatole On 8/17/06, busitech [EMAIL PROTECTED] wrote: Hi Anatole,I understand your sentiments, and I do understand and respect yourviewpoint. However Gordon has been kind enough to quickly make somevery clear statements for me regarding where we are at today, and as a result, I'm making progress in solving the problem. I'm afraid thattrivializing the matter will impede this process. If there's any hope in building a grass roots ground swell ofsupport for adding fixed decimal support to Flex, it has to come from educating the folks about what we've got, and what the options are. I'm happy others like Jeff want to know more about this.It is time, for those who are unaware of what happens when you expectand require the results and accuracy of decimal math while working with floating point values, to learn and understand what thedifference is, the implications, and limitations of being forced touse floating point variables.The problem is far more serious and practical that it is theoretical. To appreciate the complexity of dealing with fixed decimal numbers,take a look at the over 10,000 lines of code in 7 different classes inthe Java API which deal directly with fixed decimal support. Make no bones about it, there's a lot more going on than just carefully placedrounding statements.Jeff, the client side as it stands now is incapable of accuratelyperforming any mathematical function with accuracy on arbitrary precision decimal numbers, especially when executed repeatedly. Theadding machine on your desk and the same formula within Flash clientwill never agree with each other 100%.A balance sheet must balance to the penny. A journal entry must balance to the penny. A sales tax rate must be exactly 5.92 percent,etc. Don't depend on the Flash client to do this successfully withoutadding fixed decimal support of some kind to your application.When doing decimal data entry in the Flash client, if the data is first stored in a Number object before being transferred to theserver, the value will appear to change randomly before being storedin the database. It is because some fractions can only be representedin binary as an aproximation (not exact). This is how we encountered the problem. It was a simple CRUDapplication written to FDS. The object had two fields - Descriptionand Rate. Rate was a Number object in Actionscript, a BigDecimal 7long with 4 decimal positions on the server. 1.92 was keyed into Ratein Flash, and FDS wrote 1.91 to the database. It's that simple.Anatole, out DAO layer is not able to compensate for this becausewe're using FDS. FDS passes in a BigDecimal already initialized with the wrong number. The problem, as you rightly point out, is arounding issue. The problem is precisely that FDS must always berounding down (because our value of 1.92, converted to double as1.91999... ends up 1.91 in the database.FDS deserialization is not considering the scale and precision of thedestination field during the conversion. If it did, we'd be highlyaccurate, but not perfectly accurate. After enough iterations, we'd still loose a penny eventually, and the CPA or CFO would storm into myoffice and say The system doesn't work right because...Prior to Flex, I've been working with C++ on the client side with a fixed decimal library which is at least 15 years old, and with IBMmidrange business computers developed in the late 70's on the serverside, with languages where there is no such thing as a float (ONLYfixed decimals). This is the kind of
Re: [flexcoders] XMPP AS3 class libraries on Labs
Tom,SVN: http://labs.adobe.com/subversion/flashplatform/projects/xmpp/trunkJoão Fernandes On 8/17/06, Tom Bray [EMAIL PROTECTED] wrote: I'm not seeing the XMPP libraries you're talking about on labs -- could one of you send me a link? Thanks!-TomOn 8/16/06, João Fernandes [EMAIL PROTECTED] wrote: Hi Danny,I was trying to connect to GTalk since it implements Jabber. I had an error of security sandbox violation and it seems that they don't have a cross-domain policy file. I Installed locally wildfire ( jivesoftware.org) and It connects perfecly. I was looking for more details about what this library is composed. I looked for how to handle the roster but couldn't find anything.João Fernandes On 8/16/06, Daniel Dura [EMAIL PROTECTED] wrote: Hi Joao,Those libraries should work with the release version of Flex Builder. I will double check and make sure though. What errors are you running into?Also, I will be making an update to these libraries very soon. They are still under development and the next update should be much more stable. - DannyOn 8/16/06, João Fernandes [EMAIL PROTECTED] wrote: Hi there, I started playing around with the available XMPP(Jabber) classes on Labs but I've got some errors. Are those still under development or can already be used? Thanks, João Fernandes __._,_.___ -- 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] Finding an Object in ActionScript
How would I do the following in AS3. 1. Find an object by id, something like: psuedo code- foundobject = app.components.findbyID(lblText); foundobject.dostuff; 2. Similar, is there a app.components that I can cycle through that will list all application components/objects. psuedo code again for (i=0;icomponents.count-1; i++) { var thisObject:TObject = components[i]; thisObject.doStuff.. } 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/
Re: [flexcoders] PopUp Windows 50% Transparent???
I guess I really need to study up on Styles a bit more As far as base styles, check out the Flex Style Explorer. In about 10 minutes you will have a thorough understanding of the style implications on each of the base components. Peace, MikeOn 8/17/06, Mike Anderson [EMAIL PROTECTED] wrote: Thanks to both of you guys - I would have thought that Benoit's suggestion was the one I was looking for, but it was actually Brendan's code that did the trick. It's weird, because I would have thought a hard-core property of borderAlpha sounded much more appropriate for what I was trying to fix - and not a Style. I guess I really need to study up on Styles a bit more - because it's looking as if all the fine tuning tweaking required to make RIA's really look good, will be the result of understanding properly applying Styles. Thanks again to all of you - I am always grateful for all your help. Mike -Original Message- From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Benoit Hediard Sent: Wednesday, August 16, 2006 4:13 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] PopUp Windows 50% Transparent??? Have you tried to set borderAlpha=1 (by default borderAlpha=0.4)? Benoit Hediard -Message d'origine- De : flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] De la part de Mike Anderson Envoyé : mercredi 16 août 2006 22:58 À : flexcoders@yahoogroups.com Objet : [flexcoders] PopUp Windows 50% Transparent??? Hello All, Every time I create a popup, it's transparent around the entire border area. I even tried using code, to force the Alpha value - and it still insists on showing the application residing one layer below. Is this by design, and is there a way I can inhibit this behavior?? Thanks in advance for any help, Mike -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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 -- 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] TextField TextEvent.LINK mystery
Hello everybody,Creating a multi-column HTML-Text Component, I have discovered a strange behavior in the TextField Class:What I need is several Textfields that are not selectable. Now when I set myTextField.selectable = false, the TextField no longer captures TextEvent.LINK-event. That seems to be a known bug (see msg #36058 ).Now the mystery:When I add an MouseEvent.CLICK-eventListener to the TextField I seem to get around this bug and the TextEvent.LINK-event gets fired. But only when I display an Alert-box in the Click-event..Example:package{ import flash.text.TextField; import flash.events.MouseEvent; import flash.events.TextEvent; import mx.controls.Alert; import mx.core.UIComponent; public class MyTextField extends UIComponent { private var _textField:TextField;override protected function createChildren():void { super.createChildren(); _textField = new TextField(); with (_textField) {htmlText = "a href="" 1\"link 1/a a href="" 2\"link 2/a no link";selectable = false;mouseWheelEnabled = false;addEventListener(MouseEvent.CLICK, textClickListener);addEventListener(TextEvent.LINK, linkClickListener); } addChild(_textField); }private function textClickListener(e:MouseEvent):void { // I need to show this Alert box here to enable the TextEvent.LINK event Alert.show("Text clicked"); } private function linkClickListener(e:TextEvent):void { Alert.show("Link clicked: "+e.text); } }}If I place this component on the Stage and run the Application, I have to click once (anywhere) on the TextField to fire the CLICK-event and show the Alert box in order to enable the LINK-event.. Can anyone explain that to me? Or does anybody know another way to enable the LINK-event on non-selectable TextFields?Thanks in advance and all the best,Bastian __._,_.___ -- 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: Dynamic datagrid columns
I am using the same approach and have problem with sorting. It looks this way : 1.Datagrid is loaded with data. 2.User is clicking on any sortable column and grid is sorted by the column field. 3.Now user is changing name of table for data retrieval(DDLb click event), request is send to backend and corresponding array is assigned to datagrid.columns. 4.Request results are assign to datagrid through binding. And here goes the catch - as soon as new results are applied to the grid sorting is automatically applied by field from step 2. Grid has new set of columns and the old field does not exist in the set. Do you have solution for the problem ? Thanks, Irina --- In flexcoders@yahoogroups.com, e_baggg [EMAIL PROTECTED] wrote: Tom- The Datagrid component now has an attribute called columns. When you dynamically create columns, add them to an array and set datagrid.columns value to this array. To add or remove columns, just get a reference to that 'columns' attribute and call normal array methods. I actually have a datagrid that has its columns change based on what value is selected in a tree. I set up my different columns as Arrays in the ModelLocator, and when a user clicks a tree, it switches the datagrid's columns value with the correct Array (creating them if they are not there already). --- In flexcoders@yahoogroups.com, Tom Fitzpatrick tom@ wrote: The dynamic column methods for the datagrid seem to have disappeared between 1.5 2. I've looked around for examples or descriptions of Flex 2 replacements for methods such as dataGrid.addColumn() and dataGric.removeAllColumns() that were available in 1.5, but haven't come up with much. Anyone have any pointers? - Tom -- 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] Finding an Object in ActionScript
Hi Rich, I just read something about (2) in Programming ActionScript 3 (the Adobe manual that comes with Flex 2) in Chapter 5 "Display Programming" - Traversing the display list. HTH Phil richmcgillicuddy wrote: How would I do the following in AS3. 1. Find an object by id, something like: psuedo code- foundobject = app.components.findbyID("lblText"); foundobject.dostuff; 2. Similar, is there a app.components that I can cycle through that will list all application components/objects. psuedo code again for (i=0;icomponents.count-1; i++) { var thisObject:TObject = components[i]; thisObject.doStuff.. } Rich -- __ Phil Marston Technology Enhanced Learning Centre for Learning Teaching University of Aberdeen Aberdeen AB24 3QY Email: [EMAIL PROTECTED] Tel: +44(0)1224 273329 Mob: +44(0)7798 723660 Web: http://www.abdn.ac.uk/clt/ __ The University of Aberdeen Open Day 29th August 2006 Booking is essential www.abdn.ac.uk/openday email [EMAIL PROTECTED] or call 0800 027 1495 __._,_.___ -- 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] Emails take over a day to post - did someone say they could fix this?
You profile is properly setup, all your emails should come thru.Sometimes emailsaretagged as spam and are pending approval before they get posted, Icleaned upa few yesterday. We try our best to clean these as often as possible, sorry for the delay, I don't recall if I approved any of yours specifically. Dimitrios Gianninas RIADeveloper Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flex-guitarSent: Wednesday, August 16, 2006 10:46 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Emails take over a day to post - did someone say they could fix this? Hello,My posts are taking between 1.5 to 7 days to make it to the list. I thoughtone of the moderators said to let them know and they could fix this, but Icouldn't find the message that said who to contact.Is there someone who can correct this?Many thanks,Derek AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company 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] Cairngorm 2 - Event propagation problem
Hi, I am trying to use Cairngorm 2 framework with Flex 2. This issue is that the event (login) does not seem to reach the FrontController. I am listing my application files with the significant code snippets: I have been struggling with this for the past 2 days but aint seem to figure out the problem. 1) ApplicationFrontController.as // addCommand(login, LoginCommand); 2) LoginCommand.as //implements Command //public function execute(event:CairngormEvent):void 3) LoginEvent.as //extends CairngormEvent //public function LoginEvent() //{ //super(login); //} 4) Login.mxml // public function doLogin():void // {var eventObject : LoginEvent = new LoginEvent(); // CairngormEventDispatcher.getInstance().dispatchEvent(new LoginEvent()); // } -- 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 2 - Event propagation problem
Hi hemantkamatgi, just a few things I recognized: 1. When dispatching the Cairngorm event, you shouldn't create two instances of the LoginEvent here... just one and pass it! // { var eventObject : LoginEvent = new LoginEvent(); // CairngormEventDispatcher.getInstance().dispatchEvent(new LoginEvent()); 2. I assume, you LoginVO is only missing in your post, not in your code..!? The section above best looks like this (including the VO): var loginVO : LoginVO = new LoginVO(); loginVO.xx = xx; /* add any values you need */ var eventObject : LoginEvent = new LoginEvent(loginVO); CairngormEventDispatcher.getInstance().dispatchEvent(eventObject); 3. In your front controller you add the event using a string login. Same for the LoginEvent itself. You should create a constant variable in the controller to minimise the chances of errors. Now, this is just some sommon stuff, don't know if this solves your problem, though... Cheers, Thomas hemantkamatgi wrote: Hi, I am trying to use Cairngorm 2 framework with Flex 2. This issue is that the event (login) does not seem to reach the FrontController. I am listing my application files with the significant code snippets: I have been struggling with this for the past 2 days but aint seem to figure out the problem. 1) ApplicationFrontController.as // addCommand(login, LoginCommand); 2) LoginCommand.as //implements Command //public function execute(event:CairngormEvent):void 3) LoginEvent.as //extends CairngormEvent //public function LoginEvent() //{ //super(login); //} 4) Login.mxml // public function doLogin():void // { var eventObject : LoginEvent = new LoginEvent(); // CairngormEventDispatcher.getInstance().dispatchEvent(new LoginEvent()); // } -- Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] Web http://www.akitogo.com -- 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: How to collapse Panel?
That's good to know Sergey, So now you can do it like this... as Gordon says: If you need to know that calculated height, you can subclass Panel and get titleBar.height. If you are arguing that there should be a public property or method for returning this value, please explain your use case for needing this. Thanks, -sam On 8/16/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: I have reimplemented getHeaderHeight() method that is private in Panel unfortunately. I do not want to apply new headerHeight style property value, but I want to know default. Sure, it is based on the style of the title text, though it is still calculable. On 8/16/06, Samuel Reuben [EMAIL PROTECTED] wrote: Hi Sergey, Good observation. Why do you need the header height? The documentation says, The default value is based on the style of the title text. Sothere is no fixed default header height, it depends on the Title text font size. Having said that, the getStyle(headerHeight) should return the actual height of the header. So for now, if you really want a number returned set the headerHeight and it will work fine. Thanks, -sam __._,_.___ -- 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] ViewStack in TabNavigator + autoresize
I have a TabNavigator that, in all tabs, load separate custom components with ViewStacks in them.//TabNavigator //Canvas //Forms:MyForm / //Canvas//TabNavigator That's the main component that is shown after login. Presently there are 4 main tabs. The tab in question (only one with substantial content/layout complete) is like this: //Canvas //VBox //ToggleButtonBar //ViewStack //hbox //TileList//CanvasNow, for 1...the TabNavigator will resize but not all of the way around the TileList. My main application isn't scrolling (only certain internal elements) when the content is too big. There is a 2nd state that adds a Panel inside of the hbox. This causes the TileList to resize and the panel slides into place. The ViewStatck then shows scroll bars (vertical and horizontal) since the panel is pretty big (namely vertically). The TabNavigator will load properly but it doesn't scale vertically with the TileList. It is longer than the TabNavigator (which stays within screen of the browser; even though I don't have a constraint on it). What I've tried:- removing all widths/heights from parent items of TileList- removing all constraints (top, bottom, etc) from parent items of TileList- set specific widths/heights of numerous combinations of items - set TabNavigator to resize with content- etc, etc, etcAnyone have any ideas here? I have to be missing something small here.-- John C. Bland III do what I can do when I can do it. - Chris Tucker, Money Talks http://www.gotoandstop.org - Home of FMUG.az -- John C. Bland III do what I can do when I can do it. - Chris Tucker, Money Talkshttp://www.gotoandstop.org - Home of FMUG.az __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: decimal numbers in financial applications
- Original Message - From: ryanm [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, August 17, 2006 7:54 AM Subject: Re: [flexcoders] Re: decimal numbers in financial applications At that point you are looking at full table scan to update single record - and it might be much worse problem then loosing one cent on rounding. On the other hand, the application I was working on dealt with a service model that involved tenths or hundredths of a penny per transaction, and added up hundreds of thousands of transactions on a typical page of data, so losing a penny to a rounding error would've been a very serious problem. It really depends on the nature of the app and just how precise you need the numbers to be. These situations are where a properly abstracted business logic layer comes in handy. When fully seperated from the display layer, all the calculations take place in a single language/platform and all precisions issues can be dealt with at one time, hopefully in a single place in the code. Depending on the nature and purpose of the app that kind of precision may not be required, but it still makes it a lot easier to fix precision issues when they come up if your logic is all handled in one place. I guess what I'm saying is it depends on the app. ;-) You are absolutely right. I've seen this problem (years ago) on an application where the UI was client server and the reporting was done separtely on the server (different software to the client). It can be rather problematic seeing one thing on screen and something different in a printed invoice or report (no matter how small the difference). For some reason the customer/users start losing faith in the software.. Paul ryanm -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] XML/Chart Scripting help
On Monday 14 August 2006 16:04, Daniel Tuppeny wrote: I can't even get this simple chart to work: Try adding xml tags around your sample Does dataProvider want to be myXMLTest.item ? -- Tom Chiverton 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: Changing State via VBox
Cheers --- In flexcoders@yahoogroups.com, e baggg [EMAIL PROTECTED] wrote: You need to put the click event on the Accordion. The click event really should call a method which can set the state based on which one was clicked. mx:Accordion click=currentState='Details' mx:VBox.. yaagcur [EMAIL PROTECTED] wrote: I have a vbox within an accordion which when I click on I require to change the stae of the application. I have tried mx:VBox click=currentState='Details' without luck I've played around with putting it in an outside function but cannot get the right answer as of yet Any help much appreciated - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -- 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] flex2 on winCE and pocketPC devices
How long are we away before we can start creating flex2 apps that run on winCE and pocketPC devices. -- 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] A simple printing question
On Monday 14 August 2006 20:15, hank williams wrote: doesnt seem to be able to break the pages at line boundaries. Will any configuration of the API do this on its own? The thought of doing manual pagination of HTML really sucks, particularly for something http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0994.html -- Tom Chiverton 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] Identifying line series for datatip function
On a line chart with multiple series, I wish to have a datatip function that differs according to which line is hit but I'm having difficulty identifying the property that would tell me that Any help much appreciated -- 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] ViewStack and accessing it's children
On Tuesday 15 August 2006 07:12, Simon Janssens wrote: How can I fire the necessary updates in other viewStack children? Call them via callLater after changing the selectedIndex. -- Tom Chiverton 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] Is there a way to pull a tracing image into the background- like in DreawmWeaver
Good Morning FlexCoders ,I'm trying to use a mockup to lay out my components is there a way to pull a graphic into the background to use as a tracing image?Thanks Mani __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: decimal numbers in financial applications
Paul, I actually got a few messages on my private email with the same sentiment. Please note thatthe typical problem on 10 years old systems was thefloat type on client versus double/bigdecimal on the server. In case of rate 1.92 rate as 4 byte float, in order to get 1 cent rounding you need something like mere $5000 as multiplier for the problem to show up. In case of Actionscript double (1.9199289457264239899814128875732421875 from the original post) it is $500 billion. Now, If you haveso muchin a single transaction and itis off by 1 cent (which is bad) - then you have a problem. Sincerely,Anatole On 8/17/06, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: ryanm [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Thursday, August 17, 2006 7:54 AM Subject: Re: [flexcoders] Re: decimal numbers in financial applications At that point you are looking at full table scan to update single record - and it might be much worse problem then loosing one cent on rounding. On the other hand, the application I was working on dealt with a service model that involved tenths or hundredths of a penny per transaction, and added up hundreds of thousands of transactions on a typical page of data, so losing a penny to a rounding error would've been a very serious problem. It really depends on the nature of the app and just how precise you need the numbers to be. These situations are where a properly abstracted business logic layer comes in handy. When fully seperated from the display layer, all the calculations take place in a single language/platform and all precisions issues can be dealt with at one time, hopefully in a single place in the code. Depending on the nature and purpose of the app that kind of precision may not be required, but it still makes it a lot easier to fix precision issues when they come up if your logic is all handled in one place. I guess what I'm saying is it depends on the app. ;-) You are absolutely right. I've seen this problem (years ago) on an application where the UI was client server andthe reporting was done separtely on the server (different software to the client). It can be rather problematic seeing one thing on screen and something different in a printed invoice or report (no matter how small the difference).For some reason the customer/users start losing faith in the software..Paul ryanm -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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] how to text wrap in a label?
would this work? mx:Label x="0" y="0" height="45" width="160" mx:htmlText![CDATA[This is a #13; line break.]]/mx:htmlText/mx:Label#13; is a mxml line breakOn Aug 16, 2006, at 9:19 PM, Barry Beattie wrote:this *should* be easy. In HTML it'd just be a colspananyhoo...I've got a datagrid headerRenderer that should have the layout.. Email Notifications Initial .. | . ReminderNotifications . | . Date(the cells underneath will be custom itemRenderers I'm esentiallyhaving 2 columns with a common parent header)I just can't get the text to wrap. there's "truncate to fit" but nowrap. any ideas??xml version="1.0" encoding="utf-8"?mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="150"mx:Label text="Email Notifications" textAlign="center"/mx:HBox height="35" mx:Label text="Initial Notifications" textAlign="center" /mx:Label text="Reminder Date" textAlign="center"//mx:HBox/mx:VBoxthanxbarry.b==ALSO: I'm lost as to why I need to do this:I can define custom components with a namespace (OK so far)mx:Application ...xmlns:my="custom_controls.*"my:ComboBox dataProvider="{colRole}" y="100"/my:ComboBoxbut I can't use that namespace for a datagrid headerRenderer control.- this works:mx:DataGridColumn headerRenderer="custom_controls.NewLabel" /- this doesn'tmx:DataGridColumn headerRenderer="my.NewLabel" /can I ask why I can't use a namespace for all my custom stuff?thanxb __._,_.___ -- 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] removing exception when session is invalidated
Our Flex app is embedded with a JSP site. When the user goes to the logout.jsp, we invalidate all session data. This causes the exception below to occur (displays on WebLogic console)... anyway to make it go away? its seems like something that shouldn't be logged. Aug 17, 2006 11:28:48 AM EDT Error HTTP Session BEA-100028 Could not deserialize session data. flex.messaging.LocalizedException: The FlexSession is invalid. at flex.messaging.FlexSession.checkValid(FlexSession.java:515) at flex.messaging.FlexSession.getUserPrincipal(FlexSession.java:99) at flex.messaging.HttpFlexSession.writeObject(HttpFlexSession.java:417) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at weblogic.servlet.internal.AttributeWrapper.convertObjectToBytes(AttributeWrapper.java:136) at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:112) at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:69) at weblogic.servlet.internal.session.SessionData.removeAttribute(SessionData.java:614) at weblogic.servlet.internal.session.SessionData.removeAttribute(SessionData.java:596) at weblogic.servlet.internal.session.SessionData.remove(SessionData.java:808) at weblogic.servlet.internal.session.MemorySessionContext.invalidateSession(MemorySessionContext.java:69) at weblogic.servlet.internal.session.SessionData.invalidate(SessionData.java:750) at weblogic.servlet.security.ServletAuthentication.invalidateAll(ServletAuthentication.java:184) at jsp_servlet.__logout._jspService(__logout.java:126) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) Dimitrios Gianninas RIADeveloper Optimal Payments Inc. AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L’expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s’il est retransmis sans son autorisation. Si vous n’êtes pas le destinataire visé du présent message ou si vous l’avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l’expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
[flexcoders] Re: Subversion SVN and the bin directory problems - copied .svn dirscausing conf
In Project - Properties - Flex Compiler, de-select Copy non-embedded files to output directory. We had a problem where Flex was copying our entire common-lib directory into the bin folder with every build. Needless to say, this was very costly, so I was very happy to find the above setting! HTH Jim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] 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 _managedProp: int; private var _uid:String; private var _eventDispatcher:EventDispatcher = new EventDispatcher(IEventDispatcher(this)); // getters and setters for managed properties [Bindable(event=propertyChange)] public function get managedProp():int { _managedProp = Managed.getProperty(this, managedProp, _managedProp); return _managedProp; } public function set managedProp(value:int):void { var oldValue:int = _managedProp; _managedProp = value; Managed.setProperty(this, managedProp, oldValue, _managedProp); } //IManaged implementation [Bindable(event=propertyChange)] public function get uid():String { if (_uid == null) { _uid = UIDUtil.createUID(); } return _uid; } public function set uid(value:String):void { var oldValue:String = _uid; if (oldValue !== value) { _uid = value; var e:PropertyChangeEvent = PropertyChangeEvent.createUpdateEvent(this, uid, oldValue, value) dispatchEvent(e); } } //IEventDispatcher implementation public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void { _eventDispatcher.addEventListener(type, listener, useCapture, priority, weakRef); } public function dispatchEvent(event:flash.events.Event):Boolean { return _eventDispatcher.dispatchEvent(event); } public function hasEventListener(type:String):Boolean { return _eventDispatcher.hasEventListener(type); } public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void { _eventDispatcher.removeEventListener(type, listener, useCapture); } public function willTrigger(type:String):Boolean { return _eventDispatcher.willTrigger(type); } } } 2006/8/16, Matt Chotin [EMAIL PROTECTED]: Hmm, you might need to implement mx.data.IManaged yourself instead of relying on IManaged. IManaged extends IUID (you must have a string property uid) and IEventDispatcher (must be an event dispatcher). You will then need to implement any managed property as follows (I haven't tested this, it's based on reading the generated actionscript for a [Managed] class): import mx.data.utils.Managed; private var _test1:int; [Bindable(event=propertyChange)] public function get test1():int { _test1 = mx.data.utils.Managed.getProperty(this, test1, _test1); return _test1; } public function set test1(value:int):void { var oldValue:int = this._ test1; _test1 = value; mx.data.utils.Managed.setProperty(this, test1, oldValue, _test1); } I have no guarantees, but see how it goes? Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Laing Sent: Wednesday, August 16, 2006 8:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FDS, VOs, and ignoring client-side properties We're using FDS on our project, and we're using a single DataStore with autoCommit=false on all of our DataServices. This way, we're able to have a single, application-wide save button to commit all the latest changes. This save
[flexcoders] Flex 2, Coldfusion and the Treeview...
Hi, Hoping someone can put me on the right track... I have a database containing a hierarchical company structure (it's the DB db). I need to represent searches on the database in a Flex application as a tree hierarchy. I'm using Coldfusion with Flex. I'm trying to figure out how I can have CF return a suitable data structure back to Flex that would then be directly usable as a dataprovider for the Treeview. I can find no Coldfusion examples in the Flex help for anything like this. What's the right approach here ? Should I have coldfusion return an XML structure describing the tree or is there a more 'native' (and therefore more efficient) way of doing this ? Are there any code samples out there ? Any help would be gratefully received! Thanks, Jamie. -- 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
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 _managedProp: int; private var _uid:String; private var _eventDispatcher:EventDispatcher = new EventDispatcher(IEventDispatcher(this)); // getters and setters for managed properties [Bindable(event=propertyChange)] public function get managedProp():int { _managedProp = Managed.getProperty(this, managedProp, _managedProp); return _managedProp; } public function set managedProp(value:int):void { var oldValue:int = _managedProp; _managedProp = value; Managed.setProperty(this, managedProp, oldValue, _managedProp); } // IManaged implementation [Bindable(event=propertyChange)] public function get uid():String { if (_uid == null) { _uid = UIDUtil.createUID(); } return _uid; } public function set uid(value:String):void { var oldValue:String = _uid; if (oldValue !== value) { _uid = value; var e:PropertyChangeEvent = PropertyChangeEvent.createUpdateEvent(this, uid, oldValue, value) dispatchEvent(e); } } // IEventDispatcher implementation public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void { _eventDispatcher.addEventListener(type, listener, useCapture, priority, weakRef); } public function dispatchEvent(event:flash.events.Event):Boolean { return _eventDispatcher.dispatchEvent(event); } public function hasEventListener(type:String):Boolean { return _eventDispatcher.hasEventListener(type); } public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void { _eventDispatcher.removeEventListener(type, listener, useCapture); } public function willTrigger(type:String):Boolean { return _eventDispatcher.willTrigger(type); } } } 2006/8/16, Matt Chotin [EMAIL PROTECTED]com: Hmm, you might need to implement mx.data.IManaged yourself instead of relying on IManaged. IManaged extends IUID (you must have a string property uid) and IEventDispatcher (must be an event dispatcher). You will then need to implement any managed property as follows (I haven't tested this, it's based on reading the generated actionscript for a [Managed] class): import mx.data.utils.Managed; private var _test1:int; [Bindable(event=propertyChange)] public function get test1():int { _test1 = mx.data.utils.Managed.getProperty(this, test1, _test1); return _test1; } public function set test1(value:int):void { var oldValue:int = this._ test1; _test1 = value; mx.data.utils.Managed.setProperty(this, test1, oldValue, _test1); } I have no guarantees, but see how it goes? Matt From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Jim Laing Sent: Wednesday, August 16, 2006 8:27 AM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] FDS, VOs, and ignoring client-side properties We're using FDS on our project, and we're using a single DataStore with autoCommit=false on all of our DataServices. This way, we're able to have a single, application-wide save button to commit all the latest changes. This save button is enabled based upon on the
[flexcoders] Dynamically set method result from Web Service
Hi all, Just a small question, I've been playing around with - is it possible to set the result of a method dynamically? Depending on whose calling the method? I'd like to use one method to populate two different datagrids. i.e. private function CurrentUsers():void {//Current UsersMemberTypeId = 0;Group = 2;HistoricalMembership = false;GroupWS.GetMembers.send(); //set result method here..??} mx:WebService id="GroupWS" wsdl="http://localhost/Group.asmx?WSDL" useProxy="false"showBusyCursor="true"fault="Alert.show(event.toString())"mx:operation name="GetMembers" result="can this be set dynamically?"mx:requestMembershipTypeID{GroupMemberTypeId}/MemberTypeIDHistoricalMembership{HistoricalMembership}/HistoricalMembershipGroup{Group}/Group/mx:request/mx:operation/mx:WebService __._,_.___ -- 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] 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.Jim2006/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 _managedProp: int; private var _uid:String; private var _eventDispatcher:EventDispatcher = new EventDispatcher(IEventDispatcher(this)); // getters and setters for managed properties [Bindable(event=propertyChange)] public function get managedProp():int { _managedProp = Managed.getProperty(this, managedProp, _managedProp); return _managedProp; } public function set managedProp(value:int):void { var oldValue:int = _managedProp; _managedProp = value; Managed.setProperty(this, managedProp, oldValue, _managedProp); } // IManaged implementation [Bindable(event=propertyChange)] public function get uid():String { if (_uid == null) { _uid = UIDUtil.createUID(); } return _uid; } public function set uid(value:String):void { var oldValue:String = _uid; if (oldValue !== value) { _uid = value; var e:PropertyChangeEvent = PropertyChangeEvent.createUpdateEvent(this, uid, oldValue, value) dispatchEvent(e); } } // IEventDispatcher implementation public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void { _eventDispatcher.addEventListener(type, listener, useCapture, priority, weakRef); } public function dispatchEvent(event:flash.events.Event):Boolean { return _eventDispatcher.dispatchEvent(event); } public function hasEventListener(type:String):Boolean { return _eventDispatcher.hasEventListener(type); } public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void { _eventDispatcher.removeEventListener(type, listener, useCapture); } public function willTrigger(type:String):Boolean { return _eventDispatcher.willTrigger(type); } } } 2006/8/16, Matt Chotin [EMAIL PROTECTED]: Hmm, you might need to implement mx.data.IManaged yourself instead of relying on IManaged. IManaged extends IUID (you must have a string property uid) and IEventDispatcher (must be an event dispatcher). You will then need to implement any managed property as follows (I haven't tested this, it's based on reading the generated actionscript for a [Managed] class): import mx.data.utils.Managed; private var _test1:int; [Bindable(event=propertyChange)] public function get test1():int { _test1 = mx.data.utils.Managed.getProperty(this, test1, _test1); return _test1; } public function set test1(value:int):void { var oldValue:int = this._ test1; _test1 = value; mx.data.utils.Managed.setProperty(this, test1, oldValue, _test1); }
[flexcoders] Re: pageable records with amfphp
I know AMFHPH knows paging, and I know how to write the php part, But I'm having problems on the Flex part. In Flash, I know that there is a RecordSet class that has a setDeliveryMode() method that should be used, but there is no such class and method in Flex, and I wasn't able to find anything similar. What should I use instead? Anyone found a solution to this? (pageable recordsets with AMFPHP) Regards, GK -- 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 watch Remote SharedObject changing
Hi there, please help How can I watch remote Shared Object changes with FMS 2 and Flex 2? And how can I detect success or change call type as its declared in documentation? I'm trying something like this: { _people = SharedObject.getRemote(people, _server.uri); _people.addEventListener(SyncEvent.SYNC, syncPeopleHandler); _people.connect(_server); } private var _first:Boolean = false; private function syncPeopleHandler(event:SyncEvent):void { if (_first) { var items:Array = _people.data.items; if (items == null) { items = new Array(); } items.push(getMyName()); _first = true; _people.data.items = items; } else { /// DOESNT COME HERE var items:Array = _people.data.items; appendLog(People: + items); } } Thanks, Mozilla By __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS 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: Dynamically set method result from Web Service
If you use the IResponder interface you can do this very easily. IResponder requires you to implement 2 methods. public function result(data:Object):void public function fault(info:Object):void So what you can do is create however many classes you want that implement the interface, and then call your method like this: var call:AsyncToken = GroupWS.GetMembers.send(); call.addResponder(implementerOne); call.addResponder(implementerTwo); For handling web service calls, you'll be receiving ResultEvent and FaultEvent objects, so you can do this inside the methods: var event:ResultEvent = data as ResultEvent; var event:FaultEvent = info as FaultEvent; HTH, Ben http://www.returnundefined.com/ --- In flexcoders@yahoogroups.com, ldyhwke24 [EMAIL PROTECTED] wrote: Hi all, Just a small question, I've been playing around with - is it possible to set the result of a method dynamically? Depending on whose calling the method? I'd like to use one method to populate two different datagrids. i.e. private function CurrentUsers():void { //Current Users MemberTypeId = 0; Group = 2; HistoricalMembership = false; GroupWS.GetMembers.send(); //set result method here..?? } mx:WebService id=GroupWS wsdl=http://localhost/Group.asmx?WSDL http://GroupWS.asmx?WSDL useProxy=false showBusyCursor=true fault=Alert.show(event.toString()) mx:operation name=GetMembers result=can this be set dynamically? mx:request MembershipTypeID{GroupMemberTypeId}/MemberTypeID HistoricalMembership{HistoricalMembership}/HistoricalMembership Group{Group}/Group /mx:request /mx:operation /mx:WebService -- 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] Is there a way to pull a tracing image into the background- like in DreawmWeaver
You could try setting the Application background-image to the image you're wanting to trace. Maybe even set the background alpha to 50% or something to make it not show as much.On 8/17/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote: Good Morning FlexCoders ,I'm trying to use a mockup to lay out my components is there a way to pull a graphic into the background to use as a tracing image?Thanks Mani __._,_.___ -- 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 Bug with Transparent PNGs?
Greetings - I've got a row of skinned buttons that sit right in my main application, on the app desktop if you will. The skins are tranpsarent PNG-8s, the desktop is a fade between two fillColors. Problem is, on some monitors, especially projectors, the transparent regions are visible, about 10% or so. Not true if I place them in HTML, but always in Flex =( Anyone else seen this? cheers, ethan -- 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: decimal numbers in financial applications
In case of Actionscript double (1.9199289457264239899814128875732421875 from the original post) it is $500 billion. Hi Anatole, Did you note that FDS _truncates_ the actionscript double when converting to BigDecimal? The extra information is lost in FDS. So in this case, when the tax rate keyed in at the client is off by .01%, this works out to be a 10 cent mistake on a $1,000 transaction. This problem would present itself any time the user is keying in a price on the client side, trying to save the data. Imagine a user doing a price change on thousands of items, hitting save, and watching hours of work disappear... You're right - letting the DB driver do the rounding would work if we had a separate DTO for each domain object where we could put the floating point number temporarily. Since we're using EJB 3.0, which is an excellent abstract persistence layer, we are able to allow the POJO entity to become the DTO, and thus our serialization framework (Flex) must either be fixed (by Adobe) to round correctly, or extended (a new serializable type class). So for us the immediate answer is to create a serializable BigDecimal in Actionscript which can pass through the protocol layer unscathed and give exact results on the client. This not only provides a fix for the persistence problem, but also allows the client to compute things without help from the server, and display them confidently to the user, knowing that when the server performs the same calculation, it will match exactly. Best regards, Matt -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex and Rails - examples?
Karsten, There are a few links floating around, but I think one of the most interesting developments is that The Midnight Coders will soon be releasing their WebORB for Rails: http://www.themidnightcoders.com/ I think that will open up a new world of possibilities for people looking to integrate the two technologies. -Mark karstendwolf wrote: Hi there, besides the excellent tutorial at a href=""http://www.liverail.net/articles/2006/04/16/rubyonrails-1-1-and-flex-2-0-pt-1">http://www.liverail.net/articles/2006/04/16/rubyonrails-1-1-and-flex-2-0-pt-1"Liverail/a , who else is doing stuff with Flex and Rails? Projects, demos, example code e.g. has anybody used it to use it as a backend for RemoteObjects? cheers, karsten http://kadewe.blogspot.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. __,_._,___
[flexcoders] Returning XML from CFMX with AMF0
I'm forced to deal with AMF0 for a particular project and I'm trying to pull some XML from a CFC that worked perfectly in Flex 1.5 as a dataprovider of a tree component. Now, it seems to want to treat my returned XML an XML document with one node = the one node being the XML object returned from CF. I've been hacking around trying to deal wit this - but no dice. Any advice? 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/
[flexcoders] Container background with blur filter
Hi flexcoders Is there a way to apply a blur filter to a container's background? For example a HBox with blured background (just the background). I wish to simulate the same effect that have the windows in Windows Vista operating system. Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Finding an Object in ActionScript
Hi,1) There is a method of DisplayObjectContainer that does this by name.getChildByName();Note : This does not return a child by it's id only the name assignment. Which at anytime you can name a component in MXML or actionscript. myComponent.name = lblText;Then you could find it. If you need recursion to walk a component's child list that is not very hard to write either.2)If you are talking non recursive; var len:int = myComponent.numChildren;for (var i:int = 0; i len; i++){ child:IUIComponent = IUIComponent(myComponent.getChildAt(i)); child.move(x, y);}The same can be applied if you have a custom component class that you are iterating through and you could 'is' to test to make sure it would have the method you are about to call. There is also a Container.getChildren() method that will return all children of the container as IChildList. Basically you use the IChildList interface to get at children of a Container. See the ASDocs for that. Peace, MikeOn 8/17/06, richmcgillicuddy [EMAIL PROTECTED] wrote: How would I do the following in AS3. 1. Find an object by id, something like: psuedo code- foundobject = app.components.findbyID(lblText); foundobject.dostuff; 2. Similar, is there a app.components that I can cycle through that will list all application components/objects. psuedo code again for (i=0;icomponents.count-1; i++) { var thisObject:TObject = components[i]; thisObject.doStuff.. } Rich -- 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] Flex and Rails - examples?
http://coenraets.com/viewarticle.jsp?articleId=101 Note:That is Christophe's old blog. His new one is .org. On 8/17/06, karstendwolf [EMAIL PROTECTED] wrote: Hi there, besides the excellent tutorial at a href="" href="http://www.liverail.net/articles/2006/04/16/rubyonrails-1-1-and-flex-2-0-pt-1" target="_blank" >http://www.liverail.net/articles/2006/04/16/rubyonrails-1-1-and-flex-2-0-pt-1 Liverail/a , who else is doing stuff with Flex and Rails? Projects, demos, example code… e.g. has anybody used it to use it as a backend for RemoteObjects? cheers, karsten http://kadewe.blogspot.com -- John C. Bland III do what I can do when I can do it. - Chris Tucker, Money Talkshttp://www.gotoandstop.org - Home of FMUG.az __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: pageable records with amfphp
Maybe it would be easier if you would control the paging yourself instead of relying on the RecordSet class i.e: You would pass number of the page to the server, and the server would return the records related to tha page. At least, it is what I´m doing with my flex2/CakePHP application.I know that with recordsets this is done automatically on the server side, but it would be only the work of calculating the records depending of the page value passed by your flex app. (in case you were using Cake, it you just pass the number of the page and Cake does all the calc for you and returns the records). Marcelo.On 8/17/06, Konig Gunther [EMAIL PROTECTED] wrote: I know AMFHPH knows paging, and I know how to write the php part, But I'm having problems on the Flex part. In Flash, I know that there is a RecordSet class that has a setDeliveryMode() method that should be used, but there is no such class and method in Flex, and I wasn't able to find anything similar. What should I use instead? Anyone found a solution to this? (pageable recordsets with AMFPHP) Regards, GK __._,_.___ -- 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] Returning XML from CFMX with AMF0
As an additional note - it is taking my entire XML document and making it the label of a single root node. Like: [foldericon] myEntireXMLDocAsText The XML object I'm creating in CF is using the the CF xml functions. Perhaps I should just scrap that and return a string. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Thursday, August 17, 2006 2:44 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Returning XML from CFMX with AMF0 I'm forced to deal with AMF0 for a particular project and I'm trying to pull some XML from a CFC that worked perfectly in Flex 1.5 as a dataprovider of a tree component. Now, it seems to want to treat my returned XML an XML document with one node = the one node being the XML object returned from CF. I've been hacking around trying to deal wit this - but no dice. Any advice? 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 -- 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] Where does component dataProvider, remotely loaded, fit in? (Cairngorm)
Hi all, I have many List components in an application I am building. There will be multiple options for each List or ComboBox component. I plan to load most of the options from an XML file I have set up with nodes and attributes describing the choices. I can load the XML with no problem, pull what I need, and convert it to an ArrayCollection for use in the Lists. My only question is this in two parts: 1. I assume that creating a VO (Called OptionsVO for this example) would be smart and assign the ArrayCollections to various attributes where I can then bind my components to them. Am I right on that one? 2. Where does this fit into the Cairngorm framework? Meaning, should I still use the Delegate and ServiceLocator and then in the results just pass the values to the VO? Where should the actual parsing and conversion of the XML take place? In the VO itself or in another part? Bear with me. I'm a little new to Cairngorm and I am trying to get a good handle on this. -Kenny -- 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 Slider::UpdateDisplayList
Hi all, I'm running into Flex 2 Release error with Slider (HSlider to be exact). The null reference exception happens when there are no thumbs. See the source and exception traces below. On line 1480 it checks the number of thumbs and correctly handles a null 'thumbs' array. However, if thumbs turns out to be null, or the number of thumbs is 0, we get the null reference exception on line 1483 (which doesn't do the same check as was done on 1480). I'm probably partially at fault for all of this, as I'm trying to dynamically create instances of components and add them to the UI at runtime. Is there some precautions that I need to take to ensure everything is initialized properly? I'm instantiating new components and calling addChild() as needed in my container component's UpdateDisplayList function. Does this need to be handled elsewhere? // -- from Slider.as -- 1478: var isHorizontal:Boolean = (_direction == SliderDirection.HORIZONTAL); 1479: var numLabels:int = labelObjects ? labelObjects.numChildren : 0; 1480: var numThumbs:int = thumbs ? thumbs.numChildren : 0; 1481: var trackMargin:Number = getStyle(trackMargin); 1482: var widestThumb:Number = 6; 1483: var firstThumb:SliderThumb = SliderThumb(thumbs.getChildAt(0)); // Exception Trace TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.controls.sliderClasses::Slider/mx.controls.sliderClasses:Slider::updateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\controls\sliderClasses\Slider.as:1483] at mx.core::UIComponent/validateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:5672] at mx.managers::LayoutManager/mx.managers:LayoutManager::validateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:594] at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:664] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7789] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7732] -- 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] Finding an Object in ActionScript
Have you looked at bracket notation? var myComponentRef:MyComponent = this[myComponentID]; Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of richmcgillicuddy Sent: Thursday, August 17, 2006 7:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Finding an Object in ActionScript How would I do the following in AS3. 1. Find an object by id, something like: psuedo code- foundobject = app.components.findbyID(lblText); foundobject.dostuff; 2. Similar, is there a app.components that I can cycle through that will list all application components/objects. psuedo code again for (i=0;icomponents.count-1; i++) { var thisObject:TObject = components[i]; thisObject.doStuff.. } 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 Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: decimal numbers in financial applications
Matt, I am sorry, I must be missing something simple. I was suggesting not to use BigDecimal on the server and deal straightwith double on both sides. Apparently you acknowledge that it would work but need to keep BigDecimal for other reasons. I am wondering about other data types that are produced by VRUD framework you are using. Are the dates producedfrom sql or utils package - would be the next question. That is one of the reasons for us to create Flex specific CRUD framework ( http://www.adobe.com/devnet/flex/articles/daoflex.html) so the marshalling issuesare eliminated If that is the case, your options are really limited. You obviously requested Adobe to look into the issue and , if you logged the error, you usually get confirmation within few days that it has or has not been recreated and some indication on the release timeframe. If for whatever reason you need to fix protocol and need to deal with that now, here is anothe roption. For custom datatypes, I would build trivial gateway for FDS. Here is a post for unsecured remoting (simple AMF, not FDS)gateway I use to batch/transact unregistered requests ( http://www.faratasystems.com/?p=7) . You could relatively simply (50-100 lines of Java code the last time we had to do similar patch) set up either filter or similar gateway and do rounding there. Given a choice, I wouldreplace BigDecimal with double in CRUD level and let DB do the truncation. Sincerely, Anatole On 8/17/06, busitech [EMAIL PROTECTED] wrote: In case of Actionscript double(1.9199289457264239899814128875732421875 from the original post) it is $500 billion. Hi Anatole,Did you note that FDS _truncates_ the actionscript double whenconverting to BigDecimal? The extra information is lost in FDS.So in this case, when the tax rate keyed in at the client is off by .01%, this works out to be a 10 cent mistake on a $1,000 transaction. This problem would present itself any time the user is keying in aprice on the client side, trying to save the data. Imagine a user doing a price change on thousands of items, hitting save, and watchinghours of work disappear...You're right - letting the DB driver do the rounding would work if wehad a separate DTO for each domain object where we could put the floating point number temporarily. Since we're using EJB 3.0, whichis an excellent abstract persistence layer, we are able to allow thePOJO entity to become the DTO, and thus our serialization framework(Flex) must either be fixed (by Adobe) to round correctly, or extended (a new serializable type class).So for us the immediate answer is to create a serializable BigDecimalin Actionscript which can pass through the protocol layer unscathedand give exact results on the client. This not only provides a fix for the persistence problem, but also allows the client to computethings without help from the server, and display them confidently tothe user, knowing that when the server performs the same calculation,it will match exactly. Best regards,Matt __._,_.___ -- 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] Dumb newbie question: Flash 8 vs. Flex Builder
Apart from that Flex Builder 2 is built on ActionScript 3 and Flash 8 is still on 2, can someone explain to this complete newbie why one would choose to develop in one over the other? (I'm trying to evaluate both to see which one would let us do what we want to do and finding they are hard enough to learn to use, let alone figure out what each one is intended for that makes it different from the other.) Thanks! Jeremy -- 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] Is there a way to pull a tracing image into the background- like in DreawmWeaver
hi mani,i just load it as a backgound image in a style sheet. You cant click and move it, but it shows in design mode. when you are done just remove it from your style sheet..dougOn Aug 17, 2006, at 11:52 AM, Manuel Saint-Victor wrote:Good Morning FlexCoders ,I'm trying to use a mockup to lay out my components is there a way to pull a graphic into the background to use as a tracing image?Thanks Mani __._,_.___ -- 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] Error 1065
I get an error very inconsistently when I build. One second, I can debug and play, I can make no changes other than adding some space in the mxml file and I will get this error. I have seen other references to this error, but in my case, there is no variable name. so I have no way of tracing this down. anyone with some idea of where to look would be really appreciated. ReferenceError: Error #1065: Variable is not defined. at global/flash.utils::getDefinitionByName() at mx.utils::DescribeTypeCache$/describeType() at mx.utils::ObjectUtil$/getClassInfo() at mx.controls::DataGrid/::generateCols() at mx.controls::DataGrid/mx.controls:DataGrid::collectionChangeHandler() at mx.controls.listClasses::ListBase/set dataProvider() at mx.controls::DataGrid/set dataProvider() at mx.core::Container/createComponentFromDescriptor() at mx.core::Container/createComponentsFromDescriptors() at mx.containers::ViewStack/::instantiateSelectedChild() at mx.containers::ViewStack/mx.containers:ViewStack::commitProperties() at mx.containers::TabNavigator/mx.containers:TabNavigator::commitPropert ies() at mx.core::UIComponent/validateProperties() at mx.managers::LayoutManager/::validateProperties() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() -- 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 2 - Event propagation problem
Have you inlcuded the front controller tag in your login.mxml? You should have a line in login.mxml that looks something like... control:ApplicationFrontController id=applicationFrontController / Without this line your program would still compile, but there wouldn't be a front controller to hear the cairngorm events. Other than that your code looks fine. Darren From: hemantkamatgi [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm 2 - Event propagation problem Date: Thu, 17 Aug 2006 05:20:25 - Hi, I am trying to use Cairngorm 2 framework with Flex 2. This issue is that the event (login) does not seem to reach the FrontController. I am listing my application files with the significant code snippets: I have been struggling with this for the past 2 days but aint seem to figure out the problem. 1) ApplicationFrontController.as // addCommand(login, LoginCommand); 2) LoginCommand.as //implements Command //public function execute(event:CairngormEvent):void 3) LoginEvent.as //extends CairngormEvent //public function LoginEvent() //{ //super(login); //} 4) Login.mxml // public function doLogin():void // { var eventObject : LoginEvent = new LoginEvent(); // CairngormEventDispatcher.getInstance().dispatchEvent(new LoginEvent()); // } -- 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] Dumb newbie question: Flash 8 vs. Flex Builder
Here'sone basic truth: Flash 8 is end-of-lived. Flash 9 (aka Flex 2, and ActionScript 3) is the latest, and is a solid foundation for future versions of Flash. We won't be seeing a major overhaul like ActionScript 2 ActionScript 3 for quite a while, I'm guessing, so your AS3 code should be safer in the long run. Shan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jeremyrichmanSent: Thursday, August 17, 2006 2:34 PMTo: flexcoders@yahoogroups.comSubject: [Junk E-Mail - LOW] [flexcoders] Dumb newbie question: Flash 8 vs. Flex Builder Apart from that Flex Builder 2 is built on ActionScript 3 and Flash 8 is still on 2, can someone explain to this complete newbie why one would choose to develop in one over the other?(I'm trying to evaluate both to see which one would let us do what we want to do and finding they are hard enough to learn to use, let alone figure out what each one is intended for that makes it different from the other.)Thanks!Jeremy --No virus found in this incoming message.Checked by AVG Free Edition.Version: 7.1.405 / Virus Database: 268.11.1/421 - Release Date: 8/16/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.1/421 - Release Date: 8/16/2006
[flexcoders] Cairngorm eLearning Course and Quiz - who's in?
Hey guys, In light of the Cairngorm documentation effort put forth by this community, Id like to purpose a valuable addition: a series of eLearning modules on Cairngorm. Beginning Cairngorm Basic overview Intermediate Cairngorm Cover all the bases Advanced Cairngorm Lets get technical To give you an idea, here is one Ive created for the company I work for on the subject of credit card security: (please note, the video CDN is down so please select No when it asks Do you have a high-speed connection) Click through 5-10 slides and check the Quiz at the end: http://www.undustrial.com/pcitraining/ Since Flex and Cairngorm is such an actively emerging technology, I think this is the best way to get old and new developers up-to-speed with Cairngorm and would benefit your whole RIA team. As it is .. Id like to know who here thinks this is: A: Worth Doing are interested in using the training for yourself and/or your team B: Would like to contribute in some way -Script writer -Storyboarder -Expert Review Panel -Quality Assurance Also, Id like to know if any of you out there are eLearning content developers who would like to help directly with the module creation? This will be an open-source project and Ill release the final .FLA as well as associated dev files to the community when it is complete as well as host the .SWF Id like to have this done within a two-to-three month schedule to completion for all modules. Whos in? Thanks! -Evan __._,_.___ -- 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.10.10/419 - Release Date: 8/15/2006
Re: [SPAM] Re: [flexcoders] Re: decimal numbers in financial applications
Apparently you acknowledge that it would work but need to keep BigDecimal for other reasons. I get the impresson that they want some calculations to be done real time on the client, and for that a BigDecimal object would be needed in the client as well as on the server. ryanm -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] comboBoxes with dynamic data as datagrid itemRenderers?
well, the origional post went down like a lead dirigeable I'll back up a bit and try to explain better... I have query data that I want to edit in a datagrid, mostly to utilise the textbox-type features. However... two columns are look-up data, best represented by ComboBox's. it looks like I can use itemRenderers for the cells in these columns. What I'm stuck on is the best way to bind the look-up data to the ComboBox's when they're used as itemRenderers. because I want to extend the ComboBox's anyway, I could (in theory) have these as custom components and bind the dynamic data directly to each within the custom control mxml - hard wired in. but If I want to use the same control for both columns but with different data, I'm stuck is there any way of keeping the custom controls dumb and, from the datagrid's level, tell the itemRenderers what look-up data model to bind to? something like this: mx:DataGridColumn headerText=Role itemRenderer=custom_controls.ComboBox rendererDataProvider={colRole}/ mx:DataGridColumn headerText=Type itemRenderer=custom_controls.ComboBox rendereDataProvider={colEvalType}/ is (something like) this possible? is there a better way? How can comboBoxes with dynamic data be integrated with DataGrids? any suggestions most welcome. thanx barry.b PS: I suspect that this is only half the battle. Getting the DataGrids data model to store the ComboBox selection might be the other half... datagrid's itemRenderer's dataProvider? Posted by: Barry Beattie [EMAIL PROTECTED] barry.beattie Date: Wed Aug 16, 2006 10:23 pm (PDT) hi all I've got a datagrid where I'll have columns of ComboBoxes, populated with dynamic data (look-up tables really). sure I can assign a DataGridColumn's itemRenderer to a custom control, but if I want to re-use that control, how do I pass a different dataProvider to it? in other words: having these controls my:ComboBox dataProvider={colRole} y=100/my:ComboBox my:ComboBox dataProvider={colEvalType} y=120/my:ComboBox as itemRenderers mx:DataGridColumn headerText=Role itemRenderer=custom_controls.ComboBox/ mx:DataGridColumn headerText=Type itemRenderer=custom_controls.ComboBox/ or is this a dumb idea and there's a better way? thanx barry.b -- 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: [SPAM] Re: [flexcoders] Re: decimal numbers in financial applications
Ryan, With double, precision should not be an issue - usually money datatype is limited to 18 digits and in most practical applications is limited to 11-12 digits. If you work with doubles (16+ correct digits)t would takequite afew operations to get precision under 12 digits. In terms of individual operations, in order to get 1 cent rounding error for the original case 1.9199289457264239899814128875732421875 * amount, the amount has to be over 50. You decide if it is practical or not Regards, Anatole On 8/17/06, ryanm [EMAIL PROTECTED] wrote: Apparently you acknowledge that it would work but need to keep BigDecimal for other reasons. I get the impresson that they want some calculations to be done real time on the client, and for that a BigDecimal object would be needed in the client as well as on the server.ryanm __._,_.___ -- 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] Cairgorm Flow Chart - continued
Yeah, Im waiting to resolve an issue with a ModelObject being represented in the View right now with Steven and Alex, but the chart that youve helped me format will be done soon! I would like to see the level of descriptive text of your diagram with the visual intuitiveness of the one Ive created with the help of this community. You guys rock! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Russell Munro Sent: Wednesday, August 16, 2006 9:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairgorm Flow Chart - continued I have updated and improved the flow chart the I posted a few months back. I have also started working with Evan Gifford on his version of a Cairngorm flow chart. Perhaps at some point the two can become one but for now you can find my updated chart here (the same URL as it was before) http://www.corbell.com.au/docs/Cairngorm%20flow%20chart.pdf __._,_.___ -- 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 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.10.10/419 - Release Date: 8/15/2006
Re: [flexcoders] Flex Bug with Transparent PNGs?
Flex has no problem rendering transparent png's as this can be shown on the new site I launched, all the buttons and reflections are transparent png's. www.G-uniX.com --- thats the site From: Daniel Hai [EMAIL PROTECTED]Sent: Thursday, August 17, 2006 3:56 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Flex Bug with Transparent PNGs? this may not apply -- but are you sure your color depth on the monitors is 32-bit? danielEthan Miller [EMAIL PROTECTED]com wrote: Greetings -I've got a row of skinned buttons that sit right in my main application, on the app desktop if you will. The skins are tranpsarent PNG-8s, the desktop is a fade between two fillColors. Problem is, on some monitors, especially projectors, the transparent regions are visible, about 10% or so. Not true if I place them in HTML, but always in Flex =(Anyone else seen this?cheers, ethan __._,_.___ -- 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] Returning XML from CFMX with AMF0
Nevermind...a newbie to Flex2 question that simply required some quality time with the docs...Just had to set showRoot = false and stipulate which attribute for the label field. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Thursday, August 17, 2006 3:12 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Returning XML from CFMX with AMF0 As an additional note - it is taking my entire XML document and making it the label of a single root node. Like: [foldericon] myEntireXMLDocAsText The XML object I'm creating in CF is using the the CF xml functions. Perhaps I should just scrap that and return a string. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Thursday, August 17, 2006 2:44 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Returning XML from CFMX with AMF0 I'm forced to deal with AMF0 for a particular project and I'm trying to pull some XML from a CFC that worked perfectly in Flex 1.5 as a dataprovider of a tree component. Now, it seems to want to treat my returned XML an XML document with one node = the one node being the XML object returned from CF. I've been hacking around trying to deal wit this - but no dice. Any advice? 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 -- 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] Bug in Slider::UpdateDisplayList
Hi, I'm instantiating new components and calling addChild() as needed in my container component's UpdateDisplayList function.If I hear you right, no this is not the right place to call add child.You should use commitProperties() override to create and add children in your component.Say, someProperty = true; // set somewhere at runtimepublic function set someProperty(value:Boolean):void{ if (value != _someProperty) { _someProperty = value somePropertyChanged = true; invalidateProperties(); }}override protected function commitProperties():void{ super.commitProperties(); if (somePropertyChanged) { if (mySlider) { removeChild(mySlider); } mySlider = new HSlider(); ... set up properties addChild(mySlider); // updateDisplayList() will be called because addChild() calls invalidateDisplayList() somePropertyChanged = false; }}override protected function updateDisplayList({ super.updateDisplayList(... mySlider.move(... mySlider.setActualSize(...} This is the correct algorithm for creating new children during runtime if properties change that are relvant to the HSlider being added dynamically at runtime.Peace, Mike On 8/17/06, thunderstumpgesatwork [EMAIL PROTECTED] wrote: Hi all, I'm running into Flex 2 Release error with Slider (HSlider to be exact). The null reference exception happens when there are no thumbs. See the source and exception traces below. On line 1480 it checks the number of thumbs and correctly handles a null 'thumbs' array. However, if thumbs turns out to be null, or the number of thumbs is 0, we get the null reference exception on line 1483 (which doesn't do the same check as was done on 1480). I'm probably partially at fault for all of this, as I'm trying to dynamically create instances of components and add them to the UI at runtime. Is there some precautions that I need to take to ensure everything is initialized properly? I'm instantiating new components and calling addChild() as needed in my container component's UpdateDisplayList function. Does this need to be handled elsewhere? // -- from Slider.as -- 1478: var isHorizontal:Boolean = (_direction == SliderDirection.HORIZONTAL); 1479: var numLabels:int = labelObjects ? labelObjects.numChildren : 0; 1480: var numThumbs:int = thumbs ? thumbs.numChildren : 0; 1481: var trackMargin:Number = getStyle(trackMargin); 1482: var widestThumb:Number = 6; 1483: var firstThumb:SliderThumb = SliderThumb(thumbs.getChildAt(0)); // Exception Trace TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.controls.sliderClasses::Slider/mx.controls.sliderClasses:Slider::updateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\controls\sliderClasses\ Slider.as:1483] at mx.core::UIComponent/validateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:5672] at mx.managers::LayoutManager/mx.managers:LayoutManager::validateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:594] at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:664] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7789 ] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7732 ] -- 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] How to create an user customized component in the running time
I have a problem. In my application, there is a TabNavigator, which creates its children in the running time, but unfortunately all the children components are my customized components. for example : I have a customized component, named myComponent, if I use var component = eval(myComponent); tabNavigator.createChild(component,undefined); it's fine. But if I use var temp = myComponent; var component = eval(temp); tabNavigator.createChild(component,undefined); it failds; Can anyone helps me? thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] TabNavigator vs. TabBar
The only other thing it does that might BE of importance to a hard core programmer is that it binds the dataProvider to the TabBar and ViewStack for you(selectedIndex, selectedItem etc.).I guess if you like writing code and it didn't offer you something, use them separately. As far as resources, other than the memory it takes to load the class, the layout would be the same OR better then what some one would do with a layout of the two separately say in a Container. There is no container laying out the tabbar. The viewMetrics of the ViewStack are just adjusted to fit the TabBar. But, there are times you could uses them separately to. ;-)Peace, Mike On 8/17/06, Matt Chotin [EMAIL PROTECTED] wrote: TabNavigator is a convenience around TabBar and a ViewStack, so it's really just whatever tickles your fancy. From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of Mike Anderson Sent: Wednesday, August 16, 2006 9:34 PM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] TabNavigator vs. TabBar Hello All, Are there any performance gains (or issues of better resource usage) when comparing the TabNavigator Control versus the TabBar? I am a veteran VB Programmer (in addition to writing Flash RIA's for many years), and historically, the TabNavigator style control has always been a resource hog (due to the way it works, and how it contains the child containers). I must say, using the TabNavigator inside Flex is a piece of cake - especially when running in Design Mode. Still, I can't help thinking, that I may be better off using a simple TabBar combined with a ViewStack Container - especially since I am a hard-core code-writer, and really don't need to spend my days using the Design Mode. Could any of you throw any scenarios my way, as to when/where/why I should use the TabNavigator over the TabBar? (I am a huge fan of Tab-Based Controls for RIA's) Thanks in advance for your advice, Mike -- What goes up, does come down. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS 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] Event to detect data was loaded in a tree
Hi,I have run into this issue before and I swear I couldn't find an answer for it. There are many events you can listen for for a Tree changing it's state and data changing.But... As far as granular control dealing with when particular nodes are loaded AND rendered is a completely different issue. I am writing a CheckBoxTree component right now and have got into the dataDescriptor and dataProvider algorithms heavily. This is tempting me to create another type of tree that would give you control with such features. The tree is a very powerful component, it's just that there are so many directions you can take with it that it's no wonder Adobe hasn't had time to get to stuff like this.Adobe, Is there a way to do this, if I am wrong it would be a welcome correction. Peace, MikeOn 8/17/06, Clarke Bishop [EMAIL PROTECTED] wrote: I have a tree control that's bound to a dataprovider. When the data loads, I want to open the tree to the first node. So, I need to detect when the data actually loads, and then open up the appropriated tree elements. I've looked all through the docs, but I can't find a data loaded event. Please point me in the right direction! Thanks, Clarke -- 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] Some Cairngorm questions
Hi, I've got a couple of questions on my mind that I'm hoping to get some opinions on... First. I don't see what value the FrontController adds in Flex apps. My initial thought was that it was important to prevent views from coupling to specific commands. That really doesn't hold up though, because the views are coupled to specifc events, each of which results in a specific Command being executed. Since the FrontController maintains a 1-to-1 map of Cairngorm events to Commands, why don't views just run the commands directly? Next, we're moving most of our remote object calls into the model. The logic that controls what parts of the model get persisted, when, and in what order is complex, and our Commands had become huge and full of logic. As a reuslt of the changes, lots of the classes in the model now make remote calls and implement IResponder. I'm trying to get back to the model of Command kicks off the feature and then gets out of the way. Is there any rule with Cairngorm that says that Commands must do the remote calls? Is it common to use something other than a Command to make remote calls? thanks Jeremy -- 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] Instantiating object in MXML
Hi All! I have MyObject class that implements IMXMLObject interface: package { import mx.core.IMXMLObject; public class MyObject implements IMXMLObject { public function initialized(document:Object, id:String):void { } } } And application that instantiates this class instance: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:local=* local:MyObject / /mx:Application But when I put local:MyObject / into mx:VBox / Component declarations are not allowed here. (Note: visual children must implement mx.core.IUIComponent) error appears: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:local=* mx:VBox local:MyObject / /mx:VBox /mx:Application Though native RadioButtonGroup works ok everywhere. 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] Re: Bug in Slider::UpdateDisplayList
Aww hell yeah! You the man! Thanks for putting it nice and concise for me. That fixed my issues. I'll refer to this 'template' in all my custom components... I've been doing it wrong all over... I'm supprised it worked as well as it did! thanks again, Thunder --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, I'm instantiating new components and calling addChild() as needed in my container component's UpdateDisplayList function. If I hear you right, no this is not the right place to call add child. You should use commitProperties() override to create and add children in your component. Say, someProperty = true; // set somewhere at runtime public function set someProperty(value:Boolean):void { if (value != _someProperty) { _someProperty = value somePropertyChanged = true; invalidateProperties(); } } override protected function commitProperties():void { super.commitProperties(); if (somePropertyChanged) { if (mySlider) { removeChild(mySlider); } mySlider = new HSlider(); ... set up properties addChild(mySlider); // updateDisplayList() will be called because addChild() calls invalidateDisplayList() somePropertyChanged = false; } } override protected function updateDisplayList( { super.updateDisplayList(... mySlider.move(... mySlider.setActualSize(... } This is the correct algorithm for creating new children during runtime if properties change that are relvant to the HSlider being added dynamically at runtime. Peace, Mike On 8/17/06, thunderstumpgesatwork [EMAIL PROTECTED] wrote: Hi all, I'm running into Flex 2 Release error with Slider (HSlider to be exact). The null reference exception happens when there are no thumbs. See the source and exception traces below. On line 1480 it checks the number of thumbs and correctly handles a null 'thumbs' array. However, if thumbs turns out to be null, or the number of thumbs is 0, we get the null reference exception on line 1483 (which doesn't do the same check as was done on 1480). I'm probably partially at fault for all of this, as I'm trying to dynamically create instances of components and add them to the UI at runtime. Is there some precautions that I need to take to ensure everything is initialized properly? I'm instantiating new components and calling addChild() as needed in my container component's UpdateDisplayList function. Does this need to be handled elsewhere? // -- from Slider.as -- 1478: var isHorizontal:Boolean = (_direction == SliderDirection.HORIZONTAL); 1479: var numLabels:int = labelObjects ? labelObjects.numChildren : 0; 1480: var numThumbs:int = thumbs ? thumbs.numChildren : 0; 1481: var trackMargin:Number = getStyle(trackMargin); 1482: var widestThumb:Number = 6; 1483: var firstThumb:SliderThumb = SliderThumb(thumbs.getChildAt(0)); // Exception Trace TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.controls.sliderClasses::Slider/mx.controls.sliderClasses:Slider::updateDisplayList ()[C:\dev\GMC\sdk\frameworks\mx\controls\sliderClasses\Slider.as:1483] at mx.core::UIComponent/validateDisplayList ()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:5672] at mx.managers::LayoutManager/mx.managers:LayoutManager::validateDisplayList ()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:594] at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation ()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:664] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2 ()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7789] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher ()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7732] -- 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 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 text wrap in a label?
Well it is easy, the Label is a single line text component. The 'Text' component will wrap and has multiline support. can I ask why I can't use a namespace for all my custom stuff?Because if you look at the itemRenderer's type, it is IFactory. This means it has to be a class reference not a pointer to some package IE namespace. Right now it has to be the fully qualified class package with name.BTW, a namespace is relevant to XML, not a value of an attribute In the XML. You are mixing two perceptions, it's not an 'import' statement. Peace, MikeOn 8/17/06, Barry Beattie [EMAIL PROTECTED] wrote: this *should* be easy. In HTML it'd just be a colspananyhoo... I've got a datagrid headerRenderer that should have the layout .. Email Notifications . ... Initial .. | . Reminder Notifications . | . Date (the cells underneath will be custom itemRenderers I'm esentially having 2 columns with a common parent header) I just can't get the text to wrap. there's truncate to fit but no wrap. any ideas? ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml width=150 mx:Label text=Email Notifications textAlign=center/ mx:HBox height=35 mx:Label text=Initial Notifications textAlign=center / mx:Label text=Reminder Date textAlign=center/ /mx:HBox /mx:VBox thanx barry.b == ALSO: I'm lost as to why I need to do this: I can define custom components with a namespace (OK so far) mx:Application ... xmlns:my=custom_controls.* my:ComboBox dataProvider={colRole} y=100/my:ComboBox but I can't use that namespace for a datagrid headerRenderer control. - this works: mx:DataGridColumn headerRenderer=custom_controls.NewLabel / - this doesn't mx:DataGridColumn headerRenderer=my.NewLabel / can I ask why I can't use a namespace for all my custom stuff? thanx b -- 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: [SPAM] Re: [flexcoders] Re: decimal numbers in financial applications
Title: Re: [SPAM] Re: [flexcoders] Re: decimal numbers in financial applications Guys, FP precision is based upon the machine capabilities. Normally this is guaranteed to 2^64 1 as FP is usually encoded using 2*32 bit registers on mac and on PC 32 bit. Big or Small Edian aside, the IEEE ratification is standard amongst all OS platforms however some have extended the format to cater for there own nuances. Try http://www.psc.edu/general/software/packages/ieee/ieee.html Now when you perform arithmetic on 2 DP numbers, there are some failures which occur. Check out http://en.wikipedia.org/wiki/Floating_point for why. Regards Samuel PS. So it isnt a fault with flexs use of the data type it is just inherent to all OSs. On 17/8/06 23:20, Anatole Tartakovsky [EMAIL PROTECTED] wrote: Ryan, With double, precision should not be an issue - usually money datatype is limited to 18 digits and in most practical applications is limited to 11-12 digits. If you work with doubles (16+ correct digits) t would take quite a few operations to get precision under 12 digits. In terms of individual operations, in order to get 1 cent rounding error for the original case 1.9199289457264239899814128875732421875 * amount, the amount has to be over 50. You decide if it is practical or not Regards, Anatole On 8/17/06, ryanm [EMAIL PROTECTED] wrote: Apparently you acknowledge that it would work but need to keep BigDecimal for other reasons. I get the impresson that they want some calculations to be done real time on the client, and for that a BigDecimal object would be needed in the client as well as on the server. ryanm __._,_.___ -- 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] Referencing ActionScript Project
Hi flexcoders, I'm working through Darron's article here: http://www.darronschall.com/weblog/archives/000216.cfm However, I'm trying to do the ActionScript-only project slant. I have a temperature project and a temperature-test project. When I reference temperature from temperature-test, I am not able to compile because it cannot find the classes. temperature +-com +- example +-- TemperatureConverter.as temperature-test (references temperature) main.mxml TemperatureConverterTest.as (won't compile... TemperatureConverter undefined, import com.-- nothing) Am I missing something? Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Event to detect data was loaded in a tree
There should be an appropriate CollectionEvent.CHANGE event coming from the dataProvider when data becomes available. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle Sent: Thursday, August 17, 2006 4:19 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Event to detect data was loaded in a tree Hi, I have run into this issue before and I swear I couldn't find an answer for it. There are many events you can listen for for a Tree changing it's state and data changing. But... As far as granular control dealing with when particular nodes are loaded AND rendered is a completely different issue. I am writing a CheckBoxTree component right now and have got into the dataDescriptor and dataProvider algorithms heavily. This is tempting me to create another type of tree that would give you control with such features. The tree is a very powerful component, it's just that there are so many directions you can take with it that it's no wonder Adobe hasn't had time to get to stuff like this. Adobe, Is there a way to do this, if I am wrong it would be a welcome correction. Peace, Mike On 8/17/06, Clarke Bishop clarke.a.bishop@gmail.com wrote: I have a tree control that's bound to a dataprovider. When the data loads, I want to open the tree to the first node. So, I need to detect when the data actually loads, and then open up the appropriated tree elements. I've looked all through the docs, but I can't find a data loaded event. Please point me in the right direction! Thanks, Clarke -- 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] using RemoteObjects in actionscript 2
Does anyone know of a way to create/use a RemoteObject programmatically rather than declaratively? I want to be able to do something such as: var ro : RemoteObject = new RemoteObject(...); ro.invoke(...) -- 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] Problem CFMX + Flex 2 - Red Hat
Hi everybody,I installed CFMX 7.2 in a Red Hat and everything was fine. I configured all the server, including DataSource to a PostGree at the same machine, J2EE Session etc. I put my Flex 2 files at the server and I got an strange error: [Flex] Exception when invoking service: coldfusion-flashremoting-service with message: Flex Message (flex.messaging.messages.RemotingMessage) operation = getMenuXML clientId = 7AD93153-C0E7-15D4-346F-8032B38A9F94 destination = ColdFusion messageId = BE9676E8-F3B4-E4D3-4086-1E969BFDEC9C timestamp = 1155859386108 timeToLive = 1155859386108 body = null hdr(DSEndpoint) = my-cfamf exception: flex.messaging.MessageException: flex/messaging/io/amf/UnknownTypeException [Flex] Error handling message: flex.messaging.MessageException: flex/messaging/io/amf/UnknownTypeException incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage) operation = getMenuXML clientId = 7AD93153-C0E7-15D4-346F-8032B38A9F94 destination = ColdFusion messageId = BE9676E8-F3B4-E4D3-4086-1E969BFDEC9C timestamp = 1155859386108 timeToLive = 1155859386108 body = null hdr(DSEndpoint) = my-cfamf errorReply: Flex Message (flex.messaging.messages.ErrorMessage) clientId = null correlationId = BE9676E8-F3B4-E4D3-4086-1E969BFDEC9C destination = ColdFusion messageId = 7AD93265-30F4-5440-C0CD-C66E2DFDA37D timestamp = 1155859386115 timeToLive = 0 body = null code = Server.Processing message = flex/messaging/io/amf/UnknownTypeException details = null rootCause = java.lang.NoClassDefFoundError: flex/messaging/io/amf /UnknownTypeException body = null extendedData = null Note that the connection occurred but an error were thrown.So I decided installing CFMX under Tomcat 5 and I also got the same error.Maybe it was something with my Red Hat installation, so I installed an Fedora Core 5, with Tomcat 5 and deployed the CFMX and got the same error: 17/08 21:02:43 INFO License Service: Flex 1.5 CF Edition enabled17/08 21:02:43 INFO Starting Flex 1.5 CF Edition 17/08 21:02:43 INFO Macromedia Flex Build: 87315.134646 08/17 21:02:45 Information [main] - Starting logging... 08/17 21:02:45 Information [main] - Starting crypto...08/17 21:02:46 Information [main] - Starting license... 08/17 21:02:46 Information [main] - Starting License server ... 08/17 21:02:46 Information [main] - Starting scheduler... 08/17 21:02:46 Information [main] - Starting WatchService...08/17 21:02:46 Information [main] - Starting debugging... 08/17 21:02:46 Information [main] - Starting sql... 08/17 21:02:46 Information [main] - Pool Manager Started 08/17 21:02:46 Information [main] - Starting mail...08/17 21:02:46 Information [main] - CORBA Configuration not enabled 08/17 21:02:46 Information [main] - Starting cron... 08/17 21:02:46 Information [main] - Starting registry... 08/17 21:02:46 Information [main] - Starting client...08/17 21:02:47 Information [main] - The metrics service is disabled for the J2EE edition 08/17 21:02:47 Information [main] - Starting xmlrpc... 08/17 21:02:47 Information [main] - Starting graphing... 08/17 21:02:47 Information [main] - Starting verity...08/17 21:02:47 Information [main] - Starting archive... 08/17 21:02:47 Information [main] - Starting document... 08/17 21:02:47 Information [main] - Starting eventgateway... 08/17 21:02:48 Information [main] - Starting Event Backend Handlers08/17 21:02:48 Information [main] - Initialized EventRequestDispatcher with a Thread Pool size of 10 08/17 21:02:48 Information [main] - Initializing EventRequestHandler 08/17 21:02:48 Information [main] - Starting Event Gateways 08/17 21:02:48 Information [main] - Starting FlexAssembler...08/17 21:02:48 Information [main] - ColdFusion started 17/08/2006 21:02:49 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /webdav from URL file:/usr/local/jakarta- tomcat-5.0.30/webapps/webdav17/08/2006 21:02:49 org.apache.catalina.core.StandardHostDeployer installINFO: Installing web application at context path /tomcat-docs from URL file:/usr/local/jakarta- tomcat-5.0.30/webapps/tomcat-docs17/08/2006 21:02:49 org.apache.catalina.core.StandardHostDeployer installINFO: Installing web application at context path /jsp-examples from URL file:/usr/local/jakarta- tomcat-5.0.30/webapps/jsp-examples17/08/2006 21:02:49 org.apache.catalina.core.StandardHostDeployer installINFO: Installing web application at context path /servlets-examples from URL file:/usr/local/jakarta- tomcat-5.0.30/webapps/servlets-examples17/08/2006 21:02:49 org.apache.catalina.core.StandardHostDeployer installINFO: Installing web application at context path from URL file:/usr/local/jakarta- tomcat-5.0.30/webapps/ROOT17/08/2006 21:02:49 org.apache.coyote.http11.Http11Protocol startINFO: Starting Coyote HTTP/1.1 on http-8080 17/08/2006 21:02:49 org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:800917/08/2006 21:02:49
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] Object serialisation + SimpleXMLEncoder
Hi List,I want to be able to serialise and de-serialise ActionScript objects to XML so they can sent to a server application. I would prefer to write a method for this once that can handle any object. Unfortunately, the introspection API is sadly wanting (doesn't report private members), which makes it insufficient for this purpose. The SimpleXMLEncoder apparently does this, but I can't work out how to use it. Can anybody point me to some examples or offer suggestions for alternative methods?This code produces errors:var myObj:TestClass = new TestClass;var doc:XMLDocument = new XMLDocument;var coder:SimpleXMLEncoder = new SimpleXMLEncoder(doc);var node:XMLNode = coder.encodeValue(myObj, ("" as QName), doc);trace(node.toString());What am I doing wrong?Cheers,Lach __._,_.___ -- 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] Event to detect data was loaded in a tree
so if I have mx:Tree id=footree dataprovider={ myDP } .Where do I add the event listener for this CollectionEvent.CHANGE? to the tree itself? Or to footree.dataProvider? Or to myDP some how? DKOn 8/17/06, Matt Chotin [EMAIL PROTECTED] wrote: There should be an appropriate CollectionEvent.CHANGE event coming from the dataProvider when data becomes available. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle Sent: Thursday, August 17, 2006 4:19 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Event to detect data was loaded in a tree Hi, I have run into this issue before and I swear I couldn't find an answer for it. There are many events you can listen for for a Tree changing it's state and data changing. But... As far as granular control dealing with when particular nodes are loaded AND rendered is a completely different issue. I am writing a CheckBoxTree component right now and have got into the dataDescriptor and dataProvider algorithms heavily. This is tempting me to create another type of tree that would give you control with such features. The tree is a very powerful component, it's just that there are so many directions you can take with it that it's no wonder Adobe hasn't had time to get to stuff like this. Adobe, Is there a way to do this, if I am wrong it would be a welcome correction. Peace, Mike On 8/17/06, Clarke Bishop [EMAIL PROTECTED] wrote: I have a tree control that's bound to a dataprovider. When the data loads, I want to open the tree to the first node. So, I need to detect when the data actually loads, and then open up the appropriated tree elements. I've looked all through the docs, but I can't find a data loaded event. Please point me in the right direction! Thanks, Clarke -- What goes up, does come down. -- 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 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: using RemoteObjects in actionscript 2
Kashif, Let's assume you need to invoke method foo() on a destination XYZ. First, make sure your destination is defined in remoting-config.xml. Then the AS code could look as the following: var ro:RemoteObject = new RemoteObject(); // set the destination for the remote object ro.destination = XYZ; // add callbacks - a generic one for faults // specific one for the method you will be invoking ro.addEventListener( fault, onFault ); ro.foo.addEventListener( result, onResult ); // now invoke your method ro.foo(); cheers, Mark --- In flexcoders@yahoogroups.com, Kashif Noorani [EMAIL PROTECTED] wrote: Does anyone know of a way to create/use a RemoteObject programmatically rather than declaratively? I want to be able to do something such as: var ro : RemoteObject = new RemoteObject(...); ro.invoke(...) -- 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: [SPAM] Re: [flexcoders] Re: decimal numbers in financial applications
Normally this is guaranteed to 2^64 1 The Number data type is based on the IEEE-754 double-precision standard. It uses 64 bits to store a floating point number. However, only 52 bits are used for the binary significand; 11 are for the binary exponent, and 1 is for the sign. So it cannot store integers up to 2^64 -1 exactly; only up to 2^52 - 1. It can of course also store some integers (and non-integers) much larger than 2^64 - 1, such as 1e100. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Samuel D. Colak Sent: Thursday, August 17, 2006 3:58 PM To: flexcoders@yahoogroups.com Subject: Re: [SPAM] Re: [flexcoders] Re: decimal numbers in financial applications Guys, FP precision is based upon the machine capabilities. Normally this is guaranteed to 2^64 1 as FP is usually encoded using 2*32 bit registers on mac and on PC 32 bit. Big or Small Edian aside, the IEEE ratification is standard amongst all OS platforms however some have extended the format to cater for there own nuances. Try http://www.psc.edu/general/software/packages/ieee/ieee.html Now when you perform arithmetic on 2 DP numbers, there are some failures which occur. Check out http://en.wikipedia.org/wiki/Floating_point for why. Regards Samuel PS. So it isnt a fault with flexs use of the data type it is just inherent to all OSs. On 17/8/06 23:20, Anatole Tartakovsky anatole.tartakovsky@gmail.com wrote: Ryan, With double, precision should not be an issue - usually money datatype is limited to 18 digits and in most practical applications is limited to 11-12 digits. If you work with doubles (16+ correct digits) t would take quite a few operations to get precision under 12 digits. In terms of individual operations, in order to get 1 cent rounding error for the original case 1.9199289457264239899814128875732421875 * amount, the amount has to be over 50. You decide if it is practical or not Regards, Anatole On 8/17/06, ryanm [EMAIL PROTECTED]net wrote: Apparently you acknowledge that it would work but need to keep BigDecimal for other reasons. I get the impresson that they want some calculations to be done real time on the client, and for that a BigDecimal object would be needed in the client as well as on the server. ryanm __._,_.___ -- 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] Help on coldfusion wizards
Hi guysAccording to this site http://www.dcooper.org/blog/client/index.cfm?mode=entryentry=3A035639-4E22-1671-53EDEEE1CAA496A4 in the step 5 he said that has in the extras folder of CF mx7.2 the file CF_FBExtensions_b3. Where I can find this extention?I cant find it5. Select the CF_FBExtensions_B3_0515.zip file, and then click Open. The file is located in the Extras folder if you installed ColdFusion MX 7.0.2 using the default values.Thanks-- Igor Costawww.igorcosta.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. __,_._,___
[flexcoders] Re: Some Cairngorm questions
While I am sure there are others, the first thing that comes to mind concerning your first question is something I did just the other day. Say you've got a command that you want to execute when you receive data back from a remote call. For debugging or other purposes, you now want to be able to execute that command manually, by clicking a button. Using FrontController and the traditional Cairngorm approach, all you have to do is dispatch the event in the click handler. Without FrontController you have to import, instantiate and call execute() on your Command class. Not to mention you now have instances of your Command class scattered about. Or what if you decide that a Command that is called in various places should be named differently or changed in some other way? Using FrontController you greatly minimize the places in which you need to edit your code. I suppose if you never need to execute the same Command in response to more than one type of event (generally speaking, not Event), then your approach would be fine. As I understand it, Cairngorm generally advocates making remote calls from your delegate classes, not commands. Again, the main advantage I see here is code centralization. You might have five different commands that all need to call the same remote method. If something changes and you need to call that method with different arguments or need to call a different method altogether, using a delegate means you change your code once instead of five times. I am still a relative newcomer to Flex and Cairngorm but the main advantages I've seen and loved so far are the things I've mentioned here; code centralization, defined responsibilities and clear separation of duties for the pieces of your app. Most of the time when I do question a methodology put forth by Cairngorm I simply fall back on the thought that its developers are way smarter and more experienced than myself so they probably have a good reason for whatever they did :) Sorry to ramble, HTH. Ben --- In flexcoders@yahoogroups.com, jrjazzman23 [EMAIL PROTECTED] wrote: Hi, I've got a couple of questions on my mind that I'm hoping to get some opinions on... First. I don't see what value the FrontController adds in Flex apps. My initial thought was that it was important to prevent views from coupling to specific commands. That really doesn't hold up though, because the views are coupled to specifc events, each of which results in a specific Command being executed. Since the FrontController maintains a 1-to-1 map of Cairngorm events to Commands, why don't views just run the commands directly? Next, we're moving most of our remote object calls into the model. The logic that controls what parts of the model get persisted, when, and in what order is complex, and our Commands had become huge and full of logic. As a reuslt of the changes, lots of the classes in the model now make remote calls and implement IResponder. I'm trying to get back to the model of Command kicks off the feature and then gets out of the way. Is there any rule with Cairngorm that says that Commands must do the remote calls? Is it common to use something other than a Command to make remote calls? thanks Jeremy -- 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] Event to detect data was loaded in a tree
footree.dataProvider? Yeah,This still doesn't solve some precise loading scenarios though. This just means it changed somewhere, you can get locations of indexes BUT finding out when that particular node is rendered is what needs to be implemented. Peace, MikeOn 8/17/06, Douglas Knudsen [EMAIL PROTECTED] wrote: so if I have mx:Tree id=footree dataprovider={ myDP } .Where do I add the event listener for this CollectionEvent.CHANGE? to the tree itself? Or to footree.dataProvider ? Or to myDP some how? DKOn 8/17/06, Matt Chotin [EMAIL PROTECTED] wrote: There should be an appropriate CollectionEvent.CHANGE event coming from the dataProvider when data becomes available. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle Sent: Thursday, August 17, 2006 4:19 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Event to detect data was loaded in a tree Hi, I have run into this issue before and I swear I couldn't find an answer for it. There are many events you can listen for for a Tree changing it's state and data changing. But... As far as granular control dealing with when particular nodes are loaded AND rendered is a completely different issue. I am writing a CheckBoxTree component right now and have got into the dataDescriptor and dataProvider algorithms heavily. This is tempting me to create another type of tree that would give you control with such features. The tree is a very powerful component, it's just that there are so many directions you can take with it that it's no wonder Adobe hasn't had time to get to stuff like this. Adobe, Is there a way to do this, if I am wrong it would be a welcome correction. Peace, Mike On 8/17/06, Clarke Bishop [EMAIL PROTECTED] wrote: I have a tree control that's bound to a dataprovider. When the data loads, I want to open the tree to the first node. So, I need to detect when the data actually loads, and then open up the appropriated tree elements. I've looked all through the docs, but I can't find a data loaded event. Please point me in the right direction! Thanks, Clarke -- What goes up, does come down. -- Douglas Knudsen http://www.cubicleman.comthis is my signature, like 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] Migrating Large Flash AS2 project to AS3
Hi All! After searching through my local copy of months' worth of list digests, I was unable to find anything conclusive on this. I have an 18 000 line AS2 project, spanning about 6 logical SWF files (one of these is actually a skin slot, of which there are currently 25 unique skin SWFs),which relies heavily on a couple things: 1. Using (fla_file)_exclude.xml files to control where compiled classes are stored, as so to control file sizes to optimise for preloading and caching. 2. Separating code and media into separate swfs. I have many skin type swfs which all have the same stuff on stage; instance names stay the same but media (sounds and graphics) is different. 3. Media type files use the great concept of using one class for many different library items (think common buttons). I now have the mammoth task of converting all of this to AS3. Is it possible to control where classes are compiled to? Is it possible, using Flex Builder 2.0, to compile multiple SWFS from a single project? Or doI now have to create one project for each swf? The media files are layout-rich; I would like to re-use them instead of writing loads of AS3 to lay all the media out. Is this possible? I tried to recompile one using Flash 9 Preview, and got lots of complaints about using one class many times. This seems likea step back to me, although I understand why this has been done. It seems that if a class is not specified for a library item, one is generated. Is it not perhaps a good idea to be able to specify the super class for this generated class, saving me from having to write 20 or so boiler-plate copies of the class in question? Also, one of these 6 logical SWF slots contains alot of windows-forms-menus-etc style stuff. I'd like to reduce the maintenance of this by rebuilding it using the Flex Framework. Is it possible to load Flex SWFs into vanilla AS3 SWFs and have them interoperate happily? It's purely the UI stuff I'll be using. Hope this isn't too much to ask in one go :) Thanks, Robert __._,_.___ -- 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.1/421 - Release Date: 2006/08/16
[flexcoders] Re: using RemoteObjects in actionscript 2
Hi Mark, Thanks a lot for your quick answer. Only problem is that I am on Flex 1.5 and there doesn't seem to be a destination property on the RemoteObject :( --- In flexcoders@yahoogroups.com, Mark Piller [EMAIL PROTECTED] wrote: Kashif, Let's assume you need to invoke method foo() on a destination XYZ. First, make sure your destination is defined in remoting-config.xml. Then the AS code could look as the following: var ro:RemoteObject = new RemoteObject(); // set the destination for the remote object ro.destination = XYZ; // add callbacks - a generic one for faults // specific one for the method you will be invoking ro.addEventListener( fault, onFault ); ro.foo.addEventListener( result, onResult ); // now invoke your method ro.foo(); cheers, Mark --- In flexcoders@yahoogroups.com, Kashif Noorani kashif@ wrote: Does anyone know of a way to create/use a RemoteObject programmatically rather than declaratively? I want to be able to do something such as: var ro : RemoteObject = new RemoteObject(...); ro.invoke(...) -- 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] newbie question - HTTP servive
Hi there, I started playing around with the HTTP service. However I cant figure out how to access the actual result (in my case an xml string) If I set up a listener it just returns me an object in the onResult event. Why cant I access my xml string through event.result? How do I access it? public function onResult(event:ResultEvent):void { // why doesnt this work? trace (event.result.toString()); // this works but its very ugly //trace(event.message.body.toString()); } Thanks Robin // the code of my sample application ?xml version=1.0? !-- Simple example to demonstrate the HTTPService tag. -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml creationComplete=go(); mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; public function go():void { feedRequest.addEventListener(ResultEvent.RESULT,onResult); feedRequest.send(); } public function onResult(event:ResultEvent):void { trace (event.result.toString()); //trace(event.message.body.toString()); } ]] /mx:Script mx:HTTPService id=feedRequest url="" useProxy=false / /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 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] flex2gateway error, Coldfusion and Flex intergration
I have been trying to integrate a flex application into a Coldfusion application. I first developed a standalone flex application in Flex Builder 2.0, which worked fine. I then imbedded the SWF file into a page on my Coldfusion application and moved the CFCs into the application. The application runs on another instance of Coldfusion. I have configured the additional compiler arguments in Flex builder 2.0 to point to the new server instance: -services C:\JRun4\servers\{server name}\cfusion.ear\cfusion.war\WEB-INF\flex\services-config.xml -locale en_US also I have changed the flex server root: C:\JRun4\servers\{server name}\cfusion.ear\cfusion.war\ All CFC paths have been updated to reflect the new locations. When the app runs the SWF has a button that calls a function of a remote object, which returns a string to be displayed (very simple), but all I get back is an error: fault:Channel.Call.failed faultString: error faultDetail:NetConnection.Call.Failed: HTTP: Failed On the server side I can see the client communicating with the server and then an error is thrown: [Flex] HttpFlexSession has not been registered as a listener in web.xml for this application so no e vents will be dispatched to FlexSessionAttributeListeners or FlexSessionBindingListeners. To correct this, register flex.messaging.HttpFlexSession as a listener in web.xml. 18/08 11:03:08 error No configured channel has an endpoint path '/flex2gateway/index.cfm'. flex.messaging.MessageException: No configured channel has an endpoint path '/flex2gateway/index.cfm '. Can anyone point me in the right direction, maybe some documentation? Thanks, Justin __._,_.___ -- 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: Deserializing WebService call... Flex/Cairngorm
Being new to the Flex set up I'm not fully up to speed on its features or limitations but I'm sure there must be something that could help to automate the process. That isn't to say that I'm not impressed by the simplicity of declaring a web service in mxml. That is good stuff but, particularly for complex objects like those you describe as being problematic, it would be nice to be able to either generate the client side class or populate the object automatically. I'm sure I will revisit this as I spend more time in Flex and if I ever manage to get anything together I will post it to the group... --- In flexcoders@yahoogroups.com, Franck de Bruijn [EMAIL PROTECTED] wrote: It would be great if we would have some component that could handle this, but I'm afraid it'll be extremely hard to accomplish: * You would need some sort of a 'reflection' API, and I'm not sure if that exists in Flash/Flex. * It'll be tricky to deal with nested custom objects and collections of nested custom objects * Plus, there are always these subtle naming issues. It would be no option for me to start writing XML-files and the like in order to make the conversion automatic. Then, it's better to program the conversions out in your own factory ActionScript methods. Another cue you could follow is to have the conversions automatically generated. That's what I'm after ... Cheers, Franck _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of grahampengelly Sent: Wednesday, August 16, 2006 5:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Deserializing WebService call... Flex/Cairngorm Yes, I'm not sure of the specifics myself but from my exploratory rummaging in the docs it looks like FDS handles all of that mapping. As I am using .NET on the server it looks like manual deserialization into my objects is the way forward. I have begun implementing my app with the factory methods you suggested and all appears to be working well. Shame I can't get the object mapping without using Java/FDS. Perhaps once I have got to grips with it a bit more I might look into writing some sort of component for the web service users amongst us, which , judging by the volume of posts on this group regarding web services, amounts to a fair few folk. Cheers Graham --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, ben.clinkinbeard ben.clinkinbeard@ wrote: There is a decent chance I am wrong about this but I think when you use RemoteObject with FDS you set up some sort of Java - AS class mapping in a config file. Ben --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, grahampengelly graham@ wrote: Thanks Ben Franck for your help. Like you Franck I couldn't see why it would work to cast one completely unrelated thing to another but this is the way it appeared to be being done in the samples. Of course, what I hadn't got to grips with is that the two samples that I was studying are both using RemoteObject rather than WebService calls and consequently are returning something that can be cast... Thanks... Graham --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, ben.clinkinbeard ben.clinkinbeard@ wrote: Nothing definitive here but I do have a couple of suggestions. Any time I see ObjectProxy mentioned in an error description, I immediately wonder if makeObjectsBindable is at fault. Try setting it to false on your WS and see what happens. Personally, I always use e4x as my resultFormat (for various reasons), so I don't have experience casting to a custom object but if you do end up needing to use Franck's suggested methodology I would certainly recommend creating a factory that will accept the SOAP return values and return an instance of your custom object. HTH, Ben --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, grahampengelly graham@ wrote: I am just getting up to speed with the Cairngorm architecture and have been struggling with this problem for a while. I have got to the point where I am getting a response from my web service call that has the data in that I expect but I cannot seem to get it to deserialize into the object that I need. The code (I have used IResponder rather than the cairngorm Responder here as suggested during an earlier post here http://groups. http://groups.yahoo.com/group/flexcoders/message/47366 yahoo.com/group/flexcoders/message/47366 ) public function result( data:Object ):void { var event:ResultEvent = data as ResultEvent; var testString:String = ; for each(var thing:Object in event.result) { testString += + thing + ; } //test alert 1
Re: [flexcoders] Re: How to collapse Panel?
I do not consider it should be public. Probably, protected is more suitable in this case. I needed it to create CollapsablePanel. Sure, via subclassing. The code is available below: ?xml version=1.0 encoding=utf-8? CollapsablePanelBase xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=controls.panel.* states mx:State name={COLLAPSED_STATE} mx:SetProperty name=height value={getHeaderHeight()} / /mx:State /states /CollapsablePanelBase Sure, CollapsablePanelBase is subclassed from Panel and protected method getHeaderHeight() is defined there as well as COLLAPSED_STATE constant. Sergey. That's good to know Sergey, So now you can do it like this... as Gordon says: If you need to know that calculated height, you can subclass Panel and get titleBar.height. If you are arguing that there should be a public property or method for returning this value, please explain your use case for needing this. Thanks, -sam -- 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] Dumb newbie question: Flash 8 vs. Flex Builder
Hello, the design center of the two products is very different. To oversimplify: If you are building "rich interactive content/media" and your background is with products like Photoshop/AfterEffects/Illustrator/Directoruse Flash authoring If you are building "rich internet applications" and your background is with things like computer science/Eclipse/VisualStudio/Java, use FlexBuilder They can be used together (with some limitations today because of the AS2/AS3 difference) using Flash authoring to create media, animation, components that you might use in the Flex application. Again, this is an oversimplification--many people span these worlds in interesting ways and I think today there are many expert Flash users who are using both. Next step: both products have free trials. Download them, use the tutorials and decide which will let you achieve your goals. -David From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jeremyrichmanSent: Thursday, August 17, 2006 3:34 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Dumb newbie question: Flash 8 vs. Flex Builder Apart from that Flex Builder 2 is built on ActionScript 3 and Flash 8 is still on 2, can someone explain to this complete newbie why one would choose to develop in one over the other?(I'm trying to evaluate both to see which one would let us do what we want to do and finding they are hard enough to learn to use, let alone figure out what each one is intended for that makes it different from the other.)Thanks!Jeremy __._,_.___ -- 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. __,_._,___