Dealing with the size of the stage and the different orientations

I am clearly dense, but I'm looking for examples of how others deal with the need to have apps that funciton in mode landscape or portrait.

My first effort simply uses a scene from 600 x 600 with automatically guide the true value. It seems to work OK. The app draws, in the center of the screen of the Playbook (Simulator), regardless of the way the screen is oriented. Waste certain properties of the screen, but for my purposes, it doesn't really matter.

To try to make it easier to deal with some questions I had try to implement new, I tried to make a step in 1024 x 600 with my stuff centered in space. Works very well in the landscape, but when in portrait mode, the app has been reduced to 1024 to the 600 dimension tree. I turned on Noscale for the scene, and now the app is drawn with the scene at the upper left corner then the app is cut on the right side of the screen. Is there a way to make the center of the scene?

For my next one, I'll probably need to have two settings screen which are used based on direction - guidance on which is easier to deal with?

I just wanted to mention that I removed the rotation and repositioning of the scene in the event onOrientationChange because I'm sure it was bad and can't remember why I had done this.

Also, I recommend the mobile controls around on stage resize because when changing the orientation event is called, stage.stageWidth and stage.stageHeight properties have not yet been updated.

The only uses for the orientation change event that come to mind anime the passage of an orientation towards another and the reorientation of handling maually when you autoOrients set to false.

Tags: BlackBerry Developers

Similar Questions

  • I forgot my password for apple and have permission to stage the 2 and broken my old phone and do not have the same number of what I can do my account is already waiting to be reset, but it takes apple long to to deal with the what else is there to do?

    I forgot my password for apple and have permission to stage the 2 and broken my old phone and do not have the same number of what I can do my account is already waiting to be reset, but it takes apple long to to deal with the what else is there to do?

    You know the e-mail password what do you use? I lost over $ 30 on my old Apple ID because I couldn't get into the email and apple would not transfer my money to my new account.

  • Image processor "sorry, I could not deal with the following... * all."

    Hey! I so about 150 files opened in Photoshop. They are for a customer and the customer wanted individually to certain effects on each file. The files are RAW initially, first imported in Lightroom as .dng, then all my tonal changes made in Lightroom. I then opened images as smart objects in Photoshop, with a script of Lightroom. I then did the individual work on each image in Photoshop on the assumption that it would not trouble to save using the Image Processor script. When it came time to save, I tried save as .tif files using Image Processor. I selected the target in the form of open files files, set my destination folder, chose the TIF format and click on run in the top of the window. He shortly after said one very fast without source images, which disappears and then he says: "Sorry, I couldn't deal with the following" and then lists all of the 150 open pictures. It is a big problem because I'm on a lack of time.

    Any help or another idea for how to register all these images open in TIF or PSD even at this stage is extremely appreciated. I think there must be a fix or other road opposite to old fashion one save under...

    Thank you!

    !

    It doesn't look like the IPP will not new document either.

    He can. I added an option that can be set in the script to take care of this problem.

    //

    PROCESS_UNSAVED_IMAGES

    This will allow the treatment of unsaved images. To make this work,

    an unregistered image file is ~ / Desktop. If a file extension is

    not in the name of the image, .psd is used.

    //

    ImageProcessorOptions.PROCESS_UNSAVED_IMAGES = true;

    By default, it is false to get the 'traditional' behavior Set to true will leave PPI to process new images, not registered.

  • ITunes has stolen my music from my computer. Because they do not want to deal with the public, what should I do to get back them.

    Every so often, iTunes sends a notice to update the iTunes on my computer. Last year after that they did, all sounds have disappeared from my list of reading hundreds of old songs. Now, when I click on any song or melody, nothing happens.

    Given that Apple does not want to deal with the public, I ask, what do I do now, please?

    See the empty/corrupted after upgrade/crash iTunes library. Ideally, the measures taken immediately after that the problem appeared would restore your library. In some cases your media may be still on the computer, but not when iTunes is looking to it. The songs that do not play show with an exclamation point in the view of songs? ITunes plays all audio signal at all?

    TT2

  • Csrss.exe usage reports of different memory with the different commmands... Help!

    I currently work on my desktop control on some performance issues and came to CSRSS. EXE which is supposed to be a process that is legitimate, but also known to be a malware. But when I check on command prompt: tasklist reports csrss.exe using 5 k of memory, but when I run: status running tasklist/v/fi "eq" it signals using 11 540 K mem. its use?
    Any ideas as to why his reports differently? Help, please.

    Hello

    Csrss.exe is an essential component of the Microsoft windows operating system. It stands for Microsoft Client/Server Runtime Server Subsystem. This process is responsible for dealing with the majority of the windows interface.

    Csrss.exe is a process which belongs to Microsoft Corporation. However, some malware programs install and use a process with the same name in an effort to be detected. So, you will want to determine whether the instance of csrss.exe running on your computer belongs to Microsoft Corporation or a malicious program and take appropriate action.

    I suggest you to try the steps below and check if it helps.

    Method 1:

    Set up your computer in a clean boot state, and check to see if the same problem happens.

    By setting your boot system minimum state helps determine if third-party applications or startup items are causing the problem.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7:
    http://support.Microsoft.com/kb/929135

     

    Note: After the boot minimum troubleshooting step, follow step 7 in the link provided to return the computer to a Normal startup mode.

    Hope this information is useful.

  • To use the computer with the different Flight Simulator equipment that is only compatible with 32-bit versions of Windows

    Original title: change the version of Windows

    I have a computer used only for Flight Simulator and is running Windows 7 Home Premium 64-bit.  I want to use the computer with the different Flight Simulator equipment that is only compatible with 32-bit versions of Windows.  Is there a way I can upgrade to Windows 7 64 bit for Windows 10 32 bit and enjoy free upgrade of Windows 10?

    No, the upgrade program will replace existing windows with the same number of bits, 32 to 32 and 64 to 64.

    Even within the same version of Windows, passing from 32 to 64 and vice versa requires a clean installation.

  • How to type vertical text from the bottom up with the right orientation for a graph?

    How to type vertical text from the bottom up with the right orientation for a graph?

    Hello! Below, I'll demonstrate how to have vertical text in two different ways.

    Example 1:

    1. below, I have a graph and want to label the vertical axis.

    Select the text tool, and then the Vertical text tool.

    2 with the vertical Type tool, I tap on my vertical label.

    3 with the move tool, then I can orient the text in a position desired, as shown in the examples below.

    If this isn't the desired orientation of the vertical type you would like. I have the example 2 below.

    Example 2:

    1. After typing my text vertically with the Vertical Type tool (in example 1), I want to move to a horizontal position. I can go up to the options panel and select the icon "show/hide text orientation", surrounded by below. It will pass the text back and forth between vertical and horizontal.

    2 after the passage of the text to be horizontal, I want to change the orientation of the text, so it is aligned with my vertical axis.  Go in Edit > transform > Rotate as shown below.

    3 you want to can Rotate the text as indicated below.

    4 text is not in the right position we want, so we have to move the text, as illustrated below. Press enter/return to perform the complete transformation.

    5. the text is shown below.

    Other links:

    Please post back with any questions,

    Janelle


  • Dealing with the size of the large file CS5/Aperture 3

    Is it possible to save a PS image changed completely without using 150 MB of storage? I opened a NAVE MB 18 of A3 to PS. converted to B & w using a variety of settings in CS5. Save as a PSD not flattened, gave a 150 MB file size. A flattened jpeg file is 18 MB. 150 MB images will quickly devour disk space. The warning in jpeg triangle suggests that not all layers are saved. Thank you.

    in order to save in layers, I'll have to deal with 150 MB of files.

    PSD files use compression (I forgot what the name), a file tif layered with one of the cuts without loss can be smaller but take longer to save and open.

    If I want to include all the layers in a jpeg file, flatten it before the record?

    If a file contains layers and you save a jpg file off it will automatically be a flattened image copy.

  • Migration to ESXi and dealing with the VMkernel changes

    We are running ESX 4.1 in our group, and with the release of 4.1u1, I wanted to migrate to ESXi. However, it is to be a little difficult because of changes in the service console.

    Because I can have is no longer 2 different gateways, I have to keep all the VMkernel traffic on the same bridge, my service previously ran on 10.157.188.x console, but my iSCSI traffic ran on 10.72.66.x.

    If I move all my VMkernels to 10.72.66.x, then VMware HA will not and I can't join the host to the cluster that has its service on the network 10.157.188.x consoles.

    How can I get around this?

    Hello

    We had a similar design, where we used a second NETWORK adapter for the NFS storage.

    The solution was to create the second VMKernel port on the host and tie it directly on the (non-routable) storage network

    As everything was on the same IP, no DG only required Beach and bonus was that the traffic of storage was always 100% secure and isolated.

  • the best way to deal with the changed values maskMode?

    Hi people

    I just found out that the values listed for maskModes have changed between CC14 and CC15 who broke most of my scripts of masking.

    IE MaskMode.ADD in CC14 has the value 6413 but CC15 is 6813.

    What is the best way to deal with this? is there a simple solution or what I need to check the version of AE which is used and adjust from there?

    is there a direct way to access the name ie "MaskMode.ADD" instead of the value?

    Thanks... /JL

    To get the string maskMode by the current mask, you can loop through all the values possible maskmodes and stop when you click on:

    for (var k in MaskMode){
        if (myMask.maskMode === MaskMode[k]) break;
        };
    // at this stage k is the maskMode string (eg: "ADD")
    

    Xavier

  • Dealing with the lower ASCII characters

    In my database, somehow there are strange lower ASCII characters in some areas. It doesn't happen often, but I have some problems. For example, I found a field with an ASCII 12 x (18 decimal) character, which is something called "Device Control 2. When I run a query like

    SET SERVEROUTPUT ON SIZE unlimited

    SELECT

    p.TX as "TX".

    Of

    point p

    WHERE

    para_id = 22623526 / / contains a bad character

    Get different results depending on whether I have run into a TOAD with F5 or F9. F9 returns the line after line, but it puts a box where the bad character is

    http://Pelorus.org/pictures/ToadAsciiError.PNG

    But, if I run it with F5, I get nothing.

    1 selected line. < < the single output possible.

    If I change the para_id to something else, I get perfectly good output with F5

    TX

    --------------------------------------------------------------------------------

    Milestones begin and end listed in Appendix-a. dates will be used for guidan

    for all the work performed by this request for maintenance.

    1 selected line.

    And even weirder, if I have the coil in a file, I get the data, but has the wrong character.

    TX

    --------------------------------------------------------------------------------

    Tighten each anode zinc new foot nut # 30lb of restraint. [CFR-465]

    1 selected line.

    (Mark hash added by me, but I can see the ASCII (x 12) in a hex editor.)

    Here is a link to the text file with the wrong character

    http://Pelorus.org/pictures/Err.txt

    My questions are

    1. What's happening here?

    2. How can I strip this character on? I export it as an xml file, and this character causes me problems.

    3. I see other bad characters in a few other places. Namely ASCII 13 x (19 dec) and ASCII 1Dx (29 dec). I hope that the solution to remove easily extrapolate other unwanted characters.

    4. ideas how something like that you here in the first place? Cosmic rays?

    I tried to use ASCIISTR() to delete, but it did not work.

    ASCIISTR (p.TX) AS "TX".

    The bad characters are still there.

    Server Info:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

    PL/SQL Release 11.2.0.2.0 - Production

    CORE Production 11.2.0.2.0

    AMT for Linux: Version 11.2.0.2.0 - Production

    NLSRTL Version 11.2.0.2.0 - Production

    You can use the function to translate to remove unwanted characters from your data:

    with t as)

    Select 'ab '. Chr (18) | 'cd' union tx double all the

    Select 'ab '. Chr (19) | 'cd' double tx

    )

    Select translate (tx, 'a' | chr (18): chr (19), 'a') t

  • How to deal with the change in scope

    Dear,

    No org by enforcement period. Consolidation of the CDA. CDA entry.

    September, a company (X) is thrown into a perimeter (a-frame) and granted in a different consolidation perimeter (part B).

    I need perform the following acts:

    (A) CDA profit & loss of X, from September, must contribute to A scope results until December;

    (B) BAT profits/losses of X in September, October and December, must contribute to the results of scope B until December.

    (Operations under A) and B) can be automated? No idea how to do?

    I don't have a script. I need only a generic description on how you did.

    Thank you very much!

    According to my experience, assuming that you create a new entity for X under parent B, the best thing to do in these situations is to simply manage it via a journal entry.  You will write a day who would keep the CDA P & L (and in our cash flow of CDA case) result of X to the title of parent with equal and opposite impact hitting the new entity of X under B.  You post this journal in Sep, Oct, Nov and dec and continue loading data for a YEAR to X under B.

    However, if you simply drag & drop X under a new parent, I don't know how you deal with it.

    Kind regards
    Jason

  • Dealing with the merged cells in a table

    Hello

    I use tables often enough in InDesign, and I always ran into the same problem with the scripts - dealing with merged cells

    The number of lines, I have a few cells which are merged horizontally

    As I go through the cells in my selection, I want to test the line with the contents of the first cell in the same row - that is, the key to the line

    In short, that's what I want to do:

    1. Select the cells (manually)

    2. run the script that checks each cell in the selection to test if it is in a line that begins with 'TOTAL' - and then, act accordingly

    My problem is that the results are never is correct because some lines have merged cells

    In turn, column 1 could have 50 lines, but column 2 can only have 48 rows (because it has 2 m)

    That is why, when I check the contents of the first row as such:

    cells[1].parentRow.cells[0].contents
    

    He was not a match - even if it's in the same line.

    What is the best way to get around this problem?

    If anyone can give help on this topic, I would be very appreicate it

    Thank you

    Davey

    Why do you need to know the index of line? Isn't parentRow get you the line concerned? I tried to recreate it but I don't see the problem. Maybe you can post some more of your code where exactly is the shift is not clear.

  • Dealing with the Dates 2

    Hi guys,.

    I'm not a regular developer, I met always hedges when dealing with dates.

    I have a timestamp column, called 'Calling_date' which stores values as this "24 July 12 AM 05.30.00.000000".

    My report must show the data in this column as "YY-MM-DD hh: mi". I tried two methods but none worked.
    * I won't use To_char *.

    trunc (calling_time, "HH24 DD-MM-YY")
    ORA-01898: too much precision specifier

    TO_DATE (calling_time,'DD-MON-YY hh: mi ')
    ORA-01830: date format picture ends before converting all of the input string

    PLS, tell which can achieve my task.
    Kind regards
    FAteh...

    Fateh says:

    I have a timestamp column, called 'Calling_date' which stores values as this "24 July 12 AM 05.30.00.000000".

    My report must show the data in this column as "YY-MM-DD hh: mi". I tried two methods but none worked.
    * I won't use To_char *.

    Why not use TO_CHAR() ?

    Date and timestamp formats are BINARY formats. Is not a screen formats.

    This means that we MUST convert that binary in a human readable format. TO_CHAR() allows exactly that - convert to a format readable by humans and which allows you to specify exactly what that format is.

  • How to deal with the table still growing?

    All tables are more and more applications. In some applications, tables become quickly more and more wide. How to deal with this problem?
    Currently I develop an application system. Should I add a large number of orders to remove the code for each table?

    The problem is delete is very time consuming.

Maybe you are looking for