Checking to see if a movieclip has a child

I need an if statement or the like that checks to see whether
a movie clip has a child attached to it.
I'm looking to remove an image that i loaded by using
removeChild, but i need a way of knowing if the image is there or
not, because if it's not removeChild gives me errors.
Thanks!

You have numChildren property. You can iterate trough all
children, or just check if numChildren is != 0.
Best.

Similar Messages

  • I downloaded the latest version of Adobe Reader (11.0.07) and installed it. Message said install successful. But APEX learning software does a check to see if my system has Adobe Reader and it says I still need to install it. What's up? This has happened

    I downloaded the latest version of Adobe Reader (11.0.07) and installed it. Message said install successful. But APEX learning software does a check to see if my system has Adobe Reader and it says I still need to install it. What's up? This has happened to me numerous times throughout the years. I need to get to the bottom of this problem. Thanks for your help.

    You still don't give us the message you are receiving.  My guess: you are trying to open a PDF in a browser that uses its own PDF viewer, not the Adobe Reader plugin: http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • How do I check to see if my mac has spyware

    How do I check to see if my mac has spyware?

    Macs are not currently affected by Spyware, they have excellent security built into them. However there has been a recent Trojan attack. If you are running 10.6.7 run Software Update. I'd also recommend reading Viruses by Thomas Reed.

  • Checking to see if a document has a digital signature

    Hello,
    I have created a stand alone static PDF document using the Designer 7.0.
    I have some code that checks the document to ensure the proper data fields have been filled out before the user can sign the form. After signing the form the, the user is supposed to click a submit button where 2 things happen, first the data is sent for processing (do not the the digital signature info here) and second a copy of the PDF is save for archiving purposes (with digital signature).
    What I need to know is how do I verify the digital signature field is not null or empty?
    If I check its raw value, before and after are the same (null or empty even thought I can see that the form has been signed by looking at the screen). If I used the signatureInfo functions available in professional, I get a security violation error. The form is filled out using Adobe Reader and the forms have digital signature right added via the Reader Extensions v6.0.
    Any help is greatly appreciated.
    Thanks
    Ben

    Hi Ben, First advice is upgrade to designer 7.1. There are major improvements in the stability of designer. 7.0 kept crashing on me constantly.
    I created a little function which should help you out.
    function isSigned(sigField){
    var oState = event.target.getField(sigField).signatureInfo().status;
    /* if (oState == -1)
    //app.alert("Not a signturefield");
    else if (oState == 0)
    //app.alert("Signature is Blank");
    else if (oState == 1)
    //app.alert("Unknown Status");
    else if (oState == 2)
    //app.alert("Signature is invalid");
    else if (oState == 3)
    //app.alert("Sig of Document is valid, identity of signer could not be verified");
    else if (oState == 4)
    //app.alert("Sig of Document is valid, identity of signer is valid");
    else
    //app.alert("Value was " + oState); */
    return oState;
    You need to pass this function the fully qualified SOM so if the signature field is in form.subform.page1.sigField you would call it like this isSigned("form[0].subform[0].page1[0].sigField[0]").
    Good luck.

  • How can I check to see if my software has been registered?

    After a recent hardware replacement I am unable to find my Aperture 2 download. I never used it anyway so i'm not concerned but would like to be able to pass it on if it can be, is this possible? How can I check to see if I even registered it? I have the original packaging and all contents including Serial numbers, support ID, and four software coupons for updates. I am a bit technophobe, sorry!
    So,
    1. How can I check to see if it was registered correctly?
    2. Can someone else use the software?
    Hope someone can help.

    You don't need to check registration. In the Apple world registering software really doesn't have much of a purpose.
    If the software was bought on DVD and you have the serial number you are free to give it or sell it to anyone you wish.  Just keep in mind that Aperture 2 is very old and while it (sort of) works on the newer OS's it really isn;t a good solution for anyone serious about using Aperture. 
    It would be OK for someone with older hardware that is unable to upgrade past Snow Leopard but for anyone with newer hardware it would be a mistake to use.

  • Is there a way to check to see if an IMEI has been submitted for unlock?

    I wanted to ask is there is any way to check IMEI numbers to see whether or not they have been submitted to Apple for an unlock??
    I have two phones I need to check, and iPhone 4 which is my daughters and was a birthday present, and an iPhone 5 which is mine. Both are NOT blacklisted, barred, reported lost or stolen, both are legitimate phones.
    The iPhone 4 was paid for in full 3 weeks ago, and is locked to VODAFONE UK. The company told me 1-3 days, three weeks later, nothing, and all I get from them now is "we will email you when its been done"
    The iPhone 5 is locked to Orange/EE UK, this again was done three weeks ago, but directly through ORANGE, who tell me the unlock request has been submitted, and it is imminent but then they have me a "HOW TO" of how to unlock it, and told me this has to be done this way or it wont work??
    Here is what they told me I had to do they sent this via email
    Please find the process for unlocking your Apple handset:- 
    Before attempting the procedure, please take a moment to read the following information. Please make sure that your iphone is up to date the latest software version. This can be checked by connecting your device to iTunes via a PC/Mac/Laptop.
    Please be aware that if you have used an unauthorised unlock on your Apple device then Orange cannot be held responsible for any errors that may occur, as this procedure will not only be unsuccessful, it may damage the device. If you have modified the software please update with the latest Apple approved version.
    Apple devices differ from all other manufacturers in that there is no code required to enter into your device to unlock it. However Orange have requested on your behalf to Apple that your device be prepared for unlock and the procedure below advises how you can complete this process. Only handset’s that have been requested to be unlocked viaOrange or other networks can be unlocked this way and the below instruction will not work another Apple devices.
    Apple Unlock Procedure
    1)Insert a non-T-mobile 3G SIM card. This must be a network provider who also supplies the iphone/ipad.
    2)Switch ON the handset.
    3)Connect to iTunes using USB cable
    4)Use the “restore” option within iTunes (located at the bottom of iTunes not the top)
    5)The handset may then display: USB cable and iTunes icon.
    6)Disconnect from USB then re-connect
    7)Synchronise device with iTunes
    8)Once synchronised a message will appear on iTunes stating “Congratulations, your iPhone has been unlocked” If using IOS5 this message will not show
    9)Follow on screen set up instructions to enable new carrier settings
    Your handset should now be successfully unlocked
    Should this not show, please keep other network 3G sim in the iphone and restore the iphone via iTunes making sure all data is backed up first.
    You can also get some self help tips, please put the following into Google and search; support.apple.com/kb/TS3198
    Regards
    If anyone has any idea, please let me know, its driving me mad lol, two iphones, both not working

    Unfortunately, many carriers "drag their feet" when it comes to processing iPhone unlock requests. All Apple does is add the phone's IMEI number to the officially unlocked database, and Apple does this immediately. The breakdown is with your carrier.
    You can call AppleCare, they'll be able to tell you whether the IMEI number is in the database or not.

  • How should I check to see if a member has a property?

    What is the recommended Lingo is for safely testing members to see if they have a property, such as when additional properties are added to members in a new release of Shockwave?  findPos() does not work on members, and trying to access the property when it doesn't exist (any previous Shockwave release) throws an error.  Is there something like findPos() for members?
    thanks,
    Robert

    Actually, here's another idea...
    Photoshop can be set to make and keep a detailed history of all you've done to a particular document.  This may provide you the ability you seek...
    Edit - Preferences - General, look in the History Log section.  If you set it to remember Detailed items in Metadata, the result is available in the File - File Info - History tab.  For the common formats (PSD, JPEG) the information is saved with the file and is thus cumulative across sessions.
    Of course, if you run a filter, then hit Undo, the filter information will still be in that history, even though it's not been applied to the image.
    -Noel

  • CP5 Checking to see if a slide has been viewed between projects

    Honestly, I'm not the one thinking of some of my questions......
    Here is the scenario.  We have a course made up of lessons that have been aggregated together.  This course has an Intro, X number of lessons and a Completion.  In the Intro there is a legal disclaimer.  In each of the lessons there is the same legal disclaimer incase they are ever used individually used somewhere else.  The question is, is there some advanced action that can be written that says if the student has viewed the disclaimer in the intro then it won't be visible in the lessons that are aggregated with that Intro.  If the lessons are used elsewhere the disclaimer is visible.
    Well I hope that is clearer than mud.
    Thank you,
    Susan

    Susan,
    Bit late and I'm still struggling with jetlag. Some ideas: you'll have to transfer information from one file to another (user variable), in this case from the intro file to all the others. Michael Lund (cpguru) has a Save&Load Data widget that could be used for that case. Once you have the variable in the file you can use a conditional action to jump over the disclaimer if the variable is set to 'viewed' (or to what you want) in each of the other files.
    Lilybiri

  • Is it possible to check to see if a sequence has been called, or is run by a user?

    I'd like a subsequence to be called, but I'd like the Sequence to run differently if it is called versus run by a user.
    What statement should I use and is this even possible?
    Thanks.

    How would the user run the sequence by itself?  Are talking about interactive mode?
    If Runstate.Caller returns NULL, or Nothing in TestStand.  Then you have an interactive execution, i.e. the sequence was not called by anything.
    Thanks,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • An alert message pops up upon opening saying could not initiate application security component, and it says to check to see if profile has no read/write restrictions.

    An alert message pops up upon opening saying could not initiate application security component, and it says to check to see if profile has no read/write restrictions. Than when it opens all of my saved passwords are gone, I use a master password and its disabled. When I try to enter in a new on e it says can't change password. I can't even open yahoo e-mail says that my ssl security is down but when I check it its clicked. I'm just very confused as to whats going on.
    == This happened ==
    Every time Firefox opened
    == 5/14/2010 ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5

    See [[Could not initialize the browser security component]]
    Rename (or delete) secmod.db (secmod.db.old) in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] in case there is a problem with the file.

  • How can I check to see if my version of QuickTime Pro 7.6.6 already has ProApps QuickTime Codecs installed? I also have Final Cut Pro 6. I'm asking because my computer can't seem to play ProRes 422 codec video without stuttering or skipping?

    I have a fairly capable MacBook Pro (2.93 GHzIntel Core 2 Duo processor, 4GB 1067 MHz DDR3 memory and a 1TB HD -5400 rpm, so I am hoping it's not that my computer that can't support it and it's something more simple like not have ProApps QuickTime codecs installed. Thanks in advance!

    How can I check to see if my version of QuickTime Pro 7.6.6 already has ProApps QuickTime Codecs installed? I also have Final Cut Pro 6. I'm asking because my computer can't seem to play ProRes 422 codec video without stuttering or skipping?
    If you can view a ProRes 4-2-2 video at all, then you either have the independent ProRes422 Playback component installed or the FCP "Pro" video components installed.
    I have a fairly capable MacBook Pro (2.93 GHzIntel Core 2 Duo processor, 4GB 1067 MHz DDR3 memory and a 1TB HD -5400 rpm, so I am hoping it's not that my computer that can't support it and it's something more simple like not have ProApps QuickTime codecs installed.
    Check your "~/Library/QuickTime" folder for your various "Pro" components. If in doubt that you have them all, re-run the FCP installer and it should add any missing components, apps, or utilities.

  • How do I check to see if my reinstalled CS6 Web Design program has been activated?

    I installed CS6--from a trial download--on my reformatted laptop. I deactivated the program before reformatting the laptop. I then filled in the serial number from my purchased CS6 Web Design program. The trial version (which lists as CS6 Master Collection) started, but I get screens asking if I want to update my trail version. I can not get help from Adobe Customer Care (800-833-6687) because they do not support Creative Suite. The telephone system referred me to the web system (www.adobe.com/getsupport), which does not allow me connection to Live Chat. It refers me to the community forum. So, guys, how do I check to see if my reinstalled CS6 Web Design program has be activated?

    When I click on the link I just gave you, this is what I see:
    Your last message was ambiguous about whether you had actually talked to Web Chat.
    I've been told that Web Chat is handled from the US time zones so if you're in a different part of the world, you may have to accommodate that.
    Serial number issues cannot be handled in a forum because (obviously), you're communicating a serial number which would  be broadcast to the entire internet. Also, few Adobe employees are on most of the forums. There are NO Adobe employees on this forum.

  • Unable to open document. Please check to see if you have read permission for the above file.

    System:
    Adobe Acrobat X Pro, 10.1.2
    Windows 7 Enterprise, 32-bit
    Quad Core badass CPU
    4GB RAM
    MS Word 2010 (Office 2010)
    I installed the latest version as Administrator and am running as Administrator. I have all rights to all files on the PC.
    When I attempt to create a PDF from any Word document, whether .DOC or .DOCX, I get an error window every time:
    "Unable to open document:"
    "[document location]"
    "Please check to see if you have read permission for the above file."
    This happens after the little notice pops up "Starting the application which created the document...."
    If I open Word and create PDF from the ribbon, it works. It still won't allow me to create from Acrobat.
    It creates PDFs from Excel files but not DOC files. I've searched for solutions but found none. I did find this from July of 2011:
    "I have found out from Adobe technical support that this is a known issue with Office 2010 SP1 installed. This is an FYI for anyone else experiencing this issue, remove SP1 and it will work ok. They said an update to correct this issue will be coming within the next quarter."
    I have updated to the latest version 10.1.2 and still have this problem.
    This is a major issue, because it also fails on batch conversions, which is what I really need for the 100 or so documents that need to be PDFed. I'm not going to open each individual file and save each one from within Word.
    This is a KNOWN ISSUE at Adobe, and if you look through the forums you'll find many people having this problem, and so far, I have not seen any solution.
    If anyone has found the solution, please post it here.
    Thanks!
    B

    I think I found a solution. It seems to be relatet to normal.dotm.
    In our environment we have upgraded from XP & Office 2003 to Win7 and Office 2010. Normal.dot is stored on the users home share. When Office 2010 is started for the first time (for a user) it takes some of the old stuff from normal.dot and puts it in the new normal.dotm. When this happens, we get this error in Acrobat X.
    The solution is to rename both normal.dot and notmal.dot to e.g. normal.dot.old and normal.dotm.old. Office/Word 2010 will then create a new, "clean" normal.dotm.
    (By the way, if you are in a corporate environment, you might have changed the default path to normal.dot in Office group policies. You can see it here: HKEY_CURRENT_USER\Software\Policies\Microsoft\office\14.0\common\general\usertemplates)
    I would be interested in knowing exactly why/what in normal.dotm caused this error. I can provide you (Adobe) with a faulty normal.dot(m), if you're interested.

  • TS3899 How do I check to see if the problem resides on the server (e.g., the mail server is not responding) rather than assuming the issue is with my phone and devise setup?

    As of sometime after September 10, 2012, at 4:40PM, I have not been receiving any mail.  Not on my iPhone, iPad, iMac, or MacBookPro.  The trouble shooting help on Apple's web site is designed to help ensure my devise settings are accurate.  However, I moved from .Mac to .me and now to .cloud and have operating with no issues for several months on the iCloud.
    How can I check to see if my mail problem is really Apple's fault rather than double checking all my devise settings ad nausiam?  I feel there is a server issue with Apple because none of my devises can receive mail, however, I do not know how to validate my theory with Apple.  I get an error message telling me:
    Cannot Get Mail
    The connection to the server failed.
    Apple says there is a mail server problem affecting 1% of users.  However, am I one of the 1%?  If I assume I am, wait for the problem to be fixed, and then learn I was not one of the 1% and continue to have mail issues, then I will be more frustrated.

    I have the same problem since yesterday morning. I checked the systems status and still the same. I guess we are the 1.1% who has problem with their email.

  • How do I check to see if a character is NOT contained in a String?

    I am trying to create a program which will read in user inputted text. If the text contains an email address, then the program will output it to screen. However, I also need to put some sort of fall back in there, in case an email address is not contained in the string.
    This is the part I am having problems with. If I enter an email address, it will output it to screen. Maybe someone can help me with a "no valid mail" message.
    I decided to use the '@' character as a reference point, since it is a unique character and should not be used in normal sentances. Since an email address is a continous block of text with no spaces in it,I created 2 substrings - one from '@' going backwards towards the previous space, and one from '@' going forward to the next space.
    First, I tried the following:
    //if(input.indexOf('@') == -1){
         // System.out.println("-no valid email-");
    The program ran and when I entered text containing an email adress, it displayed it on screen. If I didn't include one, it gave me an error: java.lang.StringIndexOutOfBoundsException: -1
    I'm guessing this is happening because if there is no '@' symbol in the user input, and so there is an error with the indexOf('@') statement. Any way to get around this?
    Then I tried the following, bearing in mind the variable length is defined as "input.length()".
    for(int i = 0; i <= length; i++){
         if(input.charAt(i) = '@'){
              break;
         if(i == length){
         System.out.println("-no valid email-");
    this gives me an "unexpected type" error with the if(input.charAt(i) = '@') statement.
    It says it has found a value, but requires a variable. Is the "i" in the FOR loop not a variable?
    Please can anybody help me. Any suggestions appreciated.

    Whenever I run the program, it is ok if I input an email address among the text. IT displays the email address to screen. However, if no email address is entered (ie. just a string of text), it displays the message "-no valid email". But it still gives me an error:
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind
    ex out of range: -1
    at java.lang.String.charAt(String.java:558)
    at CA3a.main(CA3a.java:56)
    Here is my code in full:
    //I decided to use the '@' character as a reference point, since it is a unique character
    //and should not be used in normal sentances. Since an email address is a continous block
    //of text with no spaces in it,I created 2 substrings - one from '@' going
    //backwards towards the previous space, and one from '@' going forward to the next space.
    class CA3a{
       public static void main(String args[]){
    //variable declerations
         String input;
         int indexat, length;
         String part1 = "";
         String part2 = "";
    //prompt user for input
         System.out.println("This program will detect the 1st email address in a string of text.");
         System.out.println("Please enter a string of text");
    //take in input into a stringbuffer
         input = Keyboard.readString();
         StringBuffer buff = new StringBuffer(input);
    //assignments
         length = input.length();
         indexat = input.indexOf('@');
    //check to see if '@' character is present in string
         if(indexat < 0){
            System.out.println("-no valid email-");
    //check for substring part1
         for(int i = indexat; i >= 0; i--){
            if(i == 0){
              part1 = buff.substring(i, indexat);
              break;
            if(input.charAt(i-1) == ' '){
              part1 = buff.substring(i, indexat);
              break;
    //check for substring part2
         for(int i = indexat; i <= length; i++){
            if(i == length){
              part2 = buff.substring(indexat, i);
              break;
            if(input.charAt(i) == ' '){
              part2 = buff.substring(indexat, i);
              break;
    //output the 2 substring variables to screen.
    System.out.println(part1 + part2);
    }

Maybe you are looking for

  • ERROR IN BAPI_INCOMINGINVOICE_CREATE

    HI, Passing these values to header data and item data e_header-invoice_ind     = 'x'.   e_header-doc_date        = sy-datum.   e_header-pstng_date       = sy-datum. e_header-comp_code        = '1505'.   e_header-currency         = 'USD'.   e_header-g

  • Why can't I download my old purchases?

    I had recently had my blackberry 9900 stolen so i switched back to my 9780 and when i logged back into my blackberry app world account it had olny shown the previously downloaded apps from this bold and not the one that was stolen even though they we

  • MacBook Pro A1278 won't turn on.

    Yesterday I connected my iPhone 5 to my MacBook Pro A1278 to install the new iOS 8.1. My MacBook died and I haven't been able to turn it on since, even though it's been fully charged. Is there anything I can do myself other than take it to the Apple

  • Opinions on this "upright" desktop docking stand?

    I'm looking for a stand or dock that will keep my laptop cool while using an external monitor, keyboard, and mouse. Is it possible to boot up/shutdown one's macbook or macbook pro with the laptop folded completely shut while using this dock?? It defi

  • Changing the ADF Calendar

    Hi All, We have a requirement to create a Appointment Page where the Activity Providers can be more than 50 and we dont want to use colors to distinguish between the appointments created for various Activity Providers. What we need is something like