Foros del Web » Creando para Internet » Flash y Actionscript »

Cambiar de Flash Player 6 a Flash Player 10

Estas en el tema de Cambiar de Flash Player 6 a Flash Player 10 en el foro de Flash y Actionscript en Foros del Web. Hola maestros verán me especializo en PHP pero me pidieron algo en Action Script y me propuse hacerlo aunque no lo domine muy bien. Tengo ...
  #1 (permalink)  
Antiguo 03/06/2013, 07:57
 
Fecha de Ingreso: mayo-2013
Ubicación: Lima
Mensajes: 15
Antigüedad: 11 años
Puntos: 0
Cambiar de Flash Player 6 a Flash Player 10

Hola maestros verán me especializo en PHP pero me pidieron algo en Action Script y me propuse hacerlo aunque no lo domine muy bien.
Tengo este codigo:

Código HTML:
Ver original
  1. carColor = new Color(car);
  2. color1 = new Color(previewbox);
  3. color2 = new Color(chip.chipfill);
  4. //
  5. this.onEnterFrame = function() {
  6.     // set c1, c2, c3, hc1, hc2, and hc3 equal to the positions of their respective faders and vice versa
  7.     for (i=1; i<=3; i++) {
  8.         this["color"+i].setRGB(rgb);
  9.         this["hexc"+i+"Text"].onKillFocus = function() {
  10.             hexMode = false;
  11.         };
  12.         this["hexc"+i+"Text"].onSetFocus = function() {
  13.             hexMode = true;
  14.         };
  15.  
  16.     }
  17.     //
  18.     // combine c1, c2, and c3 into one variable using bitwise left shift and bitwise OR
  19.     rgb = (c1 << 16 | c2 << 8 | c3);
  20. };
  21. //
  22. // make color chip draggable when preview box is clicked
  23. previewBox.onPress = function() {
  24.     chip.startDrag(color1);
  25. };
  26. //
  27. // hide color chip and stop dragging when mouse button is released, and set car color if chip is
  28. // droppped on the car or the apply button is clicked
  29. previewBox.onRelease = swatchDrop;
  30. previewBox.onReleaseOutside = swatchDrop;
  31.  
  32. //
  33. function swatchDrop() {
  34.     with (chip) {
  35.         if (car.hitTest(_x, _y, true)) {
  36.             carColor.setRGB(rgb);
  37.         }
  38.        
  39.        
  40.         _y = -20;
  41.         stopDrag();
  42.     }
  43.    
  44.    
  45. }
  46. apply.onRelease = function() {
  47.     carColor.setRGB(rgb);
  48. };
  49.  
  50.  
  51.  
  52. // set color values equal to the color of the clicked button
  53. swatch1.onRelease = function() {
  54.     c1 = 127;
  55.     c2 = 0;
  56.     c3 = 97;
  57. };
  58. swatch2.onRelease = function() {
  59.     c1 = 130;
  60.     c2 = 0;
  61.     c3 = 0;
  62. };
  63. swatch3.onRelease = function() {
  64.     c1 = 10;
  65.     c2 = 106;
  66.     c3 = 0;
  67. };
  68. swatch4.onRelease = function() {
  69.     c1 = 0;
  70.     c2 = 51;
  71.     c3 = 51;
  72. };
  73. swatch5.onRelease = function() {
  74.     c1 = 0;
  75.     c2 = 51;
  76.     c3 = 102;
  77. };
  78. swatch6.onRelease = function() {
  79.     c1 = 127;
  80.     c2 = 127;
  81.     c3 = 127;
  82. };
  83. swatch7.onRelease = function() {
  84.     c1 = 80;
  85.     c2 = 80;
  86.     c3 = 0;
  87. };



verán lo que hace este código es seleccionar un color, arrastrarlo y soltarlo en un movieclip. MI PROBLEMA ESTA CUANDO LE CAMBIO EL REPRODUCTOR FLASH PLAYER ME DICE QUE HAY FUNCIONES QUE NO ESTAN SOPORTADAS

Desde ya gracias por sus aportes.
  #2 (permalink)  
Antiguo 03/06/2013, 10:09
Avatar de Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 9 meses
Puntos: 406
Respuesta: Cambiar de Flash Player 6 a Flash Player 10

Hola web_ando:
La versión del Player por encima del 6 no debe de producir problemas ya que ellos dan soporte hasta AS1, una posibilida sea que tu Flash sea CS5, ésta versión trae muchos problemas, creo que es la peor de las versiones.

Espero habere sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/
  #3 (permalink)  
Antiguo 03/06/2013, 10:30
 
Fecha de Ingreso: mayo-2013
Ubicación: Lima
Mensajes: 15
Antigüedad: 11 años
Puntos: 0
Respuesta: Cambiar de Flash Player 6 a Flash Player 10

Gracias por responder y que weno que hay moderadores compatriotas.

te dejo mi archivo .fla para dejame entender mejor.

http://rapidshare.com/files/1400757202/SIMULADOR.fla

necesito que este en una versión superior para convertirlo a HTML5
alguna sugerencia?


Saludos.
  #4 (permalink)  
Antiguo 03/06/2013, 11:06
Avatar de Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 9 meses
Puntos: 406
Respuesta: Cambiar de Flash Player 6 a Flash Player 10

Nunca hice ese tipo de conversión, pero parece que se necesita ciertas condiciones del Flash.
Revisa éste link: http://www.desarrollomultimedia.es/a...ash_HTML5.html

Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/

Etiquetas: actionscript, color, flash, movieclip
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 12:29.