Is it possible to copy a swf to a new location and still use debug

Hi,
I'm developing a SWF using Flex. When I generate my SWF file I'd like to copy it to a new location (a folder under my website root folder) so that it runs in my local version of a website I'm working on.
Before when working with a Flash movie, using Flash Develop I was able to set up a batch file to copy the generate file to the SWF folder under my website, is it possible to do this now in Flex builder and still be able to use the Flex step through debugger?
Thanks
Stephen

Just point your debug settings to that swf file
in flex Builder > Run > Debug > Other (choose the right project) -- and change the debug path
that should work I think

Similar Messages

  • In PC I have changed the default app location from default to other and copied the previous content to new location and changed the Default location in preference. Now in iTunes, my previous apps are not visible. Is there any solution to this?

    In PC I have changed the default app location from (c:/users/username/My Music/iTunes) to other (d:iTunes)  and copied the previous content to new location and changed the Default location in Edit preference. Now in iTunes, my previous apps are not visible. Is there any solution to this?

    wjosten - thanks very much for the detailed instructions. I'll try this as soon as I get my replacement and it looks like you'll probably end up getting the green tick

  • Is it possible to attach a bluetooth speaker to my mac and still use the mac's speakers at the same time?

    Is it possible to attach a bluetooth speaker to my mac and still use the mac's speakers at the same time, so I can have music in two rooms (from the mac in the lounge and the  bluetooth speaker in the kitchen? It seems to be a choice of either/or as when I pair my speaker the sound stops from the mac's speakers. 

    No.

  • I have bought the new Iphone5. The old phone "Iphone4" has the same account as my daughters iphone 4. Now I would like to have separat accounts, is that possible? Can I make a new account and still make a copy of my iphone 4 to my new iphone 5?

    I have bought the new Iphone5. The old phone "Iphone4" has the same account as my daughters iphone 4. Now I would like to have separat accounts, is that possible? Can I make a new account and still make a copy of my iphone 4 to my new iphone 5?

    You need to plan. Check this tip:
    iOS 5 & iCloud Tips: Sharing an Apple ID With Your Family

  • Is it possible to reinstall Mac OS X Lion on MacBook and then use Time Machine to restore to the previous backup I made before reinstalling Mac OS X Lion?

    Is it possible to reinstall Mac OS X Lion on MacBook and then use Time Machine to restore to the previous backup I made before reinstalling Mac OS X Lion?

    My MacBook was not normally booting up. It would turn on, make the Apple startup noise, and the bottom loading bar would progress just a little bit, then my MacBook would shut down. I tried rebooting it many times and the same thing would happen, it would just shut down. Then, I read that I can reset the PRAM (by holding Option+Command+P+R after the Apple startup noise comes). That worked, but now I get a screen that asks me to choose one of the 4 options (see:  http://images.macworld.com/images/article/2012/07/lionrecoveryutilities-289404.j pg). I choose Restore From Time Machine Backup, but it progresses to 17.6% and gets stuck there forever. I tried doing it again, and it got stuck at 17.6% again. That is why I am asking if I should just reinstall Lion, then restore a previous backup on the fresh new Lion?

  • Javascript: copy an object to a new layer and tracing it

    Hello everybody:
    I'm using Illustrator CS5 on Mac. I need to copy an objecto to a new layer and tracing it. I'm trying to execute the script above. There is no problem with the copy to a new layer, but Illustrator returns the error "newItem.trace is not a function". Sorry because this is my first script and i'm lost.
    Thank you in advance.
        var myDoc = app.activeDocument;
        var sel = myDoc.selection[0];
      if ( myDoc.selection.length > 0 ) {
        var newLayer = myDoc.layers.add();
        var newItem = sel.duplicate( newLayer, ElementPlacement.PLACEATEND );
        var myTrace = newitem.trace();
        var myOpts = myTrace.tracing.tracingOptions;
        myOpts.tracingModeType = 'TRACINGMODEBLACKANDWHITE';
        app.redraw();
        myTrace.tracing.expandTracing();

    Hi Jose, if your selection is other than PlacedItems or RasterItems, you have to rasterize it first.

  • In pages,how do I copy an image to a new location by click & drag?

    in pages,how do I copy an image to a new location by click & drag?

    To MOVE an image to a new location, Click and Drag the image.
    To move a COPY of the image to a new location, leaving the original in place, pres and hold the Option key as you Click and Drag the image.
    Regards,
    Barry

  • AppleScript: copy a file to a new location, changing its name

    I want to copy a selected file to a new location and change its name, both location and name adjustable by the user. It would seem natural to me (a neophyte) to use the Duplicate and Choose File Name commands to do this, so this is the module I came up with:
    tell application "Finder"
              set myFile to the selection
              set textsAlias to alias "Campidoglio:Users:jeffreyjdean:Dropbox:Tinctoris:Editing Software:TextToJS:texts:"
              set fileForConversion to choose file name default name "shortname.txt" default location textsAlias
              try
      duplicate document file myFile to fileForConversion with replacing
              on error
                        display dialog "Error: Unable to save file."
              end try
    end tell
    This doesn't work. The error dialog comes up and this is the result report:
    tell application "Finder"
      get selection
      --> {document file "12 De inventione et usu musice.txt" of folder "Edited texts" of folder "Desktop" of folder "jeffreyjdean" of folder "Users" of startup disk}
      choose file name default name "shortname.txt" default location alias "Campidoglio:Users:jeffreyjdean:Dropbox:Tinctoris:Editing Software:TextToJS:texts:"
      --> file "Campidoglio:Users:jeffreyjdean:Dropbox:Tinctoris:Editing Software:TextToJS:texts:shortname.txt"
      -- 'core'\'clon'{ 'insh':'furl'("file://localhost/Users/jeffreyjdean/Dropbox/Tinctoris/Editing%20 Software/TextToJS/texts/shortname.txt"), 'alrp':'true'("true"), '----':'obj '{ 'form':'indx', 'want':'docf', 'seld':[ 'obj '{ 'form':'name', 'want':'docf', 'seld':'utxt'("12 De inventione et usu musice.txt"), 'from':'obj '{ 'form':'name', 'want':'cfol', 'seld':'utxt'("Edited texts"), 'from':'obj '{ 'form':'name', 'want':'cfol', 'seld':'utxt'("Desktop"), 'from':'obj '{ 'form':'name', 'want':'cfol', 's…
      --> error number -1700 from {document file "12 De inventione et usu musice.txt" of folder "Edited texts" of folder "Desktop" of folder "jeffreyjdean" of folder "Users" of startup disk} to integer
      display dialog "Error: Unable to save file."
      --> {button returned:"OK"}
    end tell
    Result:
    {button returned:"OK"}
    Why is it telling me it can't duplicate a file to an integer? According to the AS Language Guide, the result of Choose File Name is "The selected location, as a file." How does this become an integer in my script?
    That may be a side show. What I really want to work out is how to achieve the aim stated at the beginning: take a selected file (that part is working OK) and duplicate it to an arbitrary location with an arbitrary new name, decided by the user. What's the best way to go about this?
    TIA,
    Jeff
    Message was edited by: Jeffrey Dean

    I think you're misinterpreting the error message.
    It's not complaining about your 'Choose File Name', per se.
    There are two problems with your script.
    First, you:
              set myFile to the selection
    As far as the Finder is concerned, 'selection' is a list. It's always a list, even if only one item is selected - heck, it's still a list if no files are selected... just an empty list.
    So that's the first thing the script is complaining about - you are using a list that you're trying to coerce to a file. Can't happen.
    You have a couple of options here, depending on what you want to do.
    You can tell the Finder to duplicate a list - it will simply duplicate all the files in the list. It has no problem with that, although you're going to run into problems when you try to set the file name(s). This highlights one of the design flaws with your script - how do you know the user only has one thing selected? At the very least you should check how many items are selected and react accordingly.
    The other option is to iterate through the list, duplicating each file in turn. Again, it's not clear what you want/expect the outcome to be here - since you include 'with replacing', you'd likely end up with one file (the last one in the list) as being the named file and all other duplicates lost.
    The third option is to expect there to be one item selected, and just act upon the first one - thereby ignoring multiple selections, although it's undefined as to which item is 'first' in the list.
    Your call.
    Once you get over the issue of identifying what you want to duplicate, the second issue with your script is how you're calling duplicate. You cannot duplicate one file to another file name. The duplicate command expects (demands?) a directory as the 'to' parameter, not a file name.
    In other words, you can duplicate a file to a new directory. You cannot duplicate it to a new file name - at least not in one step. In order to do that you need to duplicate the file, then change its name (or use a shell script to do it 'under the hood').
    This is complicated by the fact that it's the rename that requires you to check for duplicates, which you have to do manually.
    So given the above, and assuming you expect/want one item to be selected, your script should look more like:
    tell application "Finder"
              set myFile to item 1 of (get selection) -- ignore multiple selections
              set textsAlias to alias "Campidoglio:Users:jeffreyjdean:Dropbox:Tinctoris:Editing Software:TextToJS:texts:"
              set fileForConversion to choose file name default name "shortname.txt" default location textsAlias
              set fDir to do shell script "/usr/bin/dirname " & POSIX path of fileForConversion
              set fName to do shell script "/usr/bin/basename " & POSIX path of fileForConversion
              try
                        set newFile to duplicate myFile to POSIX file fDir with replacing
                        if (exists file fName of folder fDir) then
      delete file fName of folder fDir
                        end if
                        set name of newFile to fName
              on error
                        display dialog "Error: Unable to save file."
              end try
    end tell
    Incidentally, this is something that could be much more easily done with a shell command, since the shell isn't as sensitive about file paths and data types.

  • Is it possible to buy an iphone 6 in the US and to use it in France?

    is it possible to buy an iphone 6 in the US and to use it in France?

    JP Ellery wrote:
    Hi, Chris.
    I did some research and found that your answers are not completely accurate.
    The T-mobile contract-free iPhone is already being sold, but it will take 7-10 business days to ship. And, as confirmed by Apple Specialists and also by people who have already bought it, it is factory unlocked.
    Yes, there is a contract free T-Mobile phone, but it is not "the" unlocked phone which Apple will begin to sell usually 2 months or so from the release date. So my answer to that question is accurate. I specifically identified the T-Mobile phone, and a search of the forum would yield some responses identifying its inability to work in some locations. And again, it has to be the T-Mobile phone sold at the Apple store, not T-Mobile.
    JP Ellery wrote:
    Hi, Chris.
    I did some research and found that your answers are not completely accurate.
    Regarding French LTE bands, they use 800, 1800 and 2600MHz, all of those supported by the iPhone 6.
    While that statement is accurate, see Lawrence's response regarding how it works.
    JP Ellery wrote:
    Hi, Chris.
    I did some research and found that your answers are not completely accurate.
    And finally, about the warranty, that is also something that should be checked country by country. Although Apple says its warranty won't cover products purchased abroad, some countries' laws require manufacturers to provided services under warranty to phones no matter where they were purchased. For example, since Apple has a branch in Brazil, justice here has repeatedly ruled in favor of customers  who needed service on iPhones purchased in other countries.
    While that may be an example, the overall warranty statement by Apple is that warrant is specific to the country of purchase for the reasons that Lawrence states. Certain devices cannot be found in certain countries. Should I travel to Brazil and have a problem with my phone, they would have a very difficult time replacing a locked AT&T device. They would not have that stock.

  • I copied my library to my new computer and I have some songs with greek characters and when I click them to play they change into something which is not readable. I have delete them and copy them again and also delete and re-download itunes

    I copied my library to my new computer and I have some songs with greek characters and when I click them to play they change into something which is not readable. I have delete them and copy them again and also delete and re-download itunes.

    im so happy I have a iTunes Card Code absolutely free! I got it at http://linkbitty.com/freeitunes2014

  • Copy a .swf file from server side to client using signed applet

    Hello All,
    I already have my applet signed and its working pretty well. However I want to know how can I import a .swf file into clients machine. The .swf file initially is on server side, my applet checks whether this .swf file exists already on client machine. If not it copies it to his machine.
    I know how to chk if the file already exits on client machine but I am not sure how to copy this .swf file to his machine if its missing.
    May be I need to set some input buffers from server side and then copy them to his machine.
    Can some one throw some light on this issue ??

    Hello to all Java Code Masters out thr,
    I am trying to copy a .swf file from server side to client side, however I am unsuccessful in writing the correct data. By correct data I mean that , the data does gets saved on the client side in the .swf file, and the size of the .swf file on client side is as expected, but some how I don't know why the data is not the same as expected.
    I tried opening up both the swf file, one which is on server side and the other which is on client side. And both looked different in the notepad.
    When I opens up the client side .swf file on browser it shows nothing while the .swf file on server side worked fine.
    Here is a snap shot of the two .swf files when opened in notepad:
    clientside.swf
    坃ࡓ죃鱸뷤瀉�ᡚ穸s歒斷뛉쭬ⶲ뉯緤░뉋쭬틲��毳띵뺤畮祮୹釯烉쉍‼➀Ƿℵ㼤ꦅ㼌⡉⁈ș㖩䈼ꦓɊጵꨘ妆ၸ쇠鳳ﯯ龜괯䪅�쿾칿칷컹緶履殖㋿罣쯻杬�懨�E�翂䶙幷鿠︡拡ﬦ댨꾖政ᯋὣꯤ糥䧩缿䨗捫嶺깼瘶羋⯞勹쪾癞ঞ頁韧୘롻ⱖ撯貊攗閩㫙↳萰Ⳁ⼈쳂荡᧰ﻶ顠꓈鸎싔㿄㰧柂䪄러䂀좹㏠ꕊ㌏힟䘜㦴⌙⍈㽾ꙴ㿯렑㽔serverside.swf
    CWS�� x���     p��ZxzS�Rk�e��l��-o��}�%K�l�������]��ku���nu��nyy���pM�< �'�5!$����I
    (H �
    5<B
    ��J5��Yx��������/����J������w����}���
    k�2c��lg���a��\�%��serverside.swf is what I expect to be saved, but clientside.swf is what i get.
    Below is a code snippet which I am trying :
      public void writeswftoclient(String swfcontent) {
        String userHome = System.getProperty("user.home" );
        String ImoracleDirectory = userHome + "\\MyFolder";
        File fdirectory = new File(ImoracleDirectory);
        if(!fdirectory.isDirectory()) {
          fdirectory.mkdir();
        String playlist = ImoracleDirectory + "\\clientside.swf";
        File fplaylist = new File(playlist);
        try {
          Writer output = null;
          output = new BufferedWriter(new FileWriter(fplaylist,true));
          *System.out.println(swfcontent);*
          *output.write(swfcontent);*
          output.close();
        catch (Exception e) {
          System.out.println("Cannot create or write to the playlist");
      }In above code I am trying to write the string swfcontent, which contains the data shown above in serverside.swf, to clientside.swf.
    Interesting thing is that I am doing System.out.println(swfcontent); just before writing the data to clientside.swf using output.write(swfcontent);. And System.out.println does print the write data on the java console. However I dont know out of what reason the data doesnt get written correctly on the client's computer.
    Kindly help me in this plzzzzzzzzzz.

  • A script for copying smilar files to a new location

    Hi,
    i newbies to scripting. My challenge is that I want a script to only copy files with names "similar" and not "exactly the same" as the filenames in the text file.
    For example some files have 10 letters file name like "ABC01FGH01.tif".  I have to copy file where starting letter "ABC" and middle letter "FGH" of file name are fixed, but other letters are changed.
    The script sees a file name like "ABC**FGH**.tif", it should search the source location and copy the files having filenames with at least this characters e.g. "ABC02FGH02.tif", "ABC03FGH04.tif" should be copied since it has
    contains "ABC**FGH**.tif".
    Please help.

    Learn how to use wildcards in file names.  '*' is for any number of characters and'?' is for one character.
    COPY ABC??DE???.?x? c:\target
    Start by using DIR
    DIR ABC??DEF???JK.?x?
    ¯\_(ツ)_/¯

  • Is it possible to make an  animated drop down menu  and still use  the menu widget?

    Hi- I am trying to create a menu bar that is hidden with just a tab exposed  to indicate that there is a menu  there. Upon  rollover,  the full menu bar slides down and reveals the menu items.  I can't find a way to make it smoothly  slide down so I settled for the Photoshop button and just moved the button position in Photoshop to fake it.    The problem is  now I need to find a way to still use the menu widget along with this.  if that can't be done,  can I use the Photoshop button and populate the menu there and abandon the menu widget?
    Someone suggested using  Edge Animate ( why the hell is this a separate  software from Muse?)  to make the animation.  If that's a possibility,  can the menu widget be used with the Edge file that's imported?  please help me get to where I need to go  however it needs to happen!  Thanks in  advance.
    Here's a link to a screenshot of my menu: http://www.groovindj.com/menu.jpg
    Here's a site that  does  pretty much what I'm looking to do... www.bagigia.com

    Ok, thanks! I have another way to do what I'm trying to do, I just thought it might be better to do it this way. Obviously I was wrong!
    Thanks again!

  • Possible to rebuild iPhoto Library in a new location?

    I have managed (between multiple updates of iPhoto over the years) to wind up with a lot of duplicate photos in my iPhoto Library folder. What I'd like to do is have iPhoto rebuild it's library in a new location, so as to eliminate anything in that folder than iPhoto's not using. I'm guessing I have at least 1GB of duplicates (not counting the Modified folder).
    For example, I have 2000 - 2005 folders at both the top level of the iPhoto Library, as well as in the Originals and Modified folders.
    Any way to do this?
    PowerBook 17"   Mac OS X (10.4.5)  

    Are the photos is those year/month/day folder duplicates of some already in the library? If so then just remove them to the desktop and launch iPhoto. (Make a backup copy of your iPhoto Library folder beforehand just in case).
    If those files are not in the library then try rebuilding the library, launch iPhoto with the Command+Option keys depressed and follow the instructions to rebuild the library, and select the option to recover orphaned files. See if that won't clean up those rogue folders. But, if the photos in those folders are truly duplicates of those in the library, you can trash those folders. They are like our appendix, no longer needed.
    The answer to your previous answer was no. Sorry I wasn't more specific. Rebuilds are done within the current iPhoto Library folder.

  • Can't copy write-protected folder to new location

    After doing a clean-install of Snow Leopard, and restoring home directory from Time Machine, I am unable to use the Finder to copy certain write-protected folders to a new location. Folder and all contents are owned by me, and using the Terminal to *cp -r* the folder and its contents works just fine. Trying to Command-C and Command-V the folder to the Desktop, say, or to click-drag or option-click-drag the folder itself cause a grayed-out version of the folder to appear briefly on the Desktop, and then disappear with no dialog box, indicated error, or entry in the log files.
    Interestingly, creating a new folder, changing it to read-only, and moving it with the Finder IS successful. This behavior only seems to be affecting files that were restored using Time Machine.
    A screencapture of this behavior is at http://www.crashwhite.com/tmp/finder_bug.mov
    Any ideas? I'm mystified!
    Thanks...

    Hi, V.K, and thanks for checking in. To respond to your questions:
    • chmodding to 755 or anything else that gives me write permission allows the move or copy to occur as expected.
    • chmodding to 444 is a means of archiving the state of a folder and its contents. I do this to avoid corrupting a year's worth of documents. In the past (w/ Tiger, Leopard, etc.), I've been able to copy an "archived" directory into the new writeable directory with no difficulty.
    • In Terminal:
    +$ ls -ladeO Documents/arc/edu/poly/poly\ 08-09/wasc/+
    *dr-xr-xr-x 3 rwhite rwhite - 102 Oct 11 11:16 Documents/arc/edu/poly/poly 08-09/wasc/*
    +$ ls -ladeO Desktop+
    *drwx------+ 15 rwhite rwhite - 510 Oct 11 13:19 Desktop*
    *0: group:everyone deny delete*
    I am unfamiliar with ACL--hadn't actually ever heard of it until now--so I'm going to start digging about a bit. It would appear that the + at the end of the Desktop listing indicates that there is an ACL that is having some effect here.
    Re: my installation, I began with a standard migration, but that process left some cruft in my system that was slowing the system (lots of log errors from old stuff that was no longer installed), so I did a clean install: wiped drive completely, installed new from Snow Leopard, and did a Restore of user directory from Time Machine. I believe that used Migration Assistant to migrate from TM, but it may have been that I simply did a Restore from TM.
    Off to go research ACL a little more. Thanks for the tip, and any additional advice you might have!
    Cheers,
    Richard

Maybe you are looking for