Re: [flexcoders] Clean way to filter very large ArrayCollection (in pieces) using filterFunction

2010-03-26 Thread Roman Protsiuk
I guess you can easily reset some sort of counter before refreshing collection and then increment it from inside of filter function without getting into internals. Roman http://kotopakhi.com On Fri, Mar 26, 2010 at 5:18 AM, Baz wrote: > > > Hello, > > I have a very large arraycollection that u

Re: [flexcoders] sending email from actionscript / flex REFdn6005077818

2010-03-08 Thread Roman Protsiuk
navigateToURL("mailto:f...@bar.com";); R On Mon, Mar 8, 2010 at 4:44 PM, dennis wrote: > > > Hi, does any body knows how can we send emails from flex projects? > > (in order to implement a “send email” form) > > > > *dennis* > > ...*we are what we are doing*... *P **Think! before you print.**

Re: [flexcoders] Mapping Java Generics to an AS3 Vector through BlazeDS remoting?

2010-02-21 Thread Roman Protsiuk
You won't be able to get generic element type information during runtime so what's the point? The only likely approach I guess is generic serializer/deserializer. And still I'm not sure whether vector element type information is serialized/deserialized with vector or is it just a compile time infor

Re: [flexcoders] Why most Flex Developer job ads ask now for Knowledge in Java??

2010-02-17 Thread Roman Protsiuk
As I see it Flex is often used to build data intensive and/or highly loaded applications. Thus Java back end and requirement for Flex developers to understand it. Roman Protsiuk Software Engineer/Engineering Team Lead http://kotopakhi.com Kyiv, Ukraine (GMT+2) mobile: +38 097 321 56 54 email

Re: [flexcoders] Re: How to set color?

2010-01-25 Thread Roman Protsiuk
#ff is the CSS color format while 0xff is the hexadecimal number format in ActionScript and this number can represent color value. The problem with #ff is that it's not ActionScript. There shouldn't be any problem if you use 0xff in AS or MXML and #ff only in CSS. Roman On Mon

Re: [flexcoders] Get Notified if a Remoting "Result" event listener function *doesn't get called?

2009-11-09 Thread Roman Protsiuk
Hi Steve, In the situation when there's no response from the server you'll eventually get request timeout fault. It's just the matter of how long is this timeout configured to be. Roman Protsiuk Software Engineer/Engineering Team Lead http://under.in.ua Kyiv, Ukraine (GMT+2)

Re: [flexcoders] Double clicking on a LIST item

2009-10-31 Thread Roman Protsiuk
Quote from the docs: "To receive itemDoubleClick events, you must set the component's doubleClickEnabled property to true." Roman On Sat, Oct 31, 2009 at 10:16 PM, steveb805 wrote: > > > Is there any reason that itemDoubleClick would not produce an event ? > > I'm trying this itemDoubleClick="

Re: [flexcoders] Passing associative array to custom component

2009-10-18 Thread Roman Protsiuk
Try using Dictionary instead. Roman Protsiuk Software Engineer/Engineering Team Lead http://under.in.ua Kyiv, Ukraine (GMT+2) mobile: +38 097 321 56 54 email: roman.prots...@gmail.com<%3C/span%3eroman.prots...@gmail.com> skype: roman.protsiuk linkedin: http://www.linkedin.com/in/r

Re: [flexcoders] Re: Space in TextInput

2009-10-10 Thread Roman Protsiuk
Hi, Take a look at the docs: http://livedocs.adobe.com/flex/3/langref/mx/controls/TextInput.html#restrict For your case the solution might look like: Roman Protsiuk Software Engineer/Engineering Team Lead http://under.in.ua Kyiv, Ukraine (GMT+2) mobile: +38 097 321 56 54 email: roman.prots

Re: [flexcoders] Data binding inside Repeater?

2009-08-14 Thread Roman Protsiuk
And what if Object would not be generic Object but rather class DataProviderContainer { [Bindable]public var dataProvider:ArrayCollection;} I assume your dynamic property dataProvider on Object is not bindable. Roman Protsiuk Software Engineer/Engineering Team Lead http://under.in.ua Kyiv

Re: [flexcoders] Access a private method

2007-09-29 Thread Roman Protsiuk
You know methods are private not just because someone want them to be so. Maybe you can find different approach to your problem solution, without necessity for calling private methods. If you somehow access that method you must consider potentially limitless future support problems. R. On 9/29/0

Re: [flexcoders] Using timer with Popups

2007-09-27 Thread Roman Protsiuk
It's really easy. Just check out Timer documentation on livedocs. E.g. in your pop-up class (or in class which will handle your pop-up): public class PopUpClass extends TitleWindow { private var timer : Timer; public function PopUpClass() { timer = new Timer(, 1); timer.addEventListener(TimerE

