How to check that concrete object is on the scene?

Hi
I wonder how can i check that concrete object is on the scene for example:
var sprite1:Sprite = new SPrite();
stage.addChild(sprite1);
if(?????)
    //do something with sprite1
else
     //add sprite1 to display list and do something with it
Is there any property or method to check this?

If you mean that the object exists, you can try...
if(sprite1)
    trace("it exists");
else
     trace("it's not here");
otherwise, if you mean you want to know if it's on the display list, you need to go thru the display list to see if it's in there...
var child:DisplayObject;
var spriteFound:Boolean = false;
for (var i:uint=0; i < stage.numChildren; i++)
child = stage.getChildAt(i);
if(child == sprite1){
   spriteFound = true;
if(spriteFound){
trace("it's on display list");
} else {
trace("it's not here");

Similar Messages

  • How to check  that same Oracle software versions(including patch versions)

    How to check that same Oracle software versions(including patch versions) is installed on two hosts(machines) ?
    We are using following process:
    On Host A :
    1) Get the Oracle version using SQLPlus -v
    From this output, extract the version number.
    2)Find the patches installed using opatch lsinventory -detail
    From the output , Extract the Patch numbers and Bugs fixed.
    3) Store the version , patch and bugs information in a common file.
    On Host B :
    Repeat the steps 1 and 2 and compare with the values from Host A.
    Please let us know if there is any other method to do this.
    Thanks.

    This is wrong: for Oracle Database version 10.2.0.4 *4* identifies the patch set and does not give information about interim patchs.
    It is correct to use opatch lsinventory to get interim patchs.
    Edited by: P. Forstmann on Jul 21, 2009 12:38 PM

  • How to find out which objects are at the end of the datafiles

    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.

    >
    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.
    >
    You may want to copy this and add it to your toolkit
    See 'What's at the End of the File?' in this Tom Kyte article from the Sept 2004 Oracle Magazine
    http://www.oracle.com/technetwork/issue-archive/o54asktom-086284.html
    And this AskTom blog shows you how to generate a script containing ALTER statements toresize your datafiles to the smallest possible. You can 'pick and choose' from the ALTER statements to do what you want.
    Then of course, you can use techniques from this article by Oracle ACE, and noted author, Jonathan Lewis
    http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/

  • How to check whether a file exist in the program folder or not?

    Hi guys,
    how to check whether a file exist in the program folder or not? Let is say i recieve a file name from user then i want to know if the file is there not and act on that base.
    abdul

    Look at the class java.io.File and the .exists() method:
    http://java.sun.com/j2se/1.4/docs/api/java/io/File.html

  • I would like to know how to draw up a list in a cell (like a pull-down menu) to ease data capture, but I don't know how to do that  ! Do you get the idea ? Thanks !

    I would like to know how to draw up a list in a cell (like a pull-down menu) to ease data capture, but I don't know how to do that  !
    Do you get the idea ?
    Thanks ever so much !

    the numbers manual can be downlaoded from this website under the Apple support area...
    http://support.apple.com/manuals/#numbers
    What your looking for is written out step by step for drop downs and all other special types of user input starting around page 96 in the '09 manual.
    Jason

  • Ipod 60 bg the screen is blinking : SDRAM full test - reset to continue ¿how I do that?, ipod 60 bg the screen is blinking : SDRAM full test - reset to continue ¿how I do that?

    SDRAM full test … reset to continue ¿how I do that?, ipod 60 bg the screen is blinking : SDRAM full test … reset to continue ¿how I do that?

    This is the standard iPod Reset procedure
    http://support.apple.com/kb/ht1320

  • EFax: "Registration was unsuccessful. Check that you are connected to the Internet, then try again."

    Trying to use eFax, I am required to register first, but when trying to register, I get to a screen that says "Registration was unsuccessful. Check that you are connected to the Internet, then try again."
    The printer is connected to the Internet: it recognizes the Wifi, the Wireless Network Test checks out OK, and all the other functions which require an Internet connection still work.
    So it is only registration for eFax that does not recognize the printer as being connected to Wifi.
    Thank you, anyone who reads this, for your attention to this matter and time.

    Hello brianspears1776,
    I understand that the Photosmart 7510 will not connect to the Internet to setup eFax, and the issue is only present when trying to use eFax. On this Thread: efax for 7510, I have given the link to troubleshooting issues with sending and receiving, worth a look. Also, JDCorral as mentioned a problem with his series of printer and eFax a couple posts down from the troubleshooting.
    More information regarding eFax can be reviewed here: eFax users - please read.
    I know this is not the technical support you had been looking for, but I hope it is still helpful.
    Regards,
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • How to check if an object exists and how to discard it?

    Greetings,
    I have a main GUI panel in a JFrame that creates a smaller JFrame with a progress bar and text area whenever a process is initiated. I've set the default close operation to DISPOSE_ON_CLOSE as when I set it to EXIT_ON_CLOSE the main GUI panel closes as well (!). But whenever I'm closing the smaller JFrame and initiate a new thread, then the same operation is perform in parallel 2, 3 ,4 times, etc. It seems that the object of the class ProgressGUI which carries all the components of the small panel is not disposed properly. So my question is how can I check if an object exists and if yes how can I discard it? Or in other words how can I discard the JFrame of the small panel without closing the main GUI panel as well?
    thanks,
    Thomas

    I've set the default close operation to DISPOSE_ON_CLOSE thats right.
    So my question is how can I check if an object exists Whenever you create an object, save its refrence somewhere, then just check
    if(reference==null){
             //object does not exist
    }else {
            //object exists
    and if yes how can I discard it? Ensure that no references of the object to be discarded are remaining with any of the objects and then believe in 'Garbage Collector' to do the job! e.g. if there is only one reference to the frame (in your case) somewhere, you can just make an assignment like:
    reference=null;by doing this, you have made the object a candidate for garbage collection. Rest is done by 'Garbage Collector', not you.
    For cases like yours, it is better to make the small frame just once and whenever required just make the frame visible.
    e.g.
    JFrame smallFrame;
    void showSmallFrame(){
        if(smallFrame==null)smallFrame=new SmallFrame(); //or something like that
        smallFrame.setVisible(true);
    }Thanks!

  • Authorizations in CRM 2007 - How to check missing authorization objects?

    Hi,
    In our project we are currently busy with the set up of authorizations.
    I did create the necessary PFCG and Business roles.
    For the PFCG roles, I did create all of them by copy of the standard SAP_CRM_UIU_FRAMEWORK so that the user can  access to the web layout.
    Now I need to give authorizations for other CRM objects, my question is: How can I see which objects are missing to displaying or creating activities in the new WEB Layout?
    In the old days we used the SU53 to check the authorization objects that were missing, how can we do it now in this new release? I tried it and didn't worked out.
    Thx
    Regards
    Hugo

    Hi,
    For report CRMD_UI_ROLE_PREPARE you have to input a business role - not a PFCG role. Are you doing that?
    Are you getting no results at all in ST01 or are all results just with return code 0?
    You have to remember to set a filter for your user in ST01 before activating the trace. Another thing to check is if you are using several application servers. I would imagine the trace has to be activated on the same application server as the Web UI. You can change the application sever in SM51.
    /Anders

  • 5400 / 7200 RPM. How To Check That?

    hi guys.
    the box with a brand new external usb drive i am planning to purchase from my local computer store doesn't say whether it's as fast as 5400 or 7200 rpm.
    how do i normally check that parameter through my computer? i tried checking that on my current usb drive with system profiler, but can't see such a section anywhere!

    Aram Rian wrote:
    thanks for the reply.
    hmm, well i still need to somehow make sure the rotation speed of the usb hard drive i am going to purchase is 7200 rpm
    I don't think it really matters from a practical point of view. The maximum sustained transfer speeds you can get out of Hi-Speed USB (USB2) is about 30-35 MB/sec. This is well under the speeds that most current 5400 RPM notebook drives are capable of. For example, a Hitachi Travelstar 5K320 drive is capable of up to 729 Mbit/sec, which is higher than 90 MB/sec.

  • How to check that whose access my system

    i am use computer and i want to check how many request comes my computer and which files or folder shered at that time ????

    I like to use netbeans which one should i need to download?You'd think you would go to the Netbeans website and find out, but I'm silly like that. Either a recent JDK 6 or the latest JDK 7 will do just fine. I would install Java anywhere except in program files. I install all my Java stuff in a directory called "java" myself, so I have C:\java\jdk6, c:\java\eclipse37, c:\java\tomcat7, etc. I never have to search for my stuff that way.
    (of course being a proper computer savvy user I partioned my harddrive to reserve the C drive specifically for the OS only, so it is in fact e:\java).
    2)How to find apache tomcat server is installed in by PC or not how to test that ?Use the search function of your OS of course. Its not even a Java related question.

  • Time Machine: How to check that it's working?

    hey guys, i just ran Time Machine for the first time and it looks like everything worked ok. it completed the backup and will run another backup in 20 minutes. i was just wondering how i can check that my files are actually being backed up in case i had to restore the files. how would i go about restoring the files by the way? i can't see an option to do this.         
    thanks a lot

    ThunderCon wrote:
    ok i had a look at that, but couldn't find an answer to this:
    i just noticed that my time machine drive is 4gb smaller than my mac internal HDD. is there any reason for this?
    Yes, as softwater and others have said, Time Machine does skip some things, such as system work files, most caches and logs, etc.  The size of all that varies widely from time to time, but is usually several GBs.
    See the tan box in Time Machine - Frequently Asked Question #11 for the gory details.
    But the size of the data on your TM drive will grow as more backups are performed, copying only the items that are new or changed, eventually filling all the available space.  Then it will begin deleting the oldest backup(s) when it needs room for new ones.
    but doesn't Time Machine create a bootable copy of the hard drive anyway?
    No, TM backups aren't directly bootable.  If your internal HD dies, you can restore your backups to a replaced internal HD, or another external HD.  The restored system is bootable.
    if the hard drive died, wouldn't Time Machine be able to restore everything?
    Yes.  The things it doesn't back up are re-created as needed anyway.  See FAQ #14 for details on doing a full restore.

  • How to check that a pdf is in ISO 32000-1:2008(PDF 1.7) standard?

    Hi
    How one can know that a pdf file is in  ISO 32000-1:2008(PDF 1.7) standard format?
    Breif Introdution abt ISO 32000-1:2008(PDF 1.7)
    ISO is named as "International Organization Standardization" who look after the standardization of diffrent format gobally. Now that had mention ISO 32000-1:2008 standard for PDF. So how we ensure that a pdf is of this standard.
    Do acrobat had any option to look the ISO standard of a pdf file or else way to view it.
    Thanks
    Andy

    ISO 32000-1 is nothing to do with PDF/A - it is the core standard for the PDF/1.7 document format. PDF/A is covered by ISO 19005-1.
    Preflight can run a number of checks but there is no easy way to verify compliance with PDF/1.7 as a whole. You can try the "Report PDF Syntax Issues" profile in Preflight but that does not guarantee to detect non-compliance, only the most common things which will break the document.
    Creating your PDF files using a standards-compliant application such as Adobe Acrobat is by far the best option - I  never recommend refrying a PDF unless there is a specific necessity to do so and the file is only destined for hardcopy print, as it will break pretty much everything (accessibility tags, scripts, forms, links, media, layers, color spaces, certificates, etc.).
    Because it's not easy to verify, and Acrobat always produces standards-compliant files, many commercial printers and publishers insist on "Adobe PDFs" rather than generic ones, and will reject files that have been created with third-party software.

  • How to check that iPhone 4 is factory unlock or not

    how to check an iPhone is factory unlock or not

    There is no way to check. This question gets asked all the time, and the simple fact is if you purchased your phone from an official source that sells officially unlocked iPhones, your phone is officially unlocked. If you didn't purchase from an official source, there is a good chance it was hacked.

  • How to check that iphone 4 is factory unlocked

    I have bought my first iphone 4 yesterday...its has iOS 4.3.5 (8LI)....i m using local sim and vedor said that it is factory unlocked but i don't have any idea that how to check this....i want to upgrade my iOS to iOS 5....PLZ guide me....
    thanks

    There is no way to check. This question gets asked all the time, and the simple fact is if you purchased your phone from an official source that sells officially unlocked iPhones, your phone is officially unlocked. If you didn't purchase from an official source, there is a good chance it was hacked.

