[flexcoders] As2lib regexp doesn't work in Flex

2006-03-31 Thread Sergey Kovalyov
Dear Flexcoders, Are there any ways to make as2lib regexp in Flex? I use Pattern.matches(a*b, aab) and it returns true in Flash, but either undefined or false in Flex. The same code works different. Could you please assist me with this issue. Regards, Sergey. -- Flexcoders Mailing List FAQ:

[flexcoders] RE: Second instance of TitleWindow with Repeater inside doesn't resize

2006-04-05 Thread Sergey Kovalyov
the dataProvider changes that could be easily verified via logging its length. Sergey. -Original Message- From: Sergey Kovalyov [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 05, 2006 2:36 PM To: 'flexcoders@yahoogroups.com' Subject: Second instance of TitleWindow with Repeater inside doesn't

[flexcoders] Second instance of TitleWindow with Repeater inside doesn't resize

2006-04-05 Thread Sergey Kovalyov
Hi Flexcoders! I have the TitleWindow with Repeater inside and when I create two instances of it using PopUpManager.createPopUp() or one as fixed Panel and another one as pop up, the second instance doesn't resize upon Generate button click that means changing dataprovider. Somewhen, not in this

[flexcoders] Uncaught exceptions in Flex 1.5

2006-04-21 Thread Sergey Kovalyov
Hi All! How to deal with uncaught exceptions in Flex 1.5? Actually they kill application running via terminating the current script. Due to the fact Flex application has a lot of entry points (each and every event handling delegate), I need either put try..catch..finally statements in each

RE: [flexcoders] Uncaught exceptions in Flex 1.5

2006-04-25 Thread Sergey Kovalyov
But is there any way to centralize the calling code? The only solution I see is to create own Delegate class with try..catch..finally statement and also with static method execute() that executes any function in any context using this Delegate class. That static method execute() is not

[flexcoders] dataGridInstance.setVPosition(dataGridInstance.maxVPosition);

2006-04-27 Thread Sergey Kovalyov
Hi All! When I use dataGridInstance.setVPosition(dataGridInstance.maxVPosition); dataGridInstance content is not scrolling to its maximum vertical position possible, but gap of 1 or 2 lines remains. Is there any way to fix it? I use DataGrid instance as a trace panel, so that when more and

[flexcoders] How to detect whether DisplayObject is popup or not?

2006-07-17 Thread Sergey Kovalyov
Hi All! In Flex 1.5 there was popUp boolean property in UIObject class. It was set to true if UIObject instance is popup and false otherwise. How to examine this now? Sergey. Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups

Re: [flexcoders] How to detect whether DisplayObject is popup or not?

2006-07-17 Thread Sergey Kovalyov
Okay, thank you. But still. Every DisplayObject, not only UIComponent, could be popUp. How to deal with them? I found that popUpChildren : IChildList exists in SystemManager class description. But how to get correct instance of that SystemManager and whether it's what I'm looking for? On 7/17/06,

[flexcoders] No way to removeItem()

2006-07-17 Thread Sergey Kovalyov
Hi All! I found that there is no method removeItem() in ArrayCollection class. You need to call yourArrayCollection.removeItemAt(yourArrayCollection.getItemIndex(item)) each time you want just to remove item. I wonder why? Adobe even created class ArrayList in FlexUnit utils package with such

[flexcoders] Re: No way to removeItem()

2006-07-19 Thread Sergey Kovalyov
Any suggestions? On 7/17/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! I found that there is no method removeItem() in ArrayCollection class. You need to call yourArrayCollection.removeItemAt(yourArrayCollection.getItemIndex(item)) each time you want just to remove item. I wonder why

[flexcoders] Hot to detect mouse click outside InteractiveObject instance?

2006-07-19 Thread Sergey Kovalyov
Hi All! We have event type mouseDownOutside (FlexMouseEvent.MOUSE_DOWN_OUTSIDE), but it works only with components opened using the PopUpManager when the user clicks outside them. Is there any way to handle clicks outside regular components (e. g. TextInput)? Thank you in advance! Sergey.

[flexcoders] Class instance inheritance check

2006-07-19 Thread Sergey Kovalyov
Hi All! Imagine, I have the Class instnace as a function parameter. function myFunction(clazz : Class) { ... } How to check that clazz is inherited from some other class (e. g. UIComponent). Sure, I can create instnace. if (new clazz() is UIComponent) { ... } But this approach seems not good

[flexcoders] addChild() in constructor?

2006-07-19 Thread Sergey Kovalyov
As far as I understand, now I can work with superclass view directly from constructor of inherited class after super() call? public class A extends Box { function A() { addChild(new TextInput()); // causes exception } } public class B extends A { function B() { super(); addChild(new

Re: [flexcoders] addChild() in constructor?

2006-07-19 Thread Sergey Kovalyov
Actually, I found this approach in IPE Controls by Ely Greenfield (http://demo.quietlyscheming.com/IPE/). There are classes like this there: package qs.ipeControls { import qs.ipeControls.classes.IPESlider; import mx.controls.HSlider; public class IPEHSlider extends

[flexcoders] Updates for Flex 2.0?

2006-07-20 Thread Sergey Kovalyov
Hi All! Are there any plans regarding updates or add-ons for Flex 2.0 by Adobe? I consider, such useful features like markers for methods that either implement interface or override super class implementation, highlighting all variable appearance in its scope, removing unused imports,

Re: [flexcoders] Updates for Flex 2.0?

2006-07-20 Thread Sergey Kovalyov
Just posted there. Sure, it's interesting to know, whether new features of IDE will be implemented in next version only or they can arrive with some kind on Flex 2.0 Update Pack. :) On 7/20/06, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 20 July 2006 15:34, Sergey Kovalyov wrote

[flexcoders] ComboBox instance method open() doesn't work first time when in particular state

2006-07-21 Thread Sergey Kovalyov
I have base application class:package { import mx.controls.ComboBox; import mx.core.Application; public class ExampleBase extends Application {public var myComboBox : ComboBox; public function ExampleBase() { }protected function onEditStateEnter() : void { myComboBox.open(); }

[flexcoders] Re: ComboBox instance method open() doesn't work first time when in particular state

2006-07-21 Thread Sergey Kovalyov
); } } Are there any better solutions? :) On 7/21/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: I have base application class: package { import mx.controls.ComboBox; import mx.core.Application; public class ExampleBase extends Application { public var myComboBox : ComboBox

[flexcoders] ComboBox dropdown size doesn't change with new dataProvider in state

2006-07-21 Thread Sergey Kovalyov
Hi All! I have ComboBox in state and when I change its dataProvider, where labels are longer, its dropdown size doesn't change. I attached two application files and you can also find their source below. Click Edit button first, then Cancel and Edit again. Dropdown is so thin. Test.mxml: ?xml

[flexcoders] .actionScriptProperties, .flexProperties, .project files with SVN

2006-07-21 Thread Sergey Kovalyov
Hi All! When working in team with SVN and updating .actionScriptProperties, .flexProperties, .project files, it's necessary to restart Eclipse in order to get that setting working. Is there any option to turn on automatic project options update from those files upon change? Sergey.

Re: [flexcoders] Change the color of the text/label for a tree node

2006-07-22 Thread Sergey Kovalyov
I did it using custom cell renderer. Make your cell renderer class inherited from Label and set color = item.color in setValue() method implementation. Also add color property to each item in your dataProvider. On 7/22/06, jcarrera04 [EMAIL PROTECTED] wrote: Can you change the color of the

[flexcoders] Fwd: ComboBox dropdown size doesn't change with new dataProvider in state

2006-07-24 Thread Sergey Kovalyov
Any ideas on this issue? I would like to find workaround or point me at my mistake... -- Forwarded message -- From: Sergey Kovalyov [EMAIL PROTECTED] Date: Jul 21, 2006 11:46 PM Subject: ComboBox dropdown size doesn't change with new dataProvider in state To: flexcoders

[flexcoders] Re: ComboBox dropdown size doesn't change with new dataProvider in state

2006-07-24 Thread Sergey Kovalyov
Very similar weird things happen when using DateField that is also inherited from ComboBase... On 7/24/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Any ideas on this issue? I would like to find workaround or point me at my mistake... -- Forwarded message -- From: Sergey

[flexcoders] antiAliasType null exception with Text instances!

2006-07-24 Thread Sergey Kovalyov
Hi All! Each time I create new Text instance in ActionScript using new Text() and then add it to parent container, I get exception: TypeError: Error #2007: Parameter antiAliasType must be non-null. What's wrong? Sergey. Yahoo! Groups Sponsor ~--

[flexcoders] Using VBox with Image inside as a TileList itemRenderer strangeness

2006-07-27 Thread Sergey Kovalyov
Hi All! Why should I make VBox width 4 pixels more than actual image width, but keep its height the same as actual image height in order to make 2 pixels border around the image when either mouse overing the item or selecting it? mx:TileList width=100% height=100%

Re: [flexcoders] Re: antiAliasType null exception with Text instances!

2006-07-28 Thread Sergey Kovalyov
True. But what would you do in case you need to have public property that should be redirected to Text instance child. Imagine, you have component based on VBox and myText Text instance inside it. Also you have text public property that returns myText.text and sets myText.text when you assign

Re: [flexcoders]

2006-07-28 Thread Sergey Kovalyov
Any ideas regarding how to make DateField icon properly sized always? On 7/27/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! I have a problem with DateField. If you run Test.mxml and click on the left side of Enter button, so that mouse remains out of the appearing DateField control

Re: [flexcoders] Re: antiAliasType null exception with Text instances!

2006-07-28 Thread Sergey Kovalyov
Strong idea! I need to test it. It seems it must work. Whatever the case I use regenerateStyleCache(false) already and it works.On 7/28/06, Daniel Freiman [EMAIL PROTECTED] wrote: I'm throwing out an idea that I'm not sure will work and I haven't tested, but it's the best I have right now.

Re: [flexcoders]

2006-07-28 Thread Sergey Kovalyov
Any ideas from Adobe guys? On 7/28/06, gotgoose09 [EMAIL PROTECTED] wrote: I had a similar problem, but I couldn't figure out a solution:

[flexcoders] Problems while binding TextInput instance text property on FileReference instance name property

2006-08-01 Thread Sergey Kovalyov
Hi All! Unfortunately when I bind TextInput instance text property on FileReference instance name property exception is thrown: Error #2037: Functions called in incorrect sequence, or earlier call was unsuccessful. I have this line in MXML: mx:TextInput text={fileReference.name} / And this in

[flexcoders] Custom component does not resize parent container

2006-08-02 Thread Sergey Kovalyov
Hi All! Why in general custom component (inherited from VBox if it matters) does not resize its parent container. When I add Label instance in that container it resizes itself properly to fit the size of nested content, but when I put my component there (and it actually wider than the widest

Re: [flexcoders] ICQ, Skype, Yahoo and other messengers id validation

2006-08-04 Thread Sergey Kovalyov
Thank you, Michael! And what about ICQ? Now they use both digital value and digital with dashes. Sergey. On 8/4/06, Michael Klishin [EMAIL PROTECTED] wrote: Sergey Kovalyov wrote: I assume that it is not Flex specific question and probably software issue in general, but still. Does

Re: [flexcoders] ICQ, Skype, Yahoo and other messengers id validation

2006-08-04 Thread Sergey Kovalyov
So, the validation string should be like this [0-9]{4,10}$ in order to fit future 10-digits numbers? On 8/4/06, Michael Klishin [EMAIL PROTECTED] wrote: Sergey Kovalyov wrote: Thank you, Michael! And what about ICQ? Now they use both digital value and digital with dashes. It's just

Re: [flexcoders] ICQ, Skype, Yahoo and other messengers id validation

2006-08-07 Thread Sergey Kovalyov
Yes, but when I'm trying to get online status indicator image, it returns 404 error for all numbers less than 1. On 8/4/06, Rostislav A. Siryk [EMAIL PROTECTED] wrote: Sergey, As I understand, the only requirement for ICQ numbers is to be a number. Historically, ICQ numbers started from

[flexcoders] Exception while using BindingUtils.bindProperty()

2006-08-08 Thread Sergey Kovalyov
Hi All! I have a class and RegExpValidator instance _validator inside it. When I try to bind _validator.expression with expression() getter inside the class, I get exception: ReferenceError: Error #1069: Property expression not found on TextInputMessengerLabel and there is no default value. The

[flexcoders] Re: Exception while using BindingUtils.bindProperty()

2006-08-08 Thread Sergey Kovalyov
, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! I have a class and RegExpValidator instance _validator inside it. When I try to bind _validator.expression with expression() getter inside the class, I get exception: ReferenceError: Error #1069: Property expression not found

Re: [flexcoders] Exception while using BindingUtils.bindProperty()

2006-08-08 Thread Sergey Kovalyov
Actually, it does not help. I have already found the real mistake. Getter must be public only. Because util class is external and it can not work with neither private nor protected properties. :) On 8/8/06, Rostislav A. Siryk [EMAIL PROTECTED] wrote: Sergey, Maybe you can fix it by

[flexcoders] RegExp and RegExpValidator compatibility

2006-08-08 Thread Sergey Kovalyov
Hi All! Why RegExpValidator has expression property typed as String, not RegExp? In case I have string constant like ^[\d]{5,}$ and then assign it to expression property of RegExpValidator that validates some TextInput control, it does not work properly. But ^[0-9]{5,}$ works. I think it is due

[flexcoders] Re: RegExp and RegExpValidator compatibility

2006-08-08 Thread Sergey Kovalyov
Ok, I see, regExpInstance.source should be used. On 8/9/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! Why RegExpValidator has expression property typed as String, not RegExp? In case I have string constant like ^[\d]{5,}$ and then assign it to expression property of RegExpValidator

Re: [flexcoders] Exception while using BindingUtils.bindProperty()

2006-08-08 Thread Sergey Kovalyov
Sure, it's good practice, but actually it depends on algorithm used. Sometimes you could actually work without default value. In my case messenger is always defined, so suitable _expression_ will be found always. Probably, in some particular tasks exception must be thrown, when no suitable case

[flexcoders] How to force validation and what should be used instead of deprecated isValid() method?

2006-08-08 Thread Sergey Kovalyov
Hi All! How to perform validation when it is needed? Should I use validateAll([myValidator]) static method in this particular case? Also I would like to know what is replacement for deprecated isValid() method? Should I use validate() method with appropriate parameter from property of control to

Re: [flexcoders] Re: Proper way to transition from Login Screen, to Main Application

2006-08-09 Thread Sergey Kovalyov
Actually, the best way is to create AuthenticationManager singleton that handles all authentication business logic and notifies subscribed views using events with types SIGN_IN and SIGN_OUT. Due to the fact there could be some authentication views in application (e. g. form and window), you should

[flexcoders] How to check that uploaded file is image?

2006-08-10 Thread Sergey Kovalyov
Hi All! When file filter like *.jpg; *.gif; *.png is used, it does not guarantee that file uploaded is actually an image, because any file could have such extension. Is there any way without server side code to check that uploaded file is image? Sergey. -- Flexcoders Mailing List FAQ:

Re: [flexcoders] TileList customizing

2006-08-10 Thread Sergey Kovalyov
Sure, but how this itemRenderer should look if writing it inline in MXML? On 8/10/06, Joost Nuijten [EMAIL PROTECTED] wrote: What about writing your own custom item renderer? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:

[flexcoders] Binding properties routine

2006-08-10 Thread Sergey Kovalyov
Hi All! I want to bind some properties of some controls (like Validator) created in constructor to some properties of class. But constructor is called before all the properties are set via respective setters from MXML component instantiation. So the binding in constructor dependent on properties,

Re: [flexcoders] Re: Binding properties routine

2006-08-10 Thread Sergey Kovalyov
binding to the previous value of the property to release it's reference. Thunder --- In flexcoders@yahoogroups.com, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! I want to bind some properties of some controls (like Validator) created in constructor to some properties of class

[flexcoders] Creating State using ActionScript

2006-08-10 Thread Sergey Kovalyov
Hi All! Does anybody have experience creating view states using ActionScript, not in MXML? Imagine, I have two view states, defined in MXML and I want to extend this structure with one more state in ActionScript class inherited from this MXML. How to do that? Thank you in advance. Regards,

Re: [flexcoders] Re: Binding properties routine

2006-08-10 Thread Sergey Kovalyov
Thank you! It works. On 8/10/06, thunderstumpgesatwork [EMAIL PROTECTED] wrote: That should work. I can't tell exactly where the _validator and _image properties are defined, but if they're just children of your component, they should be initialized by the time initialize() is called.

[flexcoders] How to collapse Panel?

2006-08-11 Thread Sergey Kovalyov
Hi All! I want to create collapsable Panel via states. I use mx:SetProperty to change height to myPanel.getStyle(headerHeight) value, but this method return undefined. What is wrong? Regards, Sergey. -- Flexcoders Mailing List FAQ:

[flexcoders] Re: How to collapse Panel?

2006-08-11 Thread Sergey Kovalyov
mx:TextArea / /mx:Panel /mx:Application You could check via debugging that (event.localY getStyle(headerHeight)) is always false. On 8/11/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! I want to create collapsable Panel via states. I use mx:SetProperty

[flexcoders] TileList item margins

2006-08-11 Thread Sergey Kovalyov
Hi All! How to eliminate those 2 pixels at the top and the same at the bottom margins around each TileList item? I use this: mx:TileList columnCount=2 rowCount=3 borderStyle=none dataProvider={_dataProvider} mx:itemRenderer mx:Component mx:Image

[flexcoders] Re: How to collapse Panel?

2006-08-11 Thread Sergey Kovalyov
Any ideas regarding why headerHeight style equals undefined by default and how to get its default value? :( On 8/11/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: I found this example in help and wonder how to make it works: ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http

[flexcoders] Save Image As... context menu item

2006-08-11 Thread Sergey Kovalyov
Hi All! Probably, somebody already implemented this, but still it could be interested. I have just created an example of application that demonstrates how to implement Save Image As... functionality native for browsers but not available in Flash applications usually. ?xml version=1.0

[flexcoders] Re: Save Image As... context menu item

2006-08-11 Thread Sergey Kovalyov
={IMAGE_SOURCE} contextMenu={imageContextMenu} / /mx:Application On 8/11/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! Probably, somebody already implemented this, but still it could be interested. I have just created an example of application that demonstrates how to implement Save Image

[flexcoders] How to get Panel headerHeight and what is its default value?

2006-08-12 Thread Sergey Kovalyov
Hi All! I use myPanelInstance.getStyle(headerHeight) and it returns undefined until you set any value manually using myPanelInstance.setStyle(headerHeight, newValue). But actually header exists, so it should have some height. Usually it was 28, not undefined. What is wrong? Regards, Sergey. --

[flexcoders] Image class instance source nature detection

2006-08-12 Thread Sergey Kovalyov
Hi All! What is the most proper way to detect either Image use embeded content to display or load the content in runtime? Sergey. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:

Re: [flexcoders] How to get Panel headerHeight and what is its default value?

2006-08-12 Thread Sergey Kovalyov
On 8/12/06, Gunther Konig [EMAIL PROTECTED] wrote: Isn't this the 3rd (or 4th) time you're asking this? Isn't it obvious? It returns undefined because it's not defined :D Yes, but there was no answer. :) Open flex install dir\frameworks\source\mx\containers\Panel.as and see the methods

Re: [flexcoders] Draw Label Border

2006-08-12 Thread Sergey Kovalyov
Put label into the Box: mx:HBox borderStyle=solid mx:Label text=Label / /mx:HBox On 8/12/06, Kumar [EMAIL PROTECTED] wrote: Hi All, I am finding it difficult to draw border of label. I am trying to use flash API for drawing rectangle in place of border. Can some one help me out?

Re: [flexcoders] Best way to reference items in a parent MXML component?

2006-08-12 Thread Sergey Kovalyov
Events must be used here. Your child elements should dispatch custom events and container that holds them should listen to that events. Event listener will handle the child via target property of event object. On 8/12/06, ben.clinkinbeard [EMAIL PROTECTED] wrote: I have a ViewStack whose child

Re: [flexcoders] MXML Reference

2006-08-12 Thread Sergey Kovalyov
http://www.adobe.com/support/documentation/en/flex/ On 8/12/06, Weldon MacDonald [EMAIL PROTECTED] wrote: I haved an application to impliment and it begs for Flex 2, but I don't know much about MXML. I've found some getting started stuff, but have totally failed to find an MXML tag reference.

Re: [flexcoders] Re: Best way to reference items in a parent MXML component?

2006-08-13 Thread Sergey Kovalyov
If you want to use utility function, make the utility class with static methods only and place the function there instead of parent class. Then call it from children via MyUtilityClass.myMethod(); On 8/13/06, ben.clinkinbeard [EMAIL PROTECTED] wrote: How would a child call a function in the

[flexcoders] How to detect absolute image URL when using mx.controls.Image control?

2006-08-13 Thread Sergey Kovalyov
Hi All! Sure, image URL is placed in source property of mx.controls.Image instance. But there could be relative path that is not starting from either http://; or https://;. Also the reference to the embeded resource could be the value of source property. So how to detect whether mx.controls.Image

Re: [flexcoders] How to get Panel headerHeight and what is its default value?

2006-08-13 Thread Sergey Kovalyov
Also this makes example, provided in help, not working. That example also refers to getStyle(headerHeight) value. As I remember it returned default value, not undefined, in Flex 1.5. On 8/12/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: On 8/12/06, Gunther Konig [EMAIL PROTECTED] wrote: Isn't

[flexcoders] setStyle(styleProperty, null) or setStyle(styleProperty, undefined)?

2006-08-14 Thread Sergey Kovalyov
Hi All! How to reset one particular style property? Do I need to call setStyle(styleProperty, null) or setStyle(styleProperty, undefined)? Or any other solution is suitable in this particular case? Thank you in advance! Regards, Sergey. -- Flexcoders Mailing List FAQ:

[flexcoders] Re: How to detect absolute image URL when using mx.controls.Image control?

2006-08-14 Thread Sergey Kovalyov
No ideas? :( On 8/13/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! Sure, image URL is placed in source property of mx.controls.Image instance. But there could be relative path that is not starting from either http://; or https://;. Also the reference to the embeded resource could

Re: [flexcoders] Re: Best way to reference items in a parent MXML component?

2006-08-15 Thread Sergey Kovalyov
But it's antipattern and I believe event model should be used in this cases. Calling method from the parent scope is bad design. I consider either event model or utility class could be used. It depends on particular case. On 8/15/06, Gordon Smith [EMAIL PROTECTED] wrote: You can also

[flexcoders] How to create just clickable box?

2006-08-15 Thread Sergey Kovalyov
Hi All! I do not need Box container. Only box shape that could change its background and stroke colors and handle mouse events. Sure, I can use box itself, but it seems like heavyweight solution. Do I need to subclass InteractiveObject and override method... Which one method? Sergey. --

[flexcoders] [Style] metadata tag format property valid values

2006-08-15 Thread Sergey Kovalyov
Hi All! This paragraph is from help: format String Specifies the units of the property. For example, if you specify type as Number, you might specify format=Length if the style defines a length measured in pixels. Or, if you specify type=uint, you might set format=Color if the style

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

2006-08-15 Thread Sergey Kovalyov
Hi All! I have simple application. Authentication form with Sign in button assigned as defaultButton. The source is available below: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; horizontalAlign=left mx:Script

Re: [flexcoders] How to create just clickable box?

2006-08-15 Thread Sergey Kovalyov
Yes, I think subclassing UIComponent and then overridding updateDisplayList() method is the best approach in this case. On 8/15/06, Samuel D. Colak [EMAIL PROTECTED] wrote: Best to subclass UIComponent and then do the work yourself – it seems heavy handed but its very reliable and by default

[flexcoders] How to stick pop up to some component?

2006-08-15 Thread Sergey Kovalyov
Hi All! I have a component that opens pop up as its state. In some sense ComboBox is similar. Its dropdown view should be attached to its regular view. But layout could be changed. Native Flex ComboBox hides the dropdown in this case. Is it okay to bind x and y properties on appropriate getters?

Re: [flexcoders] Re: How to collapse Panel?

2006-08-16 Thread Sergey Kovalyov
I have reimplemented getHeaderHeight() method that is private in Panel unfortunately. I do not want to apply new headerHeight style property value, but I want to know default. Sure, it is based on the style of the title text, though it is still calculable. On 8/16/06, Samuel Reuben [EMAIL

[flexcoders] Re: How to stick pop up to some component?

2006-08-16 Thread Sergey Kovalyov
Any ideas regarding how to organize control that contains dropdown instance? On 8/15/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! I have a component that opens pop up as its state. In some sense ComboBox is similar. Its dropdown view should be attached to its regular view. But layout

Re: [flexcoders] Re: TileList item margins

2006-08-16 Thread Sergey Kovalyov
No, it does not solve the issue also. Only setting paddingTop and paddingBottom to 0 helped. You can see the source below: mx:TileList columnCount=2 rowCount=3 dataProvider={['photo1.jpg', 'photo2.jpg', 'photo3.jpg', 'photo4.jpg', 'photo5.jpg', 'photo6.jpg']} borderStyle=none paddingTop=0

[flexcoders] Instantiating object in MXML

2006-08-17 Thread Sergey Kovalyov
Hi All! I have MyObject class that implements IMXMLObject interface: package { import mx.core.IMXMLObject; public class MyObject implements IMXMLObject { public function initialized(document:Object, id:String):void { } }

Re: [flexcoders] Re: How to collapse Panel?

2006-08-17 Thread Sergey Kovalyov
I do not consider it should be public. Probably, protected is more suitable in this case. I needed it to create CollapsablePanel. Sure, via subclassing. The code is available below: ?xml version=1.0 encoding=utf-8? CollapsablePanelBase xmlns:mx=http://www.adobe.com/2006/mxml;

[flexcoders] What event is fired by UIComponent successors if any its style is changed?

2006-08-18 Thread Sergey Kovalyov
Hi All! What event is fired by UIComponent successors if any its style is changed? Regards, 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 *

Re: [flexcoders] What event is fired by UIComponent successors if any its style is changed?

2006-08-18 Thread Sergey Kovalyov
Probably, so. But updateComplete resolved my issue. I just need event type for binding getter only property. On 8/18/06, Michael Schmalle [EMAIL PROTECTED] wrote: None,But.. this method is triggeredpublic function styleChanged(propName:String):voidWhen passed null or 'styleName' this ususally

[flexcoders] preventDefault() with KeyboardEvent

2006-08-21 Thread Sergey Kovalyov
Hi All! Is it possible to call preventDefault() method of KeyboardEvent instance effectively? I'm trying to listen to Ctrl+Enter combination on TextArea and it works. But after that new line is added into TextArea instance. Is there any way to fix it without workarounds, like deleting last symbol

Re: [flexcoders] Instantiating object in MXML

2006-08-21 Thread Sergey Kovalyov
Yes, you are right. But I implemented IMXMLObject interface. My class instantiates in the root of the component, but nowhere else. On the other hand native RadioButtonGroup that is also inherited from EventDispatcher, not UIComponent, could be instantiated even inside nested containers. Why so?

[flexcoders] Is it possible to add ControlBar container runtime?

2006-08-21 Thread Sergey Kovalyov
Hi All! I'm adding ControlBar container to Panel runtime via myPanel.addChild(new ControlBar()), but it looks not like a native control bar. Just more space below the content area. How to fix that? Sergey. -- Flexcoders Mailing List FAQ:

Re: [flexcoders] Instantiating object in MXML

2006-08-22 Thread Sergey Kovalyov
Yes, there is no problem actually with this. Everything works ok. I just wanted to put my own CollapsablePanelGroup (manager that allows only one Panel in group to be in expanded state) class right before CollapsablePanel instances, like it's usually done with RadioButtonGroup and RadioButton

Re: [flexcoders] Re: Is it possible to add ControlBar container runtime?

2006-08-22 Thread Sergey Kovalyov
... either by CSS using .styleName or by .setStyle() Also might try calling invalidateDisplayList() and/or invalidateSize() good luck. Thunder --- In flexcoders@yahoogroups.com, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! I'm adding ControlBar container to Panel runtime via

Re: [flexcoders] Re: Is it possible to add ControlBar container runtime?

2006-08-22 Thread Sergey Kovalyov
expected controlBarState correctly, but runtime it adds simple Box container at the top of the panel's content area. On 8/22/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Any code example? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives

[flexcoders] Using ControlBar Panel child in states or in ActionScript?

2006-08-23 Thread Sergey Kovalyov
Hi All! Is there any way to show and hide ControlBar dynamically in Panel? I want to make two states for Panel: one with ControlBar and another one - without. But as I see, ControlBar is more like compile-time feature. :( Sergey. -- Flexcoders Mailing List FAQ:

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

2006-08-23 Thread Sergey Kovalyov
Hi All! I have a class inherited from EventDispatcher and want to make some routine in the next frame, exactly as UIComponent does. But EventDispatcher does not dispatch Event.ENTER_FRAME event. What should I do instead? Whether Timer is ok or not? Any other ideas? Regards, Sergey. --

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

2006-08-25 Thread Sergey Kovalyov
Any source example? What delay do you use?On 8/24/06, Matt Chotin [EMAIL PROTECTED] wrote: We use a Timer in our non-visual code for this. Matt __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search

[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] 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 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:

[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] 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] 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] 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

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. :)

  1   2   3   >