Open MXML component + button click

Hi,
I have an MXML component within my Flex 2 Application, and
within this component I have a button which when clicked, I want to
"go / link to" (open) another MXML component.... e.g.:
<mx:Application.......>
<mx:panel............>
<mx:button label="open other page" click="open the other
MXML component etc..."/>
</mx:panel>
</mx:Application>
Additionally I want to be able to pass a variable (on the
same button click) to the component that is being opened on the
button click, and use this variable within the second
component......
Could anyone suggest the best method of going about this?
Thanks,
Jon.

In general all of the components of an application are
created at start up. You then use view states and navigation
containers to display the component when needed. If you want to
create a component then check out this subject 'Creating deferred
components' in the docs. Primarily you worry about deferred
creation of objects if you want to reduce the file size of your
swf. View states would be one way to handle the display of the
components.

Similar Messages

  • HELP FOR OPEN IE FROM BUTTON CLICK ?

    Hello All,
    i make a jframe i want to open internet explorer window for particuler site by button
    click any body tell me plz.
    Thanks ...
    Arif.

    See this Application below, use it in your application
    //to open an application during the run time use runtime
    //n no of applications can be opened during the run time
    import java.awt.*;
    import java.io.*;
    public class RT
    public static void main(String str[])
    try
    Runtime rt = Runtime.getRuntime();
    rt.exec("notepad"); //exit or execute
    // rt.exec("wordpad");
    rt.exec("c:/progra~1/netscape/communicator/PROGRAM/NETSCAPE.EXE");
    /* Process p = exec(perl xyz.pl);
    DataInputStream dis = new DataInputStream(p.getInputStream());
    System.out.println(dis.readLine()); */
    catch ( Exception e)
    e.printStackTrace();

  • Flash Component Button click not working

    I've gone back to an old project to change some logos around,
    and my flash component buttons no longer work. They appear on
    stage, but the click event is not happening. I authored on XP, now
    on Vista. Director 10.1. Any idea what is happening?

    If you are adding those buttons now, check for each button
    the Flash
    component tab in the property inspector and make sure the
    eventPassMode
    (lowest option) is set to #passAllways.
    HTH
    Manno
    khomel wrote:
    > I've gone back to an old project to change some logos
    around, and my flash
    > component buttons no longer work. They appear on stage,
    but the click event is
    > not happening. I authored on XP, now on Vista. Director
    10.1. Any idea what is
    > happening?
    >
    Manno Bult
    http://www.aloft.nl

  • Trouble with opening url on button click

    I have a project that has a button that needs to go to a url
    when i click it and it doesnt. I read the topic posted in the forum
    with the same problem...and i had already tried that....it still
    doesnt work...it work well when i preview it but when i publish
    it...it doesnt work..the url takes to a page containing a pdf
    file...the project is about 10 min long and has a size of 97MB...i
    built on a mac with a windows virtual machine...i guess that should
    not be a problem.

    Hi ksugra and welcome to our community
    The fact you built the project on a Mac running a Windows
    Virtual Machine should not factor in. From Captivate's view, it was
    running in Windows.
    What happens when you click the link? Nothing, or does a
    browser window open and attempt to display the contents but it's
    blank?
    I know you said it doesn't work when published. But where are
    you running the published file from? Your local PC or from a web
    site or a network drive?
    And lastly, you said you “read the topic posted in the
    forum with the same problem...and i had already tried that....it
    still doesnt work...”. Without a link to see which of the
    many “other topics“ you may be referring to here, it's
    impossible to know what was attempted.
    Cheers... Rick

  • Show a custom component on button click in a view stack`

    Hello folks
    I have a view stack in which i have some custom components.
    Now there is one custom component in which there is one button. On the button click, i want to show another custom component but i dont know how to do it. Should i write the inline mxml click event in custom component?? If yes then how??
    Currently i am doing it as
    click="{customcomponent}"

    As you know, ViewStack  has containers, lilke VBox for its views.
    Assuming one of your views VBox has an id of myVBox, and that VBox has the Button that when clicked will display the component, just have the component in the view already, but you can make it invisible with visible=false and includeInLayout=false, and then upon button click set those two variables to true.
    You will probably want a show handler for the view VBox to make those properties false each time that view is displayed.
    Here is some simple sample code.
    If this post answers your question or helps, please mark it as such.
    ---------- MySimpleComponent.mxml ----------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
      width="100%" height="100%" horizontalAlign="center">
      <mx:Label text="My Custom Component"/>
    </mx:VBox>
    ---------- MainApp.mxml  ----------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      xmlns:comp="*" horizontalAlign="center" verticalAlign="middle">
      <mx:Script>
        <![CDATA[
        ]]>
      </mx:Script>
      <mx:LinkBar dataProvider="{vs}"/>
      <mx:ViewStack id="vs" width="100%" height="100%">
        <mx:VBox label="view1" width="100%" height="100%"
          horizontalAlign="center">
          <mx:Label text="View One"/>
        </mx:VBox>
        <mx:VBox label="view2"  width="100%" height="100%"
          show="myComp.visible=false;myComp.includeInLayout=true;"
          horizontalAlign="center">
          <mx:Label text="View Two"/>
          <mx:Button label="Make myComp Visible" click="myComp.visible=true;myComp.includeInLayout=true;"/>
          <comp:MySimpleComponent id="myComp" visible="false" includeInLayout="false"/>
        </mx:VBox>
      </mx:ViewStack>
    </mx:Application>

  • I just updated to Firefox 17.0.1 and now I can't click on a bookmark to open it or open new tab when clicking new tab button.

    In FF 17.0.1 I have several bugs to mention. I am only able to open bookmarks by right clicking them and selecting Open In New Tab from the drop down menu. I am unable to open a new tab by clicking on the new tab button or by clicking open new tab from the FF drop down menu at top of browser. Also, none button work in FF, such as Home, Back, Forward, or refresh. This is so aggravating!!

    After I posted this, I restarted with add ons disabled and it worked..deleted a cpl of addons for compatibility checking and that fixed it.

  • Programmatically Open and close panel accordion on button click

    Hi All,
    Im using JDev 11.1.1.4 and adf faces application.
    My requirement is to open/close panel accordion on button click programmatically.Kindly have a look at below figured one
    Panel accordion Open Button
    | ShowDetail1 //Consider first one is open inside close button is there to close this pane..
    |
    |
    |
    Close Button
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Show detail2 open button
    Show details3 open button
    Any idea...
    Thanks,

    Thanks Mr.frank...
    But disclosed property is to make the showdetail to disclose or not.. but requirement is to open panel accordion on button click
    By default using panel accordion have arrow icon in left to open in a same way if i open the second one, first will get close automatically...
    Actually is there any way to do the default process (open/close) programmatically...

  • Open Dialog box on button click using Visual Webpart

    Hi,
    I am trying to create New Item,Edit Item & Delete Item button in Visual web part.On clicking on the button it should open the corresponding custom form on dialogue box.I don't want to create any button in the ribbon.I just want to create UI page for
    all buttons and also corresponding input forms on button click in Visual web part.
    Is it possible through visual web part?
    I will be needing your initial guidance to achieve this.
    Please help.
    Thank you.

    Hi,
    According to your post, my understanding is that you want to open modal dialog in a visual web part.
    To open a modal dialog, there are multiple ways, such as using JavaScript.
    However, for your scenario, you should register the script from the C# code, there are some articles for this topic, you can refer to them.
    http://www.ashokraja.me/articles/How-to-Programmatically-Show-or-Hide-a-Modal-Popup-Dialog-with-Server-Side-Code-in-Share-Point-2013
    http://blogs.perficient.com/microsoft/2012/01/sharepoint-2010-closing-a-modaldialog-manually-from-code-c-and-javascript/
    More reference:
    http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • "open in ibooks" button doesn't open pdf on iPhone 6, click it several times and nothing happens

    The "open in ibooks" button doesn't open pdf on new iPhone 6. I'll click it several times and nothing happens. Is there a way to uninstall ibooks and reinstall?

    there is no share button in preview
    I am seeing a Share button in Preview's toolbar, Larry:  Can you see the screenshot?
    The content of the Share menu will depend on the file format. For PDFs the menu will be nearly empty and iPhoto and aperture are missing.
    MacBook Pro (17-inch Late 2011), OS X Yosemite (10.10), 2.4 GHz i7, 16GB, 500GB SSD,1TB HD

  • Open a report from button click/javascript

    Hi,
    Does anyone know if there is a way to call a report from a button click? Or through javascript? I set the report to Display Results > Link - within the dashboard and then did a view source on it and found the function that calls the report from the hyperlink.
    This is the code:
    return DashboardReportLink('saw.dll?PortalGo&amp;_scid=v-x8QJloqTY&amp;PortalPath=/shared/Plan\x2520Setup\x2520Audit\x2520Tool\x2520/_portal/Plan\x2520Setup\x2520Audit&amp;Page=Historical&amp;NavFromViewID=d\x253adashboard\x257ep\x253acp4tq3p9brn77o6o\x257er\x253a8a2g9nltmkrtra9n&amp;Path=/shared/Plan\x2520Setup\x2520Audit\x2520Tool\x2520/Archive\x2520Reporting/Run\x2520Historical\x2520Report&amp;Action=PromptStart&amp;Options=frdc', 'd:dashboard~p:cp4tq3p9brn77o6o~r:8a2g9nltmkrtra9n','Dashboard&amp;PortalPath=/shared/Plan\x2520Setup\x2520Audit\x2520Tool\x2520/_portal/Plan\x2520Setup\x2520Audit&amp;Page=Historical', false)
    I added this function to the end of my javascript but when i click the button it just opens a blank page with
    http://la820119:9704/analytics/saw.dll?PortalGo
    as the url.
    Any help would be appreciated

    Hi,
    So i have been trying out a few things and the following url works to open the default view of the request:
    window.location='saw.dll?Go&Path=/shared/Plan Setup Audit Tool /Archive Reporting/Run Historical Report&Options=dfr';
    I just replaced 'Dashboard' in the code provided with the 'Go' and it started to work :)
    What i need to do though is have this work for the session variables set up on the dashboard. I have 7 prompts which a user can use to filter a request. Each is assigned to a session variable that is used to call a stored procedure. Originally i thought that by setting the variables and then calling the report from the url that the session variable values i set would be used in the request. What seems to be happening is that the variables get set and then, on calling the url, they are reset to the defaults and the report is run.
    Any help in solving this would be very much appreciated
    Una

  • Unable to close open apps with double clicking the button and when I tap screen does not respond?

    Cannot not close open apps with double clicking the button Since downloading iOS8.

    What happens when you try? Does double clicking the ?home button bring up the Task Bar of recently used apps? If so what happens when you flick up on the preview screen for the app you want to close?
    To quit an app double click the Home button to reveal the row of recently used apps. Flick up on the page preview and it will fly away and disappear. That quits the app.

  • How can I turn-off the apps which I have opened once in ISO 7.0.2. In previous version of ISO it was easy to turn- the opened apps by double clicking on home button and then click and hold on respective apps then click on cross sign.

    How can I turn-off the apps which I have opened once in ISO 7.0.2. In previous version of ISO it was easy to turn-off the opened apps by double clicking on home button and then click and hold on respective apps then click on cross sign but in this version I could not do so and my iPad appears slower.

    Close inactive apps
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe the app's windows upwards to close
    3. The app will fly off the screen

  • After upgrading ipad to iOS 7.1 I can no longer close open apps by double clicking home button. Any other way to close open apps?

    After upgrading ipad to iOS 7.1 I can no longer close open apps by double clicking home button.  Any ideas

    Double-tap on the Home button. You will see a preview of the app above the actual icon. Slide the preview up to kill it.
    Please get the iPhone User Guide (For iOS 7 Software)Sep 19, 2013 - 23 MB.

  • Can't open an Executable From Click Button

    Hi, Everyone!
    I've broken a learning module into several small project
    files to match the client's standards. I've set up click buttons
    within each file to open each of the published movies for the
    module. Everything works as expected.
    Now I need to create a standalone course using the same
    files. I've published each file as a Standalone executable. I've
    modified the open action on the click buttons to "Open URL or File"
    and selected the appropriate .exe file as the target. I've
    republished the files with the new click action. When I open an
    executable and click a button to open another executable, I get an
    error message stating that the page cannot be displayed.
    What am I doing wrong? Can anyone help?
    Thanks,
    Bob Browne

    Hi Bob
    For starters, did you try simply exporting all related files
    as .EXE files and test that way before making any changes? If so,
    what were your results? I've seen before where once Captivate was
    successfully linking to another movie, simply changing from .SWF to
    .EXE format just worked.
    Just a thought... Rick

  • Opening new window on button click from pdf without loosing session

    Hi,
    In my Java web applicaion on click of a link, we are opening a new window in which we are displaying a pdf. There are 5 buttons on this pdf.
    On clicking of this button again we are opening a application link in new window. But in this window we are not gettting our session, which is there in first two window.
    For opening new window from pdf button click we are using
    var dynamicUrl3 = myappurl;
    app.launchURL(dynamicUrl, true); 
    How can i open new window with the same sesion from the pdf button.
    Please help for the same.
    Thanks,
    Abhijit Mohite.

    Yes, with target="_blank" in a link or a form.Thanks for ur valuable suggestion. I changed the button to link.
    Its working fine now without JavaScript.
    Now i got another requirement. When user select some items and press a button in the new popup window, the window must close on button click and the parent window must refresh. This must also be done without using JavaScript.
    Is this possible? Please give me an idea to do this.
    Thanks.

Maybe you are looking for

  • Itunes keeps quiting unexpectedly

    my itunes quits a couple times a day with error saying "quit unexpectedly" or something along those lines only since the last update im on a mac and never had this prob before... any ideas? i always send the report to apple please fix

  • How do I transfer images from external harddrive with Bridge settings to new computer?

    I used to use Adobe Bridge on a computer that stopped working. My computer tech then made the harddrive out of that computer to an external harddrive. Now I want to transfer all those images with all the settings I have a applied to them, to my new c

  • Wifi network failing, but Chrome is fine!

    Hi, I've recently started to have terrible problems with my wifi network: i thought perhaps i was losing internet connectivity, but this is not the case. All i can say is that periodically my internet apps lose connection, and then i will notice i've

  • Patriot Micro SD Card

    Hi, I have 4gb Patriot Micro SD card. I am wondering how does it compare to other brands. I hear Sandisk is the best. Sometimes when I open Maps there is no detail on map. I close application and then open again and the detail is there. Have formatte

  • VF03 Profitability Analysis - Cost not capture in profitability

    HI SAPFans, I'm facing difficulty on profitability analysis on VF03. The problem is, my cost of sales is not capture on Value fields tab (refer attachment). [vf03|[IMG]http://i303.photobucket.com/albums/nn133/kerisnagasostro/vf03.jpg[/IMG]] is there