RE: [Flashcoders] My rights - site not paid for.

2008-12-09 Thread Eamonn Faherty
I wasn't referring to the deletion of the site.  I was talking about the
possible unauthorized access of the ftp site.

Thanks for the link.  I will be sure to keep ahold of that incase I get
into a similar problem.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pete
Hotchkiss
Sent: 08 December 2008 18:58
To: Flash Coders List
Subject: RE: [Flashcoders] My rights - site not paid for.

Eamons point about the computer misuse act is not strictly true - you
own the site unless a contract exists explicitly licensing full
ownership of everything up payment completion.

My advise however is to leave the site up and get Thomas Higgins on the
case. He's BRILLIANT and has a ni on 100% record for recovering debts.
He's completely ruthless and gets results

http://www.thomas-higgins.co.uk/

Trust me - use these guys and you'll have you money before the month is
out

 


 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Piers
Cowburn
Sent: 08 December 2008 11:51
To: Flash Coders List
Subject: Re: [Flashcoders] My rights - site not paid for.

I've been in this situation before and done the same as Paul, it ended
up going to a small claims court and the client didn't even turn up for
the hearing. I got paid and the costs were covered by the client.

Piers


On 8 Dec 2008, at 11:38, Paul Steven wrote:

 Hi Stephen

 I had a similar situation about a year ago and in this case I had no 
 contract but just emails from the client agreeing on the cost for the 
 work.

 Anyway I simply made a claim via
 https://www.moneyclaim.gov.uk/csmco2/index.jsp and I won my case. It 
 was really simple and will cost you nothing as you get all your costs 
 paid for by the customer if you win.

 I would be reluctant to take the site down as doing so will then mean 
 the customer has nothing to pay for. By leaving the site up and 
 running, you have fulfilled your obligations.

 Anyway good luck!!

 Paul




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Stephen Matthews
 Sent: 08 December 2008 11:03
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] My rights - site not paid for.

 What are my rights ( in the UK ) for taking down a site which has not 
 been paid for?

 The owner of the company is happy with his site, but is not coughing 
 up.

 I still have FTP access.

 He says the site took too long, and makes lots of excuses for not 
 paying - which do not tally.
 He changed the site drastically at least three times - I think it took

 too long too, due to this.
 He is updating the news section and other sections whenever he has new

 material.

 I would be interested in your thoughts.

 This person won an award for being a top business man this year - is 
 this what you have to do to be a top business man - screw people?

 I am not the kind of person to take this action really, but I may 
 consider it.

 Thanks

 S



 ___
 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

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__

___
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


Re: [Flashcoders] Soma Protest

2008-12-09 Thread allandt bik-elliott (thefieldcomic.com)
ta

On Tue, Dec 9, 2008 at 10:27 AM, Romuald Quantin 
[EMAIL PROTECTED] wrote:

 yes, SVN are there:

 http://www.soundstep.com/blog/downloads/somaui/

 Romu
 www.soundstep.com


 allandt bik-elliott (thefieldcomic.com) wrote:

 do you have an svn repo or a google code area?

 On Mon, Dec 8, 2008 at 6:30 PM, Brenda Hicks [EMAIL PROTECTED]
 wrote:



 Great minds think alike! I had the same vision in my head -- especially
 since my son works in the SOMA district for an ad agency.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Kevin
 Mcfarland
 Sent: Monday, December 08, 2008 8:50 AM
 To: Flashcoders@chattyfig.figleaf.com
 Subject: re: [Flashcoders] Soma Protest

 Living near San Francisco, at first glance I thought this thread was
 going
 to be about a protest in the South-of-Market (SOMA) neighborhood. I
 began
 to visualize angry FlashCoders taking to the streets, demanding (a better
 IDE?) (a return to some AS2 features?)
 ___
 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




 ___
 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


Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Ian Thomas
I use Actionscript getters and setters.

Because I can start off using ordinary public properties, and change
them into getters and setters if I need more control/notification
without changing any of the code that _uses_ my class.

In order to achieve that otherwise, I'd have to make a getValue() and
setValue() for every single public property (as is done in Java). And
a fair few of those would simply be this._property=value (setter) or
return this._property (getter) i.e. essentially just placeholder
methods that bloat the code.

The beauty of the actionscript get and set functions is that they are
indistinguishable from public properties from the outside of the
class. It's a huge improvement over Java.

Ian

On Tue, Dec 9, 2008 at 10:24 AM, allandt bik-elliott
(thefieldcomic.com) [EMAIL PROTECTED] wrote:
 hi guys

 quick poll - Do you use the actionscript getter/setter functions or do you
 make your own, and why.

 I've noticed with a lot of the public domain code (like SWFAddress, for
 instance) that you see a lot of 'public function getVariable()' type getters
 instead of using the flash 'public function get variable()' adobe
 recommended getters(and setters) and i was wondering why people do this?

 thanks
 a
 ___
 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


Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread allandt bik-elliott (thefieldcomic.com)
i would have to agree - i use the built in ones and can't see any benefit
from using bespoke ones apart from maybe being able to use the variable name
i want rather than adding extra characters to it (although i use a leading
underscore for class variables anyway)

On Tue, Dec 9, 2008 at 10:48 AM, Ian Thomas [EMAIL PROTECTED] wrote:

 I use Actionscript getters and setters.

 Because I can start off using ordinary public properties, and change
 them into getters and setters if I need more control/notification
 without changing any of the code that _uses_ my class.

 In order to achieve that otherwise, I'd have to make a getValue() and
 setValue() for every single public property (as is done in Java). And
 a fair few of those would simply be this._property=value (setter) or
 return this._property (getter) i.e. essentially just placeholder
 methods that bloat the code.

 The beauty of the actionscript get and set functions is that they are
 indistinguishable from public properties from the outside of the
 class. It's a huge improvement over Java.

 Ian

 On Tue, Dec 9, 2008 at 10:24 AM, allandt bik-elliott
 (thefieldcomic.com) [EMAIL PROTECTED] wrote:
  hi guys
 
  quick poll - Do you use the actionscript getter/setter functions or do
 you
  make your own, and why.
 
  I've noticed with a lot of the public domain code (like SWFAddress, for
  instance) that you see a lot of 'public function getVariable()' type
 getters
  instead of using the flash 'public function get variable()' adobe
  recommended getters(and setters) and i was wondering why people do this?
 
  thanks
  a
  ___
  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


[Flashcoders] use get / set functions or make your own

2008-12-09 Thread allandt bik-elliott (thefieldcomic.com)
hi guys

quick poll - Do you use the actionscript getter/setter functions or do you
make your own, and why.

I've noticed with a lot of the public domain code (like SWFAddress, for
instance) that you see a lot of 'public function getVariable()' type getters
instead of using the flash 'public function get variable()' adobe
recommended getters(and setters) and i was wondering why people do this?

