Re: [Flashcoders] [FP8, AS2] Rules of thumb: Coding tips?

2007-07-28 Thread Micky Hulse

eric e. dolecki wrote:

the compiler will point this out for you.


I see now. :)

Thanks Eric, you have been very helpful. I really appreciate it.

Have a great day/night.

Cheers,
Micky

--
Wishlists: http://snipurl.com/1gqpj
   Switch: http://browsehappy.com/
 BCC?: http://snipurl.com/w6f8
   My: http://del.icio.us/mhulse
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [FP8, AS2] Rules of thumb: Coding tips?

2007-07-28 Thread Micky Hulse

Pedro Taranto wrote:
if you want to return diferent types in one function you dont specify 
any return data type


Ah, sounds good to me. I was not sure if it was bad practice to not 
specify a type.


if you wanna use an auxiliary 'object' to use as a reference to another, 
try to use the same data type


Oh, right. That makes sense... Hehe. Type :Video for the video object.

Many many many thanks Pedro, I really appreciate your expert advice.

Have a great day/night.
Cheers,
Micky

--
Wishlists: http://snipurl.com/1gqpj
   Switch: http://browsehappy.com/
 BCC?: http://snipurl.com/w6f8
   My: http://del.icio.us/mhulse
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash Debugger's not up to it.

2007-07-28 Thread John McCormack
 variables A and B. How is the debugger going to populate a tree view of
 the parent object if it does NOT call that getter?

Got it.
However, to display a variable I would have expected the debugger to just
read the memory.

 In my view, it's a self-evidently poor programming practice to write a
 property getter which makes changes to the property.
Agreed.

I am also puzzled as to why some of the variables are not shown, even though
they are within scope. Any thoughts?


Thanks.

John


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Q:Refactoring, private and static variables in AS2

2007-07-28 Thread moveup
Hi
I need a refresher in when to declare Private as well as Static variables when 
extending another class (in AS2).

ie
if you have private variables declared in the Super class, is it necessary to 
(re) declare them in the sub class?

What about static variables?

Are there a 'best practices' to follow when refactoring to eliminate duplicate 
variable declarations?

 


Thanks in advance!


[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

...all improvisation is life in search of a style.
 - Bruce Mau,'LifeStyle'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] TextField Var property missing in CS3

2007-07-28 Thread mitch
I found the var property of the TextField to be very useful. Is there an
equivalent in CS3?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] TextField Var property missing in CS3

2007-07-28 Thread R�kos Attila

There is no direct equivalent of this property in AS3 - but in fact it
is not necessary at all, it was obsolete since Flash 6 in favour of
the TextField class' text property.

  Attila

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:[EMAIL PROTECTED] [EMAIL PROTECTED]
To:  flashcoders@chattyfig.figleaf.com flashcoders@chattyfig.figleaf.com
Date:Saturday, July 28, 2007, 10:01:47 PM
Subject: [Flashcoders] TextField Var property missing in CS3
--===--
I found the var property of the TextField to be very useful. Is there an
equivalent in CS3?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Q:Refactoring, private and static variables in AS2

2007-07-28 Thread Muzak

- Original Message - 
From: [EMAIL PROTECTED]
To: flashcoders flashcoders@chattyfig.figleaf.com
Sent: Saturday, July 28, 2007 9:50 PM
Subject: [Flashcoders] Q:Refactoring, private and static variables in AS2


 Hi
 I need a refresher in when to declare Private as well as Static variables 
 when extending another class (in AS2).

 ie
 if you have private variables declared in the Super class, is it necessary to 
 (re) declare them in the sub class?


no.

 What about static variables?


same thing. 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Q:optimizing a Calendar app

2007-07-28 Thread moveup
Hi
I have a simple Calendar class which creates a new month display when the 
application first loads and each time the user changes the month.

I need to add appointments on specific days for each month.
I have an appointment array, which contains a list of date strings in the 
format 'month/day/year'.

Now to add appointment icons or objects, I iterate thru every day in the 
current month, then for each day, I iterate thru this appointment array to see 
if there is a match to one of these date strings.

It seems to me there must be a less computationally expennsive way to add 
appointments to a calenndar, than the way I've described.

Or am I wrong?


[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

...all improvisation is life in search of a style.
 - Bruce Mau,'LifeStyle'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Q:optimizing a Calendar app

2007-07-28 Thread Steven Sacks

That is a very expensive way to do it.

You should, instead, make a hash and the keys would be the date, and the 
values would be an array of appointments for that date.


events = {};
events[month + / + day + / + year] = [];
events[month + / + day + / + year].push(appointment);

Then each day of the calendar would just do a look up of itself in the hash.

events[calendarDate];

You could also store the key as a new Date().getTime() instead of a 
string with month/day/year.  It's entirely up to you.


HTH!

Steven Sacks
Flash Maestro
Los Angeles, CA
--
blog: http://www.stevensacks.net
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Q:optimizing a Calendar app

2007-07-28 Thread David Ngo
Using getTime() isn't ideal since that's creating a timestamp based on
milliseconds, which would be unique. The first option is probably the safer
bet to be able to index things by a specific date (as opposed to a time). If
you're using AS3, then I'd say use a Dictionary object (same as a hash,
except you're not using a generic Object).


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks
Sent: Sunday, July 29, 2007 12:42 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Q:optimizing a Calendar app

That is a very expensive way to do it.

You should, instead, make a hash and the keys would be the date, and the 
values would be an array of appointments for that date.

events = {};
events[month + / + day + / + year] = [];
events[month + / + day + / + year].push(appointment);

Then each day of the calendar would just do a look up of itself in the hash.

events[calendarDate];

You could also store the key as a new Date().getTime() instead of a 
string with month/day/year.  It's entirely up to you.

HTH!

Steven Sacks
Flash Maestro
Los Angeles, CA
--
blog: http://www.stevensacks.net
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com