|
List Info
Thread: Trying to compile an existing project under MTASC
|
|
| Trying to compile an existing project
under MTASC |

|
2007-04-11 14:37:37 |
Hi,
I have a large project that I have been building using the
Macromedia
compiler, and I am trying to get it to run using MTASC. I am
using
the ActionScript/MTASC bundle for Textmate on the Mac. I was
able to
work through most of the compilation errors, but I now have
this one
and don't know how to fix it:
source/com/laticrete/InstructionsView.as:16: lines 16-82 :
type error
class not found : mx.core.UIObject
I am compiling with three classpath directives:
- source/ (my code)
- /Applications/Macromedia Flash 8/First
Run/Classes/mx/core/
(this is where UIObject lives
- /Users/dham/Library/Application
Support/Macromedia/Flash 8/
en/Configuration/Classes/com/bjc/ (this is a separate
component library)
I got the Hello World example to work, so I know MTASC is
working. Am
I declaring my classpaths wrong? Help, help!
Thanks for any advive you can offer,
OK
DAH
--
MTASC : no more coffee break while compiling
|
|
| Re: Trying to compile an existing
project under MTASC |

|
2007-04-11 15:45:21 |
I have had the same problems with UI objects, and what
I think it is, is that MTASC can't use certain UI
components, because they are active only if u drag
them into Flash's Library. A work-around this is
noted on the MTASC.org site.
--- David Ham <email davidham.com> wrote:
> Hi,
>
> I have a large project that I have been building
> using the Macromedia
> compiler, and I am trying to get it to run using
> MTASC. I am using
> the ActionScript/MTASC bundle for Textmate on the
> Mac. I was able to
> work through most of the compilation errors, but I
> now have this one
> and don't know how to fix it:
>
> source/com/laticrete/InstructionsView.as:16: lines
> 16-82 : type error
> class not found : mx.core.UIObject
>
> I am compiling with three classpath directives:
>
> - source/ (my code)
> - /Applications/Macromedia Flash 8/First
> Run/Classes/mx/core/
> (this is where UIObject lives
> - /Users/dham/Library/Application
> Support/Macromedia/Flash 8/
> en/Configuration/Classes/com/bjc/ (this is a
> separate component library)
>
> I got the Hello World example to work, so I know
> MTASC is working. Am
> I declaring my classpaths wrong? Help, help!
>
> Thanks for any advive you can offer,
>
> OK
> DAH
>
>
> --
> MTASC : no more coffee break while compiling
>
--
MTASC : no more coffee break while compiling
|
|
| Re: Trying to compile an existing
project under MTASC |

|
2007-04-11 16:09:26 |
|
If you have folder layout:
/blah/classes/a/b/Class.as
which contains a.b.Class
then you need to add /blah/classes to your classpath, and NOT /blah/classes/a/b
(you make this mistake in two of your three classpaths)
-David R
On 4/11/07, David Ham < email davidham.com">email davidham.com> wrote:
Hi,
I have a large project that I have been building using the Macromedia compiler, and I am trying to get it to run using MTASC. I am using the ActionScript/MTASC bundle for Textmate on the Mac. I was able to
work through most of the compilation errors, but I now have this one and don't know how to fix it:
source/com/laticrete/InstructionsView.as:16: lines 16-82 : type error class not found : mx.core.UIObject
I am compiling with three classpath directives:
- source/ (my code) - /Applications/Macromedia Flash 8/First Run/Classes/mx/core/ (this is where UIObject lives - /Users/dham/Library/Application Support/Macromedia/Flash 8/
en/Configuration/Classes/com/bjc/ (this is a separate component library)
I got the Hello World example to work, so I know MTASC is working. Am I declaring my classpaths wrong? Help, help!
Thanks for any advive you can offer,
OK DAH
-- MTASC : no more coffee break while compiling
|
| Re: Trying to compile an existing
project under MTASC |

|
2007-04-16 17:31:33 |
> Please force compilation of this class by adding it to
the commandline.
>
> What does this mean? How do I do it?
You just add it to the command line... take the one you have
right
now, and append the class in question to the end. Like
this:
mtasc -cp... -main Main.as Foo.as Bar.as (and so on)
HTH,
Mark
On 4/16/07, David Ham <email davidham.com> wrote:
> I worked through the various classpath errors and
compiler errors
> (the Macromedia compiler lets you get away with all
kinds of ugly
> stuff, yikes!) but after all of these I got this
error:
>
> Please force compilation of this class by adding it to
the commandline.
>
> What does this mean? How do I do it?
>
> Thanks for any help you can offer. Best regards,
>
> OK
> DAH
>
>
> On Apr 11, 2007, at 4:09 PM, David Rorex wrote:
>
> > If you have folder layout:
> >
> > /blah/classes/a/b/Class.as
> >
> > which contains a.b.Class
> >
> > then you need to add
> > /blah/classes
> > to your classpath, and NOT
> > /blah/classes/a/b
> >
> > (you make this mistake in two of your three
classpaths)
> >
> > -David R
> >
> > On 4/11/07, David Ham <email davidham.com> wrote: Hi,
> >
> > I have a large project that I have been building
using the Macromedia
> > compiler, and I am trying to get it to run using
MTASC. I am using
> > the ActionScript/MTASC bundle for Textmate on the
Mac. I was able to
> > work through most of the compilation errors, but I
now have this one
> > and don't know how to fix it:
> >
> > source/com/laticrete/InstructionsView.as:16: lines
16-82 : type error
> > class not found : mx.core.UIObject
> >
> > I am compiling with three classpath directives:
> >
> > - source/ (my code)
> > - /Applications/Macromedia Flash 8/First
Run/Classes/mx/core/
> > (this is where UIObject lives
> > - /Users/dham/Library/Application
Support/Macromedia/Flash 8/
> > en/Configuration/Classes/com/bjc/ (this is a
separate component
> > library)
> >
> > I got the Hello World example to work, so I know
MTASC is working. Am
> > I declaring my classpaths wrong? Help, help!
> >
> > Thanks for any advive you can offer,
> >
> > OK
> > DAH
> >
> >
> > --
> > MTASC : no more coffee break while compiling
> >
> > --
> > MTASC : no more coffee break while compiling
>
> --
> David Ham
> http://davidham.com
:: email davidham.com
>
>
>
>
> --
> MTASC : no more coffee break while compiling
>
--
MTASC : no more coffee break while compiling
|
|
| Re: Trying to compile an existing
project under MTASC |

|
2007-04-17 09:22:20 |
This is great, thanks! Another thing that was useful was to
use Ant--
here is an article that was very useful in this regard:
http://ubergeek
.tv/article.php?pid=98
The author's articles on Beyond the Valley of the Flash are
good too.
Thanks again everyone!
OK
DAH
On Apr 16, 2007, at 5:31 PM, Mark Winterhalder wrote:
>> Please force compilation of this class by adding it
to the
>> commandline.
>>
>> What does this mean? How do I do it?
>
> You just add it to the command line... take the one you
have right
> now, and append the class in question to the end. Like
this:
>
> mtasc -cp... -main Main.as Foo.as Bar.as (and so on)
>
> HTH,
> Mark
>
>
>
> On 4/16/07, David Ham <email davidham.com> wrote:
>> I worked through the various classpath errors and
compiler errors
>> (the Macromedia compiler lets you get away with all
kinds of ugly
>> stuff, yikes!) but after all of these I got this
error:
>>
>> Please force compilation of this class by adding it
to the
>> commandline.
>>
>> What does this mean? How do I do it?
>>
>> Thanks for any help you can offer. Best regards,
>>
>> OK
>> DAH
>>
>>
>> On Apr 11, 2007, at 4:09 PM, David Rorex wrote:
>>
>> > If you have folder layout:
>> >
>> > /blah/classes/a/b/Class.as
>> >
>> > which contains a.b.Class
>> >
>> > then you need to add
>> > /blah/classes
>> > to your classpath, and NOT
>> > /blah/classes/a/b
>> >
>> > (you make this mistake in two of your three
classpaths)
>> >
>> > -David R
>> >
>> > On 4/11/07, David Ham <email davidham.com> wrote: Hi,
>> >
>> > I have a large project that I have been
building using the
>> Macromedia
>> > compiler, and I am trying to get it to run
using MTASC. I am using
>> > the ActionScript/MTASC bundle for Textmate on
the Mac. I was
>> able to
>> > work through most of the compilation errors,
but I now have this
>> one
>> > and don't know how to fix it:
>> >
>> > source/com/laticrete/InstructionsView.as:16:
lines 16-82 : type
>> error
>> > class not found : mx.core.UIObject
>> >
>> > I am compiling with three classpath
directives:
>> >
>> > - source/ (my code)
>> > - /Applications/Macromedia Flash 8/First
Run/Classes/mx/core/
>> > (this is where UIObject lives
>> > - /Users/dham/Library/Application
Support/Macromedia/Flash
>> 8/
>> > en/Configuration/Classes/com/bjc/ (this is a
separate component
>> > library)
>> >
>> > I got the Hello World example to work, so I
know MTASC is
>> working. Am
>> > I declaring my classpaths wrong? Help, help!
>> >
>> > Thanks for any advive you can offer,
>> >
>> > OK
>> > DAH
>> >
>> >
>> > --
>> > MTASC : no more coffee break while compiling
>> >
>> > --
>> > MTASC : no more coffee break while compiling
>>
>> --
>> David Ham
>> http://davidham.com
:: email davidham.com
>>
>>
>>
>>
>> --
>> MTASC : no more coffee break while compiling
>>
>
> --
> MTASC : no more coffee break while compiling
--
David Ham
http://davidham.com ::
email davidham.com
--
MTASC : no more coffee break while compiling
|
|
[1-5]
|
|