[flexcoders] flex2: context out of Function

2006-07-21 Thread Roman Protsiuk
Hi, everyone. Is it possible in Flex 2 to get context for some method described by Function object? I need to call another method out of that context (another method of that object). public class TestClassThatCalls extends TestClass { private var _context : someClass; public function

[flexcoders] flex2: context out of Function

2006-07-21 Thread Roman Protsiuk
Hi, everyone. Is it possible in Flex 2 to get context for some method described by Function object? I need to call another method out of that context (another method of that object). public class TestClassThatCalls extends TestClass { private var _context : someClass; public function

[flexcoders] filter operator

2006-08-04 Thread Roman Protsiuk
Hi, everyone. Can anybody tell me whatta heck is Filter operator? Thanx in advance, Roma. -- 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

Re: [flexcoders] filter operator

2006-08-04 Thread Roman Protsiuk
@yahoogroups.com] On Behalf Of Roman Protsiuk Sent: Friday, August 04, 2006 3:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] filter operator Hi, everyone. Can anybody tell me whatta heck is Filter operator? Thanx in advance, Roma

Re: [flexcoders] Re: filter operator

2006-08-05 Thread Roman Protsiuk
Doh! Right -- e4x. Thanx a lot! 'Cause I've already been thinking of ghosts... ;-)Roma.On 8/5/06, Tim Hoff [EMAIL PROTECTED] wrote: Also, not to be confused with a filter function (Collections). :-) -TH --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL

[flexcoders] DateField and formatString

2006-11-23 Thread Roman Protsiuk
Hi, all. Strange behavior of DateField occurs after changing default value of formatString (e.g. formatString=MM/ or formatString=). After doing so, selectedDate property of DateField resets to null every time DateField loses focus. For example: ?xml version=1.0 encoding=utf-8?

[flexcoders] handling focusOut for TitleWindow

2006-11-30 Thread Roman Protsiuk
Hi. Is it possible to handle focusOut event for TitleWindow at all? Any suggestions. R.

Re: [flexcoders] not draggable TitleWindow

2006-11-30 Thread Roman Protsiuk
Almost forgotten, TitleWindow is a pop up. :) I need it to be immovable. R. On 11/30/06, Roman Protsiuk [EMAIL PROTECTED] wrote: Hi, everyone. I guess there is some way to make TitleWindow not draggable, isn't there? Tried titleBar.mouseEnabled = false; that didn't help. Any ideas

[flexcoders] not draggable TitleWindow

2006-11-30 Thread Roman Protsiuk
Hi, everyone. I guess there is some way to make TitleWindow not draggable, isn't there? Tried titleBar.mouseEnabled = false; that didn't help. Any ideas? Thanks, R.

Re: [flexcoders] not draggable TitleWindow

2006-11-30 Thread Roman Protsiuk
); } } ]] /mx:Script /mx:TitleWindow Other than the above for a custom mxml component, this is about the best you can get becasue the titleBar property is protected. Peace, Mike On 11/30/06, Roman Protsiuk [EMAIL PROTECTED] wrote: Hi, everyone. I guess there is some way to make TitleWindow

Re: [flexcoders] not draggable TitleWindow

2006-11-30 Thread Roman Protsiuk
@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Roman Protsiuk *Sent:* Thursday, November 30, 2006 5:15 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] not draggable TitleWindow Hi, everyone. I guess there is some way to make TitleWindow not draggable, isn't there? Tried

Re: [flexcoders] not draggable TitleWindow

2006-11-30 Thread Roman Protsiuk
on. Dustin Mercer -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Roman Protsiuk *Sent:* Thursday, November 30, 2006 1:13 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] not draggable TitleWindow Hi, Tracy. Maybe

[flexcoders] strange CheckBox behavior (as an item renderer in pop up)

2006-12-03 Thread Roman Protsiuk
Hi, all. I've got some item renderers based on CheckBox. These item renderers apper in a List wich is a pop up. Funny thing is when i select some check box, hide pop up, show it again and then reset that check box to a selected = false; it looks like something between checked/unchecked. Grayed

Re: [flexcoders] strange CheckBox behavior (as an item renderer in pop up)

2006-12-03 Thread Roman Protsiuk
In attached image you can see how CheckBox'es look like after setting selected to false. R. CheckBox_gray_weird.PNG Description: PNG image

Re: [flexcoders] Registering for events from an item renderer

2006-12-03 Thread Roman Protsiuk
Hi, Lach. Bubbling event. Is this what you are looking for? Less code and your list can handle item renderers events. R. On 12/4/06, Lachlan Cotter [EMAIL PROTECTED] wrote: Is there a better way? *The situation:* I have a list view displaying a collection of objects with item renderers.

Re: [flexcoders] Re: strange CheckBox behavior (as an item renderer in pop up)

2006-12-04 Thread Roman Protsiuk
, clickMe); } regrds bod --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Roman Protsiuk [EMAIL PROTECTED] wrote: Hi, all. I've got some item renderers based on CheckBox. These item renderers apper in a List wich is a pop up. Funny thing is when i select some check box, hide

Re: [flexcoders] TitleWindow Component...help!

2006-12-05 Thread Roman Protsiuk
Hi. Why don't your pop up dispatch some event (e.g. submitData) and you listen to it? R. On 12/5/06, qnotemedia [EMAIL PROTECTED] wrote: OK - so I'm using the generic TileWindow example found on the Component Explorer. It basically shows you how to build something where: 1) User clicks a

[flexcoders] RadioButtons in DataGrid

2006-12-05 Thread Roman Protsiuk
Hi. I'm trying to use RadioButtons in DataGrid to select some row. One of data entries that populate DataGrid is already selected. Say we've got dataProvider of entries {someData : Object, selected : Boolean}. One of entries has selected == true others are false. The DataGrid itself is in

Re: [flexcoders] RadioButtons in DataGrid

2006-12-06 Thread Roman Protsiuk
Hi, everyone. I'm really tired of DataGrid. Why does ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical horizontalAlign=left mx:RadioButton id=one label=one / mx:RadioButton id=two label=two /

Re: [flexcoders] Items in a list

2006-12-07 Thread Roman Protsiuk
Hi, Simon. Probably it's up to you to save selectedIndex separately and then use it as previousSelectedIndex. And in your event handler simply previousSelectedIndex = event.rowIndex; (or something like that). R. On 12/7/06, Simon Janssens [EMAIL PROTECTED] wrote: Howdy, If I am using a

Re: [flexcoders] RadioButtons in DataGrid

2006-12-11 Thread Roman Protsiuk
; ]] /mx:Script /mx:Canvas However, in this case I have to emulate RadioButtonGroup behavior manually because RadioButtons are independent. R. On 12/6/06, Roman Protsiuk [EMAIL PROTECTED] wrote: Hi, everyone. I'm really tired of DataGrid. Why does ?xml version=1.0

Re: [flexcoders] useHandCursor

2006-12-14 Thread Roman Protsiuk
Hi. As far as I know you don't really need to set useHandCursor=true -- it's the default value. However you do need to set buttonMode=true. And set mouseChildren=false for Labels and Texts. Then when you roll over your mouse pointer will be a hand. R. On 12/13/06, Dave Carabetta [EMAIL

[flexcoders] An item renderer and data setting/binding question

2006-12-16 Thread Roman Protsiuk
Hi. I am using item renderer for DataGrids column (for example) derived from DataGridItemRenderer. The data sent to item renderer has a boolean property named valid. If valid == true I want the label to be red otherwise black. The problem is when I'm using direct assignment textColor = 0xFF;

Re: [flexcoders] Re: An item renderer and data setting/binding question

2006-12-18 Thread Roman Protsiuk
__ *Tim Hoff *Cynergy Systems, Inc. http://www.cynergysystems.com http://www.cynergysystems.comoffice/ Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, Roman Protsiuk [EMAIL PROTECTED] wrote: Hi. I am using item renderer for DataGrids column (for example

Re: [flexcoders] Re: An item renderer and data setting/binding question

2006-12-18 Thread Roman Protsiuk
/showFileDetails.cfm?ObjectID=443Object=FileChannelID=1 Cheers, -TH --- In flexcoders@yahoogroups.com, Roman Protsiuk [EMAIL PROTECTED] wrote: Hi, Tim. Thanks for the advise. Though, it didn't help. Even calling super.invalidateDisplayList() I get no color change. R. On 12/16/06, Tim Hoff [EMAIL

Re: [flexcoders] Re: An item renderer and data setting/binding question

2006-12-18 Thread Roman Protsiuk
://www.cflex.net/showFileDetails.cfm?ObjectID=443Object=FileChannelID=1 Cheers, -TH --- In flexcoders@yahoogroups.com, Roman Protsiuk [EMAIL PROTECTED] wrote: Hi, Tim. Thanks for the advise. Though, it didn't help. Even calling super.invalidateDisplayList() I get no color change. R. On 12/16/06, Tim

Re: [flexcoders] Content Change

2006-12-18 Thread Roman Protsiuk
Hi. If the object somehow based on an EventDispatcher then while listening to response from your remote call: [Bindable(event=someFieldChange)] pulbic function get someField() : Object { return _someField; } private function responseHandler(result : Object) : void { _someField = result;

Re: [flexcoders] Canvas Label?

2006-12-27 Thread Roman Protsiuk
This property is inherited from Container. Here's excerpt from documentation: The text displayed by some navigator containers to represent this Container. For example, if this Container is a child of a TabNavigator, this string appears in the corresponding tab. If this Container is a child of

Re: [flexcoders] Multiple dynamic filterFunction help

2007-01-04 Thread Roman Protsiuk
And if you really need several steps of filtration you can always design your own filters/wrappers with filters for Array or ArrayCollection. R. On 1/4/07, michrx7 [EMAIL PROTECTED] wrote: I have an arraycollection(myArray) and I need to filter it dynamically based on multiple criteria from

Re: [flexcoders] Multiple dynamic filterFunction help

2007-01-04 Thread Roman Protsiuk
Hi. Of course it does. Filter function can be only one at a time. However, you can gather all your criteria in one filter function. R. On 1/4/07, michrx7 [EMAIL PROTECTED] wrote: I have an arraycollection(myArray) and I need to filter it dynamically based on multiple criteria from user

Re: [flexcoders] TileBase (HorizontalList): when items are rendered?

2007-01-04 Thread Roman Protsiuk
the updateComplete event. Joan -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Roman Protsiuk *Sent:* Wednesday, September 13, 2006 1:41 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] TileBase (HorizontalList): when items are rendered

Re: [flexcoders] Re: Multiple dynamic filterFunction help

2007-01-04 Thread Roman Protsiuk
If you have filter function like: private function filterBySelectedIds(item : Object) : Boolean { if (selectedIds.contains(item.id)) { return true; } else { return false; } } And yourArrayCollectionToFilter.filterFunction = filterBySelectedIds; When user selects some IDs

Re: [flexcoders] New to Flex - dynamic text in mx:Label?

2007-01-11 Thread Roman Protsiuk
Hi, Alex. Tried your example. It works. %) However, maybe what you need is something like this: [Bindable] protected function get someText() : String { return _someText; } protected function set someText(value : String) : void { _someText = statusToImage(value); }

Re: [flexcoders] Uploading flex applictions to the web

2007-01-11 Thread Roman Protsiuk
Hi. Debug flash player gives me (8 times, different filenames): SecurityError: Error #2148: SWF file http://www.ctrlzsc.com/other/bin/theCartoonExpress.swf cannot access local resource file:///C|/Documents and Settings/Xyii/My Documents/Andre Adams/graphix/dog_home_hero.jpg. Only

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

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

2007-01-12 Thread Roman Protsiuk
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 state. I'd like to know how to call a method on that canvas everytime

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

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

2007-01-18 Thread Roman Protsiuk
The first thought is: mx:Canvas width=100% height=100% mx:Image source={yourSource} horizontalCenter=0 verticalCenter=0 / /mx:Canvas To scale, dunno, but maybe something like: mx:Canvas id=imageContainer width=100% height=100% mx:Image id=image source={yourSource}

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

[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] 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 order to properly handle

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

2007-01-19 Thread Roman Protsiuk
] 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 browser? Because the described behavior is reproducible

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 arguments

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 :

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!

[flexcoders] SOLVED: IFocusManagerComponent and removePopUp

2007-02-01 Thread Roman Protsiuk
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, and this bug appeared just

[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: ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical

Re: [flexcoders] pop ups again

2007-02-01 Thread Roman Protsiuk
, 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: ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml

Re: [flexcoders] pop ups again

2007-02-02 Thread Roman Protsiuk
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 guess the reason is in following line

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] Re: TitleWindow missing all focus events??

2007-02-03 Thread Roman Protsiuk
doesn't get FOCUS events dispatched to? Thanks again for your great help! Tim --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Roman Protsiuk [EMAIL PROTECTED] wrote: Overloading focusOutHandler/focusInHandler helps. You'll be able to handle FocusEvents there. Like in protected

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,

[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 keen on

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 browser

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

Re: [flexcoders] Quick Question

2007-02-20 Thread Roman Protsiuk
As far as I remember someone once told me... :) When you write: mx:Button x=23 y=242 label=Button click={myFunction()} / or mx:Button x=23 y=242 label=Button click={foo = bar;} / the event handler (function) is generated dynamically. So writing mx:Button x=23 y=242 label=Button

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

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] 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
/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 TileList. What i mean is that color box that shows behind the item

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

2007-02-21 Thread Roman Protsiuk
Try mx:GridItem width=100% mx:Label id=route_from width=100% minWidth=0 / /mx:GridItem 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

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.MouseEventhttp://livedocs.adobe.com/flex/2/langref/flash/events/MouseEvent.html MouseEvent.type property =

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]roman.protsiuk%40gmail.com wrote: immediately follow the following series of events: mouseDown, mouseUp, click

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

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,

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

[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] TextArea.text confusion

2007-03-16 Thread Roman Protsiuk
:* 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:* Thursday, March 15, 2007

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

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

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

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

Re: [flexcoders] Personalized Popup

2007-03-28 Thread Roman Protsiuk
Far from good, very straightforward, but hopefully working. :) ImagePopUp: ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; mx:Image id=image / /mx:Canvas Event handler for your TileList: mx:TileList ... itemClick=onItemClick(event) ... mx:Script ![CDATA[

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

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

Re: [flexcoders] onChange()

2007-03-29 Thread Roman Protsiuk
case scenario is I'll just populate the fields with the correct data rather 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

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\username\Application Data\Macromedia\Flash

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.http://livedocs.adobe.com/flex/2/docs/1721.html#210754 R.

Re: [flexcoders] onChange()

2007-03-30 Thread Roman Protsiuk
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 mx:TextInput change=CostCalc() creationComplete=CostCalc

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

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 can

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

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.

Re: [flexcoders] Open new browser popup

2007-04-23 Thread Roman Protsiuk
Thishttp://skovalyov.blogspot.com/2007/01/how-to-prevent-pop-up-blocking-in.htmlmight 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] 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] 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] 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 a

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

2007-04-26 Thread Roman Protsiuk
, 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 page? I have a custom component that contains text

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

[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] ... include-file namesome_styles.css/name

[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. attachment: alphabet.png

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 compiler external-library-path path-elementC:/Program Files/Adobe/Flex Builder 2 Plug-in/Flex SDK

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] Unable to resolve a class for ResourceBundle

2007-05-24 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 ResourceBundleNameWithoutDotPropertiesExtension ...) R. On 5/22/07, Praveen Saxena [EMAIL PROTECTED] wrote: Hi, I am getting

  1   2   >