• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Alert positioned

LEGEND ,
Oct 01, 2006 Oct 01, 2006

Copy link to clipboard

Copied

I have a flash form and this code to send an alert onload. The Alert is
positioned below my form. Is there a way to get it to be positioned on top
or within the form?

Thanks for any help you can give!!!

var myAlert = mx.controls.Alert.show("Please enter your zip code first.",
"Information");

//set the font color and button labels of all alerts
_global.styles.Alert.setStyle("color", 0x0066CC);
mx.controls.Alert.buttonWidth = 50;


//set the style of the title only with a named style declaration
mx.controls.Alert.titleStyleDeclaration = "windowStyles";
//change the size
myAlert.width = 190;
myAlert.height = 100;
myAlert.verticalAlign = "Top";
myAlert.verticalGap = 1;
myAlert.y = 0;

//change this alert's style only
myAlert.setStyle("fontStyle", "italic");
myAlert.setStyle("panelBorderStyle","default");
myAlert.setStyle("cornerRadius","0");


TOPICS
Advanced techniques

Views

277

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 01, 2006 Oct 01, 2006

Copy link to clipboard

Copied

LATEST
Correction it appears in the middle of the form I would like it to appear at
the top.

Any Ideas?

"Rick" <rick@di-wave.com> wrote in message
news:efote2$c2n$1@forums.macromedia.com...
>I have a flash form and this code to send an alert onload. The Alert is
>positioned below my form. Is there a way to get it to be positioned on top
>or within the form?
>
> Thanks for any help you can give!!!
>
> var myAlert = mx.controls.Alert.show("Please enter your zip code first.",
> "Information");
>
> //set the font color and button labels of all alerts
> _global.styles.Alert.setStyle("color", 0x0066CC);
> mx.controls.Alert.buttonWidth = 50;
>
>
> //set the style of the title only with a named style declaration
> mx.controls.Alert.titleStyleDeclaration = "windowStyles";
> //change the size
> myAlert.width = 190;
> myAlert.height = 100;
> myAlert.verticalAlign = "Top";
> myAlert.verticalGap = 1;
> myAlert.y = 0;
>
> //change this alert's style only
> myAlert.setStyle("fontStyle", "italic");
> myAlert.setStyle("panelBorderStyle","default");
> myAlert.setStyle("cornerRadius","0");
>
>


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation