Hi all,
my first post, please excuse any errors.
So, I bought a menu, and it will allow me to load web pages, no problem. But, I am building my site to load swf files into a movieclip named “holder”, and I want this to happen when the menu links are clicked.
Here is an example of the current xml data.
<button title="Investments" toggleSubMenu="1" url="http://www.google.com/" target="_blank">
<submenu>
<subButton title="Services" url="http://www.google.com/" target="_blank"> </subButton>
<subButton title="Client List" url="http://www.google.com/" target="_blank"> </subButton>
<subButton title="Our Portfolio" url="http://www.google.com/" target="_blank"> </subButton>
<subButton title="Company Info" url="http://www.google.com/" target="_blank"> </subButton>
</submenu>
</button>
I can’t get any support from the menu seller other than the fact that I have to change the subbutton.as file, and the change has o be made in the code below:
private function onPress()
{
getURL(node.attributes.url, node.attributes.target); trace("GET URL for subButton");
if (this != main.currentSubButton)
{
main.currentSubButton.reset();
if(main.currentSubMenu!=main.currentSubMenuAuxiliar)
main.currentSubMenu = main.currentSubMenuAuxiliar;
main.currentSubButton = this;
}
}
The problem is, I have absolutely no idea what to change in either file. I would REALLY appreciate some help with this - please remember, I know very little. :sigh:
Oh, don’t know if it makes any difference, but the first frame of my file already loads a swf - here is the code:
function loadMov(mov):Void {
holder.loadMovie(mov);
}
var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
mclL.onLoadProgress = function(target,loaded,total) {
loader.percent.text = Math.round((loaded/total) * 100) + "%";
}
mclL.onLoadInit = function() {
loader._visible = false;
loader.percent.text = "";
}
mcl.addListener(mclL);
mcl.loadClip("Flash.Home.swf",holder);
Thank you in advance!