thanks
a
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread David Bellerive
I think some ActionScript developers simply prefer the use of regular setVar() 
getVar() instance methods instead of the AS3 get set keywords because they know 
what's going on in their own code.

I remember going to Colin Moock's AS3 1 day crash course last year in Toronto 
and he said that while there was nothing wrong with either method, he preferred 
regular getVar() setVar() instance methods because he felt more in control over 
his own code. With AS3 get set keywords, AS probably does a bunch of things in 
the back that you're not aware of to make it work as expected.

This is probably the same kind of debate as the tabs vs spaces debate. Both 
ways are OK, simply stick with the one you prefer...


--- On Tue, 12/9/08, allandt bik-elliott (thefieldcomic.com) [EMAIL 
PROTECTED] wrote:

 From: allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED]
 Subject: Re: [Flashcoders] use get / set functions or make your own
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Date: Tuesday, December 9, 2008, 6:28 AM
 i would have to agree - i use the built in ones and
 can't see any benefit
 from using bespoke ones apart from maybe being able to use
 the variable name
 i want rather than adding extra characters to it (although
 i use a leading
 underscore for class variables anyway)
 
 On Tue, Dec 9, 2008 at 10:48 AM, Ian Thomas
 [EMAIL PROTECTED] wrote:
 
  I use Actionscript getters and setters.
 
  Because I can start off using ordinary public
 properties, and change
  them into getters and setters if I need more
 control/notification
  without changing any of the code that _uses_ my class.
 
  In order to achieve that otherwise, I'd have to
 make a getValue() and
  setValue() for every single public property (as is
 done in Java). And
  a fair few of those would simply be
 this._property=value (setter) or
  return this._property (getter) i.e. essentially just
 placeholder
  methods that bloat the code.
 
  The beauty of the actionscript get and set functions
 is that they are
  indistinguishable from public properties from the
 outside of the
  class. It's a huge improvement over Java.
 
  Ian
 
  On Tue, Dec 9, 2008 at 10:24 AM, allandt bik-elliott
  (thefieldcomic.com) [EMAIL PROTECTED] wrote:
   hi guys
  
   quick poll - Do you use the actionscript
 getter/setter functions or do
  you
   make your own, and why.
  
   I've noticed with a lot of the public domain
 code (like SWFAddress, for
   instance) that you see a lot of 'public
 function getVariable()' type
  getters
   instead of using the flash 'public function
 get variable()' adobe
   recommended getters(and setters) and i was
 wondering why people do this?
  
   thanks
   a
   ___
   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


  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Soma Protest

2008-12-09 Thread allandt bik-elliott (thefieldcomic.com)
do you have an svn repo or a google code area?

On Mon, Dec 8, 2008 at 6:30 PM, Brenda Hicks [EMAIL PROTECTED]wrote:

 Great minds think alike! I had the same vision in my head -- especially
 since my son works in the SOMA district for an ad agency.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Kevin
 Mcfarland
 Sent: Monday, December 08, 2008 8:50 AM
 To: Flashcoders@chattyfig.figleaf.com
 Subject: re: [Flashcoders] Soma Protest

 Living near San Francisco, at first glance I thought this thread was going
 to be about a protest in the South-of-Market (SOMA) neighborhood. I began
 to visualize angry FlashCoders taking to the streets, demanding (a better
 IDE?) (a return to some AS2 features?)
 ___
 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


Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Hans Wichman
Hi,

I'm still in the middle. I used to use getMyVariable setMyVariable for
everything, now I usually use public variables for entity/value objects. I
still hate not being able to see whether something is a variable or
function, so for everything else than very simple objects I prefer
setMyVariable getMyVariable instead of get set. I find it way easier to read
back my code that way, so it depends on whether I know whether I am going to
have to read it back or not ;).

greetz
JC




On Tue, Dec 9, 2008 at 12:28 PM, allandt bik-elliott (thefieldcomic.com) 
[EMAIL PROTECTED] wrote:

 i would have to agree - i use the built in ones and can't see any benefit
 from using bespoke ones apart from maybe being able to use the variable
 name
 i want rather than adding extra characters to it (although i use a leading
 underscore for class variables anyway)

 On Tue, Dec 9, 2008 at 10:48 AM, Ian Thomas [EMAIL PROTECTED] wrote:

  I use Actionscript getters and setters.
 
  Because I can start off using ordinary public properties, and change
  them into getters and setters if I need more control/notification
  without changing any of the code that _uses_ my class.
 
  In order to achieve that otherwise, I'd have to make a getValue() and
  setValue() for every single public property (as is done in Java). And
  a fair few of those would simply be this._property=value (setter) or
  return this._property (getter) i.e. essentially just placeholder
  methods that bloat the code.
 
  The beauty of the actionscript get and set functions is that they are
  indistinguishable from public properties from the outside of the
  class. It's a huge improvement over Java.
 
  Ian
 
  On Tue, Dec 9, 2008 at 10:24 AM, allandt bik-elliott
  (thefieldcomic.com) [EMAIL PROTECTED] wrote:
   hi guys
  
   quick poll - Do you use the actionscript getter/setter functions or do
  you
   make your own, and why.
  
   I've noticed with a lot of the public domain code (like SWFAddress, for
   instance) that you see a lot of 'public function getVariable()' type
  getters
   instead of using the flash 'public function get variable()' adobe
   recommended getters(and setters) and i was wondering why people do
 this?
  
   thanks
   a
   ___
   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

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] My rights - site not paid for.

2008-12-09 Thread allandt bik-elliott (thefieldcomic.com)
the thing about going through a specialised debt collecting solicitor is
that they start very polite - they usually have 2 rounds of letters to send
to the client before they start getting heavy and to be honest, if it comes
to that, you're better off without the client

a bad client will be more trouble than the work is worth, even in troubled
times. They will abuse your relationship, demand unreasonable amounts of
unpaid extra work and monopolise your time so that you start to neglect your
good-paying clients and probably start to ask for long-time client discounts
(like you owe them something for giving you the work). Saying that you might
lose possible future work would sound like a blessing with a client like
that

i have had a client like this and if i'd known about the debt collectors,
i'd have phoned them in a shot.

a


