Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Ezachiael
Ezachiael
Offline

Badges

Badges
0

Accepted Solutions

Accepted Solutions
0

Likes Received

Likes Received
0

Posts & Comments

Posts & Comments
1

Discussions

Discussions
1

Questions

Questions
0

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by Ezachiael
Customize the badges you want to showcase on your profile
TypeError#1009 Want to have a listener on a chart. - Adobe LiveCycle 25-08-2008
TypeError: Error #1009: It is not possible to get a zeropointer object.I want to have a listener on a chart. When I click on it, anumber 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 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 {Xcolumnchart1.addEventListener(ChartItemEvent.ITEM_DOUBLE_CLICK,myListener); } // Define the event handler.X public function myListener(e:ChartItemEvent):void {X ti1.text = "Test"; } ... X X X X X X ...

Views

215

Likes

0

Replies

0