|
|
#1 (permalink) |
|
Junior Member
Join Date: Sep 2009
Posts: 9
|
When I load my menu all of my level 1 items are targeting a blank html page as "undefined" when clicked and with
Code:
"item selected ="true" I have added the following code to my HTML doc with my flash object tag per flashPlayer 9 requirements with SWF+url's Code:
<param name="allowScriptAccess" value="always"> Code:
<menu>
<item selected="true" label="COMPANY HISTORY" >
<subitem label="Company Story" url="company_story.html" target="main"/>
<subitem label="Timeline" url="timeline.html" target="main"/>
</item>
<item label="CORPORATE PROFILE" >
<subitem label="Mission Statement" url="mission.html" target="main" />
<subitem label="Corporate Philosophy" url="philosophy.html" target="main" />
<subitem label="Brands" url="brands.html" target="main" />
</item>
<item label="CORPORATE INFORMATION" >
<subitem label="Associations" url="associations.html" target="main" />
<subitem label="Attorneys" url="attorneys.html" target="main" />
<subitem label="Auditors" url="auditors.html" target="main" />
<subitem label="Bank & Credit References" url="cred_ref.html" target="main" />
<subitem label="Custom Brokers" url="custom_brokers.html" target="main" />
</item>
<item label="DISTRIBUTION" >
<subitem label="Facilities" url="facilities.html" target="main" />
<subitem label="Inventories" url="inventories.html" target="main" />
<subitem label="Transportation" url="transportation.html" target="main" />
</item>
<item label="CONTACT" url="contact.html" target="main" />
</menu>
And my Click Handler Function AS: Code:
menu_mc.onItemClick= function(node:XMLNode, level:Number){
getURL(node.attributes.url, node.attributes.target);
}
Thanks -r |
|
|
|
|
|
#2 (permalink) |
|
Junior Member
Join Date: Sep 2009
Posts: 9
|
Don't know why I didn't figure it right away, I was staring at the answer the entire time.
I just needed add the link + target from the subitem1 to the level1 item...solved. Code:
<item selected="true" label="COMPANY HISTORY" url="company_story.html" target="main" > <subitem label="Company Story" url="company_story.html" target="main"/> <subitem label="Timeline" url="timeline.html" target="main"/> Thanks again. -r |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT. The time now is 05:52 AM.







Linear Mode
