简体   繁体   English

如何在16帧上控制16张图像?

[英]How to I control 16 images on 16 frames?

I have a fla with 16 frames, and in each frame there is a png from the library. 我有一个带有16帧的fla,并且每帧中都有一个库中的png。

I have a script that publishes each frame in the fla as an individual png. 我有一个脚本,将fla中的每个帧发布为单独的png。

What I am doing now is manually modify each image on each frame so that it fits unpon a particular setting of scale and x/y positioning. 我现在正在做的是手动修改每个帧上的每个图像,以使其适合缩放和x / y位置的特定设置。

The purpose of this fla is take 16 rendered frames from a 3d program and scale/center/whatever them to my liking. fla的目的是从3d程序中获取16个渲染帧,并根据自己的喜好缩放/居中/缩放任何帧。

My problem is that I have to MANUALLY do it for 16 frames and would like some advice on how to simplify this process. 我的问题是我必须手动完成16帧,并希望获得有关如何简化此过程的一些建议。

Note that each individual set has different output for width and height which makes me have to reposition and rescale the 16 frames. 请注意,每个单独的集合在宽度和高度上都有不同的输出,这使我不得不重新定位和重新缩放16帧。

I do want/have to do it at least once so I fit it to my liking, but the rest 15, something automated. 我确实希望/必须至少这样做一次,因此我可以按照自己的喜好进行调整,但是其余15个则可以自动完成。

Thanks. 谢谢。

Turn each png into a Sprite or MovieClip by aelecting it on the stage and pressing F8. 通过在舞台上选择每个png并按F8,将每个png转换为Sprite或MovieClip。 Then give it an instance name in the Properties panel. 然后在“属性”面板中为其指定实例名称。 Now you can address each of these objects in your code, and programaticaly change each instance's position, scale, whatever. 现在,您可以在代码中处理这些对象中的每个对象,并且可以通过编程方式更改每个实例的位置,比例和其他内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM