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

Insertar imagen en template de flash via xml

Estas en el tema de Insertar imagen en template de flash via xml en el foro de Flash y Actionscript en Foros del Web. Hola a tod@s, estoy utilizando un template de flash que maneja los datos por el archivo xml que trae, mi pregunta es la siguiente: hay ...
  #1 (permalink)  
Antiguo 12/11/2011, 11:14
 
Fecha de Ingreso: mayo-2007
Mensajes: 419
Antigüedad: 17 años
Puntos: 20
Exclamación Insertar imagen en template de flash via xml

Hola a tod@s,

estoy utilizando un template de flash que maneja los datos por el archivo xml que trae, mi pregunta es la siguiente:

hay un apartado donde se ponen los eventos que al clicar en "leer mas" en cada evento, te sale un pop up con informacion de ese en vento pero el problema es que solo muestra texto que la agregas en el xml, mi pregunta es como puedo hacer desde el html para que agregue tambien un banner en ese popup asi no sale tan soso solo con texto y para que tambien salga tambien una imagen (banner) con el texto del evento.

mil besos y muchas gracias.
  #2 (permalink)  
Antiguo 12/11/2011, 11:53
Avatar de highlord  
Fecha de Ingreso: noviembre-2007
Ubicación: Argentina
Mensajes: 353
Antigüedad: 16 años, 5 meses
Puntos: 16
Respuesta: Insertar imagen en template de flash via xml

pasá el xml y por ahi te puedo decir como se hace.
__________________
Lo poco que sé, lo comparto!!! ;)
---------------------------------------------
http://www.dsweblp.com.ar
  #3 (permalink)  
Antiguo 12/11/2011, 12:06
 
Fecha de Ingreso: mayo-2007
Mensajes: 419
Antigüedad: 17 años
Puntos: 20
Respuesta: Insertar imagen en template de flash via xml

Hola High lord,

me dice que es muy largo que tiene 40494 caracteres y solo puedo mandar 10000, me mandas tu correo por mp y te lo mando por alli?


mil besos y gracias
  #4 (permalink)  
Antiguo 12/11/2011, 12:18
Avatar de highlord  
Fecha de Ingreso: noviembre-2007
Ubicación: Argentina
Mensajes: 353
Antigüedad: 16 años, 5 meses
Puntos: 16
Respuesta: Insertar imagen en template de flash via xml

Cita:
Iniciado por supergirl Ver Mensaje
Hola High lord,

me dice que es muy largo que tiene 40494 caracteres y solo puedo mandar 10000, me mandas tu correo por mp y te lo mando por alli?


mil besos y gracias
no importa, manda el encabezado nomás por acá o hasta donde entre, asi veo que tipo de codificación usa y te completo para que veas como se incerta una imágen.
__________________
Lo poco que sé, lo comparto!!! ;)
---------------------------------------------
http://www.dsweblp.com.ar
  #5 (permalink)  
Antiguo 12/11/2011, 13:10
 
Fecha de Ingreso: mayo-2007
Mensajes: 419
Antigüedad: 17 años
Puntos: 20
Respuesta: Insertar imagen en template de flash via xml

Vale aqui va:

