Comunidad de diseño web y desarrollo en internet online

Ayuda con slider en linechart. creo que es simple pero .....

Citar            
MensajeEscrito el 05 Jul 2007 05:00 pm
Hola gente como andan .....

Bueno tengo un poblema con mi aplicacion.

el problema es que como podran ver en el link...
http://www.ricoterox.com.ar/hola/mainArrayLeyenda.html
cuando agrego una palabra del primer datagrid al segundo... se grafica una linea y se puede manejar con el slider ...

pero cuando agrego 2 o mas lineas el slider solo mueve la ultima agregada....

Alguno puede ver el codigo y/o ponerlo en su flex y ver cual es mi problema ?

yo creo que tenddria que guardar en un arraycollection (matris) todas las lineas que voy agregando ...
pero no logro hacerlo.

Alguno podria verlo por favor
aca esta el codigo
http://www.ricoterox.com.ar/hola/code.txt

Por ricoterox

11 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 05 Jul 2007 07:05 pm
me parece k no hay nadie que me pueda ayudar .........

alguno sabe de algun foro o grupo de gente que sepa y mucho flex y action script ?

gracias

Por ricoterox

11 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 07 Jul 2007 08:11 pm

Por N

36 de clabLevel



Genero:Masculino  

Buenos Aires, Argentina

firefox
Citar            
MensajeEscrito el 08 Jul 2007 05:10 pm
¿Podrías poner las líneas de código, donde asignas el datasource al slider, y explicar que haces? esto con el fin de poder ayudarte, la verdad no me voy a poner a leer todo el código.

Saludos

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
Citar            
MensajeEscrito el 09 Jul 2007 05:21 pm
private function updateMainData():void{
if(iContSerie <= 1){
//sliderBig.source = sliderSmall.source.slice(leftBoundary, rightBoundary);
sliderBig.source = sliderBig2.source.slice(leftBoundary, rightBoundary);
}else{
//sliderBig.source = sliderBigOne.source;
bigChart2.dataProvider = sliderBig2.source.slice(leftBoundary, rightBoundary);
}
}

private function moveChart(event:MouseEvent):void{
if(bigDrag) {
if(iContSerie <= 1){
leftBoundary = staticLeftBoundary + (mouseXRef - this.mouseX) / (bigChart.width / sliderBig.length);
rightBoundary = staticRightBoundary + (mouseXRef - this.mouseX) / (bigChart.width / sliderBig.length);
}else{
leftBoundary = staticLeftBoundary + (mouseXRef - this.mouseX) / (bigChart2.width / sliderBig.length);
rightBoundary = staticRightBoundary + (mouseXRef - this.mouseX) / (bigChart2.width / sliderBig.length);
}

} else if(smallDrag) {
// (smallChart.width / sliderSmall.length);bigChart2.dataProvider sliderBig2.length
leftBoundary = staticLeftBoundary - (mouseXRef - this.mouseX) / (smallChart.width / sliderBig2.length);
rightBoundary = staticRightBoundary - (mouseXRef - this.mouseX) / (smallChart.width / sliderBig2.length);
}}

si la primera funcion se cambia pro esta
private function updateMainData():void{
if(iContSerie <= 1){
//sliderBig.source = sliderSmall.source.slice(leftBoundary, rightBoundary);
sliderBig.source = sliderBig2.source.slice(leftBoundary, rightBoundary);
}else{
//sliderBig.source = sliderBigOne.source;
sliderBig.source = sliderBig2.source.slice(leftBoundary, rightBoundary);
}
}

veras que la unica linea que se mueve es la ultima agregada...

Por ricoterox

11 de clabLevel



Genero:Masculino  

firefox

 

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