音乐视频应用程序帮助。过滤数据列表和“下一个视频”按钮功能
我有两个列表。当在另一个列表中选择“艺术家”时,我需要帮助过滤一个列表。
我还想在选择“下一个视频”按钮时播放下一个视频。
这是示例的链接有一些视频.. http://www.yourtimeisborrowed.com/bin-release/ gg.html
查看源代码已启用,因此请随意获取代码。
我将添加完整的教程部分,介绍如何使用 Flash Catalyst 和 Flash BUilder 逐步构建此应用程序。这就是我的意思现在正在努力,但真的很想在这个过滤问题上得到一些帮助,因为它超出了我的能力范围。
无论如何,我不只是索取,我计划以主要方式回馈。
所以,如果“福音传道者”不这样做太忙于他们的数据网格,我希望能得到一些帮助来展示 Adobe Framework 的真正强大功能和易用性。
I have two lists.. I need help filtering one list when an "Artist" is selected in the other..
I also want to play the next video when the "Next Video" button is selected..
Here is a link to an example with a few videos.. http://www.yourtimeisborrowed.com/bin-release/gg.html
View source is enabled so feel free to grab the code..
I will be adding a full tutorial section on how to build this app step by step using Flash Catalyst and Flash BUilder.. Thats what I'm working on now but really would love some help on this filtering issue as it's out of my league..
Anyhow, I'm not just taking, I plan on giving back in a major way..
So if the "evangalists" aren't too busy with their datagrids I'd appreciate some help showing the true power and ease of use that the Adobe Framework is capable of..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Flex 的上下文中,您不会过滤列表;而是过滤列表。您将过滤该列表的 dataProvider。有很多代码需要整理,我没有时间尝试反编译您的应用程序。
我强烈建议您的 dataProvider 使用 CollectionClass 之一,即 ArrayCollection 或 XMLListCollection。然后您就可以使用内置的过滤功能。
如果您在 Google 上搜索过滤 Flex 集合,会出现不少博客文章,其中一篇看起来很可靠:
http://www.devshed.com/c/a/XML/Flex-Array-Collection-Sort-and-Filtering/
这是 Adobe 文档在同一件事上:
http://livedocs.adobe.com/flex/ 3/html/help.html?content=about_dataproviders_4.html
我想我演示了有关集合类的 Flex Show 屏幕截图:
http://www.theflexshow.com/blog /index.cfm/2008/10/29/The-Flex-Show--Fifteen-Minutes-With-Flex--Episode-9--Collection-Classes
如果您可以提供一个精简示例来演示问题;请更新问题并让我知道。
In the context of Flex, you wouldn't be filtering a list; you'd be filtering that list's dataProvider. There is a lot of code to sort through, I don't have time to try to decompile your application.
I strongly suggest that for your dataProviders, you use one of the CollectionClasses, either ArrayCollection or XMLListCollection. Then you can make use of the built in filtering.
If you google on filtering Flex Collections quite a few blog posts come up, here is one that looked solid:
http://www.devshed.com/c/a/XML/Flex-Array-Collection-Sort-and-Filtering/
Here is the Adobe docs on the same thing:
http://livedocs.adobe.com/flex/3/html/help.html?content=about_dataproviders_4.html
I think I demo this The Flex Show screecast on collection classes:
http://www.theflexshow.com/blog/index.cfm/2008/10/29/The-Flex-Show--Fifteen-Minutes-With-Flex--Episode-9--Collection-Classes
If you can provide a stripped down sample that demonstrate the problem; please update the question and let me know.