Solved

Flash builder 101 tutorial

Posted on 2012-04-10
3
409 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Deleting Objects in flex 1 357
Adobe Error Message - kenlly.dll 7 666
labelFunction 3 267
air/as3 : is there a way to simulate TouchEvents? 1 394
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…
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 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

10 Experts available now in Live!

Get 1:1 Help Now