Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to load interactive .swf in mobile flex application?
    primarykey
    data
    text
    <p>i have a mobile application that i am attempting to use to load an interactive .swf file. At first, i was just going to use the .mxml applications from my other project file in flex, but they're for desktop apps and running on Flex 3.6, and Mobile apps can't be built on less than 4.5 :P</p> <p>so, i figured i'd export the first project to a .swf, and load it in my mobile application, but nothing i do will get it to show up. anyone know a solution?</p> <p>here's the code:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title="Task Graphic Novels"&gt; &lt;fx:Declarations&gt; &lt;!-- Place non-visual elements (e.g., services, value objects) here --&gt; &lt;/fx:Declarations&gt; &lt;s:SWFLoader width="100%" height="100%" loadForCompatibility="true" id="bookLoader" enabled="false"/&gt; &lt;fx:Script&gt; &lt;![CDATA[ import ]]&gt; &lt;/fx:Script&gt; &lt;s:List height="100%" width="100%"&gt; &lt;s:itemRenderer&gt; &lt;fx:Component&gt; &lt;s:IconItemRenderer height="100" labelField="name" iconField="photo" iconHeight="70" iconWidth="54" messageFunction="getMessage"&gt; &lt;fx:Script&gt; &lt;![CDATA[ import spark.components.NavigatorContent; protected function getMessage(o:Object):String { return o.message; } ]]&gt; &lt;/fx:Script&gt; &lt;/s:IconItemRenderer&gt; &lt;/fx:Component&gt; &lt;/s:itemRenderer&gt; &lt;s:dataProvider&gt; &lt;s:ArrayCollection&gt; &lt;fx:Object name="Breach an Obstacle" photo="@Embed('assets/img/sumeco/beach/title.jpg')" message=""/&gt; &lt;fx:Object name="Conduct a Raid" photo="@Embed('assets/img/sumeco/title.jpg')" message=""/&gt; &lt;/s:ArrayCollection&gt; &lt;/s:dataProvider&gt; &lt;s:change&gt; &lt;![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"){} ]]&gt; &lt;/s:change&gt; &lt;/s:List&gt; &lt;/s:View&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload