Objects added to Sprite/MC not appearing

Hello all, I've been working on building a game and encountered a strange problem this morning when instead of adding objects directly to the stage I needed to add them to a Sprite (I also tried this with a MovieClip) which was on the stage instead and they did not appear. If anyone can see why this is happening I will be eternally grateful, as it's got me stumped! And yes, before anyone says it, the MC/Sprite that I'm adding the objects to has definitely been added to the stage, I've made that mistake before and don't plan on making it again
Essentially I have been building the game's levels using various different objects (rectangles, circles etc) built in the Box2D physics engine and with attached sprites to represent them to the user. When creating each of these object I supply a DisplayObjectContainer in which the sprite representing the object should be placed. Up until now I have been simply been supplying my core game class as the DisplayObjectContainer, with no problems whatsoever - everything is displaying fine. A new level design, however, will require me to apply a mask to the entire level (but not the GUI) so I decided to place all the level objects within a MovieClip or Sprite instead. I have created the new sprite as such:
levelObjects = new Sprite();
levelObjects.x = levelObjects.y = 0; //Just to make sure
levelObjects.width = GameProperties.stageWidth;
levelObjects.height = GameProperties.stageHeight;
levelObjects.visible = true; //Just to make sure
addChild(levelObjects)
and have been supplying this sprite to the level objects as a DisplayObjectContainer instead of the core game class. Everything is getting added to the stage as I can click on things and the sounds associated with the game objects are playing correctly, but nothing is actually visible! As I mentioned above I tried this using a MovieClip instead but got the same result. Does anyone have any idea why this is happening and how I can fix it? Please post anything that might help, I've tried everything I can think of so now I'm going to rack your brains instead haha
Thanks in advance,
Dinkyfish

Aha! Right, that's at least partially solved the problem, I'm now waiting until I have added the first object to the sprite before setting the width/height values. Thank you very much
Unfortunately, things still aren't quite working the way they should as the entire sprite is now simply filled with a dark blue colour. Now quite a few of the objects I'm adding are dark blue in colour, but none should be big enough to obscure the entire sprite which is what I suspect is happening. Is there going to be some sort of conversion I'll have to do to the x/y/width/height values of the display objects I'm adding to the sprite? I thought it would simply be the same values I would need to supply if the sprite was the same size as the stage...

