How to always keep my Panel on the Center page?

Hi guys

I'm just starting to study Flex 3 using ActionScript 3 and I had a problem with the alignment, I'm doing a 'universal' function to align my Panel always in the Middle, regardless of the resolution of the user.

I realized that the Panel has the arguments X and Y, but if I put the values there will be fixed and don't align the Panel always as I want.

Follow an image of what I'm doing so far:

[ [url =http://img29.imageshack.us/i/temscreen.jpg/] [img] http://img29.imageshack.us/img29/2204/tem screen.th.jpg[/img][/url]

This is my screen, you can see a line of writing around the Panel, which is the Panel I want to align in the Middle, my Panel will always be size: 1024 x 768. I just want to keep it always in the Central page even if the user has a resolution greater than that.

Any help will be very appreciated.

Well, it is very easy if the container of the Group has a provision for the absolute. If the Application has a layout for the absolute property, you can set two properties in the control panel and lock the Panel exactly in the center of the application. These two properties are horizontalCenter and red. You can set them to 0 and your panel will behave as you wish.

Tags: Flex

Similar Questions

  • How to clear a single block of the current page in the OPS

    Hi all

    How to erase a single block of the current page in the OPS. I used the CLEAR key.


    Thank you

    Hello

    I found the solution I wrote it in the button DELETE. I wrote the remove with vo1.setMaxFetchSize method (1);

    and remove called AOS

    Thank you

  • Help! How to link to information users at the user page?

    I created the connection index, register, and sign the php pages. MySQL. Now I'm trying to create the user profile page. But I can't link their information to the user page. So, how to link to information users at the user page? @

    maniragav26 wrote:

    I created the connection index, register, and sign the php pages. MySQL. Now I'm trying to create the user profile page. But I can't link their information to the user page. So, how to link to information users at the user page? @

    Can I assume you are using Dreamweaver server behaviors (I guess if you ask this question, it is likely that you would be).

    Go to the mode code in your "login" page Find the section of code that creates the DW:

    $LoginRS__query = sprintf ("SELECT Uname, Pword OF USERS WHERE Uname = %s AND Pword = %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $connUsers) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    If {($loginFoundUser)

    $loginStrGroup = "";

    Declare two session variables and assign them

    $_SESSION ['MM_Username"] = $loginUsername;

    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    INSERT THE CODE in RED below: 'id' is the name of the id column in your database table - if it were 'user_id' that's what you have inserted.

    $LoginRS__query = sprintf ("SELECT users id Pword, Uname, Uname WHERE = %s AND Pword = %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $connUsers) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    $row_rsUserDetails = mysql_fetch_assoc ($LoginRS);

    If {($loginFoundUser)

    $loginStrGroup = "";

    Declare two session variables and assign them

    $_SESSION ['MM_Username"] = $loginUsername;

    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    Now to find the under section of code in the 'login' page: (this implies that you have defined a 'success' page to return IF the connection information is correct):

    If (isset($_SESSION['PrevUrl']) & false) {}

    $MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];

    }

    Header ("Location:".) $MM_redirectLoginSuccess);

    }

    else {}

    Header ("Location:".) $MM_redirectLoginFailed);

    }

    INSERT THE CODE in RED below: 'id' in $row_rsUserDetails ['id']; is the name you gave the id column in your database user table, so if it was "user_id" it would read as - $row_rsUserDetails ['user_id'];

    If (isset($_SESSION['PrevUrl']) & false) {}

    $MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];

    }

    $_SESSION ['id'] = $row_rsUserDetails ['id'];

    Header ("Location:".) $MM_redirectLoginSuccess);

    }

    else {}

    Header ("Location:".) $MM_redirectLoginFailed);

    }

    NOW, you create your user details page.

    Create a Recordset, select the table of database you want to gather information about the user. Select the filter to 'none '.

    Go to the view code and at the top of the page, insert:

    <>

    $userId = $_SESSION ['id'];

    ?>

    NEXT FIND THE CODE THAT SELECTS DATA FROM THE DATABASE: (your will be slightly different as you use different details of connection and recordset)

    @mysql_select_db ($database_connUsers, $connUsers);

    $query_rsUserDetails = "SELECT * FROM USERS";

    $rsUserDetails = mysql_query ($query_rsUserDetails, $connUsers) or die (mysql_error ());

    $row_rsUserDetails = mysql_fetch_assoc ($rsUserDetails);

    $totalRows_rsUserDetails = mysql_num_rows ($rsUserDetails);

    Change the second line above to: (add red code below for your SELECT string) (remember WHERE 'id' - 'id' is the name of the column in your database table.)

    $query_rsUserDetails = "SELECT * FROM users WHERE id = '". " $userId. » ' ";

    It's her!

    You can now start "liaison" details on the user Details page.

  • How can I keep all my information from single page when I'm working on a document.  When I want to add a page above on want information on the next page to stay on the pages of how I got them. So, I want to scroll the entire page.

    I just need a few help understand how to use the Pages program, where I keep everything I type on one page, and if he's going to stay on this page. I want the whole page too scroll down including images and all cells, if I might have to add a page over the top of this page?

    Pages as its name indicates, contains pages.

    You can do this very long page in Menu > file > Page Setup

    or use TextEdit or another text application that has scrolling of pages.

    Peter

  • How can I keep all applications, all the windows, above the taskbar

    Using HD Tach by Simpli software in my netbook - falls behind the task bar and several other windows application also.

    The only way to solve the problem was to use a resolution of 1024 x 768 or 1154 x 864 and increase police to 109% or more but the police is still too small

    The netbook uses several functions scroll to top and bottom and left and right - some windows have them, some can be resized by dragging them, some can not be resized - HD Tach by Simpli software may not be resized by dragging on it.

    There are commands to add to the registry in order to keep the windows above the bar of task or easier to manage?

    I noticed that too Yes thank you good information.  Sometimes she's going is worse.

    I found 2 resolutions more - 1024 x 768 or 1154 x 864 - I used to look in the registry for regedit:

    Display1_EnableDynamicScaling change the value of '1 '.

    Display1_DownScalingSupported change the value of '1 '.

    While using either 1024 x 768 or 1154 x 864, I used regedit to get to the registry and search for 'LogPixels' and change the numbers - the font size is larger - and holds no more things on the image using auto hide.  Three of these requests made worse to use with my netbook HP mini 210-2177nr 64 bit - is HD Tach and CCleaner and EMET 5.1

    I can't find a good quality / 800 x 600 or 1024 x 600, but I can find a way for them to adapt at 1024 x 768 - after regedit - I started per, highlight, press the HKEY CURRENT USER and used find (ctrl + F) then find with LogPixels then get to HKEY CURRENT USER\Control Panel\Desktop - LogPixels - find my best fit - I started to... '60' (96) - right-click on LogPixels and click on edit - add "6 d" - next to him his (109) - this is the maximum I can go before he goes out at new size - whatever the HKEY CURRENT USER\Control Panel\Desktop value - LogPixels is - HKEY USERS\...\Control Panel\Desktop.  The LogPixels next time it will be the last one - CONFIG\Software\Fonts HKEY CURRENT - modified LogPixels value in... "6B" (107) you can change that to something bigger.

    There are several LogPixels more between HKEY CURRENT USER - and - CONFIG CURRENT HKEY - some are linked in value yet some appear separated from each other in value - between these places HKEY. Then stop and start - then police is greater, and the more things fit to the screen. The police on the desktop and a few other places is smaller but more that it was first.

    HKEY CURRENT USER\Control Panel\Desktop - LogPixels - controls the size I needed.

    Best number makes largest font size while keeping HD Tach above the taskbar

    HKEY CURRENT CONFIG\Software\Font - LogPixels - controls the size of the logon screen - "Police and image' - as many more police is - make sure what my limit was 87 (135) or 99 (153) 9f (159) - my limit. I found a problem with 100 (256) its too large a gap - too many.

    If I use 1154 x 864 HKEY CURRENT USER\Control Panel\Desktop - LogPixels will be... "87" (135), it perhaps gives me the best font size - most every thing is bigger - compared to 1024 x 768

    HKEY CURRENT CONFIG\Software\Fonts - LogPixels is therefore 87 (135) to 99 (153) also 9f (159)

    For clarity, I used 'Clear Type'

  • How do I keep track of all the classes/methods/properties created in a long script


    Hello

    I'm curious to know how people use to keep track of all the classes, methods and properties that you created when you write a script any longer.

    For quick scripts, this isn't a problem. But for long scripts, it can become quite difficult to keep track of all the objects, was created, and all their methods and properties and builders overloaded, etc..

    ESTK is large, and it is the IDE that I use for InDesign scripting, if only because of, it is powerful, debugging options.

    But it provides no way to keep track of such things. No good Intellisense in Visual Studio.

    I'd be curious to hear how people solve this problem.

    JsDoc can generate documentation for the JavaScript API commented and can be used for ExtendScript.

  • How to keep search settings on the summary page

    Hello

    I have a summary page that shows the lines of employee_names. When the employee is clicked (I have the OADestination property set), he goes to the update page.

    Things work perfectly well - except when I'm in the update page and you click Summary Page should go, my summary page does not retain the search parameters (like employee_number, employee_name).

    I expect this result because I didn't have all of the parameters, or whatever.

    I followed the tutorial of jdev AdvancedResultsTable. No idea how can I keep search params?

    Thank you
    N

    Methods of OAPageContext.setForward* () with the parameter retainAM set to true.

    Thank you
    -Anil
    http://oracleanil.blogspot.com

  • How to copy the name of the track in the layers panel to the center of the path object / in my file HAVE?  Is there a native function or some kinds of scripts that could be done?

    For example, I have a map of the United States.  Each State is a path and was named in the layers panel.  I want now to generate the name of the State in the layers panel is automatically center the text within each State/access path.  Each file will also be saved as an svg once completed.  I want to do this so that it saves me time from having to manually type the name of each State in the State.

    This should help you get started.

    will do most of the work.

    I would just be manually tweaking the position of those who do not look correct.

    function Qwertyfly_name_to_text(){
        var doc = app.activeDocument;
        var sel = doc.selection;
        for(var i=0; i		   
  • How can I keep IE8 to change my Web page shortcut icons to the default icon of IE?

    IE8 passes all my Web page icons to the default IE icon

    It looks all right, but I can have a solution by searching through some of the other threads. I reudced the size of my icons on my desktop only slightly and so far, they remained the icon that has been given by the Web page instead of that boring small blue 'e '. Time will tell! Thank you for your interest in my little problem.

  • How can I place a widget on the master page on the front a subpage?

    Hi guys,.

    I'm working on a Web site right now, and I have some difficulties with a widget. I use the new Compositions featured Widget to create my menu on my master page.

    The problem is when I used this master page on subpages, the target of the widget is always behind the images that I put on the secondary pages. I don't know how to make the target of the widget before the images and step back. I do a right-click with the photos to put on the secondary pages, try to fix it in towards the back, but the target of the widget (which is my menu) is always behind the image. I have attached an image to illustrate my pb on red square. If anyone can help me.


    Pb postionnement.jpg

    Well I finally just found the solution by using layers and renamed.

    Now I can rearrange my work as I want!

  • When you start the browser, the UPDATE tab always opens with tab on the home page.

    Updated the 3.6.22 worm. Now when I restart the browser tab UPDATE along the tab on the homepage to load.
    I've updated to another computer in the same way that I did this and the problem does not exist on this computer.

    Restore the default home page

    Check and tell if its working.

  • How do I tell the printer to the Center page?

    Prints from the center of the page to the right and omits the rest.  How to load printer to Center on the portrait page?

    Hello

    What is the brand and model of your printer?

    Download and run the fixit tool from the link below and check if it makes a difference.
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-printer-problems


    For your reference:
    http://Windows.Microsoft.com/en-us/Windows-Vista/choosing-print-options

  • How to insert a bar area in the slide page property metadata Muse CC

    I use the latest version of Muse CC and want to know how to insert a bar area in the model box slides property page metadata page title suffix

    I found it.  If anyone has this problem press the shift and -at the same time on a standard windows keyboard.

  • How to load several HTML5 canvas on the same page (the right way)

    Hello

    I struggled to load several animations of canvas on the same page. At the beginning, I thought that export movies with different namespaces and reload the libraries in a sequential workflow might work, but it doesn't. It still load just the last loaded movie. More info here: coding challenge: what am I doing wrong?

    Here's a sample of what I'm doing:

    1: publish two flash animations with namespaces customized to "lib" defined in the "publication settings": "libFirst" and "libSecond".

    2nd: Edit the canvas tags in the HTML page. One called "firstCanvas" and another one called "secondCanvas".

    3rd: change the javascript like this:

            <script>
                // change the default namespace for the CreateJS libraries:
                var createjsFirst = createjsFirst||{};
                var createjs = createjsFirst;
            </script>
            <script src="//code.createjs.com/easeljs-0.7.1.min.js"></script>
            <script src="//code.createjs.com/tweenjs-0.5.1.min.js"></script>
            <script src="//code.createjs.com/movieclip-0.7.1.min.js"></script>
            <script src="{{assets}}/js/first.js"></script>
            <script>
                function initFirstAnimation() {
                    var canvas, stage, exportRoot;
    
                    canvas = document.getElementById("firstCanvas");
                    exportRoot = new libFirst.first();
    
                    stage = new createjsFirst.Stage(canvas);
                    stage.addChild(exportRoot);
                    stage.update();
    
                    createjsFirst.Ticker.setFPS(libFirst.properties.fps);
                    createjsFirst.Ticker.addEventListener("tick", stage);
                }
            </script>
            <script>
                // change the default namespace for the CreateJS libraries:
                var createjsSecond = createjsSecond||{};
                var createjs = createjsSecond;
            </script>
            <script src="//code.createjs.com/easeljs-0.7.1.min.js"></script>
            <script src="//code.createjs.com/tweenjs-0.5.1.min.js"></script>
            <script src="//code.createjs.com/movieclip-0.7.1.min.js"></script>
            <script src="{{assets}}/js/second.js"></script>
            <script>
                function initSecondAnimation() {
                    var canvas, stage, exportRoot;
    
                    canvas = document.getElementById("secondCanvas");
                    exportRoot = new libSecond.second();
    
                    stage = new createjsSecond.Stage(canvas);
                    stage.addChild(exportRoot);
                    stage.update();
    
                    createjsSecond.Ticker.setFPS(libSecond.properties.fps);
                    createjsSecond.Ticker.addEventListener("tick", stage);
                }
            </script>
    
    <body onload="initFirstAnimation(); initSecondAnimation();">
    
    
    
    

    Could someone please answer with best practices on how to do it? If possible, without the need to reload all libraries...

    If I only need to show a flash animation at the same time, it would be more efficient to cut/paste the canvas using jQuery tag in the DOM and reload a different lib on this subject?

    Thank you very much!

    #flash #reborn

    I was able to remedy. In the end, it was easier than I thought. Just publish using namespace different 'lib' for each film, load all the scripts at the end of theand add the following in the onload or ready events:

    $(document).ready(function () {
    
            var canvas, stage, exportRoot;
    
            // First movie
            canvas = document.getElementById("firstCanvas");
            exportRoot = new libFirst.first();
    
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
    
            createjs.Ticker.setFPS(libFirst.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);
    
            // Second movie
            canvas = document.getElementById("secondCanvas");
            exportRoot = new libSecond.second();
    
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
    
            createjs.Ticker.setFPS(libSecond.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);
    
            // Third movie
            canvas = dument.getElementById("thirdCanvas");
            exportRoot = new libThird.third();
    
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
    
            createjs.Ticker.setFPS(libThird.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);
    });
    
  • [CS5.5] how to import a code snippet in the current page

    Hi all

    I got IDOMElement of the document UIDRef and imported to the code snippet. Here's the code-

     InterfacePtr<IDOMElement> documentElement(docRef, UseDefaultIID());
    
     if (documentElement == NULL)
        break; 
    
     if ((status = Utils<ISnippetImport>()->ImportFromStream(tStream, documentElement)) == kSuccess) 
        //success
    

    ( tStream is the IPMStream of the code snippet that I'm importing)

    This code above is able to import the extract with success on the first page of the active document, but I can't be imported into current page instead. So to do this, I tried to get IDOMElement of UIDRef of the current page instead (logically, I thought this will import the excerpt of the current page).

     InterfacePtr<IDOMElement> documentElement(currentPageUIDRef, UseDefaultIID());

    But the result is still - the documentElement is not null, but the code snippet is imported to the first page only.

    Maybe the concept of IDOMElement is not clear to me, but I find that no documentation in the SDK Guide too. Can someone explain to me what is an IDOMElement and how to import a snippet of the current page?

    Any help will be much appreciated. Thank you.

    Hello Shawn,

    have you tried the IDOMElement of the propagation or layer? You can't place items on a page.

    Markus

Maybe you are looking for