All pastes #263482 Raw Edit

Stuff

public text v1 · immutable
·published 2006-12-01 16:15 UTC
rendered paste body
_root.createEmptyMovieClip("sculpture_mc", this.getNextHighestDepth());
_root.sculpture_mc.createTextField("sculpture_txt", this.getNextHighestDepth(), 0, 0, 121, 30);
sculpture_mc.sculpture_txt.multiline = true;
sculpture_mc.sculpture_txt.wordWrap = true;
var myformat:TextFormat = new TextFormat();
myformat.size = 26;
myformat.font = "Verdana";
//sculpture_mc.sculpture_txt.embedFonts = true;
sculpture_mc.sculpture_txt.antiAliasType = "advanced";
sculpture_mc.sculpture_txt.text = "sculpture";
sculpture_mc.sculpture_txt.textColor = 0xFFFFFF;
sculpture_mc.sculpture_txt.selectable = false;
sculpture_mc.sculpture_txt.setTextFormat(myformat);

sculpture_mc.onRollOver = function() {
	trace("this is " + this._name);
	trace('x position: ' + this._x);
	trace('y position: ' + this._y);
	trace('x scale: ' + this._xscale);
	trace('y scale: ' + this._yscale);
	trace('width: ' + this._width);
	trace('height: ' + this._height);
		
	sculpture_mc.sculpture_txt.textColor = 0xFF3300;
	this.scaleTo(50);
	this.sculpture_txt._xscale = 50;
	this.sculpture_txt._yscale = 50;
	this.sculpture_txt._x = 20;
	this.sculpture_txt._y = 10;
	
}
sculpture_mc.onRollOut = function() {
	sculpture_mc.sculpture_txt.textColor = 0xFFFFFF;
	this.scaleTo(100);
	this.sculpture_txt._xscale = 100;
	this.sculpture_txt._yscale = 100;
	this.sculpture_txt._x = 0;
	this.sculpture_txt._y = 0;
	
	};

sculpture_mc.onRelease = function() {
	//this.sculpture_txt.textColor = 0x000000;
	//this.fadeOut(.25, "linear");
};