Share Posted February 3, 2012 A fairly common and VERY time consuming debugging chore on complex flash apps using Tweenlite is often spent doing hours of detective work, trying to locate which objects are returning null ie this error TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock.plugins::VolumePlugin/onInitTween() at com.greensock::TweenLite/init() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() Is anyone aware of any debugging hooks within TweenliteTweenMax that might help in determining the actual instance name of null objects? Link to comment Share on other sites More sharing options...
Share Posted February 3, 2012 Unfortunately, I really don't think so. a null object reference by nature points to something that doesn't exist. Those #1009 errors are thrown before TweenLite gets its hands on the null object. The flash player itself is saying "I can't do what you are asking me to do. The function you want to run requires something that isn't null" the only thing you can really do is try to trace out the target BEFORE the tween is created and then try to hunt down which traces aren't giving you the expected results. which back to your original problem with large apps, isn't really easy all the time trace("intro " + intro_mc); TweenLite.to(intro_mc, 1, {x:100}); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now