ciao a tutti,

un pò di tempo fà and80 mi scrisse una funzione in As2 adesso sto creando una classe in As3 e al suo interno ho riutilizzato la funzione, la classe funziona bene e anche la funzione (che ho modificato per As3)
solo che mi restituisce un errore (apparentemente sembra non influire) vorrei capire di cosa si tratta

la funzione è questa
codice:
		private function loadInit(t) {
			try {
				t.forceSmoothing = true; 
				if ((stage.stageWidth / stage.stageHeight) > t.width/t.height) {
					t.height = stage.stageWidth / (t.width/t.height);
					t.width=stage.stageWidth;
				} else {
					t.width = stage.stageHeight / (t.height/t.width);
					t.height=stage.stageHeight;
				}
				if (t.getBounds(t.parent).yMax<stage.stageHeight) {
					t._y-=t.getBounds(t.parent).yMax-stage.stageHeight;
				}
				if (t.getBounds(t.parent).xMax<stage.stageWidth) {
					t.x-=t.getBounds(t.parent).xMax-stage.stageWidth;
				}
			} catch (err) {
				trace(err);
			}
		}
l'errore è questo su forceSmoothing

ReferenceError: Error #1056: Impossibile creare la proprietà forceSmoothing su flash.display.Loader.

mentre se commento la righa //t.forceSmoothing = true; ricevo questo errore

ReferenceError: Error #1069: Impossibile trovare la proprietà yMax su flash.geom.Rectangle e nessun valore predefinito presente.

e la funzione a dire il vero sembra andar meglio...

Grazie mille