In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Please explain...

Get Adobe Flash player
by makc3d 01 Mar 2011

    Talk

    yonatan at 01 Mar 2011 19:49
    I'm guessing based on avmshell's DomainClass (which may or may not be anything like flash ApplicationDomain) that currentDomain is a getter which creates a new instance each time you call it and they didn't implement a special comparator for ApplicationDomain objects. http://hg.mozilla.org/tamarin-redux/file/e0f7b8b8f8f9/shell/DomainClass.cpp
    9re at 02 Mar 2011 10:22
    this question looks like an older one (you've both answered!) http://wonderfl.net/c/oE0B

    Tags

    Embed
package {
    import com.actionscriptbible.Example;
    import flash.system.ApplicationDomain;
    public class FlashTest extends Example {
        public function FlashTest() {
            // I dont know a thing about application domains :(
            // Please explain...
            trace (ApplicationDomain.currentDomain == ApplicationDomain.currentDomain);
            trace (loaderInfo.applicationDomain == loaderInfo.applicationDomain);
            trace (loaderInfo.applicationDomain == ApplicationDomain.currentDomain);
        }
    }
}