Re: [flexcoders] Re: Validating items in DataGrids

2007-09-19 Thread Roman Protsiuk
to validate, I need to move through the data and check. > Using the itemEditor.newInstance() and calling my validation routine, > I can detect that a validation fails. Now I'm going to try to use the > itemRenderer property to indicate the nice red boxes. > > John > --- In

Re: [flexcoders] Re: Validating items in DataGrids

2007-09-19 Thread Roman Protsiuk
I remember I did it like this: public class FilesDataGridColumnEditor extends TextInput { public function SomeDataGridEditor() { _validator.source = this; _validator.triggerEvent = "change"; _validator.required = true; _validator.property = "text"; } p

Re: [flexcoders] mouseDownOutside

2007-09-18 Thread Roman Protsiuk
What do you mean "popped up"? Is it modal pop up? Or what? R. On 9/18/07, joaopccoelho <[EMAIL PROTECTED]> wrote: > > I'm trying to get mouseDownOutside to work but to no avail. > It does get triggered if there is only a component poped up but as > soon as I pop up another one, it doesn't get t

Re: [flexcoders] Rounded corners

2007-09-14 Thread Roman Protsiuk
It should be custom skinned to do that. Programmatic skin I guess. R. On 9/14/07, Roy Tang <[EMAIL PROTECTED]> wrote: > > Thanks, but I seem to have been misunderstood. I know how to use rounded > > corners, but I want to round corners selectively, like > focusRoundedCorners property, i.e. have

Re: [flexcoders] File upload in Flex

2007-09-12 Thread Roman Protsiuk
It's possible. See FileReference and FileReferenceList. R. On 9/12/07, stephen50232 <[EMAIL PROTECTED]> wrote: > > Hi, > > I've got a new project, which requires that the user can upload > resources to a system, which other users can access and download > through the same system. > > The types

Re: [flexcoders] Stupid question - get ready to throw fruit.

2007-08-29 Thread Roman Protsiuk
Your popup can dispatch some event which will bring you the selection or you can store this info in the array collection values you are working with or... else. R. On 8/29/07, candysmate <[EMAIL PROTECTED]> wrote: > > I use a titleWindow popup with a datagrid from which the user makes a > selec

Re: [flexcoders] How do u position a label directly underneath a picture you don't know the size?

2007-08-29 Thread Roman Protsiuk
Why don't you use layout="vertical"? R. On 8/29/07, steve <[EMAIL PROTECTED]> wrote: > > I have a panel and I load an image in at runtime, I would like to > position the label directly underneath the image which may have > different heights, Can I use the contentHeight of the image to > positio

Re: [flexcoders] Dynamically binding a dataprovider in AS

2007-06-10 Thread Roman Protsiuk
mx.binding.utils.BindingUtils.bindProperty(bb, "dataProvider", this, "vs"); R. On 6/8/07, zzwi89 <[EMAIL PROTECTED]> wrote: Apologies if this question has been posted; I couldn't find anything similar in the archives. Suppose I have the following in MXML: How would I set that binding in

Re: [flexcoders] How to create "Repeater" in Actionscript only?

2007-06-08 Thread Roman Protsiuk
Why do you need repeater in as? You can do the same functionality without it. It's mxml where it suits well. R. On 6/8/07, arpan srivastava <[EMAIL PROTECTED]> wrote: Hi All, Is there anyway i can use Repeater in actionscript (only actionscript, no mxml).? can anyone send me a small cod

Re: [flexcoders] Parameter passing !! I am shocked

2007-06-07 Thread Roman Protsiuk
objParam is not the same reference to created object as obj. Whenever you set objParam to null it becomes null (try checking it out in your deleteObject method). But who said the obj should become null? To prepare obj for garbage collection you should set obj to null. R. On 6/7/07, Ravi Kumar Gu

Re: [flexcoders] Is there a way to pass on rollOver to parent object?

2007-06-06 Thread Roman Protsiuk
Is it only rollOver you want to disable? You can set mouseChildren = false and objects children won't dispatch anything mouse-related. R. On 6/6/07, beecee1977 <[EMAIL PROTECTED]> wrote: Hi, Just wondering, is it possible to have a child object ignore mouse rollOvers so that the parent obje

Re: [flexcoders] dispatchevent question when in a custom component.

2007-06-06 Thread Roman Protsiuk
Why don't you use custom events? I use standard events in my components only in situations like "something is changed" - we notify about it using Event.CHANGE. But in most custom components custom events used (especially if some event specific information is sent along with it). R. On 6/5/07, Ro

Re: [flexcoders] data providers and filter functions

2007-06-05 Thread Roman Protsiuk
The simplest solution as I see it: create another collection. R. On 6/5/07, Ariel Jakobovits <[EMAIL PROTECTED]> wrote: > I have a global variable called categories. It is an XMLListCollection > populated when a user logs in, representing the categories they have created. > > I use the categorie

Re: [flexcoders] summing a value in an arrayCollection?

2007-06-03 Thread Roman Protsiuk
Just another option: var total : Number = 0; for each (var obj : Object in myAC) { total += obj.population; } R. On 6/3/07, Jurgen Beck <[EMAIL PROTECTED]> wrote: Hi Todd, One of the ways would be to traverse your ArrayCollection with a cursor: var cursor:IViewCursor = myAC.createCurs

Re: [flexcoders] Visibility of components

2007-05-31 Thread Roman Protsiuk
What about visible-property? To be honest I didn't really understand why one might need such functionality. Is it like switching bindings on/off? R. On 5/31/07, havardfl <[EMAIL PROTECTED]> wrote: I have an application where several different components in different containers spread around

Re: [flexcoders] MXMLC compile multiple swf

2007-05-30 Thread Roman Protsiuk
Make several calls to mxmlc? R. On 5/30/07, Eduardo Dias <[EMAIL PROTECTED]> wrote: Anyone know how to compile multiples MXML to generate multiples SWF using the ANT Tasks? Thanks

[flexcoders] HotFix 2 and compc

2007-05-30 Thread Roman Protsiuk
Hi. Can anyone explain me what does "Change compc to use SourceList" mean? Found it on a tech note page regarding hot fix 2 (http://www.adobe.com/go/kb401825) and still have no clue on what is it. Thanks, R.

Re: [flexcoders] Positioning Alert Control

2007-05-25 Thread Roman Protsiuk
The reference to the Alert instance you are showing can give you more control over Alerts position. It (reference) is returned by Alert.show() method. E.g. var alert : Alert = Alert.show("bla-bla-bla"); alert.y /= 2; R. On 5/25/07, Marvin Froeder <[EMAIL PROTECTED]> wrote: Simple... Lets se

Re: [flexcoders] call function on a pop up

2007-05-24 Thread Roman Protsiuk
If pop1 is member variable of your class everything should work. You create pop up and store a pointer to it in you variable (pop1). Then using pop1 you call a method on that pop up. What is the problem? R. On 5/23/07, mazarflex <[EMAIL PROTECTED]> wrote: I am trying to call a function to a

Re: [flexcoders] Unable to resolve a class for ResourceBundle

2007-05-23 Thread Roman Protsiuk
What are you compiling and how? If it's component library then probably you didn't include your resource bundle in compilation (e.g. compc -include-resource-bundles ...) R. On 5/22/07, Praveen Saxena <[EMAIL PROTECTED]> wrote: Hi, I am getting "Unable to resolve a class for ResourceBundle" E

Re: [flexcoders] can't remove space around label

2007-05-22 Thread Roman Protsiuk
As far as I remember there are some internal margins in the Label. One of my suggestions would be to override measure()/updateDisplayList() and to measure/draw content (UITextField) manually using your rules. Though it's just a guess. ;) R. On 5/22/07, Lincoln Mitchell <[EMAIL PROTECTED]> wrote:

Re: [flexcoders] compc help

2007-05-05 Thread Roman Protsiuk
If you're setting configuration file like "-load-config papervision.xml" it replaces default flex-config.xml, thus you should specify path to the framework libraries. Something like C:/Program Files/Adobe/Flex Builder 2 Plug-in/Flex SDK 2/frameworks/libs But it seems to me that in general the

[flexcoders] "w" not kerned correctly in Safari

2007-05-04 Thread Roman Protsiuk
Hi, everyone. In Safari 'w' characters (lower-case) always appear to have a space following them. We are using standard Arial font. What can be done to fix the situation? See attached screenshot for an example. Thanks in advance. R. <>

[flexcoders] Resources and compiling library in command line/ant (compc)

2007-05-03 Thread Roman Protsiuk
Hi. I'm compiling flex2 library in command line/ant script. The problems I faced related with including resources into library. When I use -include-file directive like the following [excerpt from library-config.xml] ... some_styles.css src/resources/css/some_styles.css

Re: [flexcoders] Drag a panel and add reflection to this panel

2007-05-03 Thread Roman Protsiuk
The thing is that when you use Panel (or derived class) instance as a pop up it is draggable by default. I took me an effort (not much though) to get rid of that "handy behavior". R. On 5/3/07, Osvaldo Aufiero <[EMAIL PROTECTED]> wrote: I think the reflection is just an image... I mean a few

Re: [flexcoders] Validating custom component - how to get error to display next to field

2007-04-26 Thread Roman Protsiuk
ride. R. On 4/26/07, Roman Protsiuk <[EMAIL PROTECTED]> wrote: Is Validator you use required=true? R. On 4/26/07, John Menke <[EMAIL PROTECTED]> wrote: > > How do i get validation errors to appear next to corresponding fields > in a component that i have on an .mxml pa

Re: [flexcoders] Validating custom component - how to get error to display next to field

2007-04-26 Thread Roman Protsiuk
Is Validator you use required=true? R. On 4/26/07, John Menke <[EMAIL PROTECTED]> wrote: How do i get validation errors to appear next to corresponding fields in a component that i have on an .mxml page? I have a custom component that contains text fields. I can validate the component with

Re: [flexcoders] Re: submenu can't show completely

2007-04-24 Thread Roman Protsiuk
Never played around with getBounds/getRect methods and the mechanism is still a little bit vague for me but I though maybe you should choose another targetCoordinateSpace. Maybe in your case it should be something like Application.application. R. On 4/24/07, kkinaru <[EMAIL PROTECTED]> wrote:

Re: [flexcoders] submenu can't show completely

2007-04-23 Thread Roman Protsiuk
How do you show your menus? Using PopUpButton? Whatever the mechanism there is a way to specify x, y for the menu. R. On 4/23/07, kkinaru <[EMAIL PROTECTED]> wrote: Hello all. This time, I have a Button in the bottom of my flex application. This button shows a Menu (like the start button in

Re: [flexcoders] Open new browser popup

2007-04-23 Thread Roman Protsiuk
Thismight help you. R. On 4/23/07, Jaap Cammeraat <[EMAIL PROTECTED]> wrote: Thanks for your answer, but it isn't working in Flex201. Is there another example of opening a popupwindow? Op 20-apr-2007, om 14:38

Re: [flexcoders] Can someone explain this?

2007-04-20 Thread Roman Protsiuk
from documentation: 1) BitmapData.copyPixels(). (a) Bitmap as I understood is the target. It has public bitmapData which copyPixels should be called. And the first parameter here is the source BitmapData. (b) I heven't tried that. But you can. ;) This way you can get answer to 2) by yourself. R.

Re: [flexcoders] Image analysis before upload

2007-04-19 Thread Roman Protsiuk
As far as I know you can't do that. R. On 11 Apr 2007 12:36:16 -0700, pdflibpilot <[EMAIL PROTECTED]> wrote: Are there client-side ActionScript methods available that would allow one to determine image resolution in order to prevent a user from uploading a low-resolution image for hi-resolut

Re: [flexcoders] help with tittlewindows

2007-04-19 Thread Roman Protsiuk
Somehow I can't click the label you specified but I guess the only thing you need is reference to TitleWindow with your video display. Is it a pop up? If it is so then PopUpManager.createPopUp() returns you this reference. R. On 11 Apr 2007 20:02:21 -0700, Anthony <[EMAIL PROTECTED]> wrote:

Re: [flexcoders] TextArea number of lines.

2007-04-18 Thread Roman Protsiuk
If it's OK to validate it can be reg ex validation for specific number of \r characters. If not, try something else, like manually controlling quantity of \r characters in text, not allowing to enter "another one". R. On 18 Apr 2007 05:42:44 -0700, uday kiran <[EMAIL PROTECTED]> wrote: How c

Re: [flexcoders] Dispatching Event Question?

2007-03-30 Thread Roman Protsiuk
When you are adding an event listener the only thing that tells who is to dispatch the event is who's addEventListener() is called. I mean if you are calling addEventListener(...) this means that you are listening to 'this' that will dispatch the event. If a.addEventListener(...) then 'a' will dis

Re: [flexcoders] onChange()

2007-03-30 Thread Roman Protsiuk
ish out of water with all this flex mumbo jumbo. J. - Original Message From: Roman Protsiuk <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Thursday, 29 March, 2007 9:46:52 PM Subject: Re: [flexcoders] onChange() And, as I understood, making won't do a trick. Am I rig

Re: [flexcoders] PopUpButton :: creationComplete is giving ERROR

2007-03-30 Thread Roman Protsiuk
Dunno if it'll do in your situation, maybe you have some specific calculations there, but I do all (well, most) property handling in commitProperties method. Recommended reading: Creating Advanced Visual Components in ActionScript. R.

Re: [flexcoders] debug compile and trace statements

2007-03-29 Thread Roman Protsiuk
Traces are not stripped from swf even if debug='false'. All you need to check that is to have debug flash player installed. Output is stored (on my Windows machine, the latest version of flash player) in: C:\Documents and Settings\\Application Data\Macromedia\Flash Player\Logs\flashlog.txt. R. O

Re: [flexcoders] onChange()

2007-03-29 Thread Roman Protsiuk
r then trying to calculate it. I just wanted to know if it can be done like in Javascript/HTML. Thanks in advanced! Jeremy - Original Message From: Roman Protsiuk <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Wednesday, 28 March, 2007 8:21:23 PM Subject: Re: [flexcoders] on

Re: [flexcoders] Accessing Item Renderer in a List.

2007-03-28 Thread Roman Protsiuk
All the interaction with item renderer is expected to be done via data set to it. And the feedback may be for example bubbling event (though, I use this technique very seldom). When list-based control is created it creates as many item renderer instances as needed and only substitutes data afterw

Re: [flexcoders] Sharing An ArrayCollection

2007-03-28 Thread Roman Protsiuk
You can make them static, though it's not very good practice. There should be better solution considering context. R. On 28 Mar 2007 05:01:20 -0700, Ajay K <[EMAIL PROTECTED]> wrote: i want to share ArrayCollection object Across various mxml s can anyone guide regard this Regards Ajay

Re: [flexcoders] onChange()

2007-03-28 Thread Roman Protsiuk
What your method does with those basic calculation? Returns them, sets them to some Label as text, what? It's very hard to get what is going on and thus what might be wrong. R. On 27 Mar 2007 18:59:56 -0700, Jeremy Watson <[EMAIL PROTECTED]> wrote: I'm calling on onCreationCompletel(event)

Re: [flexcoders] Personalized Popup

2007-03-28 Thread Roman Protsiuk
Far from good, very straightforward, but hopefully working. :) ImagePopUp: http://www.adobe.com/2006/mxml";> Event handler for your TileList: ... R. On 27 Mar 2007 14:43:21 -0700, leoaraguas <[EMAIL PROTECTED]> wrote: Hi, i need to make a popup that show me an image that represen

Re: [flexcoders] Model TitleWindow - Container becomes hazy

2007-03-27 Thread Roman Protsiuk
TitleWindow has got following styles derived from Panel: modalTransparensy and modalTransparencyBlur. If you set both to 0.0 there won't be any changes to background when modal pop-up is drawn. R. On 27 Mar 2007 01:22:17 -0700, Flexing... <[EMAIL PROTECTED]> wrote: When we show a "model" tit

Re: [flexcoders] Controlling item spacing in a vbox

2007-03-26 Thread Roman Protsiuk
verticalGap? R. On 26 Mar 2007 05:32:19 -0700, Rick Root <[EMAIL PROTECTED]> wrote: I have a group of checkboxes that I'd like to put in a vbox. However, I need the spacing between the items in the box to be dramatically less than the standarding spacing because we have some real estate iss

Re: [flexcoders] How to pass some values along with invalidateDisplayList

2007-03-22 Thread Roman Protsiuk
You can store mouse coordinates in some private fields before calling invalidateDisplayList() and then use them in updateDisplayList(...). R. On 3/22/07, Janis Radins <[EMAIL PROTECTED]> wrote: Hello ppl! I have run into some problems in here. I'm making menu which is supposed to react on M

Re: [flexcoders] Flex dates

2007-03-20 Thread Roman Protsiuk
Formatter will "do that" only for displaying your date. And how it comes out of database depends on database interface. In general you receive some standardized date/time. If you want to get specifically formatted date out of the database you should ask database to do it. Though I can't imagine wh

Re: [flexcoders] TextArea.text confusion

2007-03-16 Thread Roman Protsiuk
The working version of this component (ExtendedTextArea) can be found here http://roma-ch.blogspot.com/2007/03/one-down-more-to-go.html. Thanks everyone, R.

Re: [flexcoders] TextArea.text confusion

2007-03-16 Thread Roman Protsiuk
oders@yahoogroups.com *Subject:* RE: [flexcoders] TextArea.text confusion What is the problem behavior? I need a bit more detail before I run or analyze the code. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Roman Protsiuk *Sent

[flexcoders] TextArea.text confusion

2007-03-15 Thread Roman Protsiuk
Hi, all. I'm extending TextArea to make it show default text if it's empty. It will be cleared (if needed) on focusIn. The problem I've faced is that when I set text property in commitProperties method that text isn't shown in the TextArea itself. :\ Following is my class: package { import

Re: [flexcoders] validation

2007-03-15 Thread Roman Protsiuk
Validator class has property triggerEvent. It can be focusOut for example. Or if you want something more complicated then you can manually call yourValidator.validate(). R. On 15 Mar 2007 04:34:23 -0700, Kenneth Sutherland <[EMAIL PROTECTED]> wrote: I know I've seen this done somewhere but

Re: [flexcoders] Problem with datagrid inline radio button itemRenderer

2007-03-14 Thread Roman Protsiuk
What does updateCorrectAnswer? It would be helpful if you give us some working example to test what's going on. Do you really need data.correct=!data.correct;? Maybe you could just call outerDocument.updateCorrectAnswer(!data.correct, data.id); Probably that's not the reason of this behavior, but

Re: [flexcoders] Passing an object reference as a property

2007-03-13 Thread Roman Protsiuk
Hard to understand what exactly do you need and how... :) What is parent? Is it the object whose property you are trying to access? Or is it the object which has 'model' as a property? In both cases you can get property value by parsing the string your method gets. R. On 13 Mar 2007 07:17:12 -07

Re: [flexcoders] can i remove the selectionColor of a tilelist?

2007-03-12 Thread Roman Protsiuk
Every ListBase-derived component has selectable property. But the best advise is to read live docs. It's easy. ;) R. On 12 Mar 2007 06:10:04 -0700, garylee0709 <[EMAIL PROTECTED]> wrote: i use a tilelist which possessed a itemRender,but i really don't want it to show a BackgroundColor when u

Re: [flexcoders] how to create reference variable to mxml objects?

2007-03-12 Thread Roman Protsiuk
ref = "pic" + i; Image(getChildByName(ref)).x = 100; R. On 3/12/07, dougco2000 <[EMAIL PROTECTED]> wrote: Perhaps a silly question, but how do you create a reference in AS to point to an object, i.e. an Image? For example, if you have in the mxml: And I want to be able to do something

Re: [flexcoders] Mouse events in non-drawn areas?

2007-03-07 Thread Roman Protsiuk
You can pass along this events to your component from the application itself. E.g. // in application: private function onMouseClick(event : MouseEvent) : void { yourComponent.onMouseClick(event); } R. On 1/2/07, Reid Priedhorsky <[EMAIL PROTECTED]> wrote: Hi folks, I have a component whi

Re: [flexcoders] Reposition label inside button component

2007-03-07 Thread Roman Protsiuk
Haven't tried anything like this myself but afaik my colleagues play around with UITextField inside of a Button to get rid of some "unpleasant" behavior. Better late than never? ;) R. On 1/24/07, evert_dennis <[EMAIL PROTECTED]> wrote: I'm trying to create an Actionscript class that extends

Re: [flexcoders] URL Link in Flex Application

2007-02-26 Thread Roman Protsiuk
Try navigateToURL method. R. On 2/24/07, Lisa Lee <[EMAIL PROTECTED]> wrote: Can you tell me how to be able to have a user click on a link (button, whatever) from within a Flex application and have it take the user to a non-Flex, regular web page within their browser? It's probably a simple

Re: [flexcoders] does double click also fire a mouse down event?

2007-02-22 Thread Roman Protsiuk
Hm. What exactly do you need? Not to handle mouseDown? R. On 2/22/07, Paul Hastings <[EMAIL PROTECTED]> wrote: thanks for the reply. On 2/22/07, Roman Protsiuk <[EMAIL PROTECTED]> wrote: >immediately follow the following series of events: mouseDown, mouseUp, click, >mouse

Re: [flexcoders] does double click also fire a mouse down event?

2007-02-22 Thread Roman Protsiuk
:) http://livedocs.adobe.com/flex/2/langref/flash/display/InteractiveObject.html#event:doubleClick doubleClickeventEvent object type: flash.events.MouseEvent MouseEvent.type property = flash.events.MouseEvent.DOUBLE_CLICK<

