Comunidad de diseño web y desarrollo en internet online

Alargar una linea fina sin crecer grosor

Citar            
MensajeEscrito el 11 Mar 2005 04:56 pm
Ya se que una pregunta muy tonta, pero no me salgo de esta. Estoy intentando alargar una linea de 10 a 300 puntos pero sin que me la haga mas gruesa, y no me salgo , utilizo "Lin_Iz._height += crece_x" y me la hace mas ancha pero tambien mas gruesa, como lo puedo hacer para que no me pase esto?. Y si es mucho pedir ¿ como puedo escalar un cuadrado sin relleno, solo el perfil sin que me crezca el grosor del mismo?
Gracias

Por ganapias

5 de clabLevel



 

msie
Citar            
MensajeEscrito el 11 Mar 2005 05:09 pm
Pues usa la linea "fina" para ello, pues siempre mantiene el mismo grosor, otra solucion es "REdibujar" la linea mediante codigo AS

Por _CONEJO

BOFH

7639 de clabLevel

17 tutoriales
21 articulos

 

firefox
Citar            
MensajeEscrito el 11 Mar 2005 05:26 pm
Ya lo he hecho, tengo una línea superfina, pero cuando mediante código le digo que sea mas larga, me la hace tanbién mas gruesa.

Por ganapias

5 de clabLevel



 

msie
Citar            
MensajeEscrito el 12 Mar 2005 05:49 pm
Tu lo quieres es esto y es tambien a lo que se refiere ICEM4N:

Por ahora no tengo flash, asi que espero no tener error de sintaxis. :crap:

Copia y pega en una pelicula:

Código :

createEmptyMovieClip("micuadro", 1);
function cuadrado(mc, x, y, ancho, alto) {
   with (mc) {
      clear();
      lineStyle(1, 0x000000, 100);
      beginFill(0x0099DD, 100);
      moveTo(x, y);
      lineTo(x+ancho, y);
      lineTo(x+ancho, y+alto);
      lineTo(x, y+alto);
      lineTo(x, y);
   }
}
cuadrado(micuadro, 0, 0, 100, 50);
micuadro.onRollOver = function() {
   this._parent.cuadrado(this, 0, 0, 400, 200);
};
micuadro.onRollOut = function() {
   this._parent.cuadrado(this, 0, 0, 200, 100);
   this._x = 0;
   this._y = 0;
};
micuadro.onPress = function() {
   this.rad = 0;
   this.onEnterFrame = function() {
      this.rad += 5;
      this._x += 50*Math.sin(this.rad);
   };
};
micuadro.onRelease = function() {
   delete this.onEnterFrame;
};


Basicamente observa:
function cuadrado(mc, x, y, ancho, alto) {
with (mc) {
clear();
lineStyle(1, 0x000000, 100);
beginFill(0x0099DD, 100);
moveTo(x, y);
lineTo(x+ancho, y);
lineTo(x+ancho, y+alto);
lineTo(x, y+alto);
lineTo(x, y);
}
}

PAra que no se deforma la linea, tengo que estar redibujando el cuadrado.

Saludos :D

Por Dano

BOFH

4273 de clabLevel

14 tutoriales
4 articulos
10 ejemplos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Lugar estratégico para vigilarte

clabbrowser

 

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