[flexcoders] Context dependent non modal pop p. How?

2009-12-13 Thread Sergey Kovalyov
Hi All! Sometimes I have to create popup in some view and it belongs to this view. So I want it to be automatically hidden when view is not visible and shown again when view is visible again. In my particular case this view is the child of tab navigator that in its turn is the part of the view

Re: [flexcoders] Runtime fonts embedding in AIR

2009-11-11 Thread Sergey Kovalyov
URLLoader then use Loader.loadBytes() to load the SWF. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Sergey Kovalyov *Sent:* Tuesday, November

[flexcoders] Runtime fonts embedding in AIR

2009-11-10 Thread Sergey Kovalyov
Hi All! Probably the most popular approach to load fonts runtime is to generate SWF files either in Flash or in Flex where font is registered via Font.registerFont(fontClass). In Flash you normally add it to the library. In Flex you embed it via [Embed] metatag. And we have used this approach

Re: [flexcoders] How to handle keyboard shortcut globally?

2009-07-07 Thread Sergey Kovalyov
-- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Sergey Kovalyov *Sent:* Monday, July 06, 2009 11:04 AM *To:* flexcoders@yahoogroups.com; flexcompone...@yahoogroups.com *Subject:* [flexcoders] How to handle keyboard shortcut globally? Hi

[flexcoders] How to handle keyboard shortcut globally?

