views:

292

answers:

1

I have and list compontent with an extrunal itemrenderer. My itemrender is a module that i would like to load in at runtime.

I have used moduleloader tag but it doesn't display anthing. if i don't use the moduleloader tag but the instead() it displays the content. does anyone know how i must do this?

Application file with list component

<mx:XMLListCollection id="myXC"
        source="{catagories.lastResult.product}"/>

my module

thanks DJ

A: 

The issue may be that you cannot load several instances of a module. The way to get around this is by altering the url to make Flex think each call is unique.

Try replacing the ModuleLoader code with

<mx:ModuleLoader url="{'module.swf?' + Math.round(Math.random() * 10)}"/>

susichan