Tengo un "Swishscript" que quiero pasarlo a ActionScript 2
El fichero en cuestión es:
http://b.domaindlx.com/cl4b/t/movie2.swi
y ya le di unos toques, a mi interpretación de como se debe migrar:
http://b.domaindlx.com/cl4b/t/cur001.fla
Tambien se me ocurrio usar esos descompiladores que pasan de swf a fla; pero generan un .fla desordenado y muestra muchos fallos en el debugger. Asi que esta opción esta descartada.
Migrando manualmente tengo este código que es el principal:
Código :
Object.prototype.addCustomCursors = addCustomCursors; Object.prototype.deleteCustomCursors = deleteCustomCursors; Object.prototype.showCustomCursor = showCustomCursor; Object.prototype.hideCustomCursor = hideCustomCursor; Object.prototype.restoreCustomCursor = restoreCustomCursor; Object.prototype.killCustomCursor = killCustomCursor; Mouse.addListener.addCustomCursors (myMC1, myMC2, myMC3); function addCustomCursors(args) { if (!this.children) { this.children = new Array(); } for (var i in arguments) { this.children.push(arguments[i]); arguments[i]._visible = false; } } function deleteCustomCursors(args) { for (var i in arguments) { for (var a in this.children) { if (arguments[i] == this.children[a]) { this.children.splice(a, 1); if (arguments[i] == this.cursor) { this.hideCustomCursor(); } } } } } function showCustomCursor(obj) { Mouse.removeListener(this.cursor); this.cursor._visible = false; for (var i in this.children) { if (this.children[i] == obj) { this.cursor = obj; obj._visible = true; this.cursor.onMouseMove = function() { this._x = _root._xmouse; this._y = _root._ymouse; updateAfterEvent(); }; Mouse.addListener(this.cursor);
Y este de las regiones, que me las interpreta como botones , será por on (rollOver)?
Código :
on (rollOver) { Mouse.show.showCustomCursor(myMC1); } on (rollOut) { Mouse.removeListener.killCustomCursor(); }
Por favor, un empujoncito