Alert without button

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Re: Alert without button

    Hello everyone,

    I solved my problem.
    What happened was that he was to busy executing the code that he didn't find
    time to refresh the screen.
    So what i did was i created a timer of 100 milliseconds after creating the
    popup, so he got time to show the popup on the screen.
    After the timer i continue the rest of my code (loading the image and
    calculating the smaller one)
    My code now looks like this:
    ------------------------------------------------------
    // when image is selected i call the imageselected function
    imageFile.addEventListener(Event.SELECT, imageSelected);

    public function imageSelected(event:Event):void
    {
    pop2 = ImageLoadpopup(PopUpManager.createPopUp(Applicatio n.application as
    Sprite,ImageLoadpopup,true));
    PopUpManager.centerPopUp(pop2);

    var myTimer:Timer = new Timer(100, 1);
    myTimer.addEventListener("timer", timerHandler);
    myTimer.start();
    }
    public function timerHandler(event:TimerEvent):void
    {
    // here i create a new loader and when that's complete i call another function
    that handles the resize and saving.
    }
    ------------------------------------------------------

    So, the timer forces the code to wait, so it gets enough time to show my popup.

    Greets, jacob


    Starlover_jacob Guest

  2. Similar Questions and Discussions

    1. Alert Box
      Hi, I have a confirm box when the user wants to delete a record. I am passing in some information about a record so that the user knows exactly...
    2. BUG ALERT!!
      The following will throw an error, but it SHOULD NOT! var myAlert = mx.controls.Alert.show("Add New Application?", "CONFIRM",...
    3. Click twice on OK button in alert dialogs -- wassup with that?
      Trash preferences or turn off alert dialogs in Edit-Preferences-General.
    4. Help with Alert box
      Hi, I'm trying to get an Alert to show up when I click a button but it's not showing up. I've read the directions on how to add an alert component....
    5. WORLDWIDE ALERT! How Did They Do That?
      I need someone to go to www.msn.com and tell me how they made the flash file jump all over the page like that! The flash file in question is the...
  3. #2

    Default Re: Alert without button

    Ahh. Another solution to this might be to use callLater();
    Tracy
    ntsiii Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139