| View previous topic :: View next topic |
| Author |
Message |
scellino02 AFC Space Invader

Joined: 29 May 2007 Posts: 83 Location: Italia
|
Posted: Tue Apr 29, 2008 5:42 pm Post subject: getTotalItems |
|
|
Hi to all,
I use this code to read the Total Items in myFlow:
| Code: | var eventListener = new Object();
eventListener.CONTENT_LOAD_PROGRESS = function(evnt){
var TotalItems:Number = myFlow.getTotalItems();
} |
In my flash I have this function:
| Code: |
I=0
function createQUAD(){
var eventListener = new Object();
eventListener.CONTENT_LOAD_PROGRESS = function(evnt){
var TotalItems:Number = myFlow.getTotalItems();
}
if(I<=TotalItems){
...
....
.....
..... |
bat not work!!!
because I can not recover the TotalItems value in my function?
Tanks |
|
| Back to top |
|
 |
nerfkhat AFC Team

Joined: 19 Nov 2007 Posts: 2105
|
Posted: Tue May 06, 2008 8:52 pm Post subject: |
|
|
Hi,
Try this instead. I believe that is a read only property.
| Code: |
function eventHandler(event:Event){
trace(myFlow.getTotalItems);
}
myFlow.addEventListener(FlowListEventEvent.XML_LOAD_COMPLETE, eventHandler); |
Thanks,
Nerath |
|
| Back to top |
|
 |
amogiz AFC Member
Joined: 18 May 2009 Posts: 5
|
Posted: Tue Sep 15, 2009 4:59 pm Post subject: How do you print This ? |
|
|
Sorry, but i could not find how to print the total numbers of item and the number of the selected item ?
Thanx a lot !!! |
|
| Back to top |
|
 |
|