VCAM problems

Started by: Tecness2 | Replies: 8 | Views: 1,265

Tecness2

Posts: 1,340
Joined: Jul 2009
Rep: 10

View Profile
Aug 25, 2016 3:07 AM #1458806
Anyone use VCAM enough to give me some assistance? I've got the VCAM set to the exact resolution of the animation, but for some reason, it shows a lot more that isn't used.
Picture (Click to Show)


The whitespace to the side, isn't actually used, nor is it within the resolution of the animation, yet it's there.
Smile
2

Posts: 5,331
Joined: Jan 2012
Rep: 10

View Profile
Aug 25, 2016 5:45 AM #1458810
Try to minimize the window then right click > view > 100%
Tecness2

Posts: 1,340
Joined: Jul 2009
Rep: 10

View Profile
Aug 25, 2016 6:48 AM #1458813
Nope, it's a problem with swf and the VCAM layer.
Also, I guess I should mention, Adobe Animate 2015.
GMR
2

Posts: 3,411
Joined: Aug 2012
Rep: 10

View Profile
Aug 25, 2016 3:47 PM #1458835
Delete the Vcam from the stage.

Reimport it from the library. Try that.
Tecness2

Posts: 1,340
Joined: Jul 2009
Rep: 10

View Profile
Aug 25, 2016 6:26 PM #1458844
Done, did nothing to help. Where did other people get their vcams, maybe it's a problem with this specific version.
GMR
2

Posts: 3,411
Joined: Aug 2012
Rep: 10

View Profile
Aug 25, 2016 6:53 PM #1458845
Post the AS3 code from inside the VCAM here.
Tecness2

Posts: 1,340
Joined: Jul 2009
Rep: 10

View Profile
Aug 25, 2016 8:11 PM #1458849
import flash.events.Event;import flash.geom.Matrix;
import flash.geom.Rectangle;
import flash.geom.Point;


visible = false;


addEventListener(Event.ENTER_FRAME, handleEnterFrame);
function handleEnterFrame(event:Event):void {
if (parent) {
parent.scaleX = 1 / scaleX;
parent.scaleY = 1 / scaleY;


if (rotation == 0) {
parent.x = (width / 2 - x) / scaleX;
parent.y = (height / 2 - y) / scaleY;
parent.rotation = 0;
} else {
var bounds:Rectangle = getBounds(this);
var angle:Number = rotation * Math.PI / 180;


var midX:Number = -x / scaleX;
var midY:Number = -y / scaleY;
var rx:Number = -bounds.width / 2;
var ry:Number = -bounds.height / 2;

var cos:Number = Math.cos(angle);
var sin:Number = Math.sin(angle);
var rotatedX:Number = rx * cos - ry * sin;
var rotatedY:Number = ry * cos + rx * sin;
var cornerX:Number = midX - rotatedX;
var cornerY:Number = midY - rotatedY;

cos = Math.cos(-angle);
sin = Math.sin(-angle);
parent.x = cornerX * cos - cornerY * sin;
parent.y = cornerY * cos + cornerX * sin;


parent.rotation = -rotation;
}
}
}


addEventListener(Event.REMOVED, handleRemoved, false, 0, true);
function handleRemoved(event:Event):void {
removeEventListener(Event.ENTER_FRAME, handleEnterFrame);
removeEventListener(Event.REMOVED, handleRemoved);
}




This it?
GMR
2

Posts: 3,411
Joined: Aug 2012
Rep: 10

View Profile
Aug 25, 2016 10:05 PM #1458856
The code doesn't have any errors in it. Try this:
1) Double click your VCAM movie clip.
2) Highlight EVERYTHING inside the VCAM and delete it.
3) Make a new shape inside the VCAM.
4) Make the shape have the exact width and height of your movie.
5) Move the shape to the exact center.
6) For editing purposes (does not effect the actual VCAM itself), you may make the shape transparent so that you can see through it while you're editing n' stuff.

Finally, test it. If that STILL doesn't work, copy + paste all of your frames from your current file to a brand new project.

Good luck.
Tecness2

Posts: 1,340
Joined: Jul 2009
Rep: 10

View Profile
Aug 25, 2016 11:09 PM #1458860
Neither of those worked, but I fixed it.
I got a different VCAM, and looked the width/height from the original, and that seems to work now.
Thanks for trying.