ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  ActionScript for Non-Coders
Subject:   Flash 5 Problem
Date:   2007-06-09 05:58:00
From:   Barbaro666
Im A bit new to all this Scripting stuff, so i just cant figure something out
I have flash 5, so i did put on the AS for Flash 5
Still it has some errors & i just cant figure out how to repair them
They are:


Scene=Scene 1, Layer=Layer 1, Frame=1: Line 1: '{' expected
function camControl():Void {


Scene=Scene 1, Layer=Layer 1, Frame=1: Line 2: Statement must appear within onClipEvent handler
parentColor.setTransform(camColor.getTransform());


Scene=Scene 1, Layer=Layer 1, Frame=1: Line 3: Statement must appear within onClipEvent handler
var scaleX:Number = sX/this._width;


Scene=Scene 1, Layer=Layer 1, Frame=1: Line 4: Statement must appear within onClipEvent handler
var scaleY:Number = sY/this._height;


Scene=Scene 1, Layer=Layer 1, Frame=1: Line 5: Statement must appear within onClipEvent handler
_parent._x = cX-(this._x*scaleX);


Scene=Scene 1, Layer=Layer 1, Frame=1: Line 6: Statement must appear within onClipEvent handler
_parent._y = cY-(this._y*scaleY);


Scene=Scene 1, Layer=Layer 1, Frame=1: Line 7: Statement must appear within onClipEvent handler
_parent._xscale = 100*scaleX;


Scene=Scene 1, Layer=Layer 1, Frame=1: Line 8: Statement must appear within onClipEvent handler
_parent._yscale = 100*scaleY;


Scene=Scene 1, Layer=Layer 1, Frame=1: Line 9: Unexpected '}' encountered
}


(I do apologize for taking your time)


Help on this Please
Thank u!