Comunidad de diseño web y desarrollo en internet online

Problemas con tutorial de capas de profundidad y movimiento

Citar            
MensajeEscrito el 23 Nov 2008 05:04 am
Bueno, el problema consiste en que hice todo al pie de la letra, hice la clase y después los MC el principal y los de niveles pero al momento de publicar flash me lanza 2 errores uno de ellos dice esto:
The file 'toplevel.as', which is required for typechecking ActionScript 2.0, could not be found. Please make sure the directory '$(LocalData)/Classes' is listed in the global classpath of the ActionScript Preferences.

el código de la clase esta así

class profundidad extends MovieClip {
var yProf:Number;
var xProf:Number;
var easy:Number;
var objetos_arr:Array
public function profundidad(){
objetos_arr = [];
}
public function ini(_objetos_arr:Array, _xProf:Number, _yProf:Number, _easy:Number):Void{
this.yProf = _yProf;
this.xProf = _xProf;
this.easy = _easy;
this.objetos_arr = _objetos_arr;
PostActuales();
this.onEnterFrame = function(){
for (var i:Number = 0; i<objetos_arr.length; i++) {
var obj:Object = objetos_arr[i];
var mov:Number = i+1;
obj.xPos = (_xmouse-(Stage.width/2))*mov/3;
obj.xvel = easy/mov;
obj.xdest = obj["xPosNivIni_"+i]-obj.xPos/xProf;
obj._x += (obj.xdest-obj._x)/obj.xvel;
obj.yPos = (_ymouse-(Stage.height/2))*mov/3;
obj.yvel = easy/mov;
obj.ydest = obj["yPosNivIni_"+i]-obj.yPos/yProf;
obj._y += (obj.ydest-obj._y)/obj.yvel;
}
};
}
private function PostActuales():Void {
for (var i:Number = 0; i<objetos_arr.length; i++) {
objetos_arr[i]["xPosNivIni_"+i] = objetos_arr[i]._x;
objetos_arr[i]["yPosNivIni_"+i] = objetos_arr[i]._y;
}
}
public function set _xProf(num:Number): Void{
this.xProf = num;
}
public function get _xprof():Number {
return this.xProf;
}
public function set _yProf(num:Number): Void{
this.yProf = num;
}
public function get _yprof():Number {
return this.yProf;
}
public function set _easy(num:Number): Void{
this.easy = num;
}
public function get _easy():Number {
return this.easy;
}
}

Y el que va en el fotograma esta de la siguiente manera
var objetos_arr:Array =[];
objetos_arr.push(profundidad_MC.nivel4);
objetos_arr.push(profundidad_MC.nivel5);
objetos_arr.push(profundidad_MC.nivel6);

profundidad_mc.ini(objetos_arr,1,1,50);

Le agradezco de antemano al que me pueda sacar de este embrollo.

Por jbrausin

2 de clabLevel



 

msie8
Citar            
MensajeEscrito el 24 Nov 2008 03:44 am
A mi ese error me salió alguna vez cuando usaba flash CS3 y al mismo tiempo tenia algun programa de CS4 abierto como photoshop CS4 o flash CS4.

Por X-TUS

94 de clabLevel



 

firefox
Citar            
MensajeEscrito el 24 Nov 2008 03:04 pm
Bueno, pero ese problema ya lo solucioné resulta que sin darme cuenta elimine una clase que trae por defecto el programa la clase se llama ($(LocalData)/Classes, pero pues igual no funciona el MC ahora simplemente no me acepta la clase, por q ni siquiera manda informe de errores. :?

Por jbrausin

2 de clabLevel



 

msie8

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.