我是flash和发布到andriod的新手,但我创建了一个简单的Flash游戏,可以在Flash中运行,也可以在flash中以调试模式运行。当我尝试将其安装到andriod设备上时,我收到消息“无法启动”。我也在andriod模拟器上尝试过,但也无法打开。
这些是我在游戏开始前的第一个动作中加载的东西
import flash.events.Event;
import flash.events.TimerEvent;
Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
//stage.addEventListener(Event.RESIZE, resizeListener);
start_button.addEventListener(TouchEvent.TOUCH_BEGIN, tapDownStart);
start_button.addEventListener(MouseEvent.CLICK, startButtonOnMouseUp);
rules_button.addEventListener(MouseEvent.CLICK, rulesOnMouseUp);
rules_button.addEventListener(TouchEvent.TOUCH_BEGIN, rulesTapDown);
rules_text.visible = false;
ship.visible = false;
block.visible = false;
finalScore.visible = false;
playAgain_button.visible = false;
timerText.visible = false;
yourScore.visible =false;
bullet.visible = false;
这是我的xml文件:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<application xmlns="http://ns.adobe.com/air/application/3.2">
<id>helicopter3</id>
<versionNumber>1.0.0</versionNumber>
<versionLabel/>
<filename>helicopter3</filename>
<description/>
<!-- To localize the description, use the following format for the description element.
<description><text xml:lang="en">English App description goes here</text>
<text xml:lang="fr">French App description goes here</text><text xml:lang="ja">Japanese App description goes here</text></description>-->
<name>helicopter3</name>
<!-- To localize the name, use the following format for the name element.<name><text xml:lang="en">English App name goes here</text><text xml:lang="fr">French App name goes here</text><text xml:lang="ja">Japanese App name goes here</text></name>-->
<copyright/>
<initialWindow>
<content>helicopter3.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>true</fullScreen>
<aspectRatio>landscape</aspectRatio>
<renderMode>cpu</renderMode>
<autoOrients>false</autoOrients></initialWindow>
<icon/>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
<android>
<manifestAdditions>
<![CDATA[<manifest>
<uses-permission android:name="android.permission.CAMERA"/>
</manifest>]]>
</manifestAdditions>
</android>
我不知道问题是什么,但我觉得它与我发布它的方式有关。请帮忙!
答案 0 :(得分:0)
我认为如果你想发布到android air而不是helic3.swf你应该生成.apk。渲染模式也应该是&#34;直接&#34;。