Change in direction creates havoc...

Today, I improved my "BOLD" to a torch and discovered a lot of new problems in my applications.

What is the correct way to redraw the screen on a change of direction?

My app has a lot of detailed visual layout of data. To make things work on different devices, he does a lot of things like the calculation of the size of the police based on the orientation and resolution of the screen.

Where do I put these calculations so that they will be called again when the oriention changes?

Also what should I call to get the fields take turns in the new orientation?

Thank you

You can manage many of these changes in orientation by overriding sublayout in your screen.

Tags: BlackBerry Developers

Similar Questions

  • How to change the direction of TLFTextField when running?

    I create a TLFTextField object when the design and need to change its direction during execution, how this could be possible?

    the following code does not work and all simply ignored:

    var myText:TLFTextField = MyText;
    myText.textFlow.direction = 'rtl ';

    What should I do?

    It works for me:

    Import fl.text.TLFTextField;
    Import flashx.textLayout.formats.TextLayoutFormat;
    Import flashx.textLayout.elements.TextFlow;

    var tf:TLFTextField = new TLFTextField();

    addChild (tf);
    TF.x = 10;
    TF.y = 10;
    TF. Width = 200;
    TF. Height = 100;
    TF. Border = true;

    var myFormat:TextLayoutFormat = new TextLayoutFormat();
    myFormat.color = 0 x 336633;
    myFormat.fontSize = 24;

    var myTextFlow:TextFlow = tf.textFlow;
    myTextFlow.hostFormat = myFormat;
    myTextFlow.flowComposer.updateAllControllers ();

    TF.direction = 'rtl ';
    TF. Text = 'This is my text';

  • Can I change the direction of crop photo?

    I have an iPhone 6 s.  Can I change the direction of crop photo?  If I have a landscape oriented photo and crop a portrait section oriented in the pic.  It seems that I can use only landscape-oriented culture.  iPhoto has an option to change the orientation of the harvest.  The iPhone has such an option?

    When cropping a picture in Photos on the iPhone, you can tap on the corner of the photo and move the grip of culture in all directions. Allows you to move horizontally or vertically, allowing you to crop, anyway you want.

    See this page in the iPhone user Guide. http://help.Apple.com/iPhone/9/#/iph96b1e322 see if that answers your question.

  • How to test the change of direction on the Simulator event?

    There is an example of change orientation Guide 0.92 development event.

    I add some codes for my application to deal with this event, but I don't know how to test it.

    I find that the return value of Accelerometer.isSupported on the device Simulator is true and simulator of funds, the value is false. But two of them cannot Simulator such an event.

    I know that you can test on IPhone simulator, use of change of direction "Command" + arrow keys.

    Can anyone help?

    Thank you.

    To test or change the orientation of the Simulator make sure that your using the last image of Simulator, then slide upward from the bottom right. (Not of the bezel, instead of part of the screen visible)

  • I can not install Illustrator, they ask me to change the direction of the application, but he always says that it can not be installed in the root directory. What can I do?

    I can not install Illustrator, they ask me to change the direction of the application, but he always says that it can not be installed in the root directory. What can I do?

    Hi alexisp25256377,

    Please mention the exact error message that you found when installing Illustrator and here are the steps that you can follow to change the installation location.

    1. go to preferences using the gear on creative cloud icon

    2. go in creative menu Cloud

    3. do Apps and then change the installation location to another directory.

  • IProcurement, can I change the requisitions created by another user?

    Hello

    IProcurement, can I change the requisitions created by another user? If so, how to set? Thank you.

    Concerning

    Leo

    Hi Leo,

    iProcurement is designed for the entire organization, and threre is a few restrictions as only the picker can modify the request. In rellease 12, there is a concurrent request to change the preparer if necessary:

    How to change mass employees end/unavailable (applicant, trainer) in the approval of the application and the process of application for change of version 12.1 (Doc ID 1432778.1)

    Thank you

    Clarino

  • Motion tween and the change of direction

    I'm trying to knock a ball onstage and then change of direction during the impact of another object. In this scenario, the ball falls on a slide and suppose to ride down the slide to the bottom of the scene. However before it continues to the bottom of the slide, it jumps to another location and then slide down. I can't put my finger on the problem. I also want to stop at the bottom left and not the Center. Can you help me understand?

    Here is the code and a Gif that illustrate the problem. I use BitmapData hitTest event listener to generate the effect of the impact. and I use localToGlobal variable to find the location of the ball to use interpolation to change direction.

    Import fl.transitions.Tween;

    Fl.transitions.easing import. *;


    var blueClip: objct2 = new objct2();

    addChild (blueClip);

    blueClip.x = 196;

    blueClip.y = 73;


    var tweenY: Tween = new Tween (blueClip, "y", Regular.easeIn, 73, 0, 0, false);

    var tweenX: Tween = new Tween (blueClip, "x", Strong.easeIn, 196, 0, 0, false);

    var redRect: Rectangle = redClip.getBounds (this);

    var redClipBmpData = new BitmapData (redRect.width, redRect.height, true, 1);

    redClipBmpData.draw (redClip);

    var blueRect: Rectangle = blueClip.getBounds (this);

    var blueClipBmpData = new BitmapData (blueRect.width, blueRect.height, true, 1);

    blueClipBmpData.draw (blueClip);

    Button.addEventListener (MouseEvent.CLICK, fl_MouseClickHandler);


    function fl_MouseClickHandler(event: MouseEvent): void {}

    var tweenY: Tween = new Tween (blueClip, "y", Regular.easeIn, 100, 400, 1, true);

    addEventListener (Event.ENTER_FRAME, enterFrame);

    }

    function enterFrame (e: Event): void {}

    If (redClipBmpData.hitTest (new Point (redClip.x, redClip.y),

    255,

    blueClipBmpData,

    New Point (blueClip.x, blueClip.y).

    255

    )) {

    var yourMC: DisplayObject = blueClip;

    var point1: Point = yourMC.localToGlobal (new Point (yourMC.getRect (yourMC) .x, yourMC.getRect (yourMC) there));

    var Point2: Point = yourMC.localToGlobal (new Point (yourMC.getRect (yourMC) .x + yourMC.getRect (yourMC) .width, there yourMC.getRect (yourMC) + yourMC.getRect (yourMC) .height));

    Alef var: number = point1.x; position of the object x.

    bet var: number = point1.y; position the object there.

    Gimel var: number = point2.x - point1.x; width of the object.

    Daled var: number = point2.y - point1.y; height of the object.

    redClip.filters = [new GlowFilter()];

    var tweenY: Tween = new Tween (yourMC, "y", Regular.easeIn, alef, 392, 1, true);

    var tweenX: Tween = new Tween (yourMC, "x", Regular.easeIn, bet, 0, 1, true);

    tweenY.stop ();

    trace ("hit");

    trace ("x" + alef);

    trace ("y" + BET);

    } else {}

    redClip.filters = [];

    trace ("Miss");

    }

    }

    tweenY.stop ();

    trace (tweenY.Stop);

    Stop();

    BallMove.gif

    I got it. I had to remove the listener and X and Y mГЄlГ and now have been corrected.

    removeEventListener (Event.ENTER_FRAME, enterFrame);

    var yourMC: DisplayObject = blueClip;

    var point1: Point = yourMC.localToGlobal (new Point (yourMC.getRect (yourMC) .x, yourMC.getRect (yourMC) there));

    var Point2: Point = yourMC.localToGlobal (new Point (yourMC.getRect (yourMC) .x + yourMC.getRect (yourMC) .width, there yourMC.getRect (yourMC) + yourMC.getRect (yourMC) .height));

    Alef var: number = point1.x; position of the object x.

    bet var: number = point1.y; position the object there.

    redClip.filters = [new GlowFilter()];

    var tweenXa: Tween = new Tween (blueClip, "x", Regular.easeIn, alef, 0, 1, true);

    var tweenYb: Tween = new Tween (blueClip, "y", Regular.easeIn, bet, 392, 1, true);

    tweenY.stop ();

    trace ("hit");

    trace ("x" + alef);

    trace ("y" + BET);

    } else {}

    redClip.filters = [];

    trace ("Miss");

    }

    }

  • How to change the direction of linear gradient in Flash CC 15

    In previous versions of flash 8 Macromedia, CS5.5 and CS6 - I remember taking simply by dragging in a direction with the paint bucket tool while using a linear gradient I could change the direction of the gradient. This seems to be either a feature of flash CC.

    (My lock fill is not selected.)

    Use the gradient transform tool. It is an option in the free transform tool.

  • When you save a file to the [.jpg] format, I wonder to choose a quality from 1 to 100. What are the changes in the created file based on the selected quality setting?

    When you save a file to the [.jpg] format, I wonder to choose a quality from 1 to 100. What are the changes in the created file based on the selected quality setting? I would like to know what changes, so in the future, I can set my camera to one who will give me the highest quality in a first time, which allows me to make cultures and always preserve the quality.

    Thank you

    Dovid

    Thank you twenty-one... your answer of common sense to me.

    so, in short, can I assume down the chosen quality over compression algorithm?

  • Change the direction of TLF text field dynamically!

    Hello

    I want to change the direction of fields of TLF text dynamically.

    Can someboddy help.

    Hello

    Please try the following code:

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

    Import flashx.textLayout.formats.Direction;

    toggle_btn.addEventListener (MouseEvent.CLICK, change_dir);

    function change_dir(event:MouseEVent):void

    {

    if(text_field.direction == direction.) LTR)

    text_field. Direction = Direction.RTL;

    on the other

    text_field. Direction = Direction.LTR;

    }

    Concerning

    Soltani Barb please

  • change of direction of the scrolling menu vertical

    Plase, if someone could help me,
    I did a vertical menu flash and I would like to change the direction of its movement. When I drag my mouse to the bottom of the Center, I would like links (in my case photos to move up, not down). You can see what I'm talking to
    alarmi 555. You can download one of the menus to check the code if you need HERE.

    The code which is at the origin of scrolling you can find below.
    Thank you all and wish you HAPPY NEW YEAR.

    change this
    FLF += (distance * speed);
    for this
    FLF-= (distance * speed);

  • "Send To SpeedGrade' changed to 'Direct Link to Adobe SpeedGrade,' creates more .ircp, .dpx files?

    In the process of learning SpeedGrade, I just watch a video on the Adobe site called "the adjustment of the Premiere Pro sequences in SpeedGrade" (https://helpx.adobe.com/creative-cloud/tutorials/videos/premierepro-speedgrade-integration-cc.html?product=speedgrade & path = fundamentals).

    At 04:30 in this video, the authors said that the command send to SpeedGrade in Premiere Pro creates a file .ircp, as well as a folder of files to .dpx on the order of 2 GB for each 8 seconds of footage. In my first Pro project there is no command "send to SpeedGrade. It is a 'Direct from SpeedGrade Adobe link' order however; but this does not create a new .ircp file that I can tell.

    So, this means that this video is obsolete, that the command send to SpeedGrade he no longer exists, it has been replaced by the command of link Direct to Adobe SpeedGrade, and that users no longer have to worry of racking up massive records and heavy, .dpx files when you work between the two applications?

    'Send to SpeedGrade' was an old and inefficient order in CS6 and has now disappeared. Direct link is like say name a new method without interest or DPX files, is a direct link between the first and SG, where Pr serves as executives for the SG in the background, just and effective.

  • Change of Direction Terminal for input of meter

    Documentantion, the default limits of the USB-6215 for counter source of entry and management (when the counting direction is controlled externally), are the two PFI 0. I tried to change but StartTask fails because it cannot find the selected channel to control the direction of counting... heeeeelp!

           DAQmxSetChanAttribute (countTask, "", DAQmx_CI_CountEdges_DirTerm, "Dev1/port0/line1");
    

    ' line1/port0/Dev1' is how you need to reference a line in a digital task entry or digital output.  You want a "terminal" to set the direction, which in your case would be a PFI line.  For example, "/ PFI3/Dev1.

    Of course, the 6215 has the same default for source counter and to the (which is used for up/down) lines:

    This seems odd, but the 6215 has only PFI 4 input and 4 output THAT PFI lines so I guess they had to adapt to the terminals of the defect in somehow (funny, though the line to the unusable for a line up/down with default breaks - I never liked using terminals by default anyway now that we have the option because honestly who can keep track of them).

    Best regards

  • Can we change the direction open AF: inputdate?

    Hi all

    Can we change the 'open' direction of the af: inputdate?

    af_inputdate_nok.png

    What I really want is

    af_inputdate_ok.png

    I'm doing it to help

    < af:inputDate simple = "true" chooseId = "cd" id = "id" clientComponent = "true" / >

    "< af:link icon="/resources/images/calendar.png "id ="l4">

    < af:showPopupBehavior popupId = 'dp' align = "afterStart" alignId = "id" / >

    < / af:link >

    < af:popup id = "dp" animate = "false" >

    < af:chooseDate id = "cd" > < / af:chooseDate >

    < / af:popup >

    But when we choose a date in the af af:chooseDate: inputDate is not updated, I think it's because within the pop-up window.

    Thanks in advance.

    PS: Using JDeveloper version 12.1.3.0.0

    Editada por Mensagem: version March added JDeveloper.

    It works for me in 12.1.3

    http://Java.Sun.com/JSF/core"xmlns:af ="http://xmlns.oracle.com/adf/faces/rich">."

    Timo

  • Can I change a muse created site without the original file to muse?

    I created a website for a friend about six months ago. They recently asked me if I could make some changes and I discovered with a heavy heart that the file including all graphics etc custom made are completely gone from my computer. Is it possible to change the Web site without the file?

    HTML is HTML. You can change it in the simplest text editor if you wish. If you ask if you can reimport the files published in Muse, then the answer is no.

    Mylenium

Maybe you are looking for