Accueil > Forum > > > > Problème de vignettes qui ne disparaissent pas dans galerie flash-HELP
Problème de vignettes qui ne disparaissent pas dans galerie flash-HELP
lundi 13 octobre 2008 à 16:01:19 |
Problème de vignettes qui ne disparaissent pas dans galerie flash-HELP

chenda23
|
Bonjour, Je poste ce message après n'avoir trouvé aucune réponse sur internet... J'ai téléchargé une gallery flash que j'ai ensuite inséré dans le .fla de mon site. Le problème, c'est qu'après être passé sur la page de cette gallerie, les vignettes ne veulent pas disparaitre et restent affichées lorsqu'on passe au autre page. Pire, elles s'aditionnent quand on retourne dans la galerie. Il y a certainement un code à ajouter pour que la galerie deviennent invisible? J'ai besoin de votre aide! Merci!
|
|
lundi 13 octobre 2008 à 16:06:47 |
Re : Problème de vignettes qui ne disparaissent pas dans galerie flash-HELP
|
lundi 13 octobre 2008 à 16:27:08 |
Re : Problème de vignettes qui ne disparaissent pas dans galerie flash-HELP

chenda23
|
Il s'agit d'une galerie téléchargeable gratuitement sur le site d'un programmeur étranger. Je lui ai envoyé des mails, soit il est trop occupé, soit cela lui semble trop évident pour répondre, soit il est débordé de ce genre de mail...Donc, j'ai essayé. Et là, je ne sais plus quoi faire à part demander de l'aide ici... Je peux mettre en line le code si quelqu'un est prêt à jeter un oeil dessus. Voilà, merci...
|
|
lundi 13 octobre 2008 à 16:34:27 |
Re : Problème de vignettes qui ne disparaissent pas dans galerie flash-HELP
|
lundi 13 octobre 2008 à 16:48:57 |
Re : Problème de vignettes qui ne disparaissent pas dans galerie flash-HELP