Código:
<?xml version="1.0" encoding="iso-8859-1"?>
<content>
	<!-- general vars -->
	<settings>
		
		<item name="copyright"><![CDATA[FOLLOW US:]]></item>
		<item name="companyName"><![CDATA[Night Club]]></item>
	
		<item name="slogan"><![CDATA[<font letterSpacing="0" kerning="0">ENJOY DANCE FREEDOM IN OUR CLUB</font>]]></item>

				
		<item name="item1"><![CDATA[<a href="www.youtube.com">YOUTUBE</a>]]></item>
		<item name="item2"><![CDATA[<a href="www.flickr.com">FLICKR</a>]]></item>
		<item name="item3"><![CDATA[<a href="www.twitter.com">TWITTER</a>]]></item>

   <!--    
      You must change the paths (URLs) for the images being loaded. For local testing purposes you may use 
      the following path "images/gallery/tfile_fullPic0.jpg", however for the images to be displayed remotely on Facebook
      there has to be a full absolute path. Please use
      "http://yourServerAddress/_flash/images/gallery/tfile_fullPic0.jpg" instead of 
      "http://demolink.org/_flash/images/gallery/tfile_fullPic0.jpg".
   -->
		
		<icon imageUrl="images/tfile_icon1.png" link="http://www.youtube.com"/>
		<icon imageUrl="images/tfile_icon2.png" link="http://www.flickr.com"/>
		<icon imageUrl="images/tfile_icon3.png" link="http://www.twitter.com"/>
		
		
		<shareUrl url="http://demolink.org/"/>
		<shareTitle text= "Site_Name"/>
		
		<iconShare imageUrl="images/tfile_iconShare1.png"/>
		<iconShare imageUrl="images/tfile_iconShare2.png"/>
		<iconShare imageUrl="images/tfile_iconShare3.png"/>
		<iconShare imageUrl="images/tfile_iconShare4.png"/>

	</settings>

	<!-- menu -->
		<widgets column="3" alignDisplay="right">
		
			<widget>
				<displayName><![CDATA[FACEBOOK]]></displayName>
				<id><![CDATA[facebook]]></id>
			</widget>
			
			<widget>
				<displayName><![CDATA[TWITTER]]></displayName>
				<id><![CDATA[twitter]]></id>
			</widget>
			
			<widget>
				<displayName><![CDATA[DELICIOUS]]></displayName>
				<id><![CDATA[delicious]]></id>
			</widget>	
	</widgets>
		
		
	<menu>
			<button><![CDATA[splash]]></button>		
		
			<button><![CDATA[<font letterSpacing="-1">ABOUT</font>]]></button>		
			
			<button><![CDATA[<font letterSpacing="-1">EVENTS</font>]]></button>	
			
			<button><![CDATA[<font letterSpacing="-1">PHOTOS</font>]]></button>	
			
			<button><![CDATA[<font letterSpacing="-1">CONTACTS</font>]]></button>	
			
	</menu>
	
	<map_xml >
		<!-- 
		To make Google Maps work in your own web pages, you should get your unique key to API Maps for your domain. See this for more information:
		http://code.google.com/intl/en/apis/maps/signup.html
		-->
		<Google_Maps_API_Key><![CDATA[ABQIAAAAWCGzSMrk7YDL2KSdECDFthS_tJn-igikdN79kCzYB9IVy0cAnBT3XqpOlOpsZH6_tCNbH2OjZj-GYw]]></Google_Maps_API_Key>
		
		<!--  Define the location where the map will open - latitude, longitude and zoom -->
		 <map_center lat="40.706425" lon="-74.009491" zoom="15"/>
		
		<!--  Define your offices' locations  -->	  
		  <location>
			   <lat>40.713000</lat>
			   <lon>-74.015000</lon>
			   <name_tip>Office 1</name_tip>
			   <title_tip><![CDATA[Office 1]]></title_tip>
			   <content_tip><![CDATA[Office 1 Title]]></content_tip>
		  </location>
		  
		  <location>
			   <lat>40.705000</lat>
			   <lon>-74.012000</lon>
			   <name_tip>Office 2</name_tip>
			   <title_tip><![CDATA[Office 2]]></title_tip>
			   <content_tip><![CDATA[Office 2 Title]]></content_tip>
		  </location>
		  
		  <location>
			   <lat>40.710000</lat>
			   <lon>-74.000000</lon>
			   <name_tip>Office 3</name_tip>
			   <title_tip><![CDATA[Office 3]]></title_tip>
			   <content_tip><![CDATA[Office 3 Title]]></content_tip>
		  </location>
	 
	 </map_xml>	
	
	<!-- pages -->
	
	<!-- URL images  linkURL="http://companyname.com/" linkPage = "1 "  - (1  - Num read More)	-->

<mp3List>
			<sfx imageUrl="music/3.mp3" link="#"/>
			<sfx imageUrl="music/1.mp3" link="#"/>
			<sfx imageUrl="music/2.mp3" link="#"/>
			
		
</mp3List>
	
