Can anyone tell me if you can put actionscript inside of a
custom component? It throws errors anytime I try to do it.
I have a horizontallist component that is being populated
with an itemrenderer which holds an image component. The
horizontallist takes fifteen images and loads them into the
itemrenderers, creating a scrollable image slideshow.
Here is the code for the horizontallist:
First, the answer to yur question is yes, you can definitely
put AS code in custom components.
You are mixing in-line renderer syntax with component-based
syntax. You component renderer does not know anything about "data".
You need to override the set data() function, which will give you
access to the dataProvider item.
You need to look at an example of a custom ItemRenderer.
There are many, I have several on cflex.net.