[flexcoders] add/remove element for spark list
HI All, I am trying to add an effect when an element of a spark List is added or deleted. It was quite a breeze with Flex 3, but I am pulling my hair with Flex 4... See example below of what I am trying to do: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7fa8.html Jason Graham has an example that approaches it, but it looks like it is not working for a List component and it looks like Jason has to go through some hoops to get the intended effect. http://www.flexsamples.com/blog/2010/01/ Are there any hooks to get this done with the new Spark architecture? E.g. can elementAdded(i:int):void or elementDeleted(i:int):void be used? Looked at it for a deleted element, but it seems that the itemRenderer is taken off the display list even before any effect can be applied... Thanks
[flexcoders] Re: Value Object --- Object Proxy --- huh???
--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: ObjectProxy dispatched change events when properties change. Object does not. If you write your VO's to have only get functions, they are effectively immutable. Thanks, Alex, for this comment. I had already planned to blog about data binding and VO's yesterday, and your comment prompted me to do some more digging around and experimenting in a way that tied several seemingly unrelated thoughts together: http://insideria.com/2010/07/getting-control-of-flex-data-b.html -Amy
[flexcoders] truncatedToFit on Text/TextArea
Hello all, I'd like to be able to use truncateToFit on TextArea or Text. unfortunately the truncateToFit on Text does not seem to work well (it cuts words in the middle), what more - I would like to be able to edit the truncation string myself. I'd like to be able to do this with htmlText, word-wrapping and multiple lines. Does anyone have a solution for something like this? I am using Flex 3.2. Thanks for the assistance! Yael
[flexcoders] Re: Flex Builder 3 Installation?
Yes, I have done that and it works just fine. --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: Do you think if we can install standalone version and plug in version Flex Builder 3 in same computer? Thanks Mark
[flexcoders] Re: Multiline Textfield Trunctation
Hello, I used UITextField component in an attempt to create a multiline text field which can truncate according to its limited size. The good news is that it did manage to truncate the text and add ... without breaking words in the middle. The bad news is in some of the cases the text truncated too early! The second line of text included a single word with ... but the rest of the line remained empty, though it did have a few more words it should have fit in there. Is there any way to resolve this? I tried using autoSize and updating the text and width of the UITextField upon each setting of new text, but it did not help. I'll be very hear to hear if this problem has come up before and if there are any suggestions for solutions. Thanks for your assistance! Yael --- In flexcoders@yahoogroups.com, superabe superabe super...@... wrote: http://blogs.adobe.com/bhellema/2007/03/truncating_text_1.html On Thu, May 29, 2008 at 8:31 PM, Gordon Smith gosm...@... wrote: The Flex framework doesn't support multiline truncation. I don't know there's third-party code to do this. Gordon Smith Adobe Flex SDK Team -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *ninobronzed *Sent:* Thursday, May 29, 2008 11:30 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Multiline Textfield Trunctation Is there a way to truncate a multiline textfield? Or is there a component out there that someone wrote that does it? The single-lined Label component does truncation, but I need it for textfields with more than one line... THX
[flexcoders] Re: PopUpButton with TileList and custom renderer works, but 2 annoyances
Thanks, I don't have warning anymore after I've changed the code. The horizontal scrolling issue seems to be a Flex 3 bug: when I change the width and height, so that there is only a vertical scrollbar - then everything starts to work ok. = MyRenderer.mxml: ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% verticalScrollPolicy=off horizontalScrollPolicy=off mx:Script ![CDATA[ override public function set data(value:Object):void { super.data = value; if (value != null value.hasOwnProperty('label')) { lb.text = value.label; lb.setStyle('color', value.color); } else { lb.text = ''; } } ]] /mx:Script mx:Label id=lb truncateToFit=true width=60/ /mx:Canvas = MyTest.mxml: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationPolicy=all applicationComplete=init(event); mx:Style @font-face { src:url(C:\\WINDOWS\\Fonts\\arial.ttf); fontFamily: myFont; unicodeRange: U+0020-U+0040, /* Punctuation, Numbers */ U+0041-U+005A, /* Upper-Case A-Z */ U+005B-U+0060, /* Punctuation and Symbols */ U+0061-U+007A, /* Lower-Case a-z */ U+007B-U+007E, /* Punctuation and Symbols */ U+0410-U+0451, /* cyrillic */ U+2660-U+266B; /* card suits */ } List, CheckBox, Label, Button, PopUpButton, TileList { fontFamily: myFont; fontSize: 24; } /mx:Style mx:Script ![CDATA[ import mx.controls.*; import mx.events.*; [Bindable] private var bids:Array; private var tl:TileList; private function init(event:FlexEvent):void { bids = createBids(); pub.popUp = createList(bids); } private function createBids():Array { var arr:Array = [{label: 'Pass', color: 0x00}]; for (var i:uint = 6; i = 10; i++) for (var j:uint = 0; j 5; j++) { var label:String = i+'#9824;#9827;#9830;#9829; '.charAt(j%5); var color:uint = findColor(label); arr.unshift({label: label, color: color}); } return arr; } private function findColor(str:String):uint { return (str.indexOf('#9829;') != -1 || str.indexOf('#9830;') != -1) ? 0xFF : 0x00; } private function createList(arr:Array):TileList { tl = new TileList(); tl.maxColumns = 5; tl.width = 150; tl.height = 250; tl.dataProvider = arr; tl.itemRenderer = new ClassFactory(MyRenderer); tl.addEventListener('itemClick', itemClickHandler); if (arr.length 0) { tl.selectedIndex = arr.length - 1; pub.label = arr[tl.selectedIndex].label; } return tl; } private function itemClickHandler(event:ListEvent):void { var index:uint = tl.columnCount * event.rowIndex + event.columnIndex; var label:String = bids[index].label;
RE: [flexcoders] Re: Embedded Fonts and Flash Builder 4.01
Alex, I'm definitely NOT specifying MXFTEText.css for MX components but I DO have to specify embedAsCFF = true to make the warnings go away. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Saturday, July 24, 2010 8:50 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Embedded Fonts and Flash Builder 4.01 If you are using MXFTEText.css then the Halo components can use CFF fonts. Otherwise, sounds like there is still something unexplained going on. On 7/24/10 4:18 AM, Jeff jbarts1...@yahoo.com wrote: Thanks Alex, I guess I was thrown off by the warning text which had it as 'embedAsCff not 'embedAsCFF'. I fixed that and then removed -managers=flash.fonts.AFEFontManager from my compiler settings and the warnings disappeared. I was also thrown off that I thought Halo components required embedAsCFF to be set to false but that no longer seems to be the case. Jeff --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aha...@... wrote: 4.x has new requirements around getting the embedAsCFF flag correctly, but there shouldn't be anything else. BTW, note that it is embedAsCFF. I don't think embedAsCff will work. Styles defined in the module now supercede styles defined in the parent. Maybe some global selector in the module is blocking lookup into the parent? Or maybe it is just a bug. See if you can make a simple test case. On 7/23/10 9:17 AM, Battershall, Jeff jeff.battersh...@... wrote: Alex, I'm hoping you can look at this - I read your article about fonts and swf loading - could be related to what I'm describing. However, what I am doing is pretty vanilla. I've got a CSS file where some font embedding is being done and I'm setting, ebmedAsCff= true or false depending on whether the component is question is spark or halo, but it seems with the warnings I'm getting that the ebmedAsCff portion of my style definition is being ignored. It would seem that there is: 1) a change in how font embedding is being done or 2) some additional thing I have to do to ensure that style definitions as defined in the parent application are available to modules or 3) that the 4.01 changes have some unforeseen consequences Note I'm seeing this behavior whether I'm using Flex 4.1 or 4.0. Jeff -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Jeff Sent: Friday, July 23, 2010 7:29 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Embedded Fonts and Flash Builder 4.01 With the release of Flash Builder 4.01, suddenly I'm getting a lot of runtime warnings about the need to set embedAsCff=true in my modular application, even though this is already set in the CSS file that embeds the font, which is loaded in the parent application. What could I be doing wrong? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: multiline truncating text field
I haven't used any of these but a Google search yields... http://deepanjandas.wordpress.com/2010/06/13/truncte-text-in-textareatextfield/ http://www.thanksmister.com/index.php/archive/flex-truncating-html-text/ http://blog.flexexamples.com/2009/05/27/truncating-text-with-the-spark-richtext-control-in-flex-gumbo/?utm_source=feedburnerutm_medium=feedutm_campaign=Feed%3A+FlexExamples+%28Flex+Examples%29 --- In flexcoders@yahoogroups.com, yael.yohai yael.yo...@... wrote: Hello all, I'm interested in creating a multiline text field which can truncate automatically (with an ellipses (...) or another truncating string) according to size. Unfortunately the TextArea does not have a truncating option and the Text, Label and UITextField components all truncate according to a single line and do not function properly for usage of multiline fields. I am also looking for a solution which does not truncate the words in the middle. If there are any suggestions for solutions I would be very happy to receive them, as I have searched for different solutions created by different individuals but none of them suited the above requirements. Thank you for your assistance! Yael
Re: [flexcoders] Editable DataGrid - Save All Rows - with Weblogic Webservice
Hi Instead of having the Data grid editable, On select of an item in Datagrid, set the selected row values in a form and update the values and update the data grid data provider with the new values. Then pass the List of items in row to your webservice On Tue, Jul 20, 2010 at 11:00 PM, suresh dhulipudi suresh_dhulip...@yahoo.com wrote: Hi, I have a requirement to do a webservice call to get the data and display in a datagrid using wsdl (webservice) call. which is working fine and I am able to display all data. Now I have made this DataGrid as Editable and Now I want to allow the user to do changes in any row and click on Save Changes. Now I have a webservice for updateChanges, can any one guide me on this, any example or reference links. I see many examples, which were only given for displaying data in Datagrid using Httpservice or webservice calls, not for row updates or save all Thanks Regards
Re: [flexcoders] Re: Embedded Fonts and Flash Builder 4.01
Odd. Well if you want to dig further you can see if the components that complain are actually using FTE somehow. Or if you have time to conjure up a simple test case we can take a look. Now that you have per-module styles, maybe the other components can’t see the style declaration defined in the module. On 7/27/10 6:23 AM, Battershall, Jeff jeff.battersh...@djindexes.com wrote: Alex, I’m definitely NOT specifying MXFTEText.css for MX components but I DO have to specify embedAsCFF = true to make the warnings go away. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Saturday, July 24, 2010 8:50 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Embedded Fonts and Flash Builder 4.01 If you are using MXFTEText.css then the Halo components can use CFF fonts. Otherwise, sounds like there is still something unexplained going on. On 7/24/10 4:18 AM, Jeff jbarts1...@yahoo.com wrote: Thanks Alex, I guess I was thrown off by the warning text which had it as 'embedAsCff not 'embedAsCFF'. I fixed that and then removed -managers=flash.fonts.AFEFontManager from my compiler settings and the warnings disappeared. I was also thrown off that I thought Halo components required embedAsCFF to be set to false but that no longer seems to be the case. Jeff --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aha...@... wrote: 4.x has new requirements around getting the embedAsCFF flag correctly, but there shouldn't be anything else. BTW, note that it is embedAsCFF. I don't think embedAsCff will work. Styles defined in the module now supercede styles defined in the parent. Maybe some global selector in the module is blocking lookup into the parent? Or maybe it is just a bug. See if you can make a simple test case. On 7/23/10 9:17 AM, Battershall, Jeff jeff.battersh...@... wrote: Alex, I'm hoping you can look at this - I read your article about fonts and swf loading - could be related to what I'm describing. However, what I am doing is pretty vanilla. I've got a CSS file where some font embedding is being done and I'm setting, ebmedAsCff= true or false depending on whether the component is question is spark or halo, but it seems with the warnings I'm getting that the ebmedAsCff portion of my style definition is being ignored. It would seem that there is: 1) a change in how font embedding is being done or 2) some additional thing I have to do to ensure that style definitions as defined in the parent application are available to modules or 3) that the 4.01 changes have some unforeseen consequences Note I'm seeing this behavior whether I'm using Flex 4.1 or 4.0. Jeff -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Jeff Sent: Friday, July 23, 2010 7:29 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Embedded Fonts and Flash Builder 4.01 With the release of Flash Builder 4.01, suddenly I'm getting a lot of runtime warnings about the need to set embedAsCff=true in my modular application, even though this is already set in the CSS file that embeds the font, which is loaded in the parent application. What could I be doing wrong? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Building both with and without -use-network
I need to build two versions of a Flex app, one for the local filesystem and one to be used in a web site. I recently learned that the only way to do that is to enable and disable the -use-network compiler argument. I'm using Flex Builder 3. Is there any way to automate the building of both versions? Is there a way to decide on -use-network at runtime? Is there even a way to have two versions of the project settings, like you can do in Visual Studio? Thanks
Re: [flexcoders] Building both with and without -use-network
Yeah, you could use a build tool like ANT or Maven and have two different profiles. On Tue, Jul 27, 2010 at 12:38 PM, whatabrain ju...@zioth.com wrote: I need to build two versions of a Flex app, one for the local filesystem and one to be used in a web site. I recently learned that the only way to do that is to enable and disable the -use-network compiler argument. I'm using Flex Builder 3. Is there any way to automate the building of both versions? Is there a way to decide on -use-network at runtime? Is there even a way to have two versions of the project settings, like you can do in Visual Studio? Thanks -- Evan Klein
[flexcoders] Remote Object Request Timeout Error
Hi, I'm still seeing Remote Objects timing out in AIR 2.0 and although there's a lot of postings about on the Adobe forums and in JIRA, there's still doesn't seem to be a definitive solution and/or workaround. Just polling the list to see if anyone has any late-breaking data on the issue? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
[flexcoders] How to detect the decimal point character?
Hi, I'm doing some custom bits on the Flex 3 NumericStepper and I need to prevent more than decimal point being entered into it's textField. Is there a way to detect the character used? e.g. Germany uses a comma... Or should I do something like this... How future proof, multi-lingo is that? var decimalCharacter : String = Math.PI.toString().substr( 1, 1 ); Thanks, Nick
[flexcoders] Know of any Link Analysis Data Visualization Flash/Flex libraries?
Does anyone know of any Actionscript libraries that do link analysis charts like this one: http://freeali.files.wordpress.com/2008/09/hyper_links_anon.png?w=338h=283 Prefuse and Birdeye used to, but they havent been supported/maintained in over a year and have some scaling issues. Thanks in advance. (Google search came up empty)
Re: [flexcoders] Re: Could not resolve * to a component implementation.
So, its a class, even thought it doesn't declare a class inside the text? -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Thu, Jul 1, 2010 at 10:21 PM, turbo_vb timh...@aol.com wrote: Glad that you were able to resolve the problem. The AS file IS a class, and if it lives in the same package as the mxml component, the compiler will balk; because it doesn't know which one to import elsewhere. Adobe best practice would have you use Uppercase for the first letter of all classes. Renaming the script class to something like FooScript.as or FooModel.as might be a better way to go. Cheers, -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Brian J. Ackermann brian.ackerm...@... wrote: Here's what the problem was. I had originally had a file called Foo.mxml which contained a lot of ActionScript Code. I decided to create a new ActionScript FILE to contain that script code. I named the file Foo.as, to indicate the correlation with the mxml file. Renaming this new as file to foo.as (lowercase f), resolves the issue. I'm not at all sure why this would have caused a conflict with the compiler, since it wasn't a classbut at least I've resolved the issue. On Thu, Jul 1, 2010 at 7:57 AM, valdhor valdhorli...@... wrote: One other thing to check. Make sure you are not using a reserved name for your component. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, turbo_vb TimHoff@ wrote: A couple things that you can check that might help: • Make sure that you have an import statement for the component in the parent class. • If your component is an AS class, make sure that the package, at the top of the class, is correct. • If your component is an AS component make sure that the class name, within the component, is correct. If you are using a constructor check that too. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Brian J. Ackermann brian.ackermann@ wrote: Hi, I'm a wee bit stuck on this, and was hoping you might have some input to help me. I'm getting the Could not resolve * to a component implementation. error message. However, everything I've read about this via Google hasn't helped my case in the slightest. I presume I'm just missing something obvious, but maybe its something more serious. So, to solve this problem, I've tried two things, and both work, as far as they take me. First, I added a new component, of the exact same variety, and then copied the contents of the erroring component into it. I replace the viewstack 'page' with the new component (which as near as I can tell is IDENTICAL, but with a different name), and the compiler error goes away. I can also solve this by simply renaming the original component letting FB4 refactor for me. The error goes away again. But if I then re-rename back to the original name, I get the compiler error again. I've tried to clean the project several times, and that doesn't help. I'd really like to understand what I've done wrong here. What am I missing? Thanks much!
[flexcoders] Generic HTTP Service Object - Help Please!
This is a general question - I am trying to create a generic HTTP Service Object that can pull from any file and instantiate actions without creating many different service objects. I haven't been able to find any references online, so if someone could point me in the right direction/has any expertise with this in its simplest form I would very much appreciate it!
[flexcoders] Re: PopUpButton with TileList and custom renderer works, but 2 annoyances
--- In flexcoders@yahoogroups.com, Alexander alexander.far...@... wrote: Thanks, I don't have warning anymore after I've changed the code. The horizontal scrolling issue seems to be a Flex 3 bug: when I change the width and height, so that there is only a vertical scrollbar - then everything starts to work ok. It is quite possible and even likely for set data() to be called before your label exists. I don't really want to take the time to teach you about the right way to deal with the component lifecycle, but you can easily learn about it through googling. However, there is no need for you to even be writing a custom itemRenderer in this instance. Look at TileList_withStyle at flexdiary.blogspot.com, and use the styleFunction to pass back an object with the appropriate style properties. Use mx.controls.Label in the itemRenderer field of the TileList_withStyle. Then use label in the labelField property. That way you can accomplish this without having to worry about the component lifestyle and you can avoid the extra weight of an itemRenderer based on Canvas. HTH; Amy
[flexcoders] Refresh list with itemRenderer/ComboBox
I have two scenarios where I have to refresh rows of a list or datagrid because the contents are computed, and one of the inputs to the computation (some meta-information) has changed. In the first (a DataGrid) I just have a labelFunction for one of the columns, and calling refresh() on the ArrayCollection in the presentation model does the trick. The second is more complicated - the list has an inline item renderer which is really a mini-editor containing a combo box. I'm struggling to get the combobox label to update. Tried calling refresh() on the array collection, invalidateList() on the list, and even executeBindings() on the list, to no avail. Binding works in all other use cases, eg. inserting and deleting items from the list. Any special considerations with an inline item renderer or combobox when forcing a refresh? As an aside, this description from the LiveDocs for executeBindings is a bit odd. Executes the data bindings into this UIComponent object. Workaround for MXML container/bindings problem (177074): override Container.executeBindings() to prefer descriptor.document over parentDocument in the call to BindingManager.executeBindings(). This should always provide the correct behavior for instances created by descriptor, and will provide the original behavior for procedurally-created instances. (The bug may or may not appear in the latter case.) A more complete fix, guaranteeing correct behavior in both non-DI and reparented-component scenarios, is anticipated for updater 1.
[flexcoders] Re: Could not resolve * to a component implementation.
The point is that creating 2 files in the same folder, with the same case-sensitive name, is ambiguous. When you import one of the files into a component, how do you suppose that the compiler would know which one to use? It doesn't matter if its a file or class or interface or whatever. The compiler can't read your mind; yet :) Your approach of abstracting the view script code out of the view is a good idea; especially for unit tests. Just use a different name and you'll be fine. -TH --- In flexcoders@yahoogroups.com, Brian J. Ackermann brian.ackerm...@... wrote: So, its a class, even thought it doesn't declare a class inside the text? -- Brian J. Ackermann brian.ackerm...@... 952.373.1626 -- On Thu, Jul 1, 2010 at 10:21 PM, turbo_vb timh...@... wrote: Glad that you were able to resolve the problem. The AS file IS a class, and if it lives in the same package as the mxml component, the compiler will balk; because it doesn't know which one to import elsewhere. Adobe best practice would have you use Uppercase for the first letter of all classes. Renaming the script class to something like FooScript.as or FooModel.as might be a better way to go. Cheers, -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Brian J. Ackermann brian.ackermann@ wrote: Here's what the problem was. I had originally had a file called Foo.mxml which contained a lot of ActionScript Code. I decided to create a new ActionScript FILE to contain that script code. I named the file Foo.as, to indicate the correlation with the mxml file. Renaming this new as file to foo.as (lowercase f), resolves the issue. I'm not at all sure why this would have caused a conflict with the compiler, since it wasn't a classbut at least I've resolved the issue. On Thu, Jul 1, 2010 at 7:57 AM, valdhor valdhorlists@ wrote: One other thing to check. Make sure you are not using a reserved name for your component. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, turbo_vb TimHoff@ wrote: A couple things that you can check that might help: Make sure that you have an import statement for the component in the parent class. If your component is an AS class, make sure that the package, at the top of the class, is correct. If your component is an AS component make sure that the class name, within the component, is correct. If you are using a constructor check that too. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Brian J. Ackermann brian.ackermann@ wrote: Hi, I'm a wee bit stuck on this, and was hoping you might have some input to help me. I'm getting the Could not resolve * to a component implementation. error message. However, everything I've read about this via Google hasn't helped my case in the slightest. I presume I'm just missing something obvious, but maybe its something more serious. So, to solve this problem, I've tried two things, and both work, as far as they take me. First, I added a new component, of the exact same variety, and then copied the contents of the erroring component into it. I replace the viewstack 'page' with the new component (which as near as I can tell is IDENTICAL, but with a different name), and the compiler error goes away. I can also solve this by simply renaming the original component letting FB4 refactor for me. The error goes away again. But if I then re-rename back to the original name, I get the compiler error again. I've tried to clean the project several times, and that doesn't help. I'd really like to understand what I've done wrong here. What am I missing? Thanks much!
Re: [flexcoders] Could not resolve * to a component implementation.
Hi Brian, How are you refreshing the ArrayCollection? If you are doing something like this: oldArr = newArry; then its not going to work because of the way binding works. If you haven't done it already, try this: oldArr.removeAll(); for(var i:int=0; inewArr.length; i++){ oldArr.addItem(newArr.getItemAt(i)); } Good luck! Amanda On Wed, Jun 30, 2010 at 9:17 AM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: Hi, I'm a wee bit stuck on this, and was hoping you might have some input to help me. I'm getting the Could not resolve * to a component implementation. error message. However, everything I've read about this via Google hasn't helped my case in the slightest. I presume I'm just missing something obvious, but maybe its something more serious. So, to solve this problem, I've tried two things, and both work, as far as they take me. First, I added a new component, of the exact same variety, and then copied the contents of the erroring component into it. I replace the viewstack 'page' with the new component (which as near as I can tell is IDENTICAL, but with a different name), and the compiler error goes away. I can also solve this by simply renaming the original component letting FB4 refactor for me. The error goes away again. But if I then re-rename back to the original name, I get the compiler error again. I've tried to clean the project several times, and that doesn't help. I'd really like to understand what I've done wrong here. What am I missing? Thanks much! -- ´¨) __o .·´ .·´¨)¸.·´¨) _'\ . (¸.·´ (¸.·´ (¸.·´¨¨ Amanda ¨¨( * ) ( )
Re: [flexcoders] Could not resolve * to a component implementation.
ha ignore my reply...went to the wrong post! Not sure how, but noticed it when it came through my mail. Amanda On Wed, Jun 30, 2010 at 9:17 AM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: Hi, I'm a wee bit stuck on this, and was hoping you might have some input to help me. I'm getting the Could not resolve * to a component implementation. error message. However, everything I've read about this via Google hasn't helped my case in the slightest. I presume I'm just missing something obvious, but maybe its something more serious. So, to solve this problem, I've tried two things, and both work, as far as they take me. First, I added a new component, of the exact same variety, and then copied the contents of the erroring component into it. I replace the viewstack 'page' with the new component (which as near as I can tell is IDENTICAL, but with a different name), and the compiler error goes away. I can also solve this by simply renaming the original component letting FB4 refactor for me. The error goes away again. But if I then re-rename back to the original name, I get the compiler error again. I've tried to clean the project several times, and that doesn't help. I'd really like to understand what I've done wrong here. What am I missing? Thanks much! -- ´¨) __o .·´ .·´¨)¸.·´¨) _'\ . (¸.·´ (¸.·´ (¸.·´¨¨ Amanda ¨¨( * ) ( )
Re: [flexcoders] Refresh list with itemRenderer/ComboBox
Hi Richard, How are you refreshing the ArrayCollection? If you are doing something like this: oldArr = newArry; then its not going to work because of the way binding works. If you haven't done it already, try this: oldArr.removeAll(); for(var i:int=0; inewArr.length; i++){ oldArr.addItem(newArr.getItemAt(i)); } Good luck! Amanda On Tue, Jul 27, 2010 at 7:22 PM, Richard Rodseth rrods...@gmail.com wrote: I have two scenarios where I have to refresh rows of a list or datagrid because the contents are computed, and one of the inputs to the computation (some meta-information) has changed. In the first (a DataGrid) I just have a labelFunction for one of the columns, and calling refresh() on the ArrayCollection in the presentation model does the trick. The second is more complicated - the list has an inline item renderer which is really a mini-editor containing a combo box. I'm struggling to get the combobox label to update. Tried calling refresh() on the array collection, invalidateList() on the list, and even executeBindings() on the list, to no avail. Binding works in all other use cases, eg. inserting and deleting items from the list. Any special considerations with an inline item renderer or combobox when forcing a refresh? As an aside, this description from the LiveDocs for executeBindings is a bit odd. Executes the data bindings into this UIComponent object. Workaround for MXML container/bindings problem (177074): override Container.executeBindings() to prefer descriptor.document over parentDocument in the call to BindingManager.executeBindings(). This should always provide the correct behavior for instances created by descriptor, and will provide the original behavior for procedurally-created instances. (The bug may or may not appear in the latter case.) A more complete fix, guaranteeing correct behavior in both non-DI and reparented-component scenarios, is anticipated for updater 1. -- ´¨) __o .·´ .·´¨)¸.·´¨) _'\ . (¸.·´ (¸.·´ (¸.·´¨¨ Amanda ¨¨( * ) ( )
[flexcoders] dynamically create xml issue
I want to create a XMLList using e4x grammar like this: var list:XMLList = Region city LA. /city city SF. /city ... /Region; function createList(nodeName:String, city:String):void{ ... ... list += nodeName city / nodeName ; } but the list finally is look like this: nodeName city /nodeName nodeName city /nodeName ... How can I create xmlList node and xmllist node content dynamically ?
[flexcoders] Re: Grouping Data for AdvancedDataGrid Tree View
You can use a custom grouping function, which may give you what you want. Look at the calendar example on flexdiary.blogspot.com for an example of a groupingFunction in action. --- In flexcoders@yahoogroups.com, Cub235 ja...@... wrote: I have an ArrayCollection filled with flat data from a database containing the fields App, Function, Form, Field, and Description and want to display this data in a tree structure. I have done this many times before using the grouping feature of AdvancedDataGrid, however this set of data is a bit different and I am not getting the results I want. App is the root of the tree and there is the possibility of having Descriptions that are 4 folder nodes deep, as in the Description is specific to a Field. A description can also be a general description of the app itself. When the description is for the app level the data looks like AppName, , , , Description of Core Application, leaving blank spaces in the Function, Form, and Field. Since the Grouping is set for all 4 fields this results in 3 blank folder nodes under the App node before the Description for the App is displayed. What I would like is for the Description to be a leaf directly under the App level node. Basically anywhere there is a blank folder eliminating that part of the structure. So far I have not been able to figure out how to do this, any help or recommendations of things to try to accomplish this would be greatly appreciated. Thanks, Jacob
Re: [flexcoders] Refresh list with itemRenderer/ComboBox
I'm not re-populating the array. Imagine it's a list of employees, and one of the properties is a job id. When displaying the list, the job title is looked up (eg. by a labelFunction on a DataGridColumn). Now, imagine the job title is edited elsewhere in the application. When we detect this (eg. via a listener) we can just call refresh() on the employee array, and the itemrenderers will run again. The second scenario I alluded to would be something like having a combobox in the grid cell for changing the job type. Once again the job title needs to be re-displayed if it is changed elsewhere, but in this case it is the dynamically-computed label of the combobox. On Tue, Jul 27, 2010 at 6:21 PM, Amanda Machutta amachu...@gmail.comwrote: Hi Richard, How are you refreshing the ArrayCollection? If you are doing something like this: oldArr = newArry; then its not going to work because of the way binding works. If you haven't done it already, try this: oldArr.removeAll(); for(var i:int=0; inewArr.length; i++){ oldArr.addItem(newArr.getItemAt(i)); } Good luck! Amanda On Tue, Jul 27, 2010 at 7:22 PM, Richard Rodseth rrods...@gmail.comwrote: I have two scenarios where I have to refresh rows of a list or datagrid because the contents are computed, and one of the inputs to the computation (some meta-information) has changed. In the first (a DataGrid) I just have a labelFunction for one of the columns, and calling refresh() on the ArrayCollection in the presentation model does the trick. The second is more complicated - the list has an inline item renderer which is really a mini-editor containing a combo box. I'm struggling to get the combobox label to update. Tried calling refresh() on the array collection, invalidateList() on the list, and even executeBindings() on the list, to no avail. Binding works in all other use cases, eg. inserting and deleting items from the list. Any special considerations with an inline item renderer or combobox when forcing a refresh? As an aside, this description from the LiveDocs for executeBindings is a bit odd. Executes the data bindings into this UIComponent object. Workaround for MXML container/bindings problem (177074): override Container.executeBindings() to prefer descriptor.document over parentDocument in the call to BindingManager.executeBindings(). This should always provide the correct behavior for instances created by descriptor, and will provide the original behavior for procedurally-created instances. (The bug may or may not appear in the latter case.) A more complete fix, guaranteeing correct behavior in both non-DI and reparented-component scenarios, is anticipated for updater 1. -- ´¨) __o .·´ .·´¨)¸.·´¨) _'\ . (¸.·´ (¸.·´ (¸.·´¨¨ Amanda ¨¨( * ) ( )
Re: [flexcoders] How to detect the decimal point character?
Put the character in resource bundles? On 7/27/10 12:21 PM, Nick Middleweek n...@middleweek.co.uk wrote: Hi, I'm doing some custom bits on the Flex 3 NumericStepper and I need to prevent more than decimal point being entered into it's textField. Is there a way to detect the character used? e.g. Germany uses a comma... Or should I do something like this... How future proof, multi-lingo is that? var decimalCharacter : String = Math.PI.toString().substr( 1, 1 ); Thanks, Nick -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Refresh list with itemRenderer/ComboBox
Flex 3.5 has some issues with ComboBox updating. On 7/27/10 4:22 PM, Richard Rodseth rrods...@gmail.com wrote: I have two scenarios where I have to refresh rows of a list or datagrid because the contents are computed, and one of the inputs to the computation (some meta-information) has changed. In the first (a DataGrid) I just have a labelFunction for one of the columns, and calling refresh() on the ArrayCollection in the presentation model does the trick. The second is more complicated - the list has an inline item renderer which is really a mini-editor containing a combo box. I'm struggling to get the combobox label to update. Tried calling refresh() on the array collection, invalidateList() on the list, and even executeBindings() on the list, to no avail. Binding works in all other use cases, eg. inserting and deleting items from the list. Any special considerations with an inline item renderer or combobox when forcing a refresh? As an aside, this description from the LiveDocs for executeBindings is a bit odd. Executes the data bindings into this UIComponent object. Workaround for MXML container/bindings problem (177074): override Container.executeBindings() to prefer descriptor.document over parentDocument in the call to BindingManager.executeBindings(). This should always provide the correct behavior for instances created by descriptor, and will provide the original behavior for procedurally-created instances. (The bug may or may not appear in the latter case.) A more complete fix, guaranteeing correct behavior in both non-DI and reparented-component scenarios, is anticipated for updater 1. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui