Advertisement

06.03.2008 at 03:39PM PDT, ID: 23454998
[x]
Attachment Details

How to detect when mx:Repeater finished in FLEX?  updateComplete, valueCommit does not get called

Asked by shahnweb in Macromedia Flash

Tags: Adobe, FLEX, 2.0

I have the following mx:Repeater code that draws thumbnail images, and would like to call a function that draws the first of the images(showImg here as a test hook) in other panel after displaying all the thumbnail images.  

The problem is neither updateComplete or valueCommit is not get called(trace does not print any thing).  How do you detect the event when Repeater finishes it's iteration?

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
private function showImg():void {
   trace("showImg"); // this does not print!! why?
}
 
...
 
 
<mx:Tile  width="100%" height="100%" 
		paddingTop="10"  verticalGap="10" paddingLeft="10" paddingRight="10"
		direction="horizontal"
		id="thumbTile">
<mx:Repeater id="thumbRep" dataProvider="{thumbMetaColl}" valueCommit="showImg()"> 	
	<mx:VBox>
            <mx:Image 
            	width = "160" height="100" 
            	horizontalAlign = "center"
            	scaleContent="true" maintainAspectRatio="false"
            	source="{thumbRep.currentItem.fileName}"
            	toolTip="{thumbRep.currentItem.GPS}"
            	doubleClickEnabled="false"
            	click="doImgClick(event)"
            	data="{thumbRep.currentItem.imgId}"	
            />
         </mx:VBox>   	
</mx:Repeater>   
</mx:Tile>
[+][-]06.03.2008 at 07:24PM PDT, ID: 21706237

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Macromedia Flash
Tags: Adobe, FLEX, 2.0
Sign Up Now!
Solution Provided By: julianopolito
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628