How can I call a public function in a component to another component?

I have two components: form and Confirmation.  Form is a Web and Confirmation is a TitleWindow.

Form contains several controls and a "submit" button.  Confirmation contains an OK button.  When the user clicks on the button send, Confirmation is displayed above the form (the form is blurred).  When the user clicks OK on the Confirmation button, I want to perform a function on the form to set default values in controls.

How can I address the function of the component in the form of Confirmation component so I can start the function?

Thank you!

Here is the source

CustomForm.mxml

http://www.Adobe.com/2006/mxml"width ="400"height ="300">

public function callBack(): void {}

lblStatus.text = "success";

}

]]>

label = "Submit" / >

CustomTitle.mxml

http://www.Adobe.com/2006/mxml '.

layout = "absolute" width = "200" height = "80".

showCloseButton = "true" closed = "closeMe (event)" "

backgroundAlpha = "1".

Color = "#173553" backgroundColor = "#EEEEEE."

headerColors = «#FFFFFF, #CBCCCC»

borderColor = "#666666" borderStyle = "solid" >

Import mx.managers.PopUpManager;

public var callBack: Function = new Function();

private void closeMe(event: Event): void {}

PopUpManager.removePopUp (this);

callBack();

}

]]>

TitleWindowSample.mxml
"" xmlns = "*".
layout = "absolute".
Width = "100%" height = "100%".
creationComplete = "init ()" > "
Import mx.managers.PopUpManager;
private void init (): void {}
customForm.submit.addEventListener (MouseEvent.CLICK, onMouseClick);
}
private void onMouseClick(event: MouseEvent): void {}
customForm.lblStatus.text = "";
var customTitle: CustomTitle = new CustomTitle();
customTitle.callBack = customForm.callBack;
PopUpManager.addPopUp (customTitle, this);
PopUpManager.centerPopUp (customTitle);
}
]]>
Width = "100%" height = "100%".
verticalAlign = "middle" horizontalAlign = "center" >

Tags: Flex

