Código :
MovieClip.prototype.typesldeing = function(str) {
var Register_1_ = this;
step = 2;
Register_1_.mytf.text = "";
Register_1_.onEnterFrame = function() {
var Register_1_ = Math.min(step, str.length);
var Register_2_ = str.substr(-Register_1_);
str = str.slice(0, -Register_1_);
this.mytf.text = Register_2_ + this.mytf.text;
if (str.length < 1) {
onEnterFrame = null;
}
};
};
Stage.align = "LT";
Stage.scaleMode = "noScale";
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function() {
this.showXML();
this.firstImage();
};
XML.prototype.showXML = function() {
var Register_3_ = this;
var Register_2_ = Register_3_.firstChild.childNodes;
_global.menuItemfirst = Register_2_[0];
itotal.text = Register_2_.length;
var Register_1_ = 0;
while (Register_1_ < Register_2_.length) {
item = _root.container.attachMovie("itemClip", ("itemClip" + Register_1_), Register_1_);
container.setMask(masker);
item._x = 0;
item._y = 24 * Register_1_ + 30;
item.mytf.text = Register_2_[Register_1_].attributes.name.toUpperCase();
item.itemDate.text = Register_2_[Register_1_].attributes.date.toUpperCase();
item.thum = Register_2_[Register_1_].attributes.thum;
item.myTitle = Register_2_[Register_1_].attributes.name.toUpperCase();
item.myInfo = Register_2_[Register_1_].attributes.info.toUpperCase();
item.myUrl = Register_2_[Register_1_].attributes.url.toUpperCase();
item.myImg = Register_2_[Register_1_].attributes.img;
item.onRollover = function() {
this._alpha = 50;
this.reM.gotoAndPlay(2);
};
item.onRollout = function() {
this._alpha = 100;
};
item.onPress = function() {
var Register_1_ = this;
screenM.loadMovie(Register_1_.myImg);
myTitle = Register_1_.myTitle;
myInfo = Register_1_.myInfo;
myUrl = Register_1_.myUrl;
titleT.typesldeing(myTitle);
infoT.typesldeing(myInfo);
urlT.typesldeing(myUrl);
};
Register_1_++;
}
};
preloader.onEnterFrame = function() {
filesize = screenM.getBytesTotal();
loaded = screenM.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.per.text = Math.round(100 * loaded / filesize);
preloader.bar._xscale = 100 * loaded / filesize;
} else {
preloader._visible = false;
if (screenM._alpha < 100) {
screenM._alpha += 10;
}
}
};
XML.prototype.firstImage = function() {
var Register_1_ = _global;
screenM.loadMovie(Register_1_.menuItemfirst.attributes.img);
myTitle = Register_1_.menuItemfirst.attributes.name.toUpperCase();
myInfo = Register_1_.menuItemfirst.attributes.info.toUpperCase();
myUrl = Register_1_.menuItemfirst.attributes.url.toUpperCase();
titleT.typesldeing(myTitle);
infoT.typesldeing(myInfo);
urlT.typesldeing(myUrl);
};
menuXml.load("ohmyflash.xml");
luego hay un pequeño codigo en un boton que no se para que sirve ya que parece que no hace ninguna acción al pulsarlo
Código :
targY = 0;
dragger._x = 0;
dragger._y = 0;
dragger.onPress = function() {
var Register_1_ = this;
startDrag(Register_1_, false, Register_1_._x, 0, Register_1_._x, (_parent.masker._height - Register_1_._height));
};
dragger.onRelease = dragger.onReleaseOutside = function () { stopDrag(); };
_parent.container.onEnterFrame = function() {
var Register_1_ = this;
scrollAmount = (Register_1_._height - _parent.masker._height) / (_parent.masker._height - dragger._height);
targY = -dragger._y * scrollAmount;
Register_1_._y -= (Register_1_._y - targY) / 5;
};
Bueno maestros, espero que me ayudeis un poquito haber si puedo terminar mi pagina
un besote
