Skip to main content
Inspiring
February 17, 2014
Question

loading external SWF with code and asset, possible?

  • February 17, 2014
  • 1 reply
  • 426 views

it may sound easy but I've been literally struggling to get it done. I've main SWF, which loads child SWF. Child SWF file has some graphics as well as a Vector.<Object> variable. Now, if I load it normally using Loader.load(), it can access child SWF.Vector.<Object>, but there is an issue with it, child SWF's mouseEvents and parent SWF's mouseEvents do not match, parent SWF's MouseEvent.MOUSE_MOVE won't fire if mouse cursor is over child SWF. If I use Loader.loadByte method, mouse issue is solved but I can not access child SWF's.Vector<Object>... I use LoaderContext(false, ApplicationDomain.currentDomain, null) and LoaderContext.allowCodeImport = true...

any idea?? any suggestion???

This topic has been closed for replies.

1 reply

User Unknow
Legend
February 18, 2014

Please let us know your desired platform

Inspiring
February 18, 2014

OS: Any Windows (XP to 8.1)

AIR 4.0 application