Tilted Forum Project Discussion Community

Tilted Forum Project Discussion Community (https://thetfp.com/tfp/)
-   Tilted Technology (https://thetfp.com/tfp/tilted-technology/)
-   -   Flash help (https://thetfp.com/tfp/tilted-technology/73020-flash-help.html)

silver26 10-18-2004 08:03 AM

Flash help
 
I am making a drop down menu in flash.

I have a small movie clip with the actionscript:

Code:

on(rollOver){
        gotoAndPlay("over");
}
on(rollOut){
        gotoAndPlay("out");
}

It simply fades in, or fades out the menu using frames that I have set in the movie clip.

This works fine, but when I try and add a button to the menu, it will either be unclickable (if inside the movie clip) or it will flip out, if it is laid on top of the clip.

Take a look

Any help would be much appreciated.

Ultimate_Gohan 10-18-2004 04:06 PM

Are you using an invisible button on the stopped frame only? Are there any actions in the frames other than the button? Have you thought about using the hitTest action?

limey 10-19-2004 04:20 AM

What you've done so far actually looks really cool - nice job.

silver26 10-19-2004 04:44 AM

Well guys, I took the rollOut code off and put an invisible button around the the menu that makes the menu disappear on rollOver, and it seemed to do the trick.

Ultimate_Goham - I tried the hitTest thing, and couldn't really get it working. I'm an amateur with the actionscript. I might pick up an actionscript book, got any suggestions?

Stug 10-19-2004 05:41 AM

Flash help...
 
What you've done works well until you place another button in the movie and then the rollOver & rollOut commands get confused...

I found from bitter experience that you need to assigned a variable (in my version: VariableNamedWhatever) to make this work:

---Code for the Invisible button---

on (rollOver) {
VariableNamedWhatever = "1";
tellTarget ("over") {
play();
}
}

on (rollOut) {
VariableNamedWhatever = "2";
gotoAndPlay(3);
tellTarget ("out") {
stop();
}
}

---Code for Frame 3---

if (Number(VariableNamedWhatever) == 1) {
tellTarget ("over") {
play ();
}
}

Hope this helps...?

silver26 10-19-2004 06:09 AM

Why didnt I think of that *smacks head*

Thanks Stug, that will definitely come in handy for the next time.

Ultimate_Gohan 10-20-2004 01:47 PM

You could do what stug said, I just thought that using a blank movie clip or any movie clip that would trigger the animation. I could go into it more if you like or just use what stug said. That works to.


All times are GMT -8. The time now is 02:36 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76