On Tue, Dec 9, 2008 at 2:19 AM, Helmut Granda [EMAIL PROTECTED]wrote:

 But having the power to access to the server through FTP doesnt make the
 coder a good guy either :)

 On Mon, Dec 8, 2008 at 4:51 PM, laurent [EMAIL PROTECTED] wrote:

  Having no contract does not make the none payer a good guy, he apparently
  does not want to pay. And if he have problems I guess the coder have too,
 so
  he should deal with his own stuff as we do here and if he can't he should
  commnicate about it. But I don't think the problem is here. The best
 thing
  is to call a lawyer that will get in contact with him, you won't even
 have
  to get to court, the guy will pay straight away. As far as he can't
 handle
  dirty hands I guess...but you will win.
 
  L
 
  Helmut Granda a écrit :
 
   Im with Doctor H here,
 
  We don't know the details or both parties information about the project,
  if
  you are a freelancer/contractor this might harm you in the long run.
  Granted, you might get the money you are owed but in the end of the day
 it
  might be 1+ (many more) possible non clients. Remember that the bad
 press
  travels a lot faster than good rep and good rep is always hard to come
 by.
 
  If I read correctly you don't have a written contract which in the end
 is
  also a bad practice and you have to take your losses.
 
  On Mon, Dec 8, 2008 at 1:13 PM, dr.ache [EMAIL PROTECTED] wrote:
 
 
 
  Have you ever thought about what that makes for your image?
  I would encourage you to stay polite and willing to accept their delay
 as
  long
  as it is possible for you. You can deny to work with this client in the
  future anyways
  but do not threaten somebody with court or anything before there is no
  other way around.
 
  Have always in mind that there can be a reason you could not even
 imagine
  behind that
  delay. You are dealing with people - just try to image this guy really
  has
  problems and
  dont want you to know about that, or anybody else. When you take him to
  the
  court you
  might get your money but a very very bad image in the head of that
  guy,too.
 
  The other way round - if he finally pays you and he saw that you are
  flexible he might
  recommend you the next time. Have the good parts about people in mind,
  dont
  make
  assumtions.
 
  My cents...
 
 
 
 
  Pete Hotchkiss schrieb:
 
   Eamons point about the computer misuse act is not strictly true - you
 
 
  own the site unless a contract exists explicitly licensing full
  ownership of everything up payment completion.
 
  My advise however is to leave the site up and get Thomas Higgins on
 the
  case. He's BRILLIANT and has a ni on 100% record for recovering debts.
  He's completely ruthless and gets results
 
  http://www.thomas-higgins.co.uk/
 
  Trust me - use these guys and you'll have you money before the month
 is
  out
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Piers
  Cowburn
  Sent: 08 December 2008 11:51
  To: Flash Coders List
  Subject: Re: [Flashcoders] My rights - site not paid for.
 
  I've been in this situation before and done the same as Paul, it ended
  up going to a small claims court and the client didn't even turn up
 for
  the hearing. I got paid and the costs were covered by the client.
 
  Piers
 
 
  On 8 Dec 2008, at 11:38, Paul Steven wrote:
 
 
 
 
 
  Hi Stephen
 
  I had a similar situation about a year ago and in this case I had no
  contract but just emails from the client agreeing on the cost for the
  work.
 
  Anyway I simply made a claim via
  https://www.moneyclaim.gov.uk/csmco2/index.jsp and I won my case. It
  was
  really simple and will cost you nothing as you get all your costs
 paid
  for
  by the customer if you win.
 
  I would be reluctant to take the site down as doing so will then mean
  the
  customer has nothing to pay for. By leaving the site up and running,
  you
  have fulfilled your obligations.
 
  Anyway good luck!!
 
  Paul
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
  Stephen
  Matthews
  Sent: 08 December 2008 11:03
  To: 

Re: [Flashcoders] Soma Protest

2008-12-09 Thread Romuald Quantin

yes, SVN are there:

http://www.soundstep.com/blog/downloads/somaui/

Romu
www.soundstep.com

allandt bik-elliott (thefieldcomic.com) wrote:

do you have an svn repo or a google code area?

On Mon, Dec 8, 2008 at 6:30 PM, Brenda Hicks [EMAIL PROTECTED]wrote:

  

Great minds think alike! I had the same vision in my head -- especially
since my son works in the SOMA district for an ad agency.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin
Mcfarland
Sent: Monday, December 08, 2008 8:50 AM
To: Flashcoders@chattyfig.figleaf.com
Subject: re: [Flashcoders] Soma Protest

Living near San Francisco, at first glance I thought this thread was going
to be about a protest in the South-of-Market (SOMA) neighborhood. I began
to visualize angry FlashCoders taking to the streets, demanding (a better
IDE?) (a return to some AS2 features?)
___
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

  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Eric E. Dolecki
Since I like FlashDevelop, with a keyboard shortcut and a click I create
setters and getters.

On Tue, Dec 9, 2008 at 9:02 AM, Hans Wichman [EMAIL PROTECTED]
 wrote:

 Hi,

 I'm still in the middle. I used to use getMyVariable setMyVariable for
 everything, now I usually use public variables for entity/value objects. I
 still hate not being able to see whether something is a variable or
 function, so for everything else than very simple objects I prefer
 setMyVariable getMyVariable instead of get set. I find it way easier to
 read
 back my code that way, so it depends on whether I know whether I am going
 to
 have to read it back or not ;).

 greetz
 JC




 On Tue, Dec 9, 2008 at 12:28 PM, allandt bik-elliott (thefieldcomic.com) 
 [EMAIL PROTECTED] wrote:

  i would have to agree - i use the built in ones and can't see any benefit
  from using bespoke ones apart from maybe being able to use the variable
  name
  i want rather than adding extra characters to it (although i use a
 leading
  underscore for class variables anyway)
 
  On Tue, Dec 9, 2008 at 10:48 AM, Ian Thomas [EMAIL PROTECTED] wrote:
 
   I use Actionscript getters and setters.
  
   Because I can start off using ordinary public properties, and change
   them into getters and setters if I need more control/notification
   without changing any of the code that _uses_ my class.
  
   In order to achieve that otherwise, I'd have to make a getValue() and
   setValue() for every single public property (as is done in Java). And
   a fair few of those would simply be this._property=value (setter) or
   return this._property (getter) i.e. essentially just placeholder
   methods that bloat the code.
  
   The beauty of the actionscript get and set functions is that they are
   indistinguishable from public properties from the outside of the
   class. It's a huge improvement over Java.
  
   Ian
  
   On Tue, Dec 9, 2008 at 10:24 AM, allandt bik-elliott
   (thefieldcomic.com) [EMAIL PROTECTED] wrote:
hi guys
   
quick poll - Do you use the actionscript getter/setter functions or
 do
   you
make your own, and why.
   
I've noticed with a lot of the public domain code (like SWFAddress,
 for
instance) that you see a lot of 'public function getVariable()' type
   getters
instead of using the flash 'public function get variable()' adobe
recommended getters(and setters) and i was wondering why people do
  this?
   