chenda23
|
Alors voilà:
// <imports> import flash.filters.*; import flash.display.BitmapData; // </imports> ////////////////////////////////
//////////////////////////////// // <vars> var photoHolder = new Array(); var skalerTempo = 3; var thumbStr = 30; var stageHeight = Stage.height; var stageWidth = Stage.width; var fotoSkygge:DropShadowFilter = new DropShadowFilter(0, 45, 0x333333, 0.8, 10, 10, 2, 3); var glow:GlowFilter = new GlowFilter(0x333333,100,150,150,1.5,3,true,true); var bakgrunnPattern:BitmapData = BitmapData.loadBitmap("bakgrunn"); // </vars> ////////////////////////////////
//////////////////////////////// // <init> _root.createEmptyMovieClip("bakgrunsHolder",_root.getNextHighestDepth()); _root.createEmptyMovieClip("sideGlow", _root.getNextHighestDepth()); // </init> ////////////////////////////////
//////////////////////////////// // <generer fotovariabler> flickrTAGS = (flickrTAGS) ? flickrTAGS:""; xmlURL = (xmlURL) ? xmlURL:"photos.xml"; xmlURL = (flickrID) ? "http://api.flickr.com/services/feeds/photos_public.gne?id="+flickrID+"&tags="+flickrTAGS+"&tagmode=any&format=rss_200":xmlURL; //// // Flickr feed //// var loadet_xml:XML = new XML(); loadet_xml.ignoreWhite = true; loadet_xml.onLoad = function (success){ var loop = (flickrID) ? loadet_xml.firstChild.firstChild.childNodes:loadet_xml.firstChild.childNodes; var num = 0; if (flickrID) { for (var i = 0;i < loop.length;i++) { if (loop[i].nodeName == "item") { var loop2 = loop[i].childNodes; photoHolder[num] = new Array(); for (var i2 = 0;i2 < loop2.length;i2++) { if (loop2[i2].nodeName == "media:content") { photoHolder[num].url = loop2[i2].attributes.url; } else if (loop2[i2].nodeName == "title") { photoHolder[num].desc = loop2[i2].firstChild; } } num++; } } } else { for (i=0;i < loop.length;i++) { photoHolder[i] = loop[i].attributes; } } delete loadet_xml; byggBilder(); } loadet_xml.load(xmlURL); // </generer fotovariabler> ////////////////////////////////
//////////////////////////////// // <bygg polaroids> function byggBilder() { for (i=0;i < photoHolder.length;i++) { mc = _root.attachMovie("fotoHolder","fotoHolder"+i,_root.getNextHighestDepth(),{_xscale:thumbStr, _yscale:thumbStr,_rotation:30 - 60*Math.random()}); mc.txt.text = photoHolder[i].desc; if (Math.round(Math.random()*1) == 1) { // tilfeldig y akse mc._y = (Stage.height*Math.random())+(mc._height*2); if (Math.round(Math.random()*1) == 1) mc._x = Stage.width+(mc._width*2); else mc._x = -(mc._width*2); } else { // tilfeldig x akse mc._x = (Stage.width*Math.random())+(mc._width*2); if (Math.round(Math.random()*1) == 1) mc._y = Stage.height+(mc._height*2); else mc._y = -(mc._height*2); } mc.newX = Math.round((mc._width/2) + (Stage.width-mc._width)*Math.random()); mc.newY = Math.round((mc._height/2) + (Stage.height-mc._height)*Math.random()); mc.oldRotation = mc._rotation; mc.oldX = mc.newX; mc.oldY = mc.newY; mc.startX = mc._x; mc.startY = mc._y; mc.oldHeight = mc._yscale; mc.oldWidth = mc._xscale; mc.id = i; mc.onEnterFrame = fotoAnimer; mc.filters = [fotoSkygge]; mc.dragPol.onPress = drag; mc.dragPol.onReleaseOutside = mc.dragPol.onRelease = stopdrag; photoHolder[i].mc = mc; lastBilde(mc,photoHolder[i].url); delete mc; } antallBilder = i; } function lastBilde(mc, url) { mc.createEmptyMovieClip("tmp",mc.getNextHighestDepth()); lastBildeH.loadClip(url, (flickrID) ? mc.bildeHolder:mc.tmp); } var lastBildeH:MovieClipLoader = new MovieClipLoader(); var lastBildeHL:Object = new Object(); lastBildeHL.onLoadStart = function(mc:MovieClip):Void { mc._parent.attachMovie('preLoader','preloader',mc._parent.getNextHighestDepth()); loaderFarge = new Color(mc._parent.preloader); mc._parent.preloader.loadtxt.text = ""; loaderFarge.setRGB(0xFFFFFF); mc._parent.preloader._y = -10; mc._visible = false; } lastBildeHL.onLoadProgress = function(mc:MovieClip, numBytesLoaded:Number, numBytesTotal:Number):Void { var numPercentLoaded:Number = numBytesLoaded / numBytesTotal * 100; mc._parent.preloader.percent._width = numPercentLoaded; } lastBildeHL.onLoadInit = function(mc:MovieClip) { mc._parent.preloader.removeMovieClip(); var mc2 = mc._parent.bildeHolder; if (!flickrID) { var myBitmap = new BitmapData(mc._width, mc._height,true,0xFFFFFF); myBitmap.draw(mc); mc._parent.bildeHolder.attachBitmap(myBitmap, mc._parent.bildeHolder.getNextHighestDepth(), "auto", true); mc.removeMovieClip(); } ///// // scale and place image ////
var wP = 468/mc2._width; var hP = 450/mc2._height; mc2._width *= (wP < hP) ? hP:wP; mc2._height *= (wP < hP) ? hP:wP; mc2._x += -((mc2._width-468)/2); mc2._y += -((mc2._height-450)/2); mc2._visible = true; } lastBildeH.addListener(lastBildeHL); // </bygg polaroids> ////////////////////////////////
//////////////////////////////// // <hjelpeboks> _root.attachMovie("help","help",_root.getNextHighestDepth()); help._x = 42; help._y = 48; help.filters = [fotoSkygge]; // </hjelpeboks> ////////////////////////////////
function rensFilm() { for (i=0;i<antallBilder;i++) { mc = eval("fotoHolder"+i); mc.oldY = mc.startY; mc.oldX = mc.startX; mc.onEnterFrame = fotoAnimerTilbake; removeMovieClip(navigering); } } function fotoAnimer() { this._y += (this.newY-this._y)/skalerTempo; this._x += (this.newX-this._x)/skalerTempo; if (Math.round(this._y) == this.newY) delete this.onEnterFrame; } function fotoAnimerTilbake() { this._y += (this.oldY-this._y)/skalerTempo; this._x += (this.oldX-this._x)/skalerTempo; this._xscale += (this.oldWidth-this._xscale)/skalerTempo; this._yscale += (this.oldHeight-this._yscale)/skalerTempo; this._rotation += (this.oldRotation-this._rotation)/skalerTempo; this.nesteKnapp._alpha += (0-this.nesteKnapp._alpha)/skalerTempo; this.forrigeKnapp._alpha += (0-this.forrigeKnapp._alpha)/skalerTempo; if ((Math.round(this._y) == this.oldY) && (Math.round(this._x) == this.oldX)) { delete this.nesteKnapp.onRelease; delete this.forrigeKnapp.onRelease; delete this.onEnterFrame; } } function fotoSkaler() { this._xscale += (100-this._xscale)/skalerTempo; this._yscale += (100-this._yscale)/skalerTempo; this._rotation += (this.newRotation-this._rotation)/skalerTempo; this._x += ((Stage.width/2)-this._x)/skalerTempo; this._y += ((Stage.height/2)-this._y)/skalerTempo; this.nesteKnapp._alpha += (60-this.nesteKnapp._alpha)/skalerTempo; this.forrigeKnapp._alpha += (60-this.forrigeKnapp._alpha)/skalerTempo; if (Math.round(this._width) == this.newWidth) { delete this.onEnterFrame; } } function drag() { if ((fotoSomBlirVist != this._parent) && (!this._parent.onEnterFrame)) this._parent.startDrag(); if (!this.click) { this.click = true; this.timer = getTimer()/1000; } else { this.timer2 = getTimer()/1000; if ((this.timer2-this.timer)<.25) { visFoto(this._parent); } else { this.timer = getTimer()/1000; this.click = true; } } this._parent.swapDepths(_root.getNextHighestDepth()); if (fotoSomBlirVist) fotoSomBlirVist.swapDepths(_root.getNextHighestDepth()); } function stopdrag() { mc = this._parent; mc.stopDrag(); if ((fotoSomBlirVist != mc) && (!mc.onEnterFrame)) { mc.oldX = Math.round(mc._x); mc.oldY = Math.round(mc._y); } } function visFoto(mc:MovieClip) { if (fotoSomBlirVist == mc) { fotoSomBlirVist.onEnterFrame = fotoAnimerTilbake; delete fotoSomBlirVist; } else { fotoSomBlirVist.onEnterFrame = fotoAnimerTilbake; mc.newRotation = 0; mc.oldRotation = mc._rotation; mc.nesteKnapp.onRelease = function() { visNeste(); } mc.forrigeKnapp.onRelease = function() { visForrige(); } mc.onEnterFrame = fotoSkaler; fotoSomBlirVist = mc; } if (fotoSomBlirVist) fotoSomBlirVist.swapDepths(_root.getNextHighestDepth()); } function visNeste() { var nb = 0; if (fotoSomBlirVist) { nb = fotoSomBlirVist.id +1; if (nb == antallBilder) nb = 0; } visFoto(eval("fotoHolder"+nb)); } function visForrige() { var fb = 0; if (fotoSomBlirVist) { fb = fotoSomBlirVist.id -1; if (fb < 0) fb = antallBilder-1; } visFoto(eval("fotoHolder"+fb)); } var stageL:Object = new Object(); stageL.onResize = function() { for (i=0;i<antallBilder;i++) { mc = eval("fotoHolder"+i); if (mc != fotoSomBlirVist) { mc._x = Math.round(Stage.width * (mc._x/stageWidth)); mc._y = Math.round(Stage.height * (mc._y/stageHeight)); } else { fotoSomBlirVist._x = Stage.width/2; fotoSomBlirVist._y = Stage.height/2; } mc.oldX = Math.round(Stage.width * (mc.oldX/stageWidth)); mc.oldY = Math.round(Stage.height * (mc.oldY/stageHeight)); mc.newX = Math.round(Stage.width * (mc.newX/stageWidth)); mc.newY = Math.round(Stage.height * (mc.newY/stageHeight)); mc.startX = Math.round(Stage.width * (mc.startX/stageWidth)); mc.startY = Math.round(Stage.height * (mc.startY/stageHeight)); } stageWidth = Stage.width; stageHeight = Stage.height; fillBG(); fyllGlow(); } Stage.addListener(stageL);
//////////////////////////////// // <bakgrunn>
function fillBG() { with (bakgrunsHolder) { clear(); beginBitmapFill(bakgrunnPattern); moveTo(0,0); lineTo(Stage.width,0); lineTo(Stage.width,Stage.height); lineTo(0,Stage.height); lineTo(0,0); endFill(); } }
function fyllGlow() { with (sideGlow) { clear(); filters = [glow]; beginFill(0xFFFFFF); moveTo(0, 000000); lineTo(Stage.width, 0); lineTo(Stage.width, Stage.height); lineTo(0, Stage.height); lineTo(0, 0); endFill(); } }
fillBG(); fyllGlow(); // </bakgrunn> ////////////////////////////////
|
|
Cette discussion est classée dans : problème, flash, galerie, vignettes, disparaissent
Répondre à ce message
Sujets en rapport avec ce message
problème de semi-novice pour galerie dimage [ par kadmony ]
Bonjour j'ai une question assez basique, j'ai vu que de nombreuses questions sont assez proches de mon problème mais ca ne résoud toujours pas le mien
problème de semi-novice pour galerie dimage [ par kadmony ]
Bonjour j'ai une question assez basique, j'ai vu que de nombreuses questions sont assez proches de mon problème mais ca ne résoud toujours pas le mien
problème avec ma galerie... help ! [ par pistoff ]
Bonjour,J'essaye de faire une galerie dynamique en flash, avec du xml, mais il me reste deux choses à ajouter et j'y arrive pas...Alors en premier j'a
galerie photos flash problème taille [ par sleepless_2101 ]
boujourj'ai trouvé une galerie photos en flash, et je l'aie un peu modifiée pour l'adapter à ce que je voulais en faire. mais je me suis rendu compte
Problème de son .... [ par doudoutos ]
Bonjour à tous ! Je suis novice en Flash et je suis en train de finir un CD-rom en Flash, et la c'est le drame, j'ai un souci ! Je m'explique....Je so
Son aléatoire en Flash 8, probleme. [ par YueBe ]
Bonjour, <p class="MsoNormal" style="
Problème avec un lien url dans flash [ par Silvercross ]
voila je suis novice en flash et j'essaye désespérement de mettre un lien dans flashvoila mon action script:on (release) { getURL("http://www.neopubli
problème avec flash [ par francoiskoch7 ]
salut les gars voila g un petit prob, j'ai trouvé le code ci-dessous dans un bouquin, il rend un effet panneau d' aéroport sur le texte il n'y a rien
problème lancement automatique site flash. [ par seisme87 ]
Bonjour, Je viens de réaliser mon premier site flash, très simple (il faut bien débuter) et rencontre un problème lors de la publication du site sur i
Livres en rapport
|
Derniers Blogs
IMAGINE CUP 2012, MAKE A SIGN EN FINALEIMAGINE CUP 2012, MAKE A SIGN EN FINALE par junarnoalg
Voilà qui est fait, la nouvelle est officielle ! L'équipe belge "Make a Sign" va au pays des kangourous défendre son projet dans la catégorie Software Design. http://www.imaginecup.com/CompetitionsContent/Competition/WorldwideFinalists.aspx V...
Cliquez pour lire la suite de l'article par junarnoalg KINECT 1.5 IS OUT !KINECT 1.5 IS OUT ! par Vko
La version 1.5 du Kinect For Microsoft vient tout juste de sortir ! Plein de nouveautés: Tracking de squelette en Near Mode Détection en position assise Détection faciale avec un SDK dédié Documentation et des guideline (enfin) Un out...
Cliquez pour lire la suite de l'article par Vko LES ACTUALITéS DE LA SEMAINE SUR C2I.FR (14 MAI - 20 MAI) LES ACTUALITéS DE LA SEMAINE SUR C2I.FR (14 MAI - 20 MAI) par richardc
Mise à jour des Web API du 14 Mai
Réservez dès maintenant votre journée du 20 juin pour le Windows Azure Dev Camp 2012 à Paris
Mise à jour de Team Foundation Service
MechCommander 2 sur Windows 8
Entity Framework 5 Release Candidate e...
Cliquez pour lire la suite de l'article par richardc REACTIVE EXTENSIONS : CONSOMMER DES SERVICES AVEC RX PARTIE 3, LES PIèGES à éVITERREACTIVE EXTENSIONS : CONSOMMER DES SERVICES AVEC RX PARTIE 3, LES PIèGES à éVITER par Groc
Une mauvaise utilisation de rx lors de l'écriture d'une couche d'accès à des services peut conduire à des cas embarassants avec des erreurs mal gérées, des appels qui ne partent lorsqu'ils le devraient, et même des résultats incorrects . le tout nuis...
Cliquez pour lire la suite de l'article par Groc SHAREPOINT BLOG SITE, PROBLèME D'ARCHIVESSHAREPOINT BLOG SITE, PROBLèME D'ARCHIVES par junarnoalg
Dernièrement, nous avons migré le site
myTIC
vers un nouveau serveur SharePoint 2010. Dans les contenus que nous vouloins récupérer, nous avions un certain nombre de blogs.
Nous avons utilisé les commandes Power...
Cliquez pour lire la suite de l'article par junarnoalg
Logiciels
sDEVIS-FACTURES vlPRO (8.1.0.3)SDEVIS-FACTURES VLPRO (8.1.0.3)sDEVIS-FACTURES vlPRO a été mis au point pour les particuliers, créateurs, entrepreneurs, artisa... Cliquez pour télécharger sDEVIS-FACTURES vlPRO 974 Application Server (12.2.4.6)974 APPLICATION SERVER (12.2.4.6)Développez de puissantes applications dans un environnement de 'cloud computing', clusterisé, séc... Cliquez pour télécharger 974 Application Server vPicture (1.4.2.1)VPICTURE (1.4.2.1)Avec vPicture, hébergez vos images facilement et rapidement.
vPicture est un utilitaire simple, ... Cliquez pour télécharger vPicture Easy-Planning (2.2.1.6)EASY-PLANNING (2.2.1.6)Easy-Planning permet de créer des plannings sous la représentation de diagrammes et est adapté au... Cliquez pour télécharger Easy-Planning COM-BACKUP (2.0)COM-BACKUP (2.0)
COM-BACKUP est un logiciel de sauvegarde qui permet de planifier les sauvegardes de vos dossiers ...
Cliquez pour télécharger COM-BACKUP
|