Animation in a popup to stop when it closes

I created a component that is added as a pop up to create a modal window when the user is waiting for data from the server. Is that everything works well, the problem I have is at this time the pop up is removed.

To rotate the image from loading I increment an int value 5 then do rotate the image, and then call the function again so it runs constantly.

Using an instruction trace that I realized the animation continues to be followed even if the pop up has been removed.

How to stop what is happening when the pop up is removed?

This is my code of popup component window.

<? XML version = "1.0" encoding = "utf-8"? >
<! – used to display a modal window with an image of loading - >
" < = xmlns:mx mx:VBox ' http://www.Adobe.com/2006/MXML "width ="166"height ="200"creationComplete =" rotateLoadingImage () "> "
< mx:Script >
<! [CDATA]
Import mx.controls.Alert;

[Bindable]
public var angle: int = 0;

private function rotateLoadingImage (): void {}
Rotate.end ();
angle += 5;
Rotate.Play ();
trace ("image inversion function");
}

[]] >
< / mx:Script >
< mx: turning id = angleFrom 'rotation' = AnglePour "{angle - 5}" = "{angle}" duration = "20" effectEnd = "rotateLoadingImage (); "easingFunction = 'null' target ="{loadingImage}"/ >
"< mx:Image source="@Embed ('loading.png') "width ="166"height ="166"id ="loadingImage"/ >
< mx:Label text = "LOADING"... "width ="166"height ="25"textAlign ="center"fontSize ="20"/ >
< / mx:VBox >

This is the code in my main file

<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:mx mx:WindowedApplication ' http://www.Adobe.com/2006/MXML "layout ="absolute"xmlns:ns1 ="components.*"> "
<! - main.mxml - >
< mx:Script >
<! [CDATA]
import components. ProgressWin;
Import mx.controls.Alert;
Import mx.rpc.events.ResultEvent;
Import mx.managers.PopUpManager;

private var waitWin:ProgressWin;
private var waitWin:ProgressWin;

private function init (): void {}
SRV. Send()
waitWin = new ProgressWin();
PopUpManager.addPopUp (waitWin, this, true);
PopUpManager.centerPopUp (waitWin)
}

private void onResult(event:ResultEvent):void {}
PopUpManager.removePopUp (waitWin);
out. Text = "event.result =" + event.result; ".
}

private function testAlert (): void {}
Alert.Show ("this is the alert test function");
}
[]] >
< / mx:Script >

" < mx:HTTPService id ="srv"url =" http://www.myserver.com/test.php "result ="onResult (event)"/ >
< mx:TextArea id = 'out' width = "400" height = "300" / >
< mx:Button id = "myButton" click = "testAlert ()" label = 'Test alert' / > "
< mx:Button id = 'openWindow"click =" init () "label ="Open window"x ="88"y ="-1 "/ >" "

< / mx:WindowedApplication >

No, I enclose my test application

Tags: Flex

