Change the firstView in ViewNavigatorApplication through AS3

I have a view navigator application which has a first view defined in the mxml code. How can I control this programatically so that I can apply a check and change the firstview accordingly? Is there a method of the ViewNavigatorApplication which needs to be overridden?

Hi,
In the ViewNavigatorApplication, override the method partAdded like this:
override protected function partAdded(partName:String, instance:Object):void
    super.partAdded(partName, instance);
    var stage:Stage = systemManager.stage;
    if (stage.stageWidth <= 480 && stage.stageHeight <= 480)
        navigator.firstView = mySmallHomeView;
    else
        navigator.firstView = myNormalHomeView;
Philippe

Similar Messages

  • I have installed Itunes on my laptop. However, the apple store opens in German language. I need it in English. How can i change the language for istore through the itunes?

    I have installed Itunes on my laptop. However, the apple store opens in German language. I need it in English. How can i change the language for istore through the itunes?

    Go to the bottom of the page, click the flag, then select your country.

  • Hi.   Does anyone know ifs it possible to play Spotify on the IPhone through both Airport Express and Apple TV?  Whenever I click either/or it just changes the speakers rather play through both?  Cheers

    Hi.
    Does anyone know ifs it possible to play Spotify on the IPhone through both Airport Express and Apple TV?
    Whenever I click either/or it just changes the speakers rather play through both?
    Cheers

    to transfer audio to an airport express the device needs to support airplay unless your samsung tv's manual clearly state it does support it then it don't
    appletv can't get audio input into it the optical connector is output only same with the hdmi port

  • Change the Summary Attribute Value through Java code

    Hi ,
    I am working on a requirement where I need to set the Attribute value on the final Summary Screen through Java Code.
    Code :
            InterviewUserData data = new InterviewUserData();
            InterviewEntityInstance globalInstance = data.getGlobalInstance();
            globalInstance.setValue("Name", value_to_set);
    On completion of the interview session Name is displaying as NULL.
    I need to set NAME = value_to_set and display it on the final summary screen.
    Any help on this will be appreciated.
    Regards

    The InterviewUserData object is effectively a change set, to apply this to a session you use the InterviewSession.submit(InterviewUserData) method. You don't say how you are invoking this code but if it's inside an event Interview Engine handler the InterviewSession object should be accessible.
    Regards
    Ian

  • Can we change the Record Group Type through Custom.pll

    Hello All,
    I have a small requirement on Changing the Record Group Dynamically.
    Can i set the Record group type to 'Query' from 'Static'. i.e Can i change the Record group type dynamically through custom.pll. I know that we can dynamically change the Record group query.
    Please help me its a bit urgent.
    Thanks inadvance,
    Amarnadh Js

    you can control your record group runtime without create any recordgroup at design time..
    1.static group
    declare
       rg_name         VARCHAR2 (40)  := 'Global_Rgp_Menu';     --global record group name for menu use
       rg_id           recordgroup;                                            --global record group id
       gc_id           groupcolumn;                                     --global record group coulmn id
       errcode         NUMBER;                                                             --error code
       grp_row         PLS_INTEGER    := 0;                             --global record group row count
    begin
      rg_id := FIND_GROUP (rg_name);
       IF NOT ID_NULL (rg_id)
       THEN
          DELETE_GROUP_ROW (rg_id, all_rows);
       ELSE
          rg_id := CREATE_GROUP (rg_name, global_scope);
          gc_id := ADD_GROUP_COLUMN (rg_id, 'menu_item', char_column, 100);
          gc_id := ADD_GROUP_COLUMN (rg_id, 'p_type', char_column, 100);
          gc_id := ADD_GROUP_COLUMN (rg_id, 'p_no', char_column, 100);    
       END IF;
      grp_row := 0;
      for 1 in 1..10 loop
           grp_row := grp_row + 1;
          ADD_GROUP_ROW (rg_id, grp_row);
          SET_GROUP_CHAR_CELL (rg_name || '.menu_item', grp_row, 'menu' || to_char(i) );
          /*type*/
          SET_GROUP_CHAR_CELL (rg_name || '.p_type', grp_row,  'type' || to_char(i) );
          /*program_no */
          SET_GROUP_CHAR_CELL (rg_name || '.p_no', grp_row,  'programno' || to_char(i) ); 
      end loop;
    end;
    2. query group
    declare
       FACT_SQL VARCHAR2(500) :=NULL;
       rg_name1       VARCHAR2(40) := 'Global_Rgp_fact';
       rg_id1   RecordGroup;
       Error_Flag number:=0;
       group_error exception;
    begin
       rg_id1 := Find_Group( rg_name1 ); IF NOT Id_Null(rg_id1) THEN Delete_Group( rg_id1 ); END IF;     
       FACT_SQL := ' SELECT *   FROM MYFACTORY  ' ;      
       rg_id1 := Create_Group_From_Query( rg_name1,FACT_SQL ,global_scope);
        Error_Flag := POPULATE_GROUP(rg_id1);
        IF Error_Flag <>0 THEN     
               error_msg:='Error while populating factory group';   
               raise group_error;
        END IF; 
    exception
      when group_error then
         message(error_msg);
        raise;
    end;Edited by: nolemlin on 2010/3/23 上午 7:50

  • I can't change the font in Firefox4 through options

    I just downloaded Firefox4 (I have done the Cleartype thing) and for some reason the font looks like this
    http://yfrog.com/h0uyn0j
    Which makes it very hard to read things, I have tried changing the font in the options multiple times but it doesn't work.

    Hi thanks for the reply
    I have tried both replies, but either work.
    My computer already has Cleartype working, It is just I can't change the font through the options and on some websites it is very hard to view the text.

  • I want to change the Legacy assest data through as92

    Hello  Sap Gurus
    I want to change the legacy Assest data for my client. While Changeing its give  error that Transfer the data or close the Year. year 2005 is closed. In Assest data Transfer , In date Parameters given data is 31-03-2007. For 2006 Dep is not at run.
    Can any one help me  in this Regards.
    Thanks
    Raj

    Hi Raj,
    Use transaction code <b>AJRW</b> to run the Fiscal Year change for 2005 and <b>AJAB</b> to run Year End Close. Do the same for 2006.
    Then, go back to <b>AS92</b>, indicate the Asset number, subnumber and the company code. Click on Take over values. Correct the APC and the Accummulated Depreciation value to what it should be and hit the enter button. This would determine your NBV for you. Save your entries.
    I hope the above helps.
    Do not forget to award the points please.
    Regards,
    Jacob

  • How can I change the file creation date through Labview 2012?

    I want to change the format of the data stored in some text files, but I want the file dates to remain the same.  Currently, my program creates the files with new dates.
    Solved!
    Go to Solution.

    LabVIEW to my knowledge doesn't have native functions to do this.
    You can use .NET functions on Windows to get/set the CreationTime, LastWriteTime and LastAccessTime.
    See attached VI (LabVIEW 8.6)
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness
    Attachments:
    dotNET File Timestamp.vi ‏14 KB

  • Change the order iPod cycles through the menus

    Is there a way to change the order in which the different menu items appear on a 4th gen 20gb iPod? That is - we want to click on "albums" & have it go right to the albums list, bypassing the "artist" category. Make sense? Our music collection is too, um, eclectic for us to be able to find an album based solely on the artist's name.

    If you want to change one of the icons on the bottom of the page in the iPod, go to Edit. From that page, if you touch and drag one of the icons you want on the bottom of the page over one of the icons you do not want there. It will replace it. Also, if you touch and drag an icon on the bottom of the page, it will change positions.
    Once you touch done, it will end up like you want. On the page that comes up when you first touch the iPod, if you are looking at More, I do not see a way to change that order, it appears to be in alphabetical order.
    Hope that helps.

  • How to get itemLink of the states in MultiStateObject through AS3?

    Hi
    Hope everyone is fine.
    Is there any method to get itemLink of the states in MultiStateObject? I need filePath of every item in MultiStateObject we created in inDesign.
    Thanks and best regards
    Sal

    Personally I never worked with multistate objects, nor (hardly) with AS, but the OMV Help still can come to the rescue.
    Your Multistate object may contain a collection of Images, under the property name 'images'. Each Image in turn has an itemLink property, which is of type Link. A Link in turn has the property filePath you are looking for.
    This is in JS notation, not AS, but it shows you a path to investigate.

  • How to change the aqua color seen through a semi-transparent wallpaper.

    I am looking to change this color (see title), if at all possible using a terminal command (though I can go bug that specific sub-forum if someone has a mouse-click solution)

    Found an apple script to do what I want on another site based on this data.
    tell application "System Events"
    set theDesktopPlist to property list file "~/Library/Preferences/com.apple.desktop.plist"
    set theGivenDesktop to property list item "69675202" of property list item "Background" of theDesktopPlist
    try
    set theColorArray to property list item "BackgroundColor" of theGivenDesktop
    on error
    set theColorArray to make new property list item at end of property list items of theGivenDesktop with properties {kind:list, name:"BackgroundColor"}
    end try
    repeat with i from 1 to 3
    if not (exists property list item i of theColorArray) then
    make new property list item at end of property list items of theColorArray with properties {kind:number, value:random number}
    else
    set value of property list item i of theColorArray to random number
    end if
    end repeat
    end tell
    Message was edited by: Camden Jared Narzt
    Message was edited by: Camden Jared Narzt

  • While playing music on my iphone 5, i am now unable to play, pause, or skip songs while my phone is locked. I can still change the volume and slide the scrub through songs.  This has always worked for me until now. I have not changed any settings

    While playing music on my iphone 5, i am now unable to play, pause, or skip songs while my phone is locked. I can still change the volume and scrub through songs.  This has always worked for me until now. As far as i know, i have not changed any settings.  This is whle my phone is locked both on the slide up toolbar/menu interface and on the normal screen before i slide to unlock.

    I skimmed through this very long post but from what I read, this sounds much more like a coverage issue with your network than a device issue.  I have not seen or heard of this issue before and I do not have this issue personnally and & I use the music app quite frequently while working in the yard.
    The DND feature should not be a factor at all if you're sure it's turned off.  I always recommend restarting your phone by holding down the home button + the lock button for 10-12 seconds until the Apple logo appears.  Once the phone reboots, do a test to see if this has helped to resolve the issue.
    If not, go to Settings > General > Reset > Reset Network Settings.  Then, test it out again.  Post back if neither of these solutions solve your issue.

  • Is there a way to change the default print tray on an HP LaserJet 500 color M551 Printer

    Hi
    Is there a way to setup the default print tray for a HP LaserJet 500 color M551 printer to be tray 2 printing both online and direct?
    If so what would be the best way to go about implementing it?
    Thanks
    This question was solved.
    View Solution.

    Usually, you can change the default paper trays through the control panel and through the Embedded Web server (EWS).
    Check the settings on your control panel. Here is a link to the User Guide, check out page 94 and see if that helps you out.
    m551 User Guide
    For the EWS, put the printer IP address into your browser, then go to the tab that would list tray settings. Not sure exactly which tab has it for this printer series, but on other printer series it is on the system tab under paper setup.
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as Accepted Solution

  • CSS issue when changing the table row height to 16px

    Hello,
    After changing the table row height through css like this:
    .table-row-cell, .table-cell {
    -fx-cell-size: 16;
    the table rows are correctly displayed with a 16px height but the cell bottoms seem to be incorrectly set.
    For example the following css style (a red 3px bottom border):
    .table-cell {
    -fx-border-width: 0 0 3 0;
    -fx-border-color: red;
    doesn't work anymore with the new row height whereas it works with the 24px standard row height.
    While investigating with Scenic View, I noticed that changing the row height changes the TableRow layoutBounds height (from 24px to 16px so that's ok) but not the boundsInParent height which remains to 27px. I think it should become 19px (16 + 1.5 + 1.5). I don't know if it's a bug.
    Anyway, any help making the css red border working for a 16px row height would be greatly appreciated.
    Regards,
    Bruno.

    Q: Would this help to just use absolute div tags and give me 'ABSOLUTELY ABSOLUTE' positioning?
    No.  APDivs are not a good primary layout method.  Use default CSS positioning (which is no positioning at all).  Align page elements with margins, floats and padding.
    See example -- 2-Column CSS Layout with Grids
    (View Page Source in your browser to see the code)
    http://alt-web.com/TEMPLATES/2-col-fixed-with-grid.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • CRM 4.0 ABAP Changing the Delivery priority of an Order

    I tried changing the Delivery priority of an Order forcefully through the program  which I was able to do successfully using both the function modules CRM_SHIPPING_PUT_OB and CRM_SHIPPING_MAINTAIN  but when I tried changing the Delivery priority forcefully through the ORDER SAVE badi method-change before update using all the three function modules CRM_SHIPPING_PUT_OB, CRM_SHIPPING_MAINTAIN and CRM_ORDER_MAINTAIN it didn't work. I also tried to change it using the shipping BADI but it didn't work.
    Please Advise !!!!

    Hello Gerwin,
    Maybe you have to change the start event of your action to another one that occurs outside the CRM_ORDER_SAVE.
    There is another thread in the forum called "CRM BADI" where Aidan create an action that save a document.
    He is facing some problems too, but it seems that it is not a recursive call problem.
    Take a look at it...
    Regards,
    Mauricio

Maybe you are looking for

  • FMS web server scheduling error

    following message pops up when generating a schedule for a report. "Scheduling failed! Please set property: server.forward.email.fromAddress under admin --> preferences" Although, all information is provided and the FMS server's Perf collector is res

  • MaxL import statement w/ rules

    How do you tell MaxL to look on the server for the rules file (without specifying a full path)?Harold

  • Purchase Requisitions stuck in CIf with message 181

    Hi All, We have purchase requisitions created in APO on transportation lanes based on external procurement relationships. We have noticed that the requisitions are created in ECC but get stuck on their way back to APO. They appear in /sapapo/ccr with

  • Error when sending HTML format mail from Oracle 9i forms

    Dear All, i have created one procedure with 15 in parameter by which i can send mail in HTML format. due to length problem i am using 15 parameter, every parameter has length 32767, i am splitting HTML coding after every parameter length fulfilled wh

  • Re: System segmentattion access violation

    There is a special utility you must run which will clean the environment repository. It is located under the following directory: %{FORTE_ROOT}/install/diag/bin/ It is called envedit The command works like this: %FORTE_ROOT%/install/diag/bin/envedit