View unanswered posts | View active topics


Reply to topic  [ 4 posts ] 
External SWF and SWC 
Author Message
Member

Joined: Tue Oct 12, 2010 3:53 pm
Posts: 3
Post External SWF and SWC
Hi,

I have a main SWF which load externals SWFs. Each of these SWFs use 1 or more differents SWC and they work while running separately.

Then I addChild the external SWF once loaded, it's like the SWC of these SWF are not correctly loaded. I can't add all these SWC into my main SWF because some of them use the same class name inside.

What can I do to fix it ?

This is the error I got while addChilding it: "[Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference."

Thank you


Tue Oct 12, 2010 3:56 pm
Profile
Member

Joined: Tue Jun 08, 2010 10:16 am
Posts: 35
Post Re: External SWF and SWC
Just a wild guess, but I think that the path to any file loaded externaly has to be relative to the first swf. That's something you can check.


Tue Oct 12, 2010 4:42 pm
Profile
Member

Joined: Tue Oct 12, 2010 3:53 pm
Posts: 3
Post Re: External SWF and SWC
Each of my external SWF is in the same folder as my main SWF...

If I remove each call from my SWC in my loaded SWF, it work. I just don't know what to do to make it work with my SWC.


Tue Oct 12, 2010 5:02 pm
Profile
Member

Joined: Tue Oct 12, 2010 3:53 pm
Posts: 3
Post Re: External SWF and SWC
I just found the solution here : http://www.kirupa.com/forum/showpost.php?p=2123134&postcount=366.

Hope it help someone else :)


Tue Oct 12, 2010 5:52 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.