Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 10-18-2004, 08:03 AM   #1 (permalink)
Insane
 
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.
__________________
I know I was born and I know that I'll die, the inbetween is mine.
silver26 is offline  
Old 10-18-2004, 04:06 PM   #2 (permalink)
Upright
 
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?
Ultimate_Gohan is offline  
Old 10-19-2004, 04:20 AM   #3 (permalink)
Insane
 
Location: not there
What you've done so far actually looks really cool - nice job.
limey is offline  
Old 10-19-2004, 04:44 AM   #4 (permalink)
Insane
 
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?
__________________
I know I was born and I know that I'll die, the inbetween is mine.
silver26 is offline  
Old 10-19-2004, 05:41 AM   #5 (permalink)
Crazy
 
Location: UK
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...?
__________________
and so ends the thought process for another day...
Stug is offline  
Old 10-19-2004, 06:09 AM   #6 (permalink)
Insane
 
Why didnt I think of that *smacks head*

Thanks Stug, that will definitely come in handy for the next time.
__________________
I know I was born and I know that I'll die, the inbetween is mine.
silver26 is offline  
Old 10-20-2004, 01:47 PM   #7 (permalink)
Upright
 
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.
Ultimate_Gohan is offline  
 

Tags
flash


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 06:10 PM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, 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