将URL参数传递到SWF(Flash)电影 [英] Pass url parameters to a swf (flash) movie

查看:85
本文介绍了将URL参数传递到SWF(Flash)电影的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里刷新新手.

我正在尝试在浏览器中加载swf文件,并将url参数传递给Flash电影.如何在ActionScript中访问Flash电影中的url参数?

I am trying to load a swf file in a browser and pass url parameters to the flash movie. How do I access the url parameters in the flash movie in actionscript?

以下是示例网址:

http://www.server.com/swf/movie.swf?name = charlie& position = 2

我确实找到了关于通过embed/object标记传递参数的指针,但仅通过浏览器url传递url参数(并访问它们)却找不到任何东西.

I did find pointers on passing parameters through embed/object tags, but nothing on passing url parameters (and accessing them) just through a browser url.

感谢您的帮助,

威尔伯

推荐答案

它们像FlashVars一样显示在loaderInfo.parameters中.例如,loaderInfo.parameters['name']应该返回'charlie'.

They show up in loaderInfo.parameters, just like FlashVars. For example, loaderInfo.parameters['name'] should return 'charlie'.

这篇关于将URL参数传递到SWF(Flash)电影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