Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
I'm also having errors even getting this plug in to work in the new Flash. Could the problems be related?
Copy link to clipboard
Copied
I believe so since when I got rid of everything and I mean EVERYTHING it came back up but doesn't work.
Copy link to clipboard
Copied
Maybe Adobe support can shed some light on this...I have explained my problem to them in another thread and am awaiting a reply.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now