我想在flash cs6中创建一个瀑布。我从http://www.flashandmath.com/flashcs4/waterfall/
找到了这个瀑布import com.flashandmath.dg.display.*;
var waterfall:Waterfall;
init();
function init():void {
waterfall = new Waterfall(200,300,true);
waterfall.x = 20;
waterfall.y = 10;
stage.addChild(waterfall);
waterfall.startFlow();
waterfall.noSplashes = false;
waterfall.dropsToAddEachFrame = 8;
waterfall.targetColor = 0x33B2FF;
waterfall.waterTopWidth = 72;
waterfall.leftMargin = 2;
waterfall.minAngle = Math.PI/12;
waterfall.maxAngle = Math.PI/3;
waterfall.minMagnitude = 0.7;
waterfall.maxMagnitude = 1.3;
waterfall.fadeAmount = -1;
waterfall.display.minGray = 0.9;
}
这是来自cs4文件。我试图将其保存为cs6或cs5,我收到了这个错误:
Scene 1, Layer 'Layer 1', Frame 1, Line 11 1172: Definition com.flashandmath.dg.display could not be found.
任何人都可以解释为什么这不起作用或者如果可能的话如何让它起作用?
答案 0 :(得分:0)
您需要在项目中包含程序包(com.flashandmath.dg.display
)。为此,请将其添加到File>ActionScript Settings