Similar Questions

  • Satellite C650 stops when I close the lid

    I recently got my laptop for Christmas, and a few weeks ago, I noticed that whenever I opened the cover, I had to turn it back on. He woul say the computer stops unexpectedly. Then you choose the security mode or regular. You hit one and we would send you to the Start Up repair.

    What should I do to get that normal back where I can close the lid and then open it again without having to reboot and wait more than seven minutes to start repair.
    Also, I got the blue screen.

    Do I have a virus, or is there another way I could fix it?

    Stand by. In the history I n t understand one thing: in power options on the side left (blue color), you can find the option choose closing the cover. Which option is implemented here?

    What should your laptop when you close the lid?

  • Firefox didn't stop when I close, and it stays running but doesn't charge on the screen when asked. It says Firefox is running and will not let me recharge. I end up close with the Task Manager. Suggestions?

    See the above phrases. Firefox continues to run, but the screen cleared of Firefox and I can't restart from the icons.

    Hello

    Please see this. Please note that the precise way of closing of Firefox's file (Alt + F) > exit and would usually take a few seconds depending on the history of the parameters of compensation to Tools (Alt + T) > Options > Privacy > settings next to clear history of Firefox closing. If there is delay in a plugin, you can also try to complete the process the process plugincontainer and check if Firefox closes on its own.

  • Firefox using 50% + CPU when it is idle and stops when I close and reopen; then he resumes it after that that he is responsible for some time.

    With Firefox loaded, but sitting idle for a period, he began to use 50% + CPU (by Windows Task Manager). This slows down everything even if nothing happens (openly) with Firefox. If I close and reopen, it's OK for a while, and then it starts again.

    == In the last week, but I know of no specific case of ordinary use.

    Please visit http://support.mozilla.com/en-US/forum/1/656957

  • New Yoga 14 stops when the lid closes

    I just got a new series of Yoga 14. Sometimes, but not always, the laptop stops when I close the lid, even when it is plugged. I already looked at the option to 'choose what happens when the lid is closed' and it is set to sleep, no downtime.

    Any ideas on how to solve this problem.

    Hi Nickajeglin,

    Welcome to the Forums

    According to the request, we understand that you are facing problem with the system stops when the lid is closed in your Lenovo 14 yoga.

    As you mentioned that you have changed the setting to sleep, try changing to do nothing option and check also the question, if still the issue persists then uninstall and reinstall the power management and check the issue.

    Click here to for 10 windows power management.

    Let us know the result.

    Best regards

    Ashwin.S

  • When I close a session, the computer turns off completely, but restarting said closing innacurate?

    When I close a session, the computer shuts down completely.  When I run again, I have the closure inappropriate message, why is it like that?

    Hello

    If I understand correctly the computer automatically stops when you close a session / program and displays the message "incorrect closure.

    is that correct?

    Please follow the links below to solve the problem.

    Start your computer in a clean boot to avoid conflicts with third-party software.

    Method 1

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    Note: When you have finished all necessary troubleshooting steps, please follow step 3 of the article mentioned above, to start the computer in normal mode.

    Run a SFC system analysis

    Please post the SFC scan results, you can find the results of the analysis to the following location.

    C:\Windows\Logs\CBS\Cbs.log

    Method 2

    Description of the error event ID 41 core Windows in Windows 7 or in Windows Server 2008 R2: "the system has rebooted without stop properly first.

    http://support.Microsoft.com/kb/2028504

    Method 3

    Please scan the computer for infections by using the links below.

    Reference link:- http://www.microsoft.com/security/pc-security/default.aspx#Safety-products-and-scans

    Microsoft antivirus software: -.

    http://www.Microsoft.com/security/PC-security/malware.aspx

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    It would also help if you provided more information.

    1. What is the full error code / exact / message?

    2 is specific to an application or a program being closed the question?

    3. what version of the Windows operating system do you use?

    4. What were the recent changes of hardware or software that are performed on the computer before the question?

    Please provide the information requested to receive specific troubleshooting steps.

    I hope this helps.

  • When I get messages that needs to open a Web site a popup window stops him. What can I do to fix this?

    . A pop-up window has been blocked and not able to open.

    When I get messages that needs to open a Web site a popup window stops him. What can I do to fix this?

    Hello JoyceAtkinson

    To display the pop-up window, you will need to disable the pop-up blocker. Follow the link below to lean how to do this. Thank you.

    http://Windows.Microsoft.com/en-us/Windows-Vista/Internet-Explorer-pop-up-Blocker-frequently-asked-questions #

  • System error / stop when trying to apply the animation to text on securities.  Already uninstalled and reinstalled. same mistake.

    Hello

    I just downloaded items from adobe first.  I'm unable to apply any transition to my title text.  The system gives the error:

    [/ Adobe/pre/main/libraries/HSL/Make/Mac /... /.. / Src/Views/MediaListView.cpp-3820]

    And then prior to the decision.

    I tried to uninstall the software completely and reinstall with no luck.  I use a new iMac so I doubt its my computer.

    Thank you

    rachelstrachel

    1. I'm strictly a Windows elements users, and it is my second hand information on when the Adobe Premiere elements Prefs file is Mac.

    I want you will find this file and delete it. I think this way seems it

    Users\Owner\Libraries\Application Support\Adobe\Premiere Elements\13.0.

    2 start a new project. Create your title in the Titler as follows.

    a. text Menu/new text/text default

    b. type your text in the text Section of the module of titration. Select the tool selection at the bottom of this article and then click on the text

    on the screen to select and get a bounding box around the text.

    c. go to the Animation Section of the module of titration. Click and drag the text Animation named bland by the line of the display of animation of the neighborhood of choice

    in the text on the screen or select Fade In by Line, scroll down the text animations, and click on apply.

    d. close the titration module.

    e. return the content of the timeline by pressing the button made above the timeline and you see the result of text animation.

    How long in the process do you have? Same problem as reported? Or this time it worked?

    RTA

  • Html5 Flash - How can I make a clip from movie internal slow down and stop when it happen a certain group?

    I'm creating a car braking system using flash, and I have a spin of the wheel. I want the wheel to slow down and stop after the brake pedal is pushed to a certain range. I know I could do with frame-by-frame animation but hoped there is a short cut - javascript? If not the party slowing then is the code to do just the internal clip (rotation of the wheel) to stop when it is in a frame. ? Thank you

    You can use the ticker class to create a loop that allow you to control the rotation of the wheel or a framework, TweenJS v0.6.0 API Documentation: Ticker

  • My iPhone 6 installed 10.0.2 stops when it gets to 40% of autonomy.  In addition, it seems to pass power WAY to fast with the new software.  Does anyone else have this problem?

    My iPhone 6 installed 10.0.2 stops when it gets to 40% of autonomy.  In addition, it seems to pass power WAY to fast with the new software.  Does anyone else have this problem?

    Hello brooksm549,
    Thank you for using communities of Apple Support.

    I got your message which, since updating your iPhone 6 to iOS 10.0.2 your iPhone stops when it is 40% and the power to empty very quickly. I understand your concern with the iPhone turn off and drains the battery. I recommend you to review the use of the battery to see what app contributes more to the battery drain. The following article will provide you with steps on how to check the use of the battery:

    On the use of the battery on your iPhone, iPad and iPod touch

    When you know about the soft uses more battery, you can change your settings in order to optimize the battery life:

    Maximize the life of the battery and battery life

    Best regards.

  • Hi all, I keep is typed in the password at startup box, in bars in safari and firefox coupled with a stuck key noise that stops when you press a key, I scanned with antivirus that seems clear, can anyone help?

    Hi all, I get a storm of +'s typed in the password at startup box upward, in bars in safari and firefox coupled with a stuck key noise that stops when you press a key, I scanned with antivirus that seems clear, can anyone help?

    Clings in the key on the keyboard? Wired or wireless keyboard?

    Try to run this program, copy and paste the result in a response. The program was created by Etresoft, a regular contributor.  Use please copy and paste the screenshots can be difficult to read. On the screen with the Options, please open Options and tick the boxes in the bottom 2 before the race. Click on the button "Report share" in the toolbar, select "Copy to Clipboard" and then paste into a response. This will show what is running on your computer. No personal information is shown.

    Etrecheck - Information System

    Reset an Apple Bluetooth mouse or Trackpad wireless keyboard (pairings and other common troubleshooting problems)

    Restart your computer, hold down the option/alt - P - R keys command before the gray screen appears. Continue until you hear the startup chime for the second time.

    Reset the NVRAM EXTRA memory

  • suddenly stops when the external usb hub is attached

    My imac 27 inches 5 k 2015 suddenly stops when an external USB hub is attached supposedly designed specifically for the mac. (Cutting) The mac does not start I have to unplug it and reconnect to restart. I tried different hubs of this manufacturer and all do the same thing. Remove the hub, the computer is fine. Any ideas?

    Well, try an another factory USB hub, I had good success with USB hubs powered from Belkin.

    Question... are the hubs help powered or are bus powered USB? They are bus powered USB is your problem, the USB ports on iMac didn't supply enough power to power bus-powered USB hubs.

  • Why has my Automatic rotation of the ipad stopped when I pass the vertical horizontal screen remains in the vertical position?

    Why has my Automatic rotation of the ipad stopped when I pass the vertical horizontal screen remains in the vertical position?

    Not all applications are supported both orientations. If you experience of this with an app that should work, you know, you most likely locked up the switch of direction. Drag your finger from the bottom of the screen bezel to display Control Center. Tap on the lock with a circular arrow icon.

  • My Mac was purchased in November 2014. The fan makes a noise Purring but stops when I lift it and hold it vertically. I just got this back from repair to the workshop of John Lewis as he made a further strong noise.

    My Macbook (one and a half year). The fan has become noisy and I just got in return for repair from John Lewis. The problem is that I think that it is still too noisy. He runs not fast, but it is noisier than it was when we bought it first.  The fan noise also stops when I take the Mac on the end. Is this normal?  Thank you.

    There is no such thing as a MacBook 1 year and a half with a fan.

    The 12 '' MacBook isn't a fan.

    The last MacBook with a fan was the 2010 model.

    Perhaps you have a MacBook Air or a MacBook Pro, if so you should post your question to one of these areas of the forum.

  • my firefox closes when I close the window, but the process is not stopped since I got the update to firefox

    Since I upgraded to firefox 2 days ago, there a reboot problem. When I close the firefox window, it closes as it normally does, but whenever I try to restart firefox it shows the notification that firefox still works and I first need to stop the previous process before you can start a new one. Finally after I manually stop the firefox process it restarts again.

    What fixed it for me, but I am running v.15 because of other problems. I have to say I tried a hundred things and nothing works. I made the note never stop, even hours later, if I forgot to go to the Task Manager to end the process. It seems not important to know if I had extensions or modules running or not. I tried this before today. My graphics driver updated a couple of months. In any case, THANK YOU for this, finally something is going right.

Maybe you are looking for