Flash XML 幻灯片
我正在 flash 中制作 xml 幻灯片,为此我有这个幻灯片(我选择这个是因为对图像的影响):
http://activeden.net/item/xml-slideshow-with-ken-burns-effect/32354
这就是我一直以来的情况正在寻找,但现在我需要填充浏览器的屏幕...在这个上,舞台的大小是由我们在 xml 文件上放置的值决定的,所以我不能在那里放“100%”...我已经尝试打开 fla 并直接输入值,但没有成功。
谁能告诉我如何更改此设置,或者至少让我知道是否存在另一个教程或已经制作的插件可以执行相同的操作?
我正在尝试做这样的事情 http://www.salsajeans.com/
i'm doing a xml slideshow in flash and for that i have this slideshow (i've chose this because of the effects on images):
http://activeden.net/item/xml-slideshow-with-ken-burns-effect/32354
So this is what i've been looking for but now i need to fill the browser's screen... On this one, the size of the stage is determined by the value we put on the xml file, so i can't put there "100%"... i already tryied to open the fla and put the values directly but with no success.
Can anyone tell me how to change this or at least let me know if exists another tutorial or an already made plugin that do the same thing?
i'm trying to do something like this
http://www.salsajeans.com/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,这有两个部分,一是 fla/swf,二是 swf 的呈现方式。
您需要为浏览器启用此 100% 缩放,通常使用 swfobject (您可以使用此工具为 生成必要的代码http://learnswfobject.com/generator/)
这种缩放的技巧是将舞台与左上角对齐,并且不缩放。
使用事件侦听器侦听尺寸变化,然后根据舞台大小动态缩放图像。
这是一个没有 AS2 侦听器的示例
http://www. flashnutz.com/2009/08/scaling-a-dynamic-background-image-in-proportion-using-flash/
Well, there are two parts to this, one is the fla/swf and the other is how the swf is presented.
you need to enable this 100% scaling for the browser, usually using swfobject (you can use this tool to generate the necessary code for that http://learnswfobject.com/generator/)
The trick to this kind of scaling is to align the stage to the top-left corner, and no scaling.
use an event listener to listen for changes in dimensions, and then scale the images dynamically according to the stage size.
here is an example without the listener for AS2
http://www.flashnutz.com/2009/08/scaling-a-dynamic-background-image-in-proportion-using-flash/