Jump to content
GreenSock

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

ScrollRect no working

Recommended Posts

I am try this code with Tweenmax but no working

 

TweenMax.to(bandaroja,6,{scrollRect:{left:0, right:1024, top:0, bottom:512, startAt:{left:0, right:0, top:0, bottom:512}}, ease:Circ.easeOut});

 

I think all is well, I put the mark registration in the top-left

 

I am using AS2

 

Thanks for help me

Link to comment
Share on other sites

It appears you are nesting our startAt props inside the scrollRect properties

 

 

Try this

TweenMax.to(bandaroja,6,{scrollRect:{left:0, right:1024, top:0, bottom:512}, startAt:{scrollRect:{left:0, right:0, top:0, bottom:512}}, ease:Circ.easeOut});

 

Also, TweenMax has a fromTo() method which would work as well:

 

TweenMax.fromTo(bandaroja,6, {scrollRect:{left:0, right:0, top:0, bottom:512}}, {scrollRect:{left:0, right:1024, top:0, bottom:512}, ease:Circ.easeOut});

 

in either case, its important to note that the scrollRect properties need to be set for the beginning and ending values inside their own object {}

Link to comment
Share on other sites

I think there is a bug in the Plugin Explorer, because only show

 

import com.greensock.*;

import com.greensock.easing.*;

 

and it should be:

import com.greensock.*;

import com.greensock.easing.*;

import com.greensock.plugins.*;

TweenPlugin.activate([scrollRectPlugin]);

 

now ir working

 

But I like me know it is possible move the movieclip, down to up, or right to left, I try change the mark registration but no working for me

 

Thanks for support

Link to comment
Share on other sites

Sure, you can move the movie clip while scrollRect is happening. Just be sure to set the x and/or y coordinates outside the scrollRect object:

 

TweenMax.fromTo(mc,6, {scrollRect:{left:0, right:0, top:0, bottom:512}, x:0 }, {scrollRect:{left:0, right:1024, top:0, bottom:512}, x:100, ease:Circ.easeOut });

 

As for the PluginExplorer, I can see how you could have missed the activation code but it is available for all the plugins on the menu screen:

Screen shot 2012-12-05 at 8.58.57 AM.png

(note that scrollRect is checked and the code is below)

 

This makes it is easy to generate the activation code for multiple plugins at once.

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.
×