Jump to content
Search Community

Tweenmax not working in CS5 [SOLVED]

mustafag test
Moderator Tag

Recommended Posts

Hi,

 

I have used tween max many times when i was having CS3 or CS4.

 

Since i have installed CS5 tweenmax is not working no errors nothing.

 

Following is my simple function i am trying to execute but nothing happens

 

import com.greensock.*;

 

function _showIt(obj){

if(!obj.alpha || !obj.visible) {

//trace(obj.name);

//obj.visible = true; obj.alpha = 1;

TweenLite.to(obj, 1, {alpha:1});

}

}

 

Please help me, i have spent hours on forums but no solution found.

 

if i uncomment the commented one my movieclip hides but when i use TweenLite.to nothing happens

Link to comment
Share on other sites

Is obj.visible false? If so, that'd explain why you're not seeing it. In the non-TweenLite code that you commented out, you set visible = true but in the TweenLite line you didn't. Maybe you meant to do an autoAlpha rather than a plain alpha tween?

 

If you're still having trouble, please post a simple FLA that demonstrates the problem (the simpler the better). I can assure you that the tweening platform works great with CS5 (pretty much any version actually).

Link to comment
Share on other sites

Hi,

 

I really appreciate your quick reply.

 

I have attached a sample with one movieClip and two buttons to show hide.

 

two functions to show and hide going in the function getting the mivieclip but no tween.

 

Please help

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.
×
×
  • Create New...