PDA

View Full Version : #include: to use or not to use...



rayacosta
May 25th, 2005, 10:00 PM
case study:
when i discovered php and asp includes to use in my sites as navigation elements they worked perfectly. so, when macromedia introduces the use of AS files as includes in order to centralize our code it was cool... but

it wasn´t really usefull because if i modify my AS file, saved and test my movie it doesn´t work properly. i discover by accident that i must to compile the movie again in order to make my changes work...

so... what is the point of that? what i did wrong?

when i edit a php or asp include all the site is up dated at once. in flash i have to update 2 files... not very usefull. if i must compile my movie again i prefer to put all my code in the movie and rather to use a "external file".

any toughts?

Thanks.

Ray.

matthewjumps
May 26th, 2005, 01:45 AM
If thats really how it is, its not as cool as I thought it was...but then again I guess its like a C++ IDE...if you change something in your #include files you have to recompile... :battery:

glkngs
May 26th, 2005, 02:22 AM
That's right, you have to re-compile your movie. But don't discard the include function just yet.
You can use it as library of functions.
You can have 2 fla's share the same code - only have to edit it once
...

i'm sure there are lots of other great ways to use it :)