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 values

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: flexcoders@yahoog

RE: [flexcoders] Re: Blurring The Background

2007-12-04 Thread Jason Szeto
Take a look at mx.managers.PopUpManagerImpl. It is basically the same thing you want, except it blurs the entire stage. It basically places a stretched Sprite across the stage, underneath the popup. It then blurs this Sprite. Jason From: flexcoders@yahoogr

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

2007-11-26 Thread Jason Szeto
Gordon beat me to it. . . This works for me: http://www.adobe.com/2006/mxml"; layout="vertical"> Note that the class name is case sensitive. Jason From: flexcoders@yahoo

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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Derrick Anderson Sent: Monday, November 26, 2007 6:53 AM To: flexcoders@yahoogroups

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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rkettrey Sent: Monday, November 26, 200

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] error 1006: value not a function; on effect.play()

2007-11-26 Thread Jason Szeto
Brian, Usually it is more helpful if you can post a stack trace with line numbers. Should be: You need to assign an effect target to an instance, not to the string "qtyDisplay". Jason From: flexcoders@yahoogroups.com [mailto:[EMAIL P

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: http://livedocs.adobe.com/labs/flex3/langref/flash/desktop/NativeDragMan ager.html Jason From: flexcoders@ya

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 From

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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Sent: Thursday, September 07, 2006 1:55 PM To: flexcoders@yahoogroups.com

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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen Sent: Tuesday,

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 b

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 charac

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       public function changeStyle():void     {     Button(bb.

RE: [flexcoders] ToggleButtonBar: Styling Individual Button

2006-08-28 Thread Jason Szeto
Kenny,   ButtonBar (ToggleButtonBar’s 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 you’ll have to iterate through each child of the

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="0x00"dropShadowEnabled="false"shadowDirection="center"shadowDistance="2" Jason     From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoo

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

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

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

2006-06-28 Thread Jason Szeto
mails.length; j++) { var emailVal : EmailValidator = new EmailValidator(); var valResult : ValidationResultEvent = emailVal.validate(emails[j]); if(valResult.type == ValidationResultEvent.INVALID) { toField.errorString="'" + emails[j] + "' is not a valid e-mail address."

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

2006-06-22 Thread Jason Szeto
For Flex 1.5, download the Flex manual here: http://download.macromedia.com/pub/documentation/en/flex/15/flex_dev_apps.pdf   For Flex 2.0 download the Flex manual here: http://www.macromedia.com/go/flex2_devapps_pdf   Look up the DownloadProgressBar in both. It describes how to custom

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

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

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 doesn’t handle selecting an item. But it should be a good starting

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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of jfournet Sent: Thursday, June 15, 2006 6:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Blank out

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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pat Buchanan Sent: Thursday, June 15, 2006 5:43 PM To: fl

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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle Sent: Friday, June 16, 2006 5:12 AM To: flexcoders@yahoogr

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 TileList’s dataProvider property. The first place is the mxml attribute: . The message also explains that the TileList’s default property is “dataProvider”. What this means is that if you p

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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tim Hoff Sent: Monday, June 19, 2006 7:35 AM To: flexcoders@yahoogroups.c

RE: [flexcoders] adding zoom effect to datagrid row

2006-06-19 Thread Jason Szeto
Pan,       You are actually running into a scoping problem. You don’t get an error because your effectTriggers are using strings instead of effect instances. Try changing rollOverEffect=”zoomIn” to rollOverEffect=”{zoomIn}”. You should get an error complaining that zoomIn doesn’

RE: [flexcoders] Capturing ESCAPE key in IE

2006-06-15 Thread Jason Szeto
The Flash ActiveX Player doesn’t receive ESCAPE key presses. Probably because IE doesn’t 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] 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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of iuliub Sent: Thursday,

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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bas J. Brey Sent: Wednesday, June 14, 2006 7:42 AM To: flexcoders@yahoogroups.com Subject: [flexcoders]

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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Aasim Sent: Tuesday, June 13, 2006 2:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Du

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: http://www.adobe.com/devnet/flex/articles/prog_layout.html   Good luck, Jason   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Stanislav Zayarsky Sent:

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 focus

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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Beh

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 Application’s creationComplete event. On

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 app

RE: [flexcoders] Re: context-sensitive help

2005-04-28 Thread Jason Szeto
You can easily build your own context-sensitive help by listening for the keyDown event and using the FocusManager's getFocus call to retrieve the control in focus. Here is a simple app that can get you started: http://www.macromedia.com/2003/mxml"; xmlns="*" width="700" keyDown="hand

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  

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] Re: Radio Button Custom Component

2005-04-14 Thread Jason Szeto
We're dealing with a ton 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 PROTECTE

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: Rendering in background

2005-04-14 Thread Jason Szeto
This should help: http://www.macromedia.com/devnet/flex/articles/prog_layout.html -Original Message- From: Tracy Spratt [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 9:10 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Rendering in background I have not done

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 whi

RE: [flexcoders] HSlider for FLASH MX 2004?

2005-04-11 Thread Jason Szeto
Scott, There is no H/VSlider component for Flash MX 2004. It was only developed for Flex. The DRK 6 version was created for Flash, however, it does not share the same code base as the Flex version. Jason -Original Message- From: Scott Barnes [mailto:[EMAIL PROTECTED] Sent: Sun

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 [mailto:[EMAI

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

RE: [flexcoders] Timer object for logout

2005-03-22 Thread Jason Szeto
Also, the getTimer() function will return the number of milliseconds that have elapsed since the application started.     From: Clint Modien [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 10:27 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Timer object fo

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.   http://www.macromedia.com/devnet/flex/articles/prog_layout.html   Jason   From: Jeroen De Vos [ma

RE: [flexcoders] buffering video

2005-03-21 Thread Jason Szeto
You can also listen for the "complete" event which triggers when bytesLoaded equals bytesTotal. Jason -Original Message- From: Manish Jethani [mailto:[EMAIL PROTECTED] Sent: Saturday, March 19, 2005 4:55 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] buffering video On S

RE: [flexcoders] Move Effects in Resizable Containers

2005-03-16 Thread Jason Szeto
Alex, Unfortunately you are going to have to use Actionscript to create your effect and trigger it. You can do this quite easily. http://www.macromedia.com/2003/mxml";> import mx.effects.Effect; import mx.effects.Move; function playMove(target,newX:Number,newY:Number) { var e:Move = new Move(

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: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Use hand cursor   I found this:   “

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. I’ve included an example below. Note that

RE: [flexcoders] Multiple Sliders

2005-02-22 Thread Jason Szeto
This is more of a "how to filter the dataProvider" question than a question regarding Sliders. Sliders are simply a data input control just like a NumericStepper, ComboBox, TextInput, etc. What you'll need to do is to modify the filter function in ThumbnailView.mxml to work with a couple of extra

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: 'flexcoders@yahoogroups.com' Subject: [flexcoders] DateField Hi Folks, I noticed a shortcoming in t

RE: [flexcoders] RE: Mouse cursor change question

2005-02-15 Thread Jason Szeto
I’ve 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:   http://livedocs.macromedia.com/flash/mx2004/main_7_2/w

RE: [flexcoders] is there an easy way of creating a preloder to s wf

2005-02-01 Thread Jason Szeto
Take a look at the ProgressBar component. You can set it to mode="event" and pass in the ID of the Loader to the source property. The ProgressBar will then automatically show the percentage for you. An alternate way is to use the CursorManager and the busyCursor. Set the Loader.showBusyCursor prope

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