Re: [flexcoders] Re:width=100% as maximum, not minimum?

2007-02-21 Thread Roman Protsiuk
Try R. On 2/21/07, Robi Ray <[EMAIL PROTECTED]> wrote: Reid, As far as my knowledge goes, you can achieve truncation only if you specify fixed width values in pixels when using labels. Percentage values always get overridden when the text is too long. Another suggestion after looking at y

Re: [flexcoders] Disable RollOverColor within TileList

2007-02-21 Thread Roman Protsiuk
times. ;) On 2/21/07, Roman Protsiuk <[EMAIL PROTECTED]> wrote: useRollOver="false" R. On 2/4/07, pioplacz <[EMAIL PROTECTED]> wrote: > > I have a question is it possible to disable the rollover color when u > move the mouse over > some item within Til

Re: [flexcoders] Binding to a dataprovider in ActionScript

2007-02-21 Thread Roman Protsiuk
Tried BindingUtils class? R. On 2/21/07, hartws1 <[EMAIL PROTECTED]> wrote: I'm aware that the syntax in mxml is: dataprovider = "{ myArray }" What is (or is there) an equivalent way to perform the same function in actionscript? Thanks in advance for any insight.

Re: [flexcoders] Disable RollOverColor within TileList

2007-02-21 Thread Roman Protsiuk
useRollOver="false" R. On 2/4/07, pioplacz <[EMAIL PROTECTED]> wrote: I have a question is it possible to disable the rollover color when u move the mouse over some item within TileList. What i mean is that color "box" that shows behind the item. Or is it possible to customise it?

