Components: Communication between the buttons on the component and Application

It's probably much easier I have do it be... but I'm totally stuck, so that's:

I have a component separate that acts as a container for a group of buttons.  The container is scrollable vertically and has arrows at the top and bottom to activate the scroll effect.  If the id is "scroll_arrow".

Here's my problem: I need to fill a datagrid with id = "patient_stream" with the data from a table collection that is specific to the particular key that I am pressing on.

The component cannot 'see' the items in demand, so I can't apply functions directly on the buttons.

I tried this:

Again, "scroll_arrow" is the component.  "first_responder" is the button.  "patient_stream" is the datagrid control.  "head_area" is the Arraycollection collection.

public function load(event:MouseEvent):void
            {
                if (scroll_arrow.first_responder.selected == true)
                {
                    patient_stream.dataProvider = head_area;
                }
                    
            }

However, I have no way to activate the function 'load', because the component of the island and the application are separated.

I enclose the code for the component so that you can get a better idea of what I'm trying to do.

Does anyone have a better solution on this manipulation?

COMPONENT:

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



<mx:VBox   xmlns:mx="http://www.adobe.com/2006/mxml" 
               direction="vertical"
              mouseWheel="onMouseWheel(event)"
            horizontalScrollPolicy="off" 
            horizontalAlign="center" 
            verticalScrollPolicy="off" 
            paddingRight="3" 
            borderThickness="1" 
            borderColor="#333333">




<mx:Script>

        <![CDATA[

            import flash.utils.clearInterval;
            import flash.utils.setInterval;
            import mx.effects.easing.Exponential;
            import mx.effects.AnimateProperty;

            private var fx:AnimateProperty = new AnimateProperty();
            private var index:uint;
          
            
            private function onMouseWheel(e:MouseEvent):void

            {
                doMove(-1*e.delta*100);
            }

            
            private function doDown():void
            {
                index = setInterval(doMove,300,100);
                doMove(100);
            }


            private function doUp():void
            {
                index = setInterval(doMove,300,-100);
                doMove(-100);
            }



            private function clear():void
            {
                clearInterval(index);
            }



            private function doMove(direction:Number):void
            {
                fx.stop();
                fx.property = "verticalScrollPosition";
                fx.easingFunction = Exponential.easeOut;
                fx.toValue = box.verticalScrollPosition + direction;
                fx.play([box]);                

            }

        ]]>

    </mx:Script>
    
   
                        
                        
        <mx:Button upSkin="@Embed(source='/images/query_up_1.png')" overSkin="@Embed(source='images/query_up_1.png')" downSkin="@Embed(source='images/query_up_2.png')" mouseDown="doUp()" mouseUp="clear()" doubleClickEnabled="true" color="#F5F8F9" width="258"/>
                        
            <mx:VBox id="box" width="280" height="{height - 250}" horizontalScrollPolicy="off" horizontalAlign="center" verticalScrollPolicy="off">
                               
                     <mx:Button   label="1RSP First Responder – Medical"  width="261" height="29" labelPlacement="left" textAlign="left" fontSize="10" id="first_responder"/>
                     <mx:Button    width="261" height="29"  label="BAS Battalion Aid Station" textAlign="left" fontSize="10"/>
                     <mx:Button    width="261" height="29" label="FRSS Pre-op" textAlign="left" fontSize="10"/>
                      <mx:Button    width="261" height="29" label="FRSS Operating Room" textAlign="left" fontSize="10"/>
                     <mx:Button    width="261" height="29" label="FRSS Post-op" textAlign="left" fontSize="10"/>
                     <mx:Button  width="261" height="29" label="SC Operating Room" textAlign="left" fontSize="10"/>
                     <mx:Button  width="261" height="29" label="SC Ward" fontSize="10" textAlign="left" fontFamily="Verdana"/>
                     <mx:Button  width="261" height="29" label="SC X-ray" fontSize="10" textAlign="left"/>
                     <mx:Button  width="261" height="29" label="SC Laboratory" textAlign="left" fontSize="10"/>
                     <mx:Button  width="261" height="29" label="Operating Room Equipment" textAlign="left" fontSize="10"/>
                     <mx:Button  width="261" height="29" label="Operating Room Consumables" textAlign="left" fontSize="10"/>
                     <mx:Button  width="261" height="29" label="Field Dental Operatory" textAlign="left"/>
                     <mx:Button  width="261" height="29" label="NBC Individual" textAlign="left"/>
                     <mx:Button  width="261" height="29" label="NBC Unit" textAlign="left"/>
                     <mx:Button  width="261" height="29" label="Aid Station Sick Call" textAlign="left"/>
                     <mx:Button  width="261" height="29" label="1st Resp - Consumable" textAlign="left"/>
                     <mx:Button  width="261" height="29" label="1RE 1st Resp - Equipment" textAlign="left"/>
                     <mx:Button  width="261" height="29" label="PMM" textAlign="left"/>
                     <mx:Button  width="261" height="29" label="PMT" textAlign="left"/>
                     <mx:Button  width="261" height="29" label="OEHS" textAlign="left"/>
                     <mx:Button  width="261" height="29" label="ENTO" textAlign="left"/>
                     <mx:Button  width="261" height="29" label="BEC BAS ERC - Consumable" textAlign="left"/>
                             
            </mx:VBox>
                        
                        
                    <mx:Button width="258" upSkin="@Embed(source='/images/query_down_1.png')" overSkin="@Embed(source='images/query_down_1.png')" downSkin="@Embed(source='images/query_down_2.png')"  mouseDown="doDown()" mouseUp="clear()" />
                    
                    
    </mx:VBox>