thanks
a
___
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
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Cor
Yes I prefer FD also, but what is the shortcut for getters and setters??

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric E. Dolecki
Sent: dinsdag 9 december 2008 15:16
To: Flash Coders List
Subject: Re: [Flashcoders] use get / set functions or make your own

Since I like FlashDevelop, with a keyboard shortcut and a click I create
setters and getters.

On Tue, Dec 9, 2008 at 9:02 AM, Hans Wichman [EMAIL PROTECTED]
 wrote:

 Hi,

 I'm still in the middle. I used to use getMyVariable setMyVariable for
 everything, now I usually use public variables for entity/value objects. I
 still hate not being able to see whether something is a variable or
 function, so for everything else than very simple objects I prefer
 setMyVariable getMyVariable instead of get set. I find it way easier to
 read
 back my code that way, so it depends on whether I know whether I am going
 to
 have to read it back or not ;).

 greetz
 JC




 On Tue, Dec 9, 2008 at 12:28 PM, allandt bik-elliott (thefieldcomic.com) 
 [EMAIL PROTECTED] wrote:

  i would have to agree - i use the built in ones and can't see any benefit
  from using bespoke ones apart from maybe being able to use the variable
  name
  i want rather than adding extra characters to it (although i use a
 leading
  underscore for class variables anyway)
 
  On Tue, Dec 9, 2008 at 10:48 AM, Ian Thomas [EMAIL PROTECTED] wrote:
 
   I use Actionscript getters and setters.
  
   Because I can start off using ordinary public properties, and change
   them into getters and setters if I need more control/notification
   without changing any of the code that _uses_ my class.
  
   In order to achieve that otherwise, I'd have to make a getValue() and
   setValue() for every single public property (as is done in Java). And
   a fair few of those would simply be this._property=value (setter) or
   return this._property (getter) i.e. essentially just placeholder
   methods that bloat the code.
  
   The beauty of the actionscript get and set functions is that they are
   indistinguishable from public properties from the outside of the
   class. It's a huge improvement over Java.
  
   Ian
  
   On Tue, Dec 9, 2008 at 10:24 AM, allandt bik-elliott
   (thefieldcomic.com) [EMAIL PROTECTED] wrote:
hi guys
   
quick poll - Do you use the actionscript getter/setter functions or
 do
   you
make your own, and why.
   
I've noticed with a lot of the public domain code (like SWFAddress,
 for
instance) that you see a lot of 'public function getVariable()' type
   getters
instead of using the flash 'public function get variable()' adobe
recommended getters(and setters) and i was wondering why people do
  this?
   
thanks
a
___
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
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.9.15/1839 - Release Date: 9-12-2008 9:59


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] video seek ability

2008-12-09 Thread Rodrigo Augusto Guerra
hi all, I need to develop a seek function in the video player.
the user will be able to drag the progress bar going backwards or forward in 
the video timeline.

I found this article:
http://www.flashcomguru.com/index.cfm/2006/5/10/flvkeyframes
http://polygeek.com/211_flex_seeking-in-flash-video

it's very good and helpful but still I have some doubts.

I know that the seek function is affected by the keyframe number when the flv 
was created, as shwon in the article.

my questions are:

- what's the logic behind the seek bar to enable the video to keep showing the 
video keyframes when draging?

why if I start to drag, stop in any postion (already loaded) and don't release 
the mouse the video keep shaking?

the ability of drag the video timeline head to a unloaded position and the 
video stop loading the previous content and start again from the position you 
dragged the head, I'll need a flash streaming server.

if the video is hosted in a non-streaming server the normal behavior when you 
drag the head to a unloaded position is that the player will wait the video 
loads until that moment and once loaded it will start playing, is that correct?



thanks for your help.
rodrigo.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Eric E. Dolecki
select the variable, ctrl-shift-1 ;)
On Tue, Dec 9, 2008 at 9:26 AM, Cor [EMAIL PROTECTED] wrote:

 Yes I prefer FD also, but what is the shortcut for getters and setters??

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of Eric E. Dolecki
 Sent: dinsdag 9 december 2008 15:16
 To: Flash Coders List
 Subject: Re: [Flashcoders] use get / set functions or make your own

 Since I like FlashDevelop, with a keyboard shortcut and a click I create
 setters and getters.

 On Tue, Dec 9, 2008 at 9:02 AM, Hans Wichman 
 [EMAIL PROTECTED]
  wrote:

  Hi,
 
  I'm still in the middle. I used to use getMyVariable setMyVariable for
  everything, now I usually use public variables for entity/value objects.
 I
  still hate not being able to see whether something is a variable or
  function, so for everything else than very simple objects I prefer
  setMyVariable getMyVariable instead of get set. I find it way easier to
  read
  back my code that way, so it depends on whether I know whether I am going
  to
  have to read it back or not ;).
 
  greetz
  JC
 
 
 
 
  On Tue, Dec 9, 2008 at 12:28 PM, allandt bik-elliott (thefieldcomic.com)
 
  [EMAIL PROTECTED] wrote:
 
   i would have to agree - i use the built in ones and can't see any
 benefit
   from using bespoke ones apart from maybe being able to use the variable
   name
   i want rather than adding extra characters to it (although i use a
  leading
   underscore for class variables anyway)
  
   On Tue, Dec 9, 2008 at 10:48 AM, Ian Thomas [EMAIL PROTECTED] wrote:
  
I use Actionscript getters and setters.
   
Because I can start off using ordinary public properties, and change
them into getters and setters if I need more control/notification
without changing any of the code that _uses_ my class.
   
In order to achieve that otherwise, I'd have to make a getValue() and
setValue() for every single public property (as is done in Java). And
a fair few of those would simply be this._property=value (setter) or
return this._property (getter) i.e. essentially just placeholder
methods that bloat the code.
   
The beauty of the actionscript get and set functions is that they are
indistinguishable from public properties from the outside of the
class. It's a huge improvement over Java.
   
Ian
   
On Tue, Dec 9, 2008 at 10:24 AM, allandt bik-elliott
(thefieldcomic.com) [EMAIL PROTECTED] wrote:
 hi guys

 quick poll - Do you use the actionscript getter/setter functions or
  do
you
 make your own, and why.

 I've noticed with a lot of the public domain code (like SWFAddress,
  for
 instance) that you see a lot of 'public function getVariable()'
 type
getters
 instead of using the flash 'public function get variable()' adobe
 recommended getters(and setters) and i was wondering why people do
   this?

 thanks
 a
 ___
 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
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 http://ericd.net
 Interactive design and development
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.176 / Virus Database: 270.9.15/1839 - Release Date: 9-12-2008
 9:59


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread jonathan howe
The magic Context code completion hotkey, which by default is Ctrl-Shift-1,
when your cursor is over a variable declaration.
This awesome hotkey also does cool stuff like generates an event handler
when your cursor is inside an addEventListener declaration... definitely
check it out in the FD docs!



