将链接/链接操作加载到 Flash 文件中的最佳实践是什么?
我认为可能有三个选项:
- 将链接作为 flashvar 加载并允许 Flash 打开 URI
- 使用 AJAX/AJAH 将链接加载到 Flash 文件中并允许 Flash 打开 URI
- 只需让 Flash 文件调用 Javascript 函数打开 URI
这些方法中的一种比其他方法更好吗?
即,
我在 CMS 中工作,因此每种方法都需要不同的过程来编辑/控制链接。在 #1 中,编辑器需要打开 Flash 节点并添加 flashvar 的路径。在 #2 中,编辑器只需将路径作为具有特定 ID 的锚点添加到页面(或 XML)。在#3 中,路径可以以多种不同的方式存储。创建 Flash 文件时,链接是未知的,因此它们无法嵌入到 Flash 中。是否有性能/效率/兼容性/使用#1而不是#2或#3等的充分理由?
I think there are probably three options:
- Load the link in as a flashvar and allow the Flash to open the URI
- Load the link into the Flash file using AJAX/AJAH and allow the Flash open the URI
- Just have the Flash file call a Javascript function that opens the URI
Is one of these methods better than the other(s)?
i.e.,
I'm working in a CMS, so each method requires a different process to edit/control the link. In #1, the editor needs to open the Flash node and add the path to a flashvar. In #2, the editor just needs to add the path as an anchor with a specific ID to a page (or XML). In #3, the paths could be stored in many different ways. The links aren't known when the Flash files are created, so they can't be embedded in the Flash. Is there a performance/efficiency/compatibility/good reason to use #1 over #2 or #3, etc?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这取决于链接是什么......但在您的示例的上下文中:
-1 您将使用 flashvars 将一些变量/数据加载到 Flash
-2 我想不出需要解决方案 2 的情况...
-3 您可以使用 navigatorToURL 打开 URI,而不需要 Javascript
您可能想研究 SWFAddress 的深层链接
http://www.asual.com/swfaddress/
That would depend on what the link is... but in the context of your examples:
-1 You would use flashvars to load some variables / data into Flash
-2 I can't think of a situation where one would need solution 2...
-3 You can use navigateToURL to open a URI without the need for Javascript
You may want to look into deep linking with SWFAddress
http://www.asual.com/swfaddress/