In some cases, you can, or may have to, use parentApplication.varName or parentDocument.varName.

Tags: Flex

Similar Questions

  • No communication between the printer and the Red computer on switch flashing printer does on every time I turn it off

    I get a message there is no communication between the printer and the computer. Printer is all-in-one HP Officejet 4315v. Have uninstalled and reinstall the software and unplug the USB port and plug it back. Repeated several times. Still no communication. Exclamation red light next to 'on' and green button 'on' butter is flashing all the time.

    You have a hardware failure of the printer.  Contact the manufacturer for support.

  • Encrypted L3 Communications between the TOWER and WLC?

    Hi all

    I work with a client who wants to put the towers away to their WLC (a 4402). The problem is that communications between the TOWER and WLC must be secured, even through their private Wan! I have a few questions that result, if someone is able to help you;

    1. I can't know if and what method of encryption is (is it AES etc.?) used on connections between towers and the WLC and what are the steps?

      1. The terminology can be a problem here, it's not a wireless mesh, just classic LAP for WLC
    2. EXTENSIVE customer network is already encrypted (IPSec VPN via VPLS) in parts - what is the consequence of execution of AP<-->WLC with end to end (if possible) on a network encryption EXTENDED with IPSec, i.e. double encryption?

    Strange but true - pointers will be greatly appreciated... Phil.C

    With a controller of the 4400 series, the control traffic between the AP and the regulator is already encrypted AES.  The user traffic is not encrypted.  If you use a 5508 controller all traffic between the AP and the controller is encrypted AES.

    For what is running the traffic through a VPN, it should work.  The issue I see with this is with the MTU in general.  The controller will drop all packets with a payload of less than 32bytes data.  According to the MTU over the VPN I've seen packets getting fragmented and it is a question.  If you use one of the versions CAPWAP (5.2 or newer) discovery dynamic MTU is part of the Protocol and this MTU problem does not really exist.

  • No communication between the primary and standby

    Hello

    I have configured the DG,

    primary-> testprod
    standby mode-> testprod_s
    I started, standby machine instance watch with testprod and its place...
    but there is no communication between the primary and standby...

    How can I ask/check communication?

    Heartbeat PING [ARC3]: Unable to connect to the day before "testprod_s". Error is 12514

    eve of post form

    status of $lsnrctl
    $lsnrctl services

    When oracle not registered with listener service, this kind of errors occurred.
    The value of register LOCAL_LISTENER & manually as below in sleep mode and post

    SQL > alter the registry system;

  • Disable communication between the host and the virtual machine

    I have VM Server 2.0 and one of the virtual machines has the same name as the server and even if the virtual computer is connected to the host only network it generates the Windows error message: duplicate names exist on the network.

    is there a way to disable communication between the host and the virtual machines? I just need a virtual network that is isolated from my network complete and host also.

    Thank you.

    The GUI Server2 is not to choose the other unused vmnets.  Then edit your file VMX use a different vmnet of 0, 1 or 8.  (which are bridged, host-only and NAT)

    Thus, for example, if your VMX has a line that says:

    Ethernet0.VNET = "VMNet0.

    change to:

    Ethernet0.VNET = "VMNet2.

    (This assumes that you have not used the network Editor to fill the vmnet2 either).

  • communication between the printer and the computer stops

    Original title: printer problem

    Without rhyme or reason communication between our computer and the printer just stops (often!)   Why?  and how to fix it?

    Hello

    ·                         try to uninstall and reinstall and use the latest printer drivers VISTA for your model of the manufacturer of the printer

    You can also track information to try to solve your problems of printer below

    read the printer correct that information the slot microsoft, including the 'fix - it' and the information of the links to the other

    Solve printer problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-printer-problems

    and read this microsoft tutorial too

    Introduction

    This tutorial is designed to help you identify and fix the problem printer common windows problems, including print errors, or errors, and other issues that could prevent you from printing. This tutorial does not cover printing problems related to specific programs. Printing problems can be caused by cables that are not properly connected, corrupt, drivers, incompatible drivers, the printer settings, missing updates and problems with your printer.

    How to use this tutorial

    For best results, complete each step before move you on to the next. Try to print after each step before moving on to the next step.

    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

  • How to enable the communication between the host and the virtual from Windows 7 computer

    Host: Mac OS X 10.6

    Setting of networking: NAT (also connected to the VPN work)

    VM: Windows 7

    I use my mac for my development. I have an application running with the Web Server server. I also use the hosts so that I can map the URLS of different web site with the same ip address.

    For example:

    On my Mac in/etc/hosts

    127.0.0.1 www.testsite1.com www.testsite2.com

    On my virtual from Windows machine in the hosts file

    987.78.125.125 www.testsite1.com www.testsite2.com

    When I'm at the office and using bridged connections, it works very well. However, I prefer to use NAT all the time.

    Is this possible?


    Thank you!

    I actually already answer your question but now I know the details, and by the way you have explained so much better the second time!

    When not connected to the VPN on the host computer and the guest knows the IP address of the Web server on the host (an appropriate entry in the guest hosts) then it should work but when connected to the VPN, if you are administrator does its job well, that you should not be able to connect the host to the guest for the reason mentioned previously...  Authenticated/no unapproved system (guest) cannot access an authenticated / trust system (host), while the VPN on the host computer is set up to your corporate network.

  • No communication between the computer and the printer Photosmart D100 HD series

    Pentiun4 computer and HP Photosmart D110 seriesmy problem computer is HP but not accept the printer sends the signal to the printer. Thank you

    Hello

    1. what operating system is running on your computer?

    2. it worked earlier? If so, remember you have changed your computer?

    3. What is the exact error you receive?

    Follow the steps in this link and check if that helps: http://windows.microsoft.com/en-us/windows/help/printer-problems-in-windows

  • problems of communication between the computer and printer (wireless)

    I installed a wireless printer and its not connect with my laptop

    each model is different.  You will need to read the manual on this.  Most likely the IP address assigned to the printer is no longer valid in your current setup.

    from a command like use ping to see if the network route works

    Ping 1.1.1.1 (change the config page IP address 1.1.1.1).

    If you have configured the IP address as static you return to DHCP on the network.

    Alan Morris Windows printing team; Here Microsoft Knowledge Base search: http://support.microsoft.com/search/Default.aspx?adv=1

  • communication between the spring and cache-config

    Hello

    I have the following definition in one of the plans.
    <distributed-scheme>
         <scheme-name>data_distributed</scheme-name>
         <service-name>DistributedDataCache</service-name>
         <listener>
              <class-scheme>
                   <class-name>spring-bean:AbcMapTriggerListener
                   </class-name>
              </class-scheme>
         </listener>
         <backing-map-scheme>
              <local-scheme>
                   <listener>
                        <class-scheme>
                             <class-name>
                                  a.b.c.AbcBackingMapListener
                             </class-name>
                             <init-params>
                                  <init-param>
                                       <param-type>com.tangosol.net.BackingMapManagerContext
                                       </param-type>
                                       <param-value>{manager-context}</param-value>
                                  </init-param>
                             </init-params>
                        </class-scheme>
                   </listener>
              </local-scheme>
         </backing-map-scheme>
         <backup-count>0</backup-count>
         <autostart>true</autostart>
    </distributed-scheme>
    I'll need to get the AbcBackingMapListener initialized with another reference to cache and some custom objects. How can I pass these references to the manufacturer (or by using the set accessors)?

    I tried to use < class-system > inside the < param-value > element, but that has not worked.
    <param-value>
         <class-scheme>
              <class-name>spring-bean:CustomObject
              </class-name>
         </class-scheme>
    </param-value>
    Any suggestion would be appreciated.

    Hi magali,.

    To use another program like an init-param, you should use a plan-Ref as described here in the macro documentation settings section:
    http://download.Oracle.com/docs/CD/E18686_01/CoH.37/e18677/cache_config.htm#BABHCCHI

    
        data_distributed
        DistributedDataCache
        
            
                spring-bean:AbcMapTriggerListener
            
        
        
            
                
                    
                        
                            a.b.c.AbcBackingMapListener
                        
                        
                            
                                com.tangosol.net.BackingMapManagerContext
                                {manager-context}
                            
                            
                            
                                {scheme-ref}
                                custom-object-scheme
                            
                            
                            
                                {cache-ref}
                                anotherCache
                            
                        
                    
                
            
        
        0
        true
    
    
    
        custom-object-scheme
        spring-bean:CustomObject
    
    

    It works very well, we use it for sources of data in the cache stores and also create the ContinuousQueryCaches via the config cache.

    JK

  • Application SSO between the APEX and application non-APEX

    Hello

    In most of the forums I found information on how to implement SSO between 2 APEX applications. Anyone know if it is possible to implement SSO between one APEX application and a non-APEX?

    If it is possible, a usefulness of links?

    I understand APEX handles session management and also creates the session in a DB table. This session can be created in another application?

    I'm mainly looking for on the SSO application between an application built on AngularJS/NodeJS with APEX.

    Thank you

    Hi 1467086,

    1467086 wrote:

    Please change your login username of "1467086" to something meaningful. Reference: Video tutorial how to change username available

    In most of the forums I found information on how to implement SSO between 2 APEX applications. Anyone know if it is possible to implement SSO between one APEX application and a non-APEX?

    If it is possible, a usefulness of links?

    Without providing you details, members of the forum can not say. See: How to get answers from the forum

    Please include information on enforcement non-APEX thus.

    I understand APEX handles session management and also creates the session in a DB table. This session can be created in another application?

    Can you "another application" run PL/SQL.

    If yes then refer: Martin Giffy D'Souza on Oracle APEX: how to create a Session of the APEX in PL/SQL

    I'm mainly looking for on the SSO application between an application built on AngularJS/NodeJS with APEX.

    AngularJS is intended for the side (browser) interaction rich client with the user. But, NodeJS can provide you with the functionality you need.

    danmcghan-Oracle has previously worked with AngularJS and has now tapped into NodeJS with his excellent blog on https://jsao.io/, it can guide you on how to go about using NodeJS.

    I hope this helps!

    Kind regards

    Kiran

  • No communication between the Bluetooth SD - BT2 and PocketPC SD card

    I use an SD - BT2 (PA3271U) card in a Microsoft Pocket PC (also referred to as 'Microsoft PocketPC 2003') 4.20.00. I use the latest driver Toshiba 5.01 C and the card is recognized by the Pocket PC (Medion MD 95450 / MDPPC 150). I can connect to my mobile phone and GPRS connection is accumulation with no problems.

    But later at this point in time, the connection is established but dead... no connection to anyone. It seems that the communication between the Pocket PC and the card SD - BT2 is broken on the software side.

    Anyone have an idea (or a working driver) for this problem?

    Thanks in advance

    Karl

    Hello

    Have you tried to reinstall the drivers or software for SD - BT2?
    In my opinion, you should check this option.
    Also, I found a brand new version for PDA Bluetooth Stack (Bluetooth software and drivers).
    Check out this site.
    http://APS.toshiba-tro.de/Bluetooth/pages/download.php.

    Good bye

  • I have a button with the icon text. Is it possible to increase the space between the text and icon?

    Mr President.

    I have a button with the icon text. Is it possible to increase the space between the text and icon?

    adf button text image space.png

    adf button text image space.jpg

    Concerning

    Have you tried it as directed by the other thread?

    
    

    See you soon

    AJ

  • Not plugged into the HDMI cable between the PC and the TV for watching movies, but it has no sound and the image.

    Original title: high speed HDMI does not.

    I plugin the HDMI cable between the PC and the TV for watching movies, but it has no sound and the image.

    Hi lisa,

    Try these steps and check the result.
    Step 1: Manage audio devices
    a. Click Start and then click Control Panel.
    b. click hardware and sound.
    c. under sound, click on manage audio devices.
    d. click on the playback device you want to output sound. Right-click in the empty space and click on see the disabled devices to see other devices.
    e. Select the device and click on set as default and then click OK.

    See http://support.Microsoft.com/kb/953500

    Step 2: Graphics output to monitor
    a. right click on the desktop, click chart options.
    b. output to monitor.

    Step 3: Adjust graphics hardware acceleration
    a. open the screen resolution by clicking the Start button, Control Panel, and then, under appearance and personalization, click on adjust the screen resolution.
    b. click Advanced settings, click the Troubleshooting tab and then click on change settings.
    Note: Some video card drivers do not allow allows you to change the settings.
    c. move the hardware acceleration slider at different levels and check the result.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Unknown device on network adapter between the laptop and the wireless router

    I am running windows 7 64 bit on a laptop computer connected wireless to the router and internet.  The router is Linksys WRT160N connected to the internet.  The map of the network, there is a question mark device unknown between the laptop and the router.  However, I still have access to the internet.  In terms of network, if I hover over the laptop, it does not show an IP address.  It only shows the name of the computer and its MAC address.  Any help would be appreciated.

    Solved my problem.  I checked the button of the IPv6 protocol in the properties of a network connection on the laptop, and now I can see it's the IP address and the unknown device has been replaced by a switch and hub which is part of the router.   I do not uncheck the button IPV4.  I'm guessing that it is a bug in Windows 7 that you need to cut of ipV6 Protocol when you have a Win XP computer on the network if you want to see a map of own network.  As I said before, everything worked before, so this seems to be a cosmetic fix only.  I see that my shared files on the XP computer appear faster after a reboot.

