
Код AS1/AS2:
myVars = new LoadVars();
myVars.load("http://localhost/peaceclock_site/time.php");
myVars.onLoad = function(success) {
if (success) {
trace("variables loaded");
trace(this.theTime);
trace(this.theHour);
trace(this.theMinutes);
trace(this.theSeconds);
trace(this.amORpm);
} else {
trace("Error loading page");
}
};
time=theTime(); // time object
seconds = theSeconds()
minutes = theMinutes()
hours = theHour()
hours = hours + (minutes/60);
seconds = seconds*6; // calculating seconds
minutes = minutes*6; // calculating minutes
hours = hours*30; // calculating hours
sec._rotation=seconds; // giving rotation property
min._rotation=minutes; // giving rotation property
hour._rotation=hours; // giving rotation property
Значит этот код ваще не будет работать? )
Думал может здесь ошибка какая-то
Надо будет искать другой скрипт?