Be a Supporter!

Why Won't My V-cam Work...again

  • 560 Views
  • 18 Replies
New Topic Respond to this Topic
El-Presidente
El-Presidente
  • Member since: Jun. 2, 2005
  • Offline.
Forum Stats
Member
Level 27
Blank Slate
Why Won't My V-cam Work...again 2006-12-01 23:45:23 Reply

Alright, so I've tried a lot and my stupid vcam won't work...it is the same problem as everyone else, except I copied it right, and I also tried it in other movies and it still works. So what I have in right now is :

function camControl():Void {
parentColor.setTransform(camColor.getTransfor m());
var scaleX:Number = sX/this._width;
var scaleY:Number = sY/this._height;
_parent._x = cX-(this._x*scaleX);
_parent._y = cY-(this._y*scaleY);
_parent._xscale = 100*scaleX;
_parent._yscale = 100*scaleY;
}
function resetStage():Void {
var resetTrans:Object = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(resetTrans);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = true;
var oldMode:String = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX:Number = Stage.width/2;
var cY:Number = Stage.height/2;
var sX:Number = Stage.width;
var sY:Number = Stage.height;
Stage.scaleMode = oldMode;
// create color instances for color
// transforms (if any).
var camColor:Color = new Color(this);
var parentColor:Color = new Color(_parent);
// Make the stage move so that the
// v-cam is centered on the
// viewport every frame
this.onEnterFrame = camControl;
// Make an explicit call to the camControl
// function to make sure it also runs on the
// first frame.
camControl();
// If the v-cam is ever removed (unloaded)
// the stage, return the stage to the default
// settings.
this.onUnload = resetStage;

while the output is:

**Error** Symbol=AG - flashcam_, layer=Layer 2, frame=1:Line 1: '{' expected
function camControl():Void {

**Error** Symbol=AG - flashcam_, layer=Layer 2, frame=1:Line 9: Unexpected '}' encountered
}

Total ActionScript Errors: 2 Reported Errors: 2

Yet this time I copied it down right and it works everywhere else...PM me and I'll send you the swf if you would like to see the problem


MY E-PENIS IS BIGGER THAN YOURS
8=================================>
...and this is my fag...

BBS Signature
El-Presidente
El-Presidente
  • Member since: Jun. 2, 2005
  • Offline.
Forum Stats
Member
Level 27
Blank Slate
Response to Why Won't My V-cam Work...again 2006-12-02 07:39:32 Reply

Please someone help me with this problem


MY E-PENIS IS BIGGER THAN YOURS
8=================================>
...and this is my fag...

BBS Signature
mr-womble
mr-womble
  • Member since: Jan. 18, 2006
  • Offline.
Forum Stats
Member
Level 28
Blank Slate
Response to Why Won't My V-cam Work...again 2006-12-02 08:04:23 Reply

whats actally not working wth it, is it just not working at all?

El-Presidente
El-Presidente
  • Member since: Jun. 2, 2005
  • Offline.
Forum Stats
Member
Level 27
Blank Slate
Response to Why Won't My V-cam Work...again 2006-12-02 08:31:59 Reply

Yes, thats it, it wont work ...at all... All I can do is see it, but it wont work.


MY E-PENIS IS BIGGER THAN YOURS
8=================================>
...and this is my fag...

BBS Signature
El-Presidente
El-Presidente
  • Member since: Jun. 2, 2005
  • Offline.
Forum Stats
Member
Level 27
Blank Slate
Response to Why Won't My V-cam Work...again 2006-12-02 08:33:53 Reply

Never mind I got it to wrk now I think, if not I'll post more


MY E-PENIS IS BIGGER THAN YOURS
8=================================>
...and this is my fag...

BBS Signature
Paranoia
Paranoia
  • Member since: Apr. 22, 2005
  • Offline.
Forum Stats
Member
Level 35
Game Developer
Response to Why Won't My V-cam Work...again 2006-12-02 08:33:54 Reply

At 12/1/06 11:45 PM, fuhQ2 wrote: **Error** Symbol=AG - flashcam_, layer=Layer 2, frame=1:Line 1: '{' expected
function camControl():Void {

Try losing the space between the Void and the {. I dunno; that's all I can think of right now.


BBS Signature
El-Presidente
El-Presidente
  • Member since: Jun. 2, 2005
  • Offline.
Forum Stats
Member
Level 27
Blank Slate
Response to Why Won't My V-cam Work...again 2006-12-02 08:35:47 Reply

Never-mind again...I'm so sorry for posting again. So its the same problem still...


MY E-PENIS IS BIGGER THAN YOURS
8=================================>
...and this is my fag...

BBS Signature
Johnny
Johnny
  • Member since: Apr. 17, 2004
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to Why Won't My V-cam Work...again 2006-12-02 10:44:46 Reply

I just cut/pasted it into flash and came up with a few errors... the problem in mine was this line..

parentColor.setTransform(camColor.getTransfor m());

The space between the r and m..

I got rid of the space and no errors were generated.


Perpetually looking for time to return to the arts.

BBS Signature
El-Presidente
El-Presidente
  • Member since: Jun. 2, 2005
  • Offline.
Forum Stats
Member
Level 27
Blank Slate
Response to Why Won't My V-cam Work...again 2006-12-02 15:00:04 Reply

Weird that in my script that there is absolutely no gap between the r and the m. There is still the same problem then, so what else could it be?
Just PM me and i'll send it to you


MY E-PENIS IS BIGGER THAN YOURS
8=================================>
...and this is my fag...

BBS Signature
SirSeraphdeFallen
SirSeraphdeFallen
  • Member since: Sep. 9, 2003
  • Offline.
Forum Stats
Member
Level 29
Blank Slate
Response to Why Won't My V-cam Work...again 2006-12-02 16:23:29 Reply

dont know if you fixed it or not but it looks like you last paragraph is different then what i use.
if you havent fixed it try this:

function camControl():Void {
parentColor.setTransform(camColor.getTransfor m());
var scaleX:Number = sX/this._width;
var scaleY:Number = sY/this._height;
_parent._x = cX-(this._x*scaleX);
_parent._y = cY-(this._y*scaleY);
_parent._xscale = 100*scaleX;
_parent._yscale = 100*scaleY;
}
function resetStage():Void {
var resetTrans:Object = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(resetTrans);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
// make frame invisible
this._visible = false;
// Capture stage parameters
var oldMode:String = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX:Number = Stage.width/2;
var cY:Number = Stage.height/2;
var sX:Number = Stage.width;
var sY:Number = Stage.height;
Stage.scaleMode = oldMode;
// create color instances for color
// transforms (if any).
var camColor:Color = new Color(this);
var parentColor:Color = new Color(_parent);
// Make the stage move so that the
// v-cam is centered on the
// viewport every frame
this.onEnterFrame = camControl;
// Make an explicit call to the camControl
// function to make sure it also runs on the
// first frame.
camControl();
// If the v-cam is ever removed (unloaded)
// the stage, return the stage to the default
// settings.
this.onUnload = resetStage;

^^^^ thats the code that i got and it seems to work fine.


Evil spelled backwards is Live and we all want to do that now don't we.
Deny the big lie, don't beLIEve and don't conform.

BBS Signature
El-Presidente
El-Presidente
  • Member since: Jun. 2, 2005
  • Offline.
Forum Stats
Member
Level 27
Blank Slate
Response to Why Won't My V-cam Work...again 2006-12-02 16:48:49 Reply

Nope, the exact same problem...its the firs trparagraph thats the problem...


MY E-PENIS IS BIGGER THAN YOURS
8=================================>
...and this is my fag...

BBS Signature
El-Presidente
El-Presidente
  • Member since: Jun. 2, 2005
  • Offline.
Forum Stats
Member
Level 27
Blank Slate
Response to Why Won't My V-cam Work...again 2006-12-03 14:39:16 Reply

Pleasee some1 help


MY E-PENIS IS BIGGER THAN YOURS
8=================================>
...and this is my fag...

BBS Signature
deltatsunami
deltatsunami
  • Member since: Dec. 31, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to Why Won't My V-cam Work...again 2006-12-03 14:47:36 Reply

just google it and download a v-cam.fla and look at their code! (for the noob way)
I use

function camControl():Void {
parentColor.setTransform(camColor.getTransfor m());
var scaleX:Number = sX/this._width;
var scaleY:Number = sY/this._height;
_parent._x = cX-(this._x*scaleX);
_parent._y = cY-(this._y*scaleY);
_parent._xscale = 100*scaleX;
_parent._yscale = 100*scaleY;
}
function resetStage():Void {
var resetTrans:Object = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(resetTrans);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
// make frame invisible
this._visible = false;
// Capture stage parameters
var oldMode:String = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX:Number = Stage.width/2;
var cY:Number = Stage.height/2;
var sX:Number = Stage.width;
var sY:Number = Stage.height;
Stage.scaleMode = oldMode;
// create color instances for color
// transforms (if any).
var camColor:Color = new Color(this);
var parentColor:Color = new Color(_parent);
// Make the stage move so that the
// v-cam is centered on the
// viewport every frame
this.onEnterFrame = camControl;
// Make an explicit call to the camControl
// function to make sure it also runs on the
// first frame.
camControl();
// If the v-cam is ever removed (unloaded)
// the stage, return the stage to the default
// settings.
this.onUnload = resetStage;

I dunno, I tried yours but it works for me..

Cojones893
Cojones893
  • Member since: Mar. 9, 2003
  • Offline.
Forum Stats
Member
Level 22
Blank Slate
Response to Why Won't My V-cam Work...again 2006-12-03 14:48:29 Reply

Johnny already helped you there is a space in the word getTransform lose the space and it works

El-Presidente
El-Presidente
  • Member since: Jun. 2, 2005
  • Offline.
Forum Stats
Member
Level 27
Blank Slate
Response to Why Won't My V-cam Work...again 2006-12-04 20:29:14 Reply

I already did that, the space for some reason just shows up. But other than that, it works in all videos except for this stupid one


MY E-PENIS IS BIGGER THAN YOURS
8=================================>
...and this is my fag...

BBS Signature
Nuggs
Nuggs
  • Member since: Dec. 17, 2005
  • Offline.
Forum Stats
Member
Level 19
Programmer
Response to Why Won't My V-cam Work...again 2006-12-04 20:33:17 Reply

Do you have flash 8 or a lower version. You might have downlaoded the wrong code for the wrong version.


Games|1|2|3| Movies|1|2|

BBS Signature
SunSwing
SunSwing
  • Member since: Dec. 13, 2006
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to Why Won't My V-cam Work...again 2006-12-13 22:33:52 Reply

I have run into the same error that you have with error messages on line 1 and 9 when copy and pasting directly from one file to an existing file that I've been working on for a while. However when I uploaded the vCam movie clip into a new file first and then copy and pasted all my previous work into the new file as well, for whatever reason, it worked.

Perhaps you've already figured this out.

It seems to just be one of those little glitchy things about Flash.

Hope this helps,
Brent

SunSwing
SunSwing
  • Member since: Dec. 13, 2006
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to Why Won't My V-cam Work...again 2006-12-27 11:32:39 Reply

Here's an additional observation. The Vcam doesn't work when player settings are set at version 5 or earlier. This is also frustrating, because to export a file to Quicktime, the settings must be set at version 5 for playback and conversion in Quicktime. I've noticed that Adam Phillips uses a different video conversion software that converts directly from swf files thus having to worry about the quicktime conversion problem. I don't remember the name of program.

There's my two bits.

Brent

Sinistermuffin
Sinistermuffin
  • Member since: Sep. 16, 2006
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to Why Won't My V-cam Work...again 2006-12-27 11:58:01 Reply

You can download a V-cam that works here!!!

thats the scripted camera i use