You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by scott matheson <sc...@matheson.it> on 2016/08/22 10:24:02 UTC

forcing a screen redraw

Hi
   I have a complex screen, due to complexity and then number of data items i have use AS3 code to setup the currentStates, rather then bindings, how can i force the “show” event so the screen will redraw ? 

Scott

RE: [Non-DoD Source] forcing a screen redraw

Posted by Kessler CTR Mark J <ma...@usmc.mil>.
Well you could invalidate specific things on a parent or simply call validateNow().  If you're not using databinding, I'm going to assume you are assigning the values manually from an event.



-Mark

-----Original Message-----
From: scott matheson [mailto:scott@matheson.it]
Sent: Monday, August 22, 2016 6:24 AM
To: <us...@flex.apache.org>
Subject: [Non-DoD Source] forcing a screen redraw

Hi
   I have a complex screen, due to complexity and then number of data items i have use AS3 code to setup the currentStates, rather then bindings, how can i force the “show” event so the screen will redraw ?

Scott

Re: forcing a screen redraw

Posted by Alex Harui <ah...@adobe.com>.
Is the visible property state dependent?

Sent from my LG G3, an AT&T 4G LTE smartphone

------ Original message------
From: scott matheson
Date: Mon, Aug 22, 2016 5:06 AM
To: users@flex.apache.org;
Subject:Re: forcing a screen redraw

the show  event is firing the first time i display the screen, i then open a model to do work, the issue is when i come back the show evend does not fire, as the screen is still on the display,  i will try the validateNow() otherwise i just bind a function


> On 22 Aug 2016, at 12:15, Krüger, Olaf <OK...@edscha.com> wrote:
>
> I guess regardless of whether using AS3 or binding the first time the view is displayed the "show" event is not fired. It probably has to be invisible before.
> However, I understand that you set the current state doing it like this: currentState = "NewState".
> Maybe you could listen to the "currentStateChange" event to do whatever you'd like to do after the view state changed?
>
> If we misunderstood you, some code might help ;-)
>
> Olaf
>
>
> ________________________________
>
> Edscha Holding GmbH
> Sitz der Gesellschaft: Remscheid
> Registergericht: Wuppertal, HRB 22889
> Geschäftsführung: Francisco J. Riberas Mera, Francisco López Peña, David Vázquez Pascual, Torsten Greiner, Markus Kirchner, Hans-Peter Schulz und Volker Weiss
>
> Vertretungsberechtigt sind nur Geschäftsführer und schriftlich Bevollmächtigte.
>
> Solely Managing Directors or employees with a written proxy have got power of representation.
>
> Der Inhalt dieser E-Mail einschließlich etwaiger beigefügter Dateien ist vertraulich und nur für den Empfänger bestimmt. Sollten Sie nicht der bestimmungsgemäße Empfänger sein, ist Ihnen jegliche Offenlegung, Vervielfältigung, Weitergabe oder Nutzung des Inhalts untersagt. Bitte informieren Sie in diesem Fall unverzüglich den Absender und löschen Sie die E-Mail einschließlich etwaiger beigefügter Dateien von Ihrem System. Vielen Dank.
>
> The contents of this e-mail including any attachments are confidential and may be legally privileged. If you are not the intended recipient, any disclosure, copying, distribution or use of its contents is strictly prohibited, and you should please notify the sender immediately and then delete this e-mail including any attachments from your system. Thank you.


Re: forcing a screen redraw

Posted by scott matheson <sc...@matheson.it>.
the show  event is firing the first time i display the screen, i then open a model to do work, the issue is when i come back the show evend does not fire, as the screen is still on the display,  i will try the validateNow() otherwise i just bind a function 


> On 22 Aug 2016, at 12:15, Krüger, Olaf <OK...@edscha.com> wrote:
> 
> I guess regardless of whether using AS3 or binding the first time the view is displayed the "show" event is not fired. It probably has to be invisible before.
> However, I understand that you set the current state doing it like this: currentState = "NewState".
> Maybe you could listen to the "currentStateChange" event to do whatever you'd like to do after the view state changed?
> 
> If we misunderstood you, some code might help ;-)
> 
> Olaf
> 
> 
> ________________________________
> 
> Edscha Holding GmbH
> Sitz der Gesellschaft: Remscheid
> Registergericht: Wuppertal, HRB 22889
> Geschäftsführung: Francisco J. Riberas Mera, Francisco López Peña, David Vázquez Pascual, Torsten Greiner, Markus Kirchner, Hans-Peter Schulz und Volker Weiss
> 
> Vertretungsberechtigt sind nur Geschäftsführer und schriftlich Bevollmächtigte.
> 
> Solely Managing Directors or employees with a written proxy have got power of representation.
> 
> Der Inhalt dieser E-Mail einschließlich etwaiger beigefügter Dateien ist vertraulich und nur für den Empfänger bestimmt. Sollten Sie nicht der bestimmungsgemäße Empfänger sein, ist Ihnen jegliche Offenlegung, Vervielfältigung, Weitergabe oder Nutzung des Inhalts untersagt. Bitte informieren Sie in diesem Fall unverzüglich den Absender und löschen Sie die E-Mail einschließlich etwaiger beigefügter Dateien von Ihrem System. Vielen Dank.
> 
> The contents of this e-mail including any attachments are confidential and may be legally privileged. If you are not the intended recipient, any disclosure, copying, distribution or use of its contents is strictly prohibited, and you should please notify the sender immediately and then delete this e-mail including any attachments from your system. Thank you.


AW: forcing a screen redraw

Posted by Krüger, Olaf <OK...@edscha.com>.
I guess regardless of whether using AS3 or binding the first time the view is displayed the "show" event is not fired. It probably has to be invisible before.
However, I understand that you set the current state doing it like this: currentState = "NewState".
Maybe you could listen to the "currentStateChange" event to do whatever you'd like to do after the view state changed?

If we misunderstood you, some code might help ;-)

Olaf


________________________________

Edscha Holding GmbH
Sitz der Gesellschaft: Remscheid
Registergericht: Wuppertal, HRB 22889
Geschäftsführung: Francisco J. Riberas Mera, Francisco López Peña, David Vázquez Pascual, Torsten Greiner, Markus Kirchner, Hans-Peter Schulz und Volker Weiss

Vertretungsberechtigt sind nur Geschäftsführer und schriftlich Bevollmächtigte.

Solely Managing Directors or employees with a written proxy have got power of representation.

Der Inhalt dieser E-Mail einschließlich etwaiger beigefügter Dateien ist vertraulich und nur für den Empfänger bestimmt. Sollten Sie nicht der bestimmungsgemäße Empfänger sein, ist Ihnen jegliche Offenlegung, Vervielfältigung, Weitergabe oder Nutzung des Inhalts untersagt. Bitte informieren Sie in diesem Fall unverzüglich den Absender und löschen Sie die E-Mail einschließlich etwaiger beigefügter Dateien von Ihrem System. Vielen Dank.

The contents of this e-mail including any attachments are confidential and may be legally privileged. If you are not the intended recipient, any disclosure, copying, distribution or use of its contents is strictly prohibited, and you should please notify the sender immediately and then delete this e-mail including any attachments from your system. Thank you.