Re: [flexcoders] Object property

2007-02-20 Thread Roman Protsiuk
obj[property_name] R. On 2/20/07, Mikhail Shevchuk <[EMAIL PROTECTED]> wrote: Hello, group. I got an object with several properties. I can access these properties just by using "obj.property_name". How can I access the given property if it is passed to the function as a string? How to imple

Re: [flexcoders] Quick Question

2007-02-20 Thread Roman Protsiuk
As far as I remember someone once told me... :) When you write: or the event handler (function) is generated dynamically. So writing means that some method will be generated by compiler and it will call myFunction(). If you don't use braces myFunction used for handling event and no additional

Re: [flexcoders] mouseOver an element within a TileList problem

2007-02-10 Thread Roman Protsiuk
I don't really see problem in this. You just have to add event handler to handle "itemRollOver" event of your TileList. That's all. Handler may look like: protected function onItemRollOver(event : ListEvent) : void { someLabelUnderTheList.text = event.itemRenderer.data.name; } Or something li

Re: [flexcoders] Opening GIF in Safari (offtopic?)

2007-02-09 Thread Roman Protsiuk
Thanks, I'll check that out. R. On 2/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Its probably the mime type (or content type) of the server that serves up the gif... > Hi, everyone. > > Dunno maybe it's offtopic. However, the question is: > if I try opening GIF image in a Safari bro

