Torna indietro   Hardware Upgrade Forum > Software > Programmazione

Wind Tre 'accende' il 5G Standalone in Italia: si apre una nuova era basata sui servizi
Wind Tre 'accende' il 5G Standalone in Italia: si apre una nuova era basata sui servizi
Con la prima rete 5G Standalone attiva in Italia, WINDTRE compie un passo decisivo verso un modello di connettività intelligente che abilita scenari avanzati per imprese e pubbliche amministrazioni, trasformando la rete da infrastruttura a piattaforma per servizi a valore aggiunto
OPPO Find X9 Pro: il camera phone con teleobiettivo da 200MP e batteria da 7500 mAh
OPPO Find X9 Pro: il camera phone con teleobiettivo da 200MP e batteria da 7500 mAh
OPPO Find X9 Pro punta a diventare uno dei riferimenti assoluti nel segmento dei camera phone di fascia alta. Con un teleobiettivo Hasselblad da 200 MP, una batteria al silicio-carbonio da 7500 mAh e un display da 6,78 pollici con cornici ultra ridotte, il nuovo flagship non teme confronti con la concorrenza, e non solo nel comparto fotografico mobile. La dotazione tecnica include il processore MediaTek Dimensity 9500, certificazione IP69 e un sistema di ricarica rapida a 80W
DJI Romo, il robot aspirapolvere tutto trasparente
DJI Romo, il robot aspirapolvere tutto trasparente
Anche DJI entra nel panorama delle aziende che propongono una soluzione per la pulizia di casa, facendo leva sulla propria esperienza legata alla mappatura degli ambienti e all'evitamento di ostacoli maturata nel mondo dei droni. Romo è un robot preciso ed efficace, dal design decisamente originale e unico ma che richiede per questo un costo d'acquisto molto elevato
Tutti gli articoli Tutte le news

Vai al Forum
Rispondi
 
Strumenti
Old 15-07-2009, 15:15   #1
{Red}Lyon
Member
 
Iscritto dal: Dec 2004
Messaggi: 187
Dissolvenza flash e xml

Ciao, ho un problema con uno script per dissolvenza di immagini caricate tramite xml.

Sto usando uno script scaricato da qui, all'interno c'è un file swf e un file xml personalizzabile...

sto cercando di mettere questi files swf e xml 2 volte in una stessa pagina...solo che tutte e due le animazioni caricano sempre le stesse immagini a prescindere dal fatto che io cambi le foto all'interno dei file xml...sembra come se tutte e due caricassero lo stesso file xml...

come posso far si che ogni animazione carichi un determinato file xml diverso dall'altro?

grazie
__________________
ASUS P5Q PRO - Intel C2Q Q9550@4003MHz - GEIL DDR2-1066 4x2GB - PNY GeForce GTS 250 512Mb GDDR3 - SSD Corsair Force GT 120Gb - Samsung SyncMaster 206BW - Case SunbeamTech Plexy - ThermalTake Liquid Cooling + Ybris Eclipse
----------------------------------------------------------
Ho trattato con: Skyline_gtr
{Red}Lyon è offline   Rispondi citando il messaggio o parte di esso
Old 15-07-2009, 16:12   #2
zuper
Senior Member
 
Iscritto dal: Mar 2001
Città: PV Milano Nord
Messaggi: 3851
sorry nn ho editor di fla al momento installati...

ma immagino che tra le varie opzioni dentro ci sia specificato il file xml dove punta
__________________
"W la foca, che dio la benedoca"
poteva risolvere tutto la sinistra negli anni in cui ha governato e non l'ha fatto. O sono incapaci o sta bene anche a "loro" cosi.
L'una o l'altra inutile scandalizzarsi.[plutus]
zuper è offline   Rispondi citando il messaggio o parte di esso
Old 15-07-2009, 17:57   #3
{Red}Lyon
Member
 
