Flex Mobile 4.5.1: Package contents and URLLoader

On Flash for web and desktop (Projector debugger), one can use a URLLoader to load local URLs (eg files off your hard drive).  This is very useful for some development purposes, as you just need to make sure any external files (JSON & PNG) are in the same relative path as the SWF, and you then don't need to worry about different code paths whether you're loading these external files from local storage or http.  URLLoader operates the same whether loading locally or remotely.
Is there any way to easily get the same behavior on a Flex Mobile 4.5.1 app (specifically for an iOS target)?  Again, this is useful because in my live app, these external files will be loaded from our web server, but for testing purposes I would like to be able to run in a server-less mode and include them with the deployed debug IPA file.  My first problem is that I cannot seem to figure out how to deploy these files to the application in the first place - I tried adding my external-files folder to the Flex Build Path as an additional Source folder, but they still don't show up under the Package Contents for iOS tab.
Any ideas?  Are there any include-extra-files-in-package options in the -app.xml? 
Or is there no way to use URLLoader for local storage on mobile, and I am stuck with using Embed?  (I guess besides Embed I could manually deploy the files to the iOS file system and use the AIR api for access, but that's still a different code path, defeating my goal - we have a decent bit of code built around the idea that URLLoader is agnostic)

Edit: Realized my original answer wasn't correct, the files were being pulled in from another setting.
After some experimenting, the answer is YES, and it's actually a bit unexpected: Just in fact adding the external files folder to the Flex Build path | Source Path actually pulls them all in.  It seems those directories are passed to both mxmlc and adt.  Unexpected surprise.

Similar Messages

  • 5800Xm package contents and mobile quality

    Ok, i want to buythis mobile so i looked around in my city in all authorized Nokia distributors and i found it in acceptable price.
    The problem now is that i doubt it's quality and have some complains regard the package contents.
    From what i read i understand that the phone's price dropped due to removing some contents from the package which are:
    Video-out cable, Additional stylus, Pouch, and stand.
    These are extra stuffs for me that i don't think i will use.
    Also i was happy to know video-out feature still exist in the mobile even after removing the cable and not mentioning this feature on Nokia site for this phone specification.
    Now...:
    The package i found for sale only have: Charger, headset, car stand,mini DVD, and the phone comes with only 4GB memory card????
    I looked all over the net to see if there are any 5800xm shipped with only 4GB memory card and i found nothing !!!  so why these mobiles comes with only 4GB)? Why reducing one of the most important parts in this mobile???
    Note that the mobile manufacture is in China.
    These couple of factors (removing contents, 4Gb MC, Chinese manufacture,...) through a huge doubts regard the quality of this mobile and it's accessories and I'm thinking to go for other brands unless i know the story behind this mobile in our country and if it's reliable or not.
    I live in Jordan, City: Irbid.
    So, i hope someone can help me with this.

    hello tirawi
    here some of my tought, in my country Malaysia nokia dealer sell 5800 with 2 spec, 4gb and 8gb. 4 gb is for nevigation editon and for normal editon they sell with 8gb, so ask your dealer if they sell it for nevigation edition.
    here is item packages in normal 5800xm
    5800 XpressMusic with pen stylus
    Battery (BL-5J)
    High Efficiency Charger (AC-8)
    Music Headset (HS-45, AD-54)
    Connectivity Cable (CA-101D)
    8 GB microSDHC card (MU-43)
    Plectrum in wrist strap (CP-306)
    User guide
    Dvd installer
    here is item packages in 5800xm nevigation editon
    5800 XpressMusic with pen stylus
    Battery (BL-5J)
    High Efficiency Charger (AC-8)
    Nokia Stereo Headset (WH-205)
    Connectivity Cable (CA-101D)
    4 GB microSDHC card (MU-41)
    Plectrum in wrist strap (CP-306)
    User guide
    In car holder for GPS (Nokia Mobile Holder CR-119)
    BTW..the packaging box for normal 5800 and 5800 nevigation editon also different for normal 5800 is small box with black color and for nevigation editon is big box with blue color, also you can see nokia 5800 nevigation picture at top on the box..
    hopfully my info will help you..
    Buy Original..See Original..

  • Event not showing up in editor but appears in package contents

    I have a weird scenario where one of my events is not showing up in a library. I have a simple library with the following events:
    Interviews
    B Roll
    Edits
    When I open final cut, I only see the B-Roll and Interviews event. The Edits one is missing. When I right click on the library in my finder and select show package contents, I can see all 3 events. No clue why one isn't showing up. 
    I tried renaming it. I tried setting up a new library and copying over. Neither worked.
    Any suggestions? 

    What happens when you open package contents and click on "edits"? Does it havea  filder that says "original media" and when you click on that one can you see video clips?

  • Flex Mobile List Item Renderer problems

    i have flex mobile list created with item renderer,i remove individual item in flex mobile list,it is worked very well,but some times i double click action or another scroll event using in list, last item doesn't delete in flex mobile list.it is repeated again and again.so anyone this problem faced,give me a solution.
    i expect your feedback.Thanking You

    Hi Alex,
    I've searched a lot for that post (on this forum and on google). Not sure if this is the post you were talking about: http://tech.groups.yahoo.com/group/flexcoders/message/161146
    I have fixed the setter of the data not to also manage the state (I figured it was inappropriate there)... overrode the getCurrentRendererState, I'm managing the state staight from the data. When I run the following... All sold items show as sold... and normal states show as normal. When I try to hover over the normal state, it dosen't play the hovered state, and when I click to the selected state. These built in states don't work.
    override public function set data(value:Object):void {
         super.data = value;
         ticketNumber_ti.text = value.slots_id;
    override protected function getCurrentRendererState():String {
         var state:String;
         if (data.date_purchased != null) {
              state = 'sold';
              mouseChildren = false;
              mouseEnabled = false;
         }  else {
              state = 'normal';
              mouseChildren = true;
              mouseEnabled = true;
         return state;
    On another note, the states only update, once I start scrolling, everything updates... I tried to validateDisplayList() to the List after setting the dataProvider with no luck.
    Once I find a solution I will certainly add it to my Blog as I have not found a lot of solutions for this problem.
    Any help is grteatly appreciated.

  • Flex mobile app - which data grid control to use?

    Hi,
    Trying to build my first Flex mobile app in FlashBuilder 4.6 and I need a grid control to display a 2 dimmensional array of 6 columns x 50 rows.
    The user doesn't don't need to have any interraction with the grid except for scrolling the rows.
    I was looking at using dataGrid component but adobe doesn't recommend it for mobile apps.
    Is there a grid component that is recommended for mobile apps?
    Thanks

    Here it is.
    // Show empty grid to start
    private function initGrid():void
        const dataArray:Array = new Array(1);
        var values:Array = new Array(1);
        values[0] = "";
        dataArray[0] = values;
        grid.dataProvider = new ArrayCollection(dataArray);
    // Build array and feed it to the grid - 50 rows x 9 columns dataGrid (grid)
    protected function FillGrid():void
    var rows:int = 50;
    var columns:int = 9;
    // rows array
    const dataArray:Array = new Array(rows);
    // Get rows
    for(var row:int=0; row<rows; row++)
      const arrLine:Array = [columns+1];
      arrLine[0] = row+1;
      for(var col:int=1; col<columns+1; col++)
       // columns array
       arrLine[col] = Math.floor(Math.random()*10);
      dataArray[row] = arrLine;
    // At this point the multi dimensional array is assembled, now we connect it to the dataGrid
    grid.dataProvider = new ArrayCollection(dataArray);
    <!-- The DataGrid's dataProvider and typicalItem are set at initialize time by the initializeDataProvider method. -->
    <s:Panel id="tablePanel" x="519" top="91" width="470" height="400" color="#827259" fontSize="18" title=".">
    <s:DataGrid id="grid" left="5" right="5" top="5" bottom="5" selectionMode="singleRow" initialize="initGrid()" fontSize="17" >
      <!-- The default item renderer is used by the first 6 columns to display
      the dataProvider item's array element value at col. -->
      <s:itemRenderer>
       <fx:Component>
        <s:DefaultGridItemRenderer>
         <fx:Script>
          <![CDATA[
           override public function prepare(hasBeenRecycled:Boolean):void
            label = data[columnIndex];
          ]]>
         </fx:Script>
        </s:DefaultGridItemRenderer>
       </fx:Component>
      </s:itemRenderer>
      <s:columns>
       <s:ArrayList>
        <!-- Columns inherit the DataGrid's itemRenderer. -->
        <s:GridColumn id="zero"    headerText="N0" width="65" resizable="false"/>
        <s:GridColumn id="one"     headerText="N1" width="45" resizable="false"/>
        <s:GridColumn id="two"     headerText="N2" width="45" resizable="false"/>   
        <s:GridColumn id="three"   headerText="N3" width="45" resizable="false"/>   
        <s:GridColumn id="four"    headerText="N4" width="45" resizable="false"/>
        <s:GridColumn id="five"    headerText="N5" width="45" resizable="false"/>
        <s:GridColumn id="six"     headerText="N6" width="45" resizable="false"/>
        <s:GridColumn id="seven"   headerText="N7" width="45" resizable="false"/>
        <s:GridColumn id="eight"   headerText="N8" width="65" resizable="false"/>
       </s:ArrayList>
      </s:columns>
    </s:DataGrid>
    </s:Panel>       
    Tomexxus

  • Renaming Vocal Recordings in "Package Contents"?

    I'm viewing my "Package Contents" after recording a song with quite a few vocals, and everything is labeled "Female Voice #(1,2,3 and so on). Problem is, I'm renaming the segments within GarageBand. I even re-saved the entire project as a new file. Anyway to change these? Won't going to the "Package Contents" and renaming the files manually confuse GarageBand to prevent the vocals from opening?

    dnaginzter wrote:
    Anyway though to have GB change the vocal track names in the package contents? It's sure confusing for me.
    why do you need to muck around in the package contents.
    if you change anything in the package you risk: at best GB not being able able to find its files... at worst, you'll destroy the project file

  • Show Package Content option not available in Ctrl+click

    Hi,
    I just installed Mozilla's Thunderbird email SW (v. 1.5.0.5) and I'm trying to import the mail I had accumulated previously in Mail 2.1 (this is under OS X Tiger 10.4.7, sadly running on a pretty old G4 400 MHz, AGP Graphics). The instructions from Mozilla seem pretty simple:
    <<How do I import e-mail messages from mail.app (MacOS X)?
    Go to ~/Library/Mail/ and root out the .mbox files in the finder. These are actually OSX packages. Select Show Package Contents and a new window will open revealing several files including a file named mbox. Copy that file to the subfolder called Local Folders in the folder Mail in your profile folder and rename it to something meaningful. This process needs to be done for each of your mailboxes. Finally start Thunderbird to see the new mail folders.>
    Well, I'm also a recent convert to OS X ('twas about time! I was still running OS 9.2.2 less than a month ago!), so I had never heard of "Show Package Contents". It seems that I should be able to see this in the contextual menu when I Ctrl+click (or right-click; I have a multi-button mouse) on the object (the *.mbox folder in this case). But my contextual menu has no such option.
    Any ideas?
    Louis

    Hmm... They do look like folders, don't they? Perhaps they were thinking of an earlier release of OS X...
    Anyway, what you describe is close but not exactly what I see. Let me describe to make sure the situation is clear: I am in home>Library>Mail>Mailboxes. Inside this, I have a set of *.mbox "folders", each of which contains only two items: an "info.plist" file and a "Messages" folder. The "Messages" folders (within each *.mbox folder) contain individual messages with the .emlx extension.
    So the *.mbox "folders" contain no mbox file that I can grab and move (and no index, content.index, of table of contents that you mention). Perhaps these are "hidden"? But I can't find an option anywhere to "Show hidden files".
    Ideas?
    Louis

  • Some photos not appearing anywhere in iPhoto '11 (but present in iPhoto package contents)

    Hi,
    I was browsing images in iPhoto recently, but I couldn't find photos that were previously in the library. I have looked in to the package contents, and the files actually appear to be present, but no trace in iPhoto (not in albums where the photos were used or various places in the library). I've tried the search function too, but it's not finding the image either. I'm using a brand new MBP and hence the latest iPhoto also.
    The iPhoto library was imported using my Time Capsule from an iMac where iPhoto kept crashing... so it's possible there were issues with the underlying database.
    Any ideas what could be causing this and how to resolve would be much appreaciated.

    Hi Terence,
    On the 3rd attempt and 1.5 days, iPhoto Library Manager rebuilt the library (first time crashed after a few minutes, second time 2/3rds of the way through).
    When the process finished, there was a message from iPhoto Library Manager saying it couldn't copy an image over and that there were some errors (I saved the log file if that helps).
    I've just opened it up, and unfortunately I appear to still be missing images (the photo library is 29,692 vs. previously 29,692). When I do 'Get Info' on the folder within the iPhoto database package (i.e. the Masters folder), it shows around 33,000 files - I assume that these are all image files, so it would seem I'm missing about 3,300 images when I open iPhoto?
    Is there any additional steps that I can take? Or given that I made a copy of the Masters folder elsewhere, should I perhaps just try importing these? I assume that iPhoto will use the existing folder structure to mark events, etc... I can live without the album info (I hadn't tagged photos or anything else).
    Thanks.

  • Bootcamp package contents

    I went into bootcamp package contents and modified info.plist so that I could install 32bit windows but now my bootcamp won't open. I swear I backed up info.plist but I can't find it anymore. Can you uninstall and reinstall bootcamp? If not, how to fix this? Info.plist is still there and it seems like it is the unmodified version but still bootcamp will not open.

    You need to code sign it using Xcode command line tools. It does not partake well of modifications.
    Please see Enable Bootcamp to install from usb for OSX 10.9**WORKS**

  • How to display html content with image in Adobe Flash and Flex mobile project?

    Hi,
      I have a html content with image in it. How to display it in Adobe Flash Builder and Flex mobile project? Which control needs to be used for this?

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • IOS universal support and ASC 2.0. Will it impact Flex Mobile projects?

    Hello,
    Regarding the latest release notes for AIR 16, it says
    "The legacy compiler is not (and will not be) compatible with iOS 64-bit.[...] it will be removed with version 16 of the AIR SDK"
    I am a bit lost with what it means for Flex Mobile (4.6 or Apache Flex SDK). Will we still be able to compile once AIR 16 is out or will this new compiler have issue with Flex projects compiled for iOS? Will it need us to make some changes on existing Flex applications?
    Thanks for your clarifications,
    Fabien

    It seems this wrong rumour is spreading around... a lot of people don't bother researching properly.
    When they talk about the legacy compiler they talk about ADT, MXMLC will continue to work. The simplified IPA packaging process is: Source code --- MXMLC/ASC2---> SWF ---ADT AOT Compiler---> IPA
    So with AIR 16 the ADT -useLegacyAOT argument will be removed.

  • I am trying to Show Package contents of iMovie and it freezes at the hr.lprog folder

    While doing a virus scan my machine would freeze on the file
    Applications/iMovie/Contents/Resource/hr.lprog/Title-SidewaysDrifting.nib/keyedo bjects.nib.
    Bitdefender said to send them the file.
    I am able to "Show package contents" of iMovie, and open the Contents and Resources folder. When I try to open the hr.lprog folder, I get the spinning beach vball of death and I have to reboot my machine using the power button.
    Does anyone have an idea what might be causing this and how to fix it?
    Is the hr.lprog folder just the language files for Croatia? If so, can I safely delete them, or is there more to it?

    My guess would be that your hard drive has become corrupt, and the corruption is affecting something about that folder or its contents such that when the Finder tries to display them, it crashes. I would recommend immediatelyrepairing with Disk Utility. Also, if you don't have any backups, now would be a good time to start, before something bad happens.
    If repairing the hard drive doesn't work, I would try deleting and reinstalling iMovie.
    Also, note that I don't recommend BitDefender. Read my Mac Malware Guide, and if after reading that you want to have anti-virus software, use one of the programs it recommends. BitDefender has performed poorly in my anti-virus software testing, both in the first round and the second round of testing.

  • Okay so I'm trying to download Adobe Flash Pro. I've gone to creative cloud and downloaded "Flash Professional CC and Mobile Device Packaging (2014)" and I have no idea what to do afterwords... There's no way to open or run the file. And to be honest, I'm

    Okay so I'm trying to download Adobe Flash Pro. I've gone to creative cloud and downloaded "Flash Professional CC and Mobile Device Packaging (2014)" and I have no idea what to do afterwards... There's no way to open or run the file. And to be honest, I'm not even sure if it's the right download... Help!

    I'm using PC with Windows 8.1. I got onto the Creative Cloud and downloaded "Flash Professional CC and Mobile Device Packaging (2014)". <--- That would be the file. I can't open or run it from CC and I couldn't find a file in my computer either.
    I've also found direct downloads for the trial version and hit the set-up button, it loads up, and then nothing happens.

  • Flex mobile project: web root and root path for a remote web service?

    Hi all,
    i'm trying to set up the testdrive tutorial for flex mobile project, with flash builder 4.5
    and php data.
    I've uploaded the files on my remote web space (e.g. http://mywebsite.org, and the
    test file is http://mywebsite.org/TestDrive/test/test.php... and it works
    correctly)... But when i'm setting properties of the project, i don't know what
    to write into the web root and root path fields... I thing root path is simply
    http://mywebsite.org... and whatever i write in the other fields (output folder
    too) i have errors when i click on "validate configuration"...
    What should i put into those fields? is zend framework (and gateway.php)
    strictly necessary?
    As you can see... i'm a bit confused....
    Many thanks for any help
    Bye
    Alex

    I thought it was a simple question...
    No advice?

  • I downloaded CS6 Red Plug-In and added to Package Contents, replaced the current files with the new without backing up, now my RED footage thumbnails and color-correction don't WORK! How do I get my old importerRed file back!!?? HELP!

    I downloaded CS6 Red Plug-In and added to Package Contents, replaced the current files with the new without backing up, now my RED footage thumbnails and color-correction don't WORK! How do I get my old importerRed file back!!?? HELP!

    Try asking in the Premiere Pro  forum seems to be an Adobe Lab for Premiere Pro

Maybe you are looking for

  • How do I get downloaded CD's from Windows vista to my Ipod touch 5th gen?

    I bought an ipod touch 5th gen and have itunes on my computer , but I can't get my down loaded cd's from windows media player to itunes or my ipod. Please ask me more questions if you can help me.

  • Openssh and dhcpcd updated today - now sftp cannot find local servers

    Hi folks, I did my update thing this evening 'packer -Syu' and openssh was updated to 6.6p1 [2014-03-19 18:44] [PACMAN] upgraded openssh (6.5p1-2 -> 6.6p1-1) and dhcpcd was updated to 6.3.2-1 [2014-03-19 18:43] [PACMAN] upgraded dhcpcd (6.3.1-2 -> 6.

  • Improvements and Changes in ECC 6.0 with 4.6/4.7 Version

    Hi All, Can any body tell me what are the Improvements and Changes made in ECC 6.0 with 4.6/4.7 Version, in Configuration, Master data, Transactions and other new functionalities. Please let me know the above details with reference to MM Module persp

  • One folder in the Event Library is empty! Why?

    I recently uploaded many clips to iMovie '11. In the Event Library there are many folders. The problem is, one of those folders (selected in the screen shot) has no video clips in the corresponding Event Browser. +"The message in the Event Browser sa

  • Apple TV Full - No More Space

    How do I remove items from Apple TV - stuff that I do not want to watch anymore. I would like to get new shows - but cant since full. Can I simply go to my iTunes folder, move some of the TV Shows & Movies into another folder on my desktop? Thanks