473,320 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Slide Out menu link help.(code included)

Here is what I'm trying to achieve:

I'm making a site that is basically a big slide show which is insignificant, but it has to be really minimalistic. So what I did was make an invisible button that is over the entire 900x400 rectangle. Basically what I want and as far as I got was getting it so that when you scroll over the button, the blank menu drops down. And when you scroll off it retracts and goes back up. Here is my code

//this is the code on the button//

on (rollOver, dragOver) {
_root.roll_mc.f = true;
}
on (rollOut, dragOut, releaseOutside) {
_root.roll_mc.f = false;
}

//this is the code on the movie clip//

onClipEvent (load) {
stop();
f = false
}
onClipEvent (enterFrame) {
if (f == true) {
this.nextFrame();
} else if (f != true) {
this.prevFrame();
}
}


Now this is the problem, on that movie clip I'm going to have buttons. When I do that, it goes down with the menu, but when you scroll over the button the menu retracts. I know this is because it technically means it's not inside the big big button that causes the menu to go down and up. Is there any way to get this to work-on one frame. I tried it with it going to different frames on the rollover it telling it to go to a different instance, but the problem with that is I have a random generating slide show and it causes it to skip.

I know this is a lot, but it's honestly that damn button inside the movie clip that is causing the problems. Help would be much appreciated, thanks!!!
Aug 2 '07 #1
1 3438
ashsa
45
Here is what I'm trying to achieve:

I'm making a site that is basically a big slide show which is insignificant, but it has to be really minimalistic. So what I did was make an invisible button that is over the entire 900x400 rectangle. Basically what I want and as far as I got was getting it so that when you scroll over the button, the blank menu drops down. And when you scroll off it retracts and goes back up. Here is my code

//this is the code on the button//

on (rollOver, dragOver) {
_root.roll_mc.f = true;
}
on (rollOut, dragOut, releaseOutside) {
_root.roll_mc.f = false;
}

//this is the code on the movie clip//

onClipEvent (load) {
stop();
f = false
}
onClipEvent (enterFrame) {
if (f == true) {
this.nextFrame();
} else if (f != true) {
this.prevFrame();
}
}


Now this is the problem, on that movie clip I'm going to have buttons. When I do that, it goes down with the menu, but when you scroll over the button the menu retracts. I know this is because it technically means it's not inside the big big button that causes the menu to go down and up. Is there any way to get this to work-on one frame. I tried it with it going to different frames on the rollover it telling it to go to a different instance, but the problem with that is I have a random generating slide show and it causes it to skip.

I know this is a lot, but it's honestly that damn button inside the movie clip that is causing the problems. Help would be much appreciated, thanks!!!
I worked on this issue and fixed it successfully, but it was long ago .. Only thing i could remember is you should ve the code that open up the menu on the bigger button and the code that retracts the menu should be in the onMouseOut of the buttons in the movieclip. Hope that sounds meaningful.
Aug 6 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i...
2
by: WillRead | last post by:
I have a VB.Net application and a PowerPoint presentation explaining how each form in the application works, etc.. I would like to select and display the slide appropriate for each form by pressing...
7
by: johkar | last post by:
I am confused on childNodes or children. When you have nested lists, I would think it would all be one list in the Dom, this doesn't seem to be the case. So how do you traverse an unordered list?...
7
by: Rudy | last post by:
Hello All! After working in the television industry, moving to a developing career has been interesting to say the least. 3 years of developing with books, and the help of you fine folks on this...
1
by: DJG79 | last post by:
Hi all, I am using an open source menu that i found and it works great, except for one thing that when the web page is not scrolled to the very top the drop down links will not stay visible. Has...
3
by: John | last post by:
Hi there, I was reading an article (http://avenuea-razorfish.com/articles/TheAll-MenuNavigation_Turbek.pdf) on 'all-menu navigation' and I'd like to try and implement this in my site. Can...
3
by: Irocivan | last post by:
Hello, I download a nice collapse menu for free distribution from the internet. It works very well except that none of the parents nodes are clickable (i.e. when clicking on the parent node, the...
5
by: mukeshrasm | last post by:
hello friends I am new to javascript and I have a problem. I am giving the code <!-- Paste this code into the CSS section of your HTML document --> <html> <head> <style type="text/css">...
7
by: Joe | last post by:
usually slide bars move by "jumps" while scrolling which looks not nice. I came accress slide bar with price menu, ewnt through script/web source code, and could not find anything that would case...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.