Origin of the screen not 0,0?

Hi, I paint a few sprites on the main stage, but when I add them and set their x, y to 0,0, that they are not in the upper left corner of the screen of the device.

Anyone know what could cause this problem?    It's as if the origin of the scene is offset by a couple hundred pixels

for example...

var mySprite:Sprite = new Sprite();

mySprite.graphics.beginFill (0 x 336699);

mySprite.graphics.drawRect (0,0,200,200);

mySprite.x = 0;

mySprite.y = 0;

addChild (mySprite);

Hello

You must align your step for this use

addEventListener(Event.ADDED_TO_STAGE , onAdded ) ;
private function onAdded(e : Event) : void
{
    stage.align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.NO_SCALE;

        var mySprite:Sprite = new Sprite();
        mySprite.graphics.beginFill(0x336699);
        mySprite.graphics.drawRect(0,0,200,200);
        mySprite.x=0;
        mySprite.y=0;
        addChild(mySprite);
}

I hope it should work.

Tags: BlackBerry Developers

Similar Questions

  • How to restore my toolbar at the top of the screen (not the task bar) lower.

    original title: I deleted my s toolbar at the top of the screen (not the task bar) below (incorrectly). one I want to go back, a search box on website, bookmarks etc. Please tell me how to find and reinstall. Thank you

    I am running windows vista. By chance, I deleted my toolbars at the top of the screen (not the task bar) lower. The I need back a site Web search box, bookmarks etc box Please can someone tell me how do I reinstall it?  I searched on through loads of the supposed help sections, but none don't tell me how to make this seem simply refer to the taskbar, which isn't what I need. Thank you

    Thanks for the help, however, I've sorted it now, I'm actually using Mozilla Firefox as my browser, had thought not that check! If have managed to reinstall the bar menu missing etc.

  • Message on the screen "not genuine Windows 7' then 'join HP Smart adapter.

    HP laptop, less than a year, running Windows 7, 64. These messages appeared on my desktop saying "" Windows is not genuine, Build 7601' and ' attach a smart adapter HP for maximum performance "."  I called HP, computer out of warranty is an extra cost, probably a virus.  I have 'Complete Care Protection Plan' of Staples - they do not solve the problems of virus free of charge, but he told me to start safe mode and run my virus program (Norton) and it should show if it's a virus.  I did that, he didin't show a virus.  I had a "Chat" online with Norton, he said, it is not a virus.  Maybe an update has not loaded right.  He gave me a phone number for Microsoft.  Out of warranty, I called extra charges.  I checked my "Updates" and found three that failed to download, so I downloaded them successfully.  Keep the messages.  The brightness of the screen changes also sometimes when I start so I must correct via the control panel and it sometimes takes forever to send an e-mail, especially with photos.  Is it possible to fix this without having to spend another $200,00?

    Thanks for the research.

    Hello 506,

    I see that you have problems with some error messages on Windows 7. I have some suggestions that can help with this question.

    Here is a link to a Microsoft Web page that has a download that may fix the real problem. Let me know if it helps.

  • How to rotate a video clip shot with a mobile phone.  I need to rotate the screen, not just the clip.

    I know how to rotate the clip in the screen using the 'Effects' Panel, but when I export the video finished it is small with a lot of black space around it.  It does not fill the screen.  I don't know there is a way but it can not understand.

    Thanks for any help, that all the world can offer.

    Go into the settings of the sequence and it set to custom and change the framesize.

    Staples can be turned in under the Motion effect options.

  • How to open the window on the screen not only on the bottom toolbar?

    I opened the window and it goes automatically into mode minimized on the bottom of the toolbar. I can't be on the screen. It shows that it is open, but I don't have access to it on my screen. What can I do? help I need this to get into the internet.

    Hello, please try to reset firefox and see if that can solve the problem...

  • How to make my keyboard on the screen not to come to the top when I turn on my laptop?

    someone please tell me how to get rid of it its really annoying

    http://www.Vistax64.com/tutorials/72733-screen-keyboard.html

    Read the tutorial above.

    http://www.Microsoft.com/enable/training/windowsvista/

    Microsoft tutorials above provide step by step instructions to adjust accessibility settings and programs in Windows Vista.

    See you soon.

    Mick Murphy - Microsoft partner

  • Export of goods for the screen, not the right size.

    I have a simple rectangle asset of 30pix X 30pix, with no line.

    When I try to export in iOS format x 1, x 2 and x 3, in png, the size of 1x.png is 31 x 31. However, the 2 x and 3 x png have the right size to scale.

    How make the exported 1x.png image the correct size (30 x 30)?

    In order to have the forms to match the pixel grid, you must first make: object > shape > convert to path (or Expand... I'm not sure, have a German version)

    In the transform Panel, you can align the to the pixel grid (you may need to "Show options")

  • How can I get rid of the toolbar of bookmarks on the left of the screen (not the one above)? Never had until recently and he takes my place of the window. Thank you, Michael!

    Firefox 6.0.2

    User Agent: Mozilla/5.0 (Windows NT 6.1; rv:6.0.2) Gecko/20100101 Firefox/6.0.2

    Windows Presentation Foundation
    File: NPWPF.dll
    Version: 3.5.30729.1
    Windows Presentation Foundation (WPF) plugin for Mozilla browsers
    MIME Type Description Suffixes
    application/x-ms-application xbap xbap XAML Browser Application
    XAML application / + xml Document XAML xaml

    This is called the sidebar. If you press Ctrl + b, it will switch between open and closed. (Ctrl + h activates / deactivates the sidebar of history.) Does it work?

  • I want my tabs moved to the bottom of the screen, not just below the address bar. How do I do that?

    everything is in the question, really...

    Try:

  • First of a sudded, my firefox browser is not allowing my to click links and open pages, or open anything on the upper part of the screen.

    First of a sudded, my firefox browser is not allowing my to click links and open pages, or open anything on the upper part of the screen. For example, I go to my email and I can't click on the Inbox, send, create folders, mark as unread. It's like this on all websites? Its really annoying I can't do anything because most of the sites have login at the top of the screen and I can't connect to anything.

    This problem may be caused by the Yahoo! toolbar as scopes as well down and covers the top of the browser window, allowing links in this part of the screen not clickable.

    You can keep an eye on this thread:

  • How can I increase the resolution of the screen on a monitor?

    I have a dell Inspiron 1100 I used in my kitchen today that I decided to put my Inspiron 1525 there instead, because it connects to two monitors to the difference of the 1100 which only supported one. I then moved the 1100 to the living room where it is connected to a 50-inch flat-screen TV. When I turned it on I noticed that the screen was very small, I went into Control Panel and play with the resolution, but even when I had finished that the 1360x7something of resolution came not nearby to fill the entire screen. Is there anyway to increase the resolution or at least to get an image to cover the entire screen.

    Original title: the screen resolution issues

    Skip this question came in my TV has changed the PC screen settings and everything now works perfectly. This PC is a dinosaur, but if you use it strictly for media on your TV it works more adequately.

  • Screen saver picture shows numbers stretch across the screen

    original title: the screen saver photos..,.

    Photography spans the screen, as they are 'tense' people or 'fat' when they are not.  I would say my children got and did something to the computer and I don't know how to fix it.  Also the Google bar, when I type in my questions of 'search' set also...

    Hello

    ·         Faced with this problem on standby or also with the windows desktop screen?

    Try to set the resolution of your default desktop and check if the problem occurs:

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-screen-resolution

    Also check out the article below:

    Use pictures as a screen saver

    http://Windows.Microsoft.com/en-us/Windows-Vista/use-pictures-as-a-screen-saver

    Hope this helps,

  • Drop-down list menu pasted on the screen - Windows 7

    Hello

    Few other coworkers recently experienced an annoying glitch in Windows 7: having access to drop down / context menus and when they chose something (say: do right click on desktop--> customize, for example) and select 'Customize' "stuck" to the screen in the exact same place it has been clicked. Now, out of nowhere, my PC (Windows 7) started having the same problem. All of our PC, some to work and my own at home, are machines performing with more than enough RAM (16 GB, Intel Core i7-2600 processor 3.40 GHz) and good GPU (mine is Geforce GTX 580 1536 MB of memory GDDR5, others may be a little older but still good for today, for game purposes).

    After searching for information for a bit, I realized that it is a problem more common that I first thought, some forum discussions go until 2008 (Windows XP SP2 and SP3). Now, I also found a few solutions more or less work, a more or less temporary nature. It comes to change the resolution of the screen and then return to the original, flipping the screen upside down and some a bit more advanced:
    "Start - run -"tskill dwm"or kill DWM. EXE from the Task Manager, it restarts instantly with gone menu items. "(as written on a forum thread)

    Now, some people find help in one or two of these solutions, some are may not be not as lucky. For me, thread of TheDr1ver.comgave the 'response '. You go to computer (right click)--> Properties--> Advanced--> settings system settings... (running)--> uncheck "Fade out menu after clicking items on"--> OK. What this does, I think, is to reduce the "eye-candy" on the transitions of the elements on the screen or something like that. He helped my case but we're also the right click menus drop-down weird in a way that if I come up with the right button and does not move the pointer of the mouse, the menu appears as a transparent and only after I move the mouse pointer, it will become fully visible. At the moment I'm OK with that. This is better than having a drop of 'Properties' to the bottom of the element stuck on my screen.

    However, what intrigues me is that this problem has persisted for many years. And there was a lot of discussion on this topic. My question is: why Microsoft did not something to solve this problem? I can't live without the eye-candy on my OS I appreciate performance over Visual tricks, but I don't have to change the settings for a lesser visually 'version' when my PC has the muscle to run it with all the eye-candy. As much as it came out of the Blue: the only thing I changed in my PC in recent weeks has been the new drivers for Geforce. And even after installing new drivers weren't graphics bugs in Windows. This glitch "menu drop-down stuck" happened without warning of any kind. The same thing happened to my co-workers. One day, you start your computer and what is happening.

    I'm going to say here that answers such as "turn off Aero", 'disable all Visual effects' do not apply because they weren't a problem a few days that they were not a question every day since I bought this computer. We (and I mean many people with this parasite, annoying their death) need a good answer, a patch, something that will deal with the issue once and for all.

    My rig:
    Processor Intel Core i7-2600 3.40 GHz (8 CPUs), ~3.4GHz
    16 GB of RAM
    NVIDIA GeForce GTX 580, (1536 MB) GDDR5
    Windows 7 Ultimate 64-bit (6.1, Build 7601)

    PS Sorry if my post sounds hard towards the end, but this problem has been so persistent over the years to an official solution that does not require the Central PCs disable Visual features of the OS just to operate normally. Especially since the problem occurs randomly.

    I was having the same problem recently and wonder if it's something with the GeForce drivers.

    Someone having this problem (not nvidia) have another video card?

    I just tried reinstalling my drivers to see if that fixes anything.

    Edit: reinstalling the driver solves the problem.

    The fix that worked for me:

    Control Panel, system, advanced system settings.

    Advanced tab, click settings in terms of Performance.

    Uncheck the disappearing menu items after clicking on.

    Restart the Desktop Window Manager Session Manager service updates the desktop computer to remove all existing ghosts too.

  • screen not to steer

    I just bought a C open mobile ZTE and the screen not to steer. I checked the settings and screen lock switch is off. I have it turned on and outside. I rebooted after remoing the battery. I have the latest Firefox OS (according to the update). It is a dud, or is there a problem with the current version?

    HI Cormack99,
    To continue troubleshooting, applications can disable the horizontal view of the app. Y at - it a particular application that is happening in or happening on the homescreen as well?

    In addition, what version are you on? Official updates are released by the manufacturer and unfortunately Mozilla has no control over the planning of these releases.

    However, open developer of ZTE C device allows you to build and install the updates manually - but know that there is a possibility that it can brick your device.

    You can find more information on the upgrade, rooting and make builds for your ZTE C device open the following DND (Mozilla Developer Network) document:

  • On my work pc, I can't click on the links at the top of the screen while using firefox. This "dead zone" only affects the top 20% of the page, while below that I can click on all the links.

    This does not happen on my laptop or any other my work computer program works.

    This problem can be caused by that extended the Yahoo! toolbar or extension of Babylon also well down and covers the top of the browser window and therefore links and buttons in this part of the screen not clickable.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

Maybe you are looking for