[flexcoders] Opening GIF in Safari (offtopic?)

2007-02-09 Thread Roman Protsiuk
Hi, everyone. Dunno maybe it's offtopic. However, the question is: if I try opening GIF image in a Safari browser via ExternalInterface, e.g. ExternalInterface.call("window.open", "/content/some.gif", "_blank"); I get it saved instead of showed. Browser just saves image and that's all. I'm not ke

Re: [flexcoders] enabled="{Boolean(myDataProvider.length)}"

2007-02-07 Thread Roman Protsiuk
Well, technically Boolean(-1) == true. Though, it's probably not your case but... R. On 2/6/07, Ralf Bokelberg <[EMAIL PROTECTED]> wrote: I would prefer the following: *enabled="{ myDataProvider.length > 0}" * It's shorter and communicates the intention better imho Cheers, Ralf. On 2/6/07,

Re: [flexcoders] Re: TitleWindow missing all focus events??

2007-02-03 Thread Roman Protsiuk
TitleWindow doesn't get FOCUS events dispatched to? Thanks again for your great help! Tim --- In flexcoders@yahoogroups.com , "Roman Protsiuk" <[EMAIL PROTECTED]> wrote: > > Overloading focusOutHandler/focusInHandler helps. You'll be able to handle > FocusEv

