简体   繁体   English

羽毛Star鸟AS3 AIR主题

[英]Feathers Starling AS3 AIR theme

I am building an AS3 project and I want to incorporate Feathers into it however I am confused when trying to follow their documentation. 我正在构建一个AS3项目,并且想将Feathers纳入其中,但是在尝试遵循其文档时感到困惑。 Probably my fault! 可能是我的错!

I am trying to add a theme (MinimalMobileTheme) however I have no idea where to add the theme folder or what folders I should be adding or how I show be adding them. 我正在尝试添加主题(MinimalMobileTheme),但是我不知道在哪里添加主题文件夹,应该添加的文件夹或如何显示添加主题。

I am using Flash Builder. 我正在使用Flash Builder。

Any help appreciated. 任何帮助表示赞赏。

Okay just followed this tutorial to get Starling and Feathers setup: 好吧,刚刚按照本教程进行了Starling和Feathers的设置:

http://gamua.com/starling/first-steps/ http://gamua.com/starling/first-steps/

Downloaded each from their respective github repos and extracted then added the source folders to the build path as specified. 从各自的github仓库下载每个文件并解压缩,然后按指定将源文件夹添加到构建路径。 Change the renderMode to direct in the -app.xml file, and used the sample to be sure Starling itself is working fine. 将renderMode更改为直接在-app.xml文件中,并使用该示例来确保Starling本身可以正常工作。

I'm now working through the theme usage but it appears there's basically just one big sprite sheet png that's used and an XML file that goes along with it and a font for each theme. 我现在正在研究主题用法,但似乎基本上只使用了一个大的sprite工作表png和一个随之而来的XML文件以及每个主题的字体。 I imagine this will work the same way where you simply download the source and link it in the flash builder project properties (can right click the project in the navigator and go to properties, or go to the main project menu and select properties, then go to ActionScript Build Path and add source folders). 我想这将与您简单地下载源代码并将其链接到Flash Builder项目属性中的方式相同(可以在导航器中右键单击该项目并转到属性,或者转到主项目菜单并选择属性,然后转到到ActionScript构建路径并添加源文件夹)。

The Embed's should be relative to one of your build paths. 嵌入的应该相对于您的构建路径之一。

Here's some resources that have helped me out so far: 到目前为止,以下资源对我有帮助:

http://wiki.starling-framework.org/feathers/getting-started http://wiki.starling-framework.org/feathers/getting-started

http://www.hsharma.com/tutorials/starting-with-starling-ep-1-intro-setup/ http://www.hsharma.com/tutorials/starting-with-starling-ep-1-intro-setup/

Hang up I just ran into an error trying to use feathers and looks like the dev is aware and they're working through some kinks with current revisions so it'll take some considerable effort to dig through and fix the issue (being a newb here). 挂断电话,我只是在尝试使用羽毛时遇到错误,并且看起来开发人员已经意识到,并且他们正在使用最新修订来解决一些问题,因此需要花费大量精力来研究和解决问题(在这里成为新手) )。 If you've gotten the current head of both to work or some older revision let me know and I'll take another crack at it. 如果您有两者兼任的负责人或较旧的修订版本,请告诉我,我将再作进一步探讨。

http://forum.starling-framework.org/topic/error-supportscissorrectangle-this_scissorrect http://forum.starling-framework.org/topic/error-supportscissorrectangle-this_scissorrect

The example posted to the Feathers site uses this in the source: 发布到Feathers网站的示例在源代码中使用了此示例:

private function addedToStageHandler(event:Event):void
{
    this._theme = new MetalWorksMobileTheme(this.stage); //start using theme

    this._navigator = new ScreenNavigator(); //components added afterwards have theme applied
    this.addChild(this._navigator);

follow the following steps 1)extract the file feathers-1.0.1 to desktop 2)right click on the project name on your package explorer and go to properties 3)select source path 4)add new folder feathers-1.0.1\\themes\\MetalWorksMobileTheme\\source folder on your desktop 5)ok. 请按照以下步骤操作:1)将文件feathers-1.0.1提取到桌面2)右键单击包浏览器上的项目名称,然后转到属性3)选择源路径4)添加新文件夹feathers-1.0.1 \\ themes \\桌面上的MetalWorksMobileTheme \\ source文件夹5)确定。 ok. 好。 then import package with 然后用

import feathers.themes.MetalWorksMobileTheme;

and follow the next steps in tutorial http://wiki.starling-framework.org/feathers/getting-started 并按照教程http://wiki.starling-framework.org/feathers/getting-started中的后续步骤进行操作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM