Skip to main content
Participating Frequently
May 21, 2011
Question

Flash menu: labels correct but links dont work

  • May 21, 2011
  • 1 reply
  • 1451 views

i have this website template that uses flash in it. the flash works great but when you goto click on a button nothing happens

here is the link to it

http://www.mainelypet.com/bbc

here is the menu.as code

var feed_xml:XML = new XML();
feed_xml.ignoreWhite = true;
xml_loader._xscale = 0;
feed_xml.load("menu.xml");
feed_xml.onLoad = function(success) {
    import mx.xpath.XPathAPI;
    _global.menu_array = XPathAPI.selectNodeList(feed_xml.firstChild, "/menu/entry");
    for (i=0; i<menu_array.length; i++) {
        _global.menu_array.label = menu_array.attributes.label;
        _global.menu_array.url = menu_array.attributes.url;
    }
    _root.movie_loading();
};

here is the menu.xml

<menu>
    <entry label="About Us" url="http://www.bbcreptiles.com/about-us.html" />
    <entry label="Contact Us" url="http://www.bbcreptiles.com/contact-us.html" />
    <entry label="Ball Pythons" url="http://www.bbcreptiles.com/ball-pythons.html" />
    <entry label="Boas" url="http://www.bbcreptiles.com//boas.html" />
    <entry label="Corn Snakes" url="http://www.bbcreptiles.com/corn-snakes.html" />
    <entry label="Western Hognose" url="http://www.bbcreptiles.com/western-hognose.html" />
</menu>

like i said the labels show up but nothing when you click on the button. please help i have been pulling my hair out for hours and hours

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 21, 2011

there's nothing there that would cause a button to repond to a mouse click.

Participating Frequently
May 21, 2011

the flash came with the template i didnt make it.

any suggestions on what i need to do?

i know when it runs in a flash player and you click it the exporer window pops up

kglad
Community Expert
Community Expert
May 21, 2011

there should be directions about how to use the template.  if you don't understand the directions, copy and paste them here.