Fmx - Arggg

<:} First off I want to say happy new years to all the people here a kirupa!

Now with that being said, I need someone to give a second look at my problem. I know its something little that I’m just overlooking.

In the “movie2” layer of this .fla is where my problem is. I’m passing a parameter, which is true or false, into the mcTwo movieclip. I’m also tracing the output and I can see that both of my variables are changing to true. So when the second variable is passed the “true” parameter then it should continue to play mcTwo.

BUT IT DOESN’T :crazy:

Can someone check this file out before I lose it.
Thanks

Maybe I am overlooking something small, but this problem is definitely confusing me.

this.gotoAndPlay(5); does <B>not</B> work.

<I>but</I>

play(); <B>does</B> work, but does not stop the movie according to the stop action at the end.

So with that being said I had to use this in place of the gotoAndPlay action…

play();
    if (this._currentframe == this._totalframes) {
	stop();
    }

This plays your movie, then check to see if it has reached the last frame yet, and if it has, then it stops your movie.

At this forum we like to teach why things work the way they do, but really, I have no clue why your gotoAndPlay statement doesn’t work, but even weirder is that I have no clue why your stop(); action at the end doesn’t work either.

I´ve looked to jargreen file and I´ve found a lot of errors, I fixed them (see attached file).

Yeah, I didn’t scope out the whole .fla, wasn’t really up to it, and didn’t have much time to.

I just worked on the gotoAndPlay area only.

Thanks though guig0, can you explain what he did wrong and why it was wrong so he knows for future reference?

Maybe comment it in the .fla file if you don’t want type it here.

jargreen: you got good coding skills, but I think you can use some tutes on variables and stuff. You are using too many variables, and you´re not adressing them correctly, first thing: read a tute about variables scope .

=)

good enough :slight_smile:

And as I said, I didn’t have much time to go over the .fla, but just fix the gotoAndPlay part.

I gotta go now… laterz :wink: And thanks again guig0.

:slight_smile:

Thanks for the coding compliment…but I’m by no means a coder. I actually can’t stand doing it but I’ve taken classes in college that didn’t teach me much but I have been able to piece things together when I need to.
That’s probably why my code is “all over the place”

Thanks for the help and if you know where I can find a tut on variables then point me in that direction :hangover: