What is the best way to manage fields on a screen to draw in paint () or manage through managers and their layout() method?

Hi all,

Sorry if this is a stupid question, but I'm kind of confused because of my friends on my code examination. I just thought that this forum is the right place have the answer

I develop a very simple screen but I m using feeders to quidon all the placement of objects on the screen.

I has a high HFM which has 2 tags that is exterme right and the other is on the far left of the hfm screen.this is added to the screen

There is a value for money including two labels and two basicEditFields.

There is an another HFM which has two button in what should be at the centre of the screen.

This button HFM is add in the optimization of the resources that are directly added to the screen

Now all the alignment of the manipulated by the sublayout methods of the manager.

According to my friends, I should HAV done this VIA object not via too many Manager and their layouts...

I want to know are right? or you can suggest a better way?

Concerning

In General, having too many managers slows down things. It is generally recommended to have as little as possible nesting Manager.

That being said, your friend is too complicate things. Managers are there for a reason and you use them for good reasons (to quickly, glancing at your description, this can be done via a single Manager custom without using a lot of nesting of the optimization of the resources/HFM).

Managers will take care of the tune-up, scrolling, etc.. Fact all through painting is stupid for this use case.

With the help of de facto managers save time, makes it easily manageable code, reduced the number of errors and makes things simpler to support/extend in the future.

There are cases where the surrogate object and made everything yourself is preferable, is not. For this particular case, your friend is wrong.

Tags: BlackBerry Developers

