Jump to content
Search Community

GreenBeak

Members
  • Posts

    7
  • Joined

  • Last visited

GreenBeak's Achievements

2

Reputation

  1. Oh wow. I didn't know that I have to activate the VisiblePlugin, since I didn't get any error messages I just assumed that something was buggy... Works now, thanks!
  2. Using the anonymous function didn't work for me. I get the following error message: TypeError: Error #1010: A term is undefined and has no properties. at MethodInfo-245() at Function/http://adobe.com/AS3/2006/builtin::apply() at com.greensock::TweenLite/render() at com.greensock.core::SimpleTimeline/render() at com.greensock.core::Animation$/_updateRoot() I haven't tried TimelineLite, however, I noticed that there is a difference in using a function to set the visibility and setting the visible attribute in the tween directly. Strangely enough, these two codes don't work the same, although one would expect so: var tween = new TweenLite(mc, 0.5, {visible:false}); var tween = new TweenLite(mc, 0.5, {onComplete:setVisibility, onComplete:[mc,false]}); function setVisibility(mc:MovieClip, state:Boolean) { mc.visible = state; } In the first case the mc gets hidden correctly, but visible has the feature that the mc is not listening to EventListeners anymore. However, setting the visible attribute directly in TweenLite still triggers the EventListener, whereas calling a function to do so correctly disables any EventListener dispatches. Anyone know why?
  3. Hi, I would like to set the visibility of a movie clip onReverseComplete. Is there a way to call a method (.visible = false) in onReverseComplete or any other way, instead of creating a function that solely is responsible for calling movieClip.visible = false;
  4. Wow. It took me literally almost 30 minutes to find the error. For what it's worth. My offset was wrong. I was using the MovieClip's mouseX-Value instead of the stage's... no wonder it stuttered! Thanks for your example file!
  5. Hi guys, I just tried the ThrowPropsPlugin to move a MovieClip in x-direction instead of y-direction like in the example. I took the code from the example and changed every y-value to an x-value. However, it doesn't seem to work smoothly. The drag-movement is somewhat stuttered. Strangely enough, the drag-movement where the position exceeds the bounds runs smoothly. I've attached a minimal working example, maybe someone can have a look and tell me where the code goes wrong. For some reason I'm not allowed to attach any file, so I'll just upload to my Dropbox: https://dl.dropboxusercontent.com/u/289091/ThrowPropsPluginTest.fla
  6. Thank you very much for the quick reply! Is there a benchmark on how much faster the animations are when in using BlitMask's internal bitmap version compared to when bitmapMode is disabled? Or is there no advantage in using BlitMask anymore, if I turn off bitmapMode?
  7. 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' is defined at the top of the class): this.bm = new BlitMask(this.mc, this.mc.x, this.mc.y, 1920, 1080, true, true, 0, false); However, the BlitMask seems to be an object laying over all the other objects, meaning my EventListeners on the content are not recognized. Is there some workaround for this or am I mistaken here and the error lies somewhere else?
×
×
  • Create New...