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

Pages: 1-

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-05 23:51

>>1
1. Post your actual code, not this bullshit.

2. Is this
   if(nextImageExists){
supposed to be a function call?

3. Put your else block inside { }. ActionScript is fucked up enough without having to worry about how your code is getting parsed.

4. Put in some trace() calls or something.

5. Fuck off.

6. IHBT

Name: Anonymous 2011-01-06 0:13

How can I do 1,2 without breaking 5?

Name: Anonymous 2011-01-06 5:28

>>3
Do 1, do 2, do 3, do 4 then do 5.

Name: Anonymous 2011-02-18 19:58


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