Similar Questions

  • What is the best way to manage applications so that they do not fill a space of memory?

    I have an iPad Air Os9, 64 g

    However, I am already up to 39 g mem.

    What is the best way to manage applications if tat I can use them, but no pork then my mem space?

    y at - it an app that manages the apps?  should I delete and re-download a few apps later?

    I would like to take advantage of many more applications that I believe I have space for.

    You can see how much storage resumes via the settings app > general > Manage Storage - this screen lists each app space (the application and its content), total by selecting an app on this screen should tell you how much space the application content (files, documents, etc.) resumes.

    y at - it an app that manages the apps?

    No, iOS is a sandbox environment, apps can control or manage other applications.

    should I delete and re-download a few apps later?

    Depends on the app. deletion of an app will also delete its content, if it is an application where its content is important (such as documents), and that content is not stored elsewhere (e.g.)  Dropbox or cloud server), you may lose this content by deleting the app.

  • What is the best way to manage Muse 2 accounts on one computer?

    I have a staff and an account of work adobe. I am currently only able to use my personal version of Muse on this computer, but really need to have access to both. What is the best way to switch between these two account on a single computer?

    Found. For anyone else that has this issue, simply go to Adobe Muse > preferences > publish with account > switch account

  • What is the best way to update a site to that. I build it as a trial site and then migrate the existing accommodation? If so, how?

    I would like to know the best way to upgrade an existing catalyst business ecommerce site to become repsonsive. I have a new model and would like to be able to be implemented without having to add all the Info page and product.

    You do not need to start from scratch, you can make sensitive sites but its never going to be as good, or even as a site built with that in mind. Actually, that makes a huge difference to the way a website is designed.

    You can build a site on a development site and the port, we often... But do not think about what changes, what remains the same, how you take it a direct site (about a day or more) replacement of files, 301 redirects if you changed your URL, backups... and so on.

    You can copy your site which will be over of ports of things like pages and products, and you can then delete the templates and css, the js files, etc if you want and go from there.

  • What is the best way to manage logging in vCO?

    We are trying to find a good way to manage journaling in vCO and have not found a good way and I'm looking for suggestions. We have relied on non-persistent logs in the vCO Client that are created with the System.log statements (). I know the Server.log statements () will be displayed in the events tab of the vCO Client and will be permanent, but that fills the database and he will have to serve frequently. Persistent logs which is placed on the server of vCO are not readable in other. We are curious about using Logstash or Splunk.

    If someone has a good method of logging vCO? Thanks for your suggestions!

    I worked with a customer who has implemented an action to open a session to drop that splunk powered by using fleWriter. It works well enough.

  • What is the best way to manage my problem of pattern match?

    Use vision assistant 8.2, I formed a model (Psquare.png) from the GoodPrndl.bmp.   Of course, I get a good match for this image.  I expect to get a bad match for BadPrndlClip.bmp.  You will notice that missing a corner of the square.  This problem of delimitation has been produced in the production and rendered to the client.  Could an expert review this problem and give suggestions on the best method to detect this problem of cutting.  Remember that cutting or the vacuum might occur anywhere on the site or 'P '.   I have also attached special criteria script.

    Thank you

    You can do it like that. And use a particulate filter after this operation. I feel give you coherence because the broken here part means that the rectangle will not be completed. Please see the attached image that shows the treatment for the bad image.

  • What is the best way to manage the use of the XP processor and backup storage?

    I have a three year old computer, I use a lot of disk space and burn the DVD for backup storage. I am a heavy user of CPU too. How do you recommend that I improve it? Thank you

    * original title - my Windows XP storage... *.

    Hmmmmmm!

    "I use a lot of disk space" - remove all the files that you do not need, does not store things that you don't use often. Delete unwanted files, i.e. run diskcleanup for example.

    "burn the DVD for storage of backup" - If you have USB2 then consider getting an external USB2 hard drive. Its easy to set up as and when necessary and is easy to copy/backup information to.

    Indeed, consider laying a HD internal or (easier) a USB2 external hard drive for storage from day to day, not just a backup.

    "I am a heavy user of CPU too" - its sometimes possible to upgrade your processor one installed initially, but it will depend on your type/brand/model of PC. Sometimes possible, sometimes it isn't. But it is usually at best a stop gap.

    If you have any free ram slots, additional ram stick in (get the right type for your PC) that can help speed up actions for certain tasks. If you play games and you have a "graphics card", level it as well.

    Best of all, is to consider a replacement PC. If you are really short on HD and have a very slow motherboard or CPU, long term on a new PC is probably going to be the best.

    Not sure if this is the type of information you were after? If it is not coming back.

  • What is the best way to create a custom Windows XP slipstreamed CD so that I can install fees and be perfectly up-to-date on security updates at the end of the installation?

    I have Windows XP SP3 OEM CD. I want to use to create a 'new' Windows XP OEM CD slipstreamed which would include at each update published security for XP since Service Pack 3. After researching this project for a bit, I noticed that an unholy amount of security updates have been released since Service Pack 3. My main question is how can I get all these security updates without having to monotonous download each individually? Or is this the only way? Is there a website that is legitimate and can be trusted who was respected and compressed these updates of security in a single file that can be downloaded? How can I incorporate these security updates? It is even possible to integrate these security updates or would they simply be performed one after the other during the installation of Windows XP?

    System configuration: Winndows 7 RTM, Gigabyte GA-EP45-UD3L motherboard, Intel Pentium Dual - Core E6300 Wolfdale 2.8 GHz, 4 GB of memory PC-1066 DDR2 Patriot Viper, 500 GB Western Digital hard drive, GeForce 8800GT Videocard

    Click here and discover the info, it's the best out there

    http://unattended.MSFN.org/unattended.XP/
  • What is the best way to manage a large image with many tiny objects?

    The photo in question is a mosaic composed of thousands of small shapes in Illustrator. It's about 28 in. x 48 in, but there is a white space around the image. I'm less than a quarter of the way through, and I notice that the AI starts to be slow during the refresh of the screen for example when changing the zoom. The file is 13MB. I fear that the image is too big to have to effectively manage. Would you advise me to break down the image into quarters and put them together at the end, or do you think I will deal with the scale and complexity effectively? If I have to separate section, there's a useful technique to use for this? Thanks in advance.

    You should not cut the image to make your application more efficient.  If it is intended for large format, you can reduce the resolution of the image of what is appropriate for the output device.  If it is a project of offset press, a picture that size is still manageable.  13 MB, I have a feeling that something is causing the slowdown.  You have a disk of assigned preference work?

  • What is the best way to manage the result variable? (IF THEN GOTO)

    I want to ask a question and then use the response on the position of my result, in a very old language and is no longer used, it would be IF a = 1 THEN GOTO 20, SO a = 2 THEN GOTO 30

    I did experiment with switch, case

    but its not really give me the results that I'm at the end, the conclusion is i do not use the syntax correctly or I use the right method.

    var docRef = app.activeDocument;

    var items = docRef.selection;

    var abRef = docRef.artboards;

    var swatchBoxX =-71.5

    var swatchBoxY = 372.518

    var swatchBoxSize = 22.04

    var totalSelected = items.length;

    newGroup var = docRef.groupItems.add ();

    newGroup.name = "ArtworkGroup";

    app.coordinateSystem = CoordinateSystem.ARTBOARDCOORDINATESYSTEM;

    abRef.setActiveArtboardIndex (0);

    position var prompt = ("Please enter the Position (1) front, (2) = back, (3) = left channel, (4)" = right channel ', '1', 'Print Position' ");

    switch (position) {}

    case 1: swatchBoxX =-71.5.

    break;

    case 2: swatchBoxX =-490;

    break;

    box 3: swatchBoxY = 840 & & swatchBoxX =-490;

    break;

    }

    If (totalSelected > 0) / / check selected objects

    {

    for (var j = 0; j < totalSelected; j ++) //loop through selection

    {

    var tpBox = swatchBoxX +-34.2

    var currentObject = items [j];

    var color = currentObject.fillColor.spot;

    myText = docRef.textFrames.add ();

    myText.contents = color;

    myText.position = [401, swatchBoxX];

    Rect = docRef.pathItems.rectangle (swatchBoxX, swatchBoxY, swatchBoxSize, swatchBoxSize) var;

    swatchBoxX = tpBox

    rect.fillColor = colour.color;

    Rect.stroked = true

    items [j] .duplicate (newGroup, ElementPlacement.PLACEATEND);

    } //end for

    } //end if

    else {}

    Alert ("Please select at least one object");

    }

    newGroup.resize (20,20,true,true,true,true,20,Transformation.CENTER)

    newGroup.position = [160, -130];

    I just need some advice please

    Yep, put your more likely to use the first option, and more add an option 'default' in the end, in the case where a person enters a key out of reach

    default:
         swatchBoxX='whatever you want';
    
  • Request for advice: generally speaking, what is the best practice for managing a paid and a free application?

    Hi all

    I recently finished my first app of cascades, and now I want to inspire of having a more feature rich application that I can then sell for a reasonable price. However, my question is how to manage the code base for both applications. Any have any "best practices", I would like to know your opinion.

    You use a revision control system? This should be a prerequisite...

    How the different versions of the application will be?

    Generally if you have two versions that differ only in terms of having a handful of features disabled in the free version, you must use exactly the same code base. You could even just it for packaging (build command) was the only difference, for example by adding an environment variable in one of them that would be checked at startup to turn paid options.

  • What is the best way to deal with a 'Implicit coercion' in a table to a sprite?

    Hi all!

    With the continued support of this forum, I'm getting closer to have a programme of work. I can't wait to be able to help others like me once I've finished learning the ropes of AS3.

    I'll briefly explain what I want to achieve and then followed with my question.

    Background

    I created a random number of 12 x 9 grid that fills each cell with an image, based on the numeric value of each cell. I also have a random play button that makes random numbers in the grid. The problem I am running became my click event of button to erase the current images off the grid in order to allocate the new (for example by removing the objects display battery in order to place the new ones in the same places).

    Question

    My question is this: what is the best way to manage an implicit constraint from a table to a sprite? I pasted my complete code below so that you can see how the functions are supposed to work together. My sentence is apparently not being able to use a value from array with a sprite (sprite represents the real layout of the grid on the pile of display while the table starts as a number that is assigned an image that must be transmitted to the sprite).

    ============================================================================

    package
    {
    import flash.display.MovieClip;
    import flash.display.DisplayObject;
    import flash.events.MouseEvent;
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFormat;
    import flash.utils.getDefinitionByName;

    SerializableAttribute public class extends MovieClip Blanko
    {
    Contains 12 * 9 grid of cells.
    var grid: Sprite;
    Maintains the shuffle button.
    var shuffleButton:Sprite;
    Is equal to 12 columns, 9 lines.
    var cols: int = 12;
    lines of the var: int = 9;
    Equal number of grid cells (108).
    cells var: int = COL * rows;
    Sets of cell width and height to 40 pixels.
    var cellW:int = 40;
    var cellH:int = 40;
    Contains 108 images of cell.
    var imageArray:Array = [];
    Contains 108 numerical values for the cells in the grid.
    var cellNumbers:Array = [];

    Constructor calls the functions "generateGrid" and "makeShuffleButton".
    public void Blanko()
    {
    generateGrid();
    makeShuffleButton();
    }

    Creates and displays the grid 12 * 9.
    private function generateGrid (): void
    {
    grid = new Sprite;
    var i: int = 0;


    for (i = 0; i < cells; i ++)
    {
    cellNumbers.push (i % 9 + 1);
    }
    trace ("before shuffle:", cellNumbers);
    shuffleCells (cellNumbers);
    trace ("after shuffle:", cellNumbers);
    var _cell:Sprite;

    for (i = 0; i < cells; i ++)
    {

    / / This line is where the implicit constraint occurs. '_cell' is a leprechaun trying

    on a temporary basis equal to a value from array.
    _cell = drawCells (cellNumbers [i]);
    _cell.x = (I % cols) * cellW;
    _cell.y = (I / COL) * cellH;

    grid.addChild (_cell);
    }
    }

    Creates a "shuffle" button and adds a mouse click event.
    private function makeShuffleButton (): void
    {
    var _label:TextField = new TextField();
    _label. AutoSize = 'center ';
    TextField (_label) .multiline = TextField (_label) .wordWrap = false;
    TextField (_label) .defaultTextFormat is new TextFormat ("Arial", 11, 0xFFFFFF, "bold");.
    _label. Text = "SHUFFLE";
    _label.x = 4;
    _label.y = 2;
    shuffleButton = new Sprite();
    shuffleButton.graphics.beginFill (0 x 484848);
    shuffleButton.graphics.drawRoundRect (0, 0, _label.width + _label.x * 2, _label.height +)
    _label.y * 2, 10);
    shuffleButton.addChild (_label);
    shuffleButton.buttonMode = shuffleButton.useHandCursor = true;
    shuffleButton.mouseChildren = false;
    shuffleButton.x = grid.x + 30 + grid.width - shuffleButton.width;
    shuffleButton.y = grid.y + grid.height + 10;
    this.addChild (shuffleButton);
    shuffleButton.addEventListener (MouseEvent.CLICK, onShuffleButtonClick);
    }

    Erase the images of the cell, mix of their numbers and then assigned these new images.
    private function onShuffleButtonClick (): void
    {
    eraseCells();
    shuffleCells (cellNumbers);
    trace ("after shuffle:", cellNumbers);


    for (var i: int = 0; i < cells; i ++)
    {
    drawCells (cellNumbers [i]);
    }
    }

    Deletes any existing cells in the battery of the display image.
    private void eraseCells(): void
    {
    While (imageArray.numChildren > 0)
    {
    imageArray.removeChildAt (0);
    }
    }

    Changes cell phones numbers (makes random table).
    private void shuffleCells(_array:Array):void
    {
    var _number:int = 0;
    var _a:int = 0;
    var _b:int = 0;
    var _rand:int = 0;

    for (var i: int = _array.length - 1; i > 0; i-)
    {
    _rand = Math.Random () * (i - 1);
    _A = _array [i];
    _B = _array [_rand];
    _ARRAY [i] = _b;
    [_Rand] _ARRAY = _a;
    }
    }

    Retrieves and sets a custom image to a cell based on its numerical value.
    private void drawCells(_numeral:int):Array
    {
    var _classRef: Class = Class (getDefinitionByName ("skin" + _numeral));
    _classRef.x = 30;
    imageArray.push (_classRef);
    imageArray.addChild (_classRef);
    return of demonstration;
    }
    }
    }

    ===========================================================================

    Any help with this is greatly appreciated. Thank you!

    If you want to have an array of Sprites that you later clear that is fine. But this does not mean that your function should return to it.

    You need your function to return the sprite so that you can add it to the display list and everything what you need.

    So just have the function get Sprite, push it in the "toBeClearedInTheFutureArray" and then return a reference to the currently acquired sprite.

  • What is the best way to test connection keys?

    I created several key connection for different rolse on a new site. When I select the key, it asks if I want to replace the existing connection, which I really don't want to do.

    What is the best way to manage this sort the administration login isn't affected?

    Also create a connection for you key Administrator role, so you can quickly return.

  • What is the best way to update coming 8 Pro?

    I'm a little confused about the best way to update my V8P. The app My Dell seems to be looking for updates, but it is also linked to a page on the Dell site that checks the latest downloads for the device. The link is provided through the tile from drivers and downloads . This page of the Web site, incidentally, trying to install a program to check my V8P, but the facility apparently never works. I always get an error message that says (and I entered here exactly as it appears, the police blue and all):

    "We're sorry, we were able to scan your system. "Please return to the drivers home to return to.

    Because of the link to the site I don't know if My Dell app is all I need. The app has an area of notification, which seems to be to talk about new drivers and such available, although drivers and downloads of tiles wonder is if there is more, I might have need. Why have the drivers and downloads of tiles if the application checks and warns me on drivers and downloads?

    Bottom line, is that I'm confused. So, what is the best way to ensure that my V8P is up-to-date?

    Manually, I downloaded and installed Dell system detect. After doing this I have re-tried the system analyze the updates of the Web page and it worked. I now have a lot of updates available.

  • What is the best way to edit photos?

    What is the best way to edit photos?

    Hi tj_ii,

    That depends entirely on your workflow and the type of installation you are willing to do on your images.

    You can learn Photoshop via the tutorials here to edit your images:

    Learn Photoshop, get help and support. Adobe Photoshop CC

    Products | Photoshop | Adobe TV

    If this does not help, could you please elaborate more on your application.

Maybe you are looking for

  • Why is there a red dot at the top of the face on my Apple Watch?

    I have a Sport Apple Watch, Version 2.2 (I think).  My question is why is there a red dot that just appeared on top of the face on my watch?

  • 2000-412NR HP: lack of network card

    My step mother network card has stopped working recently. It is said to update the drivers, but she can't do it because his computer won't let it connect to the internet. I tried to help him by downloading my computer network cards and set up his com

  • G60-530US: MEMORY UPGRADE

    Model G60-530US S #2CE94709W4 Can someone tell me what is the maximum memory for this device and what is the format. I also have a Mini 311 m #1037 and have the same question about it

  • Is satellite A500-1DN - possible to adjust the fan speed?

    Is it possible to adjust the speed of the fan of this laptop? As I saw in PC Health monitor the fan speed is mainly of 0%, and sometimes it amounts to 70% (on idling) and quite large making noise.I wish to address is it permanently on. Is this possib

  • 15 - R249TU: I need drivers Windows 8.1

    I need drivers Windows 8.1.  When I serch through driver choose opton I gt This error "we never could find the drivers for your product. Pilots may be developing, so please, check back at a later date or visit the product home page. »