[flexcoders] Copying View of an ArrayCollection

2008-04-11 Thread m.ar80
How can view be copied from one array collection to another where both array collections share the same source? Apparently the only way to achieve this to call refresh on the destination array collection (with the same filter function and sort applied as that of the source array collection). But

[flexcoders] Re: Copying View of an ArrayCollection

2008-04-11 Thread m.ar80
--- In flexcoders@yahoogroups.com, Dominic Pazula [EMAIL PROTECTED] wrote: Are you looking for the two ArrayCollections to always have the same filter and sort, or only occasionally? Hi Dominic. Thank you for your response. The two array collections will share the same source but not

[flexcoders] How to efficiently copy a filtered and sorted ArrayCollection?

2008-03-04 Thread m.ar80
I have to make copy of a filtered and sorted array collection. Iterating over the source array of the first collection and then adding each item iterated to the second collection is not an efficient way of doing it because each item added is re-filtered and re-sorted in the new collection even

[flexcoders] Re: private constructor in action script

2008-02-06 Thread m.ar80
As of now, it is not possible to declare a constructor private (other than public) in ActionScript 3.0. However, as pointed out, it is possible to achieve the required behavior by using a dummy private class defined outside the package so that no one has access to it outside the file. Passing a

[flexcoders] Re: Ho to check an item has focus or how to find the currently focused item

2007-12-12 Thread m.ar80
If your UIComponent implements IFocusManagerComponent interface, you can call FocusManager.getFocus() to get the component that currently has focus. Otherwise, you can get the currently focused interactive object from Stage.focus. For details look into the documentation on FocusManager.

[flexcoders] Re: Focus Question

2007-11-28 Thread m.ar80
Look into implementation of TextInput.focusInHandler() and override it to set focusManager.showFocusIndicator to false

[flexcoders] Extending ScrollControlBase to implement scrolling for a custom component

2007-11-06 Thread m.ar80
What ScrollControlBase methods should be overridden to implement scrolling for a custom component? For example, if I have a custom component that has fixed dimensions of 500x500 and a variable viewable area of let's say 200x200, which properties would need to be set? Also, is extending