Similar Messages

  • HT1338 ADDRESS Book - why is a contact i added to my macbookpro not appearing in my iPhone 4s and iPad 1 via iCloud

    why is an address i added to my macbookpro not appearing in my iphone and ipad?

    Did you add it to iCloud contacts or Local contacts. Check and see what lists you have in Addresses Book. Is it showing On My Mac contacts and iCloud? When you select all contacts, does it show duplicates?

  • GP, callable object Web Dynpro Application (bespoke) not appearing in list

    Hey y'all
    We're developing our first GP, and we would like to call an existing bespoke Web Dynpro. When creating the callable object, we're selecting type Web Dynpro Application, but our Web Dynpro screen is not appearing in the drop down list on the next page. We think that this is because the application has been deployed to a different server (i.e. it has not been deployed onto the portal server).
    So the question is, has anyone faced this problem before, and is there a solution?
    Kind regards
    Jon

    Hi John,
    Please have a look at this Exception on creating GP Action
    This will solve your issue definitively. Do not take care of a given SDA, just redeploy everything and make sure that everything is overwritten by selecting the right option.
    Best regards,
    David

  • Field added to cobl does not appear in FB01 interface

    Hi!
    I have added OXK3 transaction and set this field as "Opt Entry", but the field does not appear in FB01 transaction.
    I've also tried "Req Entry" status for new field it gave no effect.
    How this field can be enabled in the interface of standard FI transactions?
    Thanks!

    Some questions
    -Did you solve your problem ?
    -Did you come through OSS <a href="https://service.sap.com/sap/support/notes/174413">Note 174413 - Customer-specific fields in new Enjoy transactions</a> ?
    Regards

  • Timeline - Objects Staged After 0.0 Not Appearing

    HELP!!! I have a project where on any given slide, I may have
    several layers.
    Say I have layers 1, 2, and 3.
    The object on Layer 1, I want to appear immediately on the
    slide at 0.0 and display through the rest of the slide.
    The object on Layer 2, I want to appear 3.0 seconds after the
    slide appears and display the rest of the slide.
    The object on Layer 3, I want to appear 6.0 seconds after the
    slide appears and display the rest of the slide.
    What's happening to me is that the object on Layer 1 is
    appearing when published or previewed, but not the other objects on
    the other layers. I am not sure where the break down is . . . is
    there a problem with the layer or what?
    HELP!!!!!!!

    This question was originally asked as a piggyback on a
    different thread. For the sake of continuity, please direct any
    responses to that thread. You may do so by
    clicking
    here.

  • SRM 7.0 New custom fields added to view do not appear in the component conf

    Hi
    I added two custom fields to the view V_QTE_DOFC_I_DESC of the WD componenet /SAPSRM/WDC_DODC_QTE_I_DS. This view gets called when bidder is trying to create a bid and clicks on add Substitute Item in the Item tab. This view is simply a popup window where we can enter ther substitute item.
    I added two custom fields to the context of the above view and placed on the layout of the view as input fields. Then I tried to modify the component configuration /SAPSRM/WDCC_DODC_QTE_I_DS_SUB. When I look in t he web dynrpo built-in for the view V_QTE_DOFC_I_DESC, I don't see the custom fields that I just added. As a result, these custom fields are not displayed when I try to substitute an item. Could anyone tell me how to brining in these two custom fields into the component configuration.
    Any help is greatly appreciated.

    Hi Prasuna,
    Sorry ..You are right..I was looking at some other WDC related to contract data..It you map the CUFs to /SAPSRM/S_CLL_CTR_ITEM which has the include structure INCL_EEW_PD_ITEM_CSF_CTR then it should work fine.
    If you do this, are you able to view the new fields on the screen?
    you mentioned that you are not able to save the data to the table.
    Include your fields in INCL_EEW_PD_ITEM_CSF as well because if you add CUF to any of those doc types, you also have to add those CUF to the global structure for CUF documents.
    Also Check if you fields are there in structures BBPS_CTR_CUF_ITEM,BBPS_CTR_UI_ITEM and BBPS_CTR_ITEM.
    Check whether you have implemented the BADI's like BBP_DOC_CHECK_BADI ,BBP_DOC_CHANGE_BADI and BBP_DOC_SAVE_BADI . check out the structures (whether they having the CUFS) used in those if you have implemented any of them .
    Regards
    Lavanya
    Edited by: LAVANYA CHAVA on Aug 25, 2010 10:10 AM

  • Appointment added in iphone do not appears in iCal on Mac

    When I add some events in iphone and sync it with Leopard there is no this event in my ical program. But if event was added on Mac it perfectly sync into iphone. Also I had problems with duplicated birthday's, but it was successfully solved here http://discussions.apple.com/thread.jspa?threadID=1236358&tstart=60.
    Much obliged to your help.
    Regards,
    Sergey

    Here is something to try to see if it is an account issue or a system wide issue.
    If you create a new user account and try syncing just the calendar events, does it sync from the iphone to the computer.
    To test this open system preferences and go to accounts.
    Create a new account, call it test or something.
    Log into the new account.
    Open ical ant put in at least one event. If you do not put at least one event into ical, itunes does not know to merge the data and could erase the events on the iphone.
    Once the test event is in ical, open itunes and go through the initial setup.
    Then connect the iphone and sync just the calendar events.
    Hope this helps.

  • Extracted Info objects from SAP R/3 not appearing in SAP BW side

    Hi,
    I am trying to extract three fileds through generic extraction using function module,
    I have checked the fields(values)in RSA3 ,which shows the correct values but the values are not showing in ODS when extracted from SAP R/3 ,
    Any one can advice where to check and how to check?
    Any help in this regard is higly appreciated.
    Cheers,

    Hi Pavan,
      Please check the function module,
    Common Mistakes during FM development and their consequences:
       1. The counter C_DATAPAKID is not incremented correctly.
    Consequences:
    The RSA3 transaction will execute correctly, but when the program is executed using BW system the records are never transferred. The Extractor enters into a never ending loop and finally gets timed out.
    http://wiki.sdn.sap.com/wiki/display/BI/CustomFunctionModulestoextractthedatafromSAPSYSTEMto+BW
    While checking data in PSA, if there are more fields in datasource use change display variants (CtrlshiftF6). If the required fields are in right hand side of the column set,include them in displayed column.

  • New fields added on Bidder data does not appear in Business Partner

    Hi,
    I have added two new fields in Bidder data tab of Maintain Business Partner screen.
    When there are only three tabs viewable i.e Company data , Bidder data , Registration data tabs, the added new fields  does not appear.On approved suppliers (vendors) there will be a also tabs for vendor and supplier classification(customised).   But for companies that are only approved as bidders, there may be only the 3 tabs showing.
    Please help.
    Regards,
    S. K.

    Hi Jay,
    Yes i have used EEWB to add new fields. But i have used badi's  BBP_BUPA_GET_CUF and BBP_CUF_BADI_2 to display those fields on Bidder data tab.
    When business partner is approved bidder that time i am not able to view these new fields, but when business partner is approved vendor that i can view those fields.
    We are using SRM 5.5.
    Regards,
    S K.

  • Added calendar in iCal not synced to MobileMe

    I moved a calendar from "On My Mac" to my MobileMe account group, using the export-import method. The new calendar, however, does not sync to MobileMe. I even tried an overwrite (bookmarks, calendars, contacts and keychains) from my Mac to MobileMe but the added calendar still did not appear in MobileMe.
    I quit and relaunched iCal, which started an immediate sync. The new calendar promptly disappeared from iCal and I got a string of error messages (one for each entry in the new calendar, it seems) all ending with
    The server responded with
    “HTTP/1.1 409 Conflict”
    and asking me to either "Go Offline" or "Revert to Server". It didn't seem to matter which one I selected – the error just kept cropping up. Eventually, I gave up and force quit iCal.
    How can I add a new calendar to iCal that will sync with MobileMe?

    Derek,
    I presume that this procedure represents exactly what you have tried to accomplish?
    Import an iCal calendar or event
    If you use iCal and want to add your iCal calendars and events to a MobileMe calendar, you can import them.
    Hide
    To import an iCal calendar:
    Open iCal, and then select the iCal calendar you want to import into your MobileMe calendar.
    Choose File > Export > Export.
    Type a calendar name, choose a location from the Where pop-up menu, and click OK.You can store the exported file anywhere, and you can delete it after you finish importing it.
    Choose File > New Calendar, and then choose a MobileMe calendar (by default, your MobileMe email address).
    Type a calendar name (you can use the same name as the calendar you just exported), and press Return.
    Choose File > Import > Import, select your exported iCal calendar, and then click Import.
    Select the destination MobileMe calendar to which you want to add the imported iCal calendar, and then click OK.
    Quit iCal and go to the Macintosh HD/Users/yourusername/Library/Calendars Folder and delete any/all files with "Cache" as a part of the name. Log out/in or restart and reattempt using the exact procedure which I copied from the MobileMe Help page.

  • Transport of Query successful, but changes not appeared in the report

    Hi All,
    I have 2 Queries(Normal and Total stock reports on the same InfoProvider) in Prd.
    For that User asked me to add one characteristic to Free characteristics.
    I added one characteristic in Free Characteristics to both Queries in Dev and i collected the Transport requests for both the queries in RSA1->TRANSPORT CONNECTIONS and gave it to basis guy, he transported successfully to PRD and for both the reports the changes reflected in the
    query designer, while executed the Normal stock report the characteristic added in free characteristics appeared and while drill down the data is coming, but for the Total stock report the changes appeared in Query designer but on executing the report even  the characteristic added to Freecharacteristics is not appearing in Navigation Pane.
    Also with the same technical name of total stock report there are 2 reports appearing in query designer. what to do now.
    Help me here asap..
    Thanks,
    Chaitu.
    Edited by: chaithu218 on Jun 21, 2011 10:37 AM
    Edited by: chaithu218 on Jun 21, 2011 10:40 AM

    Hi Chaithu,
    As you mentioned that you can see 2 versions by the same technical name in designer for total stock report, it is highly probable that the query you are changing and the query you are executing are different.
    2 versions of a query can exist with the same technical name as the system identifies the queries by their UIDs, which would be different for both these versions of queries.Following are the things you need to check:
    1) In development system too, do you have 2 versions?
    2) In production system, check the UID for both verions of the query
    3) In Dev system, make sure you modify the query with UID which is being executed, if it is available there. Else, you need to replace the query in prod with the one you have in Dev system.
    2 versions by same technical name can exist if:
    1) Someone created a query directly in Prod, and transported a query by same technical name from Dev system
    2) or due to system refresh, copy, etc.
    Hope it helps.
    Thanks,
    Abhishek.

  • Added fields not appearing in the DSO transformations.

    Hi,
    I have added three new info objects into data fields in the DSO then activated and not appearing added fields in the transformations.
    Please suggest me,
    regards,
    Jayapal.

    Hi Jayapal,
    i dont know whether it would help you...you can give a try on it.
    Instead of deleting the Transformation, just delete the mappings if any in the transformation.
    Goto DS->Fields Tab-->In the Column Template info Object. Try mapping corresponding IO with the Source IO.
    Then it will show a pop up give Copy . Activate the DS.
    Goto Info Provider>Select the Transformation> If it is active-->reactivate it by clicking the Pencil Icon with glass and click activate icon.
    If its not active, then reactivate it again by clicking the Pencil Icon with glass.
    Let me know if it Works... Cheers
    Regards,
    Syed
    Edited by: shameer83in on Nov 20, 2009 12:10 PM

  • Delegated Object's event not appearing in the "start event" tab

    Hi,
    I have created a object type say Y00Mara( copy of BUS1001) ....then created a subtype from it  ...called Ymara00.
    then I created a deleegation ...if I test the supertype i can now see the new objects/attributes etc...
    I also added one event "old_material_changed"  in the subtype and changed the status on both the subtype and delegted obj to "implemented".
    when i am trying to use this delegated obj in the "start event" tab of a WF ...the new event "old_material_changed" is not appearing...
    what maay be thhe reason

    HI,
    Please maintain the delegation with the subtype ( Y00Mara)  and supertype ( BUS1001 ) by using transaction SWE_SET_DELEGATION. Now run the above transaction.
    Click on new entres.
    Enter the follwoing values...
    Object type  :  BUS1001
    Person responsible : your sap user id
    Delegation type :  Y00Mara
    Save it.
    Now whenever you use BUS1001, all the custom mentod, events will be available there.
    Thanks and regards,
    SNJY

  • Object Ref Prof R/s tab not appearing in complaint Tx?

    Dear All,
    I added object ref profile in complaint transaction. But I am unable to see relationship tab at header or item. The same profile is working fine with Service order. But its not working in complaint transactions.
    Please suggest.

    Dear Arun
    Thanks for your valuable input. But pbm is if I use reference data tab then sold to party of the tx in which we are putting ref data and sold to party of ref data shoud be same..otherwise it will not allow to attach..
    Please suggest why relationship tab does not appear and is this product error?
    Thanks

  • Web-object interaction/widget does not appear in published slideshow

    I added the web-object interaction/widget using my notes from the instructions in the relevant Lynda.com video (as the Captivate 7 User Guide makes no mention of the web page widget, web-object widget, web object widget, web-object interaction, web-page interaction, web page interaction, or webpage interaction).
    The web-object interaction, or web-object widget (or whatever you choose to call the thingie that should provide the user of the published project slideshow with direct interaction with a web page from within one of the slides), it sometimes works in preview; may have worked once when published; but otherwise does not appear on the slide.
    On its not appearing in either the published HTML document or the SWF file:
    --I had a Continue button on the slide, and tried removing that.
    This did not help.
    --Because the web-object interaction/widget automatically sets the slide's action on entrance to "Pause," I tried setting it to "No action" (thinking that the slide, being pause on entrance, might never get to the web-object widget/interaction).
    This did not help.
    --I thought that perhaps navigating in the slide show with various "Jump to slide" settings, I would watch it without navigation.
    This did not help.
    Any help will be appreciated.
    Jeff

    In the published folder, I noticed a SWF called stagewebview. I guess this file has got something to do with Web Object interaction. When we link to published HTML file, this SWF is getting called automatically. But in your case since you are linking to published SWF file, the web object interaction SWF is not getting called. So, is it not possible for you to link it to HTM file?
    Sreekanth

Maybe you are looking for