# WebService

**URL:** <https://forum.kirupa.com/t/webservice/181828>\
**Category:** flash\
**Created:** [March 13, 2006, 3:50pm UTC](https://forum.kirupa.com/t/webservice/181828 "2006-03-13T15:50:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arturo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/arturo/32/761_2.png) [@arturo](https://forum.kirupa.com/u/arturo)\
**Post date:** [March 13, 2006, 3:50pm UTC](https://forum.kirupa.com/t/webservice/181828/1 "2006-03-13T15:50:02Z")

</div>

hi There, I’ve a doubt about a job done, but now it’s need to be modified, thing is the flash file feeds the info from a public and free WebService, in this case I’m using drop down components so people can choose between us dollar or euro, then compare this option to mexican peso and then, place the conversion in some text field, now my client needs this automatic, this means, user do not have to click nothing, just a text with this info:

US Dollar: 10.278 / Euro: 12.987

is this possible?, my actionscript is this:

// Inicio cambios de estilos de DropDowns componentes

cmbMoneda1.setStyle(“selectionColor”, 0xFFFFFF);  
cmbMoneda1.setStyle(“rollOverColor”, 0xA0ADC0);  
cmbMoneda1.setStyle(“backgroundColor”, 0xFFFFFF);  
cmbMoneda2.setStyle(“selectionColor”, 0xFFFFFF);  
cmbMoneda2.setStyle(“rollOverColor”, 0xA0ADC0);  
cmbMoneda2.setStyle(“backgroundColor”, 0xFFFFFF);

// Fin cambios de estilos de DropDowns componentes

//\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

// Inicio Funcion Cambio de Divisas

//Creamos un objeto nuevo del tipo objeto  
var on\_Release = new Object();  
//Declaramos la función que se va a realizar cuando se haga clic  
on\_Release.click = function(evt) {  
//Limpiamos la caja de texto  
txtCambio.text = “”;  
//Lanza la función del webservice  
\_root.wsConversor.trigger();  
};  
//Asignamos el Listener al componente botón  
botCambio.addEventListener(“click”, on\_Release);

// Fin Funcion Cambio de Divisas

You can check the .FLA file on

[www.videoestudio.net/divisas/divisas.fla](http://www.videoestudio.net/divisas/divisas.fla)

or

check the .SWF file on:

[www.videoestudio.net/divisas/divisas.swf](http://www.videoestudio.net/divisas/divisas.swf)

hope somebody here can help me on this, thanks a lot!!!

Arturo
