es en en en en en en en en en en en en en en en fa en en fr hbs_lat en en en es en en en de en en fr en en ca en en en en en en ca ca en en fr en en en en en en en en en en en fr en en en en en en en en en es nb en en es en en en en en en en es nb en en es en en en en en en en es nb en en es en en en en en en nl en en en en en en en en nb en en en id en en fr es zh en en en en en en en en nb en en en id en en fr es zh en en en en en en en en nb en en en id en en fr es zh en en en en en en en en nb en en en id en en fr es zh en en ca en es en de en hu en en en es en en en en en en en de en en en en en en en fr cv es tr es en en en en ms en en en en en en fr en hbs_lat en en en en en en en fr cv es tr es en en en en de en en en ca en en en en en
Whatever you're getting paid Carl, it's not enough. Thankyou thankyou thankyou i tried mc.this.mouseX, but ofcourse it didn't like it, so i created a class for mc thinking it would be recognised then... I am new to the whole class system, have always kept code in the timeline, after hearing about how thats bad practice, and how many advantages there are in class files, classes are obviously the way to go. Thankyou for putting it so simply with such a great explanation, Thanks again Carl,
throwprops interferring with stage listeners?
khadesa replied to khadesa's topic in GSAP (Flash)
khadesa posted a topic in GSAP (Flash)
Smooth Draggable Background X Axis
khadesa posted a topic in GSAP (Flash)
Hey everybody, I am trying to make my background scroll smoothly according to the user's drag, window (stage) is 800 by 480, background (lvl1_blitmask) is 2400 by 480 It's scrolling quite nicely, but not perfectly, it skips and jumps around toward the right side of stage. It is surely a matter of the maths involved, im afraid i just comprehend where... Here is the code: function mouseMoveHandler(event: MouseEvent): void { if (blitMask.bitmapMode == false) { blitMask.enableBitmapMode(); } var x: Number = this.mouseX - xOffset; if (x > bounds.left) { lvl1_blitmask.x = (x + bounds.left) * 0.5; } else if (x   50) { x2 = x1; t2 = t1; x1 = lvl1_blitmask.x; t1 = t; } event.updateAfterEvent(); } function mouseUpHandler(event: MouseEvent): void { lvl1_blitmask.stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler); lvl1_blitmask.stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler); var time: Number = (getTimer() - t2) / 1000; var xVelocity: Number = (lvl1_blitmask.x - x2) / time; ThrowPropsPlugin.to(lvl1_blitmask, { throwProps: { x: { velocity: xVelocity, max: bounds.left, min: bounds.left - xOverlap, resistance: 1000 } }, onUpdate: blitMask.update, ease: Strong.easeOut }, 10, 0.5, 1); I have also uploaded the flash cc file, Thanks anybody who can spare a sec, LeonardTheLeopardV2.zip
Scrolling Navigation Menu for Mobile Using Throwprops
khadesa replied to khadesa's topic in GSAP (Flash)
Arrrrgggghhhhh, serious? You are the man Carl, thanks heaps, Boy oh boy do i feel silly. At least it wasn't syntax this time... Okay, so i have a real question this time, How can i make the buttons clickable/touchable? I have used a mouse.click event and added TweenLite.to(blitMask, 0, {scrollY:0, onComplete:blitMask.disableBitmapMode}); To the mouse Up function, i know i'm on the right track, but i can only to manage to get the buttons too clickable (every time you drag) or not clickable at all using this line in various positions, What method would you recommend to accomplish this? Where should the disableBitmapMode sit? Is there a more efficient way? Thanks Carl, and everybody at greensock, By the way, i am determined to publish a tutorial on this topic :]
Scrolling Navigation Menu for Mobile Using Throwprops
khadesa replied to khadesa's topic in GSAP (Flash)
Can anybody spare a glance? i've tried for so long and cannot get anywhere... :[
Scrolling Navigation Menu for Mobile Using Throwprops
khadesa replied to khadesa's topic in GSAP (Flash)
Hey Guys, Thanks for the suggestions! i've think i've modified the code nicely enough for the menu, however, the problem i have now is that the list seems to have a mind of its's own when i release, i cannot seem to find the values to be modified to correct this... where to position the object on mouse up.. i have put together a very basic example to clarify, would love to know what i'm missing, Thanks again! SmoothScrollerV3.zip
Scrolling Navigation Menu for Mobile Using Throwprops
khadesa posted a topic in GSAP (Flash)
Helly everybody, I was hoping someone out there might be able to provide some info on applying the greensock throwprops plugin to a vertical scrolling nav menu for an android app. I have tried modifying the code from the throwprops page, but it uses a textfield, i want buttons inside a movie clip... Is that even possible? Can anybody point out any useful tuts or articles? or would someone like to view the file? Thanks a bunch everybody, Alex
“With the incredible functionality, and the mind-blowing customer service, the price of Club GreenSock admission is well worth it!”
“After searching around the web for alternatives, I found GreenSock to be the most performant.”
“Spent today converting an animation to pure CSS, and then into GSAP. GreenSock was an order of magnitude easier. Love it.”
“The GreenSock animation platform is one of the most useful sets of tools in existence when it comes to web animation.”
“Go and browse through FWA or Awwwards, then view source of anything you see that has cool animation and you will be surprised how widely GSAP is used.”
“If every library were as robust and reliable as GreenSock’s, the world would be a much better place for software engineers and their clients. I can't think of a better designed or better performing tool, and as a bonus, it's fun as heck to play with.”
“Honestly think without TweenMax, I'd of changed careers by now; it's that good.”
“Really quite impressed with @GreenSock JS - even the small things.”
“This stuff is so incredibly amazing I can't believe it. The level of details and options put into these things and the natural instinct GreenSock has for solving everyday problems is impressive.”
Sign Up For Our Newsletter
Get the latest updates on GreenSock products, exclusive offers, and more right in your inbox.
Your information will always be kept confidential.
Thanks for signing up!
Now you'll begin receiving the latest GreenSock updates, exclusive offers, and more right in your inbox. Welcome aboard.