Why the registered event cannot be heard (files content included)

Hi,
I posted a question earlier today about a problem using external customer event along with a chart created with actionscript. I think the files are better than words. If an expert can take a look at this and let me know how the event cannot be heard and how it can be heard, I will really appreciate it.
3 files:
===============================================================
1. ChartIt.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="init()" xmlns:local="*">
    <mx:Script>
        <![CDATA[
            import mx.charts.PieChart;
            import org.allus.examples.UpdateChartEvent;
            import org.allus.examples.GenCharts;
            import mx.collections.ArrayCollection;
            private var pieChart:PieChart = new PieChart();
            private var genCharts:GenCharts = new GenCharts();
            [Bindable]
            private var chartData:ArrayCollection = new ArrayCollection( [
            { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
            { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
            { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 } ]);
            private function init():void {
                pieChart = genCharts.createPieChart(chartData, "Gold");
                box.addChild(pieChart);
                pieChart.addEventListener(UpdateChartEvent.UpdateChart, pieDoubleClicked);
            private function pieDoubleClicked(e:UpdateChartEvent):void {
                trace("the pie chart was double clicked");
        ]]>
    </mx:Script>
    <mx:VBox width="50%" height="50%" id="box" borderStyle="solid"/>
</mx:Application>
===============================================================
2. GenChart.as:
package org.allus.examples
    import mx.charts.PieChart;
    import mx.charts.series.PieSeries;
    import mx.charts.events.ChartItemEvent;
    import mx.collections.ArrayCollection;
    import flash.events.EventDispatcher;
    import flash.events.Event;
    import org.allus.examples.UpdateChartEvent;
    public class GenCharts extends EventDispatcher
        private var apieChart:PieChart;
        private var pieSeries:PieSeries;
        public function GenCharts() {
            super();
        public function createPieChart(chartData:ArrayCollection, by:String):PieChart {
            apieChart = new PieChart();
            apieChart.percentWidth = 100;
            apieChart.percentHeight = 100;
            apieChart.showDataTips = true;
            apieChart.dataProvider = chartData;
            apieChart.addEventListener(ChartItemEvent.ITEM_DOUBLE_CLICK, pieChartItemDoubleClickedHandler);
            apieChart.doubleClickEnabled = true;
            var mySeries:Array = new Array();
            pieSeries = new PieSeries();                   
            pieSeries.field = by;               
            mySeries.push(pieSeries);
            apieChart.series = mySeries;
            return apieChart;
        private function pieChartItemDoubleClickedHandler(evt:ChartItemEvent):void {
            dispatchEvent(new UpdateChartEvent(UpdateChartEvent.UpdateChart));
==============================================
3. UpdateChartEvent.as
package org.allus.examples
    import flash.events.Event;
    public class UpdateChartEvent extends Event
        public static const UpdateChart:String = "updateChart";
        public function UpdateChartEvent(eventName:String) {
            trace("the event was triggered.");
            super(eventName);

Have your apieChart dispatch the event
private function pieChartItemDoubleClickedHandler(evt:ChartItemEvent):void {     apieChart.dispatchEvent(new UpdateChartEvent(UpdateChartEvent.UpdateChart));

Similar Messages

  • Why the SAX parser cannot support the special character like "¡"

    I do not understand why the SAX parser cannot support the special character like &iexcl; but it can replace the &quot; &amp; &lt; &gt;   to ", &, <, >, ,, but other characters will be replaced to empty charater.
    can somebody give me any suggestions or solutions. THX.
    Edited by: 844086 on 2011-3-14 上午2:27
    Edited by: 844086 on 2011-3-14 上午2:27

    I quote:
    Alternatively implement an EntityResolver that resolves the desired escapes.You are again an example that people only read/register the first thing written in a post.

  • Using Adobe 11 reader, now comes up with an error, once file is opened. 'Invalid plugin detected, Adobe reader will quit. Closes the program so cannot view PDF files. Running windows 7. I have uninstalled and re-installed Adobe still the same. HELP

    Using Adobe 11 reader, now comes up with an error, once file is opened. 'Invalid plugin detected, Adobe reader will quit. Closes the program so cannot view PDF files. Running windows 7. I have uninstalled and re-installed Adobe still the same. HELP

    Sounds like something has been added into the Reader folder. I would recommend uninstalling, running http://labs.adobe.com/downloads/acrobatcleaner.html, removing any left over parts of the Reader folder (this might have been the problem), reboot, and reinstall. Hopefully that solves the problem. For future question about Reader, you should consider asking in the Reader forum, this is not it.

  • Why the remote user cannot open any folds?

    Why the remote user cannot open any folds?
    I create a user user8 and already grant the user the role connect, OLTP-user, and resource. I also assign this user unlimited space in the user8 tablespace. But after connection, the user8 cannot open any folds and the connection is terninated automaticlly.

    Why the remote user cannot open any folds?I don't know what you have.
    I don't know what you do.
    I don't know what you see.
    It is really, Really, REALLY difficult to fix a problem that can not be seen.
    use COPY & PASTE so we can see what you do & how Oracle responds.
    do as below so we can know complete Oracle version & OS name.
    Post via COPY & PASTE complete results of
    SELECT * from v$version;

  • Why the following command cannot run successfully?

    Why the following command cannot run successfully?
    SQL> exec DBMS_SPM.EVOLVE_SQL_PLAN_BASELINE;
    BEGIN DBMS_SPM.EVOLVE_SQL_PLAN_BASELINE; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to
    'EVOLVE_SQL_PLAN_BASELINE'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    Here is an example how you can invoke it:
    SET SERVEROUTPUT ON
    SET LONG 10000
    DECLARE
        report clob;
    BEGIN
        report := DBMS_SPM.EVOLVE_SQL_PLAN_BASELINE(
                      sql_handle => 'SYS_SQL_593bc74fca8e6738');
        DBMS_OUTPUT.PUT_LINE(report);
    END;
    /With kind regards
    Krystian Zieja
    http://www.projectenvision.com

  • What is the best way to merge a file content into log file

    What is the best way to merge a file content into log file.
    In worst case, I will read the file line by line as string, then use
    logger.info(lineString)to output to log file.
    However, is there better way to do this?
    The eventual log file will be something like:
    log message 1
    log message 2
    content from file line 1
    content from file line 2
    content from file line 3
    log message 3
    log message 4Thanks

    John618 wrote:
    Thank you and let me explain:
    1. What do you mean by better?
    I would like to see better performance. read line by line and log each line as string can be slow. Did you measure this and determine that it is actually a problem for your application? Or are you guessing?
    Regardless of what you do you are still going to need to read the file.
    >
    2.The only better way I can think of is not having to do it, but I assume you have a very good reason to want to do this.
    Yes, I have to do it beacuse the requirement is to have that file content be part of logging.
    Any idea?How is it supposed to be part of it? For example which of the following is better?
            File AAA - contents
                       First Line
                       Second Line XXX
            Log 1
                    2009-03-27 DEBUG: Random preceding line
                    2009-03-27 DEBUG: First Line
                    2009-03-27 DEBUG: Second Line XXX
                    2009-03-27 DEBUG: Random following line
            Log 2
                    2009-03-27 DEBUG: Random preceding line
                    2009-03-27 DEBUG: ----- File: AAA -------------
                    First Line
                    Second Line XXX
                    2009-03-27 DEBUG: Random following lineBoth of the above have some advantages and disadvantages.
    The first in a mult-threaded app can end up with intermittent log entries in between lines, so having log lines with thread ids becomes important.
    The first can be created by reading one line at a time and posting one at a time.
    The second can be created by reading the entire file as a single string and then posting using a single log statement.

  • How To Get The CLOSE Event In a JSP File?

    Hello everybody,
    Right now I am working in a JSP project which is about access log, when the users start , oprate, or close the system, the access log system works. I am in trouble in that when the users close the system, how can I get the close event?
    The JSP file contains the following fields :
    Close Window
    How to add code to get the CLOSE Event and submit to the service?
    And If I hit the "Close Button"(on the right-top of the window), how can I get the CLOSE event, too?
    Can anyone tell me?

    1. Add a hidden field:
    <input type="hidden" id="status" value="">2. modify <a href="index.jsp" onclick ="parent.window.close( );">Close Window</a> with <a href="index.jsp" onclick ="closefn();">Close Window</a>3. Add a javascript
    <script language="javascript">function closefn(){
    document.getElementById('status').value="close";
    document.form.action="";
    document.form.method="post";
    document.form.submit();
    parent.window.close( );
    }4. Now on the action page get the value of status by request.getParameter("status"); and log it.

  • Cannot search PDF file contents - Windows 7 32 bit - Adobe Acrobat X

    Hello,
    If this is in the wrong forum please move it.
    I work in an enterprise environment and our systems are having trouble searching file contents in Windows Explorer using Acrobat X and Windows 7 32 bit. The files are on a mapped network location.
    After removing all adobe products from a test machine and reinstalling the Acrobat 10.0.0 software the windows explorer search function seems to work locally but once I install Acrobat 10.1.anything update, it will fail. It never worked on a networked location.
    I have also tried installing Adobe Acrobat 11.0.00 after removing 10.0. Then I made sure my indexing settings were setup to index files and contents and made sure the .pdf extension was selected under file types.
    I then created a mapped drive to the network location, and setup my indexing to the folder on that network drive. I was able to do this by installing this Microsoft Add-in that allows use of UNC paths in the indexing.
    http://www.microsoft.com/en-us/download/confirmation.aspx?id=3383
    Once I set this up, I rebuilt my index and restarted the computer. This is where it gets weird. I can now search the contents of PDF files in this indexed network location, but only by one letter. Searching "c type:pdf" will produce results, but "co type:pdf" will not. I know for sure some of the documents have the work Comment in there so this should should up.
    Does anyone have experience getting this to work correctly with the latest versions of Adobe Acrobat X or XI and Windows 7 32 bit? It would be greatly appreciated.
    Thank you.

    I will never understand why but in the end I rebuilt my 32 bit dell laptop from scratch and the pdf files can now be searched.
    I cannot search them on a mapped drive as I was able to with Windows XP because now they must be indexed and windows 7 will seems not to allow a mapped location to be indexed which must be done to make the pdf files searchable so I have had to move the files to the local drive.
    My Windows 7 64 bit systems can search the mapped drives just fine without needing to be indexed. Again I will never understand why this works and the 32 bit machine does not.

  • Why the hell are my creative cloud files being archived!?!  i did NOT delete them.  this is a completely undependable service.

    looks like i can never trust this stupid cloud.
    why does this happen?

    Hi,
    We are aware of this issue already, I am sorry for any issues caused, you can go to the Creative Cloud website and restore all of your files back from archive.
    Thanks
    Warner

  • Can anyone tell me why the count tick cannot be show?

    Hi All
    I am trying to write a code for speed calculation, so first I am trying to familiar with the timer function. However as shown in my test code, I cannot get the result in front panel. Can anyone help me in this, please?
    Attachments:
    test count tick.vi ‏17 KB

    Hi,
    I've saved the file for 7.0.
    You cannot initialise the tick count sub vi.
    Reading the full help :
    Returns the value of the millisecond timer. The base reference time (millisecond zero) is undefined. That is, you cannot convert millisecond timer value to a real-world time or date. Be careful when you use this function in comparisons because the value of the millisecond timer wraps from (2ˆ32)–1 to 0.
    If you want to fake an initialise, then you're simply finding the current tick count (outside the loop) and adding on 1x10E4 every time you use the tick count from then on, so a difference will actually be the difference plus 1x10E4.
    Make sense?
    Alternatively, use the elapsed time express vi in the execution control palette, which can take a start time.
    Thanks
    Sacha Emery
    National Instruments (UK)
    // it takes almost no time to rate an answer
    Attachments:
    test_timer_fixed.vi ‏73 KB

  • Numbers: Why the use of Packages instead of Files?

    I was just wondering why Apple chose to use packages and not regular files with Numbers and Pages? It doesn't really matter I guess I am just curious why Apple when in this direction and what are the benefits vs detriments of this. It just seems that a conventional file would have been better.
    Thanks,

    The package formula give the ability to store every kind of object in a document in it's original format.
    For instance, if you paste a jpeg picture in a document, it is stored as is in the Contents folder.
    It no longer requires the use of resourceFork which is not recognized by other operating systems.
    What is a conventional file?
    An XL file is a conventional file for XL, not for another spreadsheet application.
    So, even with a monolithic file a translator would be required to exchange between applications.
    In fact, Package is a structure used quite everywhere in MacOS X.
    The applications are packages, every system extension is a package…
    This structure gives to Apple an simple scheme to offer "self_localisable" products.
    Yvan KOENIG (from FRANCE mercredi 4 juin 2008 19:23:36)

  • Why the size of EHP1's kernel file is only 20kb ?

    in the download area of swdc,
    Installations and Upgrades
    Installations and Upgrades" SAP Technology Components" SAP SOLUTION MANAGER" SAP SOLUTION MANAGER 7.0 EHP 1
    All kernel file's size  are only 20kb? Why? How i can install ehp1?

    Now i will install solman 7.0 ehp1,not   upgrade kernel file.
    As  the medialist guide of solman ehp1 ,
    "DVD SAP EHP1 for SAP NETWEAVER 7.0 SR1 Kernel 7.01
    Windows (IA32 32bit,IA64 64bit,x64 64bit)
    AIX 64bit, z/OS 64bit
    HP-UX (IA64 64bit, PA-RISC 64bit)
    Solaris (SPARC 64bit, x64 64bit)
    (Mat. no. 51036767)"
    Then  i download   " 51036767_5 BS 7 SR1 UC-Kernel 7.01 Windows Server on x64 64bit  " from
    "Installations and Upgrades
    Installations and Upgrades" SAP Technology Components" SAP SOLUTION MANAGER" SAP SOLUTION MANAGER 7.0 EHP 1 "
    The 51036767_5.zip file's size is only 20KB,After i extracted the file,there are a few files and dirs.

  • The md5-sparc cannot open a file with size 2GB

    Hi,
    I would need to check the integrity of the file with size > 2GB with md5-sparc but I still get the error message "error opening file". Is there an update of this program which can open the large files, too? I have tried to search on web but without success.
    Thanks a lot Milan

    digest -a md5 seems to work:
    bash-3.00$ ls -l sol-10-u3-ga-sparc-dvd.iso
    -rw-r--r--   1 root     root     4207411200 Apr  6  2007 sol-10-u3-ga-sparc-dvd.iso
    bash-3.00$ digest -a md5 sol-10-u3-ga-sparc-dvd.iso
    6d046d5d95ac1cce58e742abcdd35238
    bash-3.00$ cat /etc/release
                           Solaris 10 11/06 s10s_u3wos_10 SPARC
               Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
                            Use is subject to license terms.
                               Assembled 14 November 2006

  • Why the recieving end cannot hear me from time to time I'm using a iphone4?

    My iphone works fine..... Except that people I'm talking to say they cannot hear me, I can hear them fine.

    Creative Cloud applications ask for serial number

  • Why is it that when I saved the waveform of my acquired signal into a wav file, the output waveform of my saved file turn out to be different from my input signal?

    Hi all,
    I am currently doing a heart sound analyzer project. I acquired signal using NI USB 6008 continuosly. My program is able to saved the acquired signal into a wave file. But when I browse open the saved file, the output waveform did not look the same as the acquired input signal and also the sound of the heartbeat captured cannot be heard from the loud speaker though I have saved the file as a wav file. I am not sure if the method i use to save the acquired data as a wav file is correct.  I have attach the print screen of the differences of the output I have notice and the program I have created. I would be glad if anyone here is able to troubleshoot my program.
    Thanks. 
    Attachments:
    heart sound analyzer.zip ‏257 KB

    Hi Brett Burger,
    Thanks for your reply. For your information, I have set the sampling rate as 10000 as for the sound format, I have set the bits per sample as 16 bit, the rate as 11025 and the sound quality as mono. I tried using your method by changing the sampling rate as 8K but still my program encounter the same problem.
    I wish to also create a button that is able to generate a preformatted report that contains VI documentation, data the VI returns, and report properties, such as the author, company, and number of pages only when I click on the button.  I have created this in my program, but I am not sure why is it not working. Can you help troubleshoot my program. Or do you have any samples to provide me. Hope to hear from you soon.
    Many thanks.
    Regards,
    min
    Attachments:
    Heart Sounds1.vi ‏971 KB

Maybe you are looking for

  • Facebook and YouTube app connection

    How do I reconnect the Facebook and YouTube apps to my internet, which is working fine, on my iPad air. The apps work fine on my 5c, but only recently started having network and connection issues.

  • Hide Buttons for Business Partner - CRM 5.0

    Hi,     I am trying to implement roles in CRM 5.0. I want some buttons like "Create person" and "Create Group" to be hidden for a certain user. I have used the Object B_BUPA_RLT but still it is not working. Any suggestions ? Regards Raj

  • PDF's no longer appear after download

    When I click on a .pdf link I get a black window while the file downloads but it is never rendered after the download completes. I have Adobe Reader installed as well as the Apple Preview. If I control click the link and "Download linked file as..."

  • Uninstalling iPhoto 6/Reinstalling iPhoto 5

    I have an old G4 400 running 10.4.5. I decided to update iLife 05 to 06, which was a mistake. It took up way too much disk space and iPhoto and iDVD were so sluggish that they were practically useless. Fortunately I had made a backup of the entire Pi

  • Flash content in Windows Media Player

    Can Flash Content play in the Windows Media Player? I don't see it as a supported file type but found this on the Microsoft site: ...you must have Adobe Flash 9 installed to play Flash content through Windows Media Player. If Flash 9 is not installed