Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / February 2007



Tip: Looking for answers? Try searching our database.

AlertBox Component  _x and _y coordinates

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RandalJ99 - 26 Feb 2007 21:20 GMT
Hi,

     In using the Alert Box component how do you control where the AlertBox is displayed?

Thanks for any help!
tonyhigham - 28 Feb 2007 19:41 GMT
All you have to do is assign the alert to an object. In the code below, I've
imported the alert class and initialized it as an alert, but it will work just
as well if you have an alert in the library, don't import, and initialize it as
a generic object().

import mx.controls.Alert;

var myAlert:Alert = Alert.show("Test Alert", "Test", Alert.OK | Alert.CANCEL,
null, myClickHandler, "testIcon", Alert.OK);
myAlert._x = 0
myAlert._y = 0
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.