Jump to content

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

emsee last won the day on March 27 2013

emsee had the most liked content!


  • Posts

  • Joined

  • Last visited

  • Days Won


emsee last won the day on March 27 2013

emsee had the most liked content!

Profile Information

  • Gender
    Not Telling

emsee's Achievements



  1. No, I've tried it using CodePen, and on my local dev environment. It just seems to be glitchy on mobile. On desktop it works perfectly fine. I'm testing on iOS 14.4.2 on an iPhone X.
  2. That's odd. It was still being problematic on mobile, but now that I've checked on Desktop, it's working fine. Looks like I need to do more testing!
  3. Unless I’m missing something, that doesn’t seem to resolve the issue. I’ve updated the pen, but it’s still jumping to near zero
  4. Hey Jack, Thanks for your help! This hasn't quite solved the issue, but it's getting closer. The problem now is that scrollTrigger seems to be sending an update with a value close to zero - so essentially the scrollbar briefly jumps to the top of the page, then back to where it should be (which causes all manner of problems in my app). I've updated my pen to show the new problem: https://codepen.io/highlyinteractive/pen/xxgMQxL My first thought was to set a boolean to ignore the update while the reset is happening, but that doesn't seem to prevent it. Any ideas what's going on?
  5. I'm using ScrollTrigger to, among other things, control webGL. It's working beautifully. However, I'm trying to set up a custom snapping system (ScrollTrigger's snap doesn't meet my needs) and hitting an issue when I disable then enable ScrollTrigger. I'm basically using ScrollTrigger to tween a value from 0-1 which I pass to my camera. When I get close to a certain value (in my codepen example, when I pass 0.1) I want to disable ScrollTrigger and manually tween to a new value. After some gubbins (not included in my pen), I set the scroll position using scroll() and re-enable ScrollTrigger. The problem is that ScrollTrigger seems to jump back to where it was disabled and then tween to the target position all over again! This only happens when I have Scrub enabled. If I set it to 0, there is no problem, but then I lose the nice smooth scrolling in my WebGL. Can anyone please help me prevent this problem? PS: Sorry if my CodePen looks a little odd. I've basically extracted the important code from my app, so the structure is a little funky.
  6. OK, I'll check those out. I'm trying to tween the properties of a set of generated objects - pretty much exactly what I've demo'd
  7. Thanks for the reply. Perhaps I'm using gsap wrong, but my understanding was that passing an array as the property to tween would apply the tween to each object in the array? But when I log this from inside the onUpdate function, I get a cyclic error. Here's a pen to demonstrate https://codepen.io/highlyinteractive/pen/wvMeXxP I guess I hoped there would be some kind of target attribute that I could use to modify the objects during the tween
  8. I have an array of objects that I'm trying to animate with gsap, but I'm confused about how to use callbackScope with an array? let array = [obj1, obj2, obj3 ... ]; gsap.to(array, { duration: 1, callbackScope: array, onUpdate: function () { console.log(this.objectProperty); } }); If I was tweening a single object, this would be a reference to the object, but with an array of objects, it doesn't work. Would it be better to loop through the array & create multiple tweens that way? Is there any way to get the scope of each object in the array within the onUpdate function?
  9. I have three tweens, each one with a sound effect called on start: //simplified code: TweenMax.to(this, 10, {alpha:1, delay:1, onStart:playSound1}); TweenMax.to(this, 10, {alpha:1, delay:2, onStart:playSound2}); TweenMax.to(this, 10, {alpha:1, delay:3, onStart:playSound3}); function playSound1():void { LoaderMax.getLoader("sound1").playSound(); } function playSound2():void { LoaderMax.getLoader("sound2").playSound(); } function playSound3():void { LoaderMax.getLoader("sound3").playSound(); } I would like the sounds to overlap, but instead, the first sound is cut off by the second, which in turn is cut off by the third. Can I get all three sounds overlapping? Is there a way to access the loaded sound object & play it through a separate channel manually? Thanks
  10. Hi, Thanks for the update, it's really helpful. When I first tried it, I assumed it would set the number of repetitions to whatever value is passed. I guess it actually sets the current repetition (so if your repeat value is 3 and you set it to 1, it plays the loop twice more). Do you think it would be better to have two get/setters: One to set the repeat count & one to set the current repeat? Either way, I'm happy
  11. Hi, I have a simple problem, which I wondered if VideoLoader has a solution to. If not, I can achieve it manually, but thought I'd ask. I've got a simple video which repeats 3 times: vid = new VideoLoader("video.flv", {name:"vid", container:this, repeat:3}); vid.load(); I call it like this: vid.playVideo(); ...but this only works once. The second time I try to play it, it doesn't play. I tried calling it this way instead: vid.gotoVideoTime(0); vid.playVideo(); ...but then it only plays once. Is there any way to maintain the repeat settings?
  12. Woops - found my answer! onInit is called after the xml is loaded, but before any child loaders are created. Thanks Greensock - you think of everything!
  13. Hello, I know it's possible to have mixed xml (with loader's and also other content), but I'm having trouble working out how to access XML in LoaderMax before child loaders have finished. For example, here's a simple version of my xml: <?xml version="1.0" encoding="utf-8"?> <content> <preload> <LoaderMax name="..." prependURLs="assets/" load="true"> <MP3Loader name="..." url="..." autoPlay="false"/> <ImageLoader name="..." url="..."/> </LoaderMax> </preload> <fonts> <LoaderMax name="..." prependURLs="assets/" load="true"> <SWFLoader name="..." url="..."/> <SWFLoader name="..." url="..."/> </LoaderMax> </fonts> <main> <prompts>Some other content</prompts> ... </main> </content> All good so far. I get an onChildComplete event for each item loaded, plus one for each LoaderMax itself. Once everything is loaded, I get an onComplete event. But... I really need an event for the XML file itself. I can access it once everything else has loaded, but I really need to access it before the load has completed (I'm assuming it's the first thing loaded?). Is this possible? I really hope it is!
  14. I found it crashing when the System memory got to around 1.8GB - which I guess is the Windows limit as I don't think single processes can use more than 2GB each. Might be different on Mac. Not sure what bitmap dimensions you'd need to use that much memory up
  15. OK, I'm near certain it's a memory issue. At a certain point, the player just isn't able to generate any more bitmap tiles & falls over.