# Img tag & applicationdomain

**URL:** <https://forum.kirupa.com/t/img-tag-applicationdomain/308614>\
**Category:** Uncategorized\
**Created:** [April 27, 2010, 5:02am UTC](https://forum.kirupa.com/t/img-tag-applicationdomain/308614 "2010-04-27T05:02:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![magarik](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@magarik](https://forum.kirupa.com/u/magarik)\
**Post date:** [April 27, 2010, 5:02am UTC](https://forum.kirupa.com/t/img-tag-applicationdomain/308614/1 "2010-04-27T05:02:32Z")

</div>

good morning…  
i stumbled across something frustratingly interesting…

i am extending the textfield class to be able to contain videoplayers and whatnot, with smart resize, align, events and dynamic everything.

when i dispatched a custom event from my Text class to one of the \<img\> loaded classes, i got a type coercion failed error:  
conversion de il.maurik::MEvent@1075fe79 en il.maurik.MEvent impossible.  
(pardon my flash’s french)

googling around found out it was because they were from different applicationDomains.  
it’s impossible (as far as i know) to set an applicationDomain for an \<img\> type loader, because it starts loading before you even know it’s there.

when i tried passing things without strong datatyping the objects i passed came out from the other side as null.

please anyone, do you know any way around this?  
thanks,

michael
