Comunidad de diseño web y desarrollo en internet online

Galería de fotos flash en dreamweaver no funciona

Citar            
MensajeEscrito el 21 Feb 2010 09:32 pm
Hola amigos,
estoy tratando de hacer que funcione una galeria de fotos en dreamweaver. La galeria está hecha en flash y funciona. Trabaja con un archivo .XML para traer las fotos. Ya la monté en dreamweaver y no funciona. He tratado de hacer cualquier cosa y no logro que funcione.
Si alguien tiene experiencia en esto, por favor indíqueme el camino a seguir....mucho se lo agradeceré.....

Gracias a todos por su tiempo.....

Por zapata

46 de clabLevel



Genero:Masculino  

Venezuela

firefox
Citar            
MensajeEscrito el 22 Feb 2010 07:17 am
Pues eso es como decir.. Estoy haciendo una página y no funciona. Please danos un poco más de datos sobre tu galería.

Saludos, Hernán . -

Por Hernán

BOFH

6148 de clabLevel

19 tutoriales
23 articulos

Genero:Masculino   REC Desarrollador de GAIA

Marketing & IT

firefox
Citar            
MensajeEscrito el 22 Feb 2010 07:48 am
Hola Hernán...gracias por tu tiempo...hice un foto galería en flash que usa un archivo XML para llevar los tumbnails y las fotos full tamaño a la página. En flash todo funciona perfecto...se instalan los tumbnails y al clic aparecen las fotos grandes. Esto lo monté en una página dreamweaver, en la sección de gráficas y parece que el llamado al archivo XML no se hace...el archivo XML, el swf de la galería y las carpetas con las fotos y los tumbnails están todas en la misma carpeta, en el rootsite de dreamweaver. Aquí te mando el código de action script de la galería a ver si falta algo que lo comunique con el dreamweaver...gracias otra vez

import mx.transitions.Tween;
import mx.transitions.easing.*;
A1._alpha = 0;
fondito._alpha = 0;
var tw1:Tween = new Tween(A1, "_alpha", Strong.easeOut, 0, 100, 2, true);
var myGalleryXML = new XML();
myGalleryXML.ignoreWhite = true;
myGalleryXML.load("gallery.xml");
myGalleryXML.onLoad = function() {
_root.gallery_x = myGalleryXML.firstChild.attributes.gallery_x;
_root.gallery_y = myGalleryXML.firstChild.attributes.gallery_y;
_root.gallery_width = myGalleryXML.firstChild.attributes.gallery_width;
_root.gallery_height = myGalleryXML.firstChild.attributes.gallery_height;
_root.myImages = myGalleryXML.firstChild.childNodes;
_root.myImagesTotal = myImages.length;
_root.thumb_height = myGalleryXML.firstChild.attributes.thumb_height;
_root.thumb_width = myGalleryXML.firstChild.attributes.thumb_width;
_root.full_x = myGalleryXML.firstChild.attributes.full_x;
_root.full_y = myGalleryXML.firstChild.attributes.full_y;
_root.tex_x = myGalleryXML.firstChild.attributes.tex_x;
_root.tex_y = myGalleryXML.firstChild.attributes.tex_y;
callThumbs();
createMask();
scrolling();
};
function callThumbs() {
_root.createEmptyMovieClip("container_mc", _root.getNextHighestDepth());
container_mc._x = _root.gallery_x;
container_mc._y = _root.gallery_y;
var clipLoader = new MovieClipLoader();
var preloader = new Object();
clipLoader.addListener(preloader);
for (i=0; i<myImagesTotal; i++) {
thumbURL = myImages[i].attributes.thumb_url;
myThumb_mc = container_mc.createEmptyMovieClip(i, container_mc.getNextHighestDepth());
myThumb_mc._x = _root.thumb_width*i;
clipLoader.loadClip("thumbs/"+thumbURL, myThumb_mc);
preloader.onLoadStart = function(target) {
target.createTextField("my_txt", target.getNextHighestDepth, 0, 0, 100, 20);
target.my_txt.selectable = false;
target.my_txt.textColor = 0xffffff;
};
preloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
target.my_txt.text = Math.floor((loadedBytes/totalBytes)*100);
};
preloader.onLoadComplete = function(target) {
new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
target.my_txt.removeTextField();
target.onRelease = function() {
callFullImage(this._name);
callFullTexto(this._name);
fondo();
};
target.onRollOver = function() {
this._alpha = 50;
};
target.onRollOut = function() {
this._alpha = 100;
};
};
}
}
function createMask() {
_root.createEmptyMovieClip("mask_mc", _root.getNextHighestDepth());
mask_mc._x = _root.gallery_x;
mask_mc._y = _root.gallery_y;
mask_mc.beginFill(0x000000, 100);
mask_mc.lineTo(_root.gallery_width, 0);
mask_mc.lineTo(_root.gallery_width, _root.gallery_height);
mask_mc.lineTo(0, _root.gallery_height);
mask_mc.lineTo(0, 0);
container_mc.setMask(mask_mc);
function scrolling() {
_root.onEnterFrame = function() {
container_mc._x += Math.cos(((mask_mc._xmouse)/mask_mc._width)*Math.PI)*15;
if (container_mc._x>mask_mc._x) {
container_mc._x = mask_mc._x;
}
if (container_mc._x<(mask_mc._x-(container_mc._width-mask_mc._width))) {
container_mc._x = mask_mc._x-(container_mc._width-mask_mc._width);
}
};
}
}
function callFullImage(myNumber) {
myURL = myImages[myNumber].attributes.full_url;
myTitle = myImages[myNumber].attributes.title;
_root.createEmptyMovieClip("fullImage_mc", _root.getNextHighestDepth());
fullImage_mc._x = _root.full_x;
fullImage_mc._y = _root.full_y;
var fullClipLoader = new MovieClipLoader();
var fullPreloader = new Object();
fullClipLoader.addListener(fullPreloader);
fullPreloader.onLoadStart = function(target) {
target.createTextField("my_txt", target.getNextHighestDepth, 205, 150, 300, 300);
target.my_txt.selectable = false;
target.my_txt.multiline = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.bold = false;
my_fmt.font = "Comic Sans MS";
my_fmt.color = 0xFFFFFF;
my_fmt.size = 11;
target.my_txt.setNewTextFormat(my_fmt);
};
fullPreloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
target.my_txt.text = Math.floor((loadedBytes/totalBytes)*100);
};
fullPreloader.onLoadComplete = function(target) {
target.my_txt.text = myTitle;
new Tween(target, "_alpha", Strong.easeOut, 0, 100, 1.5, true);
};
fullClipLoader.loadClip("full_images/"+myURL, fullImage_mc);

}
function scrolling() {
_root.onEnterFrame = function() {
if (mask_mc._xmouse<(mask_mc._width*(1/3)) || mask_mc._xmouse>(mask_mc._width*(2/3))) {
container_mc._x += Math.cos(((mask_mc._xmouse)/mask_mc._width)*Math.PI)*15;
if (container_mc._x>mask_mc._x) {
container_mc._x = mask_mc._x;
}
if (container_mc._x<(mask_mc._x-(container_mc._width-mask_mc._width))) {
container_mc._x = mask_mc._x-(container_mc._width-mask_mc._width);
}
}
};
}
function fondo() {
var tw3:Tween = new Tween(fondito, "_alpha", Strong.easeOut, 0, 100, 2, true);
}

