Henrik,
I was careless.
The code and properties of a class, such as Math and Math.PI, are
accessible and you can pass objects, such as the number 0.1 into the
class methods, as in Math.sin(0.1), and so there is memory associated
with them. It's worth noting that a static property for a class belongs
to all instances whereas other properties exist - one copy for each
object. I should have said that there was no separate memory existing
solely for them. Rather, it exists for their instances.
I am not sure about your objection about the stage. I never mentioned
time lines, I assumed Susan was adding to the stage at the start of her
program.
Can you have a main SWF without a timeline (single frame)?
Can you have a program without a stage?
What is more fundamental to a SWF, a stage or timeline?
Maybe I am missing something.
John
Henrik Andersson wrote:
John McCormack wrote:
A class is a template - usually written with a capital letter at the
start.
A class doesn't exist in the memory of the program.
If you use
addChild(my_obj);
you add it to the stage (this is the main program's instance).
There are two things here that I have to disagree with. To begin with,
classes does too exist in memory. They are real objects and they have
properties as well.
And more importantly, your explanation about the stage is not even
remotely true. The stage is not the same as the main timeline. You
also seem to imply that no matter where someone calls addChild, it
will add to the main timeline. Now, I am fairly sure that this was not
your intention, but you really need to be more clear about these things.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders