Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
laxbuddha

error when adding Hit Area

Recommended Posts

I am trying to do basic tweening.  When I click into the vector MovieClip, and try to add a MC and change alpha to 0 to enlarge the hit area, I get this:

 

Error: Cannot tween a null object.
    at com.greensock::TweenLite()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:296]
    at com.greensock::TweenLite$/to()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:580]
    at hedrickMenu_fla::hedrickMenu_1/exchangeMenu()[hedrickMenu_fla.hedrickMenu_1::frame1:31]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1006: value is not a function.
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:447]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at com.greensock::TweenLite/init()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:379]
    at com.greensock::TweenLite/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:453]
    at com.greensock.core::SimpleTimeline/renderTime()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\core\SimpleTimeline.as:93]
    at com.greensock::TweenLite$/updateAll()[C:\Users\jvollber\Desktop\moralityPlayFlash\com\greensock\TweenLite.as:642]
 

 

Anyone have any idea why this is doing this?

Link to comment
Share on other sites

Error: Cannot tween a null object.

 

that means that the target of your tween is null or undefined.

 

Prior to the tween that is causing the error add a trace

 

 

 

trace("target = " + nameOfYourMovieClip)
 

 

 

For the best support it is helpful to post the code that is executing prior to the error happening.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×