TypeError#1009 Want to have a listener on a chart.

TypeError: Error #1009: It is not possible to get a zero
pointer object.
I want to have a listener on a chart. When I click on it, a
number appears in a box.
I marked the coding which makes the TypeError with X below.
I just wonder, it works in a small programm, but in mine not?
Somebody can tell why?
Thanks a lot!
Ezachiael
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" width="668" height="600"
creationComplete="send_data()" alpha="1.0"
backgroundGradientAlphas="[1.0, 1.0]" cornerRadius="5"
backgroundGradientColors="[#FFFFFF, #FFFFFF]" borderColor="#FFFFFF"
>
<mx:Script>
<![CDATA[
import mx.charts.events.ChartEvent;
import mx.charts.events.ChartItemEvent;
private function send_data():void {
// blogday.send();
// blogweek.send();
blogmonth.send();
// proj1.send();
// intensity7.send();
// intensity1.send();
// intensity30.send();
X init2();
private function send_day():void {
columnchart1.dataProvider=blogday.lastResult.TAGE.DAYS.TAG;
dg.dataProvider=blogday.lastResult.TAGE.DAYS.TAG;
private function send_week():void {
columnchart1.dataProvider=blogweek.lastResult.TAGE.DAYS.TAG;
dg.dataProvider=blogweek.lastResult.TAGE.DAYS.TAG;
private function send_month():void {
columnchart1.dataProvider=blogmonth.lastResult.TAGE.DAYS.TAG;
dg.dataProvider=blogmonth.lastResult.TAGE.TAG;
private function proj_day():void {
pc2.dataProvider=proj1.lastResult.TAGE.DAYS.TAG;
private function int7():void {
lc.dataProvider=intensity7.lastResult.TAGE.DAYS;
lcca.dataProvider=intensity7.lastResult.TAGE.DAYS;
wb.dataProvider=intensity7.lastResult.TAGE.DAYS;
wbca.dataProvider=intensity7.lastResult.TAGE.DAYS;
private function int30():void {
lc.dataProvider=intensity30.lastResult.TAGE.DAYS;
lcca.dataProvider=intensity30.lastResult.TAGE.DAYS;
wb.dataProvider=intensity30.lastResult.TAGE.DAYS;
wbca.dataProvider=intensity30.lastResult.TAGE.DAYS;
private function int1():void {
lc.dataProvider=intensity1.lastResult.TAGE.DAYS;
lcca.dataProvider=intensity1.lastResult.TAGE.DAYS;
wb.dataProvider=intensity1.lastResult.TAGE.DAYS;
wbca.dataProvider=intensity1.lastResult.TAGE.DAYS;
// Define event listeners when the application initializes.
X public function init2():void {
X
columnchart1.addEventListener(ChartItemEvent.ITEM_DOUBLE_CLICK,
myListener);
// Define the event handler.
X public function myListener(e:ChartItemEvent):void {
X ti1.text = "Test";
]]>
X <mx:Form>
X <!--Define a form to display the event
information.-->
X <mx:FormItem label="Expenses:">
X <mx:TextInput id="ti1"/>
X </mx:FormItem>
X </mx:Form>
...

Almost nothing in InDesign happens "automatically" ...
To get a footer, you have to draw it yourself, preferable on a master page. If you want different footers for odd and even, make sure your document is set up using Facing Pages, so you get TWO master pages. That's right: one for Left (even!) and one for Right.

Similar Messages

  • I have got a ! next to some songs that i have been listening to now it says these song have been moved or delete i have done neither  what can i do i want my music back i lost 4 on one album that i bought

    I have got a ! next to some songs that i have been listening to, now it say that music has either been moved or deleted i did nether what has happened to my music i bought a full album i want my full ablum back please any help here

    HI,
    Go here. iTunes: Understanding the Symbols Next to Songs
    Possible fix here. http://www.pcadvisor.co.uk/blogs/index.cfm?blogid=4&entryid=1794
    Can you select "all" by holding down the Shift key and drag?
    Carolyn

  • HT1725 I downloaded a full cd album from iTunes it said it had been downloaded but when I listened to them it only played a small part of each song then it stopped. What do i do? I don't want to have to download them again. Thanks

    I downloaded a full cd album from iTunes it said it had been downloaded but when I listened to them it only played a small part of each song then it stopped. What do i do? I don't want to have to download them again. Thanks

    Other people have been having similar problems with songs over a number of days, I assume that there has been a problem with Apple's servers.
    Depending upon what country that you are in (music can't be re-downloaded in all countries) then try deleting the incomplete tracks from your iTunes library and redownload them via the Purchased link under Quick Links on the right-hand side of the iTunes store home page on your computer's iTunes : re-downloading.
    If you aren't in a country where you can re-download music or if they re-download in the same state then try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find those songs and use the 'Report a Problem' link.

  • I have two ip address on my machine,I want to directory server listen in one of the ip address(port 389) .what can i do

    i have two ip address on my machine,I want to directory server listen in one of the ip address(port 389) .what can i do,now it is listen on 0.0.0.0

    Hi,
    Can you please show the current link? (the docs.iplanet.com is no longer valid)
    I also have multiple ip addresses on my machine. When I login into the admin server, it always thinks it's one of the secondary ip addresses, which aren't granted access rights.
    For example, if I go to configure a different port number for the admin server, it won't let me, because it thinks I am on one of the ip addresses which aren't allowed to access it.
    Thanks.

  • How do I make a String have a Listener?

    I want to be able to have a listener for a String's change event. Is there such a thing? How would I do it?
    i.e. If
       String myString = "";
    was changed to
       myString = "New";
    Could I have a listener that was registered to capture that event?

    You can implement a "wrapper" for the String which only allows you to change the string using its "setter". The wrapper can then register the listeners and fire an event when the string is changes (using the setter). The wrapper may look something like the following
    class MyWrapper {
    private String myString;
    private Vector listeners;
    public void setString (String myString) {
    this.myString = myString;
    fireValueChanged();
    public String getString() ...
    public addListener(ValueChangedListener listener)...
    private fireValueChanged()...
    ~ mash ~

  • I want to have JMenu on a Side bar(JPanel) with sub menu.

    I want to have the JMenu on the sidebar(which is a
    JPanel placed at WEST). This JMenu shall have the sub
    menu with it. I got the JMenu on the Sidebar but when
    i take mouse over(or click) the MenuItem it is
    displaying the sub Menu. I am attaching the my code.
    Can anyone please let me know why it is not displaying
    the sub menu and what should be added to my code to
    work?
    Thanks in Advance(see below for code)
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class SideBarMenu extends JFrame {
         JMenuItem menuItem1,menuItem2;
         JMenu books, softwares, tools;
         JSeparator horizontal1, horizontal2,horizontal3;
         JPanel p1, p2;
          public static void main(String[] args) {
           SideBarMenu vAR =  new SideBarMenu();
         public SideBarMenu() {
              super("Side Bar");
              setSize(500,500);
              setLocation(150,100);
              setResizable(true);     
              Container content = getContentPane();
              p1 = new JPanel(new BorderLayout());
              p2 = new JPanel();
              p2.setLayout(new GridLayout(20,1));
              p2.setBorder(BorderFactory.createLineBorder(Color.black,1));
              books = new JMenu("Books");
              horizontal1 = new JSeparator( JSeparator.HORIZONTAL );
              softwares = new JMenu("Softwares");
              horizontal2 = new JSeparator( JSeparator.HORIZONTAL );
              tools = new JMenu("Tools");
                                    horizontal3 = new JSeparator( JSeparator.HORIZONTAL );
              //sub Menu for menu "books"     
              menuItem1 = new JMenuItem("Java");
              books.add(menuItem1);
              menuItem2 = new JMenuItem(".Net");
              books.add(menuItem2);
              //sub Menu for menu "Softwares"          
              menuItem1 = new JMenuItem("Java");
              softwares.add(menuItem1);
              menuItem2 = new JMenuItem(".Net");
              softwares.add(menuItem2);
              //sub Menu for menu "tools"          
              menuItem1 = new JMenuItem("Java");
              tools.add(menuItem1);
              menuItem2 = new JMenuItem(".Net");
              tools.add(menuItem2);
              p2.add(books);
              p2.add(horizontal1);
              p2.add(softwares);
              p2.add(horizontal2);
              p2.add(tools);
              p2.add(horizontal3);
              p1.add(p2,BorderLayout.WEST );
              content.add(p1);
              setVisible(true);
    }

    Hi Ashwin,
    I saw the above code which is approaching my requirement... Thats cool man. Taking that as reference i modified it to make it what i want. The code i have modified and which is very closer to my requirement is attached below. I have set the Windows Look and Feel, because its easy to track my problems with it. The problems am having are:
    1) When the mouse is removed from the menu its submenu is not disappearing.
    2) When i take the mouse over the menu its making the name(Books/softwares/tools) of the menu invisible.
    3) When i take the mouse over the sub menu items they are not getting highlighted, which means they are not listening
    I hope u will solve these issues for me...
    Also make the menu items work ie., just make them print when i click submenus like "Clicked books->java" and "clicked softwares->.Net" so that i get an idea of events....
    Many Thanks .
    Here we go,
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Container;
    import java.awt.GridLayout;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseMotionAdapter;
    import javax.swing.BorderFactory;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JPanel;
    import javax.swing.JPopupMenu;
    import javax.swing.JSeparator;
    import javax.swing.UIManager;
    public class SideBarMenu4 extends JFrame
        JMenuBar menuBar;
        JPopupMenu popup = new JPopupMenu();
        JMenuItem menuItem1, menuItem2;
        JMenu books, softwares, tools;
        JLabel mainMenu = new JLabel("Main Menu");
        JMenu subMenu;
        JSeparator horizontal1, horizontal2, horizontal3;
        JPanel p1, p2;
        public static void main(String[] args)
            SideBarMenu4 vAR = new SideBarMenu4();
        public SideBarMenu4()
            super("Side Bar");
            setSize(500, 500);
            setLocation(150, 100);
            setResizable(true);
            setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
            Container content = getContentPane();
            p1 = new JPanel(new BorderLayout());
                        try {
              //MetalLookAndFeel.setCurrentTheme(new MacMetricsTheme());
                 UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");            
            } catch(Exception e) {}
            p2 = new JPanel();
            p2.setLayout(new GridLayout(30, 1));
            p2.setBorder(BorderFactory.createLineBorder(Color.black, 1));
            books = new JMenu("Books");
            horizontal1 = new JSeparator(JSeparator.HORIZONTAL);
            softwares = new JMenu("Softwares");
            horizontal2 = new JSeparator(JSeparator.HORIZONTAL);
            tools = new JMenu("Tools");
            horizontal3 = new JSeparator(JSeparator.HORIZONTAL);
            // sub Menu for menu "books"
            menuItem1 = new JMenuItem("Java");
              popup.add(menuItem1);
            //books.add(menuItem1);
            menuItem2 = new JMenuItem(".Net");
              popup.add(menuItem2);
              popup.setPopupSize(100,50);
            menuBar = new JMenuBar();
            menuBar.setLayout(new GridLayout(0, 1, 5, 5));
            books.add(popup);
              books.setComponentPopupMenu(popup);
            books.addMouseMotionListener(new MouseMotionAdapter(){
                public void mouseMoved(MouseEvent e)
                     popup.show(books, 88, 0);
              softwares.add(popup);
              softwares.setComponentPopupMenu(popup);
            softwares.addMouseMotionListener(new MouseMotionAdapter(){
                public void mouseMoved(MouseEvent e)
                     popup.show(softwares, 88, 0);
              tools.add(popup);
              tools.setComponentPopupMenu(popup);
            tools.addMouseMotionListener(new MouseMotionAdapter(){
                public void mouseMoved(MouseEvent e)
                     popup.show(tools, 88, 0);
            // p2.add(menuBar);
            p2.add(books);
              p2.add(horizontal1);
              p2.add(softwares);
              p2.add(horizontal2);
              p2.add(tools);
              p2.add(horizontal3);
            p1.add(p2, BorderLayout.WEST);
            content.add(p1);
            setVisible(true);
    }

  • I want to have Automator burn my latest podcasts

    I want to have Automator burn my latest podcasts into an audio CD so that I can listen to my podcasts while I drive to work. However the "BURN CD" action in automator only burns MP3 files in a data CD format. Most cars, like mine, have a CD player that requires an audio CD. Why can't Automator burn an audio CD? Or can it? What am I doing wrong?

    Does your CD player play MP3s, or just real AIFFs?
    Have you tried telling iTunes to burn a Music CD?

  • HT1420 How can I get past 5 authorized computers when we have more computers, ipads, iphones than allowed. I want to have parental control by sharing 1 apple ID with one account?

    We have multiple computers, laptops, iphones and ipad in our home. We have kept one account for iTunes in order to monitor what my family downloads for parental monitoring. How can I get approval or allow for more devices to be 'authorized' to purchase from iTunes? I don't want to have to have more than one account that I have to monitor - technology is overwhelming enough to control with all the hackers and distasteful things on the web.

    Authorization applies ONLY to computers.
    ipads/ipods/iphones/apple tvs are NOT authorized at all.

  • How do I delete stored email addresses in my iphone? When sending photos, I don't want to have certain email addresses  "popping up" from the internal memory, I've deleted my entire "Contact" list but they still appear.  Help please!

    How do I delete stored email addresses in my iphone? When sending photos, I don't want to have certain email addresses  "popping up" from the internal memory, I've deleted my entire "Contact" list but they still appear.  Help please!

    As with the Mail app on a Mac, the iPhone's Mail app stores all email recipients in a list of previous recipients which is separate from the address book or contacts. The email address autofill feature when addressing an message pulls from Contacts and from the list of previous recipients.
    Different from the Mail app on a Mac, there is no access to the list of previous recipients with iOS on an iPhone, iPod Touch, or iPad to remove a previous recipient from the list, or to add a previous recipient to the address book or contacts that is not already entered - not at the present time anyway.
    The only way to purge the list of previous recipients at the present time is by restoring your iPhone with iTunes as a new iPhone or not from your iPhone's backup, which will start being re-populated again with every sent message.

  • I just bought an iPod nano 7th gen.  When I connect it to my laptop, it doesn't recognize the ipod.  I tried charging it, but now it won't turn on when i push the power button.  Please help me!  I don't want to have to return it.

    I just bought an iPod nano 7th Generation.  When i connect it to my laptop, it doesn't recognize the ipod.  I tried charging it but when I hold the power button, nothing happens.  I don't want to have to return it.  Please help me!

    Hi dnix257,
    Welcome to the Support Communities!
    What version of the Windows Operating System do you have?
    What version of the iTunes software?
    The troubleshooting steps below may help you with this:
    Apple - Support - iPod nano - iTunes Troubleshooting Assistant
    http://www.apple.com/support/ipodnano/assistant/itunes/#section_1
    iPod not recognized in My Computer and in iTunes for Windows
    http://support.apple.com/kb/TS1369
    Cheers,
    - Judy

  • I want to have application Siri in my phone. Help me. Thanks you

    Hello. I want to have an application Siri in my phone please. Help me please ! Thanks you so much

    There is no Siri application, and Siri is not supported with an iPhone 4. You need a 4S or later.

  • What do i need to connect my mac book pro to the tv with the thunderbolt on the mac to hdmi? I have the newest macbook pro. I'm wanting to have the best picture I can get from my 1080p tv. thanks

    what do i need to connect my mac book pro to the tv with the mac's thunderbolt port to hdmi? I have the newest macbook pro. I'm wanting to have the best picture I can get from my 1080p tv. thanks

    Thanks Community! I solved the problem. In fact it was not a problem but lack of understanding. These guys at Apple are way ahead in thir thinking. I will try to explain as short as I can.
    In Lion, ihe Prefferences/Display show only two choices: 6-7 steps of resolution and some color tab. No two screens, no two display to overlap, nothing for us to do. "That was the problem"! Everything is automatic.
    When I connected the HDMI cable to the Miniport into a T-bolt slot, the TV screen showed the "spiral galaxy" how Zyriab is calling it. In fact he gave me the best clue. That shows the connection is good. But where is the Mac Book image?
    You have to drag it to the right out of the Mac Book display area, and "voila!" it will continue on the TV screen. The same with the mouse pointer, push it out ofthe Mac Book display area and you see it on the TV sreen. Good image, you can keep the max resolution, etc. The sound is still on the Book's speakers. I have to figure that out.
    Thank everybody, especialy Zyriab, ne was the closest.
    High regards to everybody

  • I have an iTunes account with my own music library.  My wife wants to have her own music library.  Is there a way of setting up a sub account for her, or do I have to set of husband playlists and a separate set of wife playlists?

    I have an iTunes account with my own music library.  My wife wants to have her own music library.  Is there a way to set up a sub account for her, or do I have to set up a set of husband playlists and a set of wife playlists?

    Sorry, but that's not possible.
    You can share iTunes libraries on a network >  iTunes: Setting up Home Sharing on your computer

  • I have itunes on one computer. my account says that I have 2 computers authorized. I want to have itunes on both users accounts on my computer. how do I do this? thanks for any help!

    I have itunes on my computer in my main user account. I want ot have the same itunes on the other user account on my computer - under the apple account info- it says that I already have 2 computers authorized - how do I find out which 2 they are talking about?  the only button nearlby is one that says to 'deauthorize all' etc.... thanks,. I have a pc.

    You can only deauthorize all your itunes computers once a year, so I would avoid clicking that at the moment.  Log onto the 2nd user, and open itunes.  Go to Store> Authorize This computer.
    As an alternative, you could point the 2nd user itunes library to the primary itunes folder.  So both users would use the same itunes folder.  You can do this by holding shift, clicking itunes icon.  There should be an option to browse for an existing library.  Locate the main computers itunes folder. (Most likely under: C:\Users\*Account name*\Music where *Account name* would be your main user accounts name.
    Good luck!

  • How do I transfer my bookmarks from one computer to another? I have Firefox Home on my phone and I can get them there, but I want to have the same bookmarks on my home computer as I do on my work computer.

    How do I transfer my bookmarks from one computer to another? I have Firefox Home on my phone and I can get them there, but I want to have the same bookmarks on my home computer as I do on my work computer. If I have a user name then where do I sign into Firefox, it should be that easy but I can't seem to figure it out.

    Hey susanneyes,
    Sounds like you want to set up Firefox Sync. This will allow you to keep all of your instances of Firefox synchronized. Just follow the steps in [https://support.mozilla.com/en-US/kb/what-firefox-sync?s=sync&r=0&as=s this article] and you'll be set.
    Hopefully this helps!

Maybe you are looking for