Problem with RemoveMovieClip - code works in AS 1.0, 2.0 not

I have a fully functional Flash created with MX2004, Action Script 1.0 patch. I am now it work with Flash 8 and compile to ActionScript 2.0.

I have a clip created like this:

_root.attachMovie ("DynamicLoadScreen", "loadscreen_mc", _root.getNextHighestDepth ());

It creates a dynamic Gauge that appears on top loading clip.

When the clip is finished loading, I throw the Gauge:

_root.loadscreen_mc.removeMovieClip ();

It has always worked perfectly fine with ACE 1.0 (not yet, if I change the post parameter). Now, with the 2.0, it fails. The clip doesn't go away, nothing happens, it just stays there.

I noticed the following in the MovieClip help file reference:

The MovieClip.getNextHighestDepth () method used in this example requires Flash Player 7 or later. If your SWF file includes a component of version 2, use the 2 version DepthManager class components rather than the MovieClip.getNextHighestDepth () method.

Now, it is true that I added a ComboBox in this file that it had never before. Maybe that's my problem?

If I put the publication parameters AS 1.0 and test the code removeMovieClip() works, but my drop-down list box is unavailable. If I compile for ACE 2.0, code RemoveMoveClip() on doe does NOT work, but my drop-down list box is here.

Now you are looking for information about the DepthManager. What a PITA! Pointers appreciated...

Thank you!

I'll answer my own question:

Yes, you need to use the DepthManager, if you use v2 components. It is quite simple, although not very clear documentation on how to pass from one to the other. If you used to do something like:

someClip.attachMovie ("DynamicLoadScreen", "loadscreen_mc", someClip.getNextHighestDepth ());

Do it now:

Import mx.managers.DepthManager; at the beginning of your ACE
someClip.loadscreen_mc = someClip.createChildAtDepth ("DynamicLoadScreen", DepthManager.kTop);

Dispose it works the same way as before.

Tags: Adobe Animate

