Search:
Type: Posts; User: Danielle R
Search:
Search took 0.11 seconds.
-
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...
-
Hi all,
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...
-
Hi cancerinform, you are right, as ever ;)
I've added a creationComplete event and put the everything in a handler like this:
protected function...
-
Hi all,
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:...
-
Hi JAQAUN,
Thanks for that, of course that's it. I did also have to add metadata to the ItemRenderer like this:
<fx:Metadata>
[Event(name="change_year", type="events.ChangeYearEvent")]...
-
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:...
-
Hi all,
It's me again :) I've changed my strategy for this problem:...
-
Hi JAQUAN,
Thanks for your input. I've updated function set data like you said and the eventHandler like this:
protected function btn96ClickHandler(event:MouseEvent):void{
currentYear =...
-
Hi all,
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...
-
Hi all,
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...
-
Hi again,
I already did that. This is my ItemRenderer class as a whole:
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" ...
-
Hi cancerinform,
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...
-
Hi all,
I've managed to solve problem 1. I can now work with the data that comes into the renderer like this:
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]...
-
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...
-
Hi all,
I want to make a population pyramid like this one:...
-
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...
|
Click Here to Expand Forum to Full Width
|