fillBg
Usage
var bg:Object = new Object();
bg.bitmap = "linkage ID of bitmap"; (comment this line for non-bitmap fills)
bg.gradient = {c1:0x3E63B9,c2:0xCCD7EE,a1:100,a2:100,r1:0,r2:255,radial:true}; (leave out the radial property for linear gradient fills)
swf.fillBg(bg)
Description
Creates a gradient fill or bitmap tile or a combination based on the
contents of the
bg Object. TIP: use this order
based on the type of gradient, linear: darkest color for c1,
radial: lighest color for c1. Also, use weaker alphas for
radial gradients.
Parameters
- bitmap
- (String) {property of the
bg Object} the linkage ID of the bitmap to use as a background tile.
NOTE: only property required for bitmap fills
- c1
- (Number) {property of the
gradient Object of the bg Object} Hex value for the "top" color of the gradient
- c2
- (Number) {property of the
gradient Object of the bg Object} Hex value for the "bottom" color of the gradient
- a1
- (Number) {property of the
gradient Object of the bg Object} indicates the top color's alpha
- a2
- (Number) {property of the
gradient Object of the bg Object} indicates the bottom color's alpha
- r1
- (Number) {property of the
gradient Object of the bg Object} indicates where top color will be centered along the
gradient's spectrum - ranges from 0 (far left) to 255 (far right)
- r2
- (Number) {property of the
gradient Object of the bg Object} indicates where bottom color will be centered along the
gradient's spectrum - ranges from 0 (far left) to 255 (far right)
Returns
Nothing.