Similar Questions

  • How can I call a js function when my backing bean method has completed

    I use JEV11G.here is the code:
    < af:panelCollection id = "pc1" >
    < f: facet = 'menus' name / >
    < f: facet name = "toolbar" >
    < af:toolbar id = "t1" >
    < af:inputText id = "it1.
    value="#{pageFlowScope.favoriteTreeMB.searchCriterium}"/ >
    < af:commandButton text = 'Go' id = "cb1".
    actionListener="#{pageFlowScope.favoriteTreeMB.searchTree}"/ >
    < af:commandButton text = "Reset" id = "cb2".
    actionListener="#{pageFlowScope.favoriteTreeMB.resetTree}"/ >
    < / af:toolbar >
    < / f: facet >
    < name f: facet = 'bar of Θtat' / >
    < af:tree value = "#{pageFlowScope.favoriteTreeMB.tree}" var = 'node' "
    rowSelection = 'single' id = 'pt_t23 '.
    Binding = "#{pageFlowScope.favoriteTreeMB.favTree} '"
    partialTriggers =": cb1: cb2" > "

    < f: facet name = "nodeStamp" >
    < af:outputText value = "#{node.attributes ['Filename']}" "
    rendered = "#{node.rendered}" / >
    < / f: facet >
    < / af:tree >
    < / af:panelCollection >
    < / f: facet >

    The tree is refreshed, I just when pageFlowScope.favoriteTreeMB.searchTree is made or a js method will call.

    The doc:

    void addScript (javax.faces.context.FacesContext context, java.lang.String script)

    Adds a script to run during rendering. >

    So you can put the code somewhere and just call it.

    Timo

  • How can I call two functions in the HTML Form element attributes

    Hello

    I want the same value in the text field two, when I select the value to select the list then the value with a number increment should be two text field.
    I use both java script

    < script >
    function sumItems() {}
    function getVal (item) {}
    If ($x (point) .value! = "")
    Return parseFloat ($x (item) .value);
    on the other
    return 0;
    }
    $x('P19_LAST_END_YR').value = getVal ('P19_LAST_STR_YR') + 1;
    }
    < /script >


    < script >
    function per1Items() {}
    function getVal (item) {}
    If ($x (point) .value! = "")
    Return parseFloat ($x (item) .value);
    on the other
    return 0;
    }
    $x('P19_LAST_END_YR').value = getVal ('P19_START_YEAR') + 1;
    }
    < /script >


    now how can I call function onchange two attributes of the element in the HTML form for the discount:
    ' onChange = "javascript:sumItems()" onChange ="javascript:per1Items().

    Hello

    Try

    onchange="sumItems();per1Items();"
    

    BR, Jari

  • How to properly call modal vi function in the C dll

    I have a labview function that takes a string as input and passes out when the user clicks OK in a 2 button dialog box. I have built a dll and then calls the function from a C++ environment by using the LoadLibrary function. If I set the Panel before shows the default settings and NOT modal the vi is displayed correctly but the dialog box box does not work. If I put the Panel before the vi to modal then vi front panel display correctly, therefor there I find that the dialog should be modal in his view.

    My question is about C++ How can I call a dll that displays a Modal form correctly? or how can I change the dialog box in modeless behavior / defect that can be done to the face before of the vi?

    Thanks in advance for any help.

    Hi, thanks for yor reply.

    The dialog box displays only partially. No, I have not tried the express vi, but I did create a vi to behave like a dialog box 2 button

    allowed me to define it as modeless. It also displays only partially.  I since first announcement also tried to run the dll also using labview and teststand to call the dll, in both cases the dll load and behaves correctly, the dialog box appears correctly.

    This suggests that the problem is with the C++ code but not being is not a very experienced C++ programmer I don't know how to debug the problem more far.

    Any help is highly appreciated.

  • How can I hold the public IP address on a specific profile on the asa 5510

    Hi guys

    How can I hold the public IP address on my session NAT VPN cisco customer for no one else can use it? I have a cisco ASA 5510

    the Interior is 172.10.20.86

    public 166.245.192.90

    Need to call my ISP?

    Thank you

    Sorry to say but your qustion is not very clear. Can you please post what you are trying to achieve?

    Thank you

    Ajay

  • How can I call method on the view controller Business components

    Hello
    I did a general method to display messages at the view level,
    How can I call this method in the method after validation in the EntityImpl appears automatically after the validation operation.
    Gold how can I call it in _ validationbutton to display after validation;

    public class MessageBeans
    *{*
    public static void showMessage (String title, String msgBody, String msgType)
    *{*

    FacesContext fctx = FacesContext.getCurrentInstance ();
    FacesMessage msg = new FacesMessage (FacesMessage.SEVERITY_INFO, title, msgBody);
    fctx.addMessage (null, msg);


    *}*
    *}*

    1 - Drag and drop the operation of control of data validation on the page.
    2 - Double click on the button, this will bring the dialog box link Action property that allows you to link the button action method in the bean.
    3 - Select the managed bean, or create a new and enter the name of the method. and click Ok.
    3. This will create a method for you to like those posted before, you just need to change the method and show the message after successful validation.

  • How can I call a stage, which is in a sous-suite, of a different sous-suite

    Hi, could someone me, please?

    How can I call a stage, which is in a sous-suite, of a different sous-suite.

    For example:

    Two sub sequence, is called, it is called B. In the order B, there is a step called BStep.

    In a sequence, there is a stage called AStep.

    Now, I Hope AStep can I call BStep, how can I do?

    Thank you in advance!

    Allan,

    What you're asking to do is not a practice of good software.  That's like saying you want to call a single line of code into a DLL.

    The best way to do what you want is to put the steps in a 3rd sous-suite.  Then set the subsequence with the parameters of the step.  Then call this subsequence of a sequence and the sequence B 3rd.

    This way, whenever you update the stage, they both get changes.

    Hope this helps,

  • How can I call the stream media player in webworker.

    Hi all.

    I need a few snipets of invoke media player from the webworker blackberry

    How can I call it stream media player in webworker please help me.

    You should be able to:

    location.href = 'mymediaurl';
    
  • How can I change a Public home network in Windows 7 Hompe Prermium

    My question is this. I have the E4200 of Cisco router that I add to my network. I configured the router and can access via the wireless. However, if I connect the computer to the Ethernet port it shows as a connection to the local network, but it is listed as unknown network and his game to the public. This prevents me from access routers layout on the cable network. How can I change this public network at home so I can access it?

    Hi Ldroamer,

     
    Here is the procedure to follow change the network location on your Windows 7 computer. Follow the below section to change your public home network configuration.
     
    Hope this helps you. Let us know anyway!
  • How can I call Adobe? I need to talk about how to create my site and bind it to lightroom. I have creative cloud.

    How can I call Adobe? I need to talk about how to create my site and bind it to lightroom. I have creative cloud.

    The only phone support I know is not for sales, the use of programs

    You will also likely get detailed assistance in the specific forums for the programs you use

    Forum of https://forums.adobe.com/thread/1929760 to find a forum for your program list

  • How can I call Save as dialog box before you download pdf files?

    How can I call Save as dialog box before you download pdf files?

    Here's my favorite scenario:

    1. the user clicks on the button

    2 Save as dialog box displays

    3. the user chooses the place

    4. a set of PDF files download here OR download a single zip file

    Background:

    I want to ensure that the user sees that the files are downloaded. I'm content to users who are not Web warned.

    Concern:

    1. the user has no idea how to find the downloaded files or files have even downloaded.

    2. I would like to deliver all in the form of zip files. Not sure if the automatic opening of zip files still exist.

    FOR INFO:

    I use jQuery UI buttons. Not sure if that factors in the response.

    Just for clarity, I'm not forcing a download. The user will click on a button.

    Click on a button or click on a link, either way you are technically running a script to force a download.

    I guess that's the PHP on the server.

    Yes but it is only a part of it.  Once the form runs, another script is called that opens the browser download dialog.

    Y at - it a php script to call the open/save dialog box?

    Yes.

    
    

    Name this file zip2download.php.

    Add a link to your HTML page:

    zip2download.php">Download the Zip

    Nancy O.

    ALT-Web Design & Publishing

    Web | Graphics | Print | Media specialists

    http://ALT-Web.com/

    http://Twitter.com/ALTWEB

    http://ALT-Web.blogspot.com/

  • How can I use an ipod nano that was synched to another computer?

    My daughter gave me his 2nd generation ipod nano because it is no longer use it.  When I plugged in my USB to load, I got a message informing me that there is an update.  It would not be updated beause "ipod cannot be updated because it contains files that are used by another application."

    What should I do to be able to use this ipod nano?

    I don't think that this message is related to the iPod is synced to another computer...  It is usually other applications or processes on the computer (which is not iTunes) accessing the iPod for some reason if iTunes is not able to perform the update.  However, your question in the subject heading ("How can I use an ipod nano that was synched to another computer?") is valid, since the iPod was previously used by someone else, with a different iTunes library.

    If you want to start using this iPod with your iTunes library and put on your songs, instead of doing an Update, you need to restoreThis erases the iPod, reinstalled the latest version of the software, and sets it to the default settings.  The iPod gets a 'new beginning', as when it was new.  To resolve the problem with this "files in use by another application" error message, try restarting your computer.  Immediately after the computer finishes starting up, run iTunes, plug in the iPod (if it isn't already) and try to do the restore (or Update).  If you still get this error message, please after return.

    If you are restoring, you can configure it to sync with your iTunes library.  You can post back, if you need advice on options for the implementation.

  • How can I automatically forward emails if the send or receive another email like Gmail account?

    Automatically forward emails

    How can I automatically forward emails if the send or receive another email like Gmail account?

    Hi ThomasFarro,

    Which email client you have installed?

    If you use Outlook Express, you can follow this link & check if it helps.

    http://mail.Google.com/support/bin/answer.py?answer=13276

    If you have a Hotmail account, you can follow this link & check if it helps.

    Send and receive messages from other e-mail accounts

    Hope the helps of information.

    Please post back and we do know.

  • Please help me. How can I unlock my administrator account while accessing this form another hard drive. ?

    Please help me. How can I unlock my administrator account while accessing this form another hard drive. ?

    Please help me...
    I use windows xp svc pack 3. some how it gets corrupted now and all my important data is in the folder my documents on my desk. I got my account with a password. I tried to repair my widows through the recovery console, but I was unable to open a session in my Windows through this procedure just stuck computer is there. even when I tried to fix it through the installation of windows, Setup also stuck on the step where it says "in search for earlier versions of windows."
    now, I tried to copy the data by accessing another operating system on another hard drive but when I opened my account administrator located in the documents and settings folder, it says access is denied. I really need that data on these files is very important to me.
    If you have an administrator password in windows, then the recovery console would need in order to log in the disk system, i.e. the c prompt.
     
    If you tried to do a repair with the cd, then it may not have worked if your cd is the sp2 version of windows on your computer has been updated to sp3 version.  for the sp2 of xp cd works, you will need to uninstall the update to sp3 via Add/Remove programs.
     
    so, now that you have enslaved the hard drive on another computer, you will need to do is try to take ownership of the files/folders:
     
     

    --
    db·´¯`·...¸><)))º>

    .

    "honeymtrk" wrote in message news: d1c5394d-1aad-4f12-bd12-bc4b485bc596...
    Please help me. How can I unlock my administrator account while accessing this form another hard drive. ?

    Please help me...
    I use windows xp svc pack 3. some how it gets corrupted now and all my important data is in the folder my documents on my desk. I got my account with a password. I tried to repair my widows through the recovery console, but I was unable to open a session in my Windows through this procedure just stuck computer is there. even when I tried to fix it through the installation of windows, Setup also stuck on the step where it says "in search for earlier versions of windows."
    now, I tried to copy the data by accessing another operating system on another hard drive but when I opened my account administrator located in the documents and settings folder, it says access is denied. I really need that data on these files is very important to me.

    DB·´¯'·.. ¸ >-))) º > ·´¯'·.. ¸ >-))) º > share nirvana mann

  • How can I transfer my email to the personal folder to another account?

    How can I move all my email stored from hotmail to another account?

    • Recent changes to your computer

    Please repot your question for the Windows Live Hotmail Forum at: http://windowslivehelp.com/forums.aspx?productid=1 where Hotmail experts will be happy to help you.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for

  • The upgrade of RAM on a computer laptop compaq cq58-d28sa

    Currently I have 4 MB of RAM and want to upgrade. What is the maximum upgrade for this model and what size is available, for example 2 MB or 4 MB slots?

  • Acer V3 - 574G - 74BC Black Screen of Death After Windows Update

    Model: Acer Aspire V3 - 574 G-74BC OS: Windows only 10 language I recently bought this laptop and use it for more than a month now, last Sunday (January 17) windows did her update and since then I am having this problem. I tried to read the forums on

  • Yahoo email account

    My yahoo email do not attach or download

  • Advertising WebWorks service works in ripple?

    I am trying to add a banner to my request of WebWorks for OS 6/7 phones.  I think I have my correct code in my app, but when I test in Wellington I ever see all ads appear.  This feature cannot be tested in ripple?  My code is as follows: config. XML

  • Adobe trial period

    Hi, I just bought a used computer, I tried to install Adobe Creative Cloud to Adobe Illustrator, but he tells me that my trial period has already expired.It is the first time I use it, my e-mail for registration account is new, I tried to uninstall t