actionscript 3 - Issue loading external swf on main file with as3 -
hi i'm new flash cs6 , and as3 , have been stuck on ipad/android restaurant menu have been doing. amm trying load external swf on main swf have been getting error:
typeerror: error #1009: cannot access property or method of null object reference. @ cuisine/init()[c:\users\pao\desktop\oz\swipe\cuisine.as:32] @ cuisine()[c:\users\pao\desktop\oz\swipe\cuisine.as:22]
i got code of swipes tutorial found online. in different sections fo menu planning load different swfs because couldn't code work sections @ same time.
like said, new as3 , don't understand coding i'm stuck @ dead end.
hoping kind soul me out of rut. files can found here
it can bit unintuitive load external swfs, if new as3. if remember correctly, big problem can need wait entire swf load before trying access anything.
you should try access code external swf after event.complete event. see here more info
i suggest use greensock loader instead since it's bit simpler.
hope helps
Comments
Post a Comment