File.copyTo - issues with copied Flash10 Project .app

I'm currently working on a project which has functionality to export a selected number of slides to a Folder, complete with a Flash 10 .exe or .app to play the files with.
I've been running into a major issue with copying the .app. Once the presentation has been exported from the Installed AIR app, the .app projector file will not open, it attempts to open and immediately closes again.
Funnily enough, it works perfectly when outputting from the Flash IDE (coding in flex) in the debugger, the .app file is copied fine and it works perfectly. It's only when attempting from the installed AIR app.
The code I have is:
var originala:File = File.applicationDirectory.resolvePath(_app);
var appX = "Presenter.app";
var copya:File = file.resolvePath(dir+appX);
originala.copyTo(copya);
_trace.add("[FILE SYSTEM] Copy of Presenter.app is Package: " + copya.isPackage + ", if false, Projector will not work!");
I originally thought it wasnt copying over the .app directory as a package, but it seems to, so that was the reason for the trace.
I've even bought a copy of CS5 to see if the issue is resolved with the AIR 2.0 RC, it's downloading now.
I have no idea why this isn't working and I am on a tight deadline.
Any one got any ideas?
Thanks.
Joe K

OK, I really need help with this...
I have included a .zip (link below) which has a small test bed AIR app including all source...
When running installed AIR app (Copy doesn't work):
isDebugger: false
playerType: Desktop
version: MAC 10,1,53,64
When previewing from .fla in Flash IDE (Copy does work):
isDebugger: true
playerType: Desktop
version: MAC 10,0,12,36
Please please please help!
http://rapidshare.com/files/397795116/Copy_Tester.zip.html
[EDIT] So it looks like I just can't copy from the applicationDirectory. But I dont want to have to include extra files with the installer I wanted to include it in the installer. Is there any way for me to do this?
[EDIT 2] I have tried a extracting a .zip included in the package with FZip and ZipLib, both produce the same results, the .app doesnt work.

Similar Messages

  • Captivate 8 - How to change to producing "project.json" file instead of a "project.txt" file?  Having issues with viewing published projects due to this.

    Captivate 8 - How to change to producing "project.json" file instead of a "project.txt" file?  Having issues with viewing published projects due to this.   Would be thankful fo rany/all advice.

    I'm having the same issue. I've been able to work around it by opening the txt file and copying the contents. Then I open a new file in Sublime Text 2, paste the contents and save the new file as "project.json". It seems to work, but it'd been nice if I didn't have to do this everytime I publish a new project.

  • Hi.  I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme.  Comes up with error 50.  I am using a Macbook Pro to copy from so not sure what I am doing wrong.  Can someone help? thanks Rory

    Hi.  I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme.  Comes up with error 50.  I am using a Macbook Pro to copy from so not sure what I am doing wrong.  Can someone help? thanks Rory

    These links might provide some information that may be of help.
    http://support.apple.com/kb/TA20831
    https://discussions.apple.com/message/2035035?messageID=2035035
    I've encountered this error myself upon occasion.  If I remember correctly, it was a permissions/ownership issue with the some of the files I was copying.

  • I need to get the logs of my iPhone 5. I'm a registered as a developer and I have an issue with one of my app which is already in the market

    I need to get the logs of my iPhone 5. I'm a registered as a developer and I have an issue with one of my app which is already in the market

    The Firefox 3.5.x branch has reached end-of-life and is no longer maintained.<br />
    You will no longer receive security updates.<br />
    You can update Firefox via "Help > Check for Updates" or download and install the latest Firefox 3.6.x.<br />
    Firefox 4 and later require at least OS X 10.5 and an Intel Mac.
    * http://www.mozilla.com/firefox/4.0/system-requirements/
    If you have problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the DMG file to the desktop
    * Firefox 3.6.x: http://www.mozilla.com/en-US/firefox/all-older.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

  • Issues with transferring CS5 project with Adobe Dynamic Links to CS5.5

    Hello all!
    Has anybody encountered the issue with transferring CS5 projects with Adobe Dynamic Links to CS5.5?
    When I try to do it the movie hangs on at some clips which are AE compositions...
    The CS5 project works perfectly.
    All AE CS5 compositions are transerred to AE CS5.5 compositions.
    All 'old' Adobe Dynamic Links in Pr CS5.5 project are changed to 'new' ones (I mean, links to AE CS5 composition changed to links to AE CS5.5 compositions)...
    Any help will be appreciated

    Tried to play around. Realised that a solution should be somewhere around re-rendering, 'cos linked AE compositions were always displayed in yellow as if they were original footages - even I changed a composition within AE, just transitions, if they were, changed to red in Pr Pro sequence...
    However, I was unable to re-render 'Entire Work Area' even after deleting all Render Files, just 'Effects in Work Area'...
    Then I simply created a new sequence and copied and pasted all the clips from original sequence. Now I was allowed to 'Render Entire Work Area'.
    Voilà!

  • Issue with copy control of Delivery document to Billing document

    Hi All,
    I am having some issue with copy control of Delivery document to Billing document.
    I am having two line items in Delivery documetn, one is for item to be delivered to customer and other which is created due to batch determination.
    Now , when I create billing document (VF01) with reference to this delivery document , I want only one line item (for the one which needs to be delivered to customer).
    I have used following things in  copy contro from ZLF to ZF2:
    Copying requirements: 004 ( Deliv-related item)
    Data VBRK/VBRP: 007 "(Inv.Split (Rec/Div))
    Is it correct or shall I use something else, so I have only one line item in Billing document.
    Regards
    Nidhi

    Pls. search the forum.
    Pls. refer the below link -
    Line with 0 quantity for main item with batch split
    Thanks

  • All of a sudden File compatability issues with IPhoto & digital camera

    Anyone have issues or solutions for solving file compatability issues with IPhoto & digital camera?  Worked okay for years but all of a sudden giving me error messages about file format.  My camera uses Jpeg.

    There is an issue ongoing  between 10.6 and Kodak cameras. Workround: use a USB Card Reader.
    Regards
    TD

  • I am having a file moving issue with Adobe Reader XI

    I am having a file moving issue with Adobe Reader XI on a Windows 7 32bit system. When Adobe reader is set as the default program for PDF files moving files from one directory to another takes over a minute, regardless of the size of the file. When the default handler is set to another program, like Nuance or PDF Creator, this is instant. What in Adobe Reader is causing this and what can I do to speed up file moving? Any help will be greatly appreciated. Thank you.

    I am using Windows 7 home edition and using Internet Explorer 10
    The PDF's are online on websites that I am trying to open.  Both on the site as well as trying in a new window.
    Thank you
    Jeff

  • I have iWork '06 on my Mac (running OS 10.6.8). Will I be able to use the Keynote files it produces with the Keynote iPad app?

    Hi,
    I have iWork '06 on my Mac (running OS 10.6.8). Will I be able to use the Keynote files it produces with the Keynote iPad app?
    Thanks,
    Mark

    You probably can open the Keynote '06 files with Keynote for iOS but not the other way around. Files created by the iOS iWork apps can only be opened by iWork '09 apps on the Mac.

  • HT1338 My fuji x100s has RAW file compatibility issue with OS 10.8.2

    My fuji x100s has RAW file compatibility issue with OS 10.8.2, my iphoto11 cannot recognise the file format.  Anyone know of this issue too? Appreciate if anyone can offer some helps.  Thanks

    Correct.  The Fuji X-100s is not currently supported by iPhoto or Aperture (or the RAW converter in OS X itself).  You can submit feedback via iPhoto and request this.

  • Multiple Issues with Adobe Creative Cloud app.

    I'm having multiple issues with the Adobe Creative Cloud app.
    1. Neither Photoshop CC nor Prelude CC get past the 47% mark when installing. They constantly give me "Installation Failed" messages. When I click on "Learn More", I'm told that:
    "Installation Failed
    Errors during Installation.(7)
    More Information"
    So naturally, I click on More Information to get the following thrown at me (none of which I understand):
    Exit Code: 7 Please see specific errors below for troubleshooting. For example,  ERROR:   -------------------------------------- Summary --------------------------------------  - 0 fatal error(s), 2 error(s)    ERROR: 12/01/13 13:16:06:425 | [INFO] |  | OOBE | DE |  |  |  | 6076 | ---------- CustomHook_Helperx64 ---- Start ----------  12/01/13 13:16:06:426 | [ERROR] |  | OOBE | DE |  |  |  | 6076 | Cannot load function name 'CSInstallerCustomHookProc' from library C:\Program Files (x86)\Common Files\Adobe\Installers\uninstall\{5F816B76-62F3-41C9-B651-27F49F25F50B}.data. Error 0    ERROR: System check returned with error : -4  -------------------------------------------------------------------------------------
    2. I installed Lightroom 5, then uninstalled it. When I went back to re-install it, the Adobe Creative Cloud app wouldn't let me. It states that my Lightroom 5 is "Up to date" and is in my "Your Apps" section, not in the "Find New Apps" section. I've double checked my Programs and Features in Control Panel, and it's not there. I cleaned my registry, and it's still there. I deleted the "opm.db" file in my OOBE folder, and restarted CC - still nothing.
    I've got to say, guys. I'm not very happy with the amount of time I've spent just trying to install programs on my PC. While the plan is for this to be intuitive at some point, it's not very functional at the moment. Any help you can provide me would be amazing - if you can provide it sooner than later, I'd be over the moon.
    Thanks.

    I fixed it. I fixed it on my own. My journey took over a week (forty hours of back and forths, trial and error, and service!!) and included multiple calls, multiple online chats, unanswered forum posts, Twitter conversations with the Adobe Customer Service team, remote access sessions with Adobe technical teams, and finally this series of emails. In the end, I had to figure it out myself. I'm not happy - not with the time it took, and not with the level service I received based on the urgency that I made clear.
    For anyone else that had this issue (or similar), here is what I did to fix it. This may seem excessive, but that's because I didn't know what else to do. Some of these steps may be redundant, or not required... but I wouldn't know because once I saw that it was working, I just kept going.
    Anyway, here is the solution I came upon (I'm running Windows 7 64-bit):
    1) I uninstalled every single Adobe product (including Flash Player, Acrobat Player, Air, and Digital Editions).
    2) I ran the Cleaner Tool (which is not very good) and came across errors in trying to delete certain folders.
    3) I restarted my computer in Safe Mode, and logged into Windows 7 under my Administrator account.
    4) I manually went into every folder that contained the words "Adobe" and deleted everything. This includes my Program Data folder, my Program Files folders (both x86 and 64-bit), my AppData folders, my Roaming folders, my Temp folders - ANYTHING and EVERYTHING that contained any trace of Adobe, I deleted.
    5) I ran Microsoft Disk Cleanup and Piriform CCleaner to clean my registry and temp files.
    6) I restarted my computer using the normal boot process and logged into Windows as Administrator.
    7) I downloaded the Adobe Creative Cloud installer.
    8) I restarted my computer again, and logged into Windows as Administrator.
    9) I ran the Creative Cloud installer, and installed Premiere Pro.
    10) I restarted my computer again, and logged into Windows as Administrator.
    11) I ran the Creative Cloud installer, and installed Photoshop.
    12) I restarted my computer again, and logged into Windows as Administrator.
    13, 14, 15...) I ran the Creative Cloud installer and installed whatever programs I needed, then I IMMEDIATELY restarted my computer before installing anything else.
    Hope this helps. Good luck!

  • Issue with podcast v2.0 app seeing synced podcasts

    Hi Everyone,
    I would be extremely grateful if someone could explain an issue I am facing with using the new Podcast v2.0 app on my recently upgraded iphone 4S IOS 7.0.4
    I am using iTunes 11.1.3.8 on a windows 7 x64 machine.  I have lectures, speeches etc (which I like to listen at 2x speed) that are in mp3 format from different websites etc that I download to my PC.   I add them to iTunes and change the "Media Kind" from Music to Podcast within iTunes, I have no problems applying this process, the categories & titles appear in the podcast menu and are synced perfectly fine onto my iphone 4S IOS 5.0.1.  I was naturally using the standard music app to listen to the podcasts and I was happy.
    I have now updated my iphone 4S to 7.0.4 and have added the podcast app to listen to the podcasts.  I do exactly the same process as I have detailed above, I have no issues, I can even see the numerous titles in their seperate podcasts listed under the podcast menu under my iphone in iTunes - so they have been physically synced over to the iphone.  The problem is in the new podcast app, I only have one podcast with one title listed, (the newest one) all the other podcasts & titles are not shown anywhere.  If I listen to the only title available to the end and then resync my iphone, I realise that the actual title played was the oldest one in iTunes. (not the newest as listed in the app) When I listen to the same & only listed podcast in the app (always the newest one) it is actually the second oldest title that is playing (according to iTunes)
    So obviously I assume the podcast v2.0 app is a lot stricter with or it needs additional requirements to be applied to an mp3 file in order that they are show up correctly in the app apart from simply changing the media kind in iTunes (which worked perfectly fine before in IOS 6 & below)
    My questions (sorry to take so long to get to them) are, does anyone know what those requirements are? can I apply them to the mp3 files within iTunes or do I need to use 3rd party software to modify/add them so the podcast app will see these manual podcasts?
    I hope someone can you help me out with this one as I really enjoy listening to podcasts and feel that my user experience would be greatly hampered if the limit to the availability of podcasts is only to those who have published on itunes or offer subscriptions.  The ability to add podcasts manually and have them synced via iTunes is always available so surely it is only a matter of properly formatting, labelling and adding the correct tags to the files so they show up in the podcast app.
    Thanks in advance for your help
    Alzoo
    (P.S Somone mentioned in aonther post changing the genre to "Podcast" as well, will check that out and get back to you all)

    To confirm, changing the genre to "podcast" has no effect on displaying the entire list of titles or other podcasts in the podcast app.  I beleive the app to have a serious bug.
    I can see all the titles in spotlight search, I can search by title name or even artist name and they appear, so clearly they are available in the iphone.  Another major issue is I can't play them in the podcast app.  I can select one from spolight and the podcast app loads however it always play the same title that is playing, it won't chnage to the title I selected.
    Another oddity (bug) is I can delete the one and only title that is listed in the podcast app and it will delete it - the title name does not change however the podcast itself changes to the next one on the list.  I can keep deleting them one by one.  the title remains the same but the contents of the podcast is the next one after next one as it goes down the list.  So the app is not able to pick up & display the numerous titles even though it can play them.
    I can change the media kind to either Audiobook or iTunesU and the mp3 files are successfully listed in both the music app or ITunesU app respectively and I have no issues seeing them all, playing them or syncing them.  only issue with itunesU is can't increase to 2x speed, it says only at 1x
    There really are some major flaws with the the podcast app v2.0. I will add a new ticket to the apple bugreport site for developers concerning these issues.
    Ta

  • Flex file upload issue with large image files

         Hello, I have created a sample flex application to upload an image and also created java servlet to upload and save image and deployed in local tomcat server. I am testing the application in LAN. I am able to upload small as well as large image file(1Mb) from some PCs but in some other PCs I am getting IOError while uploading large image files however it is working fine for small images. Image uploading is hanging after 10%-20% and throwing IOError. *Surprizgly it is working Ok with XP systems and causeing issues with Windows7 systems*.
    Plz give me any idea to get a solution.
    In Tomcat server side it is giving following error:
    request: org.apache.catalina.connector.RequestFacade@c19694
    org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly
            at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:371)
            at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.ja va:126)
            at flex.servlets.UploadImage.doPost(UploadImage.java:47)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
            at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
            at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProto col.java:594)
            at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
            at java.lang.Thread.run(Thread.java:722)
    Caused by: org.apache.commons.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedly
            at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStre am.java:982)
            at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:8 86)
            at java.io.InputStream.read(InputStream.java:101)
            at org.apache.commons.fileupload.util.Streams.copy(Streams.java:96)
            at org.apache.commons.fileupload.util.Streams.copy(Streams.java:66)
            at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:366)
    UploadImage.java:
    package flex.servlets;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import java.text.*;
    import java.util.regex.*;
    import org.apache.commons.fileupload.servlet.ServletFileUpload;
    import org.apache.commons.fileupload.disk.DiskFileItemFactory;
    import org.apache.commons.fileupload.*;
    import sun.reflect.ReflectionFactory.GetReflectionFactoryAction;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class UploadImage extends HttpServlet{
             * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
             *      response)
            protected void doGet(HttpServletRequest request,
                            HttpServletResponse response) throws ServletException, IOException {
                    // TODO Auto-generated method stub
                    doPost(request, response);
            public void doPost(HttpServletRequest request,
                            HttpServletResponse response)
            throws ServletException, IOException {
                    PrintWriter out = response.getWriter();
                    boolean isMultipart = ServletFileUpload.isMultipartContent(
                                    request);
                    System.out.println("request: "+request);
                    if (!isMultipart) {
                            System.out.println("File Not Uploaded");
                    } else {
                            FileItemFactory factory = new DiskFileItemFactory();
                            ServletFileUpload upload = new ServletFileUpload(factory);
                            List items = null;
                            try {
                                    items = upload.parseRequest(request);
                                    System.out.println("items: "+items);
                            } catch (FileUploadException e) {
                                    e.printStackTrace();
                            Iterator itr = items.iterator();
                            while (itr.hasNext()) {
                                    FileItem item = (FileItem) itr.next();
                                    if (item.isFormField()){
                                            String name = item.getFieldName();
                                            System.out.println("name: "+name);
                                            String value = item.getString();
                                            System.out.println("value: "+value);
                                    } else {
                                            try {
                                                    String itemName = item.getName();
                                                    Random generator = new Random();
                                                    int r = Math.abs(generator.nextInt());
                                                    String reg = "[.*]";
                                                    String replacingtext = "";
                                                    System.out.println("Text before replacing is:-" +
                                                                    itemName);
                                                    Pattern pattern = Pattern.compile(reg);
                                                    Matcher matcher = pattern.matcher(itemName);
                                                    StringBuffer buffer = new StringBuffer();
                                                    while (matcher.find()) {
                                                            matcher.appendReplacement(buffer, replacingtext);
                                                    int IndexOf = itemName.indexOf(".");
                                                    String domainName = itemName.substring(IndexOf);
                                                    System.out.println("domainName: "+domainName);
                                                    String finalimage = buffer.toString()+"_"+r+domainName;
                                                    System.out.println("Final Image==="+finalimage);
                                                    File savedFile = new File(getServletContext().getRealPath("assets/images/")+"/LowesFloorPlan.png");
                                                    //File savedFile = new File("D:/apache-tomcat-6.0.35/webapps/ROOT/example/"+"\\test.jpeg");
                                                    item.write(savedFile);
                                                    out.println("<html>");
                                                    out.println("<body>");
                                                    out.println("<table><tr><td>");
                                                    out.println("");
                                                    out.println("</td></tr></table>");
                                                    try {
                                                            out.println("image inserted successfully");
                                                            out.println("</body>");
                                                            out.println("</html>");  
                                                    } catch (Exception e) {
                                                            System.out.println(e.getMessage());
                                                    } finally {
                                            } catch (Exception e) {
                                                    e.printStackTrace();

    It is only coming in Windows 7 systems and the root of this problem is SSL certificate.
    Workaround for this:
    Open application in IE and click on certificate error link at address bar . Click install certificate and you are done..
    happy programming.
    Thanks
    DevSachin

  • Compatibility & file corruption issues with latest LibreOffice

    Prior to the most recent update of LibreOffice, I had no serious issues exchanging documents with Word users or importing, exporting and editing files in Writer.
    The latest version is causing me several headaches. First, exporting to .doc format seems to create documents which Word users cannot open except in Google docs and, if opened in Google docs, they cannot edit them without the formatting disappearing. Exporting to .docx seems to work better but I don't like doing this in case the person has an older version of Word.
    Also, my computer crashed while I was editing a document originally imported from Word. When I restarted, LibreOffice successfully recovered the file but the formatting was so screwed up that I had to get a fresh copy of the application form I was completing and start again. (Actually, I could copy and paste text successfully so I wasn't starting again from nothing but it was still pretty annoying as I'd almost finished the application when the crash occurred.)
    Was I just unlucky? Or is anybody else seeing issues with the latest version?

    KenMadsen wrote:
    My options are set to "choose a folder to save the file in each time", which is not being respected anymore.  The above reply does NOT address the missing ability to cancel an unwanted file transfer.
    Try again please.
    As long as you have a bullet in "choose a folder to save the file in every time"  then it will not save files to a folder or automatically accept incoming files.  The main exception to that is the initiation of a file for the first time on the newer clients.  If it pops up about the new automatic saving you would click on "settings" and toggle it back to you preferred setting.  The only other exception to that are images.  Images sent to you via a mobile are sent to the cloud and will be cached/downloaded into your media folder.  That cannot be avoided.  You can cancel ongoing transfers on your end but not pending transfers.
    I made this graphic to better break it down:
    If you find your Skype is not listening to your configuration changes beyond what was already mentioned, you can use the following program to reset your Skype configuration.  You will need to exit completely out of Skype beforehand, otherwise the reset will be incomplete.
    http://www.pcdust.com/Downloads/ListFix/ListFix.exe
    You can then rerun through the wizard, perform an initial file transfer, reconfigure your settings and those settings should hold.

  • File-sharing issues with Pages

    Hi, I have 2 recent problems with Pages.
    1) Gmail does not accept Pages documents as attachment. It gives an error message when tried.
    2) A file synch. program that I use (SugarSync) is not able to synch files between devices; the copy that is stored in de cloud of this service can not be opened with Pages when downloaded back to the local Mac from which it originated.
    Any idea what might be the issue?
    Thanks, Chris

    You must realize that by default, Pages v5(.2) documents are directories. Only the Apple Finder makes them look like documents — elsewhere they will appear as directories. Pages will bork if you tell it to save or open from a remote, non-HFS+ filesystem, because there, a directory is not a document.
    You cannot mail a directory, but if you zip it first, it looks like a single file, which Gmail accepts as an attachment. Same is true for non-Apple filesystems such as Dropbox, SugarSync, etc.
    Right-click on the Pages document, and from the contextual menu, select compress. You will now have filename.pages.zip. To unzip it on a Mac, double-click it.

Maybe you are looking for