Hi there.
I ran into weird issue with swfloader component.
I need to load into host flex application different swf (flex, flash etc)
from external developers. So the choice was to use separated
ApplicationDomain for swfloader, like:
var appDomain = new ApplicationDomain();
swfLoader.loaderContext = new LoaderContext(false, new ApplicationDomain());
swfLoader.load("someFlexFile.swf")
It actually loads specified swf but the loaded content behaves weird -
Mostly it throws such errors:
at Object$/Object::_hasOwnProperty()
at Object/http://adobe.com/AS3/2006/builtin::hasOwnProperty()
And it absolutely doesn't following layout rules of parent container.
When I use same application domain as host or child application domain all
works nice and smooth.
But that's not the solution as
1. we need it to have in different applicationdomain as sometimes there
could be used same classes but different version of it.
2. loaded swf's have their individual styles and while loading with same or
child applicationdomain - the host application domain style is replaced with
loaded one....
--
Best regards,
Oleg Filipchuk