Por zapata

46 de clabLevel



Genero:Masculino  

Venezuela

firefox
Citar            
MensajeEscrito el 22 Feb 2010 09:43 am
Posiblemente el error esté en como embebiste el flash desde Dreamweaver.

Puedes mostrarnos el código html?

Por MadMonkeyFactory

25 de clabLevel



 

firefox
Citar            
MensajeEscrito el 22 Feb 2010 03:48 pm
Hola, este es el código HTLM

Código :

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="500">
        <param name="movie" value="../flash/galeria.swf" />
        <param name="quality" value="high" />
        <embed src="../flash/galeria.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="500"></embed>
      </object>


Gracias....

Por zapata

46 de clabLevel



Genero:Masculino  

Venezuela

firefox
Citar            
MensajeEscrito el 23 Feb 2010 12:34 pm
¿Antes del object no tendrás por casualidad una etiqueta <noscript>?

Creo recordar que cuando usaba DreamWeaver me daba agunos fallos por eso.

Por MadMonkeyFactory

25 de clabLevel



 

firefox
Citar            
MensajeEscrito el 24 Feb 2010 11:02 pm
Bueno Amigos,
Quiero agradecerles por el tiempo que le dedicaron a este problema y los consejos, que seguramente me serviran para el futuro. Madmonkey, conseguí un parametro que dice: param name= "allowScriptAccess" value = "sameDomain"...pero tampoco funcionó. Pero no funcionó porque estaba usando todo en la página de "template" (.dwt) donde había hecho la galería. Las otras .swf que tambien están en las .dwt que componen la página de dreamweaver en cuestión, no contienen códigos que carguen archivos externos y por ello funcionaban perfectamente y de allí la confusión. Al rato (.días) de estar pensando en lo que estaba pasando me pasó por la mente que la página debería estar en .html...y así fue. La salvé en html y todo comenzó a funcionar perfecto. Ahora la pregunta a formular es : ¿porque no funcionan las .swf que contienen códigos para activar archivos externos en las páginas de "templetes" (.dwt) de dreamweaver?... ahí les dejo esa perla a los que saben de verdad de estas cosas, para que nos iluminen. Les cuento que perdí un área de 1,3 cm2 de los cabellos que me restan en mi ya desalojado cuero cabelludo por esa tranca.

La respuesta a este problema que se me presentó está en: no usar .swf con códigos de activación de archivos externos en las páginas de "templetes" (dwt) de dreamwaver, porque no funcionan. Favor usarlas, para que funcionen, en págians HTML, y asi evitar dolores de cabeza innecesarios.

Gracias una vez más a mis panas Hernán y Mad Monkey que se tomaron la molestia de tratar de ayudar.

Por zapata

46 de clabLevel



Genero:Masculino  

Venezuela

firefox

 

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