I’m reading a book on ActionScript and I’m in the section on controlling movie clips. I’m reading about the basic methods, and I’m starting to realize I still don’t fully understand the significance of square brackets. This is the example where I’m having trouble:
baseClip.lineStyle(thickness:Number, [color:Number], [alpha:Number], [pixelHinting:Boolean], [noScale:String], [capsStyle:String], [jointStyle:String], [miterLimit:Number]) : Void
Obviously, this is the prototype form of the lineStyle() method. What I don’t get is why “thickness” is the only parameter without square brackets. I know that square brackets are used for retrieving data from an array or object, but either my book doesn’t cover why they’re used like this in a method, or I just completely blanked it out. Can someone help to clarify this for me?