hi,
i'd like to add a 3rd level subsection to my menu. so far only the first two sections are showing up. i'm assuming the problem is with the loops, but can't figure out where? i'd appreciate if you'd tell me where my coding error is below:
onFrame (3) {
// some irrelevant stuff
for (dd=0;dd<sections.length;dd++)
{
text1.text = text1.text + " <br><font color='#009900'>sections: "+(dd+1)+"</font><br>heading=<b>"+ sections[dd].heading + "</b> subsections=<b>"+sections[dd].subSections.length +"</b> pagestyle=<b>" +sections[dd].style + "</b><br> content: text=<b>" +sections[dd].content.text+"</b><br> text_html=<b>" +sections[dd].content.text_html+ "</b><br> image=<b>" +sections[dd].content.image+ "</b><br> loadImage file=<b>" +sections[dd].content.loadImage +"</b><br>\n\n";
if(sections[dd].subsections)
{
for(ff=0;ff<sections[dd].subSections.length;ff++)
{
text1.text = text1.text + "<font color='#0000ff'>subsections: "+(ff+1)+"</font><br>heading=<b>"+ sections[dd].subSections[ff].heading + "</b> pagestyle=<b>" +sections[dd].subSections[ff].style + "</b><br> content: text=<b>" +sections[dd].subSections[ff].content.text+ "</b><br> text_html=<b>" +sections[dd].content.text_html+ "</b><br> image=<b>" +sections[dd].subSections[ff].content.image+ "</b><br> loadImage file=<b>" +sections[dd].subSections[ff].content.loadImage +"</b><br>\n\n";
if(sections[dd].subSections[ff].subsections)
{
for(gg=0;gg<sections[dd].subSections[ff].subSections.length;gg++)
{
text1.text = text1.text + "<font color='#0000ff'>subsections: "+(gg+1)+"</font><br>heading=<b>"+ sections[dd].subSections[ff].subSections[gg].heading + "</b> pagestyle=<b>" +sections[dd].subSections[ff].style + "</b><br> content: text=<b>" +sections[dd].subSections[ff].subSections[gg].content.text+ "</b><br> text_html=<b>" +sections[dd].content.text_html+ "</b><br> image=<b>" +sections[dd].subSections[ff].content.image+ "</b><br> loadImage file=<b>" +sections[dd].subSections[ff].content.loadImage +"</b><br>\n\n";
}
}
} // inner for loop
} // outer if
} // outer for loop
_parent.specsDone = true;
stop();
}
is for(gg=0;gg<sections[dd].subSections[ff].subSections.length;gg++) defined correct?
(just in case) below is the section defintions:
section3_2 = {
heading: "section 3.2",
subSections: [section3_2_1,section3_2_2],
style: "page_styles/text_and_loadimage.swf",
color_style: ["2","dark"],
content: {
text_html: "section3_2/content.html",
loadImage: "section3_2/image_to_load.txt"
}
}
section3_2_1 = {
heading: "section 3.2.1",
subSections: false,
style: "page_styles/text_and_loadimage.swf",
color_style: ["2","light"],
content: {
text_html: "section3_2_1/content.html",
loadImage: "section3_2_1/image_to_load.txt"
}
}
section3_2_2 = {
heading: "section 3.2.2",
subSections: false,
style: "page_styles/text_and_loadimage.swf",
color_style: ["2","medium"],
content: {
text_html: "section3_2_2/content.html",
loadImage: "section3_2_2/image_to_load.txt"
}
}
thank you,
atoosaah.
how to add 3rd level subsection?
Started by Atoosaah, Jan 10 2008 05:43 AM
4 replies to this topic
#1
Posted 10 January 2008 - 05:43 AM
#2
Posted 10 January 2008 - 10:22 AM
...is this site 56 "Partition" related?
wolf
wolf
#3
Posted 10 January 2008 - 02:04 PM
yes, it's site56.
i did a bit of search. it seems that there are a few people who have posted a similar question, but no good answer. so far the answer is that multi-leveled subsections are not supported. is that correct?
i did a bit of search. it seems that there are a few people who have posted a similar question, but no good answer. so far the answer is that multi-leveled subsections are not supported. is that correct?
Wolf Gross, on Jan 9 2008, 04:22 PM, said:
...is this site 56 "Partition" related?
wolf
wolf
#4
Posted 10 January 2008 - 02:23 PM
...it will be hard for people without having the template to help you - so I think you're better of at the site 56 forum.
wolf
wolf
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users