Re: [flexcoders] TitleWindow missing all focus events??

2007-02-02 Thread Roman Protsiuk
Overloading focusOutHandler/focusInHandler helps. You'll be able to handle FocusEvents there. Like in protected override function focusOutHandler(event : FocusEvent) : void { if (event.relatedObject == null || !contains(event.relatedObject)) { // event came from "outside" not from one

Re: [flexcoders] pop ups again

2007-02-02 Thread Roman Protsiuk
e visible property in turn triggered the SHOW event, then we'd get caught in an endless loop of PopUpManager calling showModalWindow() over and over again. So this isn't a solution, but hopefully it helps to understand what's going on. Doug Roman Protsiuk wrote: I gues

Re: [flexcoders] pop ups again

2007-02-01 Thread Roman Protsiuk
On 2/1/07, Roman Protsiuk <[EMAIL PROTECTED]> wrote: > Hi, everyone. > > I've modified my previous example (if anyone saw it). Now I'm using > following approach to handle pop ups: > > The pop up itself PopUpWindow.mxml: > > > http:/

[flexcoders] pop ups again

2007-02-01 Thread Roman Protsiuk
Hi, everyone. I've modified my previous example (if anyone saw it). Now I'm using following approach to handle pop ups: The pop up itself PopUpWindow.mxml: http://www.adobe.com/2006/mxml"; layout="vertical" horizontalAlign="center" width="400" height="300"

