[r97] curFrame is not defined

Forum Home Forum Home > Construct 2 Development > Bugs > Closed bugs
 Post Reply Post Reply
Author
3,012 Rep
Post Options Post Options   Quote aridale Quote  Post ReplyReply Direct Link To This Post Topic: [r97] curFrame is not defined
    Posted: 29 Jun 2012 at 5:59pm
error on load from url c2runtime.js:8577

Its an easy fix. That line is missing _ after curFrame

Edited by aridale - 29 Jun 2012 at 6:06pm
Back to Top

Scirra Developer
78,403 Rep
Post Options Post Options   Quote Ashley Quote  Post ReplyReply Direct Link To This Post Posted: 02 Jul 2012 at 6:08pm
@aridale

This sounds like an important bug that needs to be fixed, but you have not provided enough information for us to be able to fix it. Please see how to report bugs and let us know more information about the problem!
Back to Top
3,012 Rep
Post Options Post Options   Quote aridale Quote  Post ReplyReply Direct Link To This Post Posted: 02 Jul 2012 at 6:13pm
its in LoadURL in the sprite plugin runtime.js

     Acts.prototype.LoadURL = function (url_, resize_)
     {
          var img = new Image();
          var this_ = this;
          var curFrame_ = this.curFrame;
          
          img.onload = function ()
          {
               curFrame_.texture_img = img;
               curFrame_.offx = 0;
               curFrame_.offy = 0;
               curFrame_.width = img.width;
               curFrame_.height = img.height;
               curFrame_.spritesheeted = false;
     -->          curFrame.datauri = "";
Back to Top

Scirra Developer
78,403 Rep
Post Options Post Options   Quote Ashley Quote  Post ReplyReply Direct Link To This Post Posted: 02 Jul 2012 at 6:20pm
Thanks, good catch. Every exported c2runtime.js is different so line numbers in that file are not useful, but we've got it fixed now so thanks :)
Back to Top
3,012 Rep
Post Options Post Options   Quote aridale Quote  Post ReplyReply Direct Link To This Post Posted: 02 Jul 2012 at 6:42pm
oh ok I didnt know stuff wasnt in the same spots in the generated runtime Ill remember that if I have to report anything else like this =D
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down