On Mon, Nov 16, 2009 at 2:18 PM, Henrik Andersson <[email protected]>wrote:

> beno - wrote:
>
>> Here is my code to the moment.
>>
>
> Pardon me for being blunt about this, but did you even pay attention when I
> said that functions inside functions are a no no?
>

No, pardon me. I did what you said, but it didn't work, then I tried other
things and forgot <:-}

>
> To finish things off, it is a very bad habit to use the same name for a
> function and a variable, not just because they will get mixed up
> spiritually, but because of the scope issues. Function names doubles as
> instances of the Function class, so yeah, using the same name for a
> variable, class and/or function is a recipe for disaster.
>

Thank you. I will try to remember that.

>
> If you ask me, you should not even have the nested function to begin with,
> all that stuff should go directly in the constructor.
>

Now that would be wonderful, but I haven't figured out how to do that,
because I have to somehow call mcHatAndFace so that I can work with that
asset in the library. Indeed, you have hit on the very root of the problem,
I believe. Please give me an idea how I might call that asset without using
a function.
TIA,
beno
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to