[flexcoders] Resize browser window - "resize complete event"?

2008-10-25 Thread Christoph Leva
Hello all,

I've got a question:

Is there an event that is fired after the user resizes the browser window
and all the resizing and rendering of all components on stage is done? 

I need it, cause I have to know the new positions of several nested
components after the user resizes. I can't listen to SystemManger.resize
cause the nested component's event.Resize is fired afterwards. If I do that,
I get the old values of the nested components. And I don't want to listen to
the resizeEvents of all nested components I need.

I could listen to the resizeEvent of the deepest nested component, but I
wanted to know, if there is another way...

Thanks, Chris



[flexcoders] Listen to transition complete?

2008-10-17 Thread Christoph Leva
Hi all,

is it possible to add an eventListener, that listens for the end of a
transition between two states? Couldn't find anything.

Don't want to listen to a stateChange Event and don't want to use a timer,
that sends an TimerEvent.TIMER_COMPLETE after the duration of the
transition.

Thanks, Chris



[flexcoders] drawing a rectangle with a cutout

2008-10-11 Thread Christoph Leva
Hi all,

I am trying to cut a smaller rectangle (name: cutout) out of a rectangle,
which has the screen size. I read, that u can do it when you draw the cutout
reverse, but I don't know how to do it.

I use the flash.display.graphics class. I created both rectangles, using the
drawRect() method. All commands to draw the rectangles are between
beginFill() and endFill() methods and I can see them both on stage.

Can I do the cutting out with the drawRect() Method, or is there another
way?

Christoph



AW: [flexcoders] modal PopUp with one component, that should accept user interaction

2008-10-11 Thread Christoph Leva
Thanks Tracy and Mark, 
 
what I want to do is create something like a guided tour, that displays
instructions in a popup on how to interact with the component, from where
the help is called. Therefore, this component has to accept user
interaction, but all the other components not.
 
I think I will try it Tracys advice. Had the same idea after looking at the
PopUpManager code.
 
Christoph

  _  

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von Mark Carter
Gesendet: Samstag, 11. Oktober 2008 05:59
An: flexcoders@yahoogroups.com
Betreff: Re: [flexcoders] modal PopUp with one component, that should accept
user interaction




What exactly do you want to do? i.e. why do the other components have to be
mouse-shielded?

I assume you know about PopUpButton - I don't know if you could use that to
help you do what you want...?

-- 
View this message in context: http://www.nabble.

com/modal-PopUp-with-one-component%2C-that-should-accept-user-interaction-tp
19898132p19929358.html
Sent from the FlexCoders mailing list archive at Nabble.com.



 


AW: [flexcoders] Re: modal PopUp with one component, that should accept user interaction

2008-10-10 Thread Christoph Leva
Hi,
 
do you mean to create the PopUp as non modal and after that do
mx.core.Application.application.enabled = false?
You are right, it doesn't affect the popup, but disables all other
components. 
 
Think I confused you, here is an example: Lets say I have two Buttons (Btn A
and B) on stage. Each Button creates a PopUp. When I click on Button A, the
Pop Up appears, Button B will be disabled but Button A stays enabled and
accepts user interaction.
 
I want to use the PopUpManager for that and set the third parameter of
"PopUpManager.createPopUp" to true (modal). Anybody has done something like
that?
 
Christoph

  _  

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von valdhor
Gesendet: Freitag, 10. Oktober 2008 15:47
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: modal PopUp with one component, that should accept
user interaction



Have you tried mx.core.Application.application.enabled = false?

I'm fairly sure this does not affect popups.

--- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com,
"Christoph Leva"
<[EMAIL PROTECTED]> wrote:
>
> Hi Darrell,
> 
> thanks for the answer. I know that you use the third parameter to
make it
> modal. What I want is, that the component, from where I create the popUp
> stays enabled. All the other components on stage should be disabled
(like
> setting the third parameter to "true").
> 
> I am looking for an easy way to solve it with the PopUpManager.
> 
> Christoph
> 
> _ 
> 
> Von: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
[mailto:[EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com]
Im
> Auftrag von Darrell Loverin
> Gesendet: Freitag, 10. Oktober 2008 05:11
> An: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
> Betreff: [flexcoders] Re: modal PopUp with one component, that
should accept
> user interaction
> 
> 
> 
> I may be misunderstanding your question but the third parameter of 
> the PopUpManager.addPopUp() fucntion is a Boolean that controls 
> whether the popup is modal or non-modal.
> 
> -Darrell
> 
> --- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com,
> "Christoph Leva" 
>  wrote:
> >
> > Hi all,
> > 
> > I use the popUpManager to show a TitleWindow. I want it modal, but 
> exlude
> > the component from where I create the popUp. The result should be, 
> that this
> > one component and the titleWindow can be clicked on or interacted 
> with and
> > all other components should not react to user interaction.
> > 
> > Does anybody have an idea how to do it with the PopUpManager?
> > 
> > Cheers, Christoph
> >
>



 


AW: [flexcoders] Re: modal PopUp with one component, that should accept user interaction

2008-10-10 Thread Christoph Leva
Hi Darrell,
 
thanks for the answer. I know that you use the third parameter to make it
modal. What I want is, that the component, from where I create the popUp
stays enabled. All the other components on stage should be disabled (like
setting the third parameter to "true").
 
I am looking for an easy way to solve it with the PopUpManager.
 
Christoph

  _  

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von Darrell Loverin
Gesendet: Freitag, 10. Oktober 2008 05:11
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: modal PopUp with one component, that should accept
user interaction



I may be misunderstanding your question but the third parameter of 
the PopUpManager.addPopUp() fucntion is a Boolean that controls 
whether the popup is modal or non-modal.

-Darrell

--- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com,
"Christoph Leva" 
<[EMAIL PROTECTED]> wrote:
>
> Hi all,
> 
> I use the popUpManager to show a TitleWindow. I want it modal, but 
exlude
> the component from where I create the popUp. The result should be, 
that this
> one component and the titleWindow can be clicked on or interacted 
with and
> all other components should not react to user interaction.
> 
> Does anybody have an idea how to do it with the PopUpManager?
> 
> Cheers, Christoph
>



 


[flexcoders] modal PopUp with one component, that should accept user interaction

2008-10-09 Thread Christoph Leva
Hi all,

I use the popUpManager to show a TitleWindow. I want it modal, but exlude
the component from where I create the popUp. The result should be, that this
one component and the titleWindow can be clicked on or interacted with and
all other components should not react to user interaction.

Does anybody have an idea how to do it with the PopUpManager?

Cheers, Christoph



[flexcoders] ToggleButtonBar with bindable labels of Buttons - resourceManager

2008-10-08 Thread Christoph Leva
Dear all, 

I am using the resourceManager to switch between languages in my flex app.
All labels (i.e. of buttons, textfields...) are bound to locale property
files, that they change immediately, when the user changes the language.

I have a toggleButtonBar in my app and want the labels of the buttons to
change as well. Therefore I use the BindableObjectClass, which extends
Object and has a bindable property "label". I use it like that:








The only problem I have is, that when I change the language, the
ToggleButtonBar disappears for a moment. It appears with the correct
language labels, when all other labels change language. I want the
ToggleButtonBar to remain on stage and just change the language. Does
anybody know another way to do it, that prevents the disappearing?

Thanks in advance, Christoph