Skip to main content
Participant
January 4, 2016
Question

KeyFrame Caddy Pro Java Script Error Has Occured

  • January 4, 2016
  • 2 replies
  • 862 views

Imgur: The most awesome images on the Internet

So this above Image is what I've been getting a lot lately and could be a simple fix that I'm unaware of.

I just don't know why it keeps happening?

*UPDATE*

I have reinstalled Cloud, Flash the add on and just recently Java Script I'm offically out of options

This topic has been closed for replies.

2 replies

Participant
January 5, 2016

I'm also having errors even getting this plug in to work in the new Flash. Could the problems be related?

Participant
January 9, 2016

I believe so since when I got rid of everything and I mean EVERYTHING it came back up but doesn't work.

Participant
January 9, 2016

Maybe Adobe support can shed some light on this...I have explained my problem to them in another thread and am awaiting a reply.

Participant
January 5, 2016

Its a Flash JavaScript Document Known as Starling.plugin

var lastSymbol;

function getPluginInfo(lang) {

  // fl.trace("==== getPluginInfo");

  // fl.trace(lang);

  // fl.trace("---- getPluginInfo");

  pluginInfo = new Object();

  pluginInfo.id = "Starling";

  pluginInfo.name = "Starling";

  pluginInfo.ext = "xml";

  pluginInfo.encoding = "utf8";

  pluginInfo.capabilities = new Object();

  pluginInfo.capabilities.canRotate = false;

  pluginInfo.capabilities.canTrim = true;

  pluginInfo.capabilities.canShapePad = true;

  pluginInfo.capabilities.canBorderPad = true;

  pluginInfo.capabilities.canStackDuplicateFrames = true;

  return pluginInfo;

}

function beginExport(meta) {

  // fl.trace("==== endExport");

  // fl.trace(meta.app);

  // fl.trace(meta.version);

  // fl.trace(meta.image);

  // fl.trace(meta.format);

  // fl.trace(meta.size.w);

  // fl.trace(meta.size.h);

  // fl.trace(meta.scale);

  // fl.trace("---- endExport");

  var s = '<?xml version="1.0" encoding="utf-8"?>\n';

  s += '<TextureAtlas imagePath="' + meta.image + '">\n';

  s += '\t<!-- Created with ' + meta.app + ' version ' + meta.version + ' -->\n';

  s += '\t<!-- http://www.adobe.com/products/flash.html -->\n';

  lastSymbol = null;

  return s;

}

function frameExport(frame) {

  // fl.trace("==== frameExport");

  // fl.trace(frame.id);

  // fl.trace(frame.frame.x);

  // fl.trace(frame.frame.y);

  // fl.trace(frame.frame.w);

  // fl.trace(frame.frame.h);

  // fl.trace(frame.offsetInSource.x);

  // fl.trace(frame.offsetInSource.y);

  // fl.trace(frame.sourceSize.w);

  // fl.trace(frame.sourceSize.h);

  // fl.trace(frame.rotated);

  // fl.trace(frame.trimmed);

  // fl.trace(frame.frameNumber);

  // fl.trace(frame.symbolName);

  // fl.trace(frame.frameLabel);

  // fl.trace(frame.lastFrameLabel);  <------Line 59 says this here is causing the ERROR

  // fl.trace("---- frameExport");

  var s = '\t<SubTexture name="' + frame.id + '" x="' + frame.frame.x + '" y="' + frame.frame.y + '" width="' + frame.frame.w + '" height="' + frame.frame.h;

  if (frame.symbolName != lastSymbol) {

  lastSymbol = frame.symbolName;

  s += '" pivotX="' + frame.registrationPoint.x + '" pivotY="' + frame.registrationPoint.y;

  }

  if (frame.offsetInSource.x != 0 || frame.offsetInSource.y != 0 || frame.frame.w != frame.sourceSize.w || frame.frame.h != frame.sourceSize.h) {

  var srcofsx = 0 - frame.offsetInSource.x;

  var srcofsy = 0 - frame.offsetInSource.y;

  s += '" frameX="' + srcofsx + '" frameY="' + srcofsy + '" frameWidth="' + frame.sourceSize.w + '" frameHeight="' + frame.sourceSize.h;

  }

  s += '"/>\n';

  return s;

}

function endExport(meta) {

  // fl.trace("==== endExport");

  // fl.trace(meta.app);

  // fl.trace(meta.version);

  // fl.trace(meta.image);

  // fl.trace(meta.format);

  // fl.trace(meta.size.w);

  // fl.trace(meta.size.h);

  // fl.trace(meta.scale);

  // fl.trace("---- endExport");

  return '</TextureAtlas>\n';

}

Afterwards it will say A Java Script Error has occured

Error: exportspritesheet: Argument Number 1 is invaild