我已经使用了动作脚本,但我认为你应该让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;
}
请在提出问题之前再做一些研究,我们将不胜感激。