Hi list...
I'm trying to figure out what I'm missing in trying to instance a class
via composition:
I have 2 external classes: questions and puzzle.
class questions {
public var qa:Object = new Object();
function questions() {
qa[0] = new Object();
Learning Technology Solutions
>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Mendelsohn, Michael
>>Sent: Friday, June 16, 2006 4:40 PM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders]
ology Solutions
>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Merrill, Jason
>>Sent: Friday, June 16, 2006 4:48 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Composition problems
&g
Thanks Jason. I figured it out. I was getting tripped up by the fact
that how I was doing it was only returning functions, not properties.
In my fixed puzzle class:
private function defineQuestions():Void {
// create the question and answer data object...
[EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Mendelsohn, Michael
>>Sent: Friday, June 16, 2006 4:56 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Composition problems
>>
>>Thanks Jason. I figured it out. I was ge
> Another things, a lot of people also capitalize class names,
> but that's personal preference. And if you aren't already,
> would recommend you organize your classes into packages -
> will get real messy real quick if you don't.
And if you do create packages as Jason proposed..
My personal
6 matches
Mail list logo