Re: [Flashcoders] MTASC and spaces in classpath
Thanks guys, the flashout spaces issue was the problem. Right now I've abandoned eclipse/mtasc anyway, deadlines and all. But now I know how to get it working, I'll look into using it properly after this project, and explore Ant a bit more too. On 2 Apr 2006, at 03:06AM, Chris Allen wrote: Oh yes, the old Flashout on Macintosh problem; sorry that I didn't realize that was what you were referring to. I haven't been using Flashout; I find that Ant just works better for my work flow. Many others seem to agree. Anyway, if you are interested there are some excellent Ant utilities for building Flash from as2lib called as2ant that might be of interest. You can find more information on that here: http://osflash.org/ant -Chris On 4/1/06, Alain Rousseau [EMAIL PROTECTED] wrote: Escaping spaces is fine in the Terminal, but not in Eclipse using Flashout. That's the issue here, how to define the Class Path in Eclipse. I've read a post about it at http://www.pixelmotive.de/blog/archives/2005/06/fame_on_mac.php Basically what it says is to create a shell script that catches the call to mtasc then echoes the full mtasc command line into a seperate shell scripts and returns mtasc's output. Here is a shell script that works for me, you can save it anywhere and give it a name with the .sh extension make it executable like this chmod a+x locmtasc.sh and here is the shell script itself #!/bin/sh echo #!/bin/sh subc.sh echo /usr/local/bin/mtasc $@ subc.sh chmod a+x subc.sh ./subc.sh exit $? note that the shell will create a shell file for you, you don't need to create an empty one yourself. once this is done go in the Eclipse Preferences - Flashout in the Location of mtasc.exe enter the path to your locmtasc.sh : /Users/username/Documents/workspace/locmtasc.sh and voilà you sould be able to make Flashout work with mtasc The thing is that Eclipse adds quotes around the Macromedia Class Path, but it fails to parse correctly through Flashout. With this shell script the problem is solved. Alain Regards, Sam Thorne Interaction Design Web: http://www.native.com/ Tel: +44 (0)207 588 7970 Fax: +44 (0)207 588 7971 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] MTASC and spaces in classpath
Escaping spaces is fine in the Terminal, but not in Eclipse using Flashout. That's the issue here, how to define the Class Path in Eclipse. I've read a post about it at http://www.pixelmotive.de/blog/archives/2005/06/fame_on_mac.php Basically what it says is to create a shell script that catches the call to mtasc then echoes the full mtasc command line into a seperate shell scripts and returns mtasc's output. Here is a shell script that works for me, you can save it anywhere and give it a name with the .sh extension make it executable like this chmod a+x locmtasc.sh and here is the shell script itself #!/bin/sh echo #!/bin/sh subc.sh echo /usr/local/bin/mtasc $@ subc.sh chmod a+x subc.sh ./subc.sh exit $? note that the shell will create a shell file for you, you don't need to create an empty one yourself. once this is done go in the Eclipse Preferences - Flashout in the Location of mtasc.exe enter the path to your locmtasc.sh : /Users/username/Documents/workspace/locmtasc.sh and voilà you sould be able to make Flashout work with mtasc The thing is that Eclipse adds quotes around the Macromedia Class Path, but it fails to parse correctly through Flashout. With this shell script the problem is solved. Alain Chris Allen wrote: Erixtekila is right. you need to escape those spaces. A quick way to get your paths written correctly is to open up the directory that you are targeting in the Finder, then open Terminal. Next drag the folder in the Finder into the Terminal window and you will see how the path should be written there. You can then copy it from the terminal if you wish. It might be overkill, but it's nice to know that you got it right. especially with really long paths. I hope that helps. -Chris On 3/30/06, erixtekila [EMAIL PROTECTED] wrote: Le 30 mars 06, à 16:26, Sam Thorne a écrit : I'm getting the error Class not found Support.Macromedia.Flash when my classpath is /Users/sam/Library/Application Support/Macromedia/Flash 8/en/Configuration/Classes Seems Mtasc doesn't like classpaths which have spaces in them on OS X, it tries to interpret the a directory name (such as Application Support, where the core classes are) as separate classes. Escape it : /Users/sam/Library/Application\ Support/Macromedia/Flash\ 8/en/Configuration/Classes erixtekila http://blog.v-i-a.net/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] MTASC and spaces in classpath
Oh yes, the old Flashout on Macintosh problem; sorry that I didn't realize that was what you were referring to. I haven't been using Flashout; I find that Ant just works better for my work flow. Many others seem to agree. Anyway, if you are interested there are some excellent Ant utilities for building Flash from as2lib called as2ant that might be of interest. You can find more information on that here: http://osflash.org/ant -Chris On 4/1/06, Alain Rousseau [EMAIL PROTECTED] wrote: Escaping spaces is fine in the Terminal, but not in Eclipse using Flashout. That's the issue here, how to define the Class Path in Eclipse. I've read a post about it at http://www.pixelmotive.de/blog/archives/2005/06/fame_on_mac.php Basically what it says is to create a shell script that catches the call to mtasc then echoes the full mtasc command line into a seperate shell scripts and returns mtasc's output. Here is a shell script that works for me, you can save it anywhere and give it a name with the .sh extension make it executable like this chmod a+x locmtasc.sh and here is the shell script itself #!/bin/sh echo #!/bin/sh subc.sh echo /usr/local/bin/mtasc $@ subc.sh chmod a+x subc.sh ./subc.sh exit $? note that the shell will create a shell file for you, you don't need to create an empty one yourself. once this is done go in the Eclipse Preferences - Flashout in the Location of mtasc.exe enter the path to your locmtasc.sh : /Users/username/Documents/workspace/locmtasc.sh and voilà you sould be able to make Flashout work with mtasc The thing is that Eclipse adds quotes around the Macromedia Class Path, but it fails to parse correctly through Flashout. With this shell script the problem is solved. Alain Chris Allen wrote: Erixtekila is right. you need to escape those spaces. A quick way to get your paths written correctly is to open up the directory that you are targeting in the Finder, then open Terminal. Next drag the folder in the Finder into the Terminal window and you will see how the path should be written there. You can then copy it from the terminal if you wish. It might be overkill, but it's nice to know that you got it right. especially with really long paths. I hope that helps. -Chris On 3/30/06, erixtekila [EMAIL PROTECTED] wrote: Le 30 mars 06, à 16:26, Sam Thorne a écrit : I'm getting the error Class not found Support.Macromedia.Flash when my classpath is /Users/sam/Library/Application Support/Macromedia/Flash 8/en/Configuration/Classes Seems Mtasc doesn't like classpaths which have spaces in them on OS X, it tries to interpret the a directory name (such as Application Support, where the core classes are) as separate classes. Escape it : /Users/sam/Library/Application\ Support/Macromedia/Flash\ 8/en/Configuration/Classes erixtekila http://blog.v-i-a.net/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] MTASC and spaces in classpath
Le 30 mars 06, à 16:26, Sam Thorne a écrit : I'm getting the error Class not found Support.Macromedia.Flash when my classpath is /Users/sam/Library/Application Support/Macromedia/Flash 8/en/Configuration/Classes Seems Mtasc doesn't like classpaths which have spaces in them on OS X, it tries to interpret the a directory name (such as Application Support, where the core classes are) as separate classes. Escape it : /Users/sam/Library/Application\ Support/Macromedia/Flash\ 8/en/Configuration/Classes erixtekila http://blog.v-i-a.net/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] MTASC and spaces in classpath
Erixtekila is right. you need to escape those spaces. A quick way to get your paths written correctly is to open up the directory that you are targeting in the Finder, then open Terminal. Next drag the folder in the Finder into the Terminal window and you will see how the path should be written there. You can then copy it from the terminal if you wish. It might be overkill, but it's nice to know that you got it right. especially with really long paths. I hope that helps. -Chris On 3/30/06, erixtekila [EMAIL PROTECTED] wrote: Le 30 mars 06, à 16:26, Sam Thorne a écrit : I'm getting the error Class not found Support.Macromedia.Flash when my classpath is /Users/sam/Library/Application Support/Macromedia/Flash 8/en/Configuration/Classes Seems Mtasc doesn't like classpaths which have spaces in them on OS X, it tries to interpret the a directory name (such as Application Support, where the core classes are) as separate classes. Escape it : /Users/sam/Library/Application\ Support/Macromedia/Flash\ 8/en/Configuration/Classes erixtekila http://blog.v-i-a.net/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] MTASC and spaces in classpath
Hi all, I'm getting the error Class not found Support.Macromedia.Flash when my classpath is /Users/sam/Library/Application Support/Macromedia/Flash 8/en/ Configuration/Classes Seems Mtasc doesn't like classpaths which have spaces in them on OS X, it tries to interpret the a directory name (such as Application Support, where the core classes are) as separate classes. I can't symlink because Eclipse sees a symlink as a file, and I can't use an alias because it isn't recognised as a folder even though I can browse into it. Any ideas? Regards, Sam Thorne Interaction Design Web: http://www.native.com/ Tel: +44 (0)207 588 7970 Fax: +44 (0)207 588 7971 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com