[flexcoders] SOLVED: IFocusManagerComponent and removePopUp

2007-02-01 Thread Roman Protsiuk
only thing missing in hidePopUp is test for isPopUp. The final code for hidePopUp is following: public function hidePopUp() : void { if (isPopUp) { PopUpManager.removePopUp(this); } } That's all. R. On 1/18/07, Roman Protsiuk <[EMAIL PROTECTED]> wrote: > Yeah, an

Re: [flexcoders] DATAGRID clic on cell

2007-02-01 Thread Roman Protsiuk
editable="false" on DataGrid or on DataGridColumn if it's the single column you don't want to edit. R. On 2/1/07, wifi19 <[EMAIL PROTECTED]> wrote: hie how can i do to get cell clic on a datagrid without edit this cell thank!

Re: [flexcoders] PopUpManager.removePopUp() not actually removing pop ups

2007-01-20 Thread Roman Protsiuk
Hi. PopUpManager.removePopUp(someWindow) really doesn't destroy someWindow. If you create someWindow in some function it should be destroyed by garbage collector. Otherwise... well sometimes I simply use one object for every pop-up of special type, e.g. private static var _popUp : IFlexDisplayOb

Re: [flexcoders] Why must default arguments be primitives?

2007-01-20 Thread Roman Protsiuk
I guess the keyword here is "not a compile-time constant". You can use 'null' but not 'new Array()' because it is calculated in run-time. Please, correct me if I'm wrong. R. On 1/19/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote: I just noticed that you cannot set default values for argument

