简体   繁体   English

Flash外部预加载器或自预加载器

[英]Flash External Preloader or Self Preloader

I've this Flash Professional Project that I'm building inside Flash Builder. 我有一个要在Flash Builder中构建的Flash Professional项目。 It's a single swf file to be exported. 这是一个要导出的swf文件。

Will self preloaded work for this SWF file, because I think the preloader (progress bar) will not show because flash exports everything in the first frame because of all movie clips set as export to frame 1, and I need those as well since I'm instantiating them in my Document Class. 将自动预加载此SWF文件的工作,因为我认为预加载器(进度条)将不会显示,因为由于将所有影片剪辑设置为导出到第1帧,因此Flash会在第一帧中导出所有内容,因此我也需要这些文件在我的文档类中实例化它们。

Should I go for an external SWF preloader strategy or is there a safe way to do self preloader? 我应该选择外部SWF预加载器策略,还是有安全的方式进行自我预加载器?

I don't know Flash Builder. 我不知道Flash Builder。 In Flash proper you can turn off the "export in first frame" thing. 在Flash适当的环境中,您可以关闭“第一帧导出”功能。 You could also create a new Frame 1 with the preloader (again, in Flash) and have the SWF start executing when the preloader moves the playhead to Frame 2. 您还可以使用预加载器(同样在Flash中)创建新的Frame 1,并在预加载器将播放头移至Frame 2时开始执行SWF。

Their are two ways : 它们有两种方式:

1) choose some of the very heavy movieclips ( say those consisting of bitmaps or lots of animations). 1)选择一些非常重的影片剪辑(例如那些由位图或大量动画组成的影片剪辑)。 Turn off the "export in first frame" for them. 为他们关闭“在第一帧中导出”。 And place those movieclips on the 2nd frame. 并将这些影片剪辑放置在第二帧上。 Follow the process for all the "heavy movieclips", unless you make sure that the preloader shows up while testing it live. 除非所有预载器在现场测试时都出现,否则请按照该过程进行操作。

2) Yes, the other method as you said is quite better, is to use another swf for preloader. 2)是的,您所说的另一种方法更好,是使用另一个swf作为预加载器。 But before using this method, make sure that their is no restriction on using more than 1 swf for your project. 但是,在使用此方法之前,请确保他们对项目使用不超过1瑞士法郎的限制。

V. V.

When working with flash builder you have nothing to worry about because adobe already did everything for you. 使用Flash Builder时,您无需担心,因为Adobe已为您完成了所有工作。

Just use the build in Flash builder preloader 只需使用Flash Builder预加载器中的构建

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

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