Re: [flexcoders] Compile error when trying to use an extended spark TextInput
I cannot reproduce your issue in a normal case. I can reproduce your issue only in extreme case, e.g. local:MyTextInput text=textValue1 fx:StringtextValue2/fx:String /local:MyTextInput BTW, why extend from TextInput class in MXML? If there are no visual subchildren in your custom component, it's better to extend the class in solemn ActionScript. -- Best regards, Andriy Panas On 14 July 2010 13:41, bhaq1972 mbha...@hotmail.com wrote: I have created a very simple MyTextInput MyTextInput.mxml - ?xml version=1.0 encoding=utf-8? s:TextInput xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations /s:TextInput When I try using it in a Application I am getting the compile error - Multiple initializer values for default property, 'text', of type 'String' What am I missing? thanks testApp --- s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx xmlns=* MyTextInput/ /s:Application
Re: [flexcoders] Re: Compile error when trying to use an extended spark TextInput
Actually, we can create an mxml based TextInput, it works for me. Post your ActionSscript code at http://github.com/ or http://pastebin.com/ and we will work it out. -- Best regards, Andriy Panas On 14 July 2010 18:34, bhaq1972 mbha...@hotmail.com wrote: Thanks Andriy I just got round to testing it as a ActionScript class and it worked. I'm very surprised it we cant create an mxml based TextInput component. but there you go. thanks bod --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Andriy Panas a.pa...@... wrote: I cannot reproduce your issue in a normal case. I can reproduce your issue only in extreme case, e.g. local:MyTextInput text=textValue1 fx:StringtextValue2/fx:String /local:MyTextInput BTW, why extend from TextInput class in MXML? If there are no visual subchildren in your custom component, it's better to extend the class in solemn ActionScript. -- Best regards, Andriy Panas On 14 July 2010 13:41, bhaq1972 mbha...@... wrote: I have created a very simple MyTextInput MyTextInput.mxml - ?xml version=1.0 encoding=utf-8? s:TextInput xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations /s:TextInput When I try using it in a Application I am getting the compile error - Multiple initializer values for default property, 'text', of type 'String' What am I missing? thanks testApp --- s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx xmlns=* MyTextInput/ /s:Application
Re: [flexcoders] How to remove the DateField textInput border?
Have a look at textInputStyleName style http://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/mx/controls/ComboBase.html#style:textInputStyleName - http://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/mx/controls/ComboBase.html#style:textInputStyleName .textInputStyleName { border-skin : ClassReference(null); } mx:DateField textInputStyleName=textInputStyleName selectableRange={{rangeStart: new Date(2006,0,1), rangeEnd: new Date(2006,2,15)}}/ - -- Best regards, Andriy Panas On 13 July 2010 16:37, Nick Middleweek n...@middleweek.co.uk wrote: Hi, Has anyone been able to modify the border of the TextInput component of the Date field? I'm trying to set it to ZERO. I've tried extending the DateField - MyDateField and specifying the borderThickness in updateDisplayList using this.textInput.setStyle(borderThickness, 0); ... to be honest, I'm not even sure if that's the correct approach? is there a way to do it through code? Thansk in advance!! Nick
Re: [flexcoders] Re: How to remove the DateField textInput border?
There is no borderVisible style for DateField, it exists only for DateChooser, only in Flex 4 SDK and only in default skin theme Spark. -- Best regards, Andriy Panas or borderVisible : false;
Re: [flexcoders] Dispatch an event from a non visual non IEventDispatcher class
You can use composition to acquire the functionality of EventDispather, in other words add the instance of EventDispatcher class as a property of your VO class More on this: http://www.gskinner.com/blog/archives/2007/07/building_a_stat_1.html http://www.gskinner.com/blog/archives/2007/07/building_a_stat_1.html -- Best regards, JabbyPanda On 11 July 2010 08:13, dorkie dork from dorktown dorkiedorkfromdorkt...@gmail.com wrote: Is there a way to dispatch an event from a class that doesn't extend EventDispatcher? For example, lets say you have 30 different value object classes. You want to have one method called invalidateData() that dispatches an event to get the latest content from the server. Since I want to keep the data separate from the view I may need to call this in several different places. Any help would be appreciated.
Re: [flexcoders] Flex version of excel spreadsheet?
Have a look at AS3XLS library http://code.google.com/p/as3xls/ Example of the usage: http://ippblog.intuit.com/blog/2010/06/flex-to-excel-or-excel-to-flex-now-that-is-the-question.html -- Best regards, Andriy Panas On 29 June 2010 17:10, Paul Andrews p...@ipauland.com wrote: On 29/06/2010 10:43, dorkie dork from dorktown wrote: all your questions will be answered with google spreadsheets and google domain key... The idea is that the user has a slick UI and doesn't have access to the formulas, so I'm not sure Google Spreadsheets helps. Ideally I need a spreadsheet engine that is accessible to/controllable by a flex front end. Paul
[flexcoders] Disable the enter key mx:TextArea
Because KeyboardEvents are not cancelable in Flash Player, you can listen instead for textInput event and prevent starting the new line if Enter key was pressed. / mx:Script ![CDATA[ private function txtInputHandler(event:TextEvent):void{ if (event.text==\n){ event.preventDefault(); event.stopImmediatePropagation(); } } ]] /mx:Script mx:TextArea x=31 y=84 id=userInput textInput=txtInputHandler(event)/ / But then mx:TextArea behaves like single-line mx:TextInput input control... -- Best regards, Andriy Panas
Re: [flexcoders] Working with date/Time in FB
What is timezone value at the client? If you are at one of the region On Windows XP the behavior can be reproduced with: Beirut (Lebanon) Brasilia (Brasil) Buenos Aires (Argentina) Amman (Jordany) Cairo (Egypt) Manaus (Brasil) Santiago (Chile) then wait for the winter for DST time to be gone =) *Flash Player https://bugs.adobe.com/jira/browse/FP* Date class Bug https://bugs.adobe.com/jira/browse/FP-1760 https://bugs.adobe.com/jira/browse/FP-1760 -- Best regards, Andriy Panas On 27 June 2010 23:22, Smin Rana sminr...@gmail.com wrote: You are getting data as xml from cf, so everthing should be fine. if you return A you should get A. now it looks like thing is very interesting, cant you help you in this case, again debug the code and take a look of the network monitor Of FB. -Original Message- From: Scott Sent: 06-28-2010 03:27:00 Subject: RE: [flexcoders] Working with date/Time in FB I just verified both server and client are at the same time and same timezone. I wasn't doing anything special with the object I was returning initially when it was giving me the wrong time. I literally assigned the dataGrid to the CFobject that was being passed. mx:DataGrid x=68 y=446 id=dataGrid dataProvider={getAlltblreservationResult.lastResult} visible=false mx:columns mx:DataGridColumn headerText=pkReservationID dataField=pkReservationID/ mx:DataGridColumn headerText=fkPilotID dataField=fkPilotID/ mx:DataGridColumn headerText=fkPlaneID dataField=fkPlaneID/ mx:DataGridColumn headerText=szSourceAirport dataField=szSourceAirport/ mx:DataGridColumn headerText=szDestAirport dataField=szDestAirport/ mx:DataGridColumn headerText=dtStart dataField=dtStart/ mx:DataGridColumn headerText=dtEnd dataField=dtEnd/ mx:DataGridColumn headerText=szSpecialRequests dataField=szSpecialRequests/ mx:DataGridColumn headerText=pkPilotID dataField=pkPilotID/ mx:DataGridColumn headerText=szPilotLastName dataField=szPilotLastName/ mx:DataGridColumn headerText=szDescription dataField=szDescription/ mx:DataGridColumn headerText=szPilotFirstName dataField=szPilotFirstName/ /mx:columns /mx:DataGrid Both dtStart and dtEnd were exactly one hour ahead of where they should be when I made the CF call. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Smin Rana Sent: Sunday, June 27, 2010 7:30 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Working with date/Time in FB Are you sure server and FB got same timezone? I think you got some problem with your manipulation of before you set it to datagrid can you show the code where you set date on datagrid? Response date as a string from cf and set it on datagrid without any formatting? -Original Message- From: Scott Sent: 06-27-2010 19:19:40 Subject: [flexcoders] Working with date/Time in FB There's something I'm not completely understanding yet. I've coded around it but I'm not feeling comfortable with my solution. My FB4 app links up with CF9 and I'm working with dates and times. When I pull up a date from CF9 into a FB4 datagrid the time shows off by one hour. Eg. 2010-06-01 23:30:00 is in my MySQL DB (11:30pm). When I load the time from CF9 to a FB4 dataGrid it shows 2010-06-02 as the date and 12:30:00 as the time so the day advances because the time is one hour ahead. My initial thought is that it's something to do with either the timezone or day light savings time. Right now I just set a variable that I call DST, set it to -1 and then subtract it from the date before I manipulate the date and time. Even getting the UTC date/time then using the timezone still gets it off one hour without accounting for DST (that's why I think I'm dealing with daylight savings time) Can anyone confirm this or shed any light on what is going on? I don't want FB to worry about date and time; I want to do all of this through CF9 on the server side. I don't want to worry if the user has their computer set correctly for their timezone and daylight savings time. I just want FB to display the time it pulls directly from the CF9 object I provide it. Thanks a ton. sj -- This message has been scanned for viruses and dangerous content by MailScanner http://www.mailscanner.info/ , and is believed to be clean.
Re: [flexcoders] Re: Flex 4 RichText clickable hyperlinks + maxDisplayedLines
Hi, You should study the source code of RichText and RichEditableText and then create a new component that extends from TextBase to support maxDisplayedLines property that will accept LinkElements in TextFlow http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/elements/LinkElement.html#includeExamplesSummary http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/elements/LinkElement.html#includeExamplesSummaryIf you find it too hard, go and vote here, may be Adobe will reconsider RichText component architecture in the future releases of SDK: https://bugs.adobe.com/jira/browse/SDK-22109 https://bugs.adobe.com/jira/browse/SDK-22109 -- Best regards, Andriy Panas On 7 June 2010 14:05, astronaute75 astronaute@gmail.com wrote: Can someone please suggest a solution for this problem ? Thank you :) --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, astronaute75 astrona...@... wrote: Hello, RichText support maxDisplayedLines attribute, but doesn't support clickable hyperlinks. RichEditableText support clickable hyperlinks, but doesn't support maxDisplayedLines attribute. Well, I need to limit maxDisplayedLines on my clickable hyperlinks, how can I achieve that please ? Thank you in advance :) Adnan
Re: [flexcoders] Unicode Characters
Use embedded fonts with unicodeRange set only to Japanese characters to reduce the overall file size. The comprehensive list of Japanese characters is listed in flash-unicode-table.xml file included into Flex SDK -- Best regards, Andriy Panas On 8 June 2010 11:44, Christophe christophe_jacque...@yahoo.fr wrote: Hello, How to display unicode characters (for Japanese language , ...) in a flex application ? Thank you, Christophe
Re: [flexcoders] Event before preinitialize
Hi Judah, AFAIK, you have 2 approaches to execute the code before preinitialize event is fired. 1) Mark you class with metadata [Mixin] and put the code in need into method public static function init(systemManager:ISystemManager): See HowTo create your developer ToolBox with Mixins blog article http://www.rialvalue.com/blog/2010/05/21/howto-create-your-developer-toolbox-with-mixins/ 2) Via custom preloader class you can execute the code before SystemManager.intialize() method executes, See How I (sort of) modified Flex’s SystemManager.initialize() method http://www.visible-form.com/blog/how-i-sort-of-modified-flexs-systemmanagerinitialize-method/ -- Best regards, Andriy Panas On 4 June 2010 06:57, dorkie dork from dorktown dorkiedorkfromdorkt...@gmail.com wrote: That's what I'd like to do. So I added an event listener to the application preinitialized event like so: s:Application preinitialize=myHandler() / the problem is, in my application it takes a while to get to that event. so that's why I'm trying to find another event that happens sooner than that. it would be great to have systemManager, fontManager, resourceManager and styleManager creationComplete events so I can see what's taking so long in addition to redirecting if I need to. JP On Thu, Jun 3, 2010 at 10:02 PM, Kerry Thompson al...@cyberiantiger.biz wrote: it's taking a couple of seconds to reach the preinitialize event. according to this slideshow http://www.slideshare.net/michael.labriola/dense-and-hot-360-flex slide 24, 25 etc there are a couple things going on that i don't need early on. so i'd like to check the contents of a shared object or session variable early on and redirect to a much lighter login page if i need to. It doesn't take long to check the contents of a shared object. Why not just do that before you intialize the object, and let it know whether to do the lighter load? Cordially, Kerry Thompson -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: flexcoders-dig...@yahoogroups.com flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Highlight keywords in a block of text using TextLine
Hi Baz, Have a look at the component HighlightItemList, where I am highlighting the keywords (search pattern) displayed by s:RichText component, in short - I apply custom TextLayoutFormat to the keywords via editManager.applyFormat http://www.jabbypanda.com/blog/?p=110 Best regards, Andriy Panas On 31 May 2010 11:16, Baz li...@thinkloop.com wrote: Is it possible to use mxml tags like RichEditableText or TextArea whose content is already populated as the source for this process? What would we get from them, TextLine's? TextBlock's? This is a lot more challenging than I thought it would be :)
Re: [flexcoders] How to align label text to the left in Spark Button (no textAlign style)?
Hi Judah, We also use custom skins a lot along Flex 4 components, but when particular style is marked on base class as excluded with meta-tag [Exclude] there is no way to re-include this style back in base class descendant. Mxmlc compiler will continue to complain about style being excluded for the component. Luckily, in this case we can extend LinkButton from ButtonBase, and voila, textAlign style is back for the Spark LinkButton. -- Best regards, Andriy Panas On 18 May 2010 22:41, dorkie dork from dorktown dorkiedorkfromdorkt...@gmail.com wrote: Thanks Andriys, I see what you mean. I didn't look at the actual button skin. I assumed the textAlign and top left right bottom constraints were hardcoded in the default button skin's label. My example was mainly for illustrative purposes on how to pull in and set a style in your skin from CSS. In my experience so far I've had to extend almost all the controls to get the look and feel we want. This would have been a lot of work in Flex 3 but with skinning in FDK 4 (yeah i said it - coined!) and FC it's turning out to be a lot less work and lot more fun (is it ok to say work is fun?). ;) JP On Tue, May 18, 2010 at 8:04 AM, Andriy Panas a.pa...@gmail.com wrote: Hi Judah, I really do not get the Adobe folks reasoning why textAlign style was excluded from Spark Buttton. BTW, the binding of textAlign style property in your custom skin via {getStyle('textAlign')} is redundant. The s:Label inside Button's skin would inherit the value set from textAlign style from s:Button, because s:Label will have no explicit value set to textAlign in our custom skin e.g s:SparkSkin ... s:Label id=labelDisplay verticalAlign=middle maxDisplayedLines=1 horizontalCenter=0 verticalCenter=1 left=10 right=10 top=2 bottom=2 /s:Label /s:SparkSkin -- Best regards, Andriy Panas On 18 May 2010 07:53, dorkie dork from dorktown dorkiedorkfromdorkt...@gmail.com wrote: Hi Andriy, Yes. You will need to create a custom skin. You can base it on the Button skin. In the skin you can use the following code: s:Label id=labelDisplay textAlign=getStyle('textAlign') left=2 right=2 top=2 bottom=2/ /s:Skin And you must set the style in CSS. The other way to set it is to extend Button and add a property for text alignment. Then you can set it in MXML. JP On Mon, May 17, 2010 at 3:25 AM, Andriy Panas a.pa...@gmail.com wrote: Hi all, textAlign style is excluded for Spark Button, and probably for a good reason. [Exclude(name=textAlign, kind=style)] If I want to align Spark Button text label to the left, should I create custom skin to accomplish that? Something e.g: ?xml version=1.0 encoding=utf-8? s:Skin xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx minWidth=21 minHeight=21 alpha.disabled=0.5 ... s:Label id=labelDisplay textAlign=left left=2 right=2 top=2 bottom=2/ /s:Skin -- Best regards, Andriy Panas -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: flexcoders-dig...@yahoogroups.com flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How to align label text to the left in Spark Button (no textAlign style)?
Hi Judah, I really do not get the Adobe folks reasoning why textAlign style was excluded from Spark Buttton. BTW, the binding of textAlign style property in your custom skin via {getStyle('textAlign')} is redundant. The s:Label inside Button's skin would inherit the value set from textAlign style from s:Button, because s:Label will have no explicit value set to textAlign in our custom skin e.g s:SparkSkin ... s:Label id=labelDisplay verticalAlign=middle maxDisplayedLines=1 horizontalCenter=0 verticalCenter=1 left=10 right=10 top=2 bottom=2 /s:Label /s:SparkSkin -- Best regards, Andriy Panas On 18 May 2010 07:53, dorkie dork from dorktown dorkiedorkfromdorkt...@gmail.com wrote: Hi Andriy, Yes. You will need to create a custom skin. You can base it on the Button skin. In the skin you can use the following code: s:Label id=labelDisplay textAlign=getStyle('textAlign') left=2 right=2 top=2 bottom=2/ /s:Skin And you must set the style in CSS. The other way to set it is to extend Button and add a property for text alignment. Then you can set it in MXML. JP On Mon, May 17, 2010 at 3:25 AM, Andriy Panas a.pa...@gmail.com wrote: Hi all, textAlign style is excluded for Spark Button, and probably for a good reason. [Exclude(name=textAlign, kind=style)] If I want to align Spark Button text label to the left, should I create custom skin to accomplish that? Something e.g: ?xml version=1.0 encoding=utf-8? s:Skin xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx minWidth=21 minHeight=21 alpha.disabled=0.5 ... s:Label id=labelDisplay textAlign=left left=2 right=2 top=2 bottom=2/ /s:Skin -- Best regards, Andriy Panas
[flexcoders] How to align label text to the left in Spark Button (no textAlign style)?
Hi all, textAlign style is excluded for Spark Button, and probably for a good reason. [Exclude(name=textAlign, kind=style)] If I want to align Spark Button text label to the left, should I create custom skin to accomplish that? Something e.g: ?xml version=1.0 encoding=utf-8? s:Skin xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx minWidth=21 minHeight=21 alpha.disabled=0.5 ... s:Label id=labelDisplay textAlign=left left=2 right=2 top=2 bottom=2/ /s:Skin -- Best regards, Andriy Panas
Re: [flexcoders] QTP Automation and Custom Flex CheckBox itemRenderer
If your custom itemRenderer extends from UIComponent, then you have to write custom automation delegate for it http://livedocs.adobe.com/flex/3/html/help.html?content=functest_components2_17.html#204256 that exposes numAutomationChildren() and getAutomationChildAt() -- Best regards, Andriy Panas On 15 May 2010 06:27, turbo_vb timh...@aol.com wrote: Using QTP 10 and SDK 3.5 and having a tough time figuring out how to record and play back the click event of a extended CheckBox itemRenderer in an extended DataGrid component. I've tried different combinations of custom automation delegates and class definitions file properties, for the itemRenderer and the DataGrid, but haven't found a solution yet. Other custom components have been instrumented successfully, but no love for the itemRenderers. Anyone else run into this problem? Thanks ahead, -TH -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: flexcoders-dig...@yahoogroups.com flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Force CSS compilation (SDK 4 release feature).
Hi Oleg, Either patch the compiler (sigh) to remove this warning http://stackoverflow.com/questions/1499748 or set -show-unused-type-selector-warnings=false in Flex compiler section of your project properties in Flash Builder 4. http://stackoverflow.com/questions/840611/flex-the-css-type-selector-was-not-processed-because-the-type-was-not-used-in-th Could remove the warning only, not sure whether style will be compiled into resulted SWF. -- Best regards, Andriy Panas On 8 May 2010 20:11, Oleg Sivokon olegsivo...@gmail.com wrote: Hi, we were compiling against SDK 4 beta 2, and now are trying to move to the release SDK build. The problem is that in beta CSS styles would compile even though they aren't used, now the compiler tries to be smart, when it's less needed, and it doesn't compile the stiles... * sigh * I'm getting warning: C:\projects\exemplars\trunk\src\styles\main.css(93): Warning: The CSS type selector 'ToolTip' was not processed, because the type was not used in the application. The thing is, this style is used in modules, and we have 5 modules that use the same style for the tooltip - I don't want to compile this style 5 times... I've tried forcing the importing of ToolTip and Alert (these two are giving the issues), but since the main module is using RSLs, the imports are ignored, the compiler still thinks it has to omit these styles... * double sigh * Is there a way to prevent this awesome program from guessing what I wanted to do? Why try to guess and decide instead of me? Worst case - ask... Why assume?.. -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: flexcoders-dig...@yahoogroups.com flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Force CSS compilation (SDK 4 release feature).
Hi Oleh, Just found out about -keep-all-type-selectors compiler option, this must be helpful in your case http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a92.html http://forums.adobe.com/thread/483614 -- Best regards, Andriy Panas On 11 May 2010 14:51, Andriy Panas a.pa...@gmail.com wrote: Hi Oleg, Either patch the compiler (sigh) to remove this warning http://stackoverflow.com/questions/1499748 or set -show-unused-type-selector-warnings=false in Flex compiler section of your project properties in Flash Builder 4. http://stackoverflow.com/questions/840611/flex-the-css-type-selector-was-not-processed-because-the-type-was-not-used-in-th Could remove the warning only, not sure whether style will be compiled into resulted SWF. -- Best regards, Andriy Panas On 8 May 2010 20:11, Oleg Sivokon olegsivo...@gmail.com wrote: Hi, we were compiling against SDK 4 beta 2, and now are trying to move to the release SDK build. The problem is that in beta CSS styles would compile even though they aren't used, now the compiler tries to be smart, when it's less needed, and it doesn't compile the stiles... * sigh * I'm getting warning: C:\projects\exemplars\trunk\src\styles\main.css(93): Warning: The CSS type selector 'ToolTip' was not processed, because the type was not used in the application. The thing is, this style is used in modules, and we have 5 modules that use the same style for the tooltip - I don't want to compile this style 5 times... I've tried forcing the importing of ToolTip and Alert (these two are giving the issues), but since the main module is using RSLs, the imports are ignored, the compiler still thinks it has to omit these styles... * double sigh * Is there a way to prevent this awesome program from guessing what I wanted to do? Why try to guess and decide instead of me? Worst case - ask... Why assume?.. -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: flexcoders-dig...@yahoogroups.com flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Resource bundles/ locales?
Hi Nick, Have a closer look at the source code that you are dealing with, you are telling us only half of the story. Search for IResourceManager, resourceManager and getString in your source code. -- Best regards, Andriy Panas
Re: [flexcoders] What's your favorite automated testing tools?
Try RIATest, relatively inexpensive tool, support Flex 4 SDK, has a good product support via forums http://www.riatest.com/ http://www.riatest.com/ -- Best regards, Andriy Panas On 4 May 2010 23:39, ssekiguchi ssekigu...@comcast.net wrote: I've got a project where I need to build automated UI tests for the app we're building. Any suggestions on which tool is the best?
Re: [flexcoders] Changing a combobox's SelectedIndex upon A Button Click
Have a look at Flex 3 ComboBox with selectedValue support www.forta.com/blog/index.cfm/2006/11/22/Flex-ComboBox-With-selectedValue-Support http://www.forta.com/blog/index.cfm/2006/11/22/Flex-ComboBox-With-selectedValue-Support -- Best regards, Andriy Panas On 23 April 2010 15:21, James garymoorcroft_...@yahoo.co.uk wrote: This may sound simple but I'm having trouble implementing the code. I have a combox box in my app (categorySelectorDropdown) populated by an array collection which contains the property 'categoryid'. I also have a variable I've defined in my app called 'chosencategoryid', the value of which changes based on the clicking of other buttons/items in my app. I have a button which once clicked should make the combobox's selectedindex change to the particular index which has the same categoryid value as the chosencategoryid variable's value but I'm struggling to figure out the code I thought the click of the button would be something like:- categorySelectorDropdown.selectedIndex=(categorySelectorDropdown.selectedIndex WHERE categoryid == chosencategoryid); Except that obviously wouldn't work but that's the best way I can explain what I want it to do. Can anyone advise me on what the sysntax should be?
Re: [flexcoders] Flex 4 Language Reference
Hi Jonathan, Have a look at this page: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/ -- Best regards, Andriy Panas On 23 March 2010 16:25, Jonathan Bezuidenhout flex...@gmail.com wrote: Hi, Does anyone know the new online location for the Flex 4 Language reference? The old one (http://help.adobe.com/en_US/Flex/4.0/langref/) does not work anymore. Thank you. Jonathan
Re: [flexcoders] word Flex Data Visualization Trial
Hi, Just yesterday at 360Flex conference it was announced open-sourced ata visualization SWC files will be included into free Flex SDK: http://twitter.com/yfain/status/10180118026 http://twitter.com/yfain/status/10180118026 -- Best regards, Andriy Panas On 10 March 2010 14:26, Ivan Wang ivan.wang2...@gmail.com wrote: Unless you got the Flex license. - Original Message - *From:* cholid cholid cholid_rid...@yahoo.com *To:* flexcoders@yahoogroups.com *Sent:* Wednesday, March 10, 2010 6:35 PM *Subject:* [flexcoders] word Flex Data Visualization Trial HI all how to unvisible word Flex Data Visualization Trial in chart at Tour de Flex? thanks regards
Re: [flexcoders] how to implement bread crumbs in flex application
Hi all, Here is the sample of one possible implementation of breadcumb navigation in Flex 3: http://www.smashedapples.com/2008/06/flex-breadcrumb.html -- Best regards, Andriy Panas On 21 February 2010 01:50, talluri venkat talluri_venkat2...@yahoo.comwrote: Hi Satish, Do you have for flex breadcrumb. Please send me the code. If any one have flex breadcrumb working application. please let me know. Regards, Venkat --- On *Mon, 16/11/09, Satish Chowdary chinnu_...@yahoo.co.in* wrote: From: Satish Chowdary chinnu_...@yahoo.co.in Subject: [flexcoders] how to implement bread crumbs in flex application To: flexcoders flexcoders@yahoogroups.com Date: Monday, 16 November, 2009, 7:12 AM Hey Coders, give me a idea about how to implement breadcrumbs in flex application Thanks inAdvance సతీష్ -- The INTERNET now has a personality. YOURS! See your Yahoo! Homepagehttp://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/. -- The INTERNET now has a personality. YOURS! See your Yahoo! Homepagehttp://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/ .
Re: [flexcoders] Scroll to bottom on a Spark List when data changes
Hi joaoak, I wonder how do you scroll Flex 4 Spark List to the bottom, may be the error sits here. Place a control button next to List and scroll the List by pressing this control button to validate your programmatic scrolling approach. -- Best regards, Andriy Panas On 18 February 2010 15:15, joaoak joao.sale...@webfuel.pt wrote: Hi, does the Spark list dispatch any event to indicate whether it's data has changed and it has finished it's redrawing ? I need to scroll to the bottom of a Spark List everytime a new item is added to it's dataprovider (and when the dataprovider is set). I started, of course, by listening to the collection change of the dataprovider, but at this moment, the s:List hasn't updated it's UI so it won't scroll to it's end. Shouldn't the Spark list have an event for this situations? Any advices? Thank you -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: flexcoders-dig...@yahoogroups.com flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Scroll to bottom on a Spark List when data changes
Hi joaoak, Right, now I see what your problem is. 'commentsList.scroller.verticalScrollBar.maximum' does not return a new changed correct value within onCollectionChange event handler. You have plenty of options what to do, all of them can lead to cul-de-sac. For example, you can calculate a new value of maximum by youself by substracting: commentsList.scroller.viewport.contentHeight - commentsList.scroller.viewport.height Have a look at event listeners for PropertyChangeEvent.PROPERTY_CHANGE and ResizeEvent.RESIZE events dispatched from viewport set inside source code of ScrollBarBase.as and VScrollBar.as classes for better understanding when maximum value is calculated in Scroller component, -- Best regards, Andriy Panas On 18 February 2010 18:57, joaoak joao.sale...@webfuel.pt wrote: Andriy: commentsList.scroller.verticalScrollBar.value = commentsList.scroller.verticalScrollBar.maximum This works properly when called by the user (since, at the time of the button click, the List has finished updating itself). -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: flexcoders-dig...@yahoogroups.com flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: MP3 or any audio encoder?
Hi Judah, What server do you use to store locally the recorded audio stream? I believe that by default the recorded audio file from the microphone will be stored in FLV file with sound encoded using NellyMoser Asao Codec, not MPEG-1 Audio Layer (MP3) format. In the past it was very difficult to find a cheap and legal solution to convert the sound from NellyMoser Asao Codec to MP3 codec, thankfully looks like those times are gone now: http://en.wikipedia.org/wiki/Nellymoser_Asao_Codec#Use_in_other_technology Do you record the sound with Flash player 10 or Flash Player 9 and below? If you use Flash player 10, use can select to use Speex codec to encode your voice file, may be it will be better option for you: http://askmeflash.com/article/1/all-about-speex-for-flash http://livedocs.adobe.com/flex/3/langref/flash/media/SoundCodec.html -- Best regards, Andriy Panas
Re: [flexcoders] Record audio to the hard drive
Hi Judah, You can rely on Adobe Air to record captured sound on the desktop http://www.addictivetips.com/windows-tips/microphone-free-adobe-air-mp3-audio-sound-recorder/, otherwise you will have to rely on FMS or Red5 or Wowza Media Server to store the recorded sound locally. -- Best regards, Andriy Panas On 7 February 2010 08:31, dorkie dork from dorktown dorkiedorkfromdorkt...@gmail.com wrote: Is there a way to record an audio stream (microphone stream) to the users hard drive and THEN upload it to the server. I don't want to stream it to a server.
Re: [flexcoders] Re: Default width of horizontal spark list
Hi r_woess, Have a look at spark.skins.ListSkin class. For some reason, it has hardcoded properties minWidth and minHeight both set to 112. Just use custom skin class with your List instance, set minWidth and minHeight to 0 and you are set. -- Best regards, Andriy Panas
Re: [flexcoders] Re: spark list
Hi Ariel J, You may find this piece of code written by Steven Shongrunden to be insightful Disable selection on some items in a spark List http://flexponential.com/2009/12/20/disable-selection-on-some-items-in-a-spark-list/ -- Best regards, Andriy Panas
Re: [flexcoders] Flex:how to count online user and record user visits?
Hi Shuo, You have plenty of options: You can try the following: 1) SWFTrack - tracking hits on Flash sites 2) SWF Tracker and Traffic Monitoring for Flash Content :: MochiBot.com 3) Using Google Analytics with Adobe Flex app by Iconara 4) Omniture Tracking in AIR Applications by Michael Ritchie (Thank's Mister blog) All links can be accessed from my public del.icio.us bookmarks: http://delicious.com/jabbypanda/hits On 11/01/2010, Fotis Chatzinikos fotis.chatzini...@gmail.com wrote: On the server increment the user count on session create and descrement it on session destroy. Your client can then simply display this variable. On Sun, Jan 10, 2010 at 7:09 AM, happyhy2005 happyhy2...@yahoo.com.cnwrote: Hey guys, I want to write a module that count online user and record user visits. I'm using Cairngorm,it seems to me when user open the Application,I should dispatch an event,and increase onlineCount stored in ModelLocator,get the visits number from DB and increase 1.When user leave the Application,decrease onlineCount and update the visits number from DB. I know there's a life cycle in ASP.NET and could easily implement this function in Global.asax,using Application_Start,Application_End,Session_start and Session_End event. Is there any similar way to do that in Flex? What's the best routine to implement online count and user visits? Thanks in advance,Shuo -- Fotis Chatzinikos, Ph.D. Founder, LivinData Technologies www.styledropper.com fotis.chatzini...@gmail.com, -- -- Best regards, Andriy Panas
Re: [flexcoders] Re: ListEvent ItemRollOver columnIndex value is wrong
Hi all, DataGridColumn is not descendant of UIComponent, thus it does not have includeInLayout property. This issue with incorrect columnIndex in ListEvent object inside itemRollOver event handler was first reported in 2008, but now it has a status Deferred. If this issue is important to you, go to JIRA and vote. https://bugs.adobe.com/jira/browse/SDK-17823 -- Best regards, Andriy Panas 2010/1/11 invertedspear invertedsp...@yahoo.com I think, but I'm not sure, that when you set your col0 to be invisible, you need to also set includedInLayout = true; ~mike --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, bhaq1972 mbha...@... wrote: I have an itemRollover event handler in my datagrid. This datagrid also has some invisble columns (i made them visible=false during the datagrid's initialize event) Now if I make col0 invisible, and col1 visible, i.e. mx:DataGridColumn dataField=col0 visible=false.. mx:DataGridColumn dataField=col1 visible=true.. when I try to determine which column i'm rollong over...i'm getting the wrong value public function itemRolloverHandler(e:ListEvent):void { var myDataField:String = this.columns[e.columnIndex].dataField; //myDataField=col0 but it should be col1 as col0 is invsible } Is there anything I can do so e.columnIndex has the right value? thanks
Re: [flexcoders] Flex 3.5 - And Text Flow
Hi Stephen, Text flow is a feature of Text Layout Framework http://opensource.adobe.com/wiki/display/tlf/Text+Layout+Framework http://opensource.adobe.com/wiki/display/tlf/Text+Layout+FrameworkHere is example of Text flow functionality in action: http://blog.allurefx.com/2009/07/flex-4-threaded-text-using-textflow.html http://ayonesoftware.com/blog/2009/08/linked-containers-in-flex-4-using-text-layout-framework/ Text Layout Framework can be used with Flex 3.2 SDK and higher http://www.adobe.com/devnet/flex/articles/text_layout_framework_03.html -- Best regards, Andriy Panas 2010/1/5 criptopus sd_br...@ntlworld.com In Desktop Publishing packages you can flow text from one text block into another text block, does anybody know if this is possible in FLEX. Currently I have Flex 3.5 SDK and Flash 10 installed. - Stephen Brown
Re: [flexcoders] Re: flex 3.5 mx.olap classes
Hi Ridwan, http://www.adobe.com/livedocs/flex/3/langref/mx/olap/OLAPResult.html http://www.adobe.com/livedocs/flex/3/langref/mx/olap/OLAPResult.htmlmx.olap.OLAPResult class is part of Flex Data Visualisation library, which can be obtained via separate download from the page: http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk -- Best regards, Andriy Panas 2010/1/4 rid_b80 rid_...@yahoo.com Just more information. it seems that the package mx.olap is not available anymore in flex 3.5. For example if you create a new flex project and try to import mx.olap, it won't be available in anymore. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, rid_b80 rid_...@... wrote: Hi, I've just upgrade my flex sdk to flex 3.5 and when compiling I get an error Definitions mx.olap:OLAPResult could not be found. It used to work when i compiled using flex sdk 3.1, doesn anyone have the similar problem? Please help Ridwan
Re: [flexcoders] Re: 3.5 is out!!!
Hi Wesley, Clicking on that link I just get no matching issues I'd really love to see some proper release notes between versions Correction, you must be be logged in into the Adobe JIRA to access the contents of this page https://bugs.adobe.com/jira/secure/IssueNavigator.jspa?mode=hiderequestId=13381 -- JabbyPanda
Re: [flexcoders] Re: 3.5 is out!!!
Hi all, Most recent version of DMV components can be downloaded here: http://download.macromedia.com/pub/flex/sdk/datavisualization_sdk3.5.zip BTW, Flex 3.5 SDK breaks AIR app updates, if it is important to you, then do not upgrade yet. https://bugs.adobe.com/jira/browse/SDK-24766 -- Best regards, Andriy Panas 2009/12/21 tntomek tnto...@yahoo.com Hmmm still no news of DMV ... oddly enough the 3.5 stable now has August date ... 3.5, 3.5.0.12683, Tue Aug 18, 2009 Was there some last minute regression that we should wait for a more stable 3.5? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Andriy Panas a.pa...@... wrote: Hi all, Here is the list of fixed issues in Flex 3.5 SDK, 25 in total https://bugs.adobe.com/jira/secure/IssueNavigator.jspa?mode=hiderequestId=13381 What is interesting is that mx:DataGrid finally gets some love from Adobe, and quite a few annoying bugs were fixed (mostly related to item renderers). Also DragManager received a couple of fixes too. -- Best regards, Andriy Panas 2009/12/14 Matt Chotin mcho...@...: 3.5 is very minor, a few bug fixes including fixing a regression with the services from 3.4. Matt On Dec 13, 2009, at 7:47 PM, tntomek wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Penny Laus pennylaus@ wrote: I haven't been following the SDK's progress closely so I'm not sure what 3.5 offers over what I'm using now (3.2). Can anyone point to a release document or overview that explains the features and benefits of the 3.5 SDK? The SDK download itself doesn't seem to have any 3.5 release notes. Thanks in advance for any links. As Matt suggested they should have more info this week (look on flex team blog maybe). I would personally recommend upgrade to 3.5 for reliability reasons at a minimum. 3.2 was a rough release as it introduced a major feature (marshall plan), this had a few quirks which have since been fixed. You shouldn't see any difference in how your app runs. In my opinion Adobe Flex dot updates are very minor, 3.5 would be 3.05 in other SDKs (.NET/java) -- 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
Re: [flexcoders] Re: 3.5 is out!!!
Hi all, Here is the list of fixed issues in Flex 3.5 SDK, 25 in total https://bugs.adobe.com/jira/secure/IssueNavigator.jspa?mode=hiderequestId=13381 What is interesting is that mx:DataGrid finally gets some love from Adobe, and quite a few annoying bugs were fixed (mostly related to item renderers). AlsoDragManager received a couple of fixes too. -- Best regards, Andriy Panas 2009/12/14 Matt Chotin mcho...@adobe.com: 3.5 is very minor, a few bug fixes including fixing a regression with the services from 3.4. Matt On Dec 13, 2009, at 7:47 PM, tntomek wrote: --- In flexcoders@yahoogroups.com, Penny Laus pennyl...@... wrote: I haven't been following the SDK's progress closely so I'm not sure what 3.5 offers over what I'm using now (3.2). Can anyone point to a release document or overview that explains the features and benefits of the 3.5 SDK? The SDK download itself doesn't seem to have any 3.5 release notes. Thanks in advance for any links. As Matt suggested they should have more info this week (look on flex team blog maybe). I would personally recommend upgrade to 3.5 for reliability reasons at a minimum. 3.2 was a rough release as it introduced a major feature (marshall plan), this had a few quirks which have since been fixed. You shouldn't see any difference in how your app runs. In my opinion Adobe Flex dot updates are very minor, 3.5 would be 3.05 in other SDKs (.NET/java) -- 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
Re: [flexcoders] Re: Special characters (eg. Cyrillic) TextArea
Hi Tracy, I am afraid your code sample is too generic and will not help me to isolate your issue. Me as a native speaker that uses Cyrillic alphabet had never seen any problems with displaying Cyrillic alphabet symbols in mx:TextArea, but this remain valid only for Windows OS, never tried Mac OS. I see that you're running Flash Player at Mac and had created the issue https://bugs.adobe.com/jira/browse/FB-24484 at Adobe JIRA bug-base, let move the discussion over this issue to Adobe JIRA. You should try as many Flash player dot versions as possible to test this issue, e.g 9.0.115, 9.0.246, 10.0.32.18 etc because we are talking here not about Flex SDK, but about Flash player features. -- Best regards, Andriy Panas 2009/12/1 polestar11 polesta...@yahoo.com Hi there It is the mx:TextArea: mx:TextArea width=200 y=20 x=20 / Here is a code snippet: mx:Box width=100% height=100% horizontalAlign=center verticalAlign=middle mx:ViewStack id=viewStack width=100% height=100% selectedIndex=1 component:MainPanel id=mainPanel width=100% height=100% /-- mx:VBox width=100% id=progressView height=100% horizontalAlign=center verticalAlign=middle mx:ProgressBar height=15 indeterminate=true label=Initializing ChessCube ... fontSize=14 / /mx:VBox /mx:ViewStack /mx:Box mx:TextArea width=200 y=20 x=20 / The textarea works for special characters in debug mode, but not in release build mode. I've tried replicating / isolating the issue using different applications / projects but haven't found anything close to a solution yet, other than sometimes my tests fail for special characters even in debug mode (I think because I haven't cleaned the project properly) Cheers Tracy --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Gordon Smith gosm...@... wrote: BTW, are you are talking about the old MX TextArea or the or new Spark TextArea? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Andriy Panas Sent: Monday, November 30, 2009 10:49 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Special characters (eg. Cyrillic) TextArea Hi polestar11, Simple code sample will definitely help to understand your issue. -- Best regards, Andriy Panas 2009/11/30 polestar11 polesta...@...mailto:polesta...@... Hi there I have a problem where I am not able to paste special characters (eg. cyrillic arabic) into a flex TextArea component. This occasionally happens in a debug version of my app and always happens in a release build. I created a test application in the same project to try isolate the issue. I intermittently am not able to paste special characters into a textarea. I also created a different project entirely and never experience the issue. My guess is that the compiler is misbehaving getting stuck. Any help MUCH appreciated Cheers Tracy ,___
Re: [flexcoders] Re: Special characters (eg. Cyrillic) TextArea
Hi Tracy, Are you using Safari browser under Mac OS 10.6? If yes, then probably you are victim of the following bug Can't enter cyrillic symbols https://bugs.adobe.com/jira/browse/FP-3213 http://www.openradar.appspot.com/7395808 -- Best regards, Andriy Panas 2009/12/1 Andriy Panas a.pa...@gmail.com: Hi Tracy, I am afraid your code sample is too generic and will not help me to isolate your issue. Me as a native speaker that uses Cyrillic alphabet had never seen any problems with displaying Cyrillic alphabet symbols in mx:TextArea, but this remain valid only for Windows OS, never tried Mac OS. I see that you're running Flash Player at Mac and had created the issue https://bugs.adobe.com/jira/browse/FB-24484 at Adobe JIRA bug-base, let move the discussion over this issue to Adobe JIRA. You should try as many Flash player dot versions as possible to test this issue, e.g 9.0.115, 9.0.246, 10.0.32.18 etc because we are talking here not about Flex SDK, but about Flash player features. -- Best regards, Andriy Panas 2009/12/1 polestar11 polesta...@yahoo.com Hi there It is the mx:TextArea: mx:TextArea width=200 y=20 x=20 / Here is a code snippet: mx:Box width=100% height=100% horizontalAlign=center verticalAlign=middle mx:ViewStack id=viewStack width=100% height=100% selectedIndex=1 component:MainPanel id=mainPanel width=100% height=100% /-- mx:VBox width=100% id=progressView height=100% horizontalAlign=center verticalAlign=middle mx:ProgressBar height=15 indeterminate=true label=Initializing ChessCube ... fontSize=14 / /mx:VBox /mx:ViewStack /mx:Box mx:TextArea width=200 y=20 x=20 / The textarea works for special characters in debug mode, but not in release build mode. I've tried replicating / isolating the issue using different applications / projects but haven't found anything close to a solution yet, other than sometimes my tests fail for special characters even in debug mode (I think because I haven't cleaned the project properly) Cheers Tracy --- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote: BTW, are you are talking about the old MX TextArea or the or new Spark TextArea? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Andriy Panas Sent: Monday, November 30, 2009 10:49 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Special characters (eg. Cyrillic) TextArea Hi polestar11, Simple code sample will definitely help to understand your issue. -- Best regards, Andriy Panas 2009/11/30 polestar11 polesta...@...mailto:polesta...@... Hi there I have a problem where I am not able to paste special characters (eg. cyrillic arabic) into a flex TextArea component. This occasionally happens in a debug version of my app and always happens in a release build. I created a test application in the same project to try isolate the issue. I intermittently am not able to paste special characters into a textarea. I also created a different project entirely and never experience the issue. My guess is that the compiler is misbehaving getting stuck. Any help MUCH appreciated Cheers Tracy ,___
Re: [flexcoders] Special characters (eg. Cyrillic) TextArea
Hi polestar11, Simple code sample will definitely help to understand your issue. -- Best regards, Andriy Panas 2009/11/30 polestar11 polesta...@yahoo.com Hi there I have a problem where I am not able to paste special characters (eg. cyrillic arabic) into a flex TextArea component. This occasionally happens in a debug version of my app and always happens in a release build. I created a test application in the same project to try isolate the issue. I intermittently am not able to paste special characters into a textarea. I also created a different project entirely and never experience the issue. My guess is that the compiler is misbehaving getting stuck. Any help MUCH appreciated Cheers Tracy
Re: [flexcoders] Reuse same instance of UIComponent in different views
Hi Sebastien, What exact functionality do you re-use from Canvas container? May be you can substitute Canvas with UIComponent to reduce the memory footprint? -- Best regards, Andriy Panas 2009/11/28 Sébastien Tromp sebastien.tr...@gmail.com Hello, In my application, I have created an extension of a Canvas: class A extends Canvas This component is rather big in memory, and needs to be displayed in several panels of the application at the same time. For instance, as a child of another Canvas and as a child of a TitleWindow simultaneously.
Re: [flexcoders] Possible to change border thickness of textInput in error state?
Hi G, I assume you are on Flex 3 SDK, then I suggest you to set focusThickness style on textInput propety, not very elegant solution, because it also influences the thinkness of the focus. If setting focusThinkness is not an option for you, then I suggest you to extend standard TextInput component to include the support for the skin for error state, see for example those great samples by Lejnieks Show error skin for Flex 3 checkbox http://www.lejnieks.com/2009/04/06/skinning-checkbox-with-error-state/ Show error skin for Flex 3 combobox http://www.lejnieks.com/2009/04/06/skinning-combobox-with-error-state/ If you are already moved along to Flex 4 SDK, then your task will be easy, you do not have to extend standard components, just create extra skin with custom border defined for error state for Spark TextInput component, see source file of ErrorSkin.as as starting point http://www.airia.cn/FLEX4API/livedocs/spark/skins/default/ErrorSkin.html http://www.airia.cn/FLEX4API/livedocs/spark/skins/default/ErrorSkin.html -- Best regards, Andriy Panas 2009/10/21 G gmonie...@yahoo.com I know you can change the errorColor of a textinput, but I have found nothing in the docs, or online about how to change the thickness of that border (when not in focus). It seems that the thin red line is not very noticeable, and I want to bring more attention to fields which have errors. I am also open to any other suggestions that people have found succesful. Thanks.
Re: [flexcoders] Button skin without button behaviour
Hi Richard, mx:PopUpButton focusEnabled=false mouseEnabled=false label=Hello/ -- Best regards, Andriy Panas 2009/10/21 Richard Rodseth rrods...@gmail.com I have a menu bar-like structure composed of PopUpButtons with no gap between them, and wish to extend the bar to the edge of the page. If I do that by adding a dummy button what's the easiest way to suppress the appearance changes due to rollover and mousedown? I figured that might be easier than trying to recreate the button appearance with a VBox + borderSkin. Thanks.
Re: [flexcoders] Re: DateFormatter and dynamic resource management errror
Hi Ben, I was just wondering, do you really need to recompile SWC file 'framework_rb.swc' in order for updated values in *.properties files (e.g SharedResources.properties, controls.properties, etc) to become available in the localized Flex application? From my experience - I've edited SharedResources.properties and controls.properties files, put them into locale/{locale} folder, e.g locale/fr_FR, include this folder into Flex build path, then updated Flex mxmlc compiler settings in Flex Builder to include this locale -locale=fr_FR and every localized String resource from SharedResources.properties and controls.properties files is visible in resulted Flex application. Tried with Flex 3.2 and Flex 3.4 SDKs, everytime localized resources in SharedResources.properties and controls.properties files are available in Flex application without a need for framework_rb.swc to be recompiled. -- Best regards, Andriy Panas Maybe all this will help someone else here looking for a solution to this problem (and maybe some kindly bots will run across it at some point too). In short, you have to compile your own SWCs for each of the languages, and not just the resource library SWFs every other instruction set tells you about.
Re: [flexcoders] Flex Builder 3 - Conditional Debugging
import flash.debugger.enterDebugger; if(ShouldBreak()) { enterDebugger() } -- Best regards, Andriy Panas
Re: [flexcoders] This mailing list vs the forum.
Hi all, Adobe Forums are definitely the future for the main communication medium for Adobe Flex experts. Forums in general are way superior to mailing lists to exchange the knowledge on the Internet. Things that jump into my mind first - Adobe Forums have better text and code formatting support, pretty good search functionality, Adobe forums are hosted and supported by vendor technology (Adobe), thus you are more likely to receive the response from Adobe's engineers over there. Last, but not the least - most active member of Adobe Forums are promoted with points score, pretty good stuff for your individual ego. Of course, Adobe Forums still have a room to improve, because StackOverFlow web-site is even better :P http://stackoverflow.com/questions/tagged/flex -- Best regards, Andriy Panas
Re: [flexcoders] QTP automation problem of custom component
Hi Jones, Make sure, you are using the following setup as described here in comments: http://bugs.adobe.com/jira/browse/FLEXENT-770 In order to get IE 7 QTP 9.5 combination working you need to do the following 1.Download FlexBuilder 3.0.2 9the trial version is on the adobe website) 2.Uninstall the old QTP-FlexPlugin that you had. 3.Go to C:\Program Files\Adobe\Flex Builder 3.0.2\Installers default path and install the new QTP_plugin_installer. 4.Restart your machine and it should work. if you would like automation testing to work at IE7 browser. -- Best regards, Andriy Panas 2009/7/23 jones_a_h alun.huw.jo...@gmail.com: My project uses a custom Calendar component. The component implements UIComponent directly and contains children. I followed the instructions and wrote a delegate implementation for the component and a matching TEAFlex...xml class definition file. Am using a simple wrapper index.html file. The project was updated with the -include_libraries to pull in the automation swc's and a -includes to pull in my delegate implementation. In QTP using Object Spy it sees the FlexCalendar along with the events and properties I exposed in the class definition file. PROBLEM: QTP can not see any of the child items even though the numAutomationChildren and getAutomationChildAt are implemented. The value of numAutomationChildren on the FlexCalendar instance as reported by Object Spy is correct...but they just show up as BrowserPageWinObject. Any ideas what I'm doing wrong? The crazy thing is, I downloaded the RandomWalk sample/example and it behaves for me in exactly the same way...numAutomationChildren indicates the correct number of children but they are not identified correctly by Object Spy. So perhaps I am building it wrong - even though QTP does see the custom component fine. Is there some special significance to the randomWalkClasses src folder or could these files have been included at the same level as the RandomWalk.as class itself? Tried with Flex Builder 3 with SDK3.2 and testing under IE7+QTP9.5 and IE8+QTP10 - same behavior. Note: Same swf works fine with RIATest albeit with runtime approach directly on the swf, i.e. all child components are identifiable.
Re: [flexcoders] QTP automation problem of custom component
And QTP10 is not yet supported by Flex SDK automation.swc library http://bugs.adobe.com/jira/browse/FLEXENT-962 -- Best regards, Andriy Panas 2009/7/24 Andriy Panas a.pa...@gmail.com: Hi Jones, Make sure, you are using the following setup as described here in comments: http://bugs.adobe.com/jira/browse/FLEXENT-770 In order to get IE 7 QTP 9.5 combination working you need to do the following 1.Download FlexBuilder 3.0.2 9the trial version is on the adobe website) 2.Uninstall the old QTP-FlexPlugin that you had. 3.Go to C:\Program Files\Adobe\Flex Builder 3.0.2\Installers default path and install the new QTP_plugin_installer. 4.Restart your machine and it should work. if you would like automation testing to work at IE7 browser. -- Best regards, Andriy Panas 2009/7/23 jones_a_h alun.huw.jo...@gmail.com: My project uses a custom Calendar component. The component implements UIComponent directly and contains children. I followed the instructions and wrote a delegate implementation for the component and a matching TEAFlex...xml class definition file. Am using a simple wrapper index.html file. The project was updated with the -include_libraries to pull in the automation swc's and a -includes to pull in my delegate implementation. In QTP using Object Spy it sees the FlexCalendar along with the events and properties I exposed in the class definition file. PROBLEM: QTP can not see any of the child items even though the numAutomationChildren and getAutomationChildAt are implemented. The value of numAutomationChildren on the FlexCalendar instance as reported by Object Spy is correct...but they just show up as BrowserPageWinObject. Any ideas what I'm doing wrong? The crazy thing is, I downloaded the RandomWalk sample/example and it behaves for me in exactly the same way...numAutomationChildren indicates the correct number of children but they are not identified correctly by Object Spy. So perhaps I am building it wrong - even though QTP does see the custom component fine. Is there some special significance to the randomWalkClasses src folder or could these files have been included at the same level as the RandomWalk.as class itself? Tried with Flex Builder 3 with SDK3.2 and testing under IE7+QTP9.5 and IE8+QTP10 - same behavior. Note: Same swf works fine with RIATest albeit with runtime approach directly on the swf, i.e. all child components are identifiable.
Re: [flexcoders] prevent text from scrolling
Hi Thomas, Have a look at this discussion: http://www.actionscript.org/forums/showthread.php3?t=160802 You can start from listening to event Event.SCROLL as was pointed at that discussion: http://livedocs.adobe.com/flex/2/langref/flash/text/TextField.html#event:scroll May be this workaround will already satisfy your needs. Another possible workaround can be found here: http://ghostwire.com/blog/archives/fixing-textfieldbottomscrollv-and-textfieldmaxscrollv/ -- Best regards, Andriy Panas 2009/6/22 thomas parquier mailingli...@web-attitude.fr: Well I will use mx:UITextField if faster... but I have to use custom itemrenderer because of complex data to display. The scrolling I described occurs only on mousewheel, and there's no scrollbar. The measures are not wrong and the area for the text can expand, so the problem is not measurement : the text scrolls though there is no more text to see, thus only one line of text is visible out of the two when scrolling down. thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net téléphone portable : +33601 822 056 2009/6/22 Alex Harui aha...@adobe.com The default renderer can have multiple lines of text and is smaller and faster than one that uses mx:Text. If you look at the code (mx.controls.listClasses.ListItemRenderer) you’ll see that it uses the explicitWIdth to set the width of the text widget before measuring. That is required since the text height generally depends on how wide it is. Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thomas parquier Sent: Monday, June 22, 2009 6:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] prevent text from scrolling Hello, I've developped a list item renderer which embeds a mx:Text component, some text have two lines. How to prevent texts with two lines from being scrolled when list is scrolled whit mouse wheel ? thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net téléphone portable : +33601 822 056 -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] TextArea not working as Custom Item Renderer
I will quote from eariler post of Manish Jetani from flexcomponents mail conference If you want your item renderer to affect the height of the row set correct measuredHeight in measure() method http://www.mail-archive.com/flexcompone...@yahoogroups.com/msg02972.html If you are not confident with how to set measuredHeight in your custom itemRenderer, you can change rowHeight property of you listBase control (List or Datagrid) to a some greater value that will be good enough for you than default 21 pixels. -- Best regards, Andriy Panas 2009/5/23 Laurence MacNeill lmacne...@comcast.net: I have a TextArea that I'm using as a custom ItemRenderer. Problem is, it's not showing all the lines of the data -- only the first one. I can set the height to anything, and it's always just high enough to see only the first line of the text.
Re: [flexcoders] DataGridColumn backgroundColor bug?
The corresponding issue for this bug is http://bugs.adobe.com/jira/browse/SDK-14785, it is still not fixed in SDK with a current status deferred -- Best regards, Andriy Panas
Re: [flexcoders] Validation on ItemRenderers in DataGrid
Are you using custom itemEditor component or default itemEditor shipped with mx:DataGrid component? -- Best regards, Andriy Panas I need to validate all the item renders within a DataGris on certain triggers from within dataGrid as well as out of dataGrid. Validation should provide feedback by marking the border red and error message on hover. I am wondering if any has faced similar issues.
[flexcoders] Create an email in default email desktop client that is pre-populated with attachment file
Hello all, Is there any way to fill 'body' attribute in the following URLRequest with Base64 encoded data that will represent binary file? var request:URLRequest = new URLRequest(mailto:n...@gmail.com+?subject=+body=;); -- Best regards, Andriy Panas
[flexcoders] Adding new class definition to TEAFlexCustom.xml file
Hi all, This is the question which is related to automated testing with HP QuickTest 9.5 and Flash application built on top of Adobe Flex 3.2 SDK. For example, I had created a new class that extends from HBox, say ExtendedHBox. -- public class ExtendedHBox extends HBox { public function ExtendedHBox() { super(); dispatchEvent(new Event(customEvent)); } } -- This class dispatches custom event that I would like to instrument, typed as customEvent. In order to do so, I am adding to the class definition file for QTP called TEAFlex.xml file a new entry titled ExtendedHBox: ClassInfo Name=ExtendedHBox GenericTypeID=frame Extends=FlexBox SupportsTabularData=true My question is Why should I specify again all instrumented events for parent HBox component like flash.events.MouseEvent.CLICK and flash.events.FocusEvent.KEY_FOCUS_CHANGE in newly added entry ClassInfo Name=ExtendedHBox? If I would not do that I will receive the following error: Error: Unable to find automation method 'flash.events.MouseEvent' for class 'name: ExtendedHBox superClassName: FlexBox If this is feature as designed I simply do not get what the purpose of @Extends attribute value for ClassInfo declaration for QTP class definition file. -- Testing to the metal (mental?), JabbyPanda
[flexcoders] setSelection method is missing from IUITextField interface? (Flex SDK 3.1)
Dear all, In my code I have variable typed as IUITextField /* The internal IUITextField that renders the text of this text control. */ protected var textField : IUITextField; In Flex Builder I am able to select with code complete feature setSelection method on typed variable with IUITextField type and then my project compiles just fine. But I am wondering why I could not locate declaration of setSelection method inside of source file IUITextField.as file supplied with SDK? -- Best regards, Andriy Panas
Re: [flexcoders] Font loaded by StyleManager.loadStyleDeclarations(fontName, true) resets any new text formatting set via setTextFormat
Hi Manish, First of all, getTextField returns an IUITextField, and there's no method called setTextFormat on IUITextField. So you're casting the object to its actual type, UITextField, and then calling the setTextFormat method on it. That's not supported. Actually, when applying bold style to the text I am following the same approach from standard component mx:RichTextEditor, inside RichTextEditor.as, line 449 some unknown to me Flex SDK engineer is calling setTextFormat method like that textArea.getTextField().setTextFormat exactly the same way I do ;) If you want to get around that, it should be okay to pass false as the second argument to loadStyleDeclarations as long as your external stylesheet really does not affect any existing objects on the screen. Thanks, Manish, from now on I will load all external pre-compiled fonts into my Flex applications with update parameter set to FALSE to avoid cascading immediate style changes through DisplayObjectList hierarchy. -- Med venlig hilsen / Best regards Andriy Panas a.pa...@gmail.com
[flexcoders] Font loaded by StyleManager.loadStyleDeclarations(fontName, true) resets any new text formatting set via setTextFormat
Dear all, I have TextArea component on the Stage with embedded font applied, then at the runtime I set a bold style to a text inside TextArea to bold via setTextFormat(newTextFormat) API. Then, I load at the runtime compiled font from CSS - Vera.swf and my bold formatting is lost immediately after external font finishes loading. Notice, that the second parameter in StyleManager.loadStyleDeclarations(fontName, update) call is set in the code to true. When I change this boolean parameter to false - then I will not witness that my bold formatting is lost after compiled font finishes loading at the runtime. My question, why when update parameter is set to true, I will loose all my text formatting changes made at the runtime? Please have a look at the code below or the run the example from http://jabbypanda.com/labs/runtimeFont/TestRuntimeFont.html !---code starts--- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; styleName=plain viewSourceURL=srcview/index.html paddingLeft=10 paddingBottom=10 paddingRight=10 paddingTop=10 mx:Style @font-face { src:url(/assets/trebuc.ttf); fontFamily: Trebuchet; } @font-face { /* Note the different filename for boldface. */ src:url(assets/trebucbd.ttf); fontFamily: Trebuchet; /* Notice that this is the same alias. */ fontWeight: bold; } /mx:Style mx:Script ![CDATA[ import mx.events.StyleEvent; import mx.core.UITextField; import mx.core.mx_internal; use namespace mx_internal; private function onApplyBoldText() : void { var ta1TextField : UITextField = UITextField(ta1.getTextField()) var ta2TextField : UITextField = UITextField(ta2.getTextField()); var newTextFormat : TextFormat = new TextFormat(); newTextFormat.bold = true; ta1TextField.setTextFormat(newTextFormat); ta2TextField.setTextFormat(newTextFormat); } private function loadFont() : void { var styleManager : IEventDispatcher = StyleManager.loadStyleDeclarations(Vera.swf, true); styleManager.addEventListener(StyleEvent.COMPLETE, onStyleManagerComplete); styleManager.addEventListener(StyleEvent.PROGRESS, onStyleManagerProgress); styleManager.addEventListener(StyleEvent.ERROR, onStyleManagerError); } private function onStyleManagerComplete(event : StyleEvent) : void { fontLoadStatus.text = Font is successfully loaded; } private function onStyleManagerProgress (event : StyleEvent): void { fontLoadStatus.text = Font is loading, please wait; } private function onStyleManagerError(event : StyleEvent) : void { fontLoadStatus.text = Font load error; } ]] /mx:Script mx:TextArea id=ta1 width=400 height=100 fontFamily=Trebuchet mx:text This is a multiline, editable TextArea control. If you need a non-editable multiline control, use the Text control. /mx:text /mx:TextArea mx:TextArea id=ta2 width=400 height=100 fontFamily=Trebuchet mx:htmlText![CDATA[This is font color=#FFHTML text/font in a bTextArea control/b. Use the uhtmlText property/u of the font color=#008800TextArea control/font to include basic HTML markup in your text.]]/mx:htmlText /mx:TextArea mx:Button label=Apply bold text click=onApplyBoldText() /mx:Button mx:Button label=Load font click=loadFont() /mx:Button mx:Label id=fontLoadStatus text=Font is not yet loaded /mx:Label /mx:Application !---code ends--- -- Best regards Andriy Panas
Re: [flexcoders] Does Flex builder 3.0.2 eclipse plug-in work in Eclipse 3.4?
Hi Dave, I aslo Flex Builder 3.0.2 as Flex Builder Plug-in with Eclipse 3.4 on Windows XP - no problems noticed. -- Med venlig hilsen / Best regards Andriy Panas a.pa...@gmail.com
Re: [flexcoders] More woes with TextArea and htmlText - Copy to clipboard
Hi Peat, Anyone have a clue how to copy text to the clipboard when using htmlText? Or as a workaround, any clue on how to detect I've pressed Ctrl-C? If so, I could do my own work to copy to clipboard. Without looking at your code I have 2 suggestions for you. 1) If scrolling functionality for the text is not important for you, then abandon the efforts of extending TextArea component and extend your custom edit textArea from Text + set textField to TextFieldType.DYNAMIC type, that's my approach. 2) You cannot handle CTRL+C keyboard shortcuts alike in a Flash alone if you target Internet Explorer browser. See the issue I'd submitted to JIRA bugbase a while ago http://bugs.adobe.com/jira/browse/FP-106 Also see this link http://www.mehtanirav.com/2008/11/19/how-to-stop-keyboard-event-propagation-flex-javascript, it will make you move in a right direction. -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
Re: [flexcoders] Does UIComponent.measureHTMLText(htmlText) method takes TextFormat.blockIndent value into the account when calculating width value of TextLineMetrics object?
Hi Gordon, I've found the submission patch at Adobe JIRA bug-base you've been referring in a previous message: http://bugs.adobe.com/jira/browse/SDK-16641 While I fully welcome this fix, it does not suit my needs precisely. I've studied source code of mx:Text private function measureUsingWidth(widthValue) and that was closer to solve my task. I've reused this method in my custom Text component to take into account the values of blockIndent values specified to all TextFormat applied to the textField under the question while measuring the width for this component in override protected measure method. To return the Array of all TextFormats applied to the textField I rely on undocumented Flash Player API - flash.text.TextRun http://nondocs.blogspot.com/2007/05/flashtexttextrun.html - is it OK to rely on undocumented Flash Player API in our projects? Then, I calculate the maximum BLOCKINDENT value within all TextFormats objects found for the textField and then I make sure in my |measure method for my Text component to take this maximum BLOCKINDENT value into the consideration, e.g measuredWidth = Math.max(MIN_TEXT_HEIGHT, Math.ceil(textField.textWidth) + UITextField.TEXT_WIDTH_PADDING + maxParagraphIndentValue); 2008/11/4 Gordon Smith [EMAIL PROTECTED]: It sounds like a Player quirk that the Flex framework needs to work around. I think a fix went in to the measure() method of UITextFormat recently for a similar problem with 'indent'. You should file a bug. And if you file a patch, it is likely to get fixed sooner. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andriy Panas Sent: Monday, November 03, 2008 2:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Does UIComponent.measureHTMLText(htmlText) method takes TextFormat.blockIndent value into the account when calculating width value of TextLineMetrics object? Hi all, Accordingly to my tests, method textField.getLineMetrics(0) that lays in the core of UIComponent.measureHTMLText(htmlText) returns TextLineMetrics object with the value for the width property that is calculated regardless from the value specified for textFormat.blockIndent value applied to the textField in question. Is that an intentional behavior? -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED] -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
[flexcoders] Does UIComponent.measureHTMLText(htmlText) method takes TextFormat.blockIndent value into the account when calculating width value of TextLineMetrics object?
Hi all, Accordingly to my tests, method textField.getLineMetrics(0) that lays in the core of UIComponent.measureHTMLText(htmlText) returns TextLineMetrics object with the value for the width property that is calculated regardless from the value specified for textFormat.blockIndent value applied to the textField in question. Is that an intentional behavior? -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
Re: [flexcoders] Placing cursor inside UITextField
Hi Brandon, Use the following to set focus for the textField's instance of UITextField: var textField:UITextField = new UITextField(); textField.type = input; textField.autoSize = TextFieldAutoSize.LEFT; textField.multiline = true; textField.wordWrap = false; textField.border = false; myContainer.addChild(textField) textField.setFocus(textField); Notice, that first you have to add textField to the DisplayChildList of corresponding container via addChild and only then you can call setFocus on it. 2008/9/19 Brandon Krakowsky [EMAIL PROTECTED]: I'm creating some Input UITextField instances dynamically, and then trying to place the cursor inside. Can't seem to get it working. var textField:UITextField = new UITextField(); textField.type = input; textField.autoSize = TextFieldAutoSize.LEFT; textField.multiline = true; textField.wordWrap = false; textField.border = false; stage.focus = textField; It seems to get the focus, but doesn't put the cursor inside. Can't just start typing. Also, textField.setFocus() doesn't work. -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
Re: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0
Hi stranger bc24fl, Mike Schmalle had proposed you the exact solution, that we are currently using within our project based on Flex 2 SDK to enable/ disable menu items in MenuBar component. I do not understand without looking at your code, what is going on wrong with your MenuBar. Can you post a dummy sample of the code online to illustrate your problem? SWF with View source option enabled would be nice. ps Why do you post anonymously to this list, BTW? I would like to reference you by your name ;) -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED] On 03/06/2008, bc24fl [EMAIL PROTECTED] wrote: I'm really struggling for help. We have done everything to try and get a solution to this problem including: 1. Posting on public forums / mailing lists 2. Purchased books on AS3 and Flex 3. Signed up for a year subscription to Lynda.com 4. Purchased support from experts-exchange.com 5. Purchased support directly from Adobe where supposedly it's 3 day response (no resolution) and we have received no response for a week (business days). What in the world am I doing wrong? This question doesn't appear to be rocket science as I've done this (enable/disable menu items) in many other programming languages. As you can see I have exhausted every (that I know of) resource. What else am I to do? My employer is upset and now considering dropping the language altogether and I don't want that. Any advice would BE MUCH APPRECIATED. End rant. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, bc24fl [EMAIL PROTECTED] wrote: I have the following XML data defined in my app: = !-- Define the menu data. -- mx:XML format=e4x id=myMenuData root menuitem id=menuDrill label=Drill = menuitem id=menuDown label=Down toggled=false enabled=true/ menuitem id=menuUp label=Up toggled=false enabled=true/ /menuitem menuitem type=separator/ menuitem label=Lock / Unlock type=check toggled=false/ menuitem type=separator/ menuitem label=Reset Graph toggled=false/ /root /mx:XML === I can statically disable one of the items by setting enabled=false, however I need to disable the item by using Action Script 3.0. I've tried using dataDescriptor like so but it does not work: === myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown,false); === I've posted this on a few forums and haven't received a solution. I hope I can find one here. Any help would be much appreciated. Thanks.
Re: [flexcoders] Re: Tree - Drag Drop - prevent drop into folder
FYI, iilsley, back in November 2006, Adobe Flex SDK Engineer Deepa Subramaniam had made a promise on Flexcoders mailing list that the access to Tree's property _dropData declared as 'mx_internal' in Flex 2.0.1 SDK will be upgraded to public in Flex 3 SDK release: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg46023.html I am currently on Flex 2.0.1 SDK, can you check for me whether the access to _dropData was upgraded to public in Flex 3 SDK? -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED] On 21/05/2008, Andriy Panas [EMAIL PROTECTED] wrote: Good idea iilsley with demanding more cleaner API for the Tree component to expose the dropTarget during drag and drop operations. I've started today a new thread on Flexcoders, you may be interested to read it too: http://tech.groups.yahoo.com/group/flexcoders/message/113475 Thanks for the info .. I may log a feature request for the Tree control to expose more information about the dropTarget . -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
Re: [flexcoders] Re: Tree - Drag Drop - prevent drop into folder
Hi there, I consider the task of preventing drag and drop operations on certain tree nodes when using Tree component shipped with Flex 2 SDK to be not trivial at all. The internal code of Tree component is complex and not very well documented inside the code. I would recommend you as as starting point to create a custom event handler for onDragOver event to prevent drag operation on certain tree node types, e.g: --- private function onMyTreeDragOver(event : DragEvent) : void { . skipped code //forbid dragging on itself if (draggedItem == hoverTarget) { DragManager.showFeedback(DragManager.NONE); myTree.hideDropFeedback(event); return; } // forbid dragging of top level of the hierarchy var hoverTargetParentXML : XML = myTree.getParentItem(hoverTarget); if (hoverTargetParentXML == null) { DragManager.showFeedback(DragManager.NONE); myTree.hideDropFeedback(event); return; } . skipped code } --- But when you start to rely on 'myTree.calculateDropIndex' to find out what tree item is currently placed under moved draggedItem (I called this tree item as 'hoverTarget' in the code above), you quickly become unsatisfied with results that 'myTree.calculateDropIndex' yields. May be I will write more on my blog on the difficulties that I had encountered during performing the task of preventing certain drag and drop operation with Flex 2.0.1 SDK Tree component if there will be some considerable interest from the public. -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
[flexcoders] Flex 2 SDK: Drag and drop node withing Tree control- how to get reference to a new parent node for the dragged node?
Hi all, From looking inside of Tree.as class, I got the understanding that Tree's dataProvider is updated with a new position of draggedNode inside event handler for dragComplete event called 'dragCompleteHandler'. Thus, I've subscribed to dragComplete event to work with the updated copy of Tree's dataProvider. Unfortunately, I had found out that I cannot get an access to 'draggedItems' Array based on data from DragEvent inside custom dragComplete event handler. My custom event handler function listing: - private function onDragComplete(event : DragEvent) : void { event.preventDefault(); var draggedItems : Array = (event.dragSource.dataForFormat(treeItems) as Array); for each (var draggedItem : XML in draggedItems) { var parentTarget : XML = tree.getParentItem(draggedItem); trace (onDragComplete, draggedItems.length); } } - The trace command inside this function outputs that 'draggedItems' Array length is 0, when I successfully finish the drag operation within a Tree with dragged Item. When I subscribe to dragDrop event, I have an access to 'draggedItems' Array without the problems - you can check it by yourself by running the code below. Full MXML listing code follows: --- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=onCreationComplete() mx:Script ![CDATA[ import mx.events.DragEvent; private static const itemsXML : XML = root item label=item 1 a label=a1 x label=x1 / y label=y1 / z label=z1 / /a b label=b1 / c label=c1 / /item /root; private function onCreationComplete() : void { tree.dataProvider = itemsXML; } private function onDragDrop(event : DragEvent) : void { var draggedItems : Array = (event.dragSource.dataForFormat(treeItems) as Array); for each (var draggedItem : XML in draggedItems) { var parentTarget : XML = tree.getParentItem(draggedItem); trace (onDragDrop, draggedItems.length); } } private function onDragComplete(event : DragEvent) : void { event.preventDefault(); var draggedItems : Array = (event.dragSource.dataForFormat(treeItems) as Array); for each (var draggedItem : XML in draggedItems) { var parentTarget : XML = tree.getParentItem(draggedItem); trace (onDragComplete, draggedItems.length); } } ]] /mx:Script mx:Tree id=tree width=500 height=500 labelField=@label dragEnabled=true dropEnabled=true showRoot=false dragDrop=onDragDrop(event) dragComplete=onDragComplete(event)/ /mx:Application --- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
Re: [flexcoders] Re: Tree - Drag Drop - prevent drop into folder
Good idea iilsley with demanding more cleaner API for the Tree component to expose the dropTarget during drag and drop operations. I've started today a new thread on Flexcoders, you may be interested to read it too: http://tech.groups.yahoo.com/group/flexcoders/message/113475 Thanks for the info .. I may log a feature request for the Tree control to expose more information about the dropTarget . -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
Re: [flexcoders] Flex 2 SDK: Drag and drop node withing Tree control- how to get reference to a new parent node for the dragged node?
I've came to the same solution today. in my custom dragDrop event handler I store dragged items into private class variable called 'draggedItems': private var draggedItems : Array . private function onDragDrop(event : DragEvent) : void { draggedItems = event.source.dataForFormat(treeItems) as Array) } And then I can do the following: . private function onDragComplete(event : DragEvent) : void { event.preventDefault(); for each (var draggedItem : XML in draggedItems) { var parentTarget : XML = tree.getParentItem(draggedItem); // ready to call the delegate to store the new position of dragged node in the database storeDraggedNodeInDatabase([EMAIL PROTECTED], draggedItem) } You'll probably have to cache selectedItems -- Med venlig hilsen / Best regards Andriy Panas
Re: [flexcoders] Inline Tree's node name editing creates visible empty nodes in a Tree when labelFunction property is set
Thanks Alex for the hint, it worked for us after we began to call event.preventDefault() in our custom itemEditEnd event handler. Personally, I think we had hit quite a widespread issue here as it is visible from the google search for labelFunction, itemEditEnd keywords http://www.google.com/search?q=labelFunction+itemEditEnd, e.g http://bugs.adobe.com/jira/browse/SDK-14312 I would like Adobe to document this issue better in docs or in blogs illustrated with code samples. -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
Re: [flexcoders] Preventing default onClick-behaviour in List-Component
Hi Alex, What are API design considerations behind of making most of mx.events.ListEvent events not cancelable? I just wanted to use event.preventDefault in my custom event handler for ListEvent.ITEM_DOUBLE_CLICK event, but I could not. That is because those events are not cancelable. Are you just trying to reset what the selectedIndex was? I'd just store the last good one somewhere. -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
[flexcoders] Re: Immediate setting selectedIndex to 0 on mx:Tree after changing to new dataProvider does not selects a first node in the list (although it works with mx:List as advertised)
Another workaround is to call tree1.validateNow() before setting the selectedIndex as adviced here in workaround notes: https://bugs.adobe.com/jira/browse/SDK-11424 Workaround (if any): Call List.validateNow() after changing the data provider but before setting the selected index. 2008/4/25 Andriy Panas [EMAIL PROTECTED]: Hi Flexcoders, I am on Flex 2.0.1 SDK. My use case is as follows: 1) At the start of the application, I set dataproviders of XMLListCollection type to 2 different UI controls on stage (mx:Tree and mx:List) and then I set immediately selectedIndexes to 0. It works all right for both controls. 2) Then I switch dataproviders at the runtime for both UI controls by pressing the button and then I set immediately selectedIndexes to 0 again. mx:List displays the selection correctly, while mx:Tree does not. My current workaround is to set myTree.selectedIndex = 0 within callLater call or within FlexEvent.UPDATE_COMPLETE event listener for mx:Tree. My test file is quite simple: --- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; initialize=onInitialize() mx:Script ![CDATA[ private function onInitialize() : void { tree1.dataProvider = capitals; list2.dataProvider = capitalColl; setSelectedIndexes(); } private function changeDP() : void { tree1.dataProvider = capitals2; list2.dataProvider = capitalCol2; setSelectedIndexes(); //callLater(setSelectedIndexes) } private function setSelectedIndexes() : void { tree1.selectedIndex = 0; list2.selectedIndex = 0; } ]] /mx:Script mx:XML id=capitals root Capitals label=U.S. State Capitals /Capitals Capitals label=Canadian Province Capitals /Capitals /root /mx:XML mx:XML id=capitals2 root Capitals label=U.S. State Capitals-2 /Capitals Capitals label=Canadian Province Capitals-2 /Capitals /root /mx:XML !-- Create an XMLListCollection representing the Tree nodes. capitals.Capitals is an XMLList with both Capitals elements. -- mx:XMLListCollection id=capitalColl source={capitals.Capitals}/ mx:XMLListCollection id=capitalCol2 source={capitals2.Capitals}/ mx:Tree id=tree1 labelField=@label showRoot=false width=300/ !-- The XMLListCollection does not include the XML root. -- mx:List id=list2 labelField=@label width=300/ mx:Button id=btn1 label=Change data provider click=changeDP() /mx:Button /mx:Application --- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED] -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
[flexcoders] Immediate setting selectedIndex to 0 on mx:Tree after changing to new dataProvider does not selects a first node in the list (although it works with mx:List as advertised)
Hi Flexcoders, I am on Flex 2.0.1 SDK. My use case is as follows: 1) At the start of the application, I set dataproviders of XMLListCollection type to 2 different UI controls on stage (mx:Tree and mx:List) and then I set immediately selectedIndexes to 0. It works all right for both controls. 2) Then I switch dataproviders at the runtime for both UI controls by pressing the button and then I set immediately selectedIndexes to 0 again. mx:List displays the selection correctly, while mx:Tree does not. My current workaround is to set myTree.selectedIndex = 0 within callLater call or within FlexEvent.UPDATE_COMPLETE event listener for mx:Tree. My test file is quite simple: --- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; initialize=onInitialize() mx:Script ![CDATA[ private function onInitialize() : void { tree1.dataProvider = capitals; list2.dataProvider = capitalColl; setSelectedIndexes(); } private function changeDP() : void { tree1.dataProvider = capitals2; list2.dataProvider = capitalCol2; setSelectedIndexes(); //callLater(setSelectedIndexes) } private function setSelectedIndexes() : void { tree1.selectedIndex = 0; list2.selectedIndex = 0; } ]] /mx:Script mx:XML id=capitals root Capitals label=U.S. State Capitals /Capitals Capitals label=Canadian Province Capitals /Capitals /root /mx:XML mx:XML id=capitals2 root Capitals label=U.S. State Capitals-2 /Capitals Capitals label=Canadian Province Capitals-2 /Capitals /root /mx:XML !-- Create an XMLListCollection representing the Tree nodes. capitals.Capitals is an XMLList with both Capitals elements. -- mx:XMLListCollection id=capitalColl source={capitals.Capitals}/ mx:XMLListCollection id=capitalCol2 source={capitals2.Capitals}/ mx:Tree id=tree1 labelField=@label showRoot=false width=300/ !-- The XMLListCollection does not include the XML root. -- mx:List id=list2 labelField=@label width=300/ mx:Button id=btn1 label=Change data provider click=changeDP() /mx:Button /mx:Application --- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
Re: [flexcoders]Setting DataGrid header to transparent
Hi Judah, If you are on Flex 3 SDK, you can just use your own skin for mx:Datagrid header called headerBackgroundSkin http://livedocs.adobe.com/flex/3/langref/mx/controls/DataGrid.html#styleSummary It is only available in Flex 3 SDK, I learned it from source file of mx.controls.dataGridClasses.DataGridHeader from Flex 3 SDK. Otherwise, override protected drawHeaderBackground method for mx:Datagrid for Flex 2 SDK as described here: http://www.munkiihouse.com/?p=14 -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
[flexcoders] Inline Tree's node name editing creates visible empty nodes in a Tree when labelFunction property is set
Hi Flexcoders, Steps to reproduce: 1. Compile this file ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; applicationComplete=onCreationComplete() mx:Script ![CDATA[ import mx.collections.XMLListCollection; import mx.controls.Alert; import mx.events.FlexEvent; private var companyXML:XML = list project name=Finance code=200 presentation name=John H/ presentation name=Sam K/ /project project name=Operations code=400 presentation name=Bill C/ presentation name=Jill W/ /project project name=Engineering code=300 presentation name=Erin M/ presentation name=Ann B/ /project /list; private function onCreationComplete() : void { testTree.dataProvider = new XMLListCollection(companyXML.children()) } private function displayPresentationTreeItem(item : XML) : String { return [EMAIL PROTECTED]; } ]] /mx:Script mx:Tree id=testTree width=100% height=100% editable=true labelFunction=displayPresentationTreeItem /mx:Tree /mx:Application 2. Expand any tree node 3. Click on tree node name and enter a new name. Hit Enter key to save changes Actual Results: --- 1. Empty tree nodes are added to the tree Expected Results: --- 2. New tree node name entered is displayed in a tree What do I do wrong? ps I had filled a bug at Adobe JIRA bug-database: https://bugs.adobe.com/jira/browse/SDK-15339, so far no response there. -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
Re: [flexcoders] Re: How to retrieve the Button label name?
You should assign an identifier to the label, something like mx:Label id=myLabel/. Then, in the code, you can access Label's current label by calling 'myLabel.text'.
[flexcoders] ListEvent.ITEM_EDIT_END is being wrongly dispatched twice if the corresponding event handler includes mx:Alert
Hi all, I've subscribed to ListEvent.ITEM_EDIT_END event for my Tree and put Alert.show(I am error message). My Alert window is being shown twice when the I finish to edit the tree node name in the the editable TextInput field. What I've done wrong? I am on Flex 2.0.1 SDK. The code sample: -- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical initialize=onInitialize() mx:Script ![CDATA[ import mx.events.ListEvent; import mx.controls.Alert; private function onInitialize() : void { tree1.addEventListener(ListEvent.ITEM_EDIT_END, onItemEditingEnd); } private function onItemEditingEnd(event : ListEvent) : void { event.preventDefault(); Alert.show(I am error message); } ]] /mx:Script mx:Tree id=tree1 labelField=@label editable=true showRoot=false width=160 mx:XMLListCollection id=MailBox mx:XMLList folder label=Mail folder label=INBOX/ folder label=Personal Folder Pfolder label=Business / Pfolder label=Demo / Pfolder label=Personal isBranch=true / Pfolder label=Saved Mail / /folder folder label=Sent / folder label=Trash / /folder /mx:XMLList /mx:XMLListCollection /mx:Tree /mx:Application -- -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
[flexcoders] Re: ListEvent.ITEM_EDIT_END is being wrongly dispatched twice if the corresponding event handler includes mx:Alert
I have found out about ListEventReason class and that class instance of ListEvent type has reason property of ListEventReason type. We change 'onItemEditingEnd' event handler in the following way: private function onItemEditingEnd(event : ListEvent) : void { // Check the reason for the event. if (event.reason == ListEventReason.CANCELLED || event.reason == ListEventReason.OTHER){ // Do not update cell. return; } Alert.show(I am error message); } onItemEditingEnd event handler will be still called twice, but the Alert window will be shown only if ListEvent event.reason is equal to ListEventReason.NEW_ROW -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED] On 13/02/2008, Andriy Panas [EMAIL PROTECTED] wrote: Hi all, I've subscribed to ListEvent.ITEM_EDIT_END event for my Tree and put Alert.show(I am error message). My Alert window is being shown twice when the I finish to edit the tree node name in the the editable TextInput field. What I've done wrong? I am on Flex 2.0.1 SDK. The code sample: -- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical initialize=onInitialize() mx:Script ![CDATA[ import mx.events.ListEvent; import mx.controls.Alert; private function onInitialize() : void { tree1.addEventListener(ListEvent.ITEM_EDIT_END, onItemEditingEnd); } private function onItemEditingEnd(event : ListEvent) : void { event.preventDefault(); Alert.show(I am error message); } ]] /mx:Script mx:Tree id=tree1 labelField=@label editable=true showRoot=false width=160 mx:XMLListCollection id=MailBox mx:XMLList folder label=Mail folder label=INBOX/ folder label=Personal Folder Pfolder label=Business / Pfolder label=Demo / Pfolder label=Personal isBranch=true / Pfolder label=Saved Mail / /folder folder label=Sent / folder label=Trash / /folder /mx:XMLList /mx:XMLListCollection /mx:Tree /mx:Application -- -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
Re: [flexcoders] Menubar Render
; } ]] /mx:Script mx:Label text=[EMAIL PROTECTED] / mx:Spacer width=100% / mx:Image source=/anything.png height=100% width=30 / /mx:HBox Any one knows how to solve this? VELO -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
Re: [flexcoders] Re: Flex MouseEvent and loaded SWF with mouse handlers problem
Here is a good write-up how to solve this issues with handling onRollOver events specified in ActionScript2 inside loaded SWF files: http://www.jabbypanda.com/blog/?p=17 ;) Sorry for such a late answer. I have not checked flexcoders for a while. We have decided to add listener on timer and to track mouse position. . -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
Re: [flexcoders] Re: Event result not making sense
Hi all, Today I was stumbled upon the same situation, it is true that event handler for focusOut event is triggered twice for mx:TextInput component. Checked event.target property and it is equal to the internal textfield of mx:TextInput component of UITextField type both times, so this property cannot help us here to differentiate between 2 calls. What I found helpful is event.relatedObject property. During first call to FocusOut event handler it is equal to UITextField internal textfield, during second call is equal to NULL. Great, now we can differentiate between 2 calls -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED] On 17/11/2007, Alex Harui [EMAIL PROTECTED] wrote: Maybe the internal textfield is sending one. See if the event.target is different and what it is. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *donvoltz *Sent:* Friday, November 16, 2007 1:27 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Event result not making sense Thank Alex, I did not realize this and have since changed the two alerts to trace statements. When I run the app in debug mode, I still see that the event is being sent twice. Any other ideas?? Thanks Don
Re: [flexcoders] Re: Flash/Flex Event collision on TextField input
Hi Alex, I am on Flex 2.0.1 SDK Actually when I look into the source file of mx:TextArea I can see in line 2232 the following piece of code: private function textField_changeHandler(event:Event):void { . // Stop this bubbling change event // and dispatch another one that doesn't bubble. event.stopImmediatePropagation(); dispatchEvent(new Event(Event.CHANGE)); } Adobe engineers also stop in mx:TextArea the bubbling Event.CHANGE event. ps I've just checked source file of mx:TextArea from Flex 3 SDK shipped with FB 3 Beta 2 this code remains intact. -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED] On 30/10/2007, Alex Harui [EMAIL PROTECTED] wrote: What version of Flex? Is there a test case and bug for this issue? If not please file one. In looking at the code, the CHANGE event should not be bubbling from TextArea or TextInput.
Re: [flexcoders] Re: Flash/Flex Event collision on TextField input
Hi Alex, Right, sorry for the confusion, my sample code a few posts above that featured mx:TextArea was not a very precise example for the problem with event name collision. My exact setup involves custom component that extends UIComponent, it is placed inside ViewStack and it has a child of mx.core.UITextField type with a textField's property 'type' set to TextFieldType.INPUT. That's approximately how I do create instance of UITextField in my custom component: 1. override protected function createChildren(): void 2. { 3. super.createChildren(); 4. uiTextField=new UITextField(); 5. uiTextField.selectable = true; 6. uiTextField.type = TextFieldType.INPUT; 7. addChild(uiTextField); 8. } 9. My use case is to allow entering text at the run-time inside textFields. I do not want to use mx:TextArea for this particular use case because : a) I do not need scroll bars to appear when the long text is entered (I prefer UITextField to auto-size); b) White standard background of mx:TextArea is redundant for me (although the style for the TextArea's background can be tweaked to the design needs). Because I use UITextField, not mx:TextArea, I have to take care by myself about stopping Event.CHANGE emitted from the nutshell of ' flash.text.TextField' class from propagation. On 01/11/2007, Alex Harui [EMAIL PROTECTED] wrote: That's why I'm surprised you are having a problem. -- -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
Re: [flexcoders] Wrapper .svn copies BUG!
Hi, Hmm... This never had occurred to me neither on Flex Builder 2 not Flex Builder 3 Beta 2. I am using Eclipse 3.2 and SVN Tigris plugin (Subclipse) if this matters. If for some reason you continue to experience this unwanted behavior from the Flex Builder with copying .svn folders, you can always switch to Flex Ant Tasks to optimize your complication times and control the deployment process at your fingertips: http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks On 02/11/2007, Paul Decoursey [EMAIL PROTECTED] wrote: Please tell me that Flex Builder 3 will not copy .svn directories into the build or at least that we can specify what to include or exclude. This has been one of the biggest time wasters for me for the past year and a half (prior to that I wasted my time more efficiently on many more interesting things). __._ -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
Re: [flexcoders] file upload fails on Leopard?
http://weblogs.macromedia.com/emmy/archives/2007/10/adobe_products.cfm#comments -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
Re: [flexcoders] Re: Flash/Flex Event collision on TextField input
Hi all, I want to provide a little bit more information for the solution for this issue, because I was stumbled upon this issue today and thankfully to this topic at Flexcoders mailing list I had received a solid understanding of this particular problem. Imagine that in your setup mx:TextArea is a child of mx:ViewStack or mx:Accordion container. When the content of the TextArea is changed, then Event.CHANGE change this emitted, but it is actually an bubbling event and it reaches the level of the parent container when it can collide with the same event name mx.events package-detail.html.IndexChangedEvent.CHANGE change that is actually emitted by ViewStack itself. Most simple solution to this situation is to forbid event bubbling for you mx:TextArea component, code follows: mx:TextArea id=myTextArea function onCreationComplete() : void { myTextArea.addEventListener(Event.CHANGE, onTextChanged); } private function onTextChanged(event : Event) : void { event.stopImmediatePropagation(); } -- -- Med venlig hilsen / Best regards Andriy Panas On 30/08/2007, George [EMAIL PROTECTED] wrote: Yeah, you're right. All components are hosted by a ViewStack which listening 'change' event.
Re: [flexcoders] Adobe Bug Tracking Power Tool
Hi Dejan, I am sorry, but using http://bugs.adobe.com/flex is so much convenient IMHO. Your application brings 0 added value for browsing database of Adobe Flex SDK logged bugs. -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
Re: [flexcoders] Determining the text character at a given position in a TextArea
Hi James, Please describe in more details how exactly you would like to select a text by the help of the Mouse. Do not you want to select a text with a first mouse click inside the text and then by holding a clicked mouse button to make a selection? -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED] On 24/10/2007, jamalwally [EMAIL PROTECTED] wrote: Hi, I would like to be able to highlight text in a TextArea that is under the user's mouse. In Flex 2 is there a way to get the text character that is closest to a given x,y position within a TextArea (or TextField)? Right now, I have each word in a separate TextArea and I listen for mouseOver events on each TextArea, but this is a bit of a pain. It would be cleaner to put all text into one TextArea, but this requires me to be able to determine the mapping between pixel coordinates and text character positions. Any help would be greatly appreciated. This post follows up on an unresolved previous posting: http://tech.groups.yahoo.com/group/flexcoders/message/21888 Thanks, James
Re: [flexcoders] How do you add more fonts to the drop down selection of a RichTextEditor ?
Hi, I should populate mx:ComboBox id=fontFamilyCombo (control inside mx:RichTextEditor) with a new dataProvider data. mx:Array id=fontFamilyArray mx:StringLucida/mx:String mx:StringTrebuchet/mx:String mx:StringVera/mx:String /mx:Array mx:RichTextEditor id=rte creationComplete=onRTECreationComplete() private function onRTECreationComplete() : void { rte.fontFamilyCombo.dataProvider = fontFamilyArray; rte.fontFamilyCombo.selectedIndex = 0; } -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED] Does anyone know how to add more fonts to the drop down selection of a RichTextEditor ?
Re: [flexcoders] RichTextEditor - Customizing the look
Hi Austin, Click F3 on mx:RichTextEditor (RTE component) tag in Flex Builder 2 and study its source code to better understand its behavior. You can skinn toolbar buttons with a new graphics easily and decorate RTE's container with new CSS styles. But if you'd like to have a complete control over the layouting of buttons controls for RTE component and its overall look, I would suggest to copy-paste all the code from mx:RichTextEditor into your own brand new RTE class and then feel free to modify it. On 23/10/2007, Austin Kottke [EMAIL PROTECTED] wrote: Hi, does anyone have any idea how I could customize the richtexteditor component so that it looks the way I want it to? I want to call the bold/ital/underline text directly through the richtexteditor class without having to use the stock component's look and feel. Mainly just use the richtexteditor textarea and then use my own buttons to input and modify text with my own look. I've done a subclass of the richttexteditor class -- however I am completely unfamiliar with the component itself and how it binds the buttons to it. Unfortunately it's not very configurable. -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
[flexcoders] How to properly use embedded fonts with font face HTML tag?
Hi all, My setup to load embedded fonts into Flex 2.0.1 based app is as follows: I declare 3 fonts that I want to embed in mx:Style tag: mx:Style @font-face { src:url(assets/fonts/arial.ttf); fontFamily: Arial; } /* CSS file */ @font-face { src:url(assets/fonts/pala.ttf); fontFamily: Palatino; } /* CSS file */ @font-face { src:url(assets/fonts/trebuc.ttf); fontFamily: Trebuchet; } /mx:Style Later in the code, I use the following function to assign the HTML tagged text to my mx:Text field instance 'textField': -- private function assignText() : void { textField.setStyle(fontFamily, Trebuchet); textField.htmlText = TEXTFORMAT LEADING='2' + P ALIGN='LEFT'FONT FACE='Trebuchet' SIZE='18' COLOR='#0B333C' LETTERSPACING='0' KERNING='0'Example line of text/FONT/P + P ALIGN='LEFT'FONT FACE='Palatino' SIZE='18' COLOR='#0B333C' LETTERSPACING='0' KERNING='0'Example line of text/FONT/P + P ALIGN='LEFT'FONT FACE='Arial' SIZE='18' COLOR='#0B333C' LETTERSPACING='0' KERNING='0'Example line of text/FONT/P + /TEXTFORMAT; } -- And it works! It works because I change the style 'fontFamily' for Text textField.setStyle(fontFamily, Trebuchet) prior to setting value to the htmlText field! All 3 lines of text are correctly displayed using glyphs from 3 various embedded fonts, but if I remove the line textField.setStyle(fontFamily, Trebuchet) from the code, then the text is displayed using device fonts, not embedded ones. Why is that? Why do I have change the style 'fontFamily' of Text component prior to setting value of the 'htmlText' property of mx:Text in order to get embedded fonts to be working? And the attribute value for the style fontFamily should the valid identificator of any of 3 fonts successfully loaded - Trebuchet, Palatino or Arial. -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
[flexcoders] Re: mxml-mode for Emacs
http://www.mail-archive.com/search?l=flexcoders%40yahoogroups.comq=MXML+DTD+Schemasourceid=Mozilla-search -- With flex regards, JabbyPanda
[flexcoders] Problem: FileReference onComplete event handler fires too soon - not properly waiting for HTTP status code 200
Dear all, We are trying to use Flash 8's FileReference API to upload the big media files in our web app. In our application we upload big media file first to some transient server and then immediately in the same uploading process we start moving this file to Amazon S3 file storage server. The whole uploading process for big media file can be accomplished within 100 seconds, 200 seconds or even 10 000 seconds on slow connections. Important note: Only after the WHOLE upload process finishes, HTTP status code 200 is sent from the server to the Flash player. Unfortunately, for some reason, FileReference 'onComplete' event handler ALWAYS fires after aprox.10-15 sec of time, regardless the fact that HTTP status code 200 is sent from the server after 100 seconds, 200 seconds and even 10 000 seconds. Why is that? Accordingly to Flash 8 livedocs, FileReference onComplete event handler fires ONLY when Flash Player has received an HTTP status code of 200 from the server . http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=2215.html -- With flex regards, Andriy Panas
[flexcoders] Re: DataGrid with multiple rowheaders / colheaders - Flex 3?
Hi, However, i've still failed to find people extending the DataGrid component to allow for multiple row/column headers and groups and row/column footers. I would like you to clarify, what do you mean by having multiple column headers for DataGrid. You can use item renderer for column header to place more than one control inside Datagrid's column header. As for supporting footer in Datagrid, you can find this post helpful: http://blogs.adobe.com/aharui/2007/04/datagrid_footers.html#comments - With best regards, JabbyPanda
Re: [flexcoders] Re: Building flex apps with Maven 2?
Just saw a link a few days ago at MXNA to a Flex 2 plugin that claims to do the following: The Maven 2 - Flex 2 plugin is a Maven 2 http://maven.apache.org/ plugin designed to enable continuous integration for Adobe Flex 2http://www.adobe.com/flexlibraries and applications, and to benefit of the power of Apache Maven. http://www.servebox.com/foundry/doku.php?id=m2f2plugin On 10/05/07, Christian Gruber [EMAIL PROTECTED] wrote: Hmmm. I'm confused. how come I couldn't find you guys when I went to write this sucker. :) We should probably collaborate, since I'm working on asdoc and unit test inclusion as well. I have an approach for inclusion of swfs in the .war that pulls in swfs into a resources folder that is then included as a webresource by the .war. None of it is rocket science. Christian. On May 10, 2007, at 4:06 AM, jeff_at_flexgroups wrote: Actually, the SB M2F2 Plugin build SWCs, SWFs, and manages SWC dependencies. We used it for multi-module builds and bundle assembly (we manage several SWC/SWF projects with Maven 2, M2F2 Plugin and CruiseControl). I can provide you POM samples if needed. We are currently working on ASDoc generation, unit tests integration. We thought about HTML wrapper generation but finally we won't implement it : other plugins should assume this responsibility responsibility (WAR ?). If anyone want to be included as a member of the SF.net project, just send me an email. I hope this helps. Jeff. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Brian Sterling [EMAIL PROTECTED] wrote: I found some old posts about the Israfil plugin http://www.israfil.net/projects/mojo/maven-flex2-plugin/ and found the ServeBox Maven2Flex2 plugin http://sourceforge.net/projects/mvnflex2plugin from the wikipedia article on Flex. Neither one seems to have an especially active developer community. Any suggestions on how I should be building a multiple-module project with third-party dependencies (e.g. Cairngorm) with Maven 2? It sounds like several of us are interested in this - maybe it's time to collaborate on building up one of these plugins (or start a new one?). -Brian christian gruber + [EMAIL PROTECTED] cgruber%40israfil.net + bus 905.640.1119 + mob 416.998.6023 process coach and architect + ISRÁFÍL CONSULTING SERVICES -- -- With flex regards, Andriy Panas
[flexcoders] How to determine in XML structure that node of interest is at root level?
Dear flexcoders, I have the following XML: root Folder id=1/ Folder id=2 Station id=1 / Station id=7/ /Folder Folder id=5 / /root How to determine that XML node, say Folder id=5 is located at rool level of XML structure? Pretend that variable 'myNode' contains a reference to Folder id=5 XML node. The following boolean check: myNode.parent()name.toString() != root does not work for me and it seems to be rigid and insecure. -- With flex regards, JabbyPanda
Re[2]: [flexcoders] Eclipse 3.2.2
Hello Dave, DC I just did it and there are no issues to speak of thus far. This is probably OT, but I always wonder how do you install Flex Builder Eclipse plugin (and other Eclipse plugins too) when you do upgrade to the new version of Eclipse? Do you: a) reinstall every Eclipse plugin manually from the scratch from Software update menu; b) just copy plugins and features folders to the location of new version of Eclipse IDE; c) install new Eclipse IDE on the top of old Eclipse IDE installation folder and this makes a trick. -- Best regards, Andriymailto:[EMAIL PROTECTED]
Re: [flexcoders] Links defined in Label or Text htmlText doesn't work upon the first click when in TabNavigator
Hello Sergey, Set mx:TabNavigator width=100% height=100% focusEnabled=false I guess you witness this behaviour because mx:Tabnavigator with a first click over Label only gains a application focus, and only with a second click Label a href action is fired... SK Moving this Label instance outside the TabNavigator causes correct behavior. -- Best regards, Andriymailto:[EMAIL PROTECTED]
[flexcoders] Re: If Flex 2 Livedocs still supported or we shall move on to Flex 2.0.1 Livedoc
Hi, Stephen, Thank you for your time, the error with http://livedocs.adobe.com/flex/2/langref/mx/controls/Tree.html page is gone. Just wanted to attract somebody's attention from Adobe to this problem, looks like somebody has taken care of this issue already yesterday! What errors are you seeing? -- With best regards, JabbyPanda
[flexcoders] If Flex 2 Livedocs still supported or we shall move on to Flex 2.0.1 Livedocs?
Dear Adobe representative, Why the following Livedocs page from Flex 2 Livedocs is broken http://livedocs.adobe.com/flex/2/langref/mx/controls/Tree.html (virtually goes to nowhere)? FYI, not yet indexed page from Flex 2.0.1 Livedocs is OK: http://livedocs.adobe.com/flex/201/langref/mx/controls/Tree.html -- With best regards, JabbyPanda
[flexcoders] Re: pop ups again
Hi everyone, I cannot help you Roman to solve your problem, but I am able to CONFIRM your bug( feature) with FlexEvent.SHOW event not dispatched from popUp window instance in modal mode if it is being shown for the second and for the next time and so on. In the attached sample application try to open both kinds of popup windows (NORMAL, MODAL) by clicking buttons and then close open popup windows several times with a mouse click on popup's window surface. onShow event handler for FlexEvent.SHOW is being executed only for when NORMAL popup window becomes visible at the screen. Full working code sample follows: --- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.containers.Tile; import mx.controls.Alert; import mx.events.FlexEvent; import mx.core.IFlexDisplayObject; import mx.containers.TitleWindow; import mx.managers.PopUpManager; public var myModalPopUp : TitleWindow; public var myNormalPopUp : TitleWindow; function openPopUpWindow(isModal : Boolean, windowTitle : String) : void { if (isModal) { if (myModalPopUp == null) { myModalPopUp = new TitleWindow(); assignWindowProperties(myModalPopUp, windowTitle); } PopUpManager.addPopUp(myModalPopUp, this, isModal); PopUpManager.centerPopUp(myModalPopUp); } else { if (myNormalPopUp == null) { myNormalPopUp = new TitleWindow(); assignWindowProperties(myNormalPopUp, windowTitle); } PopUpManager.addPopUp(myNormalPopUp, this, isModal); PopUpManager.centerPopUp(myNormalPopUp); } } private function assignWindowProperties(myPopUp : TitleWindow, windowTitle : String) : void { myPopUp.height= 150; myPopUp.title = windowTitle; myPopUp.addEventListener(MouseEvent.CLICK, closeWindow); myPopUp.addEventListener(MouseEvent.CLICK, closeWindow); myPopUp.addEventListener(FlexEvent.SHOW, onShow); } public function closeWindow(event:MouseEvent) : void { PopUpManager.removePopUp(IFlexDisplayObject(event.currentTarget)); } private function onShow(evt : FlexEvent) : void { Alert.show(hello!); } ]] /mx:Script mx:Button id=btn click=openPopUpWindow(true, 'I am modal window') label=open Modal Window /mx:Button mx:Button id=btn2 click=openPopUpWindow(false, 'I am normal window') label=open Normal Window /mx:Button /mx:Application ---