Jump to content
GreenSock

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

blitmask disabled every thing

Recommended Posts

 i use ThrowPropsPlugin and blitmask , and its wow scrollview for my background

 

but it disabled every listeners and every movieClips animation inside the background movieClip 

 

i dont know why ?

 

this line of code which disable every thing .. 

blitMask = new BlitMask( mcBg, bounds.x, bounds.y, bounds.width, bounds.height, false);

 

 

please help me , i need the smooth blitmask scroll , and also i need the children inside the background

-mcBg- to work .

Link to comment
Share on other sites

Hi and welcome to the GreenSock forums.

 

I think you might be missing a key component to how BlitMask works. When a BlitMask is created, the target DisplayObject (in your case mcBg) is swapped for a bitmap. BlitMask literally takes  a snapshot of the target and only displays the pixels within the bounds that you have set. 

 

You can set bitmapMode = false to regain interactivity. Typically folks will turn bitmapMode on as soon as a scrolling animation starts and then set it to false when the animation is finished.

 

The docs go to great lengths to describe these concepts:

 

http://api.greensock.com/as/com/greensock/BlitMask.html

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