Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Actionscript

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

Name: Anonymous 2011-01-06 0:13

How can I do 1,2 without breaking 5?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List