Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: [flasher] include
From: Helen Triolo
Date: Mon, 26 Mar 2001 22:28:37 -0000

Yes, #include works like a compiler directive in any programming
language -- only gets included when the movie is compiled (published).
It's useful though if you have a library of common routines that you
want to save in external files -- yes, you have to republish the
movie(s) to include them, but you only have to change the code in one
place and you can give the text files logical names to indicate what
they are. It would be nice to generate code on the fly, but I imagine
that would make the player a whole lot bigger than it currently is.

Regards,
Helen
-------------------------------------------------------------------
1240 Flash Answers from 424 people: http://i-technica.com/flashlist

josh on wrote:
>
> I just realised that #include only occurs on the publish, test and export, I
> thought it occurred everytime the movie loaded, lame. I was hoping to use
> that a lot. It seemed like a really useful way of making a modular flash
> file that could be updated dynamically. I wanted to make php files that
> produced actionscript rather than namevalue pairs or xml, it just seemed
> more direct!
>
> oh well, just thought I'd share my disappointment. Anyone know the logic
> behind that?
>
> It doesn't seem very useful to me, even for procuction, because you have to
> re-export all your movies when you update the script to be included...
>
> josh on



[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]