2009-07-06 Thread Sergey Kovalyov
Hi All! We want our projector to be full screen always. To do that we add the keyboard event listener to the stage and then if the user has pressed Esc button, turn full screen mode on: *switch* (event.keyCode) { *case* Keyboard.ESCAPE : *try* { stage.displayState =

[flexcoders] How to determine the minimum container size while scroll bars still not needed

2009-05-24 Thread Sergey Kovalyov
Hi All! There is mx_internal::getScrollableRect() method and the value it returns does not change when you make the container smaller at some moment when scroll bars appears. But I need to know those values at any given time. Finally what I want to achieve is to have resize handle in the right

Re: [flexcoders] Tree is not correctly updated when dragging and dropping item twice when using XML data provider

2009-01-07 Thread Sergey Kovalyov
Thanks, Manish! I will try this. Sergey. On Tue, Jan 6, 2009 at 6:58 PM, Manish Jethani manish.jeth...@gmail.comwrote: On Tue, Jan 6, 2009 at 10:27 PM, Manish Jethani manish.jeth...@gmail.com manish.jethani%40gmail.com wrote: function doWorkaround() { var e = new

[flexcoders] Re: Tree is not correctly updated when dragging and dropping item twice when using XML data provider

2009-01-05 Thread Sergey Kovalyov
Sorry for intruding, but still... are there any ideas? On Tue, Dec 30, 2008 at 4:22 PM, Sergey Kovalyov skovalyov.flexcod...@gmail.com wrote: Hi All! *Steps to reproduce:* 1. Create an application with the Tree component instance and XMLListCollection dataProvider binded

[flexcoders] Tree is not correctly updated when dragging and dropping item twice when using XML data provider

2008-12-30 Thread Sergey Kovalyov
Hi All! *Steps to reproduce:* 1. Create an application with the Tree component instance and XMLListCollection dataProvider binded to it that contains 5 items: - private var itemsXML : XML = items item name=Item 1 isBranch=true / item name=Item 2 isBranch=true /

[flexcoders] commitProperties() and navigation container children

2008-12-24 Thread Sergey Kovalyov
Hi All! Long time ago I have asked the question regarding commitProperties() implementation in the container that might be a navigation container child: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg47993.html Unfortunately, I have not got any answer. Though we, in our team, use

[flexcoders] Does anybody know why FlashPaper is not supported anymore and what to expect instead?

2008-12-23 Thread Sergey Kovalyov
Hi All! Since FlashPaper is not supported anymore, integrating FlashPaper documents into Flex application would still remain into the headache. Yes, solution exists ( http://www.darronschall.com/weblog/2006/11/how-to-load-flashpaper-documents-in-flex-2.cfm), but unfortunately it is not as

[flexcoders] Cast XMLList with 1 child to XML

2008-07-13 Thread Sergey Kovalyov
Hi All! Is it correct to cast XMLList with 1 child to XML like this: var myXMLList : XMLList = sourceXML..item.(@id == 1); // It is guaranteed that only one node with name == item and attribute id == 1 exists in sourceXML. var myXML : XML = XML(myXMLList); Actually it works and it fails only

[flexcoders] Clicking BACKSPACE button in TextField (and thus TextArea) does not fire change event when the character removed is ENTER (char code 13)

2008-07-09 Thread Sergey Kovalyov
Hi All! Clicking backspace button in TextField (and thus TextArea) does not fire change event when the character removed by backspace is enter (char code 13) Run the example below in the debug mode and perform this scenario: 1. Click on the text area to set focus on it. 2. Click 1, ENTER, 2,

Re: [flexcoders] Re: Cannot access a property or method of a null object reference at mx.controls::Tree/::buildUpCollectionEvents()

2008-07-02 Thread Sergey Kovalyov
Probably, you have not selected the first item before clicking on a button. That's why new item has not been added. See this: var parentXML : XML = XML(tree.selectedItem); var newItemXML : XML = item label=My Leaf isBranch=true /; tree.dataDescriptor.addChildAt(parentXML, newItemXML,

Re: [flexcoders] Re: Cannot access a property or method of a null object reference at mx.controls::Tree/::buildUpCollectionEvents()

2008-07-02 Thread Sergey Kovalyov
May be so. But I want to find relevant workaround. Unfortunately, I have no possibility to switch the platform. On Tue, Jul 1, 2008 at 4:08 PM, valdhor [EMAIL PROTECTED] wrote: I don't use Flex 2.0.1 (I use Flex 3). I ran your app in Flex 3 and it works fine - ie. no exception is thrown.

[flexcoders] Cannot access a property or method of a null object reference at mx.controls::Tree/::buildUpCollectionEvents()

2008-07-01 Thread Sergey Kovalyov
Hi All! When I add a new item to the tree node and then open this item by user input null pointer exceptions is thrown and after that Tree behavior becomes strange. Steps to reproduce: 1. Run application. 2. Select My Branch node. 3. Click Add button. As a result My Leaf subnode is created as a

[flexcoders] Compiling CSS to SWF on server

2008-03-29 Thread Sergey Kovalyov
Hi All! Does somebody have experience compiling CSS to SWF on server using Flex command line compiler? I want to allow users use their own fonts in application. To do that first they have to upload TTF true type font to server, then create CSS that references uploaded font file on the flight and

[flexcoders] What is the best way to compare two arrays element by element ignoring the order?

2008-02-22 Thread Sergey Kovalyov
What is the best way to compare two arrays element by element ignoring the order? My solution: var differs : Boolean = (a.length != b.length) || a.some( function(item : Object, index : int, array : Array) : Boolean { return (b.indexOf(item) == -1); }); May be the better solution exists?

Re: [flexcoders] What is the best way to compare two arrayselement by element ignoring the order?

2008-02-22 Thread Sergey Kovalyov
handles the case where the same item is in one array twice (yours fails for dupes in a and mine for dupes in b). -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Sergey Kovalyov [EMAIL PROTECTED]skovalyov.flexcoders%40gmail.com Reply-To: flexcoders

[flexcoders] How to print ViewStack children as multipage document?

2008-02-20 Thread Sergey Kovalyov
Hi All! Imagine, I have multipage document represented as ViewStack in application. Each child is document page. Since default creationPolicy is AUTO, ViewStack grandchildren (page elements) are created only when the page is selected. Another problem that it seems FlexPrintJob class can print

[flexcoders] How to detect maximum Container width and height without scroll bars?

2007-12-17 Thread Sergey Kovalyov
Hi All! What's the best abstract method to detect maximum width and height of the container, when its content doesn't force the horizontal and vertical bar to appear? For instance, I have VBox and 2 100x100 boxes inside it. In this case considering the default verticalGap value that is 6,

[flexcoders] Spacer in MenuBar

2007-12-11 Thread Sergey Kovalyov
Hi All! Is it possible to add 100% spacer to MenuBar as shown in the file attached and if so, how would you do that? Thank you in advance. Sergey. attachment: menu.png

Re: [flexcoders] Re: Flex MouseEvent and loaded SWF with mouse handlers problem

2007-12-04 Thread Sergey Kovalyov
, at least in my situation, the swf has it's own actionscript so the events are not bubbling up to my flex app. thanks Ralph --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! I have Canvas instance and SWFLoader inside

[flexcoders] Testing socket applications on localhost. Running patServer locally

2007-06-14 Thread Sergey Kovalyov
Hi All! Does anybody have an experience running patServer (or may be different php socket server if any?) on localhost to perform testing your socket communication code? How do you do that? Any ideas? Thank you in advance. Sergey.

[flexcoders] Why replaceText() method of TextField doesn't dispatch Event.CHANGE?

2007-05-30 Thread Sergey Kovalyov
Hi All! Why replaceText() method of TextField doesn't dispatch Event.CHANGE? Due to this when I use TextRange class within either TextInput or TextArea, their respective text and htmlText properties doesn't change until manual input. TextRange text setter implementation looks like this:

[flexcoders] Why GridItem is inherited from HBox, not Box?

2007-05-16 Thread Sergey Kovalyov
Hi All! Why GridItem is inherited from HBox, not Box? It makes impossible to change the direction property. Sergey.

Re: [flexcoders] Cross-scripting availability

2007-05-16 Thread Sergey Kovalyov
Are there any examples? On 5/15/07, Antoine Malpel [EMAIL PROTECTED] wrote: Sergey Kovalyov a écrit : Hi All! Is it possible to load SWF compiled from Flash 8 IDE into Flex application and access its methods and properties? If so, how? Thank you in advance! Sergey. You can't, or use

[flexcoders] Cross-scripting availability

2007-05-15 Thread Sergey Kovalyov
Hi All! Is it possible to load SWF compiled from Flash 8 IDE into Flex application and access its methods and properties? If so, how? Thank you in advance! Sergey.

[flexcoders] Compile Flex application to .exe

2007-05-14 Thread Sergey Kovalyov
Hi All! Is it possible to compile Flex application to .exe? If so - how? Thank you in advance. Sergey.

[flexcoders] Re: Compile Flex application to .exe

2007-05-14 Thread Sergey Kovalyov
I mean standalone application, but not Apollo at the moment. :) On 5/14/07, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! Is it possible to compile Flex application to .exe? If so - how? Thank you in advance. Sergey.

Re: [flexcoders] Re: Compile Flex application to .exe

2007-05-14 Thread Sergey Kovalyov
Thanks a lot! ;) On 5/14/07, Igor Costa [EMAIL PROTECTED] wrote: Yes Sergey open up your .swf in the flash player stand alone not in the browser then click in the menu File Create Projector But otherwise you can create using such as Zinc, SHX. -- Igor On 5/14/07, Sergey Kovalyov [EMAIL

Re: [flexcoders] DataGridColumn sortDescending property doesn't change after first two clicks on header

2007-04-26 Thread Sergey Kovalyov
from the collection itself. var descending:Boolean = false; var s:Sort = collection.sort; var fields:Array = s.fields; for (var i = 0; i fields.length; i++) if (fields[i].name == dataField) descending = fields[i].descending // now you have the value On 4/25/07, Sergey Kovalyov [EMAIL PROTECTED

[flexcoders] Is it possible to place and compile MXML application not in the root folder, but in subfolder?

2007-04-25 Thread Sergey Kovalyov
Hi All! Usually we place MXML application (class inherited from Application) in the root folder of the project. Is it possible to place application not in the root folder, but in subfolder? Therefore it could be compiled into the {PROJECT_OUTPUT_FOLDER}/subFolder/. Sergey.

[flexcoders] DataGridColumn sortDescending property doesn't change after first two clicks on header

2007-04-25 Thread Sergey Kovalyov
Hi All! I have defined my own handler for the headerRelease event in order to perform custom server-side sorting, since my DataGrid is pagable. In order to do that I get the field from event.dataField and and order from

Re: [flexcoders] Is it possible to embed font into the compiled CSS for runtime use?

2007-04-19 Thread Sergey Kovalyov
I get error marker in Flex IDE while everything is ok when I embed font in the css that is included into the application via mx:Style and not marked compile to SWF. On 18 Apr 2007 07:41:27 -0700, Hilary Bridel [EMAIL PROTECTED] wrote: Hi Sergey, I have embeded fonts into compiled css files

[flexcoders] Is it possible to embed font into the compiled CSS for runtime use?

2007-04-18 Thread Sergey Kovalyov
Hi All! I have tried to embed font into the compiled CSS for runtime use without any luck. Everything works well, when I embed it into CSS that is included into application mxml via mx:Style tag, though it seems there is no way to compile font into the separate CSS. Am I right? Sergey.

[flexcoders] Library compilation takes too much time

2007-04-17 Thread Sergey Kovalyov
Hi All! Each time I change class in library project it takes to much time to recompile, because all the projects that use this library are recompiled. Even when there are 3 projects, I have to wait about 30 seconds after each save (I prefer Build Automatically option checked). Is there any way

[flexcoders] How to embed Type1 font in CSS?

2007-04-17 Thread Sergey Kovalyov
Hi All! How to embed Type1 font in CSS? Now I have found only the solution for TTF fonts. Any ideas? Thank you in advance. Sergey.

[flexcoders] How to manage 2 applications with different output folders in one project?

2007-04-16 Thread Sergey Kovalyov
Hi All! I have two applications: client and administrator area. They have a lot of common classes, therefore I have created two Flex Projects (MyApplication and MyApplicationAdmin) and one Flex Library Project (MyApplicationFlexLibrary) and placed all the classes they use together into the

[flexcoders] Does compiler include all the classes from the Flex Library Project used in Flex Project?

2007-04-13 Thread Sergey Kovalyov
Hi All! I have created separate Flex Library Project with a set of reusable classes, so that I plan to extend it constantly and use it in different projects. Since not all the library classes from Flex Library Project will be used in each and every Flex Project, I worry about optimization - does

[flexcoders] AMFPHP with multiple projects

2007-03-27 Thread Sergey Kovalyov
Hi All! How do you usually use AMFPHP with multiple projects? May be creating separate AMFPHP copy for each and every project or at least separate gateway.php can help. Whatever, I have some projects from SVN in my workspace and each of them has its own services codebase (let's say

[flexcoders] Authentication in AMFPHP 1.9

2007-03-27 Thread Sergey Kovalyov
Hi All! How to implement authentication (session based API securing) in AMFPHP 1.9? Thank you in advance. Sergey.

Re: [flexcoders] Passing complex objects (e. g. collection of name-value pairs) to server via either URLLoader or HTTPService using POST method

2007-03-10 Thread Sergey Kovalyov
Can AMFPHP convert Flex ArrayCollection of Objects to PHP Array of PHP Objects?.. On 09 Mar 2007 16:04:39 -0800, Merrill, Jason [EMAIL PROTECTED] wrote: SOAP webservices can do that. You don't have to convert to XML first, you can send your complex Actionscript object directly to the WDSL

[flexcoders] DataGridColumn visibility problem. It appears again when dataProvider is replaced

2007-03-09 Thread Sergey Kovalyov
Hi All! I have a DataGrid and its dataProvider property is binded to ArrayCollection. When I first hide one column via firstColumn.visible = false and then binding executes, that column appears again. How to prevent this unnecessary appearance? Click Hide Middle Name and then Populate in this

Re: [flexcoders] DataGridColumn visibility problem. It appears again when dataProvider is replaced

2007-03-09 Thread Sergey Kovalyov
Any known workarounds? :) On 09 Mar 2007 02:28:17 -0800, Carlos Rovira [EMAIL PROTECTED] wrote: If I'm not wrong that is a bug in 2.0.1 (it was not in 2.0)... .

[flexcoders] Passing complex objects (e. g. collection of name-value pairs) to server via either URLLoader or HTTPService using POST method

2007-03-09 Thread Sergey Kovalyov
Hi All! What is the best approach to pass complex objects (e. g. collection of name-value pairs) to server via either URLLoader or HTTPService using POST method? Just for example, I need to send this collection to server: var collection : Array = [{x : 1, y : a}, {x : 2, y : b}, {x : 3, y :

Re: [flexcoders] DataGridColumn visibility problem. It appears again when dataProvider is replaced

2007-03-09 Thread Sergey Kovalyov
I use users.removeAll() and then populate users with new data using addItem() method in the loop now. It works. :) On 09 Mar 2007 09:16:12 -0800, Alex Harui [EMAIL PROTECTED] wrote: There's been a bug filed, and an update is expected to be available soon (hopefully a week or two). -Alex

[flexcoders] Links defined in Label or Text htmlText doesn't work upon the first click when in TabNavigator

2007-02-27 Thread Sergey Kovalyov
Hi All! Take a look at this example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:TabNavigator width=100% height=100% mx:VBox label=Adobe mx:Label selectable=true mx:htmlText ![CDATA[a

Re: [flexcoders] truncateToFit() for Text, not Label

2007-02-18 Thread Sergey Kovalyov
My solution: http://skovalyov.blogspot.com/2007/02/text-control-with-truncatetofit.html On 12/26/06, Daniel Freiman [EMAIL PROTECTED] wrote: I believe in API docs the description at the top of the Text Class page says you can't. However, you could also simply get the pixel location of the

Re: [flexcoders] Re: Calling javascript with navigateToURL

2007-01-10 Thread Sergey Kovalyov
http://livedocs.macromedia.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=passingarguments_086_12.html On 1/10/07, jensen.axel [EMAIL PROTECTED] wrote: That worked great, thanks --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,

Re: SOLVED: Re: [flexcoders] Re: How to make FormItem labels left aligned?

2007-01-09 Thread Sergey Kovalyov
The final solution is here: http://skovalyov.blogspot.com/2007/01/left-aligned-label-in-formitem.html On 12/14/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: A bit buggy solution, Stas. rawChildren.getChildAt( rawChildren.numChildren - 1) should be used instead, you know. ;) On 12/14/06

Re: [flexcoders] Dispatching an Event from a Class

2007-01-09 Thread Sergey Kovalyov
Just call dispatchEvent() (e. g. dispatchEvent(new Event(Event.CHANGE))) in any class that implements IEventDispatcher (e. g. all the EventDispatcher successors). Note, that UIComponent and all its successors implement IEventDispatcher, so dispatchEvent() could be called in any subclass of Box,

Re: [flexcoders] What is the best invalidation technique for non-UI classes?

2007-01-03 Thread Sergey Kovalyov
Resolution could be found at http://skovalyov.blogspot.com/2007/01/invalidation-mechanism-for-non-ui.html :) On 8/24/06, Matt Chotin [EMAIL PROTECTED] wrote: We use a Timer in our non-visual code for this. Matt

[flexcoders] Re: Is there any service that format ActionScript code as HTML?

2006-12-28 Thread Sergey Kovalyov
http://www.tohtml.com/ - very good service. I use JS.NET option for ActionScript code and XML for MXML respectively. The samples could be found here: http://skovalyov.blogspot.com/ On 12/13/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! I have created blog and plan to post code samples

[flexcoders] Re: Ctrl+Enter causes line break in TextInput in IE!

2006-12-27 Thread Sergey Kovalyov
Could you please assist? This problem is very important, I think. :) On 12/22/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Did anybody face this problem? On 12/19/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Run this application in Internet Explorer: ?xml version=1.0? mx:Application

Re: [flexcoders] How to force built-in focus manager to auto scroll containers to the focused component?

2006-12-27 Thread Sergey Kovalyov
Hi to Matt and all flexcoders! I have implemented AutoScrollManager class that do this job: http://skovalyov.blogspot.com/2006/12/probably-one-of-most-annoying-thing.html I consider this solution could be changed a bit and added to the native Container class in future Flex releases or updates.

[flexcoders] truncateToFit() for Text, not Label

2006-12-26 Thread Sergey Kovalyov
Hi All! How to make text truncation with ... in Text, not Label possible? Sergey.

[flexcoders] Does anybody have method that converts relative URL to absolute one?

2006-12-26 Thread Sergey Kovalyov
Hi All! Does anybody have method that converts relative URL to absolute one? Sergey.

[flexcoders] Re: Ctrl+Enter causes line break in TextInput in IE!

2006-12-22 Thread Sergey Kovalyov
Did anybody face this problem? On 12/19/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Run this application in Internet Explorer: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% horizontalAlign=center verticalAlign

[flexcoders] Re: Ctrl+Enter causes line break in TextInput in IE!

2006-12-19 Thread Sergey Kovalyov
on TextInput instance and write something, then click Ctrl+Enter. TextInput acts almost like TextArea. New line is created. Sergey. On 12/18/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! Pressing Ctrl+Enter causes line break in TextInput in IE! How to fix this bug without subclassing TextInput

[flexcoders] Ctrl+Enter causes line break in TextInput in IE!

2006-12-18 Thread Sergey Kovalyov
Hi All! Pressing Ctrl+Enter causes line break in TextInput in IE! How to fix this bug without subclassing TextInput? Sergey.

Re: SOLVED: Re: [flexcoders] Re: How to make FormItem labels left aligned?

2006-12-14 Thread Sergey Kovalyov
A bit buggy solution, Stas. rawChildren.getChildAt(rawChildren.numChildren- 1) should be used instead, you know. ;) On 12/14/06, Stanislav Zayarsky [EMAIL PROTECTED] wrote: Guys, Just use this ExtendedFormItem class instead of default FormItem. Here is the code: *public* *class*

[flexcoders] Is there any service that format ActionScript code as HTML?

2006-12-13 Thread Sergey Kovalyov
Hi All! I have created blog and plan to post code samples sometimes. Is there any service that format ActionScript code as HTML? Sergey.

[flexcoders] How to instantiate SliderThumb out of Slider subclasses?

2006-12-12 Thread Sergey Kovalyov
Hi All! How to instantiate SliderThumb out of Slider subclasses? I have tried to create it inside custom component in createChildren() override, though nothing has been created. I have also tried sizing it in updateDisplayList() override, but SliderThumb instance getExplicitOrMeasuredWidth() and

[flexcoders] Dead loop in UITextField.tructateToFit()

2006-12-11 Thread Sergey Kovalyov
Hi All! It seems that setting very long string to the text property of classes that decorate UITextField (e. g. Label) causes dead loop and time out exception. Take a look at truncateToFit() method in UITextField class. You could find this block there: while (s.length 1 textWidth +

[flexcoders] Re: Component behavior when child of navigation container

2006-12-04 Thread Sergey Kovalyov
Any comments from Adobe? I have not found any mention of this side affect while using navigation container nor in Flex component development presentation from Ely neither in help... On 12/1/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! I create the component using code behind technique

[flexcoders] How to make overSkin and downSkin styles of LinkButton transparent?

2006-12-04 Thread Sergey Kovalyov
Hi All! How to make overSkin and downSkin styles of LinkButton transparent? I can set them to true, but it results in strange mouse pointer blinking when rolling over the edge of the component. You could try this code to see this side effect: mx:LinkButton label=My Label overSkin={null}

[flexcoders] faultCode = Client.Error.RequestTimeout

2006-12-01 Thread Sergey Kovalyov
Hi All! Is there any constant that contains Client.Error.RequestTimeout string value in framework classes? Actually it's the value of fault.faultCode in FaultEvent instance when request timeout happens. Sergey.

[flexcoders] Component behavior when child of navigation container

2006-12-01 Thread Sergey Kovalyov
Hi All! I create the component using code behind technique (MXML inherited from ActionScript class inherited from framework class, Box in my case). The component contains children defined in MXML and has some properties that have influence on children behavior. I call invalidateProperties() in

Re: [flexcoders] Is there any native media player component?

2006-11-30 Thread Sergey Kovalyov
True. :( FLVPlayer was a high-level media player component. Probably, it was right Adobe decision to get rid of it, because such a high-level components can't be framework element. Though it was very easy to use. :)

[flexcoders] Entry point to try ... catch ... all the application exceptions thrown

2006-11-30 Thread Sergey Kovalyov
Hi All! Is it possible to try ... catch ... ALL the application exceptions thrown in one place? Sergey.

[flexcoders] Re: Text instance does not calculate its height properly when in scrollable Box

2006-11-28 Thread Sergey Kovalyov
Any suggestions?.. On 11/27/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! When Text instance is in scrollable Box and user scrolls vertical scrollbar to the bottommost position, bottom edge of the Text remains invisible (cut by mask). How to fix it? Look at the example below

[flexcoders] Text instance does not calculate its height properly when in scrollable Box

2006-11-27 Thread Sergey Kovalyov
Hi All! When Text instance is in scrollable Box and user scrolls vertical scrollbar to the bottommost position, bottom edge of the Text remains invisible (cut by mask). How to fix it? Look at the example below that reproduces this behavior: ?xml version=1.0? mx:Application

[flexcoders] Is there any native media player component?

2006-11-27 Thread Sergey Kovalyov
Hi All! I remember FLVPlayer (or some kind of this) component in Flash 8 IDE. Is there any similar component available in Flex 2? Thank you in advance. Sergey.

[flexcoders] Image download progress indicator

2006-11-23 Thread Sergey Kovalyov
Hi All! What is the best way to create in place image download progress indicator? Sure, I can create Canvas with two images inside - one is embeded download indicator and another is dynamic image to be downloaded, but it does not look like the best solution. Sure, I would like to have

[flexcoders] How to make the entire Image control mouse sensitive?

2006-11-23 Thread Sergey Kovalyov
Hi All! Currently only the loaded image itself is mouse sensitive when scaleContent is set to false, not the entire Image control. How to change the behavior in order to make the entire Image control mouse sensitive without decorating it inside Box? Sergey.

[flexcoders] Is it possible to make multiline Button?

2006-11-23 Thread Sergey Kovalyov
Hi All! How to subclass the built-in Button class to make its label multiline? Now only one line (truncated if too long) is supported. Sergey.

[flexcoders] Implicit coercion of a value of type com.my.controls:TextInputLabel to an unrelated type flash.display:DisplayObject.

2006-11-17 Thread Sergey Kovalyov
Hi All! Error Implicit coercion of a value of type com.my.controls:TextInputLabel to an unrelated type flash.display:DisplayObject. appears in compile time when using mx:AddChild override. This bug is difficult to reproduce. Sometimes it happes, sometimes not. Initially I have found it when there

[flexcoders] How to make FormItem labels left aligned?

2006-11-08 Thread Sergey Kovalyov
Hi All! I want FormItem labels to be left aligned in all the Form instances. What is the best practice to do that? Sergey. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com

[flexcoders] How to force built-in focus manager to auto scroll containers to the focused component?

2006-11-08 Thread Sergey Kovalyov
Hi All! How to force built-in focus manager to auto scroll containers to the focused component? I said in message before that it's native behavior in HTML, so users feel comfortable with this. Are there any solutions or workarounds? Sergey. -- Flexcoders Mailing List FAQ:

Re: [flexcoders] Using DateField control to set birthday

2006-11-06 Thread Sergey Kovalyov
with DoB's. yearNavigationEnabled=true editable=true On 8/31/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All!DateField is a great control, though setting birthday even for peoplethat were born in 198* it takes minutes to move through the months inorder to get to the correct date. Does

[flexcoders] Focus manager component inside scrollable container

2006-11-06 Thread Sergey Kovalyov
Hi All! If user is pressing Tab key, scrollable container does not move its content to make focused component visible. It remains invisible in some cases, because it's out of the visible part of scrollable content. How to implement this behaviour (actually native for most users)? Sergey. --

[flexcoders] How to set skin style to null in CSS?

2006-11-02 Thread Sergey Kovalyov
Hi All! How to set skin style to null in CSS? Sergey. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to:

Re: [flexcoders] Binding on properties with Class type

2006-11-01 Thread Sergey Kovalyov
Changes are not detected. I will create example that shows it soon and post here. On 10/31/06, Joan Lafferty [EMAIL PROTECTED] wrote: Yes, in general, data binding is unable to detect changes to static properties regardless of type. Sergey, can you post an example of your code where you

[flexcoders] Why shadowDirection does not support flexible angles?

2006-10-31 Thread Sergey Kovalyov
Hi All! I have found that it's impossible to assign shadow direction angle for containers. Why so? I found in HaloBorder that it's possible, but due to a lot of private fields and other tricks, it's impossible to hack it. :( Sergey. -- Flexcoders Mailing List FAQ:

[flexcoders] Binding on properties with Class type

2006-10-31 Thread Sergey Kovalyov
Hi All! It seems that binding on properties with Class type does not work. Is it correct? Sergey. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links *

[flexcoders] How to conduct htmlText string using the styles, defined in CSS?

2006-10-30 Thread Sergey Kovalyov
Hi All! I have EntryHeader, EntrySubHeader and EntryContent style names, defined in CSS and I want to conduct htmlText string for Text control in order to format such a text properly: My header My sub header My content How to do that? Sergey. -- Flexcoders Mailing List FAQ:

[flexcoders] Old data provider icons remain in Menu instance after data provider change

2006-10-30 Thread Sergey Kovalyov
Hi All! I have PopUpButton instance, its popUp property is binded to menu getter and menu dataProvider property is binded to menuDataProvider getter. Each times menuDataProvider changes, old icons remain visible in menu and new appear over them. How to fix it? Sergey. -- Flexcoders Mailing

[flexcoders] Zip-code validation

2006-10-27 Thread Sergey Kovalyov
Hi All! As far as I understand Flex built-in ZipCodeValidator does not validate zip codes precisely. In other words it only checks whether the edited value is 5 digit number. So that 0 is interpreted as valid. What are the best practices for precise zip code validation? For now I I'm

[flexcoders] truncateToFit does not work when percentWidth is defined for Label

2006-10-23 Thread Sergey Kovalyov
Hi All! I have a container and Label instance inside it. Unfortunately, truncateToFit does not work if Label instance width is set in percent. Please, take a look at the example below: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; width=100%

Re: [flexcoders] truncateToFit does not work when percentWidth is defined for Label

2006-10-23 Thread Sergey Kovalyov
It works! Thank you, Michael. Event setting minWidth to 0 works. I used this trick with minHeight in other cases, but could not imagine it would work here also. :) On 10/23/06, Michael Schmalle [EMAIL PROTECTED] wrote: Hi,Add this; (minWidth)mx:Label width=100% minWidth=100 text=Peace,

[flexcoders] Complex container sizing problem (100% height and measured maxHeight)

2006-10-17 Thread Sergey Kovalyov
Hi All! I want my container (e. g. Panel) to be sized by its children, though its height should not be greater than 100%. When I don't set height, the container is sized by its children endlessly, but when I set it to 100% it occupies all the space available, so that there is emptiness below the

Re: [flexcoders] Complex container sizing problem (100% height and measured maxHeight)

2006-10-17 Thread Sergey Kovalyov
Ok, in other words I want my panel to be sized by its children (no emptiness inside below the children), but this panel height must not be greater than 100% (vertical scroll would appear inside it when there are too much children). On 10/17/06, Michael Schmalle [EMAIL PROTECTED] wrote: Hi,I

Re: [flexcoders] Why defaultButton do not work when in TabNavigator?

2006-10-16 Thread Sergey Kovalyov
As far as I remember, Adobe knows about this bug and it would be fixed in upcoming updater release. Also it seems that there is no workaround... On 10/13/06, hank williams [EMAIL PROTECTED] wrote: I am encountering this same problem, namely that the defaultButton feature doesnt work inside a

[flexcoders] Internationalization best practices

2006-10-12 Thread Sergey Kovalyov
Hi All! Could you please share some approaches toward internationalization in Flex 2 applications? Any articles, tutorials and code samples are welcome! Sergey. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:

[flexcoders] PopUpMenuButton weird behaviour

2006-10-10 Thread Sergey Kovalyov
Hi All! I launched the simple example of PopUpMenuButton usage, taken from help. It shows tree menu, but its behaviour is weird. When I mouse over an item that contains nested menu, it show that menu, but when I mouse over another item in the root level, the entire menu disappears. Is it correct?

[flexcoders] OFFTOPIC: Ukraine - Scotland

2006-10-10 Thread Sergey Kovalyov
Hi All! Does anybody from Macromedia Consulting Europe (former iteration::two) or other scottish companies plan to visit Ukraine - Scotland soccer match tomorrow in Kiev? :) Sergey. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search

[flexcoders] How to disable particular LinkBar item?

2006-10-10 Thread Sergey Kovalyov
Hi All! I want to disable particular LinkBar item and make mouse pointer looking like arrow, not hand, while over it. How to do that? Sergey. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:

[flexcoders] What do I need to force UIComponent calculate its size automatically?

2006-10-04 Thread Sergey Kovalyov
Hi All! I have UIComponent instance (e. g. Box) myBox. I want to set its width (e. g. myBox.width = 100), but height should be calculated automatically, depending on box content. What value should I assign to height? myBox.height = NaN works ok, but I'm not sure it's stable... Sergey. --

Re: [flexcoders] What do I need to force UIComponent calculate its size automatically?

2006-10-04 Thread Sergey Kovalyov
True. But if the value is assigned already? On 10/4/06, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 04 October 2006 10:11, Sergey Kovalyov wrote: automatically, depending on box content. What value should I assign to height? myBox.height = NaN works ok, but I'm not sure it's stable

  1   2   3   >