flash - how to load interactive .swf in mobile flex application? -


i have mobile application attempting use load interactive .swf file. @ first, going use .mxml applications other project file in flex, they're desktop apps , running on flex 3.6, , mobile apps can't built on less 4.5 :p

so, figured i'd export first project .swf, , load in mobile application, nothing show up. know solution?

here's code:

<?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 obstacle" photo="@embed('assets/img/sumeco/beach/title.jpg')" message=""/>                 <fx:object name="conduct raid" photo="@embed('assets/img/sumeco/title.jpg')" message=""/>             </s:arraycollection>         </s:dataprovider>         <s:change>             <![cdata[             if(event.currenttarget.selecteditem.name == "beach") //here's i'm trying load 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> 

i don't think that'll work since you're trying load local swf. think needs loaded on internets, , so, why loading swf in locally? why not call directly?


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -