在Flex的书签 [英] Bookmarks in Flex

查看:94
本文介绍了在Flex的书签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是不是可以将弯曲的网址添加到书签。如果没有,请让我知道是否有替代品的出现。谢谢你。

Is not it possible to add a flex url to bookmarks. If not,Please let me know if any alternatives are there. Thank you.

推荐答案

有一个在Flex的一个概念,叫做深层链接。 你可以阅读所有关于它在文档

There is a concept in Flex called deep linking. You can read all about it in the docs.

您基本上只需要一个类:在<一href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/managers/BrowserManager.html"相对=nofollow> BrowserManager的。 这个类可以让你:

You basically just need one class: the BrowserManager. This class allows you to:

  • 控制浏览器的导航历史记录
  • 设置窗口标题为您的应用程序的不同状态
  • 设置特定的URL在浏览器的地址栏为您的应用程序的不同状态
  • 在监听的变化在浏览器的地址栏,所以应用程序的状态可以相应改变

所以,你可以有网址的如

So you can have URL's like

  • http://www.myflexapp.com/#dashboard
  • http://www.myflexapp.com/#product/123

这可以告诉你的应用程序,以显示正确的信息。

which can tell your application to display the right information.

为什么会出现在URL中英镑符号? 这是因为我们不希望重载整个应用程序,当用户更改URL。因此,我们留在同一个页面加载相同的应用程序;后面的井号的部分是被发送到Flex应用程序的信息,可以根据这些信息改变它的状态。

Why is there a pound sign in the URL? That's because we don't want to reload the entire application when the user changes the URL. So we stay on one page with the same app loaded; the part behind the pound signs is information that is being sent to the Flex app, which can change it's state according to this information.

这篇关于在Flex的书签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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