hallo zusammen,
warum funktioniert in meinem script nicht der prototype "ReleaseHandler"???
hat jemand ne ahnung?
PHP-Code:
tiefe = 1;
//Klasse folder
folder = function(){
}
Object.registerClass("pages_dummy", folder);
folder.prototype = new MovieClip();
folder.prototype.ladePages = function(folder){
this.loadMovie(path);
}
folder.prototype.verteilePages = function(path){
laufweite = 70;
this._x = folder_count * laufweite;
}
folder.prototype.ReleaseHandler = function(bild){
this.onRollOver = function(){
trace("geht");
}
}
page_vars = new LoadVars();
loadData = function(pfad) {
page_vars.load (pfad);
trace ("_V_ loaded: " + pfad);
}
page_vars.onLoad = function (success) {
if (success) {
// variablen verteilen: COLLECTION
trace(this.cCount);
trace(this.cPath);
_root.createEmptyMovieClip("mc", tiefe++)
for(aa=1; aa<=this.cCount; aa++){
path = this["cPath"+aa];
pic_array = this.cPic.split("|");
mc.attachMovie("pages_dummy","seite"+aa,tiefe++);
bild = mc["seite"+aa];
mc["seite"+aa].verteilePages();
mc["seite"+aa].ladePages(mc["seite"+aa]);
mc["seite"+aa].ReleaseHandler(bild);
folder_count = aa;
}
} else {
trace ("Error File: " + pfad);
}
};
schon mal vielen dank