Maybe you are looking for

  • IPod touch shows up as a camera in windows XP but not at all in itunes

    I have a first generation 8GB Itouch. It's currently running the software version 1.1.4(4A102). I'm running Itunes 7.7. When i plug my touch into my computer it will charge and a box pops up asking what i want to do with the pictures. i don't do anyt

  • 4.2 update but phone still not does not work with Motorola T505

    I use an iPhone 3G and on 3.1 it could rebroadcast iTunes signals by FM to my car stereo. 4.1 lost this capacity. I was hoping to get it back with 4.2 but so far no success, even re-pairing the 505. (Otherwise the upgrade much improved the responsive

  • Need help with a java loop and word program

    do you know any way to get a Scanner object to select a random string in a text file? ok pretty much I have a text file that isa list of 5 letter words. I need to select one at random. the only way I could think was to scan the file, get the entire n

  • Music won't export with slideshow

    I've created a slideshow with music that works perfectly in Iphoto. When I export to Itunes or IDvd the slideshow looks perfect, but no music is playing with it. I double-checked to make sure my playlist is selected and applied.

  • Websites are formatted incorrectly and links won't work, since last update

    Since I installed the latest updates for firefox certain websites such as : http://www.escapistmagazine.com/ and hotmail , are incorrectly formatted and the links on the pages don't work. I can load my inbox on hotmail but the links to the emails don