RE: [flexcoders] Help with Effect on Panel...

2006-04-26 Thread Jason Szeto
In Beta3, you can set the showEffect and hideEffect effect triggers on the children of the ViewStack. For Beta2 and earlier, you should be able to use the changeEffect trigger on the ViewStack. Jason -Original Message- From: [mailto:[EMAIL PROTECTED] On

RE: [flexcoders] NumberValidator dynamic binding problems

2006-05-02 Thread Jason Szeto
Unfortunately Validators in Flex 1.5 don't support binding in values like your example. Instead, you need to programmatically create a NumberValidator and update the maxValue property when maxVal changes. Then you'll need to call the validator's doValidation function yourself when you lose

RE: [flexcoders] shadow lighting

2006-07-12 Thread Jason Szeto
Hank, There are a few basic things you can do to style the drop shadows. Look at these styles: dropShadowColor=0x00dropShadowEnabled=falseshadowDirection=centershadowDistance=2Jason From: [] On Behalf

RE: [flexcoders] ToggleButtonBar: Styling Individual Button

2006-08-28 Thread Jason Szeto
Kenny, ButtonBar (ToggleButtonBars parent class) has three styles that control the first/last and all button styles: buttonStyleNamefirstButtonStyleNamelastButtonStyleName If you need more fine grained control than this, then youll have to iterate through each child of the

RE: [flexcoders] Re: ToggleButtonBar: Styling Individual Button

2006-08-29 Thread Jason Szeto
Kenny, You will need to cast the child to a Button. In the future, include the compiler error in your message. This will help the forum isolate your problem. HTH, Jason ?xml version=1.0 encoding=iso-8859-1 ? mx:Application xmlns:mx= mx:Script

RE: [flexcoders] Items Invisible in ComboBox

2006-08-29 Thread Jason Szeto
Steve, There is a bug in ComboBox when you include null or empty string items in your dataProvider. This results in every 5th item in the dropdown showing up as empty string. I believe the workaround is to replace your empty string items with a whitespace character (the space

RE: [flexcoders] Custom server validation

2006-08-29 Thread Jason Szeto
Mike, From a UI-perspective, I see two ways of doing this. One way is to perform client-side validation immediately after the control has lost focus (the default behavior of a validator) and then trigger server-side validation off of some event (ie. Pressing the submit button). For

RE: [flexcoders] Org Chart

2006-08-29 Thread Jason Szeto
Douglas, Put hideEffect and showEffect triggers on the ViewStack children. This will allow you to create some nice ViewStack effect transitions. Jason From: [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen Sent: Tuesday, July 18, 2006

RE: [flexcoders] Progress Bar Remote Objec

2005-04-26 Thread Jason Szeto
Jeff, The Remote Object has no information regarding how much data it has sent to the client. Instead, you'll need to use the progress bar in the indeterminate state (set the indeterminate property to true) or use a busy cursor (set the showBusyCursor property of RemoteObject to true).

RE: [flexcoders] Bounce effect-toggle effect

2005-04-27 Thread Jason Szeto
Nithya, All effect triggers, like mouseDownEffect are styles. You need to access them using getStyle and setStyle. Instead of basketPanel[mouseDownEffect] = basketMoveRight; Use basketPanel.setStyle(mouseDownEffect, basketMoveRight); Jason From:

RE: [flexcoders] Re: context-sensitive help

2005-04-28 Thread Jason Szeto
As a followup to my post, I realized I was running my test on Firefox, which does not display its own Context help when pressing F1. In IE, when you press F1, it pops up the context help. To get around this problem, you can use a bit of script in your html page. Create a wrapper for your mxml

RE: [flexcoders] can someone explain creationPolicy=queued

2005-06-28 Thread Jason Szeto
Clint, Can you post your mxml here? Setting the creationPolicy to queued on the Panels will create the panel container and queue up the creation of its children components. The thing that triggers the children to be created is the Applications creationComplete event. Once we

RE: [flexcoders] Re: Buttons in Flex !

2007-09-25 Thread Jason Szeto
The button itself doesn't use its own states to move between the up/over/down/disabled button states. Instead, you need to create a skin class that defines these states. I've coded up a very basic example that includes transitions. Enjoy, Jason

RE: [flexcoders] Loading Language

2006-09-07 Thread Jason Szeto
Yes, check out the mx.preloaders.DownloadProgressBar class. The Dev guide also has a very good chapter on this. Jason From: [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Sent: Thursday, September 07, 2006 1:55 PM To:

RE: [flexcoders] Re: Slider extension

2005-03-14 Thread Jason Szeto
Matt, We purposely limited the Slider to only support 2 thumbs. Can you describe the use case for supporting more than two thumbs? In any case, you can create a subclassof Slider that overrides the set thumbCount setter function. Ive included an example below. Note that when you

RE: [flexcoders] Use hand cursor

2005-03-14 Thread Jason Szeto
You can also use the ImageButton component that ships in the extras folder of Flex 1.5. Jason From: Tracy Spratt [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 20059:18 AM To: Subject: RE: [flexcoders] Use hand cursor I found this:

RE: [flexcoders] Waiting for a remote call during application ini tialization

2005-03-21 Thread Jason Szeto
Raghu, You can also use progressive layout to wait for data coming back from remote calls. There is an article on devnet that explains how to use this feature. Jason From: Jeroen De Vos [mailto:[EMAIL

RE: [flexcoders] RE: Mouse cursor change question

2005-02-15 Thread Jason Szeto
Ive answered this in a previous post, but here is the answer again: Chris, The useHandCursor property is a property of MovieClip and only works if there is a onRelease handler. You can look at the documentation here:

RE: [flexcoders] DateField

2005-02-16 Thread Jason Szeto
Jasper, The selectedDate property should give you what you want. Jason -Original Message- From: Jasper Blues [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 3:11 PM To: '' Subject: [flexcoders] DateField Hi Folks, I noticed a shortcoming in

RE: [flexcoders] Re: Refactored App, now: Initializing... THEN NO THING...

2005-01-31 Thread Jason Szeto
This is usually caused by a bug in the application (infinite loop, etc.). Try turning off the preloader (set usePreloader=false on the Application tag) and seeing what happens. Jason -Original Message- From: Chris Phillips [mailto:[EMAIL PROTECTED] Sent: Saturday, January 29, 2005 3:17

RE: [flexcoders] Advantages / Disadvantages of web-inf/flex/user_ classes directory

2005-03-22 Thread Jason Szeto
Title: Advantages / Disadvantages of web-inf/flex/user_classes directory Well, for one thing, putting them in user_classes makes them available to different applications on your server. If you put them in the application directory, then only that application can use those classes.

RE: [flexcoders] Custom Preloader Questions

2005-03-24 Thread Jason Szeto
James, If you don't want the loader to go away after the application's creationComplete event, override the creationComplete function in your application and have it do nothing. Then call preloadObj.pBar.removeMovieClip(); when you want to get rid of the preloader. Note that if you

RE: [flexcoders] Custom AS2 Effects

2005-03-31 Thread Jason Szeto
Mike, Add listener.onEffectEnd(this); to the end of your playEffect function. This will tell the Sequence effect that the effect is finished playing. The Sequence effect sets itself as the listener of each of its child effects. Jason -Original Message- From: Mike Shaw

RE: [flexcoders] Transition animations problem

2005-04-13 Thread Jason Szeto
Min, You might be running into some processing limitations of the Player. Check your CPU usage during these transitions. There are a couple of tricks you can use to optimize this. If the objects you are animating have child components, you can turn off the visibility of these children

RE: [flexcoders] Re: Rendering in background

2005-04-14 Thread Jason Szeto
This should help: -Original Message- From: Tracy Spratt [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 9:10 AM To: Subject: RE: [flexcoders] Re: Rendering in background I have not

RE: [flexcoders] Re: Radio Button Custom Component

2005-04-14 Thread Jason Szeto
Let me explain what is going on here and why it has been done this way. Let's say you've got a MXML Component called myChoice. It contains three RadioButtons, called rA, rB, rC. You assign each of these a groupName called myGroup. It also has a member variable called dataProvider. The way that

RE: [flexcoders] Re: Radio Button Custom Component

2005-04-14 Thread Jason Szeto
of dynamic data that is being used to generate in turn a dynamic interface. We'll just have to figure out a way to get the RadioButtons grouped in the same container. Thanks for the detailed explanation, -- Matthew On 4/14/05, Jason Szeto [EMAIL PROTECTED] wrote: Let me explain what is going

RE: [flexcoders] Flex 1.5 Components Blinking

2006-06-15 Thread Jason Szeto
Stanislav, You might want to check out this article on Progressive Layout: Good luck, Jason From: [] On Behalf Of Stanislav Zayarsky Sent: Wednesday,

RE: [flexcoders] Duplicating controls dynamically

2006-06-15 Thread Jason Szeto
Have you looked at the Repeater class? This will achieve what you want declaratively. Jason From: [] On Behalf Of Aasim Sent: Tuesday, June 13, 2006 2:23 AM To: Subject: [flexcoders]

RE: [flexcoders] Aligning formitem labels

2006-06-15 Thread Jason Szeto
FormItem labels are all right-aligned when they are inside of a Form container. Jason From: [] On Behalf Of Bas J. Brey Sent: Wednesday, June 14, 2006 7:42 AM To: Subject: [flexcoders]

RE: [flexcoders] Resizing Container's children in FLEX

2006-06-15 Thread Jason Szeto
Iuiliu, You need to provide more information. Write up an example mxml file, explain what is happening and then describe what you want to happen. Jason From: [] On Behalf Of iuliub Sent: Thursday, June 15,

RE: [flexcoders] Capturing ESCAPE key in IE

2006-06-15 Thread Jason Szeto
The Flash ActiveX Player doesnt receive ESCAPE key presses. Probably because IE doesnt pass this along to the Player. When you receive a keyDown event, you can find out of the ESCAPE key has been pressed. But this only works if the user presses ESC and another key at the same time.

RE: [flexcoders] Re: Flex2B3 - Resize effect problem

2006-06-19 Thread Jason Szeto
This bug has been fixed internally and will be in the Flex 2.0 release. Thanks for pointing it out to us. Jason From: [] On Behalf Of Tim Hoff Sent: Monday, June 19, 2006 7:35 AM To:

RE: [flexcoders] Re: Flex2B3: Problem with a custom component nested repeaters

2006-06-19 Thread Jason Szeto
Aejaz, What the error message is saying is that you have assigned two values to the TileLists dataProvider property. The first place is the mxml attribute: mx:TileList dataProvider={myQArr} . The message also explains that the TileLists default property is dataProvider. What this

RE: [flexcoders] Is there way to check the cursor type or cursor name of the CursorManager?

2006-06-19 Thread Jason Szeto
Dan, If you can describe the problem you are trying to solve, then I can suggest a solution. Jason From: [] On Behalf Of Michael Schmalle Sent: Friday, June 16, 2006 5:12 AM To:

RE: [flexcoders] How to capture/handle runtime errors?

2006-06-19 Thread Jason Szeto
This is probably too late for your demo. You can use the Release version of the player. It will silently ignore any RTE. Jason From: [] On Behalf Of Pat Buchanan Sent: Thursday, June 15, 2006 5:43 PM To:

RE: [flexcoders] Blank out password field in a datagrid cell

2006-06-19 Thread Jason Szeto
You need to create a TextInput with password for your itemEditor as well. Jason From: [] On Behalf Of jfournet Sent: Thursday, June 15, 2006 6:13 PM To: Subject: [flexcoders] Blank out

RE: [flexcoders] States within List

2006-06-21 Thread Jason Szeto
Sree, You can create an ItemRenderer based on any UIComponent and add your states into that. Then assign that ItemRenderer to your List. I have started working on an example. This is not complete because it doesnt handle selecting an item. But it should be a good starting point.

RE: [flexcoders] Transitions - How to apply movement to SetStyleAction(horizontalCenter proprety)

2006-06-22 Thread Jason Szeto
This is a bug in Flex 2b3. Youll have to wait for the release to get the fix. Jason From: [] On Behalf Of nelsoncostabatista Sent: Thursday, June 22, 2006 8:28 AM To: Subject:

RE: [flexcoders] preloader custmization

2006-06-22 Thread Jason Szeto
For Flex 1.5, download the Flex manual here: For Flex 2.0 download the Flex manual here: Look up the DownloadProgressBar in both. It describes how to

RE: [flexcoders] Changing Components Registration Point Flex 2.0

2006-06-26 Thread Jason Szeto
You can not change the registration point of a DisplayObject. The Rotate Effect allows you to specify registration points. We use some Euclidean math and we adjust the x/y positions to accomplish this. You can either use the Rotate effect or copy the logic from the source code. Jason

RE: [flexcoders] Custom Validator woes....

2006-06-27 Thread Jason Szeto
Suzy, The listener, source and trigger are all optional properties of Validators. You can just call the validate() function. Pass in the string you want to validate and it will return the ValidationResult. The validate() function is on the base class, Validator. Jason

RE: [flexcoders] Re: Custom Validator woes....

2006-06-28 Thread Jason Szeto
EmailValidator(); var valResult : ValidationResultEvent = emailVal.validate(emails[j]); if(valResult.type == ValidationResultEvent.INVALID) { toField.errorString=' + emails[j] + ' is not a valid e-mail address.; return; } } } --- In [EMAIL PROTECTED], Jason Szeto [EMAIL PROTECTED] wrote

RE: [flexcoders] Transitions - How to apply movement to SetStyleAction(horizontalCenter proprety)

2006-06-28 Thread Jason Szeto
307 746 . Fax (+351) 213 540 370 [EMAIL PROTECTED] From: [mailto:[EMAIL PROTECTED] On Behalf Of Jason Szeto Sent: quinta-feira, 22 de Junho de 2006 22:12 To: Subject: RE: [flexcoders] Transitions - How to apply movement

RE: [flexcoders] flash.desktop.DragManager documentation location

2007-11-26 Thread Jason Szeto
Ivo, flash.desktop.DragManager was renamed to flash.desktop.NativeDragManager to avoid conflict with the mx.managers.DragManager. Docs are here: ager.html Jason From:

RE: [flexcoders] error 1006: value not a function; on

2007-11-26 Thread Jason Szeto
Brian, Usually it is more helpful if you can post a stack trace with line numbers. mx:Glow id=qtyGlow target=qtyDisplay color=0x99FF66/ Should be: mx:Glow id=qtyGlow target={qtyDisplay} color=0x99FF66/ You need to assign an effect target to an instance, not to the string

RE: [flexcoders] Dynamically Changing Easing Function Again

2007-11-26 Thread Jason Szeto
Amy, Did you import the easing functions? (ie. import mx.effects.easing.*). I think you'll also have to create dummy variables of each class. These classes won't be linked into the swf unless you perform these steps. GetDefinitionByName will only return a result if the class is linked in.

RE: [flexcoders] SetStyleAction - clear style?

2007-11-26 Thread Jason Szeto
Ryan, Try using undefined instead of null. You can also just call clearStyle() in the effectStart handler of any generic effect. Jason From: [mailto:[EMAIL PROTECTED] On Behalf Of rkettrey Sent: Monday, November 26, 2007

RE: [flexcoders] Skinning a Panel in Flex

2007-11-26 Thread Jason Szeto
Clinton, Support for Scale9Grid in Panel was added in Flex 3. What version are you running? Jason From: [mailto:[EMAIL PROTECTED] On Behalf Of Derrick Anderson Sent: Monday, November 26, 2007 6:53 AM To:

RE: [flexcoders] Re: Dynamically Changing Easing Function Again

2007-11-26 Thread Jason Szeto
Gordon beat me to it. . . This works for me: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=; layout=vertical mx:Script ![CDATA[ import mx.effects.easing.*; private var

RE: [flexcoders] customizing flex download progress bar.

2007-12-04 Thread Jason Szeto
Aaron, Take a look at the Flex 2 Developer Guide. In chapter 14 (Using the Application Container), there is a subchapter called Showing the download progress of an application. That should give you a good starting point. Jason From:

RE: [flexcoders] Flex2 versus Flex3 font size

2008-03-21 Thread Jason Szeto
We fixed some padding bugs in the Button classes. In Flex 2, if you explicitly set a width, the button would ignore the padding in order to fit the label. In Flex 3, we fixed this behavior so that padding is always respected. One solution for you is to adjust the paddingLeft/paddingRight