简体   繁体   English

如何从AS2中的外部SWF使用SharedObject

[英]How to use SharedObject from an external swf in AS2

I have a slideshow that everytime you press a button show a new slide. 我有一个幻灯片放映,每次您按一个按钮都会放一张新幻灯片。 Every slide is an external swf's that is being loaded in to the main swf. 每张幻灯片都是外部SWF文件,正在加载到主SWF文件中。

Inside every external swf there is a button that redirects you to another web page. 每个外部瑞士法郎内部都有一个按钮,可将您重定向到另一个网页。

What i would like to do is use SharedObject (or something like it) to remember wich external swf that was last shown when the user pressed the button redirecting them to an other page. 我想做的是使用SharedObject(或类似的东西)来记住外部的SWF文件,当用户按下按钮将它们重定向到另一个页面时,该文件最后一次显示。

How do i set the SharedObject in the external swf and then read it from the main swf? 如何在外部SWF中设置SharedObject,然后从主SWF中读取它? Is it possible? 可能吗?

does your container swf communicate with guest ones, maybe they have functions visible to each other? 您的容器swf是否与来宾服务器通信,也许它们具有彼此可见的功能? Also you can use LocalConnection for passing data to the main swf and storing it in the SharedObject . 您也可以使用LocalConnection将数据传递到主swf并将其存储在SharedObject
it's also possible to use one SharedObject by multiple swfs. 也可以通过多个swf使用一个SharedObject

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

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