Forum Moderators: open

Message Too Old, No Replies

Movieclip Button [onpress issues]

         

foxhound_hq

4:56 pm on Jun 27, 2006 (gmt 0)

10+ Year Member



Greetings. =D

So, here's the problem...

________________________________
CODE:

this.FHQ.onRollOver = function ()
{FHQ.gotoAndPlay("_over");

}

this.FHQ.onRollOut = function ()
{FHQ.gotoAndPlay("_out");

}

this.FHQ.onPress = function ()
{gotoAndPlay("_press");

}

________________________________

As you can see, I'm trying to create some sort
of a movieclip button, like the one I saw in that
lenghty learnflash's vid tut...

first two scripts work fine...
but this one:

******

}

this.FHQ.onPress = function ()
{gotoAndPlay("_press");

}

******

Is KILLING me...

dunno how to describe it...
It just doesn't react when I click on the
object...
well...it does skip back to the first frame though...
-.-

here's the screenshot...

[i3.photobucket.com...]

Thx in advance. :P

Two Bass Hit

4:20 am on Jun 28, 2006 (gmt 0)

10+ Year Member



instead of onPress, use onRelease and see if that works.

foxhound_hq

9:13 am on Jun 28, 2006 (gmt 0)

10+ Year Member



Thx alot, it does work,
but now I have another problem...

[i3.photobucket.com...]

As you can see, after "release" and, ofcourse, rollout, it does the "onrollout" action...
which I don't want to activate after "release".

Any ideas?

CODE:
========================
this.FHQ.onRollOver = function ()
{FHQ.gotoAndPlay("_over");

}

this.FHQ.onRelease = function ()
{FHQ.gotoAndPlay("_press");

}

this.FHQ.onRollOut = function ()
{FHQ.gotoAndPlay("_out");

}
========================

Two Bass Hit

10:25 pm on Jul 12, 2006 (gmt 0)

10+ Year Member



Sorry for the lagging reply, I haven't checked WW in a few weeks...

It looks like your overstates section, (called "_over"), includes both the doors opening and closing. Either that or you didn't put a stop(); action at the end of the "_over" section. If that is the case, the playhead will continue to play until it sees a stop(); action or gotoAndPlay gotoAndStop, etc... So my first advice would be to make sure you have the stop actions placed in the appropriate frames. Then make sure your over state does not also include frames of the doors closing. Hope that helps...