Alert depth

Hi ,
         How to set the depth to "Alert" component.
Ex:
import mx.controls.Alert;
Alert.show("Message", "Alert", Alert.OK,this);

use swapDepths():
import mx.controls.Alert;
var a:MovieClip=Alert.show("Message", "Alert", Alert.OK,this);
a.swapDepths(whatever);

Similar Messages

  • Message missing from alert box & Can you disable everything until user selects an answer?

    Question 1 - My alert box window is working, and the title and buttons function as they should, but does anyone know why my message is not showing up?
    Question 2 - How do you program the alert box window so that no other buttons on your application work until the user selects one of your alert window buttons? I can do this manually by setting everything to enabled = false, but I know this happens automatically every other time I've used the alert window component, but it's not working for me now.
    Question 3 - How can I prevent multiple alert windows from popping up? My alert comes up when a user clicks a button called 'Delete'. Would be solved if I had the answer to question 2.
    var myMess:String = '';
    var myTitle:String = '';
    function confirmDelete(){
        selectedAlt = list_dg.selectedItem.ALT_CODE;
        myMess = "Are you sure you want to delete this ALT code: "+selectedAlt+"?";
        myTitle = "Confirm Delete ALT Code Function                                                    ";
        var alertBox:Object = Alert.show(myMess,myTitle,Alert.YES|Alert.NO,this,deleteConfirmHandler);
        alertBox.setSize(450, 125);
    // HANDLER FOR CONFIRM DELETE ALT ALERT WINDOW
    deleteConfirmHandler = function(evt_obj:Object):Void {   
        var myAnswer = evt_obj.detail;
        // returns 1 if yes, 2 if no.
        if (myAnswer == 1){
                deleteAlt();
        else {   
            altDetail.moveAssign_btn.enabled       = false;
            altDetail.moveAvail_btn.enabled        = false;
            altDetail.avail_list.selectedIndex     = null;
            altDetail.assigned_list.selectedIndex  = null;

    I think you were on the right track, it did have something to do with the parent fla file. Once I complied it's parent file (and imported the window and alert classes into the parent), my message appeared in the alert box.
    It doesn't make any sense, because the component is not in the parent file, it's in the sub-parent fla file, but I guess you just have to compile all the files in the hierarchy for it to work... It also doesn't make sense why everything else worked before (the title, the yes and no buttons) except for the message.
    Thanks for the suggestion (to look at the depths, etc), however, I'm still unable to understand why the alert is not modal as it should be. If anyone has any suggestions on how to fix the buttons to make them modal, please let me know. Thanks.

  • Is it a bug about element's depth?

    I have two elements in one frame and if I use:
    alert(fl.getDocumentDOM().getTimeline().layers[1].frames[2].elements[0].depth);
    alert(fl.getDocumentDOM().getTimeline().layers[1].frames[2].elements[1].depth);
    It shows me 0 and 1, It is all right!
    But if I don't select two of them , the depth is 2 and 2!
    How it possible!!!!!
    Is it a bug?

    Hi,
    It works correctly for me. Can you share your test file along with the steps so that we can have a look at what's going wrong for you?
    Please note that simple shapes(unselected) at the same layer have the same depth. If you have a drawing object or a symbol instead, then their deapth would be different.
    -Nipun

  • "target document has a different depth than source document." help?

    as of yesterday i have been recieveing an alert when i try to move a jpeg into a new photoshop doc stating that my target document has a different depth than my source document and will (which it definiately does) result in lower than expected quality. i have no idea how to fix this. please help.
    Photoshop specs: CS6; RGB; 16 bit; Res 300 pixels/inches; size: letter; (advanced setting - don't know what these are) color profile: sRGB IEC61966-2.1; Pixel aspect ratio: square pixels
    don't know if i accidentally messed with something i shouldn't have or what. any help is appreciated. thank you in advance.

    There's GOT to be something to fix. I've been getting that message all night -- when I say "yes" and then try to SAVE the document, it won't give me the option to "save for web."
    I started completely from scratch, and still got the error window, and it still wouldn't let me "save for web."
    So -- let's begin again -- what needs to be fixed?

  • How to pretty print XML alerts

    Hi!
    I'd like to generate mail alerts in OSB which include a XML content. I need XML to be human friendly printed (that is with indentation) but XML is printed in a single line.
    Is there any way to pretty print XML content in alerts (and also in alerts emails).
    Thank you in advance.

    The example of what the OP wants it to look like I thought was quite plain. Its right at the top of the post.
    Unfortunately it is also quite difficult to accomplish using System.out.print statements.
    You have to print out the root of the tree first (its at the top)
    However you don't know how far along to the right you need to print it without traversing the child nodes already (you need to know how deep the tree is, and how far to the left the tree extends from the root)
    So you will need to traverse the tree at least twice.
    Once to work out the offsets, and again to print out the values.
    The working out of offsets would have to be a depth search traversal I think
    The printing of the values in this fashion would be a breadth first traversal.
    I remember (ages ago) doing a similar assignment, except we printed the tree sideways.
    ie the root was on the left, the leaves of the tree on the right of the screen.
    That meant you could do an inorder depth traversal of the tree to just print it once.
    hope this helps,
    evnafets

  • That annoying "file activity" alert

    what on earth is that "file activity" alert I always get now, whenever I go back to DW from having been on anoter app?  this happens only on the mac, not on the pc at work...  on the mac it didn't used to happen at the beginning, right after I had installed DW, about two months or so ago, but now I get it all the time, also whenever I click on the left, where the list of files is...  how can I hide this PERMAMENTLY??
    thank you...

    Figures. I was looking through preferences but never even saw that little button in the left corner. I've just been clicking away from it in frustration all this time without even looking it over in depth. Thanks.

  • Alert box not showing up

    Hello,
    I am having this strange problem with Alert dialog boxes. My application has some Alert dialog boxes and when I click a button to show the Alert, sometimes, I get a grayed out screen but no alert box. Other times it works properly. I tried PopUpManager.bringToFront() and setting the parentApplication as the Sprite but i cannot get this to work consistently.
    I know it has something to do with initialization of the main Application but I don't know where to look. Another clue i found is that sometimes, one of application asset (icon image) also does not show up.
            [Embed(source="assets/images/myproj/delete_on.png")]
                private const removeEntryIcon:Class;
    Most of the time it does show up. So I know there is nothing wrong with this code or the location of the asset. Can anyone give me some insight into what is happening here.

    I think you were on the right track, it did have something to do with the parent fla file. Once I complied it's parent file (and imported the window and alert classes into the parent), my message appeared in the alert box.
    It doesn't make any sense, because the component is not in the parent file, it's in the sub-parent fla file, but I guess you just have to compile all the files in the hierarchy for it to work... It also doesn't make sense why everything else worked before (the title, the yes and no buttons) except for the message.
    Thanks for the suggestion (to look at the depths, etc), however, I'm still unable to understand why the alert is not modal as it should be. If anyone has any suggestions on how to fix the buttons to make them modal, please let me know. Thanks.

  • FQDN error when opening Alert confi and Alert inbox

    Hi PI Gurus,
    When I go through RWB & try to open alert config & alert inbox I get an 'Business Server Page (BSP) error'
    when I open from sicf I am able to open alert inbox.
    How can I open alert config?
    Thanks,
    Krishna

    Hi Krishna,
    Ref: /people/brian.mckellar/blog/2003/09/25/bsp-in-depth-fully-qualified-domain-names
    Ref these weblog;
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    Additional Info:
    Roles for Alert Management
    1. SAP_ALM_ADMINISTRATOR
    2. SAP_ALM_CUSTOMIZER
    3. SAP_BC_ALM_ALERT_USER
    Sap Notes - 913858 and 824039
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/81023cfa699508e10000000a11402f/content.htm
    Thanks,

  • Filename in an alert message

    Hi Friends,
    I am doing a simple file to idoc scenario.
    if mapping error occurs.
    the requirement is to trigger an alert which says "A mapping error occurred when processing the file XYZ.txt"
    Constraints are:
    1. BPM is not used as it is a simple scenario.
    2.RFC lookup during mapping is to be avoided since if mapping itself fails then it will be of no use.
    Is there a way/work around to get the filename dynamically in the alert message.
    Thank you,

    Seems to be not possible without a BPM.....at least by using a standard alert procdure
    Using a mapping get the FileName .....have both the source and target message as the same.....
    map the FileName to some empty node of the structure.
    In the mapping logic, one for which you want to check for any exception, do not make use of the node containing the FIleName...let the rest mapping remain as is
    Create a Container Variable and Assign the node containing the FileName to it using a Container Operation.
    Then raise the Alert.
    I have used a similar approach in one of my interfaces.
    Regards,
    Abhishek.

  • Alert is not getting displayed in Alert Inbox

    Hi,
    We have created a BPM with an Alert. The Alert is getting triggered in the PE but we are not able to see the alert in the alert inbox. It is neither being displayed in ALRTDISP transaction.
    We have already subcribed that alert.

    Hi,
    Have to scheduled the background job SXMSALERT_PROCESS_DATA_GET to collect the alert message for further processing?
    check this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
    thanks,
    sasi

  • The expression is not being displayed in the alert inbox

    Hi,
    I have created an expression in 'Long and Short Text' tab present in the ALRTCATDEF transaction screen.
    The expression is "test Error in message &SXMS_MSG_GUID&". However if i goto alert inbox, this expression is not getting displayed. I tried putting this expression under Message title, Short text and Long text tabs. But no change in the result.
    In the above expression, SXMS_MSG_GUID is a container variable declared in ALRTCATDEF transaction screen.
    Same is the situation irrespective of the container variable being used - SXMS_ERROR_CAT etc.,
    I appreciate your early response.
    Regards
    Ganesh

    Hi Venkat,
    Without using BPM, you can think/try out with triggering an alert from UDF:
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Otherwise, you can use email functionality to notify the error message rather an alert....so that you can customize your output format/or error message required.
    Also check out this Michal's blog on ALERT Configuration..
    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    Hope this wull help.
    Nilesh

  • Alert or Notification for Client Open and Close

    Hi All,
    How to configure an Alert or Notification, if the Client (SCC4 and SE06) is open and in modifiable state, we have spoken to our solman team and got the confirmation that there is no MT Class for SCC4 and SE06.
    If this is possible through any z program, please do help and provide your comments and suggestions.
    Thanks & Regards
    Praveen

    It is possible to assign a different posting period variant to company code in a non-leading ledgers (the extreme right field) in the foll. node in SPRO.
    Financial Accounting (New) -> Financial Accounting Global Settings (New) -> Ledgers -> Ledger -> Define and Activate Non-Leading Ledgers

  • Is there a way of getting a list of upcoming alerts/alarms and their times?

    I'd like to get a list of alert times, so that I can see if I have any that will be going off in the middle of the night!
    Many months back, I purged those pesky midnight alerts by scrolling through week by week and looking for the all-day events and checking each one. It was a chore.
    Now, due an odd synching issue between iCal and an app, I'm a tad concerned that some late night alerts may have been set, or PMs may have changed to AMs, or other oddities introduced. I'd like to scan a list of alerts for the next several months to ensure that none are set to go off during the sleeping hours!
    Just browsing events (say week by week) doesn't help me because they could have alerts set for all sorts of different times (or no alerts at all). If there isn't a way of listing the alerts, then I'll have to go through each individual event/to do to check its alert and time-- and there are hundreds!
    Hope this makes sense.

    Try this in Script Editor - the list of alarms will be in the result pane.
    AK
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "iCal"
    set Alarming to ""
    set MyCalendars to every calendar where writable of it is true
    repeat with ThisCal in MyCalendars
    set MyEvents to events of ThisCal
    repeat with ThisEvent in MyEvents
    repeat with ThisAlarm in (display alarms of ThisEvent) & (sound alarms of ThisEvent)
    set AlarmTime to (start date of ThisEvent) + (trigger interval of ThisAlarm)
    set GotOne to ((name of ThisCal) & ": " & (summary of ThisEvent) & ": " & (start date of ThisEvent as string) & " alarm " & trigger interval of ThisAlarm as string) & " minutes."
    set Alarming to Alarming & GotOne & return
    end repeat
    end repeat
    end repeat
    end tell
    Alarming
    </pre>

  • How to change default alerts in iCal?

    Hello.
    Every time you add a new event in iCal, the Info panel of the event contains a series of default alerts that you may want to add to it. However, all of them are useless to me (e.g.: "Send email to <my address> 4 days after), so I need to manually edit them event by event. Anybody knows how to change them? I have already inspected all the plist files related to ical, and looked inside the ical package content, but I found no indication of where to change these values. Using iCal version 5.0.2
    Thanks,
    l

    John: Thank you, this is exactly what I wanted. I was indeed inspecting the plist with bbedit, but what I did not realize is that the file has some parts which are binary, so I could not see the PersistentMenu-lastUsedAlarms part by using a text editor. I opened it with Xcode and I did find what you were saying, and erased all the junk that was in there. In fact, the issue I had was also described here:
    http://newsgroups.derkeiler.com/Archive/Uk/uk.comp.sys.mac/2010-06/msg02349.html
    For some reason, it looks like after some upgrade the program adds were some positive values in the plist and I was stuck with default alarms that were set *after* the events I wanted to set an alarm for.
    I did what you suggested, then added by hand new values to the PersistentMenu part of the plist, and I am now happy.
    For everybody's information, to know what I did, it is enough to know to add Dictionary items to the  PersistentMenu-lastUsedAlarms, with 3 fields:
    -- AlarmTypeKey (this determines if you want a sound, or else an email, or else the other default alarm type keys. For example, sending an email is a Number, value 4; having a message with sound is a Number, value 3)
    -- AlarmDurationKey: This is a Number, in seconds, that determines when you want your alarm to trigger. E.g: -172800 will be two days before. Must be negative for "before", of course)
    -- AlarmParameterKey: This is a String, where you store the value that you want the alarm to have. For example, if you want an email to be sent, the AlarmTypeKey will be 4, as explained above, and this field will contain your email address. Instead, if you want the alarm to be a sound, the AlarmTypeKey will be 3 and this field will have the name of the sound you want (e.g., Basso).
    That's it. Thanks a lot for the solution!
    l.

  • Why is ical creating unwanted alerts for all-day events?

    If anyone can point to what might be going wrong here I'd be grateful. This is becoming a daily irritant. I have a number of all-day events listed for most week days in my diary which help me to know what is happening that day with childcare for my son. I don't need alerts to be reminded of these - they are just notes I put to myself in adavnce that let me know how my day is configured. Now, I sync my ical from my home imac to my work imac, my macbook, my iphone and my ipad. On none of these devices do I have default alerts set. I never set any alerts for any of these 'events'. But then, at 9am the day before each one I get an alert. In fact, I get a 9am alert for any all-day event, regardless of whether I set an alert for then, or at all. As I say, I've checked all devices and the default alert a=on all is set to 'none'. Does anyone know why this is happening and how I stop it?

    Thanks Malcolm.I'm afraid this issue started for me after updating to iOS6!

Maybe you are looking for