How to load content from the application directory?
I'm currently working on an AIR desktop application that will be distributed on OSX and Windows. The main applicaiton SWF will load a child swf that has been packaged. When I've attempted to load the child SWF via loader.load() with a URI of "app:\\TheChildContentSWF.swf", the load has failed with an IOError. If I force a copy of the the SWF (in OSX) to the MacOS directory where the executable resides, the child SWF would load. I was a little stumped by this so I decided to check what the nativePath of the application directory was via File.applicationDirectory.nativePath (it turned out to point at the Resources directory). Does the "app://" URI point to different paths when using Loader vs File?
If so, is there a way to package content so that it is installed in a directory that Loader can recognize without hitting security sandbox issues?
Visual of the OSX app directory structure (simplified)
MyApp.app\
Contents\
Frameworks\
MacOS\
executable
Resources\
TheAppSWF.swf
TheChildContentSWF.swf
... // other content
Thanks for any help!
Josh
When loading application, move the swf to the applicationStorage folder if it doesn't exist already.
Something like ...
private var swfDistribute:File = File.applicationDirectory.resolvePath('ResourcesChildContentSWF.swf');
private var swfLocal:File = File.applicationStorageDirectory.resolvePath('TheChildContentSWF.swf');
private function onCreationComplete():void
if (!swfLocal.exists) {
if (swfDistribute.exists) {
swfDistribute.copyTo(swfLocal);
Then you should be able to call your loader.load() URI with the variable (swfLocal)
Similar Messages
-
I tried opening PS and this message popped up 'Some of the application components are missing from the Application directory. Please reinstall the application.' I cannot find the Reinstall button?
I followed these instructions but cannot find how to reinstall PS. When I click on the membership link the page displays as NOT BEING FOUND.
Quit all applications.
In the Finder, navigate to the Photoshop application folder.
Do one of the following:
If the Locales folder is not listed within the application folder, then skip to Step 5.
If the Locales folder is listed within the application folder, then drag the Locales folder to the Trash.
Choose Finder > Empty Trash.
Start the installer for Photoshop or your edition of the Adobe Creative Suite.
If you purchased boxed software, then insert the installation DVD-ROM into your computer's DVD drive.
If you purchased downloadable software from the Adobe Online Store, then double-click the disk image (.dmg) file or files that you downloaded. (If you no longer have the downloaded disk image file or files, then log in to your account at www.adobe.com/membership to download the installer.) -
I have been using Elements11 for almost a year. I am suddenly getting the message:Some of the application components are missing from the application directory. Please reinstall. I deleted old version, reinstalled on my Mac and now get this message:A required application library failed to load and the product cannot continue. I also get the first message again. Organizer works but not editor. Frustrated!
What a waste of space to paste the code.
Why not ask in the iLife > iPhoto forum where your question belongs. -
PS CS4 64-bit (in Web Premium CS4) on Win 7 PC. I did a duplicate file check on my hdd and deleted dup files. Now when I try to run PS 64-bit I get "Some of the application components are missing from the Application directory, Please reinstall the application." When I do this, it seems to install correctly until the very end, then it says "Installation Complete With Errors", and when I try to run I get the same 'component missing message'. What can I do? PS 32 bit runs fine. Some of the other applications ib Web Premium say the shortcut has been changed or removed. I appreciate your help...Thank you
Best advice I can think of is to uninstall and run the Clean Script from here.
Adobe - Adobe CS4 Clean Script -
Some of the application components are missing from the Application directory, Please reinstall the application. This is what i am getting tying to open Photoshop Cs6???
Renée in the future when removing Photoshop CC please utilize the uninstaller located in the Applications/Utilities/Adobe Installers folder. Please run the uninstaller and then reinstall. If you continue to face difficulty reinstalling Photoshop CC then please see CC desktop lists applications as "Up to Date" when not installed - http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html.
-
Can XI as a middleware drive the content from the Application level
Can XI as a middleware drive the content from the Application level (backend) into the front-end Portal? By XI connectors? Is there a documentation that explains that?
You can't plug an iPod into an iPad in order to access its media, and as far as I am aware you can only use home sharing between a computer and an iOS device (iPad, iPhone, iPod Touch, but not an iPod Classic), and not between 2 iOS devices : http://support.apple.com/kb/HT4557 and http://www.apple.com/support/homesharing/
-
Just updated my iMac to OS X Yosemite and my Photoshop will no longer open. Pop up message informing, Some of the application components are missing from the Application directory, Please reinstall the application. I have the pay monthly package and don't know where to start.
Do as it says: Reinstall the program. Run the cleaner tool and let CC app do the magic.
Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
Mylenium -
When trying to open Photoshop CS5 I get the following Message: Some of the application components are missing from the Application directory, Please reinstall the application.
Can I get these components downloaded as my optical drive is broken.Download CS5 products
-
I downloaded Photoshop Extended about a week ago... the second time I opened it, an error message came up saying "Some of the application components are missing from the Application directory, Please reinstall the application." So I uninstalled it, then re-intalled it. I was able to open it successfully after that - and I used it once. I have just gone to open it again and it is reading the same error. This is very frustrating - why is it doing this? I don't want to have to unintall and reinstall everytime I want to use it. Please help
I want to bump this topic, again. So far the clues I've found are that there may be problems when the program was installed in one user account, and used in a different one. Perhaps there is a language setting, too. Can anyone give tips on this error for Mac, specifically Lion OS?
-
I received the following error message: "Some of the application components are missing from the Application directory. Please reinstall the application. So, I uninstalled (Photoshop CS5), reinstalled and got the message again! Please help! I have no idea what I'm doing wrong.
Nobody can tell you anything without proper system info or other technical details.
Mylenium -
I had photoshop installed fine. We had to replace our hard drive, but had a full backup and everything else is working except for elements. This is the message I get -Some of the application components are missing from the Application directory, Please reinstall the application. I have reinstalled, but am getting the same message.
A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
*http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
*https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
You can also try to repair the places database with this extension:
*https://addons.mozilla.org/firefox/addon/places-maintenance/ -
How to load images from the library (png)?
This is my first time using the forum so sorry if it's not professionally set up. I am trying to make an inventory system and I'm trying to find a way to have a Slot (MovieClip) holding a child of probably another MovieClip witch will display the icon according to whatever is in that Slot... As soon as I figure out how to have a MovieClip display an image and then change that image by loading it from the library, I can finish the rest! So let me try to demonstrate:
(Note: This is not actual code, it's just a demonstration of what I'm trying to accomplish)
Item1 = Name: "HP Potion", Icon: "HP_Potion.png"
Item2 = Name: "MP Potion", Icon: "MP_Potion.png"
Item3 = Name: "Sword", Icon: "Sword.png"
Item4 = Name: "Shield", Icon: "Shield.png"
Slot1.nameField.text = Item1.Name //HP Potion
Slot1.mc_img = Item1.Icon//HP_Potion.png
~Ok so what I am trying to do is see if there is a way to change what image the MovieClip displays, just by code. I don't want to put each individual picture in a frame on the MovieClip's timeline
Sorry about not having any code, I've been working on it for a few hours, and I can't find anything online that doesn't say put it in a timeline.
If you know how to do what I'm asking with a spritesheet instead of individual images, that's fine too! I'll just have to join all the images togetherAlright so let's get down to buisness... what I'm asking, is it impossible to make it simple? I can't just change the bitmap of the MovieClip. If you open up the MovieClip and view it's timeline, the image is a bitmap file withing that MovieClip so if you're able to manipulate other things of a MovieClip, you should be able to manipulate that too right? Such as "MovieClip.Bitmap" (I know that's not the actual property but could it be done?).
-
What now? Can't get a phone number to contact Adobe???????????????
Hey Cal do u have a windows box or apple? Do you have the compressed files from the original download or a backup or image of your computer? Last question for now-please describe the events that led up to the error message in your original question. Like " my girlfriend was mad at me and while I was cleaning up some photos in CS5 she cut the electric to my desktop!"
there is a chance if its a windows box and its running the OS win7, win 8, win8.1 and the systems restore setting turned on that if you can remember the last time(date) that CS5 worked: restore it(the computer) to that date or before that date. Also is there are some other options if its a mac but i need to know the operating system version and other info as to what other software is on your machine plus similar info like sw such as mackeeper, boot camp. parallels that another adobe community member(Bo LeBeau ) alluded to.
Provide me more info and i can/will help you! maybe even a way to minimize your cost of paying for adobe support if that what you wanna do.
Another vector that may be worth the effort is: find out generally or exactly what components are missing/corrupted from the application core sometimes there can be confusion(zip software posing as malware) or use in the mac and windows world of wrong procedures and use of decompression of compressed( ie winzip vs winrar) files that lead to CS5 working and all of a sudden not working. Last even installers can get flaky over time. So i know you wanna handle this so u can use CS5; but I need some more info. Have a good one! later and greater! -
How to enter contacts from the company directory t...
I have an E72.
How can I access the company directory from the recipient field of a new mail or a new meeting invitation?
Mail for Exchange is configured correctly, syncing of mails and calendar works fine. Yet there seems to be no way I can access the company directory to write mails to people who are not in my local address book.Just J wrote:
To add to the above, since you're running Windows your choices are Outlook if you have it on your computer (the full version, not Outlook Express), or the MobileMe service. You would load contacts into one of those two places, and then sync them to the iPhone via the settings in iTunes.
Well sort of Outlook Express. Outlook Express uses the windows built in Windows Address Book (found in Accessories). And you can sync with the Windows Address Book (as I do). -
How to delete File from the Application Server,ABAP
Hi Gurus,
I'm using DELETE DATASET Statement ,
Based on Date how can i delete files with in the period in the Application server
Any BAPI/FM for this Delete file based on some Date Period
Thanks in Advance.DATA: BEGIN OF file,
dirname(75) TYPE c, " name of directory. (possibly truncated.)
name(75) TYPE c, " name of entry. (possibly truncated.)
type(10) TYPE c, " type of entry.
len(8) TYPE p, " length in bytes.
owner(8) TYPE c, " owner of the entry.
mtime(6) TYPE p, " last modification date, seconds since 1970
mode(9) TYPE c, " like "rwx-r-x--x": protection mode.
useable(1) TYPE c,
subrc(4) TYPE c,
errno(3) TYPE c,
errmsg(40) TYPE c,
mod_date TYPE d,
mod_time(8) TYPE c, " hh:mm:ss
seen(1) TYPE c,
changed(1) TYPE c,
END OF file.
DATA: BEGIN OF file_list OCCURS 100,
dirname(75) TYPE c, " name of directory. (possibly truncated.)
name(75) TYPE c, " name of entry. (possibly truncated.)
type(10) TYPE c, " type of entry.
len(8) TYPE p, " length in bytes.
owner(8) TYPE c, " owner of the entry.
mtime(6) TYPE p, " last modification date, seconds since 1970
mode(9) TYPE c, " like "rwx-r-x--x": protection mode.
useable(1) TYPE c,
subrc(4) TYPE c,
errno(3) TYPE c,
errmsg(40) TYPE c,
mod_date TYPE d,
mod_time(8) TYPE c, " hh:mm:ss
seen(1) TYPE c,
changed(1) TYPE c,
END OF file_list.
DO.
CLEAR file.
CALL 'C_DIR_READ_NEXT'
ID 'TYPE' FIELD file-type
ID 'NAME' FIELD file-name
ID 'LEN' FIELD file-len
ID 'OWNER' FIELD file-owner
ID 'MTIME' FIELD file-mtime
ID 'MODE' FIELD file-mode
ID 'ERRNO' FIELD file-errno
ID 'ERRMSG' FIELD file-errmsg.
if sy-subrc eq 0.
MOVE-CORRESPONDING file TO file_list.
APPEND file_list.
else.
exit.
endif.
enddo.
sort file_list based on date and time ie, MOD_DATE and MOD_TIME fields
and delete the entries
Maybe you are looking for
-
How do I change the phone number for iMessage on my iPad with a shared iTunes account
Any suggestions?
-
One of the things which make Creative Cloud less attractive to an enthousiast like me is the fact I can make use of all applications if I get Creative Cloud (first option), but I don't need all aplications. On the other hand, I make use of too many m
-
Want to transfer data via idocs from one R/3 to different R/3
Hi!! May i hav nay step by step pdf which gives the complete flow of how to transfer idocs from from one R/3 to different R/3. Though i have the basics steps but some where I m stuck. Also I have two doubts:: 1.Is thr Any relation bw port name and L
-
Recording and playing sound input from mic simultaneously in iphone/ipad
I want to simultaneously record and play the sound from a mic in iphone. As thecricket commentory application. Please provide me a solution for this. Is this possible in iOs.
-
Analog line Fax to an another number
HI - I have an analog fax line 2580 now that we want to forward it to 3600 another fax line. I am not sure if I am doing this right or not (8.6.2 version) in the directory number configuration I check the box Forward all and entered the full phone nu