Re: [flexcoders] Is this a bug about FocusEvents and popupmanager?

2007-01-19 Thread Roman Protsiuk
li <[EMAIL PROTECTED]> wrote: Thanks for your reply, I am using firefox. I searched for posts before sendind a new post but could not find a relevant post. On 1/18/07, Roman Protsiuk <[EMAIL PROTECTED]> wrote: > > It is more likely Firefox bug. Are you using this browse

Re: [flexcoders] IFocusManagerComponent and removePopUp

2007-01-18 Thread Roman Protsiuk
Yeah, and this bug appeared just recently. Is it related with Flash Player 9.0.28 changes or with FlexBuilder 2.0.1 hard to tell. Everything worked as it is without crashes before. R. On 1/18/07, Roman Protsiuk <[EMAIL PROTECTED]> wrote: > Hi, everyone. > > As I understand in or

[flexcoders] IFocusManagerComponent and removePopUp

2007-01-18 Thread Roman Protsiuk
Hi, everyone. As I understand in order to properly handle focusOut event for my component it should implement IFocusManagerComponent. The component I develop is a pop-up window. Then strange and very unpleasant bug appear. After I set focus to one of my components child and after I click a button

Re: [flexcoders] Is this a bug about FocusEvents and popupmanager?

2007-01-18 Thread Roman Protsiuk
It is more likely Firefox bug. Are you using this browser? Because the described behavior is reproducible in Firefox but not in IE. Try to search older posts in list seems to me that I saw this problem being discussed here. R. On 1/17/07, eren bali <[EMAIL PROTECTED]> wrote: Hi to all, I ha

Re: [flexcoders] It shouldn't be this hard.

2007-01-18 Thread Roman Protsiuk
The first thought is: To scale, dunno, but maybe something like: This one probably won't work, it's very dirty, however might give you a clue... ;) And the easiest way to scale, but still, not so nice from the point of ui (it scales both way) is just: Have fun, R. On 1/18/07,

Re: [flexcoders] Re: Code behind- do you use it?

2007-01-18 Thread Roman Protsiuk
Hi, everybody. Interesting thing that just recently we had discussion at our team about code-behind and why should we use it or use not. The point we are at the moment is: we've used code-behind more like legacy related thing from Flex 1.5 (FlexBuilder) and now we've got a lot of classes which sim

Re: [flexcoders] Filter An ArrayCollection By Multiple ArrayCollections (selectedItems)

2007-01-17 Thread Roman Protsiuk
Hard to understand what exactly do you need. However if I understood correctly maybe this http://tech.groups.yahoo.com/group/flexcoders/message/60145 thread will help you. R. On 1/13/07, m_ollman < [EMAIL PROTECTED]> wrote: I'm trying to think of the best way to approach this. I have 3 main

Re: [flexcoders] Capturing an event everytime an item becomes visibile in a viewstate

2007-01-12 Thread Roman Protsiuk
n after the transition finishes. Any thoughts on how to do that? On 1/11/07, Roman Protsiuk <[EMAIL PROTECTED]> wrote: > > enterState? > > R. > > On 1/11/07, Sam Shrefler < [EMAIL PROTECTED]> wrote: > > > > I have a canvas that is part of a view stat

Re: [flexcoders] Capturing an event everytime an item becomes visibile in a viewstate

2007-01-11 Thread Roman Protsiuk
enterState? R. On 1/11/07, Sam Shrefler <[EMAIL PROTECTED]> wrote: I have a canvas that is part of a view state. I'd like to know how to call a method on that canvas everytime that canvas is made visible because the view state it's contained in is made visible. Also, I'd only like this to

  1   2   >