
August 15th, 2011, 09:18 AM
|
|
Contributing User
|
|
Join Date: Mar 2008
Posts: 76
Time spent in forums: 17 h 46 m 19 sec
Reputation Power: 6
|
|
ActionScript 2 - Please help with external AS file
I've tried all weekend to get this work.
What I'm trying to do is to get flash to pull the actionscript from an external as file.
Code:
stop();
Stage.showMenu = false;
submit_ta.password = true;
myData = new LoadVars();
myData.onLoad = function() {
bypass = this.myVariable;
tempbypass = this.myTempVariable;
};
myData.load("auth_code.php");
submitBtn.onRelease = function() {
if (submit_ta.text == bypass) {
getURL("intro.html", "_self");
trace("rickyandkareine");
} else if (submit_ta.text == tempbypass) {
getURL("intro.html", "_self");
} else {
gotoAndStop(2);
}
};
Any help will greatly be appreciated.
Thanks in advance
|