[mtasc] loading an external swf with some classes into a main
Julien De Luca
contact at jide.fr
Mon Jan 30 16:24:23 CET 2006
I wrote an article on this technique on my blog, in french :
Some additionnal notes :
there is no type-checking, that's the difference with Aral's technique.
but thanks to that :
you don't need the import statement finally
don't need exclude list or intrinsic classes
you can eval the class to be called
you can do it all in mtasc
Exaclty what i was looking for !
utiliser des dll avec mtasc sans le typage :
Julien De Luca wrote:
> Hi everybody,
> hi eric ;)
> Okay, this is the 3rd time i write this email :D
> No, no, the 4th :)
> First :
> I just realized i found a much easier way to do the dll stuff :
> no need to open the flash ide ;), all with mtasc.
> 1/ i created a class and compiled it with these params :
> "[path]\myclass.as" -swf "[path]\mydll.swf" -cp
> "[path]\Configuration\Classes" -header 800:600:35
> i did NOT use entry point with Main static class.
> 2/ then i created my main swf, which loads my dll swf file i just
> i used the Main static entry point method this time.
> i import the class i need from the dll.
> After the loading process, i call the constructor of the dll class (or
> anything else...)
> I create an exclude file with the name of the dll class.
> And i compile the main swf with :
> -exclude "[path]\myclass.as"
> It works ! \o/
> Next :
> My problem is that i would like to load such dlls to execute some code
> through them.
> But each dll should have its own code. Do you see my point ?
> Here, i cant load several dlls with different code to reach. I should
> know in advance their class names.
> Do you think there is a way to do this ?
> Thank you again for your help !
> Jidé (Julien).
> erixtekila wrote:
>> Le 26 janv. 06, à 20:30, Julien De Luca a écrit :
>>> Hi everyone !
>>> Here is my question/problem ;) :
>>> I want to load a swf file into another one.
>>> And i want this swf to have its own actionscript classe(s) INSIDE of
>>> And after having loaded it with a beautiful loading process, i want
>>> to be able to call some actions from within this swf i loaded.
>>> If i do this with MTASC, it gets crazy... But if i compile the
>>> external swf with flash ide, and then load it, it works : i can
>>> access the class which is inside this swf.
>> Please, don't get crazy :
| Jidé :: Webdesign, Graphisme, PAO, Communication visuelle |
| Julien De Luca (fait parti de la CAE coopaname) |
| téléphone :: 08 71 77 24 32 |
| site web :: www.jide.fr |
| email :: contact at jide.fr |
| numéro icq :: 7266709 |
More information about the mtasc