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
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
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
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
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
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
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.
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
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
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
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
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,
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
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
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.
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
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
) 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
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."
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
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
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
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
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
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
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
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
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
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
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’
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.
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,
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]
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
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:
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
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
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
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
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
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
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).
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
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
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
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
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
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
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
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
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
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
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
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(
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:
“
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
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
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
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
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
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
61 matches
Mail list logo