私は、インタラクティブな.swfファイルを読み込むために使用しようとしているモバイルアプリケーションを持っています。最初は、フレックスの他のプロジェクトファイルの.mxmlアプリケーションを使用するつもりでしたが、デスクトップアプリケーション用で、Flex 3.6で動作し、モバイルアプリケーションを4.5未満で構築することはできません:Pモバイルフレックスアプリケーションでインタラクティブな.swfを読み込む方法は?
だから、私は最初のプロジェクトを.swfにエクスポートして、それを私のモバイルアプリケーションにロードすると思いましたが、何も表示されません。誰もが解決策を知っている?私はあなたがローカルSWFをロードしようとしているので、それがうまくいくとは思わない
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="Task Graphic Novels">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:SWFLoader width="100%" height="100%"
loadForCompatibility="true"
id="bookLoader" enabled="false"/>
<fx:Script>
<![CDATA[
import
]]>
</fx:Script>
<s:List height="100%" width="100%">
<s:itemRenderer>
<fx:Component>
<s:IconItemRenderer height="100" labelField="name"
iconField="photo" iconHeight="70"
iconWidth="54" messageFunction="getMessage">
<fx:Script>
<![CDATA[
import spark.components.NavigatorContent;
protected function getMessage(o:Object):String
{
return o.message;
}
]]>
</fx:Script>
</s:IconItemRenderer>
</fx:Component>
</s:itemRenderer>
<s:dataProvider>
<s:ArrayCollection>
<fx:Object name="Breach an Obstacle" photo="@Embed('assets/img/sumeco/beach/title.jpg')" message=""/>
<fx:Object name="Conduct a Raid" photo="@Embed('assets/img/sumeco/title.jpg')" message=""/>
</s:ArrayCollection>
</s:dataProvider>
<s:change>
<![CDATA[
if(event.currentTarget.selectedItem.name == "Beach")
//here's where i'm trying to load the swf {bookLoader.enabled=true; bookLoader.load(new U RLRequest("assets/BookDemo.swf"));}
else if(event.currentTarget.selectedItem.name == "Title"){}
]]>
</s:change>
</s:List>
</s:View>
私はエラーが発生していない、それだけでロードされていない:/今のところ、その項目をクリックすると、2番目のものをクリックするのと同じこと、何もしない。 – jlehenbauer
あなたはどのプラットフォームをターゲットにしていますか? iOSでは不可能です。 –
iOSではまったくありませんか? swfがパッケージ化されたアプリケーションに含まれていても – jlehenbauer