[flexcoders] Re: Spring vs Flex
Or just have a look at Christophe Coenraets page at http://coenraets.org/flex-spring/ Regards Markus --- In flexcoders@yahoogroups.com, senthilkumarirtt senthilkumari...@... wrote: hi i need to integrate spring and flex application. ( i want to get data retun by spring from Db to Advanced datagrid in flex app)
[flexcoders] Flex Roadmap Question
I'm not sure if I should ask that question here, but maybe somebody can help me anyway. Is there any roadmap for Flex? I have found a bug in the Flex bug management system (Jira) that shows that it is already fixed in I11 - which mean Iteration 11 for Gumbo. But what does that exactly mean? Is it already in the nightly builds for Gumbo or will it be released later? Thanks for your help. Markus
[flexcoders] Re: DateFormatter Bug?
Should I report this a bug? --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 19 Sep 2008, kramus0 wrote: trace(myDateFormatter.format(myDate)); // -- returns an empty string!!! I would have expected 00:00 or 12:00. I suspect the timeOffeset is trying to subtract an hour from the start of time, and failing. -- Tom Chiverton Helping to professionally compete systems 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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 Solicitors Regulation Authority. 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 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: RES: [flexcoders] DateFormatter Bug?
Don't think so. But how can you set a decimalSeparator and a thousandSeparator for a DateFormatter? --- In flexcoders@yahoogroups.com, Luciano Manerich Junior [EMAIL PROTECTED] wrote: Hi, i've found that, if you set a decimalSeparator for the DateFormatter, you MUST define a thousandSeparator too, else, you'll get an empty string. Maybe, is that our bug? Is that you case? Hope thats usefull. -Mensagem original- De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Tom Chiverton Enviada em: segunda-feira, 22 de setembro de 2008 10:29 Para: flexcoders@yahoogroups.com Assunto: Re: [flexcoders] DateFormatter Bug? On Friday 19 Sep 2008, kramus0 wrote: trace(myDateFormatter.format(myDate)); // -- returns an empty string!!! I would have expected 00:00 or 12:00. I suspect the timeOffeset is trying to subtract an hour from the start of time, and failing. -- Tom Chiverton Helping to professionally compete systems 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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 Solicitors Regulation Authority. 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 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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
[flexcoders] DateFormatter Bug?
Hi all, is this maybe a DateFormatter bug or am I doing something wrong? When I use a Date object that is initialized with 0 (Zero) then I can't get that value formated (with my German environment) using the DateFormatter. Here is my code: var myDateFormatter: DateFormatter = new DateFormatter(); var myDate: Date = new Date(0); //should be 1/1/1970 myDateFormatter.formatString = JJ:NN; //only show the time trace(myDateFormatter.format(myDate)); // -- returns an empty string!!! I know I would work - if I add a day because myDate shows a timeOffset of -60 (1 hour) - and that's before the 1/1/1970 Any suggestions? Thanks Markus
[flexcoders] Stop Loader.load before redirect
Hi, I have the problem that I want to cancel a Loader.load(...) request before it follows any redirects (done by a HTTP 302). Is the any chance to do it? I have tried to use Loader.close() but it didn't work. Thanks a lot. Markus
[flexcoders] Re: Cache image in Security Sandbox
Does nobody else have ever thought about that? Thanks for your help. Markus --- In flexcoders@yahoogroups.com, kramus0 [EMAIL PROTECTED] wrote: I have build a simple image cache in Flex that is used to cache all loaded images from different web sites. When I deployed that version I got some problems with the Security Sandbox (SecurityError: Error #2123 or SecurityError: Error #2122) because I was trying to access the loader.content without having having a crossdomain policy file allowing me to do so. So I didn't cache the image it self and instead I cached the hole loader containing the image. Is the correct way to cache a image inside the Security Sandbox, or is there a better way? Thanks in advance. Markus
[flexcoders] Re: Number of lines in mx:text/
Hello, can please somebody confirm if this is really a bug? Thanks Markus --- In flexcoders@yahoogroups.com, kramus0 [EMAIL PROTECTED] wrote: Yes I thought so as well, but this doesn't seems to work. Below you can find my code example. So what I see on the screen are the first two lines of text with the following content: This is the fist line of text. And this is the second line. But the trace log (even after super.updateDisplayList) shows that there are still five lines with the following content. textField.numLines:5 textField.getLineText(0):This is the first textField.getLineText(1):line of text. And textField.getLineText(2):this is the textField.getLineText(3):second line. textField.getLineText(4):Third line is this. Hope this helps. Markus This my example application: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:components=components.* layout=absolute components:MyText text=This is the first line of text. And this is the second line. Third line is this. width=157 height=40/ /mx:Application Here is my example class (derived from Text): package components { import mx.controls.Text; public class MyText extends Text { public function MyText() { //TODO: implement function super(); } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth,unscaledHeight); trace('textField.numLines:' + textField.numLines); for (var i:uint = 0; i textField.numLines; i++) { trace ('textField.getLineText('+ i.toString() + '):' + textField.getLineText(i)); } } } } --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: You should be all set after super.updateDisplayList(). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kramus0 Sent: Wednesday, October 24, 2007 9:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Number of lines in mx:text/ Thanks for your help. But when is the text in the textField actually layouted? I have tried to get the right lines (that I acutally see in the end) after commitProperties and updateDisplayList - but there is always the wrong text in the textField properties. For instance I get 5 lines even if there are only 3 lines displayed in the end. I have tried to set the width and height of the textField but this also didn't work. Any suggestions? Thanks. Markus --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Subclass, get to the internal TextField and get numLines. There are other apis on TextField to get line content From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of kramus0 Sent: Tuesday, October 23, 2007 9:34 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Number of lines in mx:text/ This might be fairly simple but how can I find out how many lines a text contains? If I for instance assign some long text to a text field it is separated in different lines if the control height is big enough. So how can I find out how many lines are there and what their content is? Thanks a lot. Markus
[flexcoders] Re: Measuring TextField properties in TextArea subclass
I think it's nearly the the same issue that I dicussed in message 91764 Number of lines in mx:text/. But I didn't get an answer yet. Markus --- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: It looks like the force update method you need for TextArea is validateProperties(). I forget if you're going to need to do more to get the internal textField to update. We'll cross the bridge later if we need to. - Dan Freiman On 10/28/07, jamalwally [EMAIL PROTECTED] wrote: Hi, I can't get the correct information about line numbers in the text of a custom class that extends TextArea (call it MyTextArea). If I set the text property of the TextArea in onCreationComplete() then getLineIndexAtPoint() returns -1. I imagine that after I update the text property, I must wait for the display to update before getLineIndexAtPoint() will return anything other than -1. So my questions are: 1. Can you force the display to update immediately? e.g. this.text = a new line of text; // this will return -1 (not what I want) trace(this.textField.getLineIndexAtPoint(2)); forceUpdate(); // this will return 0 (good) trace(this.textField.getLineIndexAtPoint(2)); 2. If you cannot force an update, is there an event to listen for so that I know when the getLineIndexAtPoint() method will return useful information? Here is my example code that does not give me what I want: public class MyTextArea extends TextArea { public function MyTextArea() { super(); // wait for creationComplete otherwise this.textField = null addEventListener(FlexEvent.CREATION_COMPLETE, onCreationComplete); } private function onCreationComplete(evt:FlexEvent):void { this.text = 'a long line of text \n with a line break ...'; // these both return -1 // but I want them to return 0 and 1, repectively // because char 1 is on line 1 and char 25 is on line 2 trace(this.textField.getLineIndexOfChar(1)); trace(this.textField.getLineIndexOfChar(25)); } } (by the way, in my application, I unfortunately don't have the option of setting this.text in the constructor). Thanks in advance for your help, James
[flexcoders] Re: Number of lines in mx:text/
Yes I thought so as well, but this doesn't seems to work. Below you can find my code example. So what I see on the screen are the first two lines of text with the following content: This is the fist line of text. And this is the second line. But the trace log (even after super.updateDisplayList) shows that there are still five lines with the following content. textField.numLines:5 textField.getLineText(0):This is the first textField.getLineText(1):line of text. And textField.getLineText(2):this is the textField.getLineText(3):second line. textField.getLineText(4):Third line is this. Hope this helps. Markus This my example application: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:components=components.* layout=absolute components:MyText text=This is the first line of text. And this is the second line. Third line is this. width=157 height=40/ /mx:Application Here is my example class (derived from Text): package components { import mx.controls.Text; public class MyText extends Text { public function MyText() { //TODO: implement function super(); } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth,unscaledHeight); trace('textField.numLines:' + textField.numLines); for (var i:uint = 0; i textField.numLines; i++) { trace ('textField.getLineText('+ i.toString() + '):' + textField.getLineText(i)); } } } } --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: You should be all set after super.updateDisplayList(). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kramus0 Sent: Wednesday, October 24, 2007 9:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Number of lines in mx:text/ Thanks for your help. But when is the text in the textField actually layouted? I have tried to get the right lines (that I acutally see in the end) after commitProperties and updateDisplayList - but there is always the wrong text in the textField properties. For instance I get 5 lines even if there are only 3 lines displayed in the end. I have tried to set the width and height of the textField but this also didn't work. Any suggestions? Thanks. Markus --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Subclass, get to the internal TextField and get numLines. There are other apis on TextField to get line content From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of kramus0 Sent: Tuesday, October 23, 2007 9:34 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Number of lines in mx:text/ This might be fairly simple but how can I find out how many lines a text contains? If I for instance assign some long text to a text field it is separated in different lines if the control height is big enough. So how can I find out how many lines are there and what their content is? Thanks a lot. Markus
[flexcoders] Text truncateToFit
I'm not sure whether this is a bug or not but truncateToFit doesn't seems to work for me. I have a text that has has a certain width and height so that it can show two lines. When I set truncateToFit to true and assign a text that is longer than to lines I would expect it is truncated at the end of the second line. mx:Text truncateToFit=true x=400 y=400 width=140 height=30 text=This is the first Line. This is the second Line that should be truncated./ So what I would expect to see is something like this: This is the first Line. This is the second L... But I get the following two lines (that scroll if I go on the text): This is the first Line. This is the second Line So, any suggestions? Thanks. Markus
[flexcoders] Re: Text truncateToFit
Hello, thanks for your help. But I want the text to be truncated after then second line. That doesn't work that way. Markus --- In flexcoders@yahoogroups.com, Ramanujam, Pratap [EMAIL PROTECTED] wrote: mx:TextArea editable=false width=140 height=61 text=This is the first Line. This is the second Line that should be truncated./ Can be used in your case. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ramanujam, Pratap Sent: Wednesday, October 24, 2007 4:07 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Text truncateToFit Hi, Use mx:TextArea text=Hello kramus0 editable=false Width= Height=/ Set the Width and Height in the design mode appropriately to specify 1 or 2 lines as required. Thanks, Pratap Ramanujam _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kramus0 Sent: Wednesday, October 24, 2007 2:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Text truncateToFit I'm not sure whether this is a bug or not but truncateToFit doesn't seems to work for me. I have a text that has has a certain width and height so that it can show two lines. When I set truncateToFit to true and assign a text that is longer than to lines I would expect it is truncated at the end of the second line. mx:Text truncateToFit=true x=400 y=400 width=140 height=30 text=This is the first Line. This is the second Line that should be truncated./ So what I would expect to see is something like this: This is the first Line. This is the second L... But I get the following two lines (that scroll if I go on the text): This is the first Line. This is the second Line So, any suggestions? Thanks. Markus
[flexcoders] Re: Text truncateToFit
Thanks for the information. So I guess the truncateToFit property doesn't make any sense at the text tag?? Markus --- In flexcoders@yahoogroups.com, Maximilian Nyman [EMAIL PROTECTED] wrote: truncateToFit has no effect on Text. If you want that behavior, you either need to implement it yourself, or find someone that already has. From http://livedocs.adobe.com/flex/201/langref/mx/controls/Text.html - unlike Label, Text does not truncate its text with ... /Max On 10/24/07, kramus0 [EMAIL PROTECTED] wrote: I'm not sure whether this is a bug or not but truncateToFit doesn't seems to work for me. I have a text that has has a certain width and height so that it can show two lines. When I set truncateToFit to true and assign a text that is longer than to lines I would expect it is truncated at the end of the second line. mx:Text truncateToFit=true x=400 y=400 width=140 height=30 text=This is the first Line. This is the second Line that should be truncated./ So what I would expect to see is something like this: This is the first Line. This is the second L... But I get the following two lines (that scroll if I go on the text): This is the first Line. This is the second Line So, any suggestions? Thanks. Markus
[flexcoders] Re: Number of lines in mx:text/
Thanks for your help. But when is the text in the textField actually layouted? I have tried to get the right lines (that I acutally see in the end) after commitProperties and updateDisplayList - but there is always the wrong text in the textField properties. For instance I get 5 lines even if there are only 3 lines displayed in the end. I have tried to set the width and height of the textField but this also didn't work. Any suggestions? Thanks. Markus --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Subclass, get to the internal TextField and get numLines. There are other apis on TextField to get line content From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kramus0 Sent: Tuesday, October 23, 2007 9:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Number of lines in mx:text/ This might be fairly simple but how can I find out how many lines a text contains? If I for instance assign some long text to a text field it is separated in different lines if the control height is big enough. So how can I find out how many lines are there and what their content is? Thanks a lot. Markus
[flexcoders] Number of lines in mx:text/
This might be fairly simple but how can I find out how many lines a text contains? If I for instance assign some long text to a text field it is separated in different lines if the control height is big enough. So how can I find out how many lines are there and what their content is? Thanks a lot. Markus
[flexcoders] Re: String concat in MXML (with using @Resource)
Thanks a lot for the really good advice. It even works with @Resource if I use it for instance to add a colon like this: mx:Label id=myId text=@Resource(key='myKey', bundle='myBundle') initialize=myId.text+=':'/ Markus --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Binding is the only way to declaratively set up expressions that get evaluated. You can use script as well: mx:Label id=foo initialize=foo.text=value + anotherValue/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kramus0 Sent: Thursday, October 18, 2007 2:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] String concat in MXML (with using @Resource) Hi all, I have a simple question regarding text values in mxml files. Is it possible to concat string values in a mxml text or label property? So something like this: mx:Label text='Value' + 'AnotherValue'/ I know that it doesn't work because it uses it as a hole string and the single strings are not concatenated at all. But it works if I use data binding instead mx:Label text={BoundValue} + {AnotherBoundValue}/ Are there any other possibilities for string concatenation? I even would like to know if there is any possibility to use string concatenation using the @Resource directive. Because here even data binding doesn't work and I don't want to use ResourceManager etc. just to add a simple colon to the resource string for instance. So maybe there is something that works. Thank for your help. Markus
[flexcoders] String concat in MXML (with using @Resource)
Hi all, I have a simple question regarding text values in mxml files. Is it possible to concat string values in a mxml text or label property? So something like this: mx:Label text='Value' + 'AnotherValue'/ I know that it doesn't work because it uses it as a hole string and the single strings are not concatenated at all. But it works if I use data binding instead mx:Label text={BoundValue} + {AnotherBoundValue}/ Are there any other possibilities for string concatenation? I even would like to know if there is any possibility to use string concatenation using the @Resource directive. Because here even data binding doesn't work and I don't want to use ResourceManager etc. just to add a simple colon to the resource string for instance. So maybe there is something that works. Thank for your help. Markus
[flexcoders] Cairngorm ServiceLocator as ActionScript class?
Hi, is it possible to write the cairngorm ServiceLocator as an ActionScript class - instead of an mxml file? Does anybody know how to do that? Which class does it extend? Thanks for your help. Markus
[flexcoders] Re: Cairngorm ServiceLocator as ActionScript class?
Didn't know it is that easy. :-) Thanks. Markus --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 05 Oct 2007, [EMAIL PROTECTED] wrote: is it possible to write the cairngorm ServiceLocator as an ActionScript class - instead of an mxml file? Turn on keep-sources in the compiler and see what it does :-) -- Tom Chiverton Helping to completely harvest professional paradigms on: http://thefalken.livejournal.com 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 Solicitors Regulation Authority. 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] MXML value / Difference between default value and a mxml value
Hi, this might sound difficult but I'm sure it isn't. I have written my own ActionScript class that extents from LinkButton. But I want that my LinkButton class uses a normal font (fontWeight = normal) as default instead of the bold font. But how can I distinguish between the default value and the value set in the MXML? For instance I call this code to get the regular (not bold) font: myComp:myLinkButton fontSize=12 ... ... / But when I ask in my LinkButton class for the font weight I get the default from the origin LinkButton - which is bold. So how could I find out the difference, without having a fontWeight=normal on every mxml call? Markus
[flexcoders] Panel with transparent content area
Hi, I am struggle a bit with a really simple panel that I what to use as container for other components. This panel should have rounded corners and it should look like as if it contains no content area. If I set for instance the border thickness so high that it doesn't show the content area it looks perfect - but I can't place any components on it anymore. But when I set the background alpha to 0 then content area is invisible but still has shadows and still looks quite different like the borders. Did anyone try this before? Thanks, Markus
[flexcoders] Re: Panel with transparent content area [Solved]
Hi, I think I found the solution. If I set the backgroundAlpha to 0.4 is seems to be equal with with the panel border alpha and the content area it's not shadowed anymore. Here is my full mxml that worked - maybe somebody else can use it as well. :-) Regards Markus mx:Panel x=337 y=94 width=250 height=280 layout=absolute cornerRadius=30 roundedBottomCorners=true borderThicknessBottom=25 borderThicknessLeft=20 borderThicknessRight=20 borderThicknessTop=0 borderColor=#E2E2E2 backgroundSize=0 borderThickness=0 backgroundAlpha=0.4 backgroundColor=#E2E2E2 alpha=0.8 /mx:Panel --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, Set the border thicknesses to 0 and the border will dissapear. Peace, Mike On 9/18/07, kramus0 [EMAIL PROTECTED] wrote: Hi, I am struggle a bit with a really simple panel that I what to use as container for other components. This panel should have rounded corners and it should look like as if it contains no content area. If I set for instance the border thickness so high that it doesn't show the content area it looks perfect - but I can't place any components on it anymore. But when I set the background alpha to 0 then content area is invisible but still has shadows and still looks quite different like the borders. Did anyone try this before? Thanks, Markus -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Re: Using @Resource directive with Moxie
Thanks for your help. It has nothing to do with Cairngorm because I could reproduce it even using just a component with an on namespace and a simple class. So I have filled a bug report with that now. Using the binding expression didn't solve the problem but adding the extra script code to get the resourceManager worked. So, thanks again Markus --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: In Flex 2, the @Resource(...) directive autogenerated code to access resources directly from a ResourceBundle instance. In Flex 3, it autogenerates code to access them through a new ResourceManager. The general policy is to always access resources through the ResourceManager as the central repository for all resources, so that there is only one instance of each bundle and so that the locale can be switched at runtime. In Flex 3, base classes like UIComponent, Formatter, and Validator now have a resourceManager property to make the @Resource directive work, but Cairngorm's ServiceLocator doesn't have such a property. Try adding mx:Script import mx.resources.IResourceManager; import mx.resources.ResourceManager; private var resourceManager:IResourceManager = ResourceManager.getInstance(); /mx:Script and see whether that makes the compiler happy. If that doesn't work, try using a binding expression like url={ResourceManager.getInstance().getString('myServiceBundle', 'myServiceUrl')} instead of url=@Resource(...) But please file this as a bug at http://bugs.adobe.com/flex http://bugs.adobe.com/flex . We should probably make the MXML compiler autogenerate a resourceManager property if necessary so that @Resource(...) will work in any class. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kramus0 Sent: Wednesday, September 12, 2007 9:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Using @Resource directive with Moxie Hi again, maybe it is just a simple namespace problem. I am using Cairngorm and so I have a different namespace for my ServiceLocator where I use the HTTPService. Here an other code snippet. Thanks for your help. Markus ?xml version=1.0 encoding=utf-8? cairngorm:ServiceLocator xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml xmlns:cairngorm=http://www.adobe.com/2006/cairngorm http://www.adobe.com/2006/cairngorm mx:HTTPService id=myService url=@Resource(key='myServiceUrl', bundle='myServiceBundle')/ The compiler error is on the last line, where it tries to allocate the Resource. Like I said in the 2.0.1 SDK that was fine. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , kramus0 kramus0@ wrote: Hi, when I use the 2.0.1 SDK I can use a localized value for the url in a HTTPService and it would look like this: mx:HTTPService id=myService url=@Resource(key='myServiceUrl', bundle='myServiceBundle')/ But when I try to compile the same code with the Moxie SDK I get an error that basically says: Error: Try to access a not defined property resourceManager. (My actual error message is in german language: Error: Zugriff auf eine nicht definierte Eigenschaft resourceManager.) So, what is going wrong? Did anyone have the same problem? Thanks, Markus
[flexcoders] Using @Resource directive with Moxie
Hi, when I use the 2.0.1 SDK I can use a localized value for the url in a HTTPService and it would look like this: mx:HTTPService id=myService url=@Resource(key='myServiceUrl', bundle='myServiceBundle')/ But when I try to compile the same code with the Moxie SDK I get an error that basically says: Error: Try to access a not defined property resourceManager. (My actual error message is in german language: Error: Zugriff auf eine nicht definierte Eigenschaft resourceManager.) So, what is going wrong? Did anyone have the same problem? Thanks, Markus
[flexcoders] Re: Using @Resource directive with Moxie
Hi again, maybe it is just a simple namespace problem. I am using Cairngorm and so I have a different namespace for my ServiceLocator where I use the HTTPService. Here an other code snippet. Thanks for your help. Markus ?xml version=1.0 encoding=utf-8? cairngorm:ServiceLocator xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:cairngorm=http://www.adobe.com/2006/cairngorm; mx:HTTPService id=myService url=@Resource(key='myServiceUrl', bundle='myServiceBundle')/ The compiler error is on the last line, where it tries to allocate the Resource. Like I said in the 2.0.1 SDK that was fine. --- In flexcoders@yahoogroups.com, kramus0 [EMAIL PROTECTED] wrote: Hi, when I use the 2.0.1 SDK I can use a localized value for the url in a HTTPService and it would look like this: mx:HTTPService id=myService url=@Resource(key='myServiceUrl', bundle='myServiceBundle')/ But when I try to compile the same code with the Moxie SDK I get an error that basically says: Error: Try to access a not defined property resourceManager. (My actual error message is in german language: Error: Zugriff auf eine nicht definierte Eigenschaft resourceManager.) So, what is going wrong? Did anyone have the same problem? Thanks, Markus
[flexcoders] Re: Text display in a ComboBox
Hi again, is this really such a difficult thing? I was thinking about to write my own class that inherits from ComboBox and then I could access the internal text field that is used to display the text. Did anybody try this before? Regards Markus --- In flexcoders@yahoogroups.com, kramus0 [EMAIL PROTECTED] wrote: Hi, I have a simple question concerning the text display in a (closed) ComboBox. Is it possible to reduce the offset of the displayed text from the upper left corner? My ComboBox seems to be large enough for the text but by default I have an offset of 6 pixels to the top and around 4 pixels to the right. Thanks for your help. Regards Markus
[flexcoders] Text display in a ComboBox
Hi, I have a simple question concerning the text display in a (closed) ComboBox. Is it possible to reduce the offset of the displayed text from the upper left corner? My ComboBox seems to be large enough for the text but by default I have an offset of 6 pixels to the top and around 4 pixels to the right. Thanks for your help. Regards Markus
[flexcoders] Re: Integrating MapServer with Flex
Hi, just a short clarification. :-) Yes, modestmaps supports actionscript 3, but you have to check out the new AS3 source from trunk. You can find it at: http://modestmaps.mapstraction.com/trac/browser/trunk We have also managed to use modestmaps with a WMS map server, and all we hat to do was to write a new map provider for the WMS map server. Was not to hard. ;-) Regards Markus --- In flexcoders@yahoogroups.com, paulh [EMAIL PROTECTED] wrote: kramus0 wrote: integrated several map providers in a map component using actionscript 3. modestMap supports flex? i thought it was just AS2? back to the original question, we've experimented w/mapserver via coldfusion/mapscript using flex (but this was a very old version of java mapscript that worked w/an open-source mapscript CFC). see: http://mapserver.gis.umn.edu/docs/howto/coldfusion for info. if you don't want a serverside app like cf talking to mapserver, i think you might be able to get at it via OGC Web Services (WMS). maybe a good place to start: http://mapserver.gis.umn.edu/docs/howto/wms_server/ other how-to's: http://mapserver.gis.umn.edu/docs/howto we've built production systems using flex against esri's arcIMS (again using coldfusion CFC to talk to arcIMS's java connector). it was fairly easy.
[flexcoders] Re: Integrating MapServer with Flex
Hi, I suggest you should take a look on http://modestmaps.com/ - they have integrated several map providers in a map component using actionscript 3. Regards Markus --- In flexcoders@yahoogroups.com, sonnygett [EMAIL PROTECTED] wrote: Hi guys, I'm a college student and now start to working on with my final assignment to get my graduate. and i was thinking about integrate MapServer (http://mapserver.gis.umn.edu/) inside the Flex application. Did someone know how to do it? regards,