Hi Patrick,
Not sure if this help, but I have a project where there's a map (an
MC) fill with regions (MCs too). The regions are Movieclips linked to
Region class. Many symbols to one single class. I use the following to
compile both in MTASC and MMC:
Each region mc has the following params:
Name:regionName
Identifier:regionName
AS2.0 Class:com.carlosrovira.map.Region
Export for Actionscript checked
Export in first frame
The class has the following code:
class com.carlosrovira.map.Region extends MovieClip {
static var SymbolName:String = "Region";
static var SymbolOwner:Function = Region;
static var SymbolLinked = Object.registerClass(SymbolName, SymbolOwner);
...
}
In the view that instantiates the map I declare the following variable
to force MTASC to include the class (MMC doesn't need this):
// --- Declaration to include class in swf
var Region = Region.SymbolName;
Hope this help.
Best,
C.
2005/7/6, Patrick Mineault <[EMAIL PROTECTED]>:
> I'm using both MTASC and the Flash IDE on a large project and the
> problem I'm running into is that we are using several components and
> views that are linked to AS2 classes in the library. These associations
> look like they disappear whenever I compile in MTASC. I've run into this
> issue before and I've worked around it using a static var linker =
> Object.registerClass call. Now the issue is that in this project I have
> several movieclips (around 100 in fact) that are linked to a single AS2
> class (a class that creats button like features but with EventDispatcher
> hooks and such), which means I would need to add about 100 lines of
> static linker vars in the top of my lib.CustomButton class.
>
> Is there any kind of magic setting or something that I can include on
> the main timeline to solve that issue. I'm not even sure the classes are
> included in the final swf as it drops a full 8k when compiled in MTASC
> compared to the IDE.
>
> Patrick Mineault
> www.5etdemi.com
> www.5etdemi.com/blog
> www.amfphp.org
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
--
::| Carlos Rovira
::| http://www.carlosrovira.com
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org