Hi Wesley,
Thanks for the reply!
I did my homework and found a way. I added one more line and now the solution
looks like:
var a:Alert = Alert.show("Final message...");
a.mx_internal::alertForm.mx_internal::defaultButton.visible = false;
a.mx_internal::alertForm.mx_internal::defaultButton.enabled = false;
a.addEventListener(KeyboardEvent.KEY_DOWN, function(e : KeyboardEvent) : void
{e.stopImmediatePropagation();}, true);
The last line simply stops any keyboard events.
Frankly speaking this is close to abusing the features ActionScript/Flex
provides but since I promise myself not to write such code anymore I'll just
keep this snippet :-)
Thanks,
Rondo
--- In [email protected], Wesley Acheson <wesley.ache...@...> wrote:
>
> You could just use popupManager to popup a panel or canvas or similar.
>
> I don't think that it should close on escape.
>
> On Wed, Mar 25, 2009 at 3:11 PM, rondo_smith <rondo_sm...@...> wrote:
>
> > Hello,
> >
> > I need to show an alert box (or something similar) which has no buttons and
> > it also must not allow the user to close it. Something like a final message
> > to the user and then blocking the access to the app.
> > I did some research and what I found was:
> >
> > var a:Alert = Alert.show("Fianl message goes here...");
> > a.mx_internal::alertForm.mx_internal::defaultButton.visible = false;
> > a.mx_internal::alertForm.mx_internal::defaultButton.enabled = false;
> >
> > It works fine with one exception - when the alert pops up it can be closed
> > by pressing ESC.
> > Any ideas how to disbale the ESC thing? ... or ideas how to achieve similar
> > result?
> >
> > Thanks,
> > Rondo
> >
> >
> >
> > ------------------------------------
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
> > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > Links
> >
> >
> >
> >
>