Name: Anonymous 2011-01-05 23:34
I have the following code
function nextImage(evtObj:MouseEvent):void{
if(nextImageExists){
...
...
}
else
...
...
}
function nextImageExists():Boolean{
if(imgValue>=5)
return false
else
return true
}
And it ALWAYS goes to the else statement.
Im new to actionscript and I dont understand whats wrong.
The value of imgValue is initially 1, so it shouldn't be jumping to the else statement the first 4 times
function nextImage(evtObj:MouseEvent):void{
if(nextImageExists){
...
...
}
else
...
...
}
function nextImageExists():Boolean{
if(imgValue>=5)
return false
else
return true
}
And it ALWAYS goes to the else statement.
Im new to actionscript and I dont understand whats wrong.
The value of imgValue is initially 1, so it shouldn't be jumping to the else statement the first 4 times