[mtasc] Add a swf file to another swf file
Guillaume Démurgé
guildem at hotmail.com
Sat Dec 17 10:22:47 CET 2005
Thanks for your answer. I know what is a shared library, and infortunatly
this is not a good solution for my project, because if i do that, all the
project must be used when i will add a new page, and the final file (i think
it will contains more than 100 pages) will have a big library and i will
have a 20-30Mb file !!!
That i want is to have a loader (it will have a library with pictures for
the buttons, and some another things) and display a loading animation when
he loads each page... and each page wil be a 200-300kb file.
I have that solution : do that with xml files witch contains links to the
pictures and information of the placement and the texte on the page... but
for the fonts ? they must be in the library and can't be used otherwise ?
When i did my tests i saw that it work when i load the file from the _root.
but in this case, it delete the loader to replace it by the new file (and
replace the library) isn't it ?
If you have another ideas for my project... don't hesitate !
Thanks for your help all !
Guillaume
>From: erixtekila <erixtekila at gmail.com>
>Reply-To: MotionTwin ActionScript2 Compiler List
><mtasc at lists.motion-twin.com>
>To: MotionTwin ActionScript2 Compiler List <mtasc at lists.motion-twin.com>
>Subject: Re: [mtasc] Add a swf file to another swf file
>Date: Sat, 17 Dec 2005 00:35:55 +0100
>
>The only solution you get, is shared lib.
>A shared lib is an external swf whom the loader knows his published url on
>the web.
>
>For ex :
>shell.swf is the loader swf.
>shared.swf is the future lib that will share its content to shell.swf
>But shell.swf has to reference his url on te webserver in order to use it
>as it was inside him (refer to Ralph previous post)
>
>To get shared lib enabled without any hassle, you can use swfmill, which is
>far the best solution ever.
>Here is the simple vocabulary to enable this feature that is very
>interesting when using Ant script to compile.
><import file="library/library.swf" url="http://foo.com/library.swf"/>
>
>Please refer to this usefull document to get an overview of swfmill siple
>vocabulary :
>http://iterative.org/swfmill/doc/using-swfmill.html
>http://osflash.org/doku.php?id=swfmill
>
>HTH
>
>Le 16 déc. 05, à 23:14, Ralf Bokelberg a écrit :
>
>>It sounds like you are trying to attach items from a different swf?
>>That's not possible in flash, a swf can only use it's own library.
>>r.
>>
>>Guillaume Démurgé wrote:
>>>Hi all,
>>>I asked you something, but i have no answers, so i think it's my fault
>>>and i will rephrase my question :
>>>I have one file swf created with mtasc ans swfmill, witch contain one
>>>font and some pictures. I wrote a main function to be able to open the
>>>file and it works fine.
>>>The problem is here : how can i do to create a swf file (with mtasc too)
>>>witch open the other file in a MovieClip ? but not with swfmill. The as
>>>files i tried to create load the swf file but not the pictures and fonts.
>>>Can you send me an example of code witch do that please ?
>>>Thanks a lot for your help, it's very important !
>>>If you don't understand what i want to do, write me to
>>>guildem at hotmail.com and i will send you my files. And sorry for my
>>>english i'm french.
>>>Guillaume
>>>--
>>>MTASC : no more coffee break while compiling
>>
>>--
>>MTASC : no more coffee break while compiling
>>
>>
>-----------
>erixtekila
>http://blog.v-i-a.net/
>
>
>--
>MTASC : no more coffee break while compiling
More information about the mtasc
mailing list