Be a Supporter!

Huge V-Cam Problem

  • 289 Views
  • 0 Replies
New Topic Respond to this Topic
EKublai
EKublai
  • Member since: Dec. 13, 2003
  • Offline.
Forum Stats
Member
Level 18
Animator
Huge V-Cam Problem 2007-03-13 21:28:58 Reply

I'm sure many of you are familiar with the v-cam script by now, but I need something to happen that I'm not sure I can do.
function camControl()
{
parentColor.setTransform(camColor.getTransfor m());
var _loc4 = sX / this._width;
var _loc3 = sY / this._height;
_parent._x = cX - this._x * _loc4;
_parent._y = cY - this._y * _loc3;
_parent._xscale = 100 * _loc4;
_parent._yscale = 100 * _loc3;
} // End of the function
function resetStage()
{
var _loc2 = {ra: 100, rb: 0, ga: 100, gb: 0, ba: 100, bb: 0, aa: 100, ab: 0};
parentColor.setTransform(_loc2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
} // End of the function
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;

I'm not sure how to do this But what I want is not for the v-cam to scale the movieclip to take up the whole stage but only a fraction of it. Then I can position the movieclip where I desire.


BBS Signature