Jump to content

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

Search the Community

Showing results for tags 'blitmask'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Personal Website



Company Website



  1. Hello! After the release of the player version (9 February 2016) was to pour a lot of mistakes #1508 in our game. The version of the library, we have updated, but it did not help. We hope to fix this error Stack Trace:ArgumentError: Error #1508 at com.greensock::BlitMask/_render() at com.greensock::BlitMask/_render() at com.greensock::BlitMask/update()
  2. Hi, I have a small issue with my scroller withing my mobile app. The issue is if I'm pressing, holding and dragging (up or down to wanted position) in one action, and then lifting my finger - the scroll will continue the animation of scrolling. It's like it "stores acceleration" - If my drag action is bigger, than the scroll will continue the animation more. How can I disable this "after scroll" animation? I just want a smooth and linear scroll. Can someone help? Here is my current code: ThrowPropsPlugin.to(buttons_container_mc, {throwProps:{ y:{velocity:yVelocity, ma
  3. I am getting this weird error trying to use BlitMask when debugging on my android device: Error #2030: End of file was encountered. And it is coming from this part of the BlitMask code, on TOUCH_BEGIN event (when i put my finger down on the BlitMasked object): /** @private **/ protected function _mouseEventPassthrough(event:Event):void { if (this.mouseEnabled && (!_bitmapMode || (event is MouseEvent && this.hitTestPoint(MouseEvent(event).stageX, MouseEvent(event).stageY, false)))) { dispatchEvent(event); } } When debugging in emulator, the error does not happen, only
  4. Hi there, I'm stumped, and it's probably because I've been up all night with this code.. After staring at it and tinkering with it, borrowiing bits from other snippets and trying various combinations for so long it all seems like an ugly, jumbled mess to me now and I can no longer tell up from down. There's no denying it anymore, I need help. There's a bug in here that I can't pin down. At first it would seem everything is normal, but then you realize there is something gravely wrong with how the overlap or the offset is being massacred on mouseDown. Or mouseMove. I've given up, any help
  5. Hi, I am building a complex app for iOS with long scrolling sprites. Actually, using BlitMask instead of scrollRect on a large Sprite, on iOS iPad retina it destroys performance instead of improving it. Is it expected or am I doing something wrong? Actually, the flow is as follows: - create BlitMask once enableBitmapMode() once onEnterFrame apply BlitMask.scrollY apply BlitMask.scrollX onCompleteMotion disableBitmapMode() it works as expected, interaction is restored on motion complete, but performance is horrible... goes from 40fps to 3fps... I export in GPU mode. Am I
  6. Hi, Not sure how many questions get asked about flash these days but I have one. I have having issues on scrolling using the code below. It works but but its slow. I am thinking a "blitmask" would work great here but I don't know where I would put it. Can you give me some tips? Thanks -Ed /// SCROLL BAR /////////////////////// public function throwIt(clipContent:MovieClip) { // old code //var bounds:Rectangle = new Rectangle(_screenX - clipContent.width,0,_screenX,_screenY); // custom var var bounds:Rectangle = new Rectangle(0,0,_screenX,_screenY); //var mc:Sprite = meow.g
  7. I read a lot of articles after I decided to make my own scrollable DisplayContainer in mobileStyle. There are a lot of people who had problems with clickable Items they want to scroll and here is my solution after coding a bit around to find a solution. The Class isn't optimized yet but for those who wants to start with a similar project it could help. Feedback or optimisations are really welcome. Cheers package ui.components { import flash.display.Sprite; import flash.display.DisplayObject; import com.greensock.BlitMask; import flash.events.Event; import com.greensock.plugins.Tw
  8. Hi, I have been searching for a good example of creating a simple accordion menu, but everything I have come across seems over engineered. 1_I really like the simplicity of this menu: http://codepen.io/ewe1991/pen/agfqA but can't figure out how I could convert the jQuery code to AS3? Does anyone have any ideas? 2_ Could this be accomplished using the blitMask plugin? For example: Set up: 3 mcs that each contain a tab panel portion and a content portion. Have the blitMask to be 1/3 th size of each mc and then when the user hovers over, have the height of the blitMask itself animat
  9. Hello, I am experimenting with the blitmask object and I am running into a little odd problem. When I run a very simple demo of simply scrolling a textfield using blitmask, the movement lags about every 4 seconds. The lag looks like a jitter and for maybe 1/2 a second I cannot read anything (almost like the object and the screen refresh get out of sync). When I watch and play with the demo on the website, I see a very very small amount of this lag, but its still much better than what I am seeing. I set my application to 60 fps and I am using embedded fonts. I am running an i7 wi
  10. Hi everyone! First, congrats for the awesome new website.. very refreshing!! Second sorry for my english but that's not my native language.. Following your example using ThrowProps with BlitMask, I need to edit the content of the target DisplayObject on the fly but I can't manage it. My target is a MovieClip with datas from a contact form. At startup, I fill my target with datas saved previously (with a SharedObject- this is an AIR app). Then I create the BlitMask and everything works fine. But when I try adding more contacts, they don't add anymore in the target object.
  11. Hi there, I just discovered the new GreenSock website, and I'm wondering if anyone knows where the Blitmask page www.greensock.com/blitmask/ hides. I really need this page, because there is an example of how to create a touch carousel in the comments. Thanks !
  12. I would like to replace Flex Spinner (sometimes called Picker or UIPicker) with something written in AS3 without Flex. ThrowProps and Blitmask should be a great help. Are there any examples of doing using Greensock?
  13. ThrowProps and Blitmask really do work well together for scrolling, but most of my views have too much interactivity for Blitmask to be useful. The BlitMask would need to be updated with a forced recapture of the Blitmask each time any change is made to the view, and this is taking about 500ms, which interferes with a smooth scroll. Is there an example for using ThrowProps in a Scroller without using BlitMask?
  14. I've used BlitMask api for numerous banners to show slot like rotations. Its works like a charm. But as soon as I try to upload these banner on Google ads, it rejects the swf throwing the error "flash performs disallowed operation - Mouse Tracking" Please advise.
  15. Hello. I have a problem and im not sure how to solve it (with the BlitMask technic). Currently Im trying to create a mask (which I can more around the stage) that shows only a fragment (lets say 50x50) of the main movie clip.The main MC (lets name it Rainbow) has elements that are moving in it (like i black ball that goes from 1 corner to the other corner and then repeats that infinitely ). So what it is supposed to be happening is this: There is the main MC which stays at stage.x and stage.y and then there is my little new element (lets name it frac ( from fraction )), which i can mo
  16. First of all, thank you very much for this brilliant job! I use blitmask as Carl Schooff’s singleDigit.fla example, but I’m using the button to go forward number by number and another button to choose the number user wants. When user choose a number i need to 'disable' this number coloring it in grey for exemple, or modifying its alpha level. … var blitMask1:BlitMask = new BlitMask( strip1, strip1.x, strip1.y, strip1.width, 300, true, true, 0xffff00, true); … //if user choose the number three... strip1.three.alpha= 0.5; // I want to do that but it doesn't work and I don’t know how to modify
  17. Hi! First of all, @Jack: thanks a lot for the awesome Greensock framework! Currently I'm building an application that supports swiping. It's has a fairly large resolution. The application itself has a screen size of 1920x1080, but the swipable content is roughly 15000px wide (height being 1080). So I was thinking, since the swiping was not very smooth, that I could use BlitMask to reduce the unneccessary calculations. However, I'm doing something wrong, since the mask itself doesn't seem to work correctly for dragging and swiping gestures. I have the following line in my code ('bm'
  18. Let's say I have a image slider that I want it to scroll when I click on a button. But I do not want it to be the same order every time I click on the image. If the image width is about 100px, can blitMask just cut out 100px from it and random rearrange it when it scrolls? And if the image have an event I want to trigger, I need to remove the 'disableBitmapMode' when the animation stop. But when I disable it, the 'copied' image will be removed making the slider be out of the screen, or in a different position when it stopped. Or a better way to do it would be using enter Frame?
  19. hello everyone, I'm trying to mask a Sprite containing some TextFields. TextFields are cut off. the width is the same as the Sprite, but even if I give it + 100 pixels, it will not change. without the BlitMask, it's not cut off. what can I do? thanks in advance.
  20. OK, problem was found and solved alredy. the problem was that the BlitMask cannot be reinitilize. The dispose does work only for the last initilization, the object from previouse stays on the stage.
  21. Hi all, I have created an infinite scrolling background with 4 layers. For giving the wrapping effect on each layer, I am using 2 copies of the same image and during the loop i am shifting the x positions. Now i want to use BlitMask for this, and i have sccuessfully implemented it too. I just want to have one doubt cleared : - there are 4 sprites for each layer updating in an update loop - these 4 layers are a child of BGScreen sprite should I use the BlitMask for just the BGScreen sprite or should I create 4 instances for each layer so that i can use the wrapping feature and the
  22. Hi, I am trying to create a smooth scroll effect: I have a wall that moves horizontally, and I am using 3 pieces with the old-school method. While shifting the wall rotates from x to y degrees. The result is ok, but I want to maximize performances: can I use BlitMask to create a shifting+rotating wall? Is it correct to create the BlitMask for an item, add the item to a DisplayObject, and rotate the DisplayObject? It seems to work ok, even if there is a minor glitch on the top side of the wall, showing the lowest pixels of the wall BMP and certain angles of the rotation (fixable with wrapOffs
  23. Hi, I am working on this slot machine effect based on this tutorial: http://www.snorkl.tv/2011/10/use-blitmasks-wrap-feature-for-easy-bitmap-scrolling-and-looping/ and it works great: var blitMask:BlitMask = new BlitMask(strip1, strip1.x, strip1.y, 94, 105, true, true, 0, true); TweenMax.to(strip1, 2, {y:960}); //blur to 40 and then back to 0. TweenMax.to(strip1, 0.8, {blurFilter:{blurY:20}, repeat:1, yoyo:true}); My issue is that I can't figure out how to have a ease:Bounce.easeOut applied. I tried: TweenMax.to(strip1, 2, {y:960, ease:Bounce.easeOut}); but this looks too roug
  24. 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 .
  25. Hi guys, So i've made a draggable object that looks like a top down view of a tire, it has a blitmasked artwork mc inside, this mc wraps so that when you drag it gives the illusion of the tire rolling. That all works fine but i want the user to be able to switch between a few styles of tires by changing to a new frame of the artwork mc like so: blitMask.dispose(); artworkMc.gotoAndStop(whichTire); artworkMc.x = 0; blitMask = new BlitMask(artworkMc,-artworkMc.width/2,-artworkMc.height/2,artworkMc.width,artworkMc.height,false,false,0,true); some of the tires are different sizes so i