<gallery>

			<image imageUrl="images/full/tfile_fullPic0.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic1.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic2.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic3.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic4.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic5.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic6.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic7.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic8.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic9.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic10.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic11.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic12.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic13.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic14.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic15.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic16.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic17.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic18.jpg" link="#"/>
			<image imageUrl="images/full/tfile_fullPic19.jpg" link="#"/>
			
				<imageIcon imageUrl="images/icons/tfile_iconPic0.jpg" link="#"/>
				<imageIcon imageUrl="images/icons/tfile_iconPic1.jpg" link="#"/>
				<imageIcon imageUrl="images/icons/tfile_iconPic2.jpg" link="#"/>
				<imageIcon imageUrl="images/icons/tfile_iconPic3.jpg" link="#"/>
				<imageIcon imageUrl="images/icons/tfile_iconPic4.jpg" link="#"/>
				<imageIcon imageUrl="images/icons/tfile_iconPic5.jpg" link="#"/>
				<imageIcon imageUrl="images/icons/tfile_iconPic6.jpg" link="#"/>
				<imageIcon imageUrl="images/icons/tfile_iconPic7.jpg" link="#"/>
				
</gallery>
	
		
<pages>
					
	
<titlePage name="home page"/>
								
<titlePage name="about page">
					
				<imagesPage>
					
						
				</imagesPage>
					
			<texts>
				
				<pageText><![CDATA[WELCOME !]]></pageText>
				
				<pageText><![CDATA[<font color="#ffffff">text]]></pageText>
				
			</texts>
			
			
</titlePage>



<titlePage name="events">
					
			<texts>
				
				<pageText><![CDATA[RECENT EVENTS]]></pageText>
				
				<pageList><![CDATA[<a href="event:switchPopup,0"><font color="#ffffff"><u>01. 01. 2011</u></font></a><br>LOREM IPSUM DOLOR SIT AMET, CONSECTETUER ADIPISCING ELIT. PRAESENT VESTIBULUMOLESTIE LACUS. AENEAN NONUMMY HENDRERIT MAURIS. PHASELLUS PORTA.]]></pageList>
				<pageList><![CDATA[<a href="event:switchPopup,1"><font color="#ffffff"><u>03. 01. 2011</u></font></a><br>SED IN LACUS UT ENIM ADIPISCING ALIQUET. NULLA VENENATIS. IN PEDE MI, ALIQUET SIT AMET, EUISMOD IN, AUCTOR UT, LIGULA. ALIQUAM DAPIBUS TINCIDUNT METUS. PRAESENT JUSTO DOLOR, LOBORTIS QUIS, LOBORTIS DIGNISSIM, PULVINAR AC, LOREM.]]></pageList>
				<pageList><![CDATA[<a href="event:switchPopup,2"><font color="#ffffff"><u>05. 01. 2011</u></font></a><br>CUM SOCIIS NATOQUE PENATIBUS ET MAGNIS DIS PARTURIENT MONTES, NASCETUR RIDICULU MUS. NULLA DUI. FUSCE FEUGIAT MALESUADA ODIO. MORBI NUNC ODIO, GRAVIDA AT, CURSUNEC, LUCTUS A, LOREM. MAECENAS TRISTIQUE ORCI AC SEM.]]></pageList>
				<pageList><![CDATA[<a href="event:switchPopup,3"><font color="#ffffff"><u>10. 01. 2011</u></font></a><br>LOREM IPSUM DOLOR SIT AMET, CONSECTETUER ADIPISCING ELIT. PRAESENT VESTIBULUMOLESTIE LACUS. AENEAN NONUMMY HENDRERIT MAURIS. PHASELLUS PORTA.]]></pageList>
				<pageList><![CDATA[<a href="event:switchPopup,4"><font color="#ffffff"><u>15. 01. 2011</u></font></a><br>SED IN LACUS UT ENIM ADIPISCING ALIQUET. NULLA VENENATIS. IN PEDE MI, ALIQUET SIT AMET, EUISMOD IN, AUCTOR UT, LIGULA. ALIQUAM DAPIBUS TINCIDUNT METUS. PRAESENT JUSTO DOLOR, LOBORTIS QUIS, LOBORTIS DIGNISSIM, PULVINAR AC, LOREM.]]></pageList>
				<pageList><![CDATA[<a href="event:switchPopup,5"><font color="#ffffff"><u>23. 01. 2011</u></font></a><br>CUM SOCIIS NATOQUE PENATIBUS ET MAGNIS DIS PARTURIENT MONTES, NASCETUR RIDICULU MUS. NULLA DUI. FUSCE FEUGIAT MALESUADA ODIO. MORBI NUNC ODIO, GRAVIDA AT, CURSUNEC, LUCTUS A, LOREM. MAECENAS TRISTIQUE ORCI AC SEM.]]></pageList>
				
			</texts>
			
				<popup>
					<item name="title"><![CDATA[READ MORE]]></item>
					<item name="linkText"><![CDATA[text]]></item>
			</popup>	
			