On Tue, Dec 9, 2008 at 3:26 PM, Cor [EMAIL PROTECTED] wrote:

 Yes I prefer FD also, but what is the shortcut for getters and setters??

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of Eric E. Dolecki
 Sent: dinsdag 9 december 2008 15:16
 To: Flash Coders List
 Subject: Re: [Flashcoders] use get / set functions or make your own

  Since I like FlashDevelop, with a keyboard shortcut and a click I create
 setters and getters.

 On Tue, Dec 9, 2008 at 9:02 AM, Hans Wichman 
 [EMAIL PROTECTED]
  wrote:

  Hi,
 
  I'm still in the middle. I used to use getMyVariable setMyVariable for
  everything, now I usually use public variables for entity/value objects.
 I
  still hate not being able to see whether something is a variable or
  function, so for everything else than very simple objects I prefer
  setMyVariable getMyVariable instead of get set. I find it way easier to
  read
  back my code that way, so it depends on whether I know whether I am going
  to
  have to read it back or not ;).
 
  greetz
  JC
 
 
 
 
  On Tue, Dec 9, 2008 at 12:28 PM, allandt bik-elliott (thefieldcomic.com)
 
  [EMAIL PROTECTED] wrote:
 
   i would have to agree - i use the built in ones and can't see any
 benefit
   from using bespoke ones apart from maybe being able to use the variable
   name
   i want rather than adding extra characters to it (although i use a
  leading
   underscore for class variables anyway)
  
   On Tue, Dec 9, 2008 at 10:48 AM, Ian Thomas [EMAIL PROTECTED] wrote:
  
I use Actionscript getters and setters.
   
Because I can start off using ordinary public properties, and change
them into getters and setters if I need more control/notification
without changing any of the code that _uses_ my class.
   
In order to achieve that otherwise, I'd have to make a getValue() and
setValue() for every single public property (as is done in Java). And
a fair few of those would simply be this._property=value (setter) or
return this._property (getter) i.e. essentially just placeholder
methods that bloat the code.
   
The beauty of the actionscript get and set functions is that they are
indistinguishable from public properties from the outside of the
class. It's a huge improvement over Java.
   
Ian
   
On Tue, Dec 9, 2008 at 10:24 AM, allandt bik-elliott
(thefieldcomic.com) [EMAIL PROTECTED] wrote:
 hi guys

 quick poll - Do you use the actionscript getter/setter functions or
  do
you
 make your own, and why.

 I've noticed with a lot of the public domain code (like SWFAddress,
  for
 instance) that you see a lot of 'public function getVariable()'
 type
getters
 instead of using the flash 'public function get variable()' adobe
 recommended getters(and setters) and i was wondering why people do
   this?

 thanks
 a
 ___
 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
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 http://ericd.net
 Interactive design and development
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.176 / Virus Database: 270.9.15/1839 - Release Date: 9-12-2008
 9:59


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
-jonathan howe
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Cor
Oh, I use that one to create functions and yes a getter/setter is also a 
function. 
My bad..

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric E. Dolecki
Sent: dinsdag 9 december 2008 15:37
To: Flash Coders List
Subject: Re: [Flashcoders] use get / set functions or make your own

select the variable, ctrl-shift-1 ;)
On Tue, Dec 9, 2008 at 9:26 AM, Cor [EMAIL PROTECTED] wrote:

 Yes I prefer FD also, but what is the shortcut for getters and setters??

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of Eric E. Dolecki
 Sent: dinsdag 9 december 2008 15:16
 To: Flash Coders List
 Subject: Re: [Flashcoders] use get / set functions or make your own

 Since I like FlashDevelop, with a keyboard shortcut and a click I create
 setters and getters.

 On Tue, Dec 9, 2008 at 9:02 AM, Hans Wichman 
 [EMAIL PROTECTED]
  wrote:

  Hi,
 
  I'm still in the middle. I used to use getMyVariable setMyVariable for
  everything, now I usually use public variables for entity/value objects.
 I
  still hate not being able to see whether something is a variable or
  function, so for everything else than very simple objects I prefer
  setMyVariable getMyVariable instead of get set. I find it way easier to
  read
  back my code that way, so it depends on whether I know whether I am going
  to
  have to read it back or not ;).
 
  greetz
  JC
 
 
 
 
  On Tue, Dec 9, 2008 at 12:28 PM, allandt bik-elliott (thefieldcomic.com)
 
  [EMAIL PROTECTED] wrote:
 
   i would have to agree - i use the built in ones and can't see any
 benefit
   from using bespoke ones apart from maybe being able to use the variable
   name
   i want rather than adding extra characters to it (although i use a
  leading
   underscore for class variables anyway)
  
   On Tue, Dec 9, 2008 at 10:48 AM, Ian Thomas [EMAIL PROTECTED] wrote:
  
I use Actionscript getters and setters.
   
Because I can start off using ordinary public properties, and change
them into getters and setters if I need more control/notification
without changing any of the code that _uses_ my class.
   
In order to achieve that otherwise, I'd have to make a getValue() and
setValue() for every single public property (as is done in Java). And
a fair few of those would simply be this._property=value (setter) or
return this._property (getter) i.e. essentially just placeholder
methods that bloat the code.
   
The beauty of the actionscript get and set functions is that they are
indistinguishable from public properties from the outside of the
class. It's a huge improvement over Java.
   
Ian
   
On Tue, Dec 9, 2008 at 10:24 AM, allandt bik-elliott
(thefieldcomic.com) [EMAIL PROTECTED] wrote:
 hi guys

 quick poll - Do you use the actionscript getter/setter functions or
  do
you
 make your own, and why.

 I've noticed with a lot of the public domain code (like SWFAddress,
  for
 instance) that you see a lot of 'public function getVariable()'
 type
getters
 instead of using the flash 'public function get variable()' adobe
 recommended getters(and setters) and i was wondering why people do
   this?

 thanks
 a
 ___
 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
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 http://ericd.net
 Interactive design and development
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.176 / Virus Database: 270.9.15/1839 - Release Date: 9-12-2008
 9:59


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.9.15/1839 - Release Date: 9-12-2008 9:59


___

Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Ian Thomas
Ooh - never knew about that. :-)

You learn something every day!

Ian

On Tue, Dec 9, 2008 at 2:40 PM, jonathan howe [EMAIL PROTECTED] wrote:
 The magic Context code completion hotkey, which by default is Ctrl-Shift-1,
 when your cursor is over a variable declaration.
 This awesome hotkey also does cool stuff like generates an event handler
 when your cursor is inside an addEventListener declaration... definitely
 check it out in the FD docs!

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Cor
When you open the Startpage of FD you find some more shortcuts.
HTH
Cor

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: dinsdag 9 december 2008 16:14
To: Flash Coders List
Subject: Re: [Flashcoders] use get / set functions or make your own

