Menu System
Hi,
I'm fairly new to flash, but was wondering if anybody out there with a slower machine could take a look at this for me:
http://www.geocities.com/thurstonis/...type.test.html
It's my first work with prototypes and I'm hoping that it was coded well enough not to bog down on slower computers.
Also, any tips on optimizing the code would be excellent.
Thanks!
Code: onClipEvent (load) { menuState = new Array("n", "sr", "fr", "sw", "fw"); currState = menuState[0]; // coordinates for "sr", [0] = x, [1] = y sideRoofX = new Array(-112.3, -133, -131.1, -136.7, -133.1); sideRoofY = new Array(-62.5, -79, -69.7, -71.8, -64.5); frontWallX = new Array(-66.1, 1.4, -101.7, 2.7, -104.0); frontWallY = new Array(-10.4, -26.8, -8.8, -18, -8.9); sideWallX = new Array(-98.1, -111.1, -114.6, -112.6, -118.9); sideWallY = new Array(-6.3, -11.3, 11.2, -12.4, -1.5); frontRoofX = new Array(-75.4, 3, -117.3, 5.1, -122.5); frontRoofY = new Array(-62.1, -78.7, -70.3, -71.9, -65); myButton = function () { for (i = 0; i < this.myX.length; i++) { temp = new Object(); temp.x = this.myX[ i ]; temp.y = this.myY[ i ]; _parent.localToGlobal(temp); this._parent.globalToLocal(temp); this.myX[ i ] = temp.x; this.myY[ i ] = temp.y; } this.gotoAndStop(menuState[myState]); this._x = this.myX[_global.currFrame]; this._y = this.myY[_global.currFrame]; this.myState = _global.currFrame; }; myButton.prototype = new MovieClip(); myButton.prototype.onEnterFrame = function() { if (_global.hideButtons) { this._visible = false; }else{ this._visible = true; } if (this.myState != _global.currFrame) { this.myState = _global.currFrame; if (this.over) { this.gotoAndStop(menuState[this.myState] + 1); } else { this.gotoAndStop(menuState[this.myState]); } this._x = this.myX[_global.currFrame]; this._y = this.myY[_global.currFrame]; } }; myButton.prototype.onRollOver = function() { this.over = true; this.gotoAndStop(menuState[this.myState] + 1); _parent.gotoAndPlay(menuState[_global.currFrame] + "-" + menuState[this.myName]); }; myButton.prototype.onRollOut = function() { this.over = false; this.gotoAndStop(menuState[this.myState]); //_parent.gotoAndPlay(menuState[_global.currFrame] + "-n"); }; myButton.prototype.onRelease = function() { trace("I am " + this); trace("My parent is " + this._parent); trace("released"); trace("x=" + this._x); trace("y=" + this._y); trace("My X should be" + this.myX[_global.currFrame]); trace("My Y should be" + this.myY[_global.currFrame]); }; Object.registerClass("sideRoof", myButton); Object.registerClass("frontWall", myButton); Object.registerClass("sideWall", myButton); Object.registerClass("frontRoof", myButton); attachMovie("sideRoof", "srBUT", 100, {myName:1, myX:sideRoofX, myY:sideRoofY}); attachMovie("frontWall", "fwBUT", 101, {myName:4, myX:frontWallX, myY:frontWallY}); attachMovie("sideWall", "swBUT", 102, {myName:3, myX:sideWallX, myY:sideWallY}); attachMovie("frontRoof", "frBUT", 103, {myName:2, myX:frontRoofX, myY:frontRoofY}); }
FlashKit > Flash Help > Flash MX
Posted on: 08-22-2002, 12:53 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Help With Menu System Please
I have posted an image of what I want my navigation to look like here http://www.fuzzylogik.ws/nav_example.jpg
What i need to make happen:
1.When you click on any box, they all move clockwise to the next position until the item clicked is located in the "hotspot"
2.They don't need to tween between the locations, just move to the next spot until the selected item is in the "hotspot"...kinda like chasing christmas lights
My brain is aching from trying to figure this one out so any help would be greatly appreciated! If you know of a FLA posted in the movies section that does something like this please let me know...I had no luck finding any.
Thanks,
Chris Brixey
[FUZZY.LOGIK]
A Menu System
http://www.nebulouscore.com/examples/NCNavmenu.html (.fla)
http://www.nebulouscore.com/examples/newlevel.as
http://www.nebulouscore.com/examples/CommandEngine.as
http://www.nebulouscore.com/examples/NavMenu.xml
Hardcore code. Enter at your own risk.
Menu System
Hey, i was wondering if you could tell me how to create a system where u have 3 ovals and they are overlapping. If you click say the one on the bottom it will move to the front and the other two will move under it. (Also i would like the alpha to change....top one = 100%, 2nd one = 75%, 3rd one = 50%) Thanks for your help! - Jeff
3D Menu System
hi, this is my first post on this board and am a novice user of flash, i've done a bit of c++ but am eager to learn.
i've been playing about with a few of the tutorials and i came across the very well written 3d flower tutorial and low and behold managed to get it working. you can see my results at my homepage . anyway, i was thinking of useing it in a project at collage as the menu system in a report, i.e. spin it around and choose an arm to go to each page, i know its not the best for ease of navigation but the lecturer was suitably impressed and hinted if i got it working it would be worth my while.
now to my problem, the code is quite complicated and its not really like anything i've done before, its out of the scope of the lecturer at collage so i've been haveing a bash at it myself. heres the code:
Code:
Points = 11;
Lines = 10;
Viewport = 500;
rad = (3.14*2)/360;
line = new Array(Lines);
vertex = new Array(Points);
fscommand ("fullScreen", true);
for (i=0; i != Lines; i++) {
wire.DuplicateMovieClip("l" add i, i);
line[i] = eval("l" add i);
}
for (i=0; i != Points; i++) {
point.DuplicateMovieClip("v" add i, (Lines*2)+i);
vertex[i] = eval("v" add i);
}
vertex[0].x = 0;
vertex[1].x = -100;
vertex[2].x = -150;
vertex[3].x = -150;
vertex[4].x = 0;
vertex[5].x = 100;
vertex[6].x = 150;
vertex[7].x = 100;
vertex[8].x = 150;
vertex[9].x = 0;
vertex[10].y = 0;
vertex[0].y = 0;
vertex[1].y = -100;
vertex[2].y = 0;
vertex[3].y = 100;
vertex[4].y = 150;
vertex[5].y = 100;
vertex[6].y = 0;
vertex[7].y = -100;
vertex[8].y = -150;
vertex[9].y = 0;
vertex[10].y = 0;
vertex[0].z = 0;
vertex[1].z = -100;
vertex[2].z = 0;
vertex[3].z = 100;
vertex[4].z = 0;
vertex[5].z = 100;
vertex[6].z = 0;
vertex[7].z = -100;
vertex[8].z = 0;
vertex[9].z = -150;
vertex[10].z = 150;
line[0].a = 0;
line[0].b = 1;
line[1].a = 0;
line[1].b = 2;
line[2].a = 0;
line[2].b = 3;
line[3].a = 0;
line[3].b = 4;
line[4].a = 0;
line[4].b = 5;
line[5].a = 0;
line[5].b = 6;
line[6].a = 0;
line[6].b = 7;
line[7].a = 0;
line[7].b = 8;
line[8].a = 0;
line[8].b = 9;
line[9].a = 0;
line[9].b = 10;
function Rotate (x, y, z) {
radx = rad*x;
rady = rad*y;
radz = rad*z;
for (i=0; i != Points; i++) {
vertex[i].x1 = vertex[i].x;
vertex[i].y1 = (Math.cos(radx)*vertex[i].y)-(Math.sin(radx)*vertex[i].z);
vertex[i].z1 = (Math.sin(radx)*vertex[i].y)+(Math.cos(radx)*vertex[i].z);
vertex[i].x2 = (Math.cos(rady)*vertex[i].x1)-(Math.sin(rady)*vertex[i].z1);
vertex[i].y2 = vertex[i].y1;
vertex[i].z2 = (Math.sin(rady)*vertex[i].x1)+(Math.cos(rady)*vertex[i].z1);
vertex[i].x3 = (Math.cos(radz)*vertex[i].x2)-(Math.sin(radz)*vertex[i].y2);
vertex[i].y3 = (Math.sin(radz)*vertex[i].x2)+(Math.cos(radz)*vertex[i].y2);
vertex[i].z3 = vertex[i].z2;
}
}
function toScreen () {
for (i=0; i != Points; i++) {
vertex[i].dx = (vertex[i].x3*viewport)/(vertex[i].z3+600)+350;
vertex[i].dy = (vertex[i].y3*viewport)/(vertex[i].z3+600)+262.5;
}
}
function render () {
for (i=0; i != lines; i++) {
with (line[i]) {
_visible = true;
_x = vertex[line[i].a].dx;
_y = vertex[line[i].a].dy;
_xscale = vertex[line[i].b].dx-vertex[line[i].a].dx;
_yscale = vertex[line[i].b].dy-vertex[line[i].a].dy;
}
}
for (i=0; i != points; i++) {
with (vertex[i]) {
_x = dx;
_y = dy;
_xscale = 75+(((((500-z3[i])/10)*30)/100)*(-1));
_yscale = 75+(((((500-z3[i])/10)*30)/100)*(-1));
_alpha = ((((z3[i]*(-1))+500)/10));
}
}
}
var ax, ay, az, oldx, oldy, bx, by, bz, nu;
now from what i understand from reading various texts and such for starters i should be makeing more movie clips titled "links" "page 1" etc and then declareing them at the top of the script in place of one of the parts of the points array. then i need to create arrays for the instances name, both of these i have done then in the bits i have coloured blue insert the names of the new movie clips but keep the values they are assigned i.e. the -150, etc. which i have also given a shot. then we bypass the red which i will get to later and go to the green which i think is to be duplicated with the appropriote names substituted much the same as the blue bits. now to the red, i have absolutly no idea what i should be doing with these bits of code, i'm not sure if i'm just getting blinded by all the maths especially the top red bit.
anyway thanks for reading this, i would really appreciate some help if possible, even just directing me to somewhere where i could find some stuff to read up on that would help.
cheers, monkeysquid.
Menu System
I am learning flash and have used the resources from this site, which are great. just getting into actionscript, I have a menu that slides onto the screen when the spacebar is pressed at current.
I want to change this so that the menu comes in when the mouse hovers over a button then goes when the mouse is not over the button. my web address is: http://anthony.8bit.co.uk. The code I am currently using for the menu is:
menu.onEnterFrame = function() {
if (Key.isDown(Key.SPACE)) {
if (menu._x<25) {
menu._x += 50;
}
} else {
if (menu._x>-50) {
menu._x -= 25;
}
}
};
can you show me how to adapt it so it will do what I want. Thanks for your help.
Menu System
menu system
I am learning flash and have used the resources from this site, which are great. just getting into actionscript, I have a menu that slides onto the screen when the spacebar is pressed at current.
I want to change this so that the menu comes in when the mouse hovers over a button then goes when the mouse is not over the button. my web address is: http://anthony.8bit.co.uk. The code I am currently using for the menu is:
menu.onEnterFrame = function() {
if (Key.isDown(Key.SPACE)) {
if (menu._x<25) {
menu._x += 50;
}
} else {
if (menu._x>-50) {
menu._x -= 25;
}
}
};
can you show me how to adapt it so it will do what I want. Thanks for your help.
Menu System
I am learning flash and have used the resources from this site, which are great. just getting into actionscript, I have a menu that slides onto the screen when the spacebar is pressed at current.
I want to change this so that the menu comes in when the mouse hovers over a button then goes when the mouse is not over the button. my web address is: http://anthony.8bit.co.uk. The code I am currently using for the menu is:
menu.onEnterFrame = function() {
if (Key.isDown(Key.SPACE)) {
if (menu._x<25) {
menu._x += 50;
}
} else {
if (menu._x>-50) {
menu._x -= 25;
}
}
};
can you show me how to adapt it so it will do what I want. Thanks for your help.
Menu System?
Lo all,
Anyone help me with this problem? Im sure I done something like it before but its been a while since i used flash.
Basically what i want is 4 buttons - when one of these buttons is pressed a short animation plays, then the relevant movie is loaded on top of the main movie.
I have tried setting a variable with the button press then playing the movie. E.G:
Button 1 when pressed sets variable a = "1"
Button 2 a = "2"
ETC.
Then after the (main) movie has played I had a set up like:
If a = "1"
Then goto and stop "page1"
Else if a = "2"
Then goto and stop "page2"
Each of these keyframes (page1, page2 etc.) had command to stop and load the relevant movie.
This doesnt seem to work though - any ideas?
Its probably simple I know but im out of practice, any help would be GREATLY appreciated as I have a deadline approaching :P
Thanks.
Stu.
Menu System
Hi,
anyone know to get a menu system, where when you move over the buttons, then get larger, but at the same time the buttoms around them move over slightly so they do not overlap?? looked in the movies section but couln't find anything like this, even though i've seen it on websites a few times.
thanks
logan.
Menu System Help
i have just finished a website, but i still have problems with one thing..the menu sytem http://www.customfuncompany.com when the animation plays and the whole themepark is down in the bottom...when you Roll Over each one it pops up and displays the name and tab of the section ...when when you Roll Out..it's supposed to pop down, it does. BUT...if you pass thru all of them fast enough..you can make them STAY up and not come down..so it's possible for two to be up at the same time..wichj is not good, can someone please explain why this happens and if there's a solution.
HELP. Menu System
I am working on a modified drop-down menu. When you mouse-over, the menu drops down. When a button is pushed, the menu slides back up. When the mouse leaves a large hit area the menu also slides up.
What I wish to do is stop the slide-up function of the hit area when a button opens a sub-menu. For example, one button is called "products". When pressed a sub-menu slides into place. I don't want the hit-area to function unless a new menu item is selected. I'm sure the attached .fla will be clearer than I.
thanks in advance for any help you can give. Also, if you have any comments on the code, please do since I modified a tutorial.
Menu System?
Could someone help me make a menu system like the ones on these sites:
http://www.motiveinc.com/
www.driftlab.com
I am new at flash but I need to make a menu system that when you rollover it slides up with the choices
Thanks!
Menu System
This is quite a big problem I got. I am doing a big menu system with lots of sub menus.
exp:
when I click on Button A I want A to open B & C to close down.
when I clik on button B I want B to open and A & C to close down
when I click on button C I want C to open and A & B to close
This is my way of working;
on (release) {
tellTarget (_root.A) {
gotoAndStop("show");
}
}
on (release) {
tellTarget (_root.B) {
gotoAndStop("hide");
}
}
on (release) {
tellTarget (_root.C) {
gotoAndStop("hide");
}
}
It works fine for small projects but it is very slow and gets confusing with biger projects.
Is there a better way of working.
Help Appritiated..
Thanks
Menu System
Hi there,
I am working on a huge menu system with lots of submunes.
I attached a sampefile for you to see how I am working. This is a way that works but gets very confusing with the big projects and I want learn a better way of doing this. Help will apritiated.. Thanks
Menu System
could anyone explain to me how the menu system on this site is made. I couldnt figure it out.
Sub Menu System
Hi i found this file on the net does anyone know how to make the sub menus "our approach active" in the following drop down menu?
http://www.ffiles.com/flash/menus/sub_menu_system/
thank u
Teo
Menu System
I have a movieclip instance that slides down fromt eh top of my screen. inside this movie is an instance of a button. for some reason when I mouse over the button or press on it it doesn't do anything.
why would something like this happen.
I know I have used movieclips nested in movie clips before
thanks for the help
Menu System Help..
I made a really quick and simple flash menu:
http://www.dreamefx.com/shtuff/menu_test.html
I tried searching for a tutorial, but I have no clue what to type into the search box. So after a good 30 minutes of searching the web I've finally decided to ask.
I know there is already a flash movie source on this so this is what I am asking for.
---------------------------
How can I make the menu when clicked stay at it's current position, then when I click the other button the other button moves back into place. No matter which button you click it automatically knows to set the other button back into it's original place.
does anyone here know where I can find this tutorial of fla source?
Menu System
I am building a website in flash and I am setting it up so each page is an individual flash file (not using scenes). However, I want to create my navigation but be able to update it in one spot and have it update on every flash file that contains the navigation. Not sure if there is a way to create the buttons as library items and only have to update them in one master file... basically like a server side include that you would create in html.
Any help is greatly appreciated.
Menu System
I've just seen this very neat menu system I want to use for my own site, but being a Flash novice, I can't quite get my noodle on how its done.
http://www.dontclick.it/
I can do basic animations and mouse on/over/out events but this seems a lot more complex; Specifically when the cursor moves onto a main menu link it pushes the other menus out the way and scales and rotates up the underlying text, also when leaving any main menu how do you get back to the menus original start state, e.g. the menus roll back and squash together, If you look at the site you'll get what I'm rambling about.
Appreciate any help, pointers or tutorials in getting this to work.
XML Menu System
lets hope someone can point me in the right direction here :-)
I am after building a menu system with a series of different component lists which are populated depending on the values selected on the previous one. Finally providing a list of available 'filtered' options for the user.
Anyone seen anything like this or help me out by pointing me in the right direction with some advice?
Cheers
Xml Menu System
Hi All, firstly, I want to recreate the menu seen here: Xml Menu
I want to find one that I can edit myself and learn from.
Secret Plus ( the crew who made it, did an awesome job). I just want to know if any1 out there knows where I can find a similar script, preferrably for free.
Any links/suggestions will be very appreciated
thanks!
How Was This Menu System Done ?
I've been looking around the web as you do and stumbled across this website
http://www.pennantmediagroup.com/main.htm and I was wondering how could they do the menu system? I like it. Any ideas.
Sen's 3D - Help With Menu System
Hi,
I want to use the methods explained in Senocular's 3D tutorials to create a menu that when a section is clicked the Camera View zooms in to match the focal point and z axis of the button. I've been experimenting all day but I can't work out how to get the button functioning.
All areas are set and display, but taking the next step and coding the button function hasn't been good! Here is the tutorial i'm using:
shape_camera.htm
Basically, i'm trying to assign the AS on the Star Field example at the end to my buttons. (Section 5 is a button, the rest are clips.)
And links to the .fla and example:
3dmenuexample FLA
3d Menu Example
Thanks, hope someone can help - can't afford another day like today! I am finished work for now but will check this post when I get home.
Cheers, Sprawl
Xml Menu System
Hi All, firstly, I want to recreate the menu seen here: Xml Menu
I want to find one that I can edit myself and learn from.
Secret Plus ( the crew who made it, did an awesome job). I just want to know if any1 out there knows where I can find a similar script, preferrably for free.
Any links/suggestions will be very appreciated
thanks!
How Was This Menu System Done ?
I've been looking around the web as you do and stumbled across this website
http://www.pennantmediagroup.com/main.htm and I was wondering how could they do the menu system? I like it. Any ideas.
Help With FLA Menu System
Please can anyone give me assistance as I'm afraid I'm putting the horse before the cart here. I am trying to get a site up and running whilst getting to know HTML, ASP, Dreamweaver, javascrip etc. etc. and need to construct a menu, one of which I have downloaded and have ammended the images and its text but haven't a clue what to do to get a zoom effect on the over state of the images.
I have managed this zoom effect on it's own in my own simple single buttons but cannot figure out how to get the mouse over effect to go to a zoom movie clip on this. Any help is appreciated. The original link to the fla is below
http://www.layoutgalaxy.com/html/htmnewletter49-page1.htm
Seen This Menu System Around?
Awhile ago at one of the fla areas on the web - (if I remember I would'nt be asking) - I saw a menu that was vertical with color for each selection, then each sub-selection was a percentage of its parent. Also the slide feature was side to side (rather than up/down) and when opened had areas for images and / or links.
Does anyone out there know where this menu may be?
• idaryl • http://www.designedimage.com •
If Else Menu System
I cant't solve the system menu, anyone can help here?
Check out the original menu system
http://www.dreamshocker.com/oldsite/dshockv1/
it's kind of confusing in managiing those varialbels.
I think the code goes like this in the main tiimeline:
if (Number(menu1) == 1)
{
gotoAndPlay(465);
} // end if
if (Number(menu1) == 2)
{
gotoAndPlay(475);
} // end if
if (Number(menu1) == 3)
{
gotoAndPlay(495);
} // end if
if (Number(menu1) == 4)
{
gotoAndPlay(485);
} // end if
if (Number(menu1) == 5)
{
gotoAndPlay(455);
} // end if
What is confusing is where to place those variables??
// Frame 311
menu = 1;
gotoAndPlay(340);
// [Action in Frame 313]
menu= 2;
gotoAndPlay(340);
// Frame 315
menu = 3;
gotoAndPlay(340);
//Frame 317
menu = 4;
gotoAndPlay(340);
// Frame 319
menu = 5;
gotoAndPlay(340);
What's tje difference with tellTarget??
if (Number(menumode) == 2)
{
tellTarget("../")
{
gotoAndPlay(475);
} // end of tellTarget
} // end if
if (Number(menumode) == 3)
{
tellTarget("../")
{
gotoAndPlay(485);
} // end of tellTarget
} // end if
if (Number(menumode) == 4)
{
tellTarget("../")
{
gotoAndPlay(495);
} // end of tellTarget
} // end if
if (Number(menumode) == 5)
{
tellTarget("../")
{
gotoAndPlay(50);
} // end of tellTarget
} // end if
if (Number(menumode) == 6)
{
tellTarget("../")
{
gotoAndPlay(455);
} // end of tellTarget
} // end if
Anyone can help or give a concret example in .fla file.Thanx
Best regards,
Menu System Help
hey,
It's been a while since I've been here, but I like the changes
Um, I need help with a menu system. I've looked for help online, but I can't find it. Here is the gist:
I'm looking to create a menu system similar to the one in this link:
http://tenbyten.org/10x10.html
I know it's been used a lot, and I know there's probably a file somewhere, but I can't find it. ANY help would be appreciated.
thanks
Cavan
Menu System Like This
Did someone see menu system like this (SEE PICTRUE).
It should be dynamic menu loaded from XML i suppose.
On pic where it says "opcija" it means "option" and where it says "podopcija" it means "sub-option".
It should be dynamic menu with scroll when you have more options and suboptions than it can fit that grey rectangle. If anyone saw something siimilar please post a link.
thanx
Menu System
Does anyone know how they did this menu? I know they scaled the buttons in the X axis but they did it so the separators between the buttons actually move
http://www.showlogic.com/flash/index.html
Menu System
I just saw a new press event video from E3 for the new PS3 and I was intrigued by the menu system for the "Song Selection". Is it possible to emulate the functionality of this menu in flash? I would like to use it along with Lee's reflection Class.
Here is the video (check out 12:49 min left):
http://www.us.playstation.com/E3/CoverageVideoPlayer.aspx?id=14805§ion=
Example photo:
Help With Menu System.
Hey Guys and Girls,
ive been making a menu system on a flash site, basically when a item is clicked the flower will extend and when another item is clicked the first one will go back to a small flower and the new one will grow.
example being: http://www.design221.com/ginger/
from my example you can see that the flowers go up but the only come back down when clicked on. Can someone explain how I would make the existing selected flower decrease in size when another one is clicked on.
If you need any more info please ask.
Thanks in advance for your help. :D
Regards,
Andy.
Menu System Of Estudio.com
Hi,
Anyone knows how to create the top AND sub menu system of estudio.com?
Top menu: pop down menu with animation
Sub menu (near the middle): mouse trailer of round square box.
Thanks
net2
Menu System With An Arrow
hey guys,
i'm a complete newbie to flash and actionscript. i'm trying to create a menu system that has 5 buttons and a an aroow that moves up and down the y-axis with the mouse.
i've got the arrow on one layer and the actionscript for that layer is this:
onClipEvent (load) {
startDrag (arrow, true, 11, 20, 11, 121);
setProperty (arrow, _y, "_ymouse");
}
the buttons are on a seperate layer above the arrow but for some reason the buttons won't function. i have set up the buttons to change colour on mouseover and for some reason the arrow seems to override that. can anyone help me?
in case i haven't explained that very well i've put up the flash file that won't work: http://www.users.bigpond.com/thefull...h/pcsmenu.html
thanks heaps guys.
Dynamic Menu System
I have created a menu system that reads everything from a textfile and dynamically creates the menu. I've sorted the duplication and positioning. Now the problem I have is to get the links in.
What I would like is that if a main navigation button don't have subnav it must put in a link onClick of the link. If there is subnav it must put in links onClick on the subnavs.
Please help
Works
dynmenu = dynmenu.split(",");
counter = dynmenu.length;
i = 1;
movdepth = 1;
stop ();
// Main Navigation duplication and repositioning
for (i; i<=counter; i++) {
duplicateMovieClip (Menu, "Menu"+i, movdepth);
set ("Menu" add i add ".Menuitem", dynmenu[i-1]);
set ("Menu" add i add ".buttoncounter", i);
set ("Menu"+i+".counter", counter);
setProperty ("Menu" add i, _y, 25*i);
setProperty (Menu, _visible, false);
setProperty ("Menu" add i add ".Submenu", _visible, false);
movdepth++;
}
// SubNavigation array creation
i = 1;
for (i; i<=counter; i++) {
eval("subarray" add i) = eval("submenu" add i).split(",");
eval("sublength" add i) = eval("subarray" add i).length;
}
// SubNavigation MC duplication, population and movement
i = 1;
arraypos = 1;
vertmove = 0;
for (i; i<counter; i++) {
for (arraypos; arraypos<=eval("sublength" add i); arraypos++) {
duplicateMovieClip ("Menu"+i+".Submenu", "Submenu"+arraypos, movdepth);
set ("Menu"+i+".Submenu"+arraypos+".subtext", eval("subarray" add i)[arraypos-1]);
setProperty ("Menu"+i+".Submenu"+arraypos, _y, 25*vertmove);
set ("Menu"+i+".sublength", eval("sublength"+i));
movdepth++;
vertmove++;
}
arraypos = 1;
vertmove = 0;
}
DOESN'T WORK
// Putting in the links
linkcounter = 1;
if (eval("subarray"+linkcounter)>0) {
linkcounter++;
} else if (eval("subarray"+linkcounter)<=0) {
set (_root."Menu"+linkcounter,
on (release) {
getURL (eval("menulink"+linkcounter), "_blank");
});
}
Flash MX Menu System
Hey,
I have 7 buttons, all animate on rollover, rollout etc., but when one button is clicked, it changes to a solid black state.
Problem = When a user clicks on another button, how do I get the previously clicked button to go back to it's original state, so that only the new button is in a solid black state? I believe IF/ELSE statements might work - but how?
Thanx
Menu System Puzzle
Hi
I'm trying to get this simple menu nav to point to individual scenes within the movie, but i've no idea how to do it!!!! Any help would be appreciated!
you can download the 12k file here:
http://www.stephencraddock.co.uk/menupuzzle.zip
stephen
Dynamic Menu System
I am trying to build a dynamic menu system. When you rollOver a button, a menu appears to the side. I am using attachMovie to create the menu to the side and a while loop to populate it. My problem is that I can't figure out how to either keep the side menu open after I rollOut of the button (I need it open because it has buttons in it) or close it after I roll off of the menu. I can get it to stay open, but then I can't close it. And I can get it to close but when it does I can't roll my mouse onto the menu. I am using a hitTest to keep the menu open. The code I am using is below. The system I am trying to emmulate is from nike.com under their main USA section. Any comments would be useful. Thanks.
on (rollOver) {
_root.attachMovie("box","B2",10);
_root.B2._x = 520;
_root.B2._y = 350;
_root.B2.gotoAndPlay(1);
_root.B2._alpha = 90;
bounds = B2.getBounds (_root)
if(_root.addons.hitTest(_root._xmouse, _root._ymouse, true) || _root.B2.hitTest(_root._xmouse, _root._ymouse, true)){
B2.gotoAndPlay (3);
}else if(_root.addons.hitTest(_root._xmouse, _root._ymouse, false) || _root.B2.hitTest(_root._xmouse, _root._ymouse, false)){
_root.B2.removeMovieClip ()
}
}
Menu System W/ CD ROM Support
Hi,
I'm posting here because I assume its an actionscript problem. But anyway I was wonder if there was anyway to access a projector or SWF file from the CD through a menu system.
For example like in my situation, I made several games and burned them onto a CD. I also made a menu that has "links" to the games. What I want to do is have those "links" pointing to the actual game files so they will run like projectors or .exe's do.
Is there any code snippet I could have or is there a tutorial for this anywhere on the web or right here (I'm looking around.)
Any responses would be most appreciated.
Thanks
Trying To Create Menu System Like This
Hey all,
I have my site pretty much done, and I wanted to add a nice menu system. I found one on another site that I like particularly, and I'm wondering what kind of action scripting I need to do it. Here is the site: http://www.active-solutions.com/
As you can see, the transparent box in the menu movieclip moves from left to right as your cursor does. Does anyone know how I could create a similar effect?
Creating A Menu System In LM2
I'm attempting to create a menu system in livemotion - using menu and sub-menu's - I wish to rollover the main menu's, where it will call on thesub menu's (seperate swf files). But I cannot get the menu's to close upon mouse-off? I'd appreciate any assitance, I've been srtuggling for quite a while on this.
Thanks
Terry
How Do They Create This Menu System?
how is this done? The way the menu opens and closes when you click on a different selection
http://www.loungeagency.com/
I've seen this style of navigation all over the web, it's cool as, but I've got no idea of the code involved. Someone out there must look at this and say that's simple. Can that someone please show me how it's done, I would be very thankful and greatful for your knowledge
thanks always
Advanced Menu System
I have a site wide flash only navigation bar. Right now, I have seperate movies for each additional page so when the html page loads, the flash movie will be in the correct state. I was wondering if anyone knows of a way to action script the movie so that I do not have to load a different movie every time a new page loads? I would like to be able to code in for example... if user clicks on - link x the movie should load y.html - a page with the movie embedded and goto scene 2, frame 20 of the embedded movie.
Is this even possible?
Anyone have an answer let me know at
webmaster@pendergraphics.com
http://www.pendergraphics.com
Menu And Submenu System
hi.
i am going to create this flash menu system soon. before i begin i'd like to know how can i go about having one flash file display different sublinks depending on which page or folder heiarchy the swf is on? the menu is going to be teh only flash on the page and everything else will be html
ex:
home page displays the flash menu as so:
main - SERVICES PORTFOLIO CONTACT
sublinks - (none)
services page displays the same flash menu as so:
main - SERVICES PORTFOLIO CONTACT
sublinks - graphic design, logo design
any ideas?
|