Cascading Menu Problems
Hi all,
I'm trying to get a cascading menu working, but right now it's giving me headache. (see attachment)
What I've done:
- button with tellTarget that makes a movie play which contains the
submenu buttons on mouseover
- same button with tellTarget that tells the movie to hide the buttons on rollout/click.
on (rollOver) {
tellTarget ("sub1") {
gotoAndPlay (2);
}
tellTarget ("submenu_egotrip") {
gotoAndPlay (2);
}
}
on (release, rollOut) {
tellTarget ("sub1") {
gotoAndPlay (12);
}
tellTarget ("submenu_egotrip") {
gotoAndStop (8);
}
}
on (press) {
getURL ("egotrip.php", "content");
}
It works, the problem is when I go over the submenu buttons it fools around. Probably this has to do with the fact that the 2 buttons are on top of the main button?
Anyhow - any tips, solutions for this would be warmly appreciated.
Thanks,
step
ps. see attachment
FlashKit > Flash Help > Flash General Help
Posted on: 01-05-2003, 09:13 AM
View Complete Forum Thread with Replies
Sponsored Links:
Cascading Menu
I am trying to find any resources so that I can develop a menu structure that will automatically move the main sections down so that the subsections may be clicked upon, but if you roll off the menu collapses.
If I had a text version visually it would first look like
Menu 1
Menu 2
Menu 3
Menu 4
When you rolled over Menu 1 the menu would look like this
Menu 1
Submenu 1
Submenu 2
Submenu 3
Menu 2
Menu 3
Menu 4
If you rolled over Menu 2 you would see
Menu 1
Menu 2
Submenu 1
Submenu 2
Submenu 3
Menu 3
Menu 4
Is there a tutorial that will show me how to develop this WITHOUT making frame labels and making animations and having them gotoAndPlay("Menu_1animation")? I have seen it before, I just dont know where I can find a tutorial on how to build my own. Does anyone have any source information and/or tutorials they know of for me to be able to develop this?
View Replies !
View Related
Cascading Menu - Please Help :)
Hello ... help please help .... this is driving me nuts !!
Problem - Basically I want to customizing a cascading menu but when I add or remove sub menu's from this file it seems to mess everything up..
Examples:
File one is the original from flash kit - which I have being trying to customize unsuccessfully.
Menu Collapse MX.fla.zip
File two shows the menu working if i have the same number of sub menus in each menu
menu-1.fla.zip
File three shows the menu all messed up when I try to add or remove a sub menu.
menu-2.fla.zip
I'm obviously missing something fundamental in this but I just can't work it out !
any advice would be really appreciated I'm lost with this!
Cheers in advance
rormac
View Replies !
View Related
Cascading Menu?
I downloaded this script for a cascading menu and it works great but I need to know the code for my links to work.
The Code:
// Variables -----------------------------------------------------------------------
// Height of Mainmenu items
var homm = 20;
// Height of Submenu items
var hosm = 15;
// mm_array contains the main menu, sm#_array contains the sub menu items for menu #
var mm_array:Array = ["Some Menu", "Second Menu", "Third Menu", "Fourth Menu", "Fifth Menu", "Created by Mav"];
var sm1_array:Array = ["Submenu 1", "Submenu 2", "Submenu 3", "Submenu 4"];
var sm2_array:Array = ["Submenu 1", "Submenu 2"];
var sm3_array:Array = ["Submenu 1", "Submenu 2", "Submenu 3", "Submenu 4", "Submenu 5"];
var sm4_array:Array = ["Submenu 1", "Submenu 2", "Submenu 3", "Submenu 4", "Submenu 5", "Submenu 2", "Submenu 3", "Submenu 4", "Submenu 2", "Submenu 3", "Submenu 4"];
var sm5_array:Array = ["Submenu 1", "Submenu 2", "Submenu 3", "Submenu 4", "Submenu 5"];
var sm6_array:Array = ["Submenu 1", "Submenu 2", "Submenu 3", "Submenu 4", "Submenu 5"];
var submenu_array:Array = [];
// Functions ------------------------------------------------------------------------
_global.$tweenManager.broadcastEvents = true;
// Main menu
function createMainMenu() {
var a = 1;
var total = mm_array.length;
while (a<=total) {
ypos = ((a-1)*homm)+1;
attachMovie("mainnav_mc", "mainnav"+a+"_mc", this.getNextHighestDepth()+100, {_x:0, _y:ypos});// attach the movieClip
var nc = this["mainnav"+a+"_mc"];
nc.menutext = mm_array[(a-1)];// set the title text for each button
nc.itemnum = a;// set the menu #
a++;
}
}
function moveMenu(num) {
if ((_root.collapsed == true) || (_root.selectedmenu != num)) {
var array = "sm"+num+"_array";
var totalsm = eval(array).length;
var totalmm = mm_array.length;
var a = 1;
while (a<=totalmm) {
mc = this["mainnav"+a+"_mc"];
if (a>num) {
var ypos = (((a-1)*homm)+1)+totalsm*(hosm+1);
mc.tween("_y", ypos, 0.5, "easeOutCubic");
} else {
var ypos = ((a-1)*homm)+1;
if (a == num) {
nypos = ypos;
mc.tween("_y", ypos, 0.5, "easeOutCubic", 0, onEnd(num, nypos));
} else {
mc.tween("_y", ypos, 0.5, "easeOutCubic");
}
}
a++;
}
_root.collapsed = false;
} else {
contractMenu()
_root.collapsed = true;
}
}
function onEnd(num, nypos) {
_root.num = num;
createSubMenu(num, nypos);
}
function contractMenu() {
var c = 1;
while (c<=submenu_array.length) {
removeMovieClip("subnav"+c+"_mc");
removeMovieClip("mask"+c+"_mc");
c++;
}
var g = 1;
while (g<=mm_array.length) {
ypos = ((g-1)*homm)+1;
this["mainnav"+g+"_mc"].tween("_y", ypos, 0.5, "easeOutCubic");
g++;
}
}
function createSubMenu(num, nypos) {
var array = "sm"+num+"_array";
var totalsm = eval(array).length;
var ypos = nypos+4;
var c = 1;
while (c<=submenu_array.length) {
removeMovieClip("subnav"+c+"_mc");
removeMovieClip("mask"+c+"_mc");
c++;
}
submenu_array = [];
var a = 1;
while (a<=totalsm) {
ypos = ypos+hosm+1;
attachMovie("subnav_mc", "subnav"+a+"_mc", a+30, {_x:0, _y:ypos});
if (num != mm_array.length) {
attachMovie("mask_mc", "mask"+a+"_mc", a+990, {_x:0, _y:0});
mask_mc = this["mask"+a+"_mc"];
mask_mc._alpha = 10;
mask_mc.onEnterFrame = function() {
this._height = _parent.container_mc["mainnav"+mm_array.length+"_mc"]._y;
};
this["subnav"+a+"_mc"].setMask(mask_mc);
}
nc = this["subnav"+a+"_mc"];
nc._alpha = 0;
nc.itemnum = a;
nc.menutext = eval(array)[(a-1)];
nc.alphaTo(100, 2);
nc.onRelease = function() {
// Function to get submenu actions needs to go here
var my_str:String = new String(this);
_root.select = "You have selected "+my_str.slice(18);
};
submenu_array.push("subnav"+a+"_mc");
a++;
}
}
// Build Menu -----------------------------------------------------------------------
_root.collapsed = true;
createMainMenu();
So with this how can I add a loadMovieNum. or OnRelease function on the submenus to load other .swf clips on another level?
Thanks
Brad
View Replies !
View Related
Cascading Menu Help
Hi. This is from a movie I got over at Flashkit, but these forums are simply more helpful, so here goes. I'm trying to add functions to each 'submenu' to load external swfs, but can't figure it out. What exactly are the instance names of the submenu buttons, so I could just call "submenu1.onRelease = function"....etc? It says to put the button functions in the nc.onRelease function, but I just don't know what to put.
Here's the link to the movie file:
http://www.flashkit.com/movies/Inter...1370/index.php
And the corresponding AS:
Code:
// Variables -----------------------------------------------------------------------
// Height of Mainmenu items
var homm = 20;
// Height of Submenu items
var hosm = 15;
// mm_array contains the main menu, sm#_array contains the sub menu items for menu #
var mm_array:Array = ["Printed Publications", "Web & Multimedia", "3D", "Exhibitions", "Maps & Plans", "Illustrations"];
var sm1_array:Array = ["Submenu 1", "Submenu 2", "Submenu 3", "Submenu 4"];
var sm2_array:Array = ["Submenu 1"];
var sm3_array:Array = ["Submenu 1", "Submenu 2", "Submenu 3", "Submenu 4", "Submenu 5"];
var sm4_array:Array = ["Submenu 1", "Submenu 2", "Submenu 3", "Submenu 4", "Submenu 5", "Submenu 2", "Submenu 3", "Submenu 4", "Submenu 2", "Submenu 3", "Submenu 4"];
var sm5_array:Array = ["Submenu 1", "Submenu 2", "Submenu 3", "Submenu 4", "Submenu 5"];
var sm6_array:Array = ["Submenu 1", "Submenu 2", "Submenu 3", "Submenu 4", "Submenu 5"];
var submenu_array:Array = [];
// Functions ------------------------------------------------------------------------
_global.$tweenManager.broadcastEvents = true;
// Main menu
function createMainMenu() {
var a = 1;
var total = mm_array.length;
while (a<=total) {
ypos = ((a-1)*homm)+1;
attachMovie("mainnav_mc", "mainnav"+a+"_mc", this.getNextHighestDepth()+100, {_x:0, _y:ypos}); // attach the movieClip
var nc = this["mainnav"+a+"_mc"];
nc.menutext = mm_array[(a-1)]; // set the title text for each button
nc.itemnum = a; // set the menu #
a++;
}
}
function moveMenu(num) {
if ((_root.collapsed == true) || (_root.selectedmenu != num)) {
var array = "sm"+num+"_array";
var totalsm = eval(array).length;
var totalmm = mm_array.length;
var a = 1;
while (a<=totalmm) {
mc = this["mainnav"+a+"_mc"];
if (a>num) {
var ypos = (((a-1)*homm)+1)+totalsm*(hosm+1);
mc.tween("_y", ypos, 0.5, "easeOutCubic");
} else {
var ypos = ((a-1)*homm)+1;
if (a == num) {
nypos = ypos;
mc.tween("_y", ypos, 0.5, "easeOutCubic", 0, onEnd(num, nypos));
} else {
mc.tween("_y", ypos, 0.5, "easeOutCubic");
}
}
a++;
}
_root.collapsed = false;
} else {
contractMenu()
_root.collapsed = true;
}
}
function onEnd(num, nypos) {
_root.num = num;
createSubMenu(num, nypos);
}
function contractMenu() {
var c = 1;
while (c<=submenu_array.length) {
removeMovieClip("subnav"+c+"_mc");
removeMovieClip("mask"+c+"_mc");
c++;
}
var g = 1;
while (g<=mm_array.length) {
ypos = ((g-1)*homm)+1;
this["mainnav"+g+"_mc"].tween("_y", ypos, 0.5, "easeOutCubic");
g++;
}
}
function createSubMenu(num, nypos) {
var array = "sm"+num+"_array";
var totalsm = eval(array).length;
var ypos = nypos+4;
var c = 1;
while (c<=submenu_array.length) {
removeMovieClip("subnav"+c+"_mc");
removeMovieClip("mask"+c+"_mc");
c++;
}
submenu_array = [];
var a = 1;
while (a<=totalsm) {
ypos = ypos+hosm+1;
attachMovie("subnav_mc", "subnav"+a+"_mc", a+30, {_x:0, _y:ypos});
if (num != mm_array.length) {
attachMovie("mask_mc", "mask"+a+"_mc", a+990, {_x:0, _y:0});
mask_mc = this["mask"+a+"_mc"];
mask_mc._alpha = 10;
mask_mc.onEnterFrame = function() {
this._height = _parent.container_mc["mainnav"+mm_array.length+"_mc"]._y;
};
this["subnav"+a+"_mc"].setMask(mask_mc);
}
nc = this["subnav"+a+"_mc"];
nc._alpha = 0;
nc.itemnum = a;
nc.menutext = eval(array)[(a-1)];
nc.alphaTo(100, 2);
trace ("main"+num+"_"+a+"sub.swf");
nc.onRelease = function() {// Function to get submenu actions needs to go here
var my_str:String = new String(this);
//_root.select = my_str.slice(18);
};
submenu_array.push("subnav"+a+"_mc");
a++;
}
}
// Build Menu -----------------------------------------------------------------------
_root.collapsed = true;
createMainMenu();
View Replies !
View Related
Cascading Menu From A Database
Is there a fla out there that creates a cascading rollover menu similar to the one at http://www.microsoft.com's homw page?
I need to create a menu like that, that is build from a database query (perhaps with XML).
It must support an unlimited number of submenus!
View Replies !
View Related
Cascading Menu Problems
Hi all,
I'm trying to get a cascading menu working, but right now it's giving me headache. (see attachment)
What I've done:
- button with tellTarget that makes a movie play which contains the
submenu buttons on mouseover
- same button with tellTarget that tells the movie to hide the buttons on rollout/click.
on (rollOver) {
tellTarget ("sub1") {
gotoAndPlay (2);
}
tellTarget ("submenu_egotrip") {
gotoAndPlay (2);
}
}
on (release, rollOut) {
tellTarget ("sub1") {
gotoAndPlay (12);
}
tellTarget ("submenu_egotrip") {
gotoAndStop (8);
}
}
on (press) {
getURL ("egotrip.php", "content");
}
It works, the problem is when I go over the submenu buttons it fools around. Probably this has to do with the fact that the 2 buttons are on top of the main button?
Anyhow - any tips, solutions for this would be warmly appreciated.
Thanks,
step
ps. see attachment
View Replies !
View Related
My Cascading Menu Colapse When I Get URL ? WHY?
Hey there
I have created a vertical cascading menu.
You can see it here:
http://www.vogelius.dk/albertslund/forebyggende.htm
If you press the topic "behandlinger" then it opens the menu and there is three sub topics "forbyggende", "bevarende" and "erstattende".
when i press...lets say "bevarende" i have made an:
_____________________
on(press, release){
getURL("http://www.vogelius.dk/albertslund/bevarende.htm");
}
_____________________
The flash file is made to stay open...but when i get the html, then the menu is back to start...
HOW DO I GET FLASH TO STAY OPEN, even when it changes the HTML ???
What code do i need to put in with the GET URL???
Please help...i'm on a deadline here :-)
THANKS
So MUCH
Jimmy
Mirrorman
View Replies !
View Related
[F8] Cascading Menu Trouble
i'm trying to use this - link to create a menu structure. I've managed to customise the look and the menu names, but I need the links to load various swf files.
here's the code
Code:
// Variables -----------------------------------------------------------------------
// Height of Mainmenu items
var homm = 20;
// Height of Submenu items
var hosm = 15;
// mm_array contains the main menu, sm#_array contains the sub menu items for menu #
var mm_array:Array = ["Printed Publications", "Web & Multimedia", "3D", "Exhibitions", "Maps & Plans", "Illustrations"];
var sm1_array:Array = ["Submenu 1", "Submenu 2", "Submenu 3", "Submenu 4"];
var sm2_array:Array = ["Submenu 1"];
var sm3_array:Array = ["Submenu 1", "Submenu 2", "Submenu 3", "Submenu 4", "Submenu 5"];
var sm4_array:Array = ["Submenu 1", "Submenu 2", "Submenu 3", "Submenu 4", "Submenu 5", "Submenu 2", "Submenu 3", "Submenu 4", "Submenu 2", "Submenu 3", "Submenu 4"];
var sm5_array:Array = ["Submenu 1", "Submenu 2", "Submenu 3", "Submenu 4", "Submenu 5"];
var sm6_array:Array = ["Submenu 1", "Submenu 2", "Submenu 3", "Submenu 4", "Submenu 5"];
var submenu_array:Array = [];
// Functions ------------------------------------------------------------------------
_global.$tweenManager.broadcastEvents = true;
// Main menu
function createMainMenu() {
var a = 1;
var total = mm_array.length;
while (a<=total) {
ypos = ((a-1)*homm)+1;
attachMovie("mainnav_mc", "mainnav"+a+"_mc", this.getNextHighestDepth()+100, {_x:0, _y:ypos});// attach the movieClip
var nc = this["mainnav"+a+"_mc"];
nc.menutext = mm_array[(a-1)];// set the title text for each button
nc.itemnum = a;// set the menu #
a++;
}
}
function moveMenu(num) {
if ((_root.collapsed == true) || (_root.selectedmenu != num)) {
var array = "sm"+num+"_array";
var totalsm = eval(array).length;
var totalmm = mm_array.length;
var a = 1;
while (a<=totalmm) {
mc = this["mainnav"+a+"_mc"];
if (a>num) {
var ypos = (((a-1)*homm)+1)+totalsm*(hosm+1);
mc.tween("_y", ypos, 0.5, "easeOutCubic");
} else {
var ypos = ((a-1)*homm)+1;
if (a == num) {
nypos = ypos;
mc.tween("_y", ypos, 0.5, "easeOutCubic", 0, onEnd(num, nypos));
} else {
mc.tween("_y", ypos, 0.5, "easeOutCubic");
}
}
a++;
}
_root.collapsed = false;
} else {
contractMenu()
_root.collapsed = true;
}
}
function onEnd(num, nypos) {
_root.num = num;
createSubMenu(num, nypos);
}
function contractMenu() {
var c = 1;
while (c<=submenu_array.length) {
removeMovieClip("subnav"+c+"_mc");
removeMovieClip("mask"+c+"_mc");
c++;
}
var g = 1;
while (g<=mm_array.length) {
ypos = ((g-1)*homm)+1;
this["mainnav"+g+"_mc"].tween("_y", ypos, 0.5, "easeOutCubic");
g++;
}
}
function createSubMenu(num, nypos) {
var array = "sm"+num+"_array";
var totalsm = eval(array).length;
var ypos = nypos+4;
var c = 1;
while (c<=submenu_array.length) {
removeMovieClip("subnav"+c+"_mc");
removeMovieClip("mask"+c+"_mc");
c++;
}
submenu_array = [];
var a = 1;
while (a<=totalsm) {
ypos = ypos+hosm+1;
attachMovie("subnav_mc", "subnav"+a+"_mc", a+30, {_x:0, _y:ypos});
if (num != mm_array.length) {
attachMovie("mask_mc", "mask"+a+"_mc", a+990, {_x:0, _y:0});
mask_mc = this["mask"+a+"_mc"];
mask_mc._alpha = 10;
mask_mc.onEnterFrame = function() {
this._height = _parent.container_mc["mainnav"+mm_array.length+"_mc"]._y;
};
this["subnav"+a+"_mc"].setMask(mask_mc);
}
nc = this["subnav"+a+"_mc"];
nc._alpha = 0;
nc.itemnum = a;
nc.menutext = eval(array)[(a-1)];
nc.alphaTo(100, 2);
trace ("main"+num+"_"+a+"sub.swf");
nc.onRelease = function() {// Function to get submenu actions needs to go here
var my_str:String = new String(this);
//_root.select = my_str.slice(18);
};
submenu_array.push("subnav"+a+"_mc");
a++;
}
}
// Build Menu -----------------------------------------------------------------------
_root.collapsed = true;
createMainMenu();
I'm tried putting
trace ("main"+num+"_"+[(a-1)]+".swf");
in the onRelease function at the end of the code, but it just returns the main menu number and the total number of sub menu items rather than the individual submenu number. if you put the trace function in before the onRelease command it returns all the submenu names...
i'm seriously confused, any help would be really appreciated!
View Replies !
View Related
Cascading Drop-down Menu. Help Please
Hi all Small problem, just wondering if anyone could help.
I am trying to create a new menu system for a website using flash 8. (see attached)
The premise is that when the user rolls over one section in the menu, a small drop down area appears revealing the relevant subsections for that section underneath. Fairly standard really.
So I've set up all the animations for each section (so each section has a 'drop down' animation and a 'fold away' animation) but the problem I am having is getting the sections to animation as and when the users would want them to.
I am having conflicts when the user is rolling over one section before the previous section has had time to 'fold away'. Its hard to explain but if you download the file you will see what I mean right away. I just need to somehow say to all the animations "don’t do anything until the other animation has stopped".
I’ve tried adding a if statement to say if "animating" is true then wait until "animating" is false, but no joy .
I’m contemplating starting from scratch with another concept but i figured id ask u guys before all hope was lost
Any help is greatly appreciated. Thanks
View Replies !
View Related
Customising Cascading Menu
Hi Everyone
I have modified the Simon Coulton Cascading Menu. Everything works fine, but I would like certain subnavigations to appear open when certain pages load. I would like to do this by sending a variable to flash form where the flash file is embedded in html. I have done this many times before, but do not know how to modify this script to initiate the submenu based on this variable.
Any help appreciated.
I have attached the original zip and my edited .fla
-----------------------------------------------------------------------
// Variables -----------------------------------------------------------------------
// Height of Mainmenu items
var homm = 30;
// Height of Submenu items
var hosm = 22;
// mm_array contains the main menu, sm#_array contains the sub menu items for menu #
var mm_array:Array = ["HOMEPAGE", "THE RESORT", "PURCHASE OPTIONS", "WHY MAURITIUS?", "GALLERY", "DOWNLOADS", "NEWS", "GETTING THERE", "SALES ENQUIRIES"];
var sm1_array:Array = [];
var sm2_array:Array = ["OVERVIEW", "FACILITIES", "ARCHITECTURAL DESIGN", "FAQ'S", "THE DEVELOPERS", "PROFESSIONAL TEAM"];
var sm3_array:Array = ["VILLAS", "APARTMENTS", "HOTEL"];
var sm4_array:Array = ["THE ISLAND", "INVESTMENT OPPORTUNITY"];
var sm5_array:Array = ["PHOTO GALLERY", "PROGRESS GALLERY"];
var sm6_array:Array = [];
var sm7_array:Array = ["MEDIA COVERAGE", "EMAIL NEWSLETTER", "MEDIA IMAGE LIBRARY"];
var sm8_array:Array = [];
var sm9_array:Array = [];
var submenu_array:Array = [];
// Functions ------------------------------------------------------------------------
_global.$tweenManager.broadcastEvents = true;
// Main menu
function createMainMenu() {
var a = 1;
var total = mm_array.length;
while (a<=total) {
ypos = ((a-1)*homm)+1;
attachMovie("tester", "tester", 990, {_x:0, _y:291});
attachMovie("mainnav_mc", "mainnav"+a+"_mc", this.getNextHighestDepth()+100, {_x:0, _y:ypos});// attach the movieClip
var nc = this["mainnav"+a+"_mc"];
nc.menutext = mm_array[(a-1)];// set the title text for each button
nc.itemnum = a;// set the menu #
a++;
}
}
function moveMenu(num) {
if ((_root.collapsed == true) || (_root.selectedmenu != num)) {
var array = "sm"+num+"_array";
var totalsm = eval(array).length;
var totalmm = mm_array.length;
var a = 1;
while (a<=totalmm) {
mc = this["mainnav"+a+"_mc"];
if (a>num) {
var ypos = (((a-1)*homm)+1)+totalsm*(hosm+1);
mc.tween("_y", ypos, 0.5, "easeOutCubic");
tester.tween("_y", ypos + 50, 0.5, "easeOutCubic");
} else {
var ypos = ((a-1)*homm)+1;
if (a == num) {
nypos = ypos;
mc.tween("_y", ypos, 0.5, "easeOutCubic", 0, onEnd(num, nypos));
tester.tween("_y", ypos + 50, 0.5, "easeOutCubic", 0, onEnd(num, nypos));
} else {
mc.tween("_y", ypos, 0.5, "easeOutCubic");
tester.tween("_y", ypos + 50, 0.5, "easeOutCubic");
}
}
a++;
}
_root.collapsed = false;
} else {
contractMenu()
_root.collapsed = true;
}
// Function to get main menu actions needs to go here
if (array == "sm1_array"){
getURL("/","_self","get");
trace ("Goto 1");
}
else if (array == "sm6_array"){
getURL("/downloads","_self","get");
trace ("Goto 6");
}
else if (array == "sm8_array"){
getURL("/getting-there","_self","get");
trace ("Goto 8");
}
else if (array == "sm9_array"){
getURL("/sales","_self","get");
trace ("Goto 9");
}
}
function onEnd(num, nypos) {
_root.num = num;
createSubMenu(num, nypos);
}
function contractMenu() {
var c = 1;
while (c<=submenu_array.length) {
removeMovieClip("subnav"+c+"_mc");
removeMovieClip("mask"+c+"_mc");
c++;
}
var g = 1;
while (g<=mm_array.length) {
ypos = ((g-1)*homm)+1;
this["mainnav"+g+"_mc"].tween("_y", ypos, 0.5, "easeOutCubic");
tester.tween("_y", ypos + 50, 0.5, "easeOutCubic");
g++;
}
}
function createSubMenu(num, nypos) {
var array = "sm"+num+"_array";
var totalsm = eval(array).length;
var ypos = nypos+4;
var c = 1;
while (c<=submenu_array.length) {
removeMovieClip("subnav"+c+"_mc");
removeMovieClip("mask"+c+"_mc");
c++;
}
submenu_array = [];
var a = 1;
while (a<=totalsm) {
ypos = ypos+hosm+1;
attachMovie("subnav_mc", "subnav"+a+"_mc", a+30, {_x:0, _y:ypos});
if (num != mm_array.length) {
attachMovie("mask_mc", "mask"+a+"_mc", a+990, {_x:-100, _y:0});
mask_mc = this["mask"+a+"_mc"];
mask_mc._alpha = 10;
mask_mc.onEnterFrame = function() {
this._height = _parent.container_mc["mainnav"+mm_array.length+"_mc"]._y;
};
this["subnav"+a+"_mc"].setMask(mask_mc);
}
nc = this["subnav"+a+"_mc"];
nc._alpha = 0;
nc.itemnum = a;
nc.menutext = eval(array)[(a-1)];
nc.alphaTo(100, 2);
nc.onRelease = function() {
// Function to get submenu actions needs to go here
var my_str:String = new String(this);
trace ("Main Item:" + _root.num);
trace ("Sub Item:" + my_str.slice(27));
// Resort Dropdown
if (_root.num == 2){
if (my_str == "_level0.container_mc.subnav1_mc"){
getURL("/overview","_self","get");
trace ("Goto 1");
}
if (my_str == "_level0.container_mc.subnav2_mc"){
getURL("/facilities","_self","get");
trace ("Goto 2");
}
if (my_str == "_level0.container_mc.subnav3_mc"){
getURL("/architectural-design","_self","get");
trace ("Goto 3");
}
if (my_str == "_level0.container_mc.subnav4_mc"){
getURL("/faqs","_self","get");
trace ("Goto 4");
}
if (my_str == "_level0.container_mc.subnav5_mc"){
getURL("/developers","_self","get");
trace ("Goto 5");
}
if (my_str == "_level0.container_mc.subnav6_mc"){
getURL("/professional-team","_self","get");
trace ("Goto 6");
}
}
// Purchase Options Dropdown
if (_root.num == 3){
if (my_str == "_level0.container_mc.subnav1_mc"){
getURL("/villas","_self","get");
trace ("Goto 1");
}
if (my_str == "_level0.container_mc.subnav2_mc"){
getURL("/apartments","_self","get");
trace ("Goto 2");
}
if (my_str == "_level0.container_mc.subnav3_mc"){
getURL("/hotel","_self","get");
trace ("Goto 3");
}
}
// Why Mauritius Dropdown
if (_root.num == 4){
if (my_str == "_level0.container_mc.subnav1_mc"){
getURL("/why-mauritius","_self","get");
trace ("Goto 1");
}
if (my_str == "_level0.container_mc.subnav2_mc"){
getURL("/investment-opportunity","_self","get");
trace ("Goto 2");
}
}
// Gallery Dropdown
if (_root.num == 5){
if (my_str == "_level0.container_mc.subnav1_mc"){
getURL("/gallery","_self","get");
trace ("Goto 1");
}
if (my_str == "_level0.container_mc.subnav2_mc"){
getURL("/progress-gallery","_self","get");
trace ("Goto 2");
}
}
// News Dropdown
if (_root.num == 7){
if (my_str == "_level0.container_mc.subnav1_mc"){
getURL("/news","_self","get");
trace ("Goto 1");
}
if (my_str == "_level0.container_mc.subnav2_mc"){
getURL("/news-letter","_self","get");
trace ("Goto 2");
}
if (my_str == "_level0.container_mc.subnav3_mc"){
getURL("/media-image-library","_self","get");
trace ("Goto 3");
}
}
};
submenu_array.push("subnav"+a+"_mc");
a++;
}
}
// Build Menu -----------------------------------------------------------------------
_root.collapsed = true;
createMainMenu();
View Replies !
View Related
1st Post - Cascading Menu
Hi, I am new here, as well as new to advance as. I urgently need help as I am stuck with this part of the project.
I've downloaded a source file from flashkit.com, and I intend to use it. unfortunately my limited knowledge hinders me.
Is it possible that I use loadMovie func instead of attachMovie function, how do I add it in that case, I want to loadMovie to an Instant on the stage. if loadMovie is not possible where do I put the mc?
Thanks a bunch
View Replies !
View Related
Cascading Menu Driven By XML
Okay I have the menu that hga77 built but I want to add a few attributes to it. Everytime I add the attributes I get more buttons for somereason or another and the function does not work like it should. Hga77's script is easy to follow but difficult to moddify.
I want to add something like the following to his menu so I can set everything up in the XML file.
vt.menuObj["item"+j].what = menu_xml.firstChild.childNode[i].attributes.what;
vt.menuObj["item"+j].where = menu_xml.firstChild.childNodes{i].attributes.where;
vt.menuObj["item"+j].the_type = menu_xml.firstChild.childNodes[i].attributes.type;
and then be able to have either the main buttons or the sub buttons do the following function:
onRelease = function() {
if (this.the_type != undefined) {
if ((this.the_type == "geturl") or (this.the_type == "getURL")) {
unloadMovie(_root.dropZone);
getURL(this.what, this.where);
}
if ((this.the_type == "gotoAndPlay") or (this.the_type == "gotoandplay")) {
unloadMovie(_root.dropZone);
tellTarget (this.where) {
gotoAndPlay(this.what);
}
}
if ((this.the_type == "gotoAndStop") or (this.the_type == "gotoandstop")) {
unloadMovie(_root.dropZone);
tellTarget (this.where) {
gotoAndStop(this.what);
}
}
if ((this.the_type == "loadMovie") or (this.the_type == "loadmovie")) {
loadMovie(this.what, this.where);
}
if ((this.the_type == "attachMovie") or (this.the_type == "attachmovie")) {
tellTarget (this.where) {
attachMovie(this.what, this.what+i, i);
}
}
if ((this.the_type == "fsCommand") or (this.the_type == "fscommand")) {
unloadMovie(_root.dropZone);
fscommand(this.what, this.where);
}
if ((this.the_type == "function") or (this.the_type == "Function")) {
unloadMovie(_root.dropZone);
eval(this.where)[this.what]();
}
}
};
View Replies !
View Related
Controlling A Cascading Menu Externally
i have a dynamic three-level cascading menu that my client needs to be able to control externally (from within Authorware), (perhaps using something like ExpandMenuTo(*,*,*), he says)... the problem is, the menu is built using the data contained in an external file with this AS:
:::::::::::::::::::::::::::
on (release) {
tellTarget ("/prev") {
gotoAndStop(1);
}
// This is the part where we load the .swf or whatever
loadMovieNum (url, 10);
getURL(url, 10, "post");
// ----------------------------!!!!--------------------------
/:wo = pos;
/:next = eval("/os" add Number(pos+1));
/rev = eval("/os" add Number(pos-1));
/:titel = t_name;
/:header = /:titel;
i = 0;
// set all titels inactive
while (Number(i)<Number(../:t_anz)) {
i = i+1;
tellTarget ("../:" add i) {
gotoAndStop("normal");
}
z = 0;
// set all chapters inactive
while (Number(z)<Number(eval("../:k_anz_t" add i))) {
z = z+1;
tellTarget ("../:" add i add "-" add z) {
gotoAndStop("normal");
}
g = 0;
// set all sub-chapters inactive
while (Number(g)<Number(eval("../:u_k_anz_t" add i add "_k" add z))) {
g = g+1;
tellTarget ("../:" add i add "-" add z add "-" add g) {
gotoAndStop("normal");
}
// get rid of the sub-chapters...
setProperty(i add "-" add z add "-" add g, _visible, 0);
}
}
}
// infos 4 positioning
/:active2 = "";
/:active = _name;
tellTarget ("/") {
gotoAndPlay(6);
}
// last but not least... set this button active
gotoAndStop("active");
}
:::::::::::::::::::::::::::::
there is, of course, more code elsewhere...
i sure could use someone's help in getting these different levels controlled from outside... anyone?
thanks,
glenn
View Replies !
View Related
Cascading Menu, Buttons Move To Top
I am looking into creating a menu that has a list of options and when you click and of the options in the list, the one you click moves to the top of the list and the others items make way.
e.g.
bread
cheese
bacon
eggs
click bacon
list then reads as
bacon
bread
cheese
eggs
they will be animated
any ideas or relevant movies, tuts to looks at.
Thanks
ds
View Replies !
View Related
Dynamic Cascading Menu Problem
Hi,
i was looking at an example of a dynamic cascading menu. Its being created by the use of arrays. Now what i dont get is, how to tell the actionscript to start a certain mc when you select a submenu.
Code:
var homm = 20;
var hosm = 15;
var mm_array:Array = ["Biografie", "Recensies", "Contacteer", "Gallerij"];
var sm1_array:Array = ["Studies", "Curriculum Vitae"];
var sm2_array:Array = ["Recensies"];
var sm3_array:Array = ["Adres", "Email", "Webmaster"];
var sm4_array:Array = ["Sculpturen", "Schilderijen"];
var submenu_array:Array = [];
_global.$tweenManager.broadcastEvents = true;
function createMainMenu() {
var a = 1;
var total = mm_array.length;
while (a<=total) {
ypos = ((a-1)*homm)+1;
attachMovie("mainnav_mc", "mainnav"+a+"_mc", this.getNextHighestDepth()+100, {_x:0, _y:ypos});
var nc = this["mainnav"+a+"_mc"];
nc.menutext = mm_array[(a-1)];
nc.itemnum = a;
a++;
}
}
function moveMenu(num) {
if ((_root.collapsed == true) || (_root.selectedmenu != num)) {
var array = "sm"+num+"_array";
var totalsm = eval(array).length;
var totalmm = mm_array.length;
var a = 1;
while (a<=totalmm) {
mc = this["mainnav"+a+"_mc"];
if (a>num) {
var ypos = (((a-1)*homm)+1)+totalsm*(hosm+1);
mc.tween("_y", ypos, 0.5, "easeOutCubic");
} else {
var ypos = ((a-1)*homm)+1;
if (a == num) {
nypos = ypos;
mc.tween("_y", ypos, 0.5, "easeOutCubic", 0, onEnd(num, nypos));
} else {
mc.tween("_y", ypos, 0.5, "easeOutCubic");
}
}
a++;
}
_root.collapsed = false;
} else {
contractMenu()
_root.collapsed = true;
}
}
function onEnd(num, nypos) {
_root.num = num;
createSubMenu(num, nypos);
}
function contractMenu() {
var c = 1;
while (c<=submenu_array.length) {
removeMovieClip("subnav"+c+"_mc");
removeMovieClip("mask"+c+"_mc");
c++;
}
var g = 1;
while (g<=mm_array.length) {
ypos = ((g-1)*homm)+1;
this["mainnav"+g+"_mc"].tween("_y", ypos, 0.5, "easeOutCubic");
g++;
}
}
function createSubMenu(num, nypos) {
var array = "sm"+num+"_array";
var totalsm = eval(array).length;
var ypos = nypos+4;
var c = 1;
while (c<=submenu_array.length) {
removeMovieClip("subnav"+c+"_mc");
removeMovieClip("mask"+c+"_mc");
c++;
}
submenu_array = [];
var a = 1;
while (a<=totalsm) {
ypos = ypos+hosm+1;
attachMovie("subnav_mc", "subnav"+a+"_mc", a+30, {_x:0, _y:ypos});
if (num != mm_array.length) {
attachMovie("mask_mc", "mask"+a+"_mc", a+990, {_x:0, _y:0});
mask_mc = this["mask"+a+"_mc"];
mask_mc._alpha = 10;
mask_mc.onEnterFrame = function() {
this._height = _parent.container_mc["mainnav"+mm_array.length+"_mc"]._y;
};
this["subnav"+a+"_mc"].setMask(mask_mc);
}
nc = this["subnav"+a+"_mc"];
nc._alpha = 0;
nc.itemnum = a;
nc.menutext = eval(array)[(a-1)];
nc.alphaTo(100,2);
nc.onRelease = function() {
var my_str:String = new String(this);
_root.select = my_str.slice(18);
};
submenu_array.push("subnav"+a+"_mc");
a++;
}
}
_root.collapsed = true;
createMainMenu();
Any help would be appreciated, as i am not familiar with this type of workflow.
Kind regards,
Ariff
View Replies !
View Related
Controlling A Cascading Menu Externally
i have a cascading menu that expands to a number of tiers depending on the variables in an external txt file - my client needs to be able to control the flow of the menu externally, if possible (from within Authorware...)...
is there a way to control a Movie externally?
thanks
glenn
View Replies !
View Related
LF Cascading/Drop Menu Tutorial For MX 2004
I have yet to find a tutorial on how to create a cascading menu like the one featured here for Flash MX 2004. I need to have the bottom buttons move down when buttons above them are clicked and the submenus appear...hope that makes sense.
Any suggestions or words of encouragement?
Thanks!
View Replies !
View Related
LF Cascading/Drop Menu Tutorial For MX 2004
I have yet to find a tutorial on how to create a cascading menu like the one featured here for Flash MX 2004. I need to have the bottom buttons move down when buttons above them are clicked and the submenus appear...hope that makes sense.
Any suggestions or words of encouragement?
Maybe I'm using the wrong term for the style of menu...
Thanks!
View Replies !
View Related
Cascading Combo Box Help
Hi,
I was wondering if anyone could help me with cascading combo boxes. I've looked around everywhere and haven't been able to find much about them for flash. I have an xml file with a list of subjects. Each subject has its correlating set of multiple choice questions. I can get the first combo box to load the different subjects but wat I need now is for the second combo box to load the multiple choice questions based on the subject selected.
Any help would be greatly appreciated! Thanx!
View Replies !
View Related
What Do I Do With A Css (cascading Style Sheet)
I have been working on my website and one day, in my email, I got an email concerning my website. Along with that email was a .css for my website. I have no idea what it is and what to do with it. and I feel like a stupid person by asking him about it. I mean he already took the trouble of making a css I cant ask more of him. So what is a css and what do I do with it and also how to do you make them? thanks in advance
View Replies !
View Related
McTween: Cascading Tweens
I want to fade a series of pictures one after the other, such that they'll loop around. I'm calling this a cascade.
So to do this, i've placed all of the image names into an array and I set all of their alpha properties to 100 to begin with. I think I then need a for loop that will iterate through the images, fading the image down to 0, waiting for a set period of time and then moving on.
Unfortunately, mcTween will fade all of the images at once in the for loop, so I need to prevent a tween from starting until the one before it has finished. I thought I could achieve this using a while loop and the isTweening property, but when I try and preview the flash movie it just gets into a recurring loop and the program hangs, and has to be exited.
What is the correct way to do this?
Code:
#include "mc_tween2.as"
var countInterval;
var images:Array = new Array();
images = [wine_mc, sunset_mc, poppies_mc, pool_mc, eastView_mc]
wine_mc._alpha = 100;
eastView_mc._alpha = 100;
pool_mc._alpha = 100;
sunset_mc._alpha = 100;
poppies_mc._alpha = 100;
for(var i = 0; i < images.length; i++){
_root[images[i]].alphaTo(0,1,"linear")
while(_root[images[i]].isTweening()) {
//do nothing
}
}
I haven't gotten around to pausing between tweens, but I believe I used setInterval to pause execution before. I seem to remember someone telling me that this isn't the best way to pause execution anymore. Can anyone clarify this?
many thanks!
Daf
View Replies !
View Related
Cascading Functions From Events
HI, I have a big doubt about loaders:
When loading video, pictures or XML data, an event is dispatched when the load process is finished, then a function is called to do whatever I want to do with the loaded data.
So all subsequent instructions must be inside the called function. In if I need more data loads, I find myself diving into nested functions, and I dont like it.
Is there any other approach for these things?
Regards: Miguel
View Replies !
View Related
ContextMenu Cascading/Sub Menus
In the default context menu, there's the quality adjustment settings with a sub menu for the low, medium, high.
I know how to manipulate the menu at the top level just fine (so don't worry about having to explain how to use the ContextMenu classes), I'm just wondering if it's possible to create sub-menus like that quality one. I searched through the archives, couldn't find anything useful to this end, so thanks to anyone who has thoughts or can point me to an existing tutorial on submenus.
Thanks!
View Replies !
View Related
Load Movies - Cascading Window System
Hey guys,
I am building a site, and for each page I am using a draggable window.
Each window is in a seperate swf file, so the need to be loaded.
I am going to have the windows cascading so you have to close them to get rid of them.
However i thought it would be nice so when you clicked the tab of a window, which is hidden beneath any other windows that are open, it pops up to the front, just like microsoft windows really.
I was just wondering how i would do this, i thought about loading the swf's into levels, and thought maybe there was a script which could swap levels or something.
Any ideas or a link to an oline tutorial?
any help would be great.
Thanks in advance.
Simon
View Replies !
View Related
Load Movies - Cascading Window System
Hey guys,
I am building a site, and for each page I am using a draggable window.
Each window is in a seperate swf file, so the need to be loaded.
I am going to have the windows cascading so you have to close them to get rid of them.
However i thought it would be nice so when you clicked the tab of a window, which is hidden beneath any other windows that are open, it pops up to the front, just like microsoft windows really.
I was just wondering how i would do this, i thought about loading the swf's into levels, and thought maybe there was a script which could swap levels or something.
Any ideas or a link to an oline tutorial?
any help would be great.
Thanks in advance.
Simon
View Replies !
View Related
"cascading" Text Smaller To Larger
Hi
I am trying to design animation that "cascades" numbers from 0-9 (smaller to bigger) on a mouse roll over and then the reverse on mouse roll out. Know what I mean?
Can any one direct me to a tutorial please? I have searched this site but nothing seems relevant to what I am trying to do>
PLEASE!
Thanks
View Replies !
View Related
Flash Menu With Multiple HTML Pages - How To Pass Variable To Menu On Refresh?
please note this topic is also posted at AS under this title:
Flash Menu 4 HTML pages - pass variables on page refresh
-----------------------------------------------------------------------
So the subject is a hint as to how hard it is to search on this simple idea.
Will be very greatful for some help today!
PROBLEM DETAILS:
I am building a swf menu for an HTML site. It has the following buttons:
SectionA
SectionB
SectionC
What I want to do is modify the text when the HTML page for the correspoding section is loaded. So, if I click on "SectionB", SectionB.html loads. Now I want that button "SectionB" in the swf to have a background glow.
Of course the catch is, that each time a new HTML page loads, it reloads the swf menu (No Frames please!). So, naturally I know I can just tell the swf menu to go to a certain place in the timeline where there is the glow graphic behind "SectionB". But the swf needs a variable saying it is on a Section B HTML page. (of course I could build a seperate swf for each section - but that seems stupid.)
THUS....
MY QUESTION:
How do I pass a variable from a swf on one HTML page (that is being replaced by a new HTML page!), to a swf on a new HTML page.
Can I do this with a GET/POST or something?
Thanks!
-AB
Birdsong is online now Edit/Delete Message
View Replies !
View Related
Drop Down Menu PROBLEM-Down State For Sub-menu Item Linked To External SWFs?
Hi nice to meet everyone. The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load in the empty movie clip on the main movie stage. Everything loads perfectly no problem. I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosphy(menu item). When the 'philosphy' swf loads how do I get the 'philosphy' button that is in the main movie to show the 'down' state until another button is pressed on the menu? I hope I explained myself clear enough without confusing anyone!
Below is a sample of the code that I currently have on the the regular buttons that DO NOT sub-menu items:
on (release) {
gotoAndStop("home");
_root.contents.loadMovie("home.swf");
}
And here is the code that I currently have on the main buttons that have sub-menu items:
on (release) {
_root.contents.loadMovie("philosphy2.swf");
setProperty("_root.home", _visible, "0");
}
I have searched everywhere on the net, tutorials and still can't find the answer, I've been working on this for almost a week now and I just can't get it right.
Thanks again your help is greatly appreciated!
View Replies !
View Related
Dynamic Menu AS2.0/XML - Seperating Main Menu Title MC From Dropdown Item's MC
Hi everyone, this is my first post in this forum, I appreciate all the help
I've got a dynamic menu using AS2.0 that's being populated by an XML file, it's quite complete and is working fine, the only thing I'm having trouble with is assigning a new MC to the Titles so the visual design (Text and background) can be different from the rest of the dropdown menu.
What would have to be done to capture the menuNodes and isolate them form the rest. Below is the XML that I’m using, the highlighted (red, bold, italic) text below is what I’d like to capture and seperate from the rest of the submenus for the menu title in my flash project.
XML
----------------------------------------------
<?xml version="1.0"?>
<menu name="Atletas">
<menu name="Clubes">
<submenu name=""></submenu>
<submenu name="Botafogo">
<entry name="Player 1"/>
<entry name="Player 2"/>
<entry name="Player 3"/>
</submenu>
<submenu name="Flamengo">
<entry name="Player 1"/>
<entry name="Player 2"/>
<entry name="Player 3"/>
</submenu>
<submenu name="Flamengo">
<entry name="Player 1"/>
<entry name="Player 2"/>
<entry name="Player 3"/>
</submenu>
</menu>
<menu name="Atletas">
<submenu name="Gilberto"></submenu>
<submenu name="Jose"></submenu>
<submenu name="Joao"></submenu>
</menu>
<menu name="Posicoes">
<submenu name="Atacante">
<entry name="Gilberto"/>
</submenu>
<submenu name="Meio">
<entry name="Jose"/>
</submenu>
<submenu name="Zagueiro">
<entry name="Joao"/>
</submenu>
</menu>
</menu>
----------------------------------------------------------
attached is the screencapture of my flash design to understand what I'm talking about a little better.
Thanks for all the help
View Replies !
View Related
Drop Down Menu-Down State For Sub-menu Item Linked To External SWFs?
Hi nice to meet everyone. The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load in the empty movie clip on the main movie stage. Everything loads perfectly no problem. I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosphy(menu item). When the 'philosphy' swf loads how do I get the 'philosphy' button that is in the main movie to show the 'down' state until another button is pressed on the menu? I hope I explained myself clear enough without confusing anyone!
Below is a sample of the code that I currently have on the the regular buttons that DO NOT sub-menu items:
ActionScript Code:
on (release) {
gotoAndStop("home");
_root.contents.loadMovie("home.swf");
}
And here is the code that I currently have on the main buttons that have sub-menu items:
ActionScript Code:
on (release) {
_root.contents.loadMovie("philosphy2.swf");
setProperty("_root.home", _visible, "0");
}
I have searched everywhere on the net, tutorials and still can't find the answer, I've been working on this for almost a week now and I just can't get it right.
Thanks again your help is greatly appreciated!
View Replies !
View Related
Highlighting Menu Option On Flash Menu In HTML Page
Hi Folks,
I have created a Flash menu to work with an HTML based site (the menu is the object in all the pages), but I would like the menu option to stay highlighted when clicked. I've created a series of buttons that highlight when they are scrolled over, but when they are clicked, the button returns to its normal state, as it should. I did come up with a not-so-nice solution, by loading a new movie whenever the user clicks on the option, and the new movie has the menu selection highlighted. Is there a way for the user to click on the menu option and have it stay highlighted until a new menu selection is clicked without having to create mutliple movies?
View Replies !
View Related
Docking Flash Menu/Menu That Stays On The Bottom Of The Screen
i have a site designed but im attempting to get the navigation to stay docked on the bottom of the screen.
i've spent hours searching the web trying to come up with the solution but haven't succeeded
what im trying to do can be seen on the following site: http://www.mcbd.co.uk/
i want the nav to stay on the bottom of the screen when the page is resized.
if anyone can point me in the right direction it would be greatly appreciated.
thanks
View Replies !
View Related
Flash Sliding Menu / Horizontal Dynamic Picture Menu
Hello,
I am quite fascinated by the effect used to scroll a variety of pictures left and right with the ability to halt on a particular picture to click and navigate to another area of a site. Could anyone point me to a tutorial on how this is done? An good example of the effect may be seen on this site:
http://www.calatrava.com (click on the "slide show" link)
Would appreciate any pointers. Thanks!
View Replies !
View Related
Is There Anyway To Disable The Flash Player Dropdown Menu (not The Context Menu)
Greetings,
I am aware of how to reset the right-click context menu to just "settings", but when the file is opened in Flash Player directly from a computer instead of on the web, the drop-down menu in the player is still available. You can even press ctrl+enter to play. My searches just come up with solutions to the right-click menu, and I have a client who wants me to get rid of this menu for a game I've already made.
If you don't think there's even a way to do this, could you just tell me that so I can inform my client?
Thank you either way
[Using MX 2004 if it matters]
View Replies !
View Related
Help With Pop Up Menu (Sub Menu Buttons) Linking To Frame On Main Timeline
Hi,
I really need help with my flash project. I've created a pop up menu by having 4 buttons on the main timeline which I made into a movie clip which has an instance name of menu_mc. Inside that movie clip I have my sub menu created and the menu works great. My only problem is that I can't seem to link the submenu buttons to the frames created on the main timeline. I've tried all the action script I can think of. One example I am using is
menu_mc.contact_btn.onfiltered= function() {
gotoAndStop("Scene 1", "contact");
}
This is where I am trying to link the Contact Button (which is a submenu button of the About button) to the contact frame which is located on the main timeline. Please help me if you can. Thanks.
View Replies !
View Related
Flash Sliding Menu / Horizontal Dynamic Picture Menu
Hello,
I am quite fascinated by the effect used to scroll a variety of pictures left and right with the ability to halt on a particular picture to click and navigate to another area of a site. Could anyone point me to a tutorial on how this is done? An good example of the effect may be seen on this site:
http://www.calatrava.com (click on the "slide show" link)
Would appreciate any pointers. Thanks!
View Replies !
View Related
Tightest Menu Structure - Switch/case? BEST MENU
I'm looking to start building a new menu. I want to script it as tight as possible. There will be 7 buttons. When one is pressed, I want it to stay "pressed" until another is pressed.
What is the tightest way to structure this? I want to keep all script off of the buttons themselves. I was wondering if using a switch/case type structure would be best.
I searched a bit for what i was looking for, but could not find it. Does anyone have a example/thread they could throw my way?
thx.
View Replies !
View Related
How To Highlight An Active Menu Item In A Flash Menu
Hi,
I have a flash menu and I want each menu item to be highlighted according to which page it is on (e.g. Highlight the 'about us' link when the user is in the about us section) to save having to create more than one swf. At the moment I have all the highlights made invisible like this:
highlightOne._visible = false;
But have no idea how to make the swf know what page it is on or how to make a highlight visible accordingly.
Can anyone help me out?
View Replies !
View Related
Menu Fades In On Rollover, But Buttons In Menu Not Working.
Hi,
My menuMC fades in to 100% when rollover the transparent button and fades outs upon rollout the transparent button.
However, the buttons in my menuMC is not working. Logically speaking, with the transparent button on top of my menu bar, it sorta blocked out my menu buttons. Any suggestions/other way around it ?
this script goes to my transparent button
ActionScript Code:
on(rollOver)
{
_root.menuMC.fade = "in";
}
on(rollOut)
{
_root.menuMC.fade = "out";
}
this script goes to my menuMc with buttons inside
ActionScript Code:
onClipEvent(load)
{
this._alpha = 0;
fade = 0;
}
onClipEvent(enterFrame)
{
if(fade == "out")
{
if(this._alpha > 0)
{
this._alpha -= 5;
}
else
{
fade = 0;
}
}
else if(fade == "in")
{
if(this._alpha < 100)
{
this._alpha += 5;
}
else
{
fade = 0;
}
}
}
Appreciate what helps i get.
View Replies !
View Related
How To: Create A Drop Down Menu With XML Data For Menu Items
Can anyone help by showing me or pointing me in the right direction of how I'd go about creating a drop down menu and populating the menu items from an XML file?
I'm creating a tour sort of thing and I have it pulling in the slides of the tour from an XML file and all the next/prev buttons are working fine. I wanted to add a drop down menu from the top that has the menu items pulling in from elements from the XML file. Possible? Ideas?
Thx
View Replies !
View Related
Menu Navigation Help Desperate Moving Menu Buttons
Hi On my flash site i have a list of buttons, when i rollover one of the buutons i want sub menu buttons to appear below it and push the other buttons down to make space, and on moue out the buttons to move back up to original place, how can i go abut doing this? hope someone can help really desperate
View Replies !
View Related
|