flash actionscript:
Hi All,
@#(*& HELP!!!!
I'm reading "Flash MX: Training from the source" (ISBN: 0201794829) and have a
problem that is not listed anywhere here or any actionscript or google forum.
I can't find an errata sheet for this text and the author/Mac. press haven't
return any emails. Here is another users problem which is my issue (all code is
identical to text):
The map.php file referenced within the Flash manual, at
http://www.flashtfs.com/data/map.php HAS to be different than the one used in
the movie. There's no loc variable info. listed in the development file, and my
map list loads with the same number of animals, no matter which location button
is depressed. I've double, triple, and quadruple-checked the code, and compared
it to the lesson. My code has been implemented VERBATIM to what's in the
manual. Not only that, but in the HTML published Flash movie, the "Europe"
button doesn't work, which indicates that another .php file is being used for
this demonstration version. I even tried debugging the code within the lesson,
thinking that the code wasn't published correctly, and I could get nothing to
work. Please let me know where I can go to use the correct file to test my code.
function showList (success) {
if (success) {
animalList.removeAll ();
for (var i=0; i<this.numAnimals; i++) {
trace (this["common" +i] );
animalList.addItem(this["common" +i], i);
}
}
}
function getList (btn) {
trace(btn._name);
locData = new LoadVars ();
if (btn._name != "all" && btn._name != undefined) {
locData.location = btn._name;
var subtitle = btn.getLabel();
} else {
var subtitle = "Entire Zoo";
}
heading = "Animal List: " + subtitle;
locData.sendAndLoad(dataURL+"map.php", locData, POST);
locData.onLoad = showList;
}