Passing data between the component main enforcement through custom methods and custom

Similar to what this article is talking about, I have a custom list that contains a list of names of State of the United States in chains. (Let's call this states.mxml) #comments http://www.boyzoid.com/blog/index.cfm/2006/11/22/Flex-Custom-Components-and-Custom-Methods

I create an action script that is included in my states.mxml like < mx:Script source = "myScripts.as" / > so that I can call the method in mySpcripts.as

Now, what I want to do is, whenever I click on an item in the list, I want this string is displayed on the Application of the hand (on a canvas or Panel) as a label.

I don't know how I am supposed to refer to the canvas and wood, which lies on the main of the application of myScripts.as
Is there a way to create an action script file where methods can reference components for the main application and the custom component file?

Thank you

this.parentApplication.canvas.label should do what you are looking for

Tags: Flex

Similar Questions

  • Marshall plan: how to pass data between the main field and sub-application

    Hello

    I'm trying to load a Flex 3.5 application in Flex 4. In the process, I need to move a strong local typed object from main application to the loaded swf file. And I also have to pass a rope and a bitmap of application sub to the main application. Have an example to show how to pass data in the application domain?

    Thank you

    SW

    Define scaleContent = true, set a breakpoint on SWFLoader.as:doScaleContent and

    see if he thinks there's a swfBridge.

  • Pass data between panels

    I have a digital slide on a Panel. When I move the cursor, I need the value update on another Panel.

    How can I do this?

    The two panels are loaded as a senior-level windows.

    It seems that I read something on the use of queues to pass data between the panels, but I can't seem to find where I read that.

    A basic concept that differentiate the CVI to other languages, it's that there is no relationship between a sign and a specific source file. I mean, you do not need to put a sign functions in a specific source file: they can be spread over multiple sources; Conversely, you might have a source only that collects reminders for all panels of files in your application. What readers recall execution are Panel handles and control ID. (One effect of this paradigm is, you might have a reminder installed on controls on different panels).

    For this reason, there is no problem by putting the cursor callback in panel1.c. In addition, you can call the file source in a different way.

    Arriving at the base of your problem, a DAQ multithreaded application is really different from a UI single-threaded application.

    Put the functions of data acquisition in a separate thread can be beneficial for your application, because they are not likely to suffer user interface events.

    CVI provides also the different methods of transmission of data between threads. the most powerful in data acquisition applications is probably a Thread Safe queue.

    I suggest you look at Programmer's Reference > chapter of the creating multithreaded Applications to aid, where the basic principles of programming are explained multithreaded and information are provided on all instruments CVI includes.

    If you want to discuss on this scenario, I suggest yu to start a new thread, as it has nothing to do with the original question with which you started this discussion.

  • passing variables between the pop-up windows

    I'm moving one popup to the other variables. It works fien if I spend bvariable of main application as soon as I'm moving from variable popup to popup window it does not work here is what I am trying ro:

    That works fine

    hand. MXML

    private function launchMoreInfo (): void {}
    var win: view = PopUpManager.createPopUp (this, opinion, true) as point of view;
    //

    victory. AccountNum = list1.selectedItem.accountNum;
    Win.User = user;

    }

    But if I try to pass variables to the pop-up window, created from popup component, is not ' work

    View.MXML

    private function dsclientevents (): void {}
    var win2:view = PopUpManager.createPopUp (Thi, dsclienteventlog, true) like point of view;
    //

    win2. AccountNum = 'test ';

    }

    AccountNum is declared in dsclienteventlog.mxml

    Is it possible to pass variables between the pop-up windows?

    I would much apreciate your help

    Thank you

    Hi friend!

    I have faced this kind of problem and solved using 'Public static var '.

    Just, you declare a public static variable in your class Popup. Then you can directly set the value to this variable as,

    ClassName.StaticVariableName = value;

    In your case,.

    say PopUp2.mxml or PopUp2.as

    =======

    In the PopUp1 script:

    OnItemSelectionChange (event): void

    {

    PopUp2.m_iSelectedID = DatagridID.selectedItem.AccountID; It will change the value of this variable, even if the popup2 is open.

    your stuff here...

    }

    Try this, I hope this will help you.

    Thank you

    Merlina.

  • Core 1 page 9-4: "...". pass data between parallel patterns... »

    «.. . If allows you to pass data between parallel block diagrams... son"this can be done?

    They mean transfers data between parallel loops/structures?

    The question is a Hue. It is not parallel, using wires. Two loops are not connected is perhaps parallel. We read your table of contents it a game of guessing on the sentence of your thread. Maybe if you get into the details.

  • Copy data between the custom dimension members or scenario

    Dear Experts,

    I'm back with my silly question.
    Is there anyone know how to copy all the data (not only entity currency) between members in the custom dimension? Our HFM application has a different type of data because the type declaration (legal and audit). Whenever we arrived with our legal data, we copy our legal consolidated data for verification. We tried to create a formula (using hs.exp) to move data from legal to check, but apparently, this formula should be write inside Sub calculate (). Is not supposed, we do not want to run the copy data every time that the user click on calculate.

    We also perform copy data between the scenario, as actual to Budget. This activity also needs all the data consolidated and final.

    So the condition for the copy of data are:
    -data must be consolidated
    -Copy all the data, including the adjustment

    Is there a formula or a way to copy the data that can be triggered individually (click 1 rules that run only copy data) by the user?

    Thank you very much for your kind response,
    -Anna

    Hi Anna,.
    As you say, you cannot trigger different parts of rules to run in HFM. Instead, you use a condition. In your case this condition might be guided by the management of the process. You can use a combination of GetSubmissionPhase, review status , and ReviewStatusUsingPhaseID functions that returns the current process management level and presentation details: phase. To me, it seems that as soon as you have finished legal, you complete a part of your process cycle and enter another stage of verification. Here are the parts of your publishing process, if you have defined a process in HFM management or not, which means that you should consider using it.

    -Kostas

  • loading dynamic data into the component

    Hello
    Im having a problem with loading of text in the component. Until the new item came I was loading the data of a component called slideshowpro in a dynamic text field. my script looked like this (with the t_txt dynamic text field):

    Net.slideshowpro.slideshowpro import. *;

    function onImageData(event:SSPDataEvent) {}
    If {(event.type=="imageData)"}
    t_txt.htmlText = Event.Data.Caption;
    }
    }

    my_ssp.addEventListener (SSPDataEvent.IMAGE_DATA, onImageData);


    -I now want to load data into the component layout of text of the same name (t2_text). How would I change the script above for flow data into the component layout of text rather than the dynamic text field? THX.

    The author of the component might look at the example of ImportMarkup. This shows how to convert text from markup. TLF laboratories don't have html conversion. If its plain text look at the HelloWorld example.

  • How to filter dates between the current date and the number of dates past

    Hello

    On the answers, how can I do to return a report that contains data between the current dates and 31 days in the past?

    Users want to connect display the report and the report should show only data 31 days to the date of the day... How would I be able to set it up on the answers that since I have not access to RPD?

    Please let me know

    Thank you

    use the date filter between current_date and timestampadd (sql_tsi_day, -31, current_date)

    fixed

  • Explanation of the difference between the Sony Xperia Z model no C6602 and C6603

    I bought a phon xperia sony online shoppingindiatimes.com Z 22/04/2013, the model is C6603, service corresponds to the software and hardware of this model is available in India. What is the difference between the models is to say. C6602 and C6603. Is that what all major diiference between the two. If Yes, what is that?

    Please answer as soon as possible.

    Thanking you,

    Lokesh

    Here you go

    2G GSM 850 / 900 / 1800 / 1900 - C6602 & C6603

    3G

    C6603 HSDPA 850 / 900 / 2100 - C6603

    C6602 HSDPA 850 / 900 / 1700 / 1900 / 2100

    4G

    C6603 LTE 800 / 850 / 900 / 1800 / 2100 / 2600

    Don't forget to mark the correct answers & useful answers

  • Exchange of data between the main VI and sub - VI

    It is my first attempt to build a comprehensive program and hope you can help me.

    The idea is to load a set of data and to perform several calculations and operations on them, find themselves in the creation of a report file.

    What I want to do is to build a main VI which contains the data, and several sub - vi to do the math, dynamically loaded in a subgroup of experts (for the simple user interface). I thought about this architecture because I'm sure I'll have to change the calculation of VI, and I don't know how I'm going to need, so I can just add an another calc VI to the plugin dir and load it. The thing is, I have to keep moving data back from the main VI to the Subvi and maybe even between sub - vi. Is there an easy (or not so hard) how? I thought about queues, but sometimes the data is to be sent to more than a subvi, and I can't have a queue for each. The idea that I get is like a network producer-consumer mode BOX: the main VI produce some data and all those interested in this data use. Then they send the results back (as a "producer") and all stakeholders in the response it consumes.

    Attached, is a "skeleton" of what I intend to do.

    There are several ways you can accomplish this. First of all, you can use the Start Asychronous Call, which will provide a component of connector for you. So, it is easy to wire the reference to it. You could also implement a global functional (also known as a motor of action) to access the event reference. It is the approach we use for our shared events. If you have lines between the main VI and ths Subvi you to format a particular message reference. However, I don't think that this approach would correspond to what you are doing.

  • OOP - how to pass variables between the branches of the object, but not instances of VI

    I have a main VI where a thread object goes through some subVIs initialization and then branches off into several parallel loops. My understanding is that each branch becomes a separate instance of the object. Data is passed between the loops using global variables, wrapped in the accessors (I can change this if someone has a better approach - reducing to a minimum the memory and the CPU usage is very important).

    I need to have a large number of instances of the main VI running at the same time. What would be the best way to ensure that the data transmitted between the loops of one instance of VI do not interfere with the data transmitted between the loops of another instance of VI?

    Thank you for your understanding.

    Ah, you're right. Stupid mistake on my part. It's all working now. The corrected code is attached.

  • Problems with the transmission of data between the screws

    Hi all.

    I have a question where my program slows considerably during the race.

    The program is a producer-consumer, where I have the main consumer loops and loops producer for USE comms, measure the output power, input for measuring the power, thermal control, etc..

    Regarding the issue, the measures of output loop takes readings and transmits the data to a separate VI which remains running (measure of output processor). This VI summarizes and on average the data and also displays data for the operator to see details if necessary. The operator shows and hides the front panel of this VI with a button on the main program. This VI also returns the summary data to the main VI, where it is read by my loop of consumer.

    The main measures output VI loop takes about 200mS to run when the program is first started. Less than a minute, it is 400 MS, and it's all downhill from there.

    I've isolated the problem to the way I pass data back (I think). I couldn't find a way to pass the reference of the queue between two screws not connected by wires. I open a reference to the VI processor and use Ctrl Val.Set and Get to pass the data back. If I take the intersection of the Subvi data, there is no slowdown.

    My questions are:

    (1) why the data passing by invoking a node of the control on the target would cause the downturn?

    (2) how would I get/pass information of queue between the two screws are not connected?

    (3) Alternately, could I start the VI processor in my main program, run and pass data in and out of it? I want to keep it running, because it is also part of the user interface.

    I don't know that I have not explained this very clearly. I took some screenshots of my code, but don't see how to download here.

    Thanks in advance,

    Jim


  • The distribution of applications and data between the disk SSD and HDD

    I recently installed an SSD in my Macbook Pro (late 2011) instead of the DVD player. I want to install OS X on it, by replacing the current OS X on the original hard disk, I will continue to use for storing files. How should I allocate its use in car? OS X and applications on the data files on the hard disk of 500 GB and SSD?

    The first series of instructions will partition and format the newly installed SSD disk then install OS X on it. The second block will help you configure OS X on the SSD with your data on the HARD drive.

    Clean Install of El Capitan on a new disc

    1. Restart the computer. Immediately after the chime, press Command + Option + R until a globe appears.
    2. The Utility Menu appears in 5 to 20 minutes. Be patient.
    3. Select disk utility, then click on the continue button.
    4. When loading disk utility, select the drive (generally, the entry Out-bumpy) in the list aside.
    5. Click the Partition tab in the main window of disk utility. A panel will fall.
    6. Set the GUID partition scheme.
    7. Define the type of Format Mac OS extended (journaled).
    8. Click on the apply button, then click the fact when it is active.
    9. Quit disk utility and re-enter the Utility Menu.
    10. Select reinstall OS X and click on the continue button.

    How to use an SSD with your HARD drive

    If you want to use an SSD as boot with your existing HARD disk drive, as the disk 'data', here is what you can do.

    After installing the SSD, you need to partition and format the SSD using disc utility disc. Then install OS X on the SSD. Once installed OSX boot from SSD. Startup disk preferences to set up the SSD as the boot volume.

    Open the preferences users and groups. Click the lock and authenticate you. Or CTRL - RIGHT click on your username account list in the sidebar and select Advanced Options in the context menu. You will see a field called "Home dir: ' on the far right, you will see an Edit button. Click on it. In the file dialog box, navigate to the location in house now located on the HARD disk (disk HARD/users/user_name /.) Select the folder, click the Open button. Restart the computer, as shown. When the computer starts, it will now use the home located on the HARD drive folder.

    Another more technical method involving the Terminal and the alias is discussed in depth here: using OS X with a SSD and HDD - Matt Gemmell configuration. It's my preferred approach because I can choose which records of the House, I want to on the HARD drive and I don't want to. For example, I like to keep Documents and library files on the SSD because I frequently access their content.

    Make sure that you keep the bootable system entirely on your HARD drive where you need it.

  • Exchange of data between the internal and external labview code

    Sorry for a simple question.

    I have a TestStand sequence that uses units/tests written in LabVIEW. The sequence is extermnally began with a stand alone LabVIEW program. I need to establish simple exchanges of information between units of the sequence LabVIEW and LabVIEW external code.

    Information are simple strings will eventually be sent in both directions.

    Please advice what commumnication path needs to be implemented.

    Unfortunately, arttempts to search OR site Internet (or Internet) result in a large number of irrelevant information. Probably, I can't shape appropriate keywords. There is therefore a need for your help.

    Thank you

    _Y_ wrote:
    [...] It takes by presenting some initial information (e.g. username) in the sequence [...]

    Use a Message from the user interface of query for the data (data available in the user interface, executing sequence requires it).

    _Y_ wrote:
    [...] and view the status of intermediate/final level in the user interface.

    Use a Message from the user interface to transmit these data to the display (data available in the execution of sequences, Which requires it)

    Norbert

    EDIT: Btw, you should use TestStand user to nicks track management. This gives you more options and security than some custom stuff implemented in the user interface.

  • Need for a versatile to pass data to the chart

    Hello

    I have a sub - vi that performs data analyses. I pulled out the results through a def type. I want that this type def to include data necessary to plot the results on a XY Chart.

    My problem is that the data will sometimes contain only 1 and sometimes multiple data series dear. or sometimes the output should be a cluster of two 1 d-tables, sometimes it must be an array of clusters. Is there a good way to do this?

    vs

    udka wrote:

    You can try using for loop with indexing enabled so you will come to know how much coulumns you have during execution and clusters and then indexing on so that you always have table of clusters.

    You are on the right track.  Just need a little before the loop to transpose the table (to properly make the indexing job) and remove the data from the x-axis.

Maybe you are looking for