I have used SWFAddress before on a timeline driven site but now I am trying to do all actionscript and it suddenly doesnt want to work.
I am trying to use SWFAddress 2.4 and even got as desperate as to try using all my older files (old .as files, and .js files and even switch my AC Object to the swfobject.js) and it refuses to work.
Below is a broken down quick version of what I am trying to do
import com.asual.SWFAddress.*;
contact_pg._visible = false;
home_pg._visible = false;
about_pg._visible = false;
contact_btn.onRelease = function() {
SWFAddress.setValue('/contact');
contact_pg._visible = true;
home_pg._visible = false;
about_pg._visible = false;
};
home_btn.onRelease = function() {
SWFAddress.setValue('/home');
home_pg._visible = true;
contact_pg._visible = false;
about_pg._visible = false;
};
about_btn.onRelease = function() {
SWFAddress.setValue('/about');
about_pg._visible = true;
contact_pg._visible = false;
home_pg._visible = false;
};
SWFAddress.onChange = function() {
var address_value = SWFAddress.getValue();
if(address_value == "/contact") {
contact_pg._visible = true;
home_pg._visible = false;
about_pg._visible = false;
}
else if(address_value == "/home") {
home_pg._visible = true;
contact_pg._visible = false;
about_pg._visible = false;
}
else if(address_value == "/about") {
about_pg._visible = true;
contact_pg._visible = false;
home_pg._visible = false;
}
}
I checked to make sure the .as files are in place I get no js or html errors but when I click a button the address in the address bar does not change, also if I manually place an address in it does not go to that page.
Any help on this would be great I am drawing complete blanks…
– Nate