SOBI2 Menu Module


Freelancer Custom Scripts

Make My As2/xml Nav. Work


Website
I need someone who knows AS2 to modify and write a short class for my navigation.

I purchased a 100% XML driven Nav bar from FlashDen that I need to tie into my site.

I need you to modify the onPress function from button.as that came with the Nav. Currently it is a getURL function that retrieves a URL from the xml and loads it.
It looks like this: getURL(node.attributes.url, String(node.attributes.target));

I NEED:
You replace that function with one that will load my individual section .swfs as defined in the XML into my main content area. Pretty simple for you, but not for me.

So here are the mandatories:
The XML Nav bar must load/alpha in my prebuilt swfs into the main content area. You may need to write or modify my .as file to do this; here is an example of what it might look like:

//BUTTON SETUP
function initButtons() {
for (i in nav.buttons) {
nav.buttons[i].onPress = function() {
var thisIndex = this._name.substr(6);
if(thisIndex == 1) {
loadContent(content/swfs/home.swf);
}
if(thisIndex == 2) {
loadContent(content/swfs/classesIntro.swf);
}
if(thisIndex == 3) {
loadContent(content/swfs/classesGroup.swf);
}
if(thisIndex == 4) {
loadContent(content/swfs/classesSemi.swf);
}
if(thisIndex == 5) {
loadContent(content/swfs/classesPrivate.swf);
}
if(thisIndex == 6) {
loadContent(content/swfs/classesSchedule.swf);
}
if(thisIndex == 7) {
loadContent(content/swfs/endermologie.swf);
}
if(thisIndex == 8) {
loadContent(content/swfs/giftCerts.swf);
}
if(thisIndex == 9) {
loadContent(content/swfs/aboutUs.swf);
}
if(thisIndex == 10) {
loadContent(content/swfs/trainers.swf);
}
if(thisIndex == 11) {
loadContent(content/swfs/studioHours.swf);
}
if(thisIndex == 12) {
loadContent(content/swfs/location.swf);
}
if(thisIndex == 13) {
loadContent(content/swfs/contactUs.swf);
}
if(thisIndex == 6) {
loadContent(content/swfs/home.swf);
}

}
}
}

//BUTTON SETUP

You will NOT need to generate content or develop out sections, just get my placeholder swfs to alpha into the content area.

You can see what I mean here: http://www.inhousela.com/P/

I will pay 100% escrow

Step 1. I send you a link to my zipped source files
Step 2. You upload a working nav to my dev server within 48 hours
Step 3. I Test your work and review you well commented source files
Step 4. You get paid
Step 5. Everyone is happy




Tags: Make My As2/xml Nav. Work
Date added: 2009-06-30 23:00:03    Hits: 1
RSS Feeds