[英]flash actionscript 1.0, load external swf file to parent swf file
i'm building a website using flash. 我正在使用Flash建立网站。 i have a external swf file that i want to import into my website.
我有一个要导入到我的网站的外部swf文件。 i thought this would be an easy task but for some reason when i load the movie, it flickers.
我以为这是一件容易的事,但是由于某些原因,当我加载电影时,它会闪烁。 my website (parent swf) was build using 1.0.
我的网站(父SWF)是使用1.0构建的。 The external form swf was build using 3.0.
外部表格swf是使用3.0构建的。 any thoughts?
有什么想法吗?
My approach: 我的方法:
1.create an empty movie clip called mcForm
2.go to the mc clip page i want to pull the external movie into
3. within my actions layer, I call the following function
loadMovie("main.swf", mcForm);
If i write: 如果我写:
LoadMovieNum("main.swf",0);
then the my main.swf opens correctly but closes the parent swf file. 那么我的main.swf会正确打开,但会关闭父swf文件。 I wan the main.swf file to be embeded within the parent file.
我需要将main.swf文件嵌入到父文件中。
As far as I know it is not possible to load an ActionScript 3 movie into an ActionScript 1 or 2 movie. 据我所知,不可能将ActionScript 3电影加载到ActionScript 1或2电影中。 The reason is that AS3 is processed by the *ActionScript Virtual Machine 2` (AVM2), while AS1 and AS2 are processed by AVM1.
原因是AS3由* ActionScript虚拟机2`(AVM2)处理,而AS1和AS2由AVM1处理。 As such, when you have a AVM1 movie and try to load something that was targetted for AVM2, everything that is unsupported (as such, nearly everything) will be lost.
这样,当您拥有AVM1电影并且尝试加载针对AVM2的内容时,所有不受支持的内容(因此几乎所有内容)都会丢失。 As the AVM2 is able to execute AVM1 code however, the reverse (ie loading AS1/2 videos into AS3) is possible.
但是,由于AVM2能够执行AVM1代码,因此可以反向执行(即将AS1 / 2视频加载到AS3中)。
The only exception to this is when the movie is actually scriptless, ie a simple (“stupid”) animation. 唯一的例外是电影实际上是无脚本的,即简单(“愚蠢”)动画。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.