我正在考虑使用 Adobe-Flex 框架创建 iOS 应用程序(尤其是 iPad)。以这种方式编写应用程序看起来非常有前途。
是否可以创建自己的控件/小部件?在遥远的未来,我可能想创建我自己的甘特日历或其他什么。这样的事情可能吗?有什么好的教程/书籍吗?
提前致谢!
更新:我想创建可以在 Flex 中使用的 iOS 组件。默认情况下 Flex 中不可用的控件。这可能吗?通过推导还是什么?
更新2:与此同时,我发现FlexLib很有用。自己创造这样的东西有多难?特别是对于移动设备。有没有什么好的教程、书籍等?
I was looking into creating iOS-apps (especially for the iPad) with the Adobe-Flex framework. It looks very promising to code apps this way.
Is it possible to create own controls/widgets? In the far future I might want to create my own kind of gantt-calender or whatever. Is something like this possible and are there any good tutorials/book out there?
Thanks in advance!
UPDATE: I want to create iOS Components that I can use in Flex. Controls, that are not aviable by default in Flex. Is that possible? By derivating or something?
UPDATE 2: In the meanwhile I found FlexLib to be useful. How hard is it to create stuff like this on your own? Especially for mobile devices. Are there any good tutorials, books, etc. out there?
发布评论
评论(2)
是的,您可以在 Flex 中创建自己的控件。它们通常称为组件。我建议您首先阅读 Flex 文档,了解如何操作所以。还有很多其他资源。其中一个是我为 The Flex 创建的截屏系列展示。这是第 1 集。
你曾问过:
这取决于组件想要做什么。我们在 www.flextras.com 上构建的商业组件花费了三到十二个月的时间。我们的日历是从头开始构建的,但大多数其他组件都扩展了现有的 Flex 框架组件。
Flextras 的设计是为了重用而设计的。特定应用程序的“一次性”组件可以在 1 小时内构建[及以上]。
组件的用途将再次影响构建所需的时间。
Yes, you can create your own Controls in Flex. They are commonly called Components. I suggest you start by reading the Flex Docs on how to do so. There are also plenty of other resources out there. One is a screencast series that I created for The Flex Show. Here is episode 1.
You had asked:
It depends on what the component wants to do. The commercial components we've built at www.flextras.com have taken from three to twelve months to build. Our Calendar is built from scratch, but most of the other components extend existing Flex Framework components.
The Flextras stuff are architected for reuse. A "single use" component for a specific app can be built in 1 hour [and up].
Once again, the purpose of a component will affect how long it takes to build.
@chiffre
好吧,也许我猜错了,但“iOS 控件”让我认为不要“灵活控件”。
无论如何,使用 Flex 4.5.1,您可以添加任何您想要的控件,您唯一必须考虑的(这很重要)就是性能。
特别阅读有关项目渲染器的内容,因为滚动列表在 iOS 上不是那么快,以及如何使用 cacheAsBitmap。
另请记住,如果不扩展 UIComponent 或 Sprite 等基本控件,则在需要时始终使用灯光控件,如果您只需要一个矩形,则不要扩展 Button。
这是一些链接
http ://blogs.adobe.com/flashplayer/2011/06/adobe-air-2-7-now-available-ios-apps-4x-faster.html
http://www.adobe.com/devnet/flex/articles /mobile-development-flex-flashbuilder。
@chiffre
Ok, maybe I am guessing wrong but "iOS controls" makes me think not to "flex controls".
Anyway with Flex 4.5.1 you can add any controls you want, the only thing that you must count (and this counts a lot) is performance.
Read especially about item renderers since scrolling list is not so fast on iOS and how you can make use of cacheAsBitmap.
Also keep in mind to always use light controls when needed if not extend base controls like UIComponent or Sprite and not Button if you just need a rectangle.
Here are some links
http://blogs.adobe.com/flashplayer/2011/06/adobe-air-2-7-now-available-ios-apps-4x-faster.html
http://www.adobe.com/devnet/flex/articles/mobile-development-flex-flashbuilder.