Hi there,
I know this is an actionscript list; yet, I hope that the below helps a
php newbie out there, as for some reason I see this issue a lot in
people's code.
An i/nclude/ in most languages means the code will be brought inline,
and it will throw an error during compilation if the file is not
present; thus, when I first started with php several years back, I
didn't realize that if the server gets too many requests, or the file is
not present for whatever reason, the server will just run the page
without it. I was very lucky to have not followed the many online
tutorials suggesting I use the /include/ preprocessor directive when
creating password protected areas, and instead decided to read the
documentation to ensure I actually understood, at least to some degree,
what I was doing.
Use:
require() - fatal exception if file not available and execution stops
require_once() - same as require; yet, checks the rest of the code
to ensure it has not already been loaded
There are a lot of pages, and password protected areas out there on the
web, that are totally hackable because many people just assume that the
include directive should work the same in php as it does almost
everywhere else.
Take care,
Anthony
P.S. The flash ide actions panel sucks turd particles off a donkey's
nut sack.
whispers wrote:
P.O.S. Actions panel 4 LIFE!!!
:)
-----Original Message-----
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Joel
Stransky
Sent: Friday, March 06, 2009 11:58 AM
To: Flash Coders List
Subject: Re: [Flashcoders] include directive ...
Technically, Yes, it's the exact same thing. include merely allows you use
an external text editor instead of the p.o.s. actions panel.
On Wed, Mar 4, 2009 at 10:27 PM, Paul Andrews <p...@ipauland.com> wrote:
The include directive is just plain text inclusion from an external
source.
Once included it's as though it were inline.
I think that if you are using the timeline and having lots of includes
all over the place to replace all of the inline code, it would be a
nightmare to work out what's going on.
I rarely use the include directive. Better to use classes.
Paul
----- Original Message ----- From: "SJF" <sjf...@gmail.com>
To: <flashcoders@chattyfig.figleaf.com>
Sent: Thursday, March 05, 2009 2:37 AM
Subject: [Flashcoders] include directive ...
Looking for clarity on the include directive in a CS3 FLA file.
Technically, does anyone know if pound-for-pound, having code on a
movieclip's timeline is EXACTLY the same as having it's code in an
external .as file and using the include directive?
Here are more details:
1) The code being externalised contains imports, variable
declarations, numerous functions and runtime code (approx. 150-250
lines of code)
2) The movieclip is dynamic and created on the fly by the
application, putting the movieclip within various other movieclips
deep in the display stack
3) Multiple other movieclips (approx. 30) also contain code with
imports, variable declarations, functions and runtime code
So the question I ask:
Is it technically possible to externalise all code in a CS3 FLA
document by exporting all code from all timelines and using the
include directive?
Are there issues with instantiation of objects/classes or problems
with import paths, etc?
Thoughts?
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
--
--Joel Stransky
stranskydesign.com
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders