RES: [flexcoders] Custom event--please help me

2008-12-15 Thread Luciano Manerich Junior
Because the events are dispatched in the MainApp. Your BasePanel dont receive the event. Application + MainApp + BasePanel The event is dispatched on the MainApp layer, so, even using bubbles you wont get

[flexcoders] Catch Undefined state Error (ArgumentError)

2008-12-10 Thread Luciano Manerich Junior
Hi all, imagine the following scenario (isnt my case, but works): User input a string and press a button. Apps change the current state to the that string. That state doesnt exists :( So, checking the UIComponent.as, the ArgumentError its throw on the getState, not on setState. This method

RES: [flexcoders] Date format in DataGrid?

2008-12-10 Thread Luciano Manerich Junior
Using a labelFunction. It will receive the data in current line and the column, and must return a String. mx:DataGridColumn labelFunction=dateLabelFunction/ private function dateLabelFunction(obj:User, column:DataGridColumn):String { return obj.date.getYear + -; //... } -Mensagem

RES: [flexcoders] vertical scrollbar problems...Please help i am freaking out :-)

2008-12-09 Thread Luciano Manerich Junior
Got that same issue few days ago.. Ive just swap the Panels, putting the higher first... Not that good solution, but, it has no problems for me. What you could try is, add canvas as child of the viewStack and panels as child of the canvas, resulting in a vertical scroll inside the canvas, not

RES: [flexcoders] Flex Builder caching PNGs

2008-12-09 Thread Luciano Manerich Junior
Clean Build Project? De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de tom s Enviada em: terça-feira, 9 de dezembro de 2008 11:27 Para: flexcoders@yahoogroups.com Assunto: [flexcoders] Flex Builder caching PNGs I'm @Embedding some PNGs to

RES: [flexcoders] Flex : Execution of Alert.show() starts for the last one

2008-12-05 Thread Luciano Manerich Junior
Hi, that is the normal behavior. Every message gets the MAX(z-index) + 1. When you add the first message, you'll have just the application App Layer | 1st Message When it comes the 2nd message, that will be above last added message App Layer | 1st Message | 2nd Message And so it is on 3rd

RES: [flexcoders] Flex : Execution of Alert.show() starts for the last one

2008-12-05 Thread Luciano Manerich Junior
just for reference: http://en.wikipedia.org/wiki/LIFO -Mensagem original- De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Gaurav J Enviada em: sexta-feira, 5 de dezembro de 2008 08:37 Para: flexcoders@yahoogroups.com Assunto: [flexcoders] Flex : Execution of

RES: [flexcoders] Re: Game Architecture

2008-12-02 Thread Luciano Manerich Junior
Hi! In case of Remote Objects, thats correct, you'll need to query the server time to time to get the result of a turn. About the security of the RO's, its a open connection to your database for everyone, i.e, you have a method increaseXP(player, amount), if you dont apply the certain

RES: [flexcoders] How to get an object to delete itself?

2008-11-28 Thread Luciano Manerich Junior
Setting the timer to null it wont remove their listeners, before that you need to remove it. lifeTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, onLifeTimer); lifeTimer = null; And you must remove every single listener to successfull get GC'ed De:

RES: [flexcoders] Flash equivalent for hasChild() / ownsChild()

2008-11-19 Thread Luciano Manerich Junior
Hi! You could try obj.contains(childElement) ; -Mensagem original- De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Hyder Enviada em: quarta-feira, 19 de novembro de 2008 14:45 Para: flexcoders@yahoogroups.com Assunto: [flexcoders] Flash equivalent for hasChild() /

RES: [flexcoders] Temporarily block tabbing into a Container

2008-10-21 Thread Luciano Manerich Junior
You may use the event keyFocusChange and prevent it: this.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler); protected function keyFocusChangeHandler(event:FocusEvent):void { event.preventDefault(); } -Mensagem original- De: flexcoders@yahoogroups.com

RES: [flexcoders] Refresh datagrid

2008-10-21 Thread Luciano Manerich Junior
You need to refresh the dataProvider (needs to be bindable). datagrid.dataProvider.refresh(); -Mensagem original- De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de oneworld95 Enviada em: terça-feira, 21 de outubro de 2008 13:43 Para: flexcoders@yahoogroups.com

RES: [flexcoders] LCDS - how can I improve the createItem function?

2008-09-26 Thread Luciano Manerich Junior
Hi, what about autoCommit = false, so, you commit everything once its finished. -Mensagem original- De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de kcCedrics Enviada em: sexta-feira, 26 de setembro de 2008 09:29 Para: flexcoders@yahoogroups.com Assunto: [flexcoders]

RES: [flexcoders] DateFormatter Bug?

2008-09-22 Thread Luciano Manerich Junior
Hi, i've found that, if you set a decimalSeparator for the DateFormatter, you MUST define a thousandSeparator too, else, you'll get an empty string. Maybe, is that our bug? Is that you case? Hope thats usefull. -Mensagem original- De: flexcoders@yahoogroups.com [mailto:[EMAIL

RES: [flexcoders] Server to client calls

2008-06-26 Thread Luciano Manerich Junior
@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Luciano Manerich Junior Sent: Monday, June 23, 2008 12:16 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RES: [flexcoders] Server to client calls Hi, i've just seen the way with Producer/Consumer, but, its just

RES: [flexcoders] Getting referer url

2008-06-23 Thread Luciano Manerich Junior
Hi, you can do that with application.url: import mx.core.Application; Application.application.url De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de luis_roman_am Enviada em: segunda-feira, 23 de junho de 2008 05:20 Para:

[flexcoders] Server to client calls

2008-06-23 Thread Luciano Manerich Junior
Hi there, It is possible with LCDS, BlazeDS or some similar DS to call flex client methods from the server? If not, this is only possible with FMS? Thanks in advance.

RES: [flexcoders] callLater() question about next screen refresh

2008-06-23 Thread Luciano Manerich Junior
Hi, the next screen refresh will be the next frame that flash player renders it. If you work at 12fps (frames per second), the callLater method will be executed 83ms after the call. De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de wwwpl

RES: [flexcoders] Server to client calls

2008-06-23 Thread Luciano Manerich Junior
, and i may interact with that to call some methods. De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Luciano Manerich Junior Enviada em: segunda-feira, 23 de junho de 2008 15:32 Para: flexcoders@yahoogroups.com Assunto: [flexcoders] Server to client

RES: [flexcoders] Calling outside functions from SWF loaded by display.oader

2008-06-20 Thread Luciano Manerich Junior
Hi, why your module will need to call those outside functions? Is that a non other way option? If you really need that way, i'ld go for event dispatching and catching them on the parent. loader = new Loader(); loader.load(new URLRequest(some.swf));

[flexcoders] Auto: xxxxxx

2008-06-17 Thread Luciano Manerich Junior
Hi, someone can block this user? Probally just went into some vacation and set an auto-answer for received emails =( Thanks in advance

RES: [flexcoders] notification to a non-instanciate object

2008-06-09 Thread Luciano Manerich Junior
Hi, its because the default instanciation of the objects (auto). its only the tab that you have navegated into. You may add a creationPolicy property in the tabnavigator to work aroung this situation. mx:TabNavigator creationPolicy=all De:

RES: [flexcoders] how to call a function automatically?

2008-06-05 Thread Luciano Manerich Junior
Hi, the Timer Class: http://livedocs.adobe.com/flex/2/langref/flash/utils/Timer.html You'll get a lot of samples googling about flex timer De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de markflex2007 Enviada em: quinta-feira, 5 de junho

RES: [flexcoders] Pausing / Waiting During Execution

2008-06-02 Thread Luciano Manerich Junior
Hi, you may take a look at Timer class: http://livedocs.adobe.com/flex/2/langref/flash/utils/Timer.html De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de kenny14390 Enviada em: segunda-feira, 2 de junho de 2008 12:53 Para:

RES: [flexcoders] Using CSS with custom item renderers

2008-06-02 Thread Luciano Manerich Junior
Hi, you are setting the background Alpha to 0, how do you spec to see some bgcolor? De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Amy Enviada em: segunda-feira, 2 de junho de 2008 18:47 Para: flexcoders@yahoogroups.com Assunto:

RES: [flexcoders] Resizable TextArea

2008-05-21 Thread Luciano Manerich Junior
Hi, cant you just bind to that property? mx:TextArea id=elementEdit width=100% height={elementEdit.textHeight}/ De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Gordon Franke Enviada em: quinta-feira, 10 de abril de 2008 11:01 Para:

RES: [flexcoders] value object binding problem

2008-05-08 Thread Luciano Manerich Junior
You MUST import the classes used into the ArrayCollection. Or, you may use the ArrayElementType, for the auto-import at the compiler time. public class LookupData { [ArrayElementType(package.ClassA)] public var attributeA:ArrayCollection;

RES: RES: [flexcoders] value object binding problem

2008-05-08 Thread Luciano Manerich Junior
de 2008 17:03 Para: flexcoders@yahoogroups.com Assunto: Re: RES: [flexcoders] value object binding problem Luciano, Thanks it worked for ListClassX but not for MapString, ListClassB. How do we convert this map to AS3? Luciano Manerich Junior [EMAIL PROTECTED] wrote: You MUST import

RES: [flexcoders] Is this possible?

2008-05-06 Thread Luciano Manerich Junior
Hi, Flex will just call some remote method. You will have to develop some server (java, php, asp, ...) to do that for your flex app. There's a lot of samples over the internet. De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Phill B

RES: [flexcoders] Restricting mouseX, mouseY while dragging?

2008-04-22 Thread Luciano Manerich Junior
I would go for not dragging, and just handle the click event, adding an mouseMove handler to set the new X pos of the object. De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de djbrown_rotonews Enviada em: terça-feira, 22 de abril de 2008 12:25

RES: [flexcoders] Event.MOUSE_MOVE poor performer

2008-04-22 Thread Luciano Manerich Junior
Did you changed the Flex FPS rate? the default value it will give you that poor performance illusion. De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Randy Troppmann Enviada em: terça-feira, 22 de abril de 2008 12:49 Para:

RES: [flexcoders] Event.MOUSE_MOVE poor performer

2008-04-22 Thread Luciano Manerich Junior
... that is not what I am trying to do here. My latest need was to build a selection marquee so I need to manage the position of other sprites based on the one being dragged. So what is clobbering the MOUSE_MOVE event? - Randy On Tue, Apr 22, 2008 at 10:05 AM, Luciano Manerich Junior [EMAIL PROTECTED] mailto

RES: [flexcoders] Question on calling multiple Functions in sequence

2008-04-03 Thread Luciano Manerich Junior
Hi, if you just need to start and finish a function before the next one execute, i'll have no problems, thats the default behavior. private function doThisFunction():void { myFunctionOne(); // execute and wait for it returns myFunctionTwo(); // execute and wait for it returns

RES: [flexcoders] How to change the mouse scroll range of datagrid component?

2008-04-01 Thread Luciano Manerich Junior
Hi, you may override the method scrollVertically from the dataGrid. When you scroll the mouse, it dispatch an even with the delta, telling you how fast was the scroll. And calling the super.scrollVertically() with an fixed delta = 1. De:

RES: [flexcoders] TabContainer with modules - how to cancel Tab change

2008-04-01 Thread Luciano Manerich Junior
Hi, you can add an eventListener on the TabNavigator, listening for an IndexChangedEvent and do all your validations... And if you need to cancel the current change, you could try an evt.preventDefault(); private function changeIndex(evt:IndexChangedEvent):void { evt.preventDefault();

RES: RES: [flexcoders] TabContainer with modules - how to cancel Tab change

2008-04-01 Thread Luciano Manerich Junior
() doesn't stop the tab from changing. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Luciano Manerich Junior [EMAIL PROTECTED] wrote: Hi, you can add an eventListener on the TabNavigator, listening for an IndexChangedEvent and do all your validations... And if you need

[flexcoders] Using rowCount after setting height

2008-03-27 Thread Luciano Manerich Junior
Hi there, Ive got a screen with a full screen dataGrid, after the user select an item on this dataGrid, i need to split this screen. The fullscreen dataGrid needs only to have the enough height to show all the data... using the rowCount doesnt work, as the documentation says that might not

RES: [flexcoders] Using rowCount after setting height

2008-03-27 Thread Luciano Manerich Junior
Enviada em: quinta-feira, 27 de março de 2008 08:44 Para: flexcoders@yahoogroups.com Assunto: Re: [flexcoders] Using rowCount after setting height On Thursday 27 Mar 2008, Luciano Manerich Junior wrote: And using dGrid.height = dGrid.dataProvider.lenght * dGrid.rowHeight, it adds an extra empty line

RES: [flexcoders] Adobe AIR/ Flex with device such Fingerprint

2008-03-27 Thread Luciano Manerich Junior
Hi, the device probally will read that information for you, and give as an String, Number, or some other data type. I can confirm that from BarCodeReaders... That read the barcode, and give the code number. De: flexcoders@yahoogroups.com [mailto:[EMAIL

RES: [flexcoders] Resize very slow

2008-03-27 Thread Luciano Manerich Junior
Hi, cant you use bottom=0? mx:Image id=myImage bottom=0 / You will not have to do that Math thing... But i dont believe that will really speed up... De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de shivkxr Enviada em: quinta-feira, 27 de

RES: [flexcoders] Resize very slow

2008-03-27 Thread Luciano Manerich Junior
! That actually fixed the slow motion effect. So I have a solution to my current problem, but I wonder is something needs to be addressed in Flex? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Luciano Manerich Junior Sent: Thursday, March 27, 2008 3:33 PM To: flexcoders

RES: [flexcoders] Re: Rotate Button label without embedding fonts

2008-03-27 Thread Luciano Manerich Junior
If just set cacheAsBitmat = true, wouldnt work as o-value BlurFilter? De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de joan_lynn Enviada em: quinta-feira, 27 de março de 2008 17:51 Para: flexcoders@yahoogroups.com Assunto: [flexcoders] Re: