Jump to content

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


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

c.marrin519's Achievements


Newbie (1/14)



  1. Makes perfect sense! Thank you so much for all the help!
  2. That one worked perfectly!! That's awesome! What did you end up changing? If you don't mind me asking. Thanks again!
  3. I tried that beta, and had the same issue as before. I looked into it, there is document, and it has documentElement on it, but that documentElement did not have appendChild defined. So, I assigned an empty function to appendChild on that documentElement, and it actually progressed past where it would usually crash. But then it stopped with the following message. ScriptEngine::evalString script src/project.dev.js, failed! ERROR: TypeError: element.setAttributeNS is not a function. (In 'element.setAttributeNS(null, p.replace(reg, "$1-$2").toLowerCase(), attributes[p])', 'element.setAttributeNS' is undefined), location: src/project.dev.js:5803:57 STACK: _createSVG@src/project.dev.js:5803:57 src/project.dev.js:5812:32 I did just try completely removing CSSPlugin from TweenMax a little less than an hour ago, and that did indeed work. I just hadn't had a chance to post my results yet! I really appreciate the work you put into this! I'm good, but I'm more than willing to help if you want to work through to a less dire solution. Please let me know, and thanks again for the help!
  4. Hi Jack, Yes, that's very likely the case. Cocos Creator builds out to a custom JS engine for native platforms. Their custom engine likely does not implement document.documentElement or the DOM at all. That's why I wanted to see if I could remove CSSPlugin, because as far as I can tell, it's the only thing that's trying to to access the DOM directly like that. We're using 1.20.6 at the moment. It's not meant to be a web view, it's a game engine. Sadly, I don't think there's any way to produce a codepen because of it being this custom native engine, rather than part of a browser or something like that. Honestly, I wouldn't expect you guys to support Cocos at all, it's not really common. Thanks again for taking the time to respond!
  5. Hi, thanks for replying! I will give that a shot when I get back to the office in the morning. I'm not sure if that will completely solve the problem. We have completed project deployed to web, and we're attempting to make native versions as well. We use TweenMax and TimelineMax extensively throughout. We're using methods/properties like repeat and yoyo that I believe are only available in Max versions (unless that's just me remembering something from the AS3 version). If that is not the case, then we're golden, otherwise, I may need to continue down this path. Thanks again!
  6. Hello All, We've run into an issue using gsap with Cocos Creator native builds. It seems like some updates they've done recently has caused conflicts with gsap. Previous versions of Cocos Creator had no issues. From what I can tell, the Creator runtime dies when it hits: _createSVG = function(type, container, attributes) { var element = _doc.createElementNS("http://www.w3.org/2000/svg", type), reg = /([a-z])([A-Z])/g, p; for (p in attributes) { element.setAttributeNS(null, p.replace(reg, "$1-$2").toLowerCase(), attributes[p]); } container.appendChild(element); return element; }, The container.appendChild(element) line. I get an error along the lines of: ERROR: TypeError: container.appendChild is not a function. (In 'container.appendChild(element)', 'container.appendChild' is undefined), location: src/project.dev.js:5718:34 I'm wondering if there's not some DOM elements trying to be accessed that don't exists (the cocos runtime has no real DOM). This function appears to be part of the CSSPlugin. I'm wondering if there's a way to remove the CSSPlugin cleanly from gsap. If anyone could point me in the right direction, I would appreciate it. I didn't find any information regarding custom builds or removing plugins in any of the documentation. Thanks for the help, and thanks for the great lib!