Iscritto dal: Dec 2004
Messaggi: 187
questa è la sorgente per il caricamento XML e immagini:
Codice:
#initclip 1
ImageFader = function () {
	this.__init__ ();
};
ImageFader.prototype = new MovieClip ();
// ** init class ** //
ImageFader.prototype.__init__ = function () {
	this._xscale = 100
	this._yscale = 100
	this.bounding_box.unloadMovie()	
	this._fader_.unloadMovie()
	this._dataProvider = new Array ();
	this._count = 0;
	this._depth = 1;
	this._isLoaded = -1;
	if (this._S_) {
		clearInterval (this._S_);
	}
	if (this._xmlfile != "") {
		this.loadXML (this._xmlfile);
	}
};
// *** load the external xml ** //
ImageFader.prototype.loadXML = function (x) {
	var _xml = new XML ();
	_xml.ignoreWhite = true;
	_xml.path = this;
	_xml.load (x);
	_xml.onLoad = function () {
		for (var a = 0; a < this.firstChild.childNodes.length; a++) {
			var _trans = this.firstChild.childNodes[a].attributes.TRANSITION;
			var _pause = this.firstChild.attributes.PAUSE
			var _lnk = this.firstChild.childNodes[a].attributes.LINK
			var _img = this.firstChild.childNodes[a].firstChild.nodeValue;
			this.path._dataProvider.push ({img:_img, link:_lnk, transition:_trans, pause:_pause});
		}
		this.path.startFading ();
		delete this;
	};
};
// ** start fading procedure ** //
ImageFader.prototype.startFading = function () {
	if (this._dataProvider.length > 0) {
		this.makeFader(true)
	} 	
};
// ** load images ** //
ImageFader.prototype.makeFader = function (first) {
	this._isLoaded = -1;
	this._tmp = this.attachMovie ("ImageLoader", "ImageLoader" + this._depth, this._depth++);
	this._old1 = this['ImageLoader' + (this._depth - 1)]
	this._old2 = this['ImageLoader' + (this._depth - 2)]
	this._tmp.loadHandler ("isLoaded", this._count);
	this._tmp.autoStart = false;
	this._tmp.transition = this._dataProvider[this._count].transition
	this._tmp.pause = this._dataProvider[this._count].pause
	this._tmp.title = this._dataProvider[this._count].title
	this._tmp.link = this._dataProvider[this._count].link
	this._tmp.loadImage (this._dataProvider[this._count].img);
	this._t1 = getTimer()
	this.onEnterFrame = function(){
		this._t2 = getTimer()
		if((this._t2 - this._t1) > this._dataProvider[this._count].pause || first==true){
			if(this._isLoaded == this._count || this._isLoaded == 1 && this._count == 0){
				delete this.onEnterFrame;
				this._tmp.start()
				this._old1.fadeOut()
				this._old2.removeMovieClip()
				if(this._count + 1 < this._dataProvider.length){
					this._count++
					this.makeFader()
					return;
				} else {
					if(this._loop == true){
						this._count = 0
						this.makeFader()
					}
				}
			}
		}
	}
};
// ** which has been loaded ? ** //
ImageFader.prototype.isLoaded = function (num) {
	this._isLoaded = num;
};
Object.registerClass ("ImageFader", ImageFader);
#endinitclip
io metto il file .swf nella radice /flash e il file images.xml in /flash/dissolv/
ho provato prima a cambiare _xml.load (x); in _xml.load ("/flash/dissolv/images.xml"); e non funziona, cioè carica il file swf ma non mi fa vedere nulla...
poi ho provato a cambiare così:
prima:
_xml.path = this;
_xml.load (x);
dopo:
_xml.path = "/flash/dissolv/";
_xml.load ("images.xml");

ma fa sempre la stessa cosa, cioè non mi fa vedere nulla...

le foto si trovano nella stessa cartella del file xml
__________________
ASUS P5Q PRO - Intel C2Q Q9550@4003MHz - GEIL DDR2-1066 4x2GB - PNY GeForce GTS 250 512Mb GDDR3 - SSD Corsair Force GT 120Gb - Samsung SyncMaster 206BW - Case SunbeamTech Plexy - ThermalTake Liquid Cooling + Ybris Eclipse
----------------------------------------------------------
Ho trattato con: Skyline_gtr

Ultima modifica di {Red}Lyon : 15-07-2009 alle 18:01.
{Red}Lyon è offline   Rispondi citando il messaggio o parte di esso
Old 15-07-2009, 19:52   #4
zuper
Senior Member
 
Iscritto dal: Mar 2001
Città: PV Milano Nord
Messaggi: 3851
nn mi pare di vedere nulla che punti al file xml

forse c'è qualche altra opzione nel file flash
__________________
"W la foca, che dio la benedoca"
poteva risolvere tutto la sinistra negli anni in cui ha governato e non l'ha fatto. O sono incapaci o sta bene anche a "loro" cosi.
L'una o l'altra inutile scandalizzarsi.[plutus]
zuper è offline   Rispondi citando il messaggio o parte di esso
 Rispondi


Wind Tre 'accende' il 5G Standalone in Italia: si apre una nuova era basata sui servizi Wind Tre 'accende' il 5G Standalone in Italia: s...
OPPO Find X9 Pro: il camera phone con teleobiettivo da 200MP e batteria da 7500 mAh OPPO Find X9 Pro: il camera phone con teleobiett...
DJI Romo, il robot aspirapolvere tutto trasparente DJI Romo, il robot aspirapolvere tutto trasparen...
DJI Osmo Nano: la piccola fotocamera alla prova sul campo DJI Osmo Nano: la piccola fotocamera alla prova ...
FUJIFILM X-T30 III, la nuova mirrorless compatta FUJIFILM X-T30 III, la nuova mirrorless compatta
Addio console: Just Dance Now trasforma ...
Driver Radeon Adrenalin 25.10: perch&egr...
Oltre le GPU: NVIDIA annuncia NVQLink, ...
Samsung lancia il Team Galaxy Italia per...
Magic Leap: indistinguibili dai normali ...
Aruba Cloud: trasparenza sui costi e str...
Quando il cloud si blocca e resti al fre...
Integrare per competere, la sfida digita...
Leggenda del rally e modernità: S...
La Python Software Foundation rinuncia a...
Full HD e QLED, è in offerta un TV da 32...
Honda ha rilasciato un nuovo video sul p...
Resident Evil Requiem: arriva su Switch ...
Marshall Acton III in promo su Amazon in...
2 portatili che costano poco ma vanno be...
Chromium
GPU-Z
OCCT
LibreOffice Portable
Opera One Portable
Opera One 106
CCleaner Portable
CCleaner Standard
Cpu-Z
Driver NVIDIA GeForce 546.65 WHQL
SmartFTP
Trillian
Google Chrome Portable
Google Chrome 120
VirtualBox
Tutti gli articoli Tutte le news Tutti i download

Strumenti

Regole
Non Puoi aprire nuove discussioni
Non Puoi rispondere ai messaggi
Non Puoi allegare file
Non Puoi modificare i tuoi messaggi

Il codice vB è On
Le Faccine sono On
Il codice [IMG] è On
Il codice HTML è Off
Vai al Forum


Tutti gli orari sono GMT +1. Ora sono le: 20:48.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Served by www3v