【问题标题】:create a bar like the dock bar in SWF flash format by adobe flash cc [closed]通过 adobe flash cc 创建一个类似于 SWF flash 格式的停靠栏的栏 [关闭]
【发布时间】:2019-01-31 18:32:03
【问题描述】:

我想使用 Adob​​e Flash CC 以 SWF 格式创建 Mac-OS 样式的停靠栏(见下图)。

【问题讨论】:

  • 为什么是javascript标签?另外,你的问题是什么?
  • 因为 Adob​​e Flash CC 编程语言
  • @AL-Shehab,Flash 的编程语言称为 Actionscript。 (1) 您是否曾经输入过 Javascript 并将其编译为可工作的 SWF 文件? (2) 你已经告诉我们你的任务了,祝你好运。稍后,如果您被困在ask a Question 那里,您可以在其中解释问题所在、您已尝试解决的方法等... (3) 请向我们提供有关您的问题的有用信息。提供足够的细节来帮助你。

标签: actionscript-3 flash actionscript


【解决方案1】:

我使用 actionscript 已经有一段时间了,但我认为您应该制作一个 Scroll 将所有元素添加到该滚动。见ScrollControl

如果你有一个数组中的所有图标,你总是可以改变前面一个元素和一个后面元素的缩放比例。检测MouseEvents你可以检查鼠标是否在它上面。

 //FOR FINDING SCREENSIZE
var _stage:Stage=this.stage;
function displaySettings(): void {
        _stage.align = StageAlign.TOP_LEFT;
        _stage.scaleMode = StageScaleMode.NO_SCALE;
        _width = _stage.stageWidth;
        _height = _stage.stageHeight;

        if (_height < _width) {
            var num: Number = _height;
            _height = _width;
            _width = num;
        }


    }
    //for scaling the object according to height
    public function scalingheight(clip: Object, percent: Number) {
        var ratio = clip.width / clip.height;
        clip.height = percent * _height;
        clip.width = clip.height * ratio;
    }

    //Scale according to width
    public function scalingwidth(clip: Object, percent: Number) {
        var ratio = clip.height / clip.width;
        clip.width = percent * _width;
        clip.height = clip.width * ratio;
    }

在提出问题之前请多做一些研究,我们将不胜感激。

【讨论】:

  • 朋友们,感谢您并为错误的问题道歉
猜你喜欢
  • 2014-07-11
  • 1970-01-01
  • 1970-01-01
  • 2011-03-23
  • 2016-05-30
  • 1970-01-01
  • 1970-01-01
  • 2011-02-09
  • 1970-01-01
相关资源
最近更新 更多