Ooh - never knew about that. :-)

You learn something every day!

Ian

On Tue, Dec 9, 2008 at 2:40 PM, jonathan howe [EMAIL PROTECTED]
wrote:
 The magic Context code completion hotkey, which by default is
Ctrl-Shift-1,
 when your cursor is over a variable declaration.
 This awesome hotkey also does cool stuff like generates an event handler
 when your cursor is inside an addEventListener declaration... definitely
 check it out in the FD docs!

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.9.15/1839 - Release Date: 9-12-2008
9:59

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Joel Stransky
Wow I didn't know that about FD. Gonna have to start using it. I still find
myself wanting to use Flex Dev but that's another thread.

It's nice to see discussions like this. I feel like some things are foregone
conclusions and that I'm late to the part but hey, even Grant Skinner is
blogging about cuddling
braceshttp://www.gskinner.com/blog/archives/2008/11/curly_braces_to.html.


For me, it depends on the complexity of the logic involved in calculating
the return. If I'm dealing with a sensible property such as the left
boundary for a group of display children, conditionals tend to read cleaner
when I can just write:
if(this.mouseX  grid.left) rather than if(this.mouseX  grid.getLeft()). If
the property requires more complex code in order to return a value such as
looping over an array, I use getVal().

getters and setters also have certain syntax requirements so I also avoid
using them whenever I need to do something slightly different such as use
multiple parameters.

On Tue, Dec 9, 2008 at 10:18 AM, Cor [EMAIL PROTECTED] wrote:

 When you open the Startpage of FD you find some more shortcuts.
 HTH
 Cor

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
 Sent: dinsdag 9 december 2008 16:14
 To: Flash Coders List
 Subject: Re: [Flashcoders] use get / set functions or make your own

 Ooh - never knew about that. :-)

 You learn something every day!

 Ian

 On Tue, Dec 9, 2008 at 2:40 PM, jonathan howe [EMAIL PROTECTED]
 wrote:
  The magic Context code completion hotkey, which by default is
 Ctrl-Shift-1,
  when your cursor is over a variable declaration.
  This awesome hotkey also does cool stuff like generates an event handler
  when your cursor is inside an addEventListener declaration... definitely
  check it out in the FD docs!
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.176 / Virus Database: 270.9.15/1839 - Release Date: 9-12-2008
 9:59

 ___
 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


Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Todd Kerpelman
I think the Control-Shift-1 functionality is fairly new -- I only got it
working after I upgraded FD to Beta 9. But yes, it rocks. You can also use
it on your implements Interface text to generate placeholder functions
for everything in that interface. Try it!

Personally, I tend to use getters and setters only when I'm making a class
that primarily functions like a Perl hash (or a Python dictionary or
whatever the kids are using these days). If I use it to much with other
classes, I start to worry that I've created public variables when I
shouldn't have, and it constantly distracts me.

--T


On Tue, Dec 9, 2008 at 8:44 AM, Joel Stransky [EMAIL PROTECTED]wrote:

 Wow I didn't know that about FD. Gonna have to start using it. I still find
 myself wanting to use Flex Dev but that's another thread.

 It's nice to see discussions like this. I feel like some things are
 foregone
 conclusions and that I'm late to the part but hey, even Grant Skinner is
 blogging about cuddling
 braceshttp://www.gskinner.com/blog/archives/2008/11/curly_braces_to.html
 .


 For me, it depends on the complexity of the logic involved in calculating
 the return. If I'm dealing with a sensible property such as the left
 boundary for a group of display children, conditionals tend to read cleaner
 when I can just write:
 if(this.mouseX  grid.left) rather than if(this.mouseX  grid.getLeft()).
 If
 the property requires more complex code in order to return a value such as
 looping over an array, I use getVal().

 getters and setters also have certain syntax requirements so I also avoid
 using them whenever I need to do something slightly different such as use
 multiple parameters.

 On Tue, Dec 9, 2008 at 10:18 AM, Cor [EMAIL PROTECTED] wrote:

  When you open the Startpage of FD you find some more shortcuts.
  HTH
  Cor
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Ian
 Thomas
  Sent: dinsdag 9 december 2008 16:14
  To: Flash Coders List
  Subject: Re: [Flashcoders] use get / set functions or make your own
 
  Ooh - never knew about that. :-)
 
  You learn something every day!
 
  Ian
 
  On Tue, Dec 9, 2008 at 2:40 PM, jonathan howe [EMAIL PROTECTED]
  wrote:
   The magic Context code completion hotkey, which by default is
  Ctrl-Shift-1,
   when your cursor is over a variable declaration.
   This awesome hotkey also does cool stuff like generates an event
 handler
   when your cursor is inside an addEventListener declaration...
 definitely
   check it out in the FD docs!
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  No virus found in this incoming message.
  Checked by AVG - http://www.avg.com
  Version: 8.0.176 / Virus Database: 270.9.15/1839 - Release Date:
 9-12-2008
  9:59
 
  ___
  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] as 3 : video class : problem with loading new URLs (playlist)... old video won't stop loading.

2008-12-09 Thread Carl Welch

Hi all!

My client asked me to build a video player with a play list. I'm  
building it with AS3.  The player works fine when I load the first  
movie... but when I try to play another, the old video seems to keep  
loading. I've been trying to .close() the video, netstream and the  
URLRequest when I call a new video, but nothing seems to work  
properly. Can anyone point me in the right direction? thanks.

--
Carl Welch
http://www.carlwelch.com
http://www.jointjam.com
[EMAIL PROTECTED]
805.403.4819




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] RE: AS3: video class........won't stop loading.

2008-12-09 Thread Latcho

Sounds like a mess to me ;)
No honestly, I think nobody can give you an answer on this without a 
core code snippet from you side.

