A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Flash 8 doesn´t show in DW Mx??!!

  1. #1
    Junior Member
    Join Date
    Sep 2001
    Posts
    17

    Exclamation Flash 8 doesn´t show in DW Mx??!!

    ---- I have installed Dreamweaver MX and later I installed Flash 8. Everything was working fine along these 2 apps (flash Mx2004 + DW Mx) until i decided to try Flash 8. I´m creating a banner with fade effect that reads external jpg files stored under the same directory as the .swf. Problem is that when I insert it into dreamweaver and preview in browser with F12 key I see only a blank space left by the .swf. I checked the publishing options, and to ensure things will work right I set it on flash player 6 compability and AS v.1. It worked fine when I double click the .SWF alone, but not inside the index.htm which I located the .swf into.

    My question: how can I solve this problem? I need to turn in an entire 360 pages website by saturday and I´m stuck with these problems!

    Please help.

    I even published the site in case it was the local machine restriction from flash 8, but even online I couldn´t see the pictures loading. The methods are called from this AS:

    // -- la variable tiempo, controla la frecuencia
    // -- con que se sucede el cambio de imagen
    tiempo = 2;
    // -- función que se encarga de crear un efecto de fundido
    // -- entre la imagen saliente y entrante
    transparencia = function (velocidad, actual, siguiente) {
    // activo la pelicula siguiente
    siguiente._visible = true;
    this.onEnterFrame = function() {
    if (actual._alpha<=0) {
    actual._alpha = 0;
    siguiente._alpha = 100;
    // -- desactivo la pelicula anterior
    actual._visible = false;
    delete this.onEnterFrame;
    }
    actual._alpha -= velocidad;
    siguiente._alpha += velocidad;
    };
    };
    // -- array imagenes, cada elemento es una imágen
    imagenes = new Array();
    imagenes[0] = "foto1.jpg";
    imagenes[1] = "foto2.jpg";
    imagenes[2] = "foto3.jpg";
    for (i=0; i<imagenes.length; i++) {
    // -- creo un clip de pelicula contenedor por
    // -- cada elemento que contiene el array
    this.createEmptyMovieClip("holder"+i, i+100);
    item = this["holder"+i];
    // -- cargo la imagen en su respectivo clip contenedor
    item.loadMovie(imagenes[i], i+100);
    // -- escondo la imágen
    item._alpha = 0;
    // -- activo la propiedad _visible = false
    // -- para evitar que se solapen botones en los
    // -- pelÃ*culas en niveles inferiores
    item._visible = false;
    }
    // -- provoco que se vea la primera imagen
    item._alpha = 100;
    // --
    item._visible = true;
    // -- creo un bucle que se repite cada intervalo de tiempo
    // -- marcado por la variable tiempo
    setInterval(function () {
    // -- guardo en una variable el nombre de instancia
    // -- siguiente
    actual = _root["holder"+indice];
    indice++;
    // -- ruptura de control
    if (indice == imagenes.length) {
    indice = 0;
    }
    // -- defino el siguiente clip que se visualizará
    siguiente = _root["holder"+indice];
    // -- llamada a la función que hace el efecto fundido
    transparencia(10, actual, siguiente);
    }, tiempo*1000);
    // -


    I located the original FLA file inside the website´s folder inside a folder named photoshow, thus when I play it from dreamweaver it plays, normally now...but doesn´t play at all in the browser...and I know It has nothing to do with the temporary name it´s used to display the htm test file if you push F12. So what am I doing wrong?
    Change your perspectives.
    Imagine and dream.
    www.imagindreams.com

  2. #2
    Junior Member
    Join Date
    Sep 2001
    Posts
    17
    Oh! there is further problems: now I´m reading an embbeded object in HTM must (again...must) have a .Js coding so that the page can parse the controls in ACTIVE X! There is even a short .js to make companion in the html head code so that can parse the .SWF file correctly....

    Anyone else having this problem?
    Change your perspectives.
    Imagine and dream.
    www.imagindreams.com

  3. #3
    Junior Member
    Join Date
    Sep 2001
    Posts
    17

    Red face 3rd Day...no answers...

    I went to the macromedia forums, at adobe....but there is still no answer. I guess I reconstruct the entire website from flash mx 2004, screw my client with my excuses...

    Please, does anyone knows what the issue could be? I still got 2 more days before turning in the entire thing...

    Can someone tell me how to make appear the embedded flash 8 file inside the browser, please?
    Change your perspectives.
    Imagine and dream.
    www.imagindreams.com

  4. #4
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    How bout posting a link?

  5. #5
    Island Boy
    Join Date
    Apr 2006
    Posts
    655
    is the code you have above the only code that you are using? If so, there are things that need to be re-written. If not could you post the FLA that i could take a look at?
    Last edited by VI Knight; 08-30-2006 at 07:13 PM.

  6. #6
    Island Boy
    Join Date
    Apr 2006
    Posts
    655
    I re-wrote your code a little and this works in flash 8. test it out an see if it works for you.

    Code:
    // -- la variable tiempo, controla la frecuencia 
    // -- con que se sucede el cambio de imagen 
    var tiempo = 2;
    var indice = 0;
    // -- función que se encarga de crear un efecto de fundido
    // -- entre la imagen saliente y entrante
    function transparencia(velocidad, actual, siguiente) {
    // activo la pelicula siguiente
    	siguiente._visible = true;
    	this.onEnterFrame = function() {
    		if (actual._alpha<=0) {
    			actual._alpha = 0;
    			siguiente._alpha = 100;
    			// -- desactivo la pelicula anterior
    			actual._visible = false;
    			delete this.onEnterFrame;
    		}
    		actual._alpha -= velocidad;
    		siguiente._alpha += velocidad;
    	};
    };
    // -- array imagenes, cada elemento es una imágen
    imagenes = new Array();
    imagenes[0] = "foto1.jpg";
    imagenes[1] = "foto2.jpg";
    imagenes[2] = "foto3.jpg";
    for (i=0; i<imagenes.length; i++) {
    	// -- creo un clip de pelicula contenedor por 
    	// -- cada elemento que contiene el array
    	this.createEmptyMovieClip("holder"+i, i+100);
    	item = this["holder"+i];
    	// -- cargo la imagen en su respectivo clip contenedor
    	item.loadMovie(imagenes[i], i+100);
    	// -- escondo la imágen
    	item._alpha = 0;
    	// -- activo la propiedad _visible = false
    	// -- para evitar que se solapen botones en los
    	// -- pelÃ*culas en niveles inferiores 
    	item._visible = false;
    }
    // -- provoco que se vea la primera imagen
    item._alpha = 100;
    // --
    item._visible = true;
    // -- creo un bucle que se repite cada intervalo de tiempo
    // -- marcado por la variable tiempo
    setInterval(fadeFoto, tiempo*1000);
    // -
    
    function fadeFoto() {
    // -- guardo en una variable el nombre de instancia
    // -- siguiente
    	actual = _root["holder"+indice];
    	indice++;
    	// -- ruptura de control
    	if (indice == imagenes.length) {
    		indice = 0;
    	}
    	// -- defino el siguiente clip que se visualizará
    	siguiente = _root["holder"+indice];
    	// -- llamada a la función que hace el efecto fundido
    	transparencia(10, actual, siguiente);
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center