简体   繁体   English

AS3-载入程序类别:将外部瑞士法郎调整为原始舞台大小

[英]AS3 - Loader class: Resize external swf to it's original stage size

Here is my problem (unfortunatelly didn't find solution @google): 这是我的问题(很遗憾,找不到解决方案@google):

I'm loading external swf[AS2] into main swf[AS3] using Loader class. 我正在使用Loader类将外部swf [AS2]加载到主swf [AS3]中。 The main swf is 800 x 600 and the external swf is 300 x 200. 主swf为800 x 600,外部swf为300 x 200。

After adding the external swf to the main swf the external swf expands it's size from 300 x 200 to the main swf's size: 800 x 600. 将外部瑞士法郎添加到主瑞士法郎后,外部瑞士法郎将其尺寸从300 x 200扩展到主要瑞士法郎的尺寸:800 x 600。

How can i prevent this? 我该如何预防呢? I want the loaded swf to save it's original size. 我希望加载的瑞士法郎保存其原始大小。

Cheers Rob 干杯罗布

Assuming there is no code in the AS2 swf that itself is doing the expanding, I think what you need to do in AS3 is: 假设AS2 SWF中没有代码本身在进行扩展,我认为您在AS3中需要做的是:

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

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

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