Hi all,
I've found a way to tackle this problem. First ItemRenderers are completely separate entities, they know nothing of each other so I can't get the widest item in the way I tried. I've now set...
Hi cancerinform,
Yes the icons are outside because I'm still testing. I'm struggling on with the width issue. My idea now is that if I can get the maximum width of the pyramid I can calculate the 0...
Well, when I trace it in the main mxml, like you do in your example it outputs 0... You say: but don't place that file in the data folder. What is the data folder? I've now created a separate package...
Hi cancerinform,
Thanks for the example. I've implemented it. The x value of the parent component in the main mxml is 0 (which I knew). So it uses 0 in the itemRenderer and the effect is exactly the...
OK, I've got a little more insight into the problem now. The MenPiramid.x is also the x of the icon rows. The ItemRenderer only "knows" about itself. So what I need to know is the x value of the...
I'm building a population pyramid in Flex (view this file: 73909 for one half of the pyramid). The rows of icons are placed in the right position at after loading. The red icons represent...
I suppose I'm overlooking something very basic, but I can't get something very simple to work.
I try, for example, to access a Graphic from the script block in Flex like this:...
Thanks for your help. This doesn't seem the right approach. I'm trying a custom event now but I'm encountering some problems with that, please view this thread if you want to help:...
So far I've had no replies so I would like to explain a little more and add some code. I've been doing some more searching and I think I just need an eventlistener in my ItemRenderer but I...
I suppose my problem is pretty basic but after searching for some time I can't find a solution. In my application I load 1 data file in the main mxml. After it loads some processing is...
It sure is!
I'd like to add that I'm using a slightly different approach, I'm using the an image fill for a rectangle:
<s:Rect id="backgroundRect" left="0" right="0" top="0" bottom="0" >
...
I had considered both your suggestions. I thought it was a bit silly to fill array with individual values, but I understand now that is the way it should be done. I need to animate the visualisation...
The values shouldn't be even because I want to display parts of icons (mask them for example) to show the remainder.
I'm already working with the datagroup component, view...
What about this: http://code.google.com/p/facebook-actionscript-api/
The new Adobe ActionScript 3 SDK for Facebook Platform API, fully supported by Facebook and Adobe, makes it easy to build...
Thanks very much cancerinform. MATE looks like a very robust solution. After continuing with the script I realised I don't need to do any calculations in the main application but I can pass the data...
Sure the data loads. I can create the DataProxy.populationMen ArrayCollection is created. I can access it in the mxml file for example here:
<s:FormItem...
Hi all,
I'm struggling with a Flex 4.6 application that has to notify the main application when data is parsed. I think I should be using a custom event but I don't quite know where to start. At the...
Haha, I told you it was unbelievable :)
As for the loading bit. The alpha is added after the load finishes because it's in the load complete handle. I wouldn't know of any other way of checking...