How to remove only after the passage of the Tween is finished

I want last removeChild (dropBall1); statement, in this script to be executed only after the move from Tween is completed. How do I do that? right now it is, it is removed immediately.

function onClick10f1 (e: MouseEvent) {}

addChild (dropBall1)

removeChild (bigBall1)

dropBall1.x = 356.10.

dropBall1.y = 28;

var bigBDrop1: Tween = new Tween (dropBall1, "y", Regular.easeIn, 28, 156, 1, true);

removeChild (dropBall1);

do not take local interpolation function.  they are likely to be gc had completion and import the tweenevent:

var bigBDrop1: Tween

function onClick10f1 (e: MouseEvent) {}

addChild (dropBall1)

removeChild (bigBall1)

dropBall1.x = 356.10.

dropBall1.y = 28;

bigBDrop1 = new Tween (dropBall1, "y", Regular.easeIn, 28, 156, 1, true);

bigBDrop1.addEventListener ( fl.transitions.TweenEvent.MOTION_FINISH , tweenFinishF);

}

function tweenFinishF(e:TweenEvent):void {}

removeChild (dropBall1);

}

Tags: Adobe Animate

Similar Questions

  • GetAxisScalingMode is updated only after the graphic update

    Hello

    on a xy chart, I'm traced multiple xy plots and a few vertical lines (2 or 4) to indicate some areas of interest. For the development of these lines, I need to know the value of y minimum and maximum of the graph. That's why I thought using GetAxisScalingMode (autoscaling value), which returns the maximum value without the need to investigate individual data sets (large) of the xy plots ideally.

    In principle, this approach works.

    Now, to avoid flicker, I use the following sequence:

    (1) SetCtrlAttribute (Panel, graph_control, ATTR_REFRESH_GRAPH, FALSE);

    (2) plot new xy plots

    (3) obtain ymin, ymax, using GetAxisScalingMode

    (4) vertical lines using plot plot

    (5) SetCtrlAttribute (Panel, graph_control, ATTR_REFRESH_GRAPH, TRUE);

    Unfortunately, this does not work because the range of a chart axis is updated only after the display of the chart.

    First of all, this behavior seems a bit inconsistent for me because using for example. GetCtrlAttribute (Panel, graph_control, ATTR_NUM_PLOTS, & plot_handles) returns the correct number of plots before updating the chart.

    Second, you need a suggestion of how to achieve the goal of flicker free plot xy plots so many vertical lines, covering the range complete y?

    Thank you!!

    Wolfgang

    OK... Finally!

    Now, I can confirm that this behavior is weird (I would even call it a bug...)

    Here is a workaround:

    The fundamental discovery is that the axis interval is updated if a plot is set, even if the chart is not updated. The procedure is:

    (1) SetCtrlAttribute (Panel, graph_control, ATTR_REFRESH_GRAPH, FALSE);

    (2) plot new xy plots

    3) get ymin, ymax, using GetAxisScalingMode / / doesn't work here because of the CVI BUG

    (4) vertical lines using plot plot

    4A) GetCtrlAttribute (Panel, graph_control, ATTR_NUM_PLOTS, & plot_handles);

    4 (b) SetCtrlAttribute (Panel, graph_control, ATTR_PLOT_ZPLANE_POSITION, plot_handles - 1); These two lines are stupid here because the lines are subsequently demolished, but they update the chart axis range!

    4 c) get ymin, ymax, using GetAxisScalingMode / / now it works

    d 4) remove vertical lines

    4th) vertical plots using plot / / and now the lines have the right length

    (5) SetCtrlAttribute (Panel, graph_control, ATTR_REFRESH_GRAPH, TRUE);

    Wolfgang

  • RE: iOS iPhone 6 s 10 how l remove or disable the slippery camera from outside the locked screen? This feature is a security and threat privacy for me.

    RE: iOS iPhone 6 s 10 how l remove or disable the slippery camera from outside the locked screen? This feature is a security and threat privacy for me.

    You can not. However, I'm not sure why you think it's a privacy or security threat. The only thing that can be accessed without unlocking the phone is the camera to take pictures. No one can access your data already on the phone.

    You can send feedback to Apple here:

    http://www.Apple.com/feedback

  • How to remove icloud after forgetting password?

    How to remove icloud after forgetting password? iPhone 5 ios 9.1.2 white

    You need to recover the access code:

    https://iforgot.Apple.com

    Alternatively, take a proof that you are the original purchaser of the Apple phone.

  • Re-installing Windows XP (OEM - purchased version of njewspaper ad without mentioning it was OEM only) after the installation of the pirate Win Xp (full version). Can I retrieve pirate settings to not reinstall aps (have about 100). __

    Hello
    I'm trying to reinstall Windows XP (OEM - purchased version advertises in newspapers not to mention it was OEM only) after the installation of the pirate Win Xp (full version). Can I retrieve pirate settings to not reinstall aps (have about 100).
    (I guess I have to change registry to eventually replace OEM version with pirate version - it still would make it impossible to activate the automatic updates). Or I can just reinstall registry then replace edition OEM version? (Would still allow the applications to be installed without the re - install?) (A major pain).

    Visit the Genuine Microsoft software and click on Validate Windows.  After that validation fails, look for the Get Genuine button and click on it to find out how to acquire a Kit of WGA. Carey Frisch

  • How to remove and delete the in computer HP recovery Partition.

    Hello

    How to remove and delete the Partition Recovery on HP computer after I installed win 7 (clean install) befor was Vista?

    Thank you


  • With the help of Adobe Muse, how to remove .html at the end of the address of the page?

    I created a Web page with Adobe Muse and all pages have .html at the end of the address, and this is the only way that links to the page works, or if you type the address, then type .html at the end (for example, www.abcdefg.com/page1.html when I would use www.abcdefg.com/page1 only).  How can I fix?

    Re: How to remove HTML from the url

  • How to remove pictures from the library active?

    Hello

    Can someone help me how to remove images of the current library?

    When I save the resulting code, it will keep all images and many are testing and then I don't want on the web.

    And I did not find how to delete in the active pane

    Hey there, LastTech.

    There is a very good reason we'll automatically remove what you use - if you have two files in the same directory, chances are you share the images directory.  If you make sure you delete everything in the images directory, you might remove something that has another project (or another HTML file) is dependent on.  It is very difficult for us to determine what is used in other projects, so just leave us the images / directory only.

    Thank you

    -Elaine

  • How to remove or hide the option to remove history, and how to remove Private Browsing entirely.

    How to remove or hide the delete history option, and how to remove Private Browsing entirely?

    See if this addon does what you want.

    https://addons.Mozilla.org/en-us/Firefox/addon/disable-private-browsing/?src=SS

  • Satellite A30 921: how to remove and replace the memory?

    Hi, can someone help me how to remove and replace the memory of satellite A30 921. and also, please give a detailed instruction.

    Thank you in advance.

    Hello

    There is not much to explain. On the low side in the Middle it is placed to cover memory (fixed with two screws). Remove the cover and you will see 2 slots there. I put t know how much memory you here but like Stefan says you can use max 2 GB of RAM (2 x 1024Mo PC2700 - PA3313U-1M1G). How to remove the memory modules, which you can see on http://www.hardwaresecrets.com/article/189/5

    Good bye

  • How to remove applications from the startup folder

    How to remove applications from the startup folder

    Settings > users and groups > Login Items.

  • Laptop HP Touchsmart 15-D020: how to remove and replace the keyboard on laptop HP Touchsmart 15-D020NR

    I spilt a drink on my keyboard and now I can not turn off the caps lock and a number of keys does not work. I need instructions on how to remove and replace the keyboard frame. Thank you.

    On your page of support-look for Maintenance and Service of Guide in the manuals.

    http://support.HP.com/us-en/product/HP-15-D000-TouchSmart-notebook-PC-series/6627588/model/6761859/manuals

  • I sell desktop computer and need to know how to remove all of the pc?

    I sell desktop computer and need to know how to remove all of the pc?

    The most difficult part of the first paragraph is to create the boot floppies - which can be complicated and requires installation of Windows disks.

    Perhaps a third simple but effective alternative is simply to re - install Windows on your computer from the disc that came with your computer or from the recovery partition.  Resettlement will delete all files on the disc and replace them with the New Installation of Windows.  At this point, the fragments of your old files may remain on your hard drive.  So once relocation complete, download and install the freeware 'Eraser' software, run it and you want to specify the "free space" erased on your hard drive.  This will overwrite firmly all the data remains that has not already been overwritten by the Windows Installation.

    Eraser: http://eraser.heidi.ie/download.php>

    HTH,
    JW

  • Printer works only after the reboot or shutdown

    I use win xp sp3 computer. My only works only after the restart or shutdown. If I reinstall the printer driver, then it will work. I have reinstall win xp but similer happen again. I scanned my system with kaspersky. But no change. I need a permanent solution. Please help me...

    Hi Pierre,.

    1. what exactly happens when you try to use the printer?

    2. you receive messages or error codes?

    3. What is the brand and model of your printer?

    Method 1:

    You can try to start the fixit printer and check if it helps:

    Diagnose and automatically fix problems printing and printer

    Also see the article and check:

    Resources for the resolution of the printer in Windows XP problems

    Method 2:

    You can check the event viewer to learn more about the problem.

    Procedure to view and manage event logs in Event Viewer in Windows XP

  • How to remove programs from the system tray without removing them from the startup?

    How to remove programs from the system tray without removing them from the startup on Windows XP folder?

    Hello

    The first step is to identify the program that represents the icon and decide whether it should be in the system tray (most are not necessary). Hold the cursor of the mouse on the icon to see the name of the program that launches the icon.

    The best bet is to click the icon to see if this opens the box of the program options. If so, look for a selection similar to "remove from the system tray.

    Alternatively, you can hide the icons in the system tray.

    Here's how:

    1. right click on the taskbar and select "Properties".

    2. in the "Notification area" click "Hide inactive icons" if she already unchecked and then click on the button "Customize".

    3. click on the ' column next to each of your current behavior and choose one of the three behaviors for each program icon that appears in the system tray: "Hide when it is idle," "Always hide", or "always show".»

    If you hide an icon, but then see it again the next time that you log on to Windows, you may need to uninstall the program to permanently remove the icon. Uninstall the program permanently removes the program from your computer. For more information, see Uninstall or change a program.

Maybe you are looking for