0

我想在 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.

谁能解释我为什么这不起作用或者如果可能的话如何使它起作用?

4

1 回答 1

0

您需要com.flashandmath.dg.display在项目中包含包 ( )。为此,请将其添加到File>ActionScript Settings

于 2013-09-07T07:03:59.920 回答