Similar Questions

  • Hi.I download Microsoft Security Essentials and installation becomes a problem with the code: 0 x 80070643. If you can help me...

    Hi.I download Microsoft Security Essentials and installation becomes a problem with the code: 0 x 80070643. If you can help me...

    Support Microsoft Security Essentials forums
    http://social.answers.Microsoft.com/forums/en-us/category/MSE

    Can I install Microsoft Security Essentials [or any other anti-virus/anti-spyware application] to clean my already infected computer?
    http://social.answers.Microsoft.com/forums/en-us/msescan/thread/87058857-D181-4019-a723-efd9a49d9275

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • my iPhone 6s has problems with the GPS when I use some applications, it does not work well and give especially the bad road. Can someone help me?

    my iPhone 6s has problems with the GPS when I use some applications, it does not work well and give especially the bad road. Can someone help me?

    My iphone 6 has started having the same problem. Its literally the GPS. Saying that it does not find me at all. Ive seen say location for more than an hour in the suburbs of chicago. It started to happen to me after I downloaded the latest update for the iphone. I hope they react and let you know what is happening because I'm dying to know as well.

  • I've updated to 2015.2 in September and started having problems with freezing while working on the photos. I upgraded my memory from 4 GB to 8 GB and it has disappeared (in most cases); However, I always feel a lot of questions of export of JPEGs (gel) bu

    I've updated to 2015.2 in September and started having problems with freezing while working on the photos. I upgraded my memory from 4 GB to 8 GB and it has disappeared (in most cases); However, I always feel a lot of questions of export of JPEGs (gel) but not tif files? Very frustrating. Tried to install the new updates but my creative cloud is just a blank page?

    Hello

    I think you are referring to the white empty window of CC desktop application.

    Please refer to the threads below where this issue has been addressed:

    Creative cloud is empty window why?

    Cloud Desktop App is empty?

    New application Cloud Creative unusable: it is empty!

    Re: Empty opening creative cloud app

    Kind regards

    Sheena

  • I have currently problems with control panel Nvidia causing black outs and computer freezing/not not be able to start.

    I have currently problems with control panel Nvidia causing black outs and computer freezing/not not be able to start.

    1) update your nVidia/software drivers to the latest version for your model video card + operating system.

    (2) check that the equipment is not defective.

    This is not a Microsoft / number of the operating system.  For additional troubleshooting - contact the manufacturer (nVidia).

  • IM problems with my wireless connection, it says my DNS server does not respond, what is this, can help to somone, thanks

    IM problems with my wireless connection, it says my DNS server does not respond, what is this, can help to somone, thanks

    Hello

     

    Thanks for posting the question in the Microsoft Community!

    You can't use the wireless connection and the message that the DNS server is not responding.

    The problem may occur if the computer is unable to connect to the DNS server.

    To check, I suggest you follow the steps:

    Method 1: Re-register the DNS

     

    a. Click Start. Type cmd in the search box and press ENTER.

    b. at the command prompt, type the following command and press ENTER:
    ipconfig/flushdns (there is a space between ipconfig and /)

    It will display the message properly emptied the cache of DNS resolution.

    c. at the command prompt, type the following command and press ENTER:
    ipconfig/registerdns (there is a space between ipconfig and /)

    d. at the command prompt, type the following command and press ENTER:

    ipconfig/all (there is a space between ipconfig and /)
    The command ipconfig/all command displays for all your network adapters, TCP/IP in Windows settings.

    If your IP address of your Local network connection is 0.0.0.0 or 169.x.x.x (where x is a number any), then your computer does not receive an IP address from router.
    If this is the case, try this:

    i. enough at the command prompt ipconfig and press ENTER

    II. ipconfig / renew in command prompt and press ENTER

    The test again by typing ipconfig/all to see what is the address? (If you are on a router, it should start by or 192.168.0.x or 192.168.1.x 10.x.x.x)

    Method 2:

    a. click Start and then click Control Panel.

    b. go to the networking and sharing Center and then click on change adapter settings.

    c. right-click on connection to the Local network and select Properties.

    d. Select Internet Protocol Version 6, and then click Properties.

    e. choose the DNS server to obtain an address automatically , then press Ok.

    f. Select obtain IP address automatically.

    g. Repeat steps for Internet Protocol version 4 as well.

    http://social.answers.Microsoft.com/forums/en-us/w7network/thread/2e81fca4-35bb-4af9-86a1-7326d2fe91b3

     

    I hope this helps. If the problem persists, or if you have problems of Windows in the future, let us know and we would be happy to help you.

     

  • CVI 8 has problems with the code of CVI 2009 - why?

    I use NI CVI 2009 and thus programmed. Now, I bought 8 CVI and wants to continue programming. But CVI reports errors in the source code of the ICB 9 and I do not understand what is the problem?

    example of

    char save [size + 1];

    Erros

    128, integer 22 should be constant.
    ...

    What is the problem with this simple line of code that worked perfectly before?

    Unfortunately the statements of variable length arrays is a feature of c99 is supported in CVI9, but probably not in version 8. If you use CVI8.5, you can try to add this pragma at the code and see if that fixes the problem, but according to this list of features posted by Luis, I'm not positive in this regard:

    #pragma iso_9899_1999;

  • Problems with error code: 0 x 80070246 (resolved)

    Hello, I recently had a problem with an error on Windows Vista Home Basic x 86 code

    This error, will not let me install updates or service pack.

    Have you tried this solution but it doesn't work:
    http://support.Microsoft.com/kb/942968

    I also tried to use his tool.
    http://support.Microsoft.com/kb/947821

    Followed step by step, as you wrote, but unfortunately none of them worked.

    Please help me, I really need to solve this problem, and ca't understand how.

    Best regards.

    Adrian.

    Well, finally I solved this problem, after trying all the stuff Microsoft said, and to try a few methods I found on the internet, I solved the problem by doing a repair installation with the help of a tutorial I found on the web.

    Here it is:
    http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html

    Hope this helps someone else.

    Good bye.

    Adrian.

  • Problem with the Code for the form Page

    I have a problem with a page of form to http://www.enonumc.com/PrayerRequest.html in the month passed, the form created an email that worked perfectly, providing all the information to a specified address.

    Recently (last week), we have received an application form email that still had the information for each of the observations labels, but no info after the sign = for the top three submissions. I always get the news option (name, e-mail address, phone number), but none of the drop-down choice list of the box, the text in text box in the prayer request box, or choice of rather we must respond or not.

    Any suggestions of what has happened with the code?

    You can start with code 50 or so on the page validation errors.

    [Valid] Validation of the markup of http://www.enonumc.com/PrayerRequest.html - W3C Markup Validator

    As to why the form processing script doesn't work well, maybe something has changed on your web server.   Ask your hosting provider.

    Nancy O.

  • Problem with the connection works only not with the caterers

    I have a weird problem with logging, and perhaps someone here can point me in the right direction to watch. I have install a FileHandler customized for different newspapers. He worked for a few years. Now it no longer works. Nothing is found in the log file even if it is created.

    I have narrowed it down to there's a change in the JVM. If I run application under JDK 1.6.0_05 (what I had in production), it works. If I run the current JDK 1.6.0_22 application, it does not. This is on Solaris 10 and the only change I make is to change the symbolic link 'later' in ' / usr/jdk "to a JDK version or the other. It is reproducible 100% of the time. Use the old JDK and it works, use the JDK again and it's not.

    I'm at a loss as to what could be wrong.

    Here is the code which implements the Manager and associate it with the newspaper:

    Recorder L = Logger.getLogger (loggerName);
    If (null! = level) {}
    l.setLevel (level);
    }
    System.out.println ("logger level is" + l.getLevel ());
    If (null! = useParentHandlers) {}
    l.setUseParentHandlers (useParentHandlers);
    }
    String loggerPattern = logDir + reason;
    Manager: new = FileHandler (loggerPattern, limit, count, append);
    h.setLevel (Level.ALL);
    Formatter F = new UniformLogFormatter();
    h.setFormatter (f);
    l.addHandler (h);
    Logger.info ("FileHandler added [" + loggerPattern + ",]" + limit + "," + count + "," + add + "] for logger:" + loggerName);
    l.info ("open log file");

    I see the 'open log file' but never to see any other message of the breast journal. The "server.log" sees the messages, however.

    Any help will be greatly appreciated.

    Brett

    At one point, the internals of the LogManager/writer classes have been modified so that they maintain WeakReferences for child loggers. My guess is that your code is not keep a hard reference to the logger which you set up and it becomes garbage collector more later in time (and so do not have all future messages).

  • Problem with the Code/Design view buttons

    (My bad... maybe a clearer title will help you...)

    OK, I work with DW CS4 v.10.0 Build 4117 on a platform of Win XP Pro SP3.

    When you work with files from my site, they open in Code view.  The Split and design buttons are grayed out.  When I click the page layout button, the check mark is sometimes next to the option Code, but sometimes next to Design (even if the page is clearly displayed only in Code view!).

    To view the file in Design view or split view, click the page setup button, click on the Code, click on the button layout again, click Design or split view and then it will display the page in this way file.

    It's SO frustrating!  Is this a bug in CS4?  (I scanned through the other topics and can't seem to find anything about it.)  I don't remember having this problem with CS3 and have spoken with other DW CS3 users who also say that they have never had this happen.

    What can I do?

    Thanks in advance for any help you can provide.

    Susan

    Hi Susan,.

    I might have a solution for this one. I had the same problem. It would be 'reliable' whenever I would create a new PHP file.

    "File" > "New" > "PHP" > Layout 'None' > 'Create' - no buttons 'Split' or 'Design' (grey)

    In 'preferences' under 'File Types/errors', there is a section "open in code view".

    I removed the. The extension PHP from here, tried again and it worked!

    Maybe it will work for you.

    Good luck

    Tony

  • I have a problem with the code c0000135 error does anyone have a solution to this

    I have a problem with som kind of virus code c0000135 error anyone has a solution to this

    Hello, masts,

    What were you doing when the error occurred?

    What makes you think that there is a problem with a virus?

    View all content of the message, please.

    During this time:

    Restart your computer and start typing the F8 key

    Select Mode safe mode with networking

    Download the following tool and run a scan complete to rule out malware

    http://www.Microsoft.com/security/PC-Security/Malware-removal.aspx

    While still in safe mode, use this scanner (precaution) free online

    http://housecall.trendmicro.com/

    Restart Windows

    Start > type CMD

    Press ENTER if you are using Windows XP

    If you use Windows Vista or Windows 7, right click on CMD and select run as administrator

    Type the following: sfc/scannow

    Press enter

    Note: There is a space between sfc and / scannow

    Asked may to your Windows installation media if corrupt files are found.  The System File Checker will repair the files if possible.  If it can't, you will have to reinstall Windows

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833/PL

    You can also see this re: same error

    Windows 7 service pack 1 update failed error C0000135-missing sqmapi.dll

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_update/Windows-7-Service-Pack-1-update-failed-error-code/a9e7c803-6443-E011-90B6-1cc1de79d2e2

  • I have a problem with the computer work is not correctly after you install the KB2753842 update.

    This update of windows has been installed automatically today (22/12/2012) as the (successful with this date) shows on the Page update.  Since that it has been installed, the computer is constantly read/write on the disc at 100% at all times (i.e. non-stop).  Performance is significantly degraded.  I rebooted several times, whenever the system shows the updates are being configured on tap-dwon and commissioning.  I want to reinstall the update because I think that it was not successful, even if the display update Page shows successful installation.  When I try to find and remove the update under the Panel of control-> program and features-> Windows updates, this update is NOT displayed (latest updates are 13/12/2012).  How can I remove and reinstall this security update?  It is a BIG problem at the moment.  Computer is almost non-functional.  Thnx.

    Original title: update security for windows (KB2753842)

    Nirmal S, thank you.  System Restore did the trick.  I restored prior update checkpoint and then the system automatically re-installed the latest update (which is one I had a problem with).  Problem solved!  My computer working again 'normally '.

    Also, I learned a few new things about the updates and restorations, so...

    Bravo for Nirmal S!

    Kind regards...

  • Problems with the .cod files

    Hello

    I'm selling my app in MobiHand but I'm having a problem downloading my app to download.  I am trying to download my .jad and .cod files but I get this error message:

    "Some of the COD files mentioned in the JAD file, are not uploaded"

    If I look in my .jad file I can see a reference to a - 1.cod beside that file: RIM-COD-URL-1:

    I read that if you change the extension of the .cod file in a zip file, you can then extract other .cod files.  This has not worked for me. I have only 1 file of cod in my build directory.  I use the eclipse plugin.

    Thanks for any help.

    Make sure you are deleing files JAD and cod before making your build of 'production '.

    If you app has crossed the line of 64K at a time, then came back, your JAD will still retain this obsolete reference to the unused COD file.

  • Problem with the tiles work is not on the computer.

    My tiles does not work since I got the new 8.1 (or was) new updated

    Its been irritates me for some time now, I can open Viewer, image and music in tiling, but other applications as soon as I click on them
    Simply close it.
    Thank you!

    http://Windows.Microsoft.com/en-us/Windows-8/what-troubleshoot-problems-app

    Solve problems with a soft

    Difficulty App Store in Windows 8.1
    http://blogs.msdn.com/b/notime/archive/2013/10/21/10458031.aspx

Maybe you are looking for