Try to call something like this on the end  of the previous vid:

   private function RESET():void {
   if (video.stage) {
   video.attachNetStream(null)
   video.clear()
   }
   if (stream) {
   stream.close();
   }
  
and when you want to play the new video



private function newStream(streamUrl):void {
  
   RESET()

   stream =* new NetStream(*connection);
   stream.bufferTime = 5;
   stream.addEventListener(NetStatusEvent.NET_STATUS, 
netStatusHandler);

   stream.client = this;
   video.attachNetStream(stream);
   stream.play(streamUrl);
}


Latcho

Carl Welch wrote:

Hi all!

My client asked me to build a video player with a play list. I'm 
building it with AS3.  The player works fine when I load the first 
movie... but when I try to play another, the old video seems to keep 
loading. I've been trying to .close() the video, netstream and the 
URLRequest when I call a new video, but nothing seems to work 
properly. Can anyone point me in the right direction? thanks.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Steven Sacks

For clarity, they're referred to as implicit and explicit.

get prop / set prop = implicit
getProp() / setProp = explicit

In AS2, it made a difference because implicits were available right away, 
whereas explicits were not available for 1 frame.  This limitation is not 
present in AS3.


Basically, implicit implies properties of a class, whereas explicit implies 
methods of a class.


I opt for implicit over explicit because this:

foo.prop = value;

makes more sense than

foo.setProp(value);

I leave methods for methods, not properties.

That being said, I don't abide by the retarded rule that you shouldn't have 
public vars in a class.  People who do this


private var _foo:Boolean;
public function get foo():Boolean { return _foo; }
public function set foo(value:Boolean):void { _foo = value; }

are masturbating and I'm not impressed by their bloated ego...I mean code. ;)

Unless something needs to happen immediately within the class when you set or 
get a prop (i.e. a state change), it's fine for it to be a public var.  It's 
faster, it's less bloat and most of us aren't writing large applications with a 
bunch of other developers.  Some of these rules were created for when good 
coders are forced to work with bad coders and the good ones need to protect 
their code from the bad ones.  When it's just you and a couple other devs, and 
you're all competent, you don't need all these checks and balances that are 
nothing more than compensation for people who you wish you didn't have to code 
with.  /rant   ;)



On the FlashDevelop tip:
http://www.stevensacks.net/2008/02/21/flashdevelop-code-generation/

http://www.stevensacks.net/2008/04/30/flashdevelop-flexbuilder-style-error-reporting-on-save/

FlashDevelop's auto-completion and code generation are better than anything out 
there (for AS, at least).  And just to be clear, you don't need to select 
anything for code generation, the cursor just needs to be anywhere within the 
word, or at the end of the statement.


private var _test:Boolean;

If the cursor is after the semicolon, you can press the shortcut (I use ALT+2 on 
Windows, CMD+2 on OSX) and it will bring up the code generation options.  The 
event generation is really valuable, as well.  I save so much time with it.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Muzak

+1 :-)

Use public methods when it's a method, public properties when it's a property.
Simple as that..

explicit should only be used for internal things to work, usually called by an 
implicit setter:

private var _data:Object;

private function setData():void {
   // do stuff with _data
}

public function set data(value:Object):void {
   _data = value;
   setData();
}

And a *big* +1 for this:

That being said, I don't abide by the retarded rule that you shouldn't have 
public vars in a class.  


regards,
Muzak

- Original Message - 
From: Steven Sacks [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 10, 2008 5:01 AM
Subject: Re: [Flashcoders] use get / set functions or make your own



For clarity, they're referred to as implicit and explicit.

get prop / set prop = implicit
getProp() / setProp = explicit

In AS2, it made a difference because implicits were available right away, 
whereas explicits were not available for 1 frame.  This limitation is not 
present in AS3.


Basically, implicit implies properties of a class, whereas explicit implies 
methods of a class.


I opt for implicit over explicit because this:

foo.prop = value;

makes more sense than

foo.setProp(value);

I leave methods for methods, not properties.

That being said, I don't abide by the retarded rule that you shouldn't have 
public vars in a class.  People who do this


private var _foo:Boolean;
public function get foo():Boolean { return _foo; }
public function set foo(value:Boolean):void { _foo = value; }

are masturbating and I'm not impressed by their bloated ego...I mean code. ;)

Unless something needs to happen immediately within the class when you set or 
get a prop (i.e. a state change), it's fine for it to be a public var.  It's 
faster, it's less bloat and most of us aren't writing large applications with a 
bunch of other developers.  Some of these rules were created for when good 
coders are forced to work with bad coders and the good ones need to protect 
their code from the bad ones.  When it's just you and a couple other devs, and 
you're all competent, you don't need all these checks and balances that are 
nothing more than compensation for people who you wish you didn't have to code 
with.  /rant   ;)





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] video seek ability

2008-12-09 Thread Steven Sacks

Here's what you need to know to make a good scrubber for progressive download 
FLVs.

1. You need a background that shows the entire width of the bar.

2. You need a progress bar that shows how much of the video has loaded.  The 
width of this bar is the background.width * (ns.bytesLoaded / ns.bytesTotal);


3. You need a playback bar or shuttle which is updated on a timer. The width 
(bar) or position (shuttle) is the background.width * (ns.time / 
ns.metaData.duration).


4. You put the mouse events on the progress bar.  On press, you set a flag that 
you're seeking (so the update doesn't move the bar/shuttle but does keep the 
progress bar updated), you pause the video, and you start a timer that calls an 
update function.  In the update function, you track the mouseX and constrain the 
value  (via Math.min and Math.max) to values between 0 and the progress bar 
width, to which you set the position of the shuttle or width of the playback 
bar.  You take the position/width of the bar, divide it by the background.width, 
multiply that by the duration of the ns, round it, and that's your seek time. 
When you release, you unpause the video (assuming the video was playing when you 
pressed, you'll need to keep a separate flag for that).



If you do it like I've described, then the dragging is always constrained by the 
current loaded amount, not the loaded amount at the time you pressed, and you 
don't get that ugly stutter when you stay in one place (there's no reason to not 
pause the video when scrubbing).

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Latcho
on the other hand using public vars makes it more difficult if you have 
to add an extra parse or an extra function on the returning var for ex.  
like array.join() or ad some html wrapping around a string
Then you don't have to redeclare public _unaltered var to an altered 
getter and setter and you don't have to go to all off you class local 
code to change between altered / _unaltered;

You just add in the extra functionallity in the getter/setter.

As for FlashDevelop it is only ctrl-shift-1. That gives me no time to 
masturbate.

Latcho

Steven Sacks wrote:

For clarity, they're referred to as implicit and explicit.

get prop / set prop = implicit
getProp() / setProp = explicit

In AS2, it made a difference because implicits were available right 
away, whereas explicits were not available for 1 frame.  This 
limitation is not present in AS3.


Basically, implicit implies properties of a class, whereas explicit 
implies methods of a class.


I opt for implicit over explicit because this:

foo.prop = value;

makes more sense than

foo.setProp(value);

I leave methods for methods, not properties.

That being said, I don't abide by the retarded rule that you shouldn't 
have public vars in a class.  People who do this


private var _foo:Boolean;
public function get foo():Boolean { return _foo; }
public function set foo(value:Boolean):void { _foo = value; }

are masturbating and I'm not impressed by their bloated ego...I mean 
code. ;)