Maybe you are looking for

  • Satellite C855 and Win8.1 - Webcam does not work

    I have problems with my webcam. using windows 8.1. When I start the Toshiba Web Camera Application it comes up with a window of Toshiba saying ' web camera initialization failed. you check the legacy of camera and restart the application or device ".

  • Satellite A210 (PSAEG) - Microphone does not work on Windows 7 64 bit

    Hello, the microphone does not work on windows 7 64-bit, the driver that I use is 64-bit Windows Vsta. The volume is implemented maximum and so is the amplification but no way to make it work with the software assistant camera Skype or toshiba.Can so

  • The music stops randomly

    Hello, I had this problem for a few days. iTunes seems to cut out mu music randomly and sometimes when I close a tab on google chrome. I thought it was my problem with headphones (Skullcandy shredders), but if I go on youtube and search for a video i

  • The Manager of devices-other devices-Universal Serial Bus

    I have a laptop HP Envy dv7 - 7227cl. It came with Windows 8. I formatted the HARD drive and put Windows 7 Ultimate on it. I went on HP website for my model and put all drivers to this topic. I got everything to work, except the 3 USB 3.0 ports. The

  • Doubts about ButtonPress

    When I press the button on blackberry phone, I should get the menu options, I want to know how to achieve this, IT has the default close the menu and I want to know how to add the menu and I want to know what the character of the key. It's the image