View Full Version : External swf quick question

04-19-2012, 11:27 PM
Im trying to load an external swf which has a class.

my opening scene which is trying to load this swf also has a class, Do i need to put the name of the external swf class within my opening scene because i keep getting an output error:-

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at spaceWars()

spaceWars being the name of document class name of the external swf im trying to load.

i do not get any compile errors though, so the code seems alright.

04-25-2012, 01:07 AM

Did you check to see if spaceWars() is at the correct target location? The correct target location is needed to run a program or function, otherwise it may repeatedly reproduce the error. Also, check your Action-script for the function and see if there are any internal bugs/ errors.