|
-
dynamic menu template help
I am using flash 5 and a template that the company I work for wants to use for their web-site. it has a dynamic drop down menu. However the main menu .html links work but the drop down items do not.
could you please take a look at the code and let me know what the problem may be
Thank you in advance
Marvin Sanders
[email protected]
the code I am referring to is below.
NM_targetFrame = "Content";
NM_numberOfElements = 3;
NM_Element_1_Name = "About";
NM_Element_1_Summary = "This is who we are.";
NM_Element_1_URL = "About/About.html";
NM_Element_1_numberOfElements = 0;
NM_Element_2_Name = "Clients";
NM_Element_2_Summary = "A listing of our clients.";
NM_Element_2_URL = "Clients/Clients.html";
NM_Element_2_numberOfElements = 0;
NM_Element_3_Name = "Portfolio";
NM_Element_3_Summary = "This is what we do.";
NM_Element_3_URL = "Portfolio/television.html";
NM_Element_3_numberOfElements = 3;
NM_Element_3_1_Name = "Television";
NM_Element_3_1_Summary = "Examples of our latest television Productions.";
NM_Element_3_1_URL = "Portfolio/Television.html";
NM_Element_3_2_Name = "Radio";
NM_Element_3_2_Summary = "Check out some our latest radio Productions.";
NM_Element_3_2_URL = "../Portfolio/Radio.html";
NM_Element_3_3_Name = "Print";
NM_Element_3_3_Summary = "Here are some examples of are print work.";
NM_Element_3_3_URL = "Portfolio/Print.html";
//end of menu coding*************************** Stop **
NM_totalWidth = _width;
_xscale = 120;
_yxscale = 110;
primaryElement._visible = false;
stripOriginal._visible = false;
duplicateMovieClip ("stripOriginal", "strip", 100);
strip._visible = false;
function calculatePrimaryBoxWidth (c) {
return 10+(c*6);
}
duplicateMovieClip ("catchall", "cover", 2000);
cover._x = -x;
cover._y = 15;
cover._width = _parent._width;
cover._height = 100;
catchall._alpha = 0;
catchall._x = -_x;
catchall._y = -_y;
catchall._width = _parent._width;
catchall._height = _parent._height;
function create () {
leftOffset = 0;
myElements = new Array();
for (var i = 1; i<=NM_numberOfElements; i++) {
duplicateMovieClip ("primaryElement", "element_"+i, 1000+i);
p = this["element_"+i];
p._x = leftOffset;
n = this["NM_Element_"+i+"_Name"];
p.width = calculatePrimaryBoxWidth(n.length);
p.box._width = p.width;
p.text._x = p.width/2;
p.text.text = n.toLowerCase();
p.summary = this["NM_Element_"+i+"_Summary"];
p.url = this["NM_Element_"+i+"_URL"];
p.elementNumber = i;
leftOffset += p.width;
myElements.push(p);
}
}
create();
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|