Solved

Flash builder 101 tutorial

Posted on 2012-04-10
3
420 Views
Last Modified: 2012-04-10
i'm going through this (in an attempt to my boss to justify using Flash Builder) -
http://www.adobe.com/devnet/flex/articles/build_first_dashboard.html

and i'm hitting a hurdle with

 
	protected function piechart1_itemClickHandler(event:ChartItemEvent):void
			{
				// TODO Auto-generated method stub
				responderSales.token = companyService.getAllCompanySales(event.hitData.item.region);
				var myArr:Array = [];
				myArr[event.hitData.chartItem.index] = 0.2;
				series.perWedgeExplodeRadius = myArr;
			}

Open in new window


Access of undefined property series - but I have this

      <mx:series>
                  <mx:PieSeries displayName="Series 1" nameField="region" field="totals"/>
            </mx:series>

what's it complaining about?
0
Comment
Question by:blue-genie
  • 2
3 Comments
 
LVL 37

Accepted Solution

by:
CyanBlue earned 500 total points
ID: 37827096
Yo!!  :)

I am sure you have figured it out already by now, but that series.perWedgeExplodeRadius is looking for an instance called series which is normally defined with 'id' attribute in the MXML document.
So, as long as you add an id attribute like this, you can avoid the error.
<mx:PieSeries id="series" displayName="Series 1" nameField="region" field="totals"/>

Open in new window

The 'series' in this line, </mx:series>, means the same thing as the package name on regular AS3 project.

CyanBlue
0
 
LVL 39

Author Comment

by:blue-genie
ID: 37827484
hey CB - i think these people create tutorials to confuse poor souls like me :-)
I can't believe i had so much resistance to flex - connecting to a webservice is so easy!! I like it.

I tried creating random id attributes all over the place but i realise now i was being a moron - case of going through the motions without thinking.
got it working perfectly now :-)

tx as always.
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 37827569
Yeah. I created a couple of tutorials just for that purpose. :p

My first real project was basically just that where I have built wcf services that flex frontend consumes.

Have fun. :)

CyanBlue
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now