Unless something needs to happen immediately within the class when you 
set or get a prop (i.e. a state change), it's fine for it to be a 
public var.  It's faster, it's less bloat and most of us aren't 
writing large applications with a bunch of other developers.  Some of 
these rules were created for when good coders are forced to work with 
bad coders and the good ones need to protect their code from the bad 
ones.  When it's just you and a couple other devs, and you're all 
competent, you don't need all these checks and balances that are 
nothing more than compensation for people who you wish you didn't have 
to code with.  /rant   ;)



On the FlashDevelop tip:
http://www.stevensacks.net/2008/02/21/flashdevelop-code-generation/

http://www.stevensacks.net/2008/04/30/flashdevelop-flexbuilder-style-error-reporting-on-save/ 



FlashDevelop's auto-completion and code generation are better than 
anything out there (for AS, at least).  And just to be clear, you 
don't need to select anything for code generation, the cursor just 
needs to be anywhere within the word, or at the end of the statement.


private var _test:Boolean;

If the cursor is after the semicolon, you can press the shortcut (I 
use ALT+2 on Windows, CMD+2 on OSX) and it will bring up the code 
generation options.  The event generation is really valuable, as 
well.  I save so much time with it.


___
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


Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Hans Wichman
ps we're probably not the first ones discussing this old subject, has n1
found some good sources/references?
Most of the old CS textbooks sentence you to hell for using public variables
so let's not refer to those ;)

On Wed, Dec 10, 2008 at 8:28 AM, Hans Wichman 
[EMAIL PROTECTED] wrote:

 Hey,

 I'm not against using public variables, but I dont like using get set as
 you did below *if *setting the data has sideeffects outside the area of
 validation.
 If you are setting a property and you want to test or verify it or
 whatever, I can imagine using set get.
 If you are setting a property and it causes state changes or whatever I
 like to use an explicit method. Yeah you can mouse over it, codeinspect it
 or whatever and see it's an implicit get/setter, but just looking at an
 interface I find it easer to have either public methods or properties and
 not something in between that lends itself to misuse (ie this set data WAS
 only validating, but damn now it needs to change state as well, ah heck,
 lets cram in there instead of )

 So for me it's usually either a public var or a method.

 And there's more behind it than good coders being forced to work with bad
 coders at least as far as the public variables are concerned, it has to do
 with the whole mumbo jumbo of the OO asking versus simply taking. An object
 giving access to its internals instead of an object grabbing access,
 although in a lot of cases it doesn't pay to make such an academic
 distinction.

 I liked the clear explanation Steven gave, although comparing it to
 masturbating sounds a bit like promoting it ;0)

 JC




 And a *big* +1 for this:



 That being said, I don't abide by the retarded rule that you shouldn't
 have public vars in a class.


 regards,
 Muzak

 - Original Message - From: Steven Sacks 
 [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, December 10, 2008 5:01 AM
 Subject: Re: [Flashcoders] use get / set functions or make your own


  For clarity, they're referred to as implicit and explicit.

 get prop / set prop = implicit
 getProp() / setProp = explicit

 In AS2, it made a difference because implicits were available right away,
 whereas explicits were not available for 1 frame.  This limitation is not
 present in AS3.

 Basically, implicit implies properties of a class, whereas explicit
 implies methods of a class.

 I opt for implicit over explicit because this:

 foo.prop = value;

 makes more sense than

 foo.setProp(value);

 I leave methods for methods, not properties.

 That being said, I don't abide by the retarded rule that you shouldn't
 have public vars in a class.  People who do this

 private var _foo:Boolean;
 public function get foo():Boolean { return _foo; }
 public function set foo(value:Boolean):void { _foo = value; }

 are masturbating and I'm not impressed by their bloated ego...I mean
 code. ;)

 Unless something needs to happen immediately within the class when you
 set or get a prop (i.e. a state change), it's fine for it to be a public
 var.  It's faster, it's less bloat and most of us aren't writing large
 applications with a bunch of other developers.  Some of these rules were
 created for when good coders are forced to work with bad coders and the good
 ones need to protect their code from the bad ones.  When it's just you and a
 couple other devs, and you're all competent, you don't need all these checks
 and balances that are nothing more than compensation for people who you wish
 you didn't have to code with.  /rant   ;)



  ___
 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


Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Hans Wichman
Hey,

I'm not against using public variables, but I dont like using get set as you
did below *if *setting the data has sideeffects outside the area of
validation.
If you are setting a property and you want to test or verify it or whatever,
I can imagine using set get.
If you are setting a property and it causes state changes or whatever I like
to use an explicit method. Yeah you can mouse over it, codeinspect it or
whatever and see it's an implicit get/setter, but just looking at an
interface I find it easer to have either public methods or properties and
not something in between that lends itself to misuse (ie this set data WAS
only validating, but damn now it needs to change state as well, ah heck,
lets cram in there instead of )

So for me it's usually either a public var or a method.

And there's more behind it than good coders being forced to work with bad
coders at least as far as the public variables are concerned, it has to do
with the whole mumbo jumbo of the OO asking versus simply taking. An object
giving access to its internals instead of an object grabbing access,
although in a lot of cases it doesn't pay to make such an academic
distinction.

I liked the clear explanation Steven gave, although comparing it to
masturbating sounds a bit like promoting it ;0)

JC




And a *big* +1 for this:



 That being said, I don't abide by the retarded rule that you shouldn't have
 public vars in a class.


 regards,
 Muzak

 - Original Message - From: Steven Sacks 
 [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, December 10, 2008 5:01 AM
 Subject: Re: [Flashcoders] use get / set functions or make your own


  For clarity, they're referred to as implicit and explicit.

 get prop / set prop = implicit
 getProp() / setProp = explicit

 In AS2, it made a difference because implicits were available right away,
 whereas explicits were not available for 1 frame.  This limitation is not
 present in AS3.

 Basically, implicit implies properties of a class, whereas explicit
 implies methods of a class.

 I opt for implicit over explicit because this:

 foo.prop = value;

 makes more sense than

 foo.setProp(value);

 I leave methods for methods, not properties.

 That being said, I don't abide by the retarded rule that you shouldn't
 have public vars in a class.  People who do this

 private var _foo:Boolean;
 public function get foo():Boolean { return _foo; }
 public function set foo(value:Boolean):void { _foo = value; }

 are masturbating and I'm not impressed by their bloated ego...I mean code.
 ;)

 Unless something needs to happen immediately within the class when you set
 or get a prop (i.e. a state change), it's fine for it to be a public var.
  It's faster, it's less bloat and most of us aren't writing large
 applications with a bunch of other developers.  Some of these rules were
 created for when good coders are forced to work with bad coders and the good
 ones need to protect their code from the bad ones.  When it's just you and a
 couple other devs, and you're all competent, you don't need all these checks
 and balances that are nothing more than compensation for people who you wish
 you didn't have to code with.  /rant   ;)



  ___
 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