How to load a new mxml at runtime altogether..?

Me basically a java world guy...getting started with
flex....bear me with my simple questions....
dont want to use states or viewstack navigator...take a
simple scenario...i have a login for my application..upon
successful login take me to different page./mxml ...

For your scenario, use a viewstack or a pop-up. Do not
navigate to a different url. That would be a mistake.
But if you insist (big mistake) use navigateToUrl()
And this is the wrong forum for Flex Language questions. Post
in General Discussion.
Tracy

Similar Messages

  • How to load and instantiate FXG at runtime?

    Hi
    Let's say I have a Flex 4 app whose SWF size in KB/MB should be small. While the app runs, the user might want to make the app load 10 of 1000 FXG components that are available. How to load and instantiate these 10 FXG components?
    (I want to avoid compiling an SWF that would contain 1000 FXG components and thus would be large in file size.)
    Here are snippets from an example which can instantiate FXG components, but would probably be too large in SWF size if would contain all the FXG components.
    fxgstuff/rect.fxg and fxgstuff/circle.fxg contain this:
    <fxg:Graphic xmlns:fxg="http://ns.adobe.com/fxg/2008" version="1">  
       <fxg:Group>
    Snippets from the main MXML file:
      import fxgstuff.*;
      import spark.core.SpriteVisualElement;
      public function addRect():void {
        var _rect:SpriteVisualElement = new rect;
        _rect.x = _x_rect;
        _rect.y = _y_rect;
        container.addElement(_rect);
      public function addCircle():void {
      <s:Button label="Add rectangle" click="addRect()"/>
      <s:Button label="Add circle" click="addCircle()"/>
      <s:Group id="container"/>
    Tobi

    You put each graphic into a MXML Module (not MXML Component) which stays on the server and is loaded at runtime when you request it, as in:
    // >>>>>  Imports  <<<<<
    import flash.events.Event;
    import flash.net.URLLoader;
    import flash.net.URLLoaderDataFormat;
    import flash.net.URLRequest;
    import mx.events.ModuleEvent;
    import mx.modules.IModuleInfo;
    import mx.modules.ModuleManager;
    // >>>>>  Variable Declarations  <<<<<
    private var urlLdl:URLLoader;
    private var modInfo:IModuleInfo;
    private var oneGraphicsModule:Object;
    // >>>>>  Methods  <<<<<
    private function moduleLoader( pathToModule:String ):void
      // Loading one Module
      modInfo = ModuleManager.getModule( pathToModule );
      urlLdl = new URLLoader(  );
      urlLdl.dataFormat = URLLoaderDataFormat.BINARY;
      urlLdl.addEventListener( Event.COMPLETE, bytesLoadedHandler );
      urlLdl.load( new URLRequest( pathToModule ) );
    private function bytesLoadedHandler( event:Event ):void
      modInfo.addEventListener( ModuleEvent.READY, moduleLoadedHandler );
      modInfo.load( null, null, event.target.data );
    private function moduleLoadedHandler( event:ModuleEvent ):void
      oneGraphicsModule = modInfo.factory.create();
      // Do with the module what you need to . . .
    So all of your graphics stay on the server, you "just" need to put each graphic or group of graphics into a MXML Module.
    David

  • ABAP PROXY - how to load a new field into SAP SNC system

    I am also curious about the proxy process. Please let me know if you know of a post that has mentioned this before.
    We have to customize our Delivery Schedule Notification proxy. I already regenerated the standard one into a Z proxy name. I already put in my custom code to load Z fields into a Z table.
    Here is my new problem. The users wants more additional fields.
    Here is the standard proxy generated layout for this structure:
    /SCA/BIF_S_DELIVERY_SCHEDULE
    CONTROLLER
    ID
    TYPE_CODE
    CREATION_DATE_TIME
    BUYER_PARTY
    VENDOR_PARTY
    BILL_TO_PARTY
    NOTE
    ITEM
    Here is the new proxy generated layout for this structure:
    ZDELIVERY_SCHEDULE_NOTIFICATIO
    CONTROLLER
    ID
    TYPE_CODE
    CREATION_DATE_TIME
    BUYER_PARTY
    VENDOR_PARTY
    SUPPLYING_VENDOR
    BILL_TO_PARTY
    NOTE
    ITEM
    Notice that SUPPLYING_VENDOR is the new field. VENDOR_PARTY is already loaded into the system. How can I get SUPPLYING_VENDOR loaded into the database?
    Thank you in advance for your assistance.
    Edited by: DAVID CRAIG on Jul 29, 2009 2:16 PM

    Hello.
    Thank you for the information.  I need to clarify my situation.
    I understand there is a PROVIDER CLASS.  Within that PROVIDER CLASS there is a METHOD.   Inside that METHOD there is a place for me to put my code in.  I have already done that work for a previous requirement.  I moved Z fields to a Z table.
    My new requirement has a field SUPPYING_VENDOR that was inserted into one of the SAP structures.  It was placed next to VENDOR_PARTY.
    Here are my steps of execution:
    1.  Go to transaction /N/SCA/ICH_S (SNC Supplier View)
    2.  Click on RELEASE
    3.  Click on RELEASE OVERVIEW
    4.  Click on GO
    5.  Click on DETAILS
    6.  Click on the SHIP-FROM LOCATION tab
    The SHIP-FROM LOCATION field is currently being populated by the VENDOR_PARTY field from the proxy.  This is done automatically by SAP.
    1.  How do I find the table and field name for that field?  This is in the Supply Network Collaboration screen, not normal SAP transaction.
    2.  How do I get that SUPPLYING_VENDOR data to populate SHIP-FROM LOCATION instead of VENDOR_PARTY?

  • How to load up new os on unpartitioned hard drive

    i downloaded driver genius because i had downgraded fom vista and the drivers were hard to find. anyways driver genius loaded the wrong video driver and it initiated the blue screen error message"page_fault_in_non_page_area
    0x00000050 (oxf7b44703, 0x00000000, ox807e9854). so a friend of my looked at it and said that i needed to erase that os and it partition and reformat the hard drive and create a new partition and re-load my os  onto it.well after he had erased thewpartition & os he began to format the hard drive with ms-dos on an external floppy about 1/4 of the way thru my laptop batteries went dead. now when i try to re-load the os it goes bavck to the previous os's drivers and i end up with the same blue screen error message before installation even starts. how do i fix this????????????PLEASE HELP!!!!!!!!!!!!

    The first time I backed up my iTunes on an external drive, it took a 1 hour +. Do I basically need to start over on my external hard drive? Or is there an easier/faster way?
    Yes there is a faster way.
    Check this out -> Backup your iTunes for Windows library with SyncToy
    Don't change the library location or hold Option to update the backup on the external.

  • How to load a new version in  Central Management Console

    HI I am new to  Central Management Console  and need to replace a program there with the new version.
    i am not seeing how this is done.
    i have gone there and located the current report. but i don't see where you replace it.

    Hope you have already got know on how to add new programs to CMC. (CMC->Folders->Manage->Add->Program file->Browse and select the program)
    To replace...
    If you are using SAP BO XI R3.x, you can use "Import wizard" or LCM for replacing \ overwriting the existing version of any objects (Programs, Crystal, webi reports etc..,) from one environment to another (Dev-QA, QA-UAT, UAT-Prod).
    If you are using SAP BI 4.x, you can use Promotion Management which is integrated within the CMC to replace or overwrite the existing version of any objects from one environemnt to another.
    To know more about using Import Wizard - http://scn.sap.com/docs/DOC-20523
    To know more about LCM or Promotion Management - http://help.sap.com/businessobject/product_guides/boexir31/en/xi31_LCM_User_en.pdf
    Note: If you are using LCM in R3.x or Promotion Management in BI 4.x, you can also utilize the "Version management" to manage your versions to keep track off.

  • Adding a new tab to CrystalReportViewer and loading a new rpt into it

    Hi,
    I've been struggling with the following problem for a few days now and I would really appreciate any help you can offer.
    I need to add a new tab to an existing instance of CrystalReportViewer and load a new crystal report (RPT) into it.
    I wasn't able to do that and tried inserting an instance of a new CrystalReportViewer into the new tabpage, but I've encountered several problems with that solution as well, such as: by hiding the tree and all bars, I'm also removing the page navigation field of the new rpt.
    Here is the code I've used:
    TabControl tabControl = (TabControl)((PageView)crystalReportViewer1.Controls[0]).Controls[0];
    DocumentControl tab2 = new DocumentControl(new ViewerDocument(new SubreportContext()));
    tabControl .Controls.Add(tab2);
    tabControl .TabPages[1].Text = "New Tab";
    tabControl .SelectedTab = tab.TabPages[1];
      Now I need to load the rpt to the new tabpage
    If I'm trying to add a new CrystalReportViewer into the tabpage:
    ReportDocument oRpt2 = new ReportDocument();
    oRpt2.Load(tempFile);
    CrystalReportViewer newViewer = new CrystalReportViewer();
    newViewer.Dock = DockStyle.Fill;
    newViewer.DisplayGroupTree = false;
      newViewer.DisplayStatusBar = false;
      newViewer.EnableDrillDown = false;
      newViewer.DisplayStatusBar = false;
      newViewer.DisplayToolbar = false;
      newViewer.ReportSource = oRpt2;
       tab2.Controls.Add(newViewer);
    Please let me know what is the best practice for this kind of operation.

    Continue my question....
    I've found a method that opens such a tab for me in one statement:
    DocumentControl tab2 = ((PageView)crystalReportViewer1.Controls[0]).CreateNewReportDocument("new doc");
    But I remain with question of how to load the new RPT into it?

  • Loading a new child container within TabNavigator

    Hi all,
    I use the TabNavigator in Flex 3 to navigate trough
    individual modules.
    Now, what I need is a hint on how to load a new module within
    a selected selected child from the TabNavigator (hope this makes
    sense!)
    The attached code shows that an individual module is loaded
    in the second tab.
    That module should change to another module (but still inside
    the second tab).
    Any ideas on how to accomplish that? The neccesary code
    should be handled from the first loaded module in the second tab
    ("MyChallenges").
    Please let me know if anything above does not make sense
    :)

    So you want to execute the load of module 2 from module 1?
    You could dispatch a custom event, with the handler unloading
    module 1 and loading module 2. The handler would be in the main app
    <Script> block.

  • How can I down load a new app with out the cloud sign how do I get the sign off

    II'm trying to down load a new app but every time I try all I get is the cloud sign how do I get rid of it

    Touching the cloud icon should re-download the App.
    If not what happens?

  • Can someone tell me how I load my music from my itunes account onto my new macbook pro??

    can someone tell me how to load my music from my itunes account on my iphone to my new macbook pro?

    See Here
    iTunes: How to move your music to a new computer

  • . I am new to IPods. I have a Classic 160GB and I can't figure out how to load my music videos to it. I have had no problem loading my music CD's but no go with the music videos I have. Please HELP. Thanks maxsdad

    Hello:
    I am new to IPods. I have a Classic 160GB and I can't figure out how to load Music Videos to iTunes or the IPod. I have had no problem loading my CD's to iTunes and to the IPod, but no go on the Music Videos.
    Please Help
    maxsdad

    B-Rock:
    Ok. Here's the results. I tried all the music videos I wanted to put onto the IPod and the results were:
    I was able to get good results with 2 full length music videos and 2 video singles(only 2 videos on each disk). For a total of 4 videos.
    I was able to encode 5 full length music videos, but the results were distorted (video and audio).
    I was unable to copy 2 full length videos due to error failures. 1 was a "No Title Found" error, the other was a "NAVDAT" error.
    I guess my next question is: Do you know of any other program(s) that I might try, to see if I can get good results with the videos that didn't work with Handbrake?
    Thanks again for all your help.
    maxsdad

  • How to load files from old external hard drive to new PC

    Copied files from old PC (Windows XP) to external hard drive. Purchased new PC (Windows 7). Paid technicians to transfer files from old PC to new PC. Some files were lost in the process.
    Please walk me through (step by step) on how to load spicific files from an external hard drive onto my new PC.
    Thanx, rp1

    Click anywhere on the open desktop so that the Finder menus are displayed at the top of the screen.
    Click Go > Network
    Double click the Time Capsule icon, then double click the icon representing the drive to mount it on the Mac's desktop. It is named "Data" unless you have changed it
    You can drag/drop files to the "Data" icon on the desktop
    235 GB is going to take forever if you try to do this using wireless. If at all possible, connect an Ethernet cable from your Mac to one of the LAN <-> ports on the Time Capsule.
    Even using Ethernet, you are probably looking at 10-12 hours for the file transfer.  All bets are off with wireless only, but a guess would be several days....or even more.

  • How do I get new episodes to load on seasons I bought without buying the new episodes, how do I get new episodes to load on seasons I bought without buying the new episodes

    how do I get new episodes to load on seasons I bought without buying the new episodes?

    I do believe it's automatic if you load iTunes.

  • How to load a Numbers folder on my iMac to iCloud so it can sync with my new iPad

    How to load a Numbers folder on my iMac (os x Yosemite v 10.10.2) to iCloud so it can sync with my new iPad (8.2)

    Welcome to Apple Support Communities
    If you have Numbers installed on your iPad, first go to System Preferences -> iCloud, and make sure that iCloud Drive is enabled.
    If so, open a Finder window and choose iCloud Drive in the left sidebar, so you will see a Numbers folder. Just open it and put your Numbers documents there, so they will be synced between your iMac and your iPad (providing that you already have Numbers on your Mac).

  • I have a 4s iPhone which I loaded the new Os on last night. Now I can not connect to iTunes. A message comes up saying i need 10.6.3 or later but I am running 10.6.1 as I have an older Mac. Anyone have ideas how to get this to work?

    I have a 4s iPhone which I loaded the new Os on last night. Now I can not connect to iTunes. A message comes up saying i need 10.6.3 or later but I am running 10.6.1 as I have an older Mac. Anyone have ideas how to get this to work?

    Its not telling you to update your iPad, its telling you you need to download a recent version itunes on your computer.
    Go here to download the newest version of iTunes.
    http://www.apple.com/itunes/?cid=OAS-US-DOMAINS-itunes.com

  • How to use a current delta Infosource to load a new Infoprovider

    Hi everybody,
    We have had the 0FI_GL_4 delta Datasource working since several years ago. Currently the information is loaded into a General Ledger ODS and it is working fine.
    Now, because of new requirements for the BCS component, a new ODS was created and new fields were added to that Infosource. We want to load the new ODS using the delta load and the initializations already created. The question is: how could we use the same delta load? What is the right procedure to start? We have thought about making a full load in the new ODS but how can we be sure the new ODS is in the right point to use the same load that is working currently for the first ODS? May be we have to stop temporarily (while the full load is done)the delta queue but we don't know how to do this for the 0FI_GL_4 Datasource.
    We have BW 3.5 and R/3 4.6C
    Thanks a lot for your ideas.

    Michael,
    I encountered the Timestamp datatype with a client who was using a enteprise application where that vendor used a Timestamp column as a way to track delta changes. btw: this datatype was developed in Sybase to to used in replication and hence SQL Server inherited it. It is "depreciated" in SQL Server BUT SSIS supports it. So much for the history lesson...
    In order to "see" the timestamp column (DI does not even see these columns in its metadata) and to use it for CDC (change data capture) I created a view on the source system side for each table that contained Timestap columns. I basically created a column in the view that was a converted integer, i.e. CONVERT(INT,column_TS)   AS Column_TSi, and then imported the resulting column to load from the source system and to use for CDC.
    My client hosts applications so there are dozens of source systems with hundreds of tales with a Timestamp column. The "trick" works well.
    Rick

Maybe you are looking for

  • Problem with vista and 5.1

    problem with vista and 5. i install my old audigy 2 zs exp pro with DTT2500 speaker In my new pc. i install vista 64 and SBAX_PCDRV_LB_2_8_000 driver from creative site. when i go to control panel/sound and test the 5. surrund ' iget only the two fro

  • Price of line item coming as zero in SA

    Dear Friend We have a scheduling agreement with 6 materials, The vendor sent us the price amendments ( vendor sent us on 26.05.09) that happened from 1st February 2009. Thus we will send them a debit note to vendor. Can I give a price amendment in th

  • You are losing me as a user-no way toi contact you. Latest install bummer

    Been using Firefox for three years or more. Upgrades are automatically done. Latest upgrade to 23.0.1 seems to have knocked out my preferences and none of the search windows works. I had nice permaent tabs to click for easy web access, now gone. Expl

  • Is there a complete outstanding buglist ?

    Hi everyone, Is there a complete outstanding iAS buglist somewhere in iPlanet site? (Apart from SP3 release notes, on what it is fixed, coz I am looking for outstanding bugs so that I should be aware of :p ) Thanks! Mark Andrews

  • How to assign materials to MRP Area

    Dear All, How to assign materials to MRP Area Thanking you Regards Prashant