</titlePage>

<titlePage name="photos">

					
			<texts>
				<pageText><![CDATA[LAST ADDED PHOTOS]]></pageText>
						
						
			</texts>

</titlePage>



<titlePage name="LOCATION">

	
			<texts>
				
				<pageText><![CDATA[CONTACTS]]></pageText>
				<pageText><![CDATA[THE COMPANY NAME INC.<br>8901 MARMORA ROAD, GLASGOW, D04 89GR.<br>TELEPHONE:  +1 959 603 6035<br>E-MAIL:  <U>[email protected]</U> ]]></pageText>
				<pageText><![CDATA[FIND US]]></pageText>
			</texts>
		
		
</titlePage>
	
<!-- AQUI ES DONDE SALEN LOS POP UPS QUE TE COMENTO -->
<pagePopup>	
			<popup>
					<item name="title"><![CDATA[MORE INFO 1]]></item>
							<item name="linkText"><![text]]></item>
			</popup>		
				<popup>
					<item name="title"><![CDATA[MORE INFO 2]]></item>
							<item name="linkText"><![CDATA[text]]></item>
			</popup>	
			<popup>
					<item name="title"><![CDATA[MORE INFO 3]]></item>
							<item name="linkText"><![CDATA[text]]></item>
			</popup>	

					<popup>
					<item name="title"><![CDATA[MORE INFO 4]]></item>
							<item name="linkText"><![CDATA[text]]></item>
			</popup>		
				<popup>
					<item name="title"><![CDATA[MORE INFO 5]]></item>
							<item name="linkText"><![CDATA[text]]></item>
			</popup>	
			<popup>
					<item name="title"><![CDATA[MORE INFO 6]]></item>
							<item name="linkText"><![CDATA[text]]></item>
			</popup>	
		
</pagePopup>

</pages>



<!-- privacy policy -->
		<section name="privacyPolicy">
				<item name="pageTitle"><![CDATA[PRIVACY POLICY]]></item>
				<item name="pageText"><![CDATA[text]]></item>
		</section>
<!-- privacy policy -->
		

</content>
  #6 (permalink)  
Antiguo 12/11/2011, 13:11
 
Fecha de Ingreso: mayo-2007
Mensajes: 419
Antigüedad: 17 años
Puntos: 20
Respuesta: Insertar imagen en template de flash via xml

Ya estahighlord, consegui meter todo el xml, espero tu respuesta, gracias


mil besos
  #7 (permalink)  
Antiguo 12/11/2011, 13:45
Avatar de highlord  
Fecha de Ingreso: noviembre-2007
Ubicación: Argentina
Mensajes: 353
Antigüedad: 16 años, 5 meses
Puntos: 16
Respuesta: Insertar imagen en template de flash via xml

seria algo asi


<item name="title"><![CDATA[MORE INFO 5]]></item>
<img src="tuimagens.jpg" width="140" height="80" />
<item name="linkText"><![CDATA[text]]></item>

te paso un ejemplo de dond lo saque pero tiene otra sintaxis que por ahi haciendo pruebas lo podes adaptar mejor que yo.


<item>
<content><![CDATA[<span class="title">Acá va un titulo</span>
<img src="thumbnails/miniatura.jpg" width="140" height="140" /><p>texto descriptivo</p>
<p><a href="http://www.miweb.com" class="link">Mi texto linkeado</a></p> ]]></content>
</item>

Espero que lo puedas solucionar
__________________
Lo poco que sé, lo comparto!!! ;)
---------------------------------------------
http://www.dsweblp.com.ar
  #8 (permalink)  
Antiguo 12/11/2011, 16:10
 
Fecha de Ingreso: mayo-2007
Mensajes: 419
Antigüedad: 17 años
Puntos: 20
Respuesta: Insertar imagen en template de flash via xml

Hola Highlord,

he intentado poner lo que me dices tanto dentro de la etiqueta popup y tanto dentro como fuera de la etiqueta itemname, pero la imagen sigue sin salirme, que puedo estar haciendo mal?

mil besos y gracias

Etiquetas: flash, plantilla
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:38.