PDA

View Full Version : Effects inside repeater


Pipan
10-06-2008, 11:34 PM
Im working on a little gallery where I want the following on each thumbnail:


Clickable masked thumbnail
Reflection
Infotext
Visible loader



My main problems are:

Which Reflection-class can I use? I've tried a few with strange errors saying I cant use it on an array, given only when ive tried it inside the repeater.


What part to group into a component?


How to mask it? (The real pic will be used, but cropped/masked on the thumb).


Where to put the locic for a visible loader? Examples?


If I use a component for each item, howto pass in the data.variable from the repeaters dataprovider?


The listing will be done with a repeater inside a HBox that eventually will get a custom smooth scroller. The thumblist will be horizontal.

Now, It would be great if someone with a minute over could give me a really simplified example of how this should be done.
If you can help me with any of the problems, im more than happy. Im not looking for a working example here, just a couple of lines to get me over the treshold.

The main problem I have with this is the structure.

Peter Cowling
10-08-2008, 12:36 PM
Hi Pipan,

I think a good start would be this guide.
http://www.adobe.com/devnet/flex/quickstart/using_the_repeater/

It starts off talking about repeaters, but this is not really what you need. I would checkout the item renderer sections as being better suited to your requirements.