VCAM problems
Started by: Tecness2 | Replies: 8 | Views: 1,265
Tecness2Posts: 1,340
Joined: Jul 2009
Rep: 10
View Profile 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.
The whitespace to the side, isn't actually used, nor is it within the resolution of the animation, yet it's there.
Smile2Posts: 5,331
Joined: Jan 2012
Rep: 10
View Profile Try to minimize the window then right click > view > 100%
Tecness2Posts: 1,340
Joined: Jul 2009
Rep: 10
View Profile Nope, it's a problem with swf and the VCAM layer.
Also, I guess I should mention, Adobe Animate 2015.
GMR2Posts: 3,411
Joined: Aug 2012
Rep: 10
View Profile Delete the Vcam from the stage.
Reimport it from the library. Try that.
Tecness2Posts: 1,340
Joined: Jul 2009
Rep: 10
View Profile Done, did nothing to help. Where did other people get their vcams, maybe it's a problem with this specific version.
GMR2Posts: 3,411
Joined: Aug 2012
Rep: 10
View Profile Post the AS3 code from inside the VCAM here.
Tecness2Posts: 1,340
Joined: Jul 2009
Rep: 10
View Profile 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?
GMR2Posts: 3,411
Joined: Aug 2012
Rep: 10
View Profile 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.
Tecness2Posts: 1,340
Joined: Jul 2009
Rep: 10
View Profile 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.