circass
08-25-2010, 08:40 AM
Hello,
i am trying to write something like image gallery.
I create a layout system by using that kind of code :
<s:Scroller width="100%" height="100%" id="gridContainer">
<s:DataGroup width="100%" id="gridDeneme">
<s:itemRenderer>
<mx:Component>
<s:ItemRenderer>
<ns1:ImageViewer imageURL="{data.imageUrl}"
id="imageViewer"
bitmapScaleFactorMax="5"
bitmapScaleFactorMin=".05"
width="{data.width}" height="{data.height}"
x="0" y="0"/>
</s:ItemRenderer>
</mx:Component>
</s:itemRenderer>
<s:layout>
<s:TileLayout />
</s:layout>
</s:DataGroup>
</s:Scroller>
I am using adobe imageviewer component with some changes and i want to use its functions, so i have to access the imageViewer which is inside that:
<s:itemRenderer>
<mx:Component>
<s:ItemRenderer>
<ns1:ImageViewer imageURL="{data.imageUrl}"
id="imageViewer"
bitmapScaleFactorMax="5"
bitmapScaleFactorMin=".05"
width="{data.width}" height="{data.height}"
x="0" y="0"/>
</s:ItemRenderer>
</mx:Component>
<s:itemRenderer>
how can i get those imageViewers in runtime ?
for(var i:int = 0; i< gridDeneme.numChildren;i++)
{
gridDeneme.getChildAt(i).filters = null;
}
I am accessing childs of gridDeneme Datagruop but when i want to cast them to imageViewer it returns me null... I dont know what else i can do...
Thank you
Regards.
i am trying to write something like image gallery.
I create a layout system by using that kind of code :
<s:Scroller width="100%" height="100%" id="gridContainer">
<s:DataGroup width="100%" id="gridDeneme">
<s:itemRenderer>
<mx:Component>
<s:ItemRenderer>
<ns1:ImageViewer imageURL="{data.imageUrl}"
id="imageViewer"
bitmapScaleFactorMax="5"
bitmapScaleFactorMin=".05"
width="{data.width}" height="{data.height}"
x="0" y="0"/>
</s:ItemRenderer>
</mx:Component>
</s:itemRenderer>
<s:layout>
<s:TileLayout />
</s:layout>
</s:DataGroup>
</s:Scroller>
I am using adobe imageviewer component with some changes and i want to use its functions, so i have to access the imageViewer which is inside that:
<s:itemRenderer>
<mx:Component>
<s:ItemRenderer>
<ns1:ImageViewer imageURL="{data.imageUrl}"
id="imageViewer"
bitmapScaleFactorMax="5"
bitmapScaleFactorMin=".05"
width="{data.width}" height="{data.height}"
x="0" y="0"/>
</s:ItemRenderer>
</mx:Component>
<s:itemRenderer>
how can i get those imageViewers in runtime ?
for(var i:int = 0; i< gridDeneme.numChildren;i++)
{
gridDeneme.getChildAt(i).filters = null;
}
I am accessing childs of gridDeneme Datagruop but when i want to cast them to imageViewer it returns me null... I dont know what else i can do...
Thank you
Regards.