How to access the main .mxml file component control?

I have a .mxml main while in which I imported custom "popUpWindow" component using the statement "import components.popUpWindow". In main .mxml file, I show more later this component in the form of pop-up window using the Popup Manager class:

var popUpWin:IFlexDisplayObject;
popUpWin = PopUpManager.createPopUp (Thi, popUpWindow, true);

Once the component is displayed, how can I access using the actionscript component TextInput control (specifically the .text property) my main .mxml file?

Thank you

bdeen I think you have it bad: P I think he wants to access a property in the main application window.

Give the textInput id and then on your main application you can do this for example:

var test: String = popUpWin.textInputName.text;

Please note that it is recommended to do a casting for the popup window:
popUpWin = popUpWindow (PopUpManager.createPopUp (Thi, popUpWindow, true));

Tags: Flex

Similar Questions

  • MBSA bows 3 Directors, with xp home sp3 how to access the hidden administrator files?

    MBSA has identified three Directors on my computer.  One is my account, one is built in Administrator account, but a third, called S-1-5-21-... 2805738209 1003 isn't in my folder of user accounts.  I'm not managing the computer files of users like xp home does not support this.  How can I access this hidden user account and no idea what it is?

    Hi Sledgee72,

    Your computer is connected to the server or domain?

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the forum TechNet for assistance:

    http://social.technet.Microsoft.com/forums/en/itproxpsp/threads

    Hope the helps of information.

  • When I change the main mxml file in the project and then export the swf file does not change, why?

    I have an existing project, years ago that I need to change, I am using Flash Builder 4. When I export the project, it creates a SWF in bin-release, then when I change the code in the mxml project file or files of any format and export the swf file needs to change, but it's not. You have an idea why this might happen?

    Thank you

    I found the problem, there was a SWF into the html-template folder within the project. This has led to substitute the swf of the new generation.

  • How to access the elements in main.mxml file ActionScript?

    I'm having problems creating a panel using the Extension Builder SDK. It seems that all the examples explain how a CS5 document using a control panel, but I found no examples of how to control the items in the Panel via ActionScript code.   Furthermore, we use CS Extension Builder SDK with Flash Builder 4.  Here's a simple example of were I'm stuck.

    I create a project Extension generator for a panel of PS named: 'CSExtensionTest '.  In the main.mxml file create a button with id = "btnPSCode".

    ****************************************************************************************** *****************************************

    File:

    hand. MXML

    ****************************************************************************************** *****************************************

    <? XML version = "1.0" encoding = "utf-8"? >

    < mx:Application

    ' xmlns:mx = ' http://www.Adobe.com/2006/MXML " " layout ="absolute" historyManagementEnabled = "false""">

    < mx:Script >

    <! [CDATA]

    [

    Bindable ]

    private var hostName:String = HostObject.mainExtension;

    []] >

    < / mx:Script >

    "" < mx:VBox height = "100%" width ="100%" verticalAlign = "middle" horizontalAlign ="center">

    " < mx:Button id ="btnPSCode"label ="PS code run"click ="CSExtensionTestPhotoshop.run ()"enabled =" hostName.indexOf{('photoshop') >-1}"/ >

    " < mx:Button id ="btnJSXCode"label ="code JSX run"click ="CSExtensionTestJSX.run ()"/ > "

    < / mx:VBox >

    < / mx:Application >

    ****************************************************************************************** *****************************************

    How can I access the properties of this element in the CSExtensionTesJSX.as file?

    ****************************************************************************************** *****************************************

    File:

    CSExtensionTesJSX.as

    ****************************************************************************************** *****************************************

    package

    {

    Import com.adobe.csxs.core.CSXSInterface;

    Import com.adobe.csxs.core.csxs_internal;

    Import com.adobe.csxs.types.SyncRequestResult;

    Import mx.binding.utils.BindingUtils;

    Import mx.core.ButtonAsset;

    Import mx.core.mx_internal;

    Import MX.utils.object_proxy;

    public class CSExtensionTestJSX

    {

    public static function run():Sub

    {

    var myCSXS:CSXSInterface = CSXSInterface.getInstance ();

    var result: SyncRequestResult = CSXSInterface.instance.evalScript ('jsxFunction');

    btnPSCode.enabled = false;

    }

    }

    }

    ****************************************************************************************** *****************************************

    I get this error:

    image001.png

    I had initially written a panel using a Flex project and was able to access the properties of the items in the file main.mxml directly.  It seems that I can't do that.  Did I miss something in the code?  Am I missing some kind of library?  I'm sorry, I'm not very experienced in the development of Adobe, but we are trying to become more involved in the development of plugins and extensions for CS5.  Any help will be greatly appreciated.

    You must pass a reference to your object main mxml in the run method. For example:

    hand. MXML:


    http://www.Adobe.com/2006/mxml"layout ="absolute"historyManagementEnabled ="false">
       
           

    [Bindable]
    private var hostName:String = HostObject.mainExtension;
               
    ]]>
       
       
           
       

    testJSX.as:

    package
    {
    import com.adobe.csxs.core.CSXSInterface;
    import com.adobe.csxs.types.SyncRequestResult;
       
    Import mx.controls.Button;

    public class testJSX
    {
    public static void run(m:main):void
    {
    var result: SyncRequestResult = CSXSInterface.instance.evalScript ("jsxFunction");
    var b:Button = m.myButton;
    }
    }
    }

    HTH.

  • Move the Main.mxml Variable to Pop.mxml

    Hi all.

    I have a project that has two files.

    Main.MXML and Pop.mxml

    Main.MXML is obv my main application and it has a variable that contains the link to an image.  This variable changes on a regular basis.

    The Pop.mxml file is a TitleWindow I want to display the image, but on a larger scale.

    My Pop.mxml code is like:

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:TitleWindow ' http://www.Adobe.com/2006/MXML "
    Layout = "vertical".
    title = "Tazio audio"
    showCloseButton = "true".
    width = "1022".
    height = "800".
    Close = "titleWindow_close (Event); "move =" doMove (event) ">

    < mx:Script >
    <! [CDATA]
    Import mx.events.CloseEvent;
    Import mx.managers.PopUpManager;
    Import mx.core.Application;

    [Bindable] public var test: String;

    private void titleWindow_close(evt:CloseEvent):void {}
    PopUpManager.removePopUp (this);
    }
    private void doMove(event:Event):void
    {//keeps TW inside the layout
    var appW:Number = Application.application.width;
    var appH:Number = Application.application.height;
    if(this.x+This.Width>appW)
    {
    This.x = appW - this.width;
    }
    if(this.x<0)
    {
    This.x = 0;
    }
    if(this.y+This.Height>appH)
    {
    This.y = appH - this.height;
    }
    if(this.y<0)
    {
    This.y = 0;
    }
    }


    []] >
    < / mx:Script >
    < mx:SWFLoader width = '100 percent"height ="100% "source="swf/slide1.swf"/ >
    < mx:Label text = "{test}" color = "#C00D0D" x = "1200" top = "20" / >

    < / mx:TitleWindow >

    What I'm struggling with you, is how to pass the Main.mxml variable to Pop.mxml.

    I know how to do this with components, its easy enough, but I see no to make between these two files.

    The vairable I am rying to spend at the momnet is called 'test'.

    Any help would be great, thanks!

    Hello

    How you launch the popup, if you use PopupManager, try this

    var popup:Pop = Pop(PopUpManager.createPopUp(this, Pop, true));
    popup.test = "your value";
    PopUpManager.centerPopUp(popup);
    
  • How to access the id of the component from a different mxml?

    I tried to put the data in a DataGrid control to a different mxml, but the compiler said that there is a problem, like this:

    the components/FileDataGrid.mxml:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" 
         xmlns:s="library://ns.adobe.com/flex/spark" 
         xmlns:mx="library://ns.adobe.com/flex/mx" >
    
        <mx:DataGrid x="150" y="50" id="dgFile">       <mx:columns>
             <mx:DataGridColumn headerText="COL"/>
           </mx:columns>
        </mx:DataGrid>
     
    </s:Group>
    
    

    the main mxml:

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
              xmlns:s="library://ns.adobe.com/flex/spark" 
              xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
              xmlns:custom="components.*" layout="absolute">
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         
         <fx:Script>
              <![CDATA[
                   
                   private function loadDG():void
                   {
                        var arrFile:Array= new Array("abc","123");
                        
                        dgFile.dataProvider = arrFile;
                        
                        trace( "The data has successfully loaded" );
                   }
    
              ]]>
         </fx:Script>
         
         <s:Button  x="300" y="50" label="Load"  click="loadDG()" />
    
         <custom:FileDataGrid/>
    
    </mx:Application>
    

    The compile error is:

    Several markers to this line:
    -1120: access of undefined property dgFile.
    -arrFile

    Can someone tell me, how?

    Thank you very much!

    Hi, you cannot access it. To access, first give the id for the custom component that you have added.

    That is to say

    
    

    Then you can view this script,

    custFDG.dgFile.dataProvider = arrFile;
    

    Hope this work shud very well.

    Thank you.

    -

    Afonso

  • How to access the functions on my main SWF of my external SWF?

    Hello someone can help me how to access the functions on my main SWF file of a loaded SWF file?

    Forget using parent. Send an event to the place.

    btn3.addEventListener(MouseEvent.CLICK, btnClickHandler);
    function btnClickHandler(e:MouseEvent):void {
         dispatchEvent(new Event("categoryClick");
    }
    

    In your main swf file, listen for the complete event on the Loader.contentLoaderInfo.

    In the complete event handler, add an event listener for the categoryClick (or you have chosen to call it) on the loaded swf file.

    // event handler triggered when external swf is loaded
    function loaderCompleteHandler(event:Event) {
        (event.currentTarget.content as MovieClip).addEventListener("categoryClick", categoryClickHandler);
    }
    
    function categoryClickHandler(event:Event):void {
        trace("category button clicked in loaded swf");
    }
    

    And remember, whenever you use root or parent, God kills a kitten.

  • How to access the tab 'Save all' when I close several jpeg files that have been adjusted with the "color adjust tool? He is currently making me close and save one at a time. Thanks for any help :)

    How to access the tab 'Save all' when I close several jpeg files that have been adjusted with the "color adjust tool? He is currently making me close and save one at a time.  I've just upgraded to El Capitan.  Thanks for any help :)

    I assume that you use the application overview.

    I can't find an answer to back up everything, but a workaround could be while the file menu options are visible, press the option key

    and the point of the window will become close, if you click on that dialogue will ask you if you want to restore the changes or save

    pressing Save will close the image with the changes and then move to the next image and so on.

  • How to access the files from google docs?

    Hello

    can someone tell me how to access the mp3 files saved on google docs.

    as I am able to recover google docs docs files.

               connection = (HttpConnection) Connector.open("http://docs.google.com/feeds/documents/private/full/-/document");
                connection.setRequestMethod(HttpConnection.GET);
                connection.setRequestProperty("Authorization", auth);
                connection.setRequestProperty("Content-type","application/atom+xml");
    

    but the mp3 files do not appear in the xml only doc files are listed?

    any idea how to get mp3 files?

    Thankx

    @Sannyo: agree with you.

    I also saw that. This is only the docs.

    ------------------------------------------------------------------------------------
    Kudo press to say thank you to the developer.
    Also, press accept it as a button when you got the Solution.

  • VM simulator - how to access the file system.

    I was wondering if anyone knows how to access the file vmware playbook simulator system.

    I don't want access programmatically, I covered, for access to the file system to copy files to the Simulator in shared directories.

    When you connect a playbook on the USB, it shows up as a drive, and I would like access to the same playbook vm dir structure to copy files for testing. for example if your s app access the pictures on the camera, I would like to copy some images for the test. Any ideas?

    TIA - dave

    Search the forum for more information on using 'ssh' to access the Simulator and more specifically help 'scp' or 'sftp' to transfer files to. You will do this in the files under/accounts/1000/shared, and if you're on Windows you will probably be to install PuTTY to do this. Feel free to ask for help more once you have dug through it all.

  • How to access the vmware workstation without files *.vmx or *.vmtm

    Hello

    I want to know how to access the file hard thanks to vmware workstation if .vmx or .vmtm have been misse.please give me the solution

    thanxs in advance

    You can create a new machine virtual without any disks, once created the virtual machine and add your existing drive. ..

    If you found this information useful, please consider awarding points to 'Correct' or 'useful '. Thank you!

  • Access the main object of a SWF file in memory

    Hey.

    I'm trying to access the main object of a SWF file in memory. Consider the following code:

    package test {}
    import flash.display.Sprite;
    import flash.utils.ByteArray;

    SerializableAttribute public class Main extends Sprite {}
    public void Main (): void {}
    var b:ByteArray = new ByteArray();
    b.writeObject (this); This main object is what I'm trying to access
    }
    }
    }

    However, when I do a trace (b.length), the value I get does not match the length of the actual SWF file, then perhaps that there is another way.

    I am trying to achieve the same type of content that you would get if you load an external SWF using loadBytes, unless I want to access the principal object of SWF (running in memory) in this way.

    I have this even possible?

    Thank you.

    Hey.

    Well, I never knew a solution to it (if it is still possible to what I asked). However, I believe that I've implemented a workaround solution that should be enough for my needs. Perhaps it may help someone else too:

    Although I can not (seem to) get the SWF running access itself to memory, I can load another copy of itself. When I tested the copy loaded (in memory) and compared with the content of the file on the disk, using a hex editor, content match!

    This allows me to do things like control totals and which do not. An implementation is to use this technique to guard against the 'cache-hacking' of sovereign wealth funds.

  • How to access the photo files in the Finder?

    I just updated my system to the picture and I can't access my images in the Finder - the show in Finder option file is not available. What should I do?

    The new Photos.app does not reveal the photos managed in the Finder, like iPhoto does.

    You can only reveal image referenced in the Finder, you manage yourself and have not been copied to the photo library.

    If you want to access the original image files that you have imported, use "file > export" save a copy on your desktop.

    The management of the files of origin in the Photos is much more complicated than in iPhoto, so it make much sense to reveal the originals. Photos can simultaneously have several copies of them--in the masters, in iCloud folder or in a folder with temporary items. And if you use "Optimize Mac Storage", there may be no files to reveal to all, because the only copy will be in iCloud and not on your Mac.

  • How to fix the main button to paste constantly

    How to fix the main button to paste constantly

    Short of getting a replacement from Apple or risk a repair third shop there is nothing you can do. How about a button on the home screen? Go to settings > general > accessibility > assistive touch > on.

  • Re: Satellite Pro L450D - 12 X - how to access the recovery partition?

    Hello

    I've formatted Windows 7 with a Windows XP CD but did not setup. I wanted to know how to access the recovery partition to set it by default, everything exists on the laptop right now is Ubuntu, but I don't know, I saw an additional partition that must contain recovery files as laptop did not come with a recovery disk and unfortunately did not create a filter.

    How can I access the recovery partition on the laptop having in mind, I formatted the drive Windows 7 was installed on or should I activate or something like that?

    Any help much appreciated

    Hey,.

    On the second partition of your laptop (data partition), you will find a folder named HDDrecovery and it contains recovery files. The problem is that you can use the HARD drive only with the pre-installed operating system recovery feature. It would mean in your case it s too late now and it s not in use anymore.

    You have created the Toshiba recovery disc as mentioned in the user manual? If Yes, you can use this disk to restore to factory settings. Just boot from this CD and follow the instructions on the screen.

    If you don t have the recovery disc, you can order it here:
    https://backupmedia.Toshiba.EU/landing.aspx

Maybe you are looking for