# E-mail form comboBox xml & images

**URL:** <https://forum.kirupa.com/t/e-mail-form-combobox-xml-images/262016>\
**Category:** Uncategorized\
**Created:** [June 2, 2008, 5:08pm UTC](https://forum.kirupa.com/t/e-mail-form-combobox-xml-images/262016 "2008-06-02T17:08:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![samy4movies](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/samy4movies/32/8371_2.png) [@samy4movies](https://forum.kirupa.com/u/samy4movies)\
**Post date:** [June 2, 2008, 5:08pm UTC](https://forum.kirupa.com/t/e-mail-form-combobox-xml-images/262016/1 "2008-06-02T17:08:39Z")

</div>

Hi Forum friends,  
I wonder if is there anyone that has seen this question and guide me to the appropriate guideline.  
I have an e-mail form that has a comoBox which displayed the contacts that I am sending the e-mail, the information is propagated from an XML file “emails.xml”.  
Everything works fine but I was wonder in how to include the contact picture once is selected from the comboBox?  
Thanks so much in advance for those gurus that are willing to help me, I am a newbiew and I looked in most of the articles about XML basics and images to be displayed as a gallery, but nothing related in regards of the comboBox.  
Here is my script so far.

txtStatus.embededFonts = true;  
txtStatus.text = \_parent.messageCombo;  
mask.height = 0;  
var emails.XML = new XML();  
emails.ignoreWhite = true;  
emails.onLoad = makeCombo;  
emails.load(“emails.xml”);  
function makeCombo():Void {  
var r:XMLNode = emails.firstChild;  
var c:Number = r.childNodes.length;  
for (var i:Number = 0; i \< c; i++) {  
var u:MovieClip = buttons.attachMovie("\_item, “\_item” + i, i);  
u.\_x = 0;  
u.\_y = 0 + i \* 16;  
u.id = i;  
u.txtEmail.txt = r.childNodes\*.firstChild.NodeValue;  
u.onRealease = function():Void {  
bgCombo.colorTo(\_parent.colorOut, \_parent.bgVelocity, \_parent,bgAnimation);  
txtStatus.efecto(r.childNodes[this.id].firstChild.nodeValue);  
mask.height = 0;  
\_global.emailVar = r.childNodes[this.id].attributes.dir;  
trace(\_global.emailVar)  
};  
u.onRollOver = function():Void {  
this.bgU.colorTo(\_parent.colorOverCombo, \_parent.bgVelocity, \_parent.bgAnimation);  
};  
u.onRollOut = function():Void {  
this.bgU.colorTo(\_parent.colorOutCombo, \_parent.bgVelocity, \_parent.bgAnimation);  
};  
}  
};  
btn\_open.onRealease = function():Void {  
mask.height = buttons.height;  
};  
btn\_open.onRollOver = function():Void {  
this.bg.colorTo(\_parent.colorOverComboBtn, \_parent.bgVelocity, \_parent.bgAnimation);  
};  
btn\_open.onRollOut = function():Void {  
this.bg.colorTo(\_parent.colorOutComboBtn, \_parent.bgVelocity, \_parent.bgAnimation);  
};

Thanks

---

<div class="post-metadata">

**Author:** ![agabriel](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@agabriel](https://forum.kirupa.com/u/agabriel)\
**Post date:** [June 2, 2008, 5:37pm UTC](https://forum.kirupa.com/t/e-mail-form-combobox-xml-images/262016/2 "2008-06-02T17:37:55Z")

</div>

Is this Actionscript 3.0 or 2.0?

---

<div class="post-metadata">

**Author:** ![samy4movies](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/samy4movies/32/8371_2.png) [@samy4movies](https://forum.kirupa.com/u/samy4movies)\
**Post date:** [June 2, 2008, 5:50pm UTC](https://forum.kirupa.com/t/e-mail-form-combobox-xml-images/262016/3 "2008-06-02T17:50:18Z")

</div>

> [@agabriel;2334932](#):
>
> Is this Actionscript 3.0 or 2.0?

Is AS 2.0

---

<div class="post-metadata">

**Author:** ![samy4movies](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/samy4movies/32/8371_2.png) [@samy4movies](https://forum.kirupa.com/u/samy4movies)\
**Post date:** [June 2, 2008, 5:59pm UTC](https://forum.kirupa.com/t/e-mail-form-combobox-xml-images/262016/4 "2008-06-02T17:59:34Z")

</div>

> [@agabriel;2334932](#):
>
> Is this Actionscript 3.0 or 2.0?

If you would like to see the whole files I can send them as well.  
To test it in the same way I have. OK?  
Thanks
