[mtasc] attachMovie(), object orientation and other newbie questions

Daniel Wabyick dwabyick at fluid.com
Sat Mar 19 19:18:06 CET 2005


Hi Telmo,

There is a fairly well-known trick of using the __Packages movieclip 
namespace to attach movieclips classes that do not have symbols. The 
only trick with mtasc is to include the -separate directive so that they 
are kept in separate clips. Peter Joel has a good summary of this on his 
blog. If you search for __Packages and Flash you can find out more.

<http://www.peterjoel.com/blog/index.php?archive=2004_01_01_archive.xml&showComments=107550841406346131>

Best,
-Daniel



Telmo Menezes wrote:

> Thanks, that's a solution!
> I was hoping to ditch FlashMX altogether... Oh well.
> Anyone knows if mtasc will support library and linkage in the near 
> future? Or if any other open source tool can be used for that purpose?
>
> Regards,
> Telmo Menezes.
>
> Chris Bare wrote:
>
>>>1. How can I attachMovie with mtasc? attachMovie fetches a symbol from 
>>>the library but were's the library now? I tried swftools and swfcombine 
>>>but to no avail... I know I can use loadMovie but I would rather have 
>>>only one .swf file for the all film.
>>>    
>>>
>>
>>I have some code very similar to yours. I have created the original .swf file
>>in FlashMX. I have nothing on the stage, but I have my graphic elements in the
>>library with the linkage for as2 set appropriately.
>>When you compile with mtasc, if you do not use the -header option, it will
>>just replace the code in your existing .swf file.
>>
>>If you want to use flash MX components, you have to put them in the library
>>the same way, even if you are creating them via calls in your code.
>>
>>Hope that helps.
>>  
>>
>
>------------------------------------------------------------------------
>
>--
>MTASC : no more coffee break while compiling
>




More information about the mtasc mailing list