RE: [Flashcoders] A Question that I've been asking for years!!

2008-08-26 Thread Cor
An interface is used to control that the classes who extends the interface 
mandatory have at least the same methods and properties.
So when you work in a team of programmers/developers everyone using/extending 
this class MUST confirm all these methods and properties.

HTH
Cor  ;-) 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Omar Fouad
Sent: dinsdag 26 augustus 2008 0:40
To: Flash Coders List
Subject: [Flashcoders] A Question that I've been asking for years!!

This could seem weird...
But what the hell is an interface!!! I've read lots of books and
posts without getting the answer. I bought Essential AS3 to read about
interfaces and he says that helps for multi inheritance. In other places I
read that it is a deal to ensure that a class has some methods and so on.
But what is the real benefit that I can come out with using interfaces

Maybe that is stupidity or I am not smart enough to get the concept but
believe me... its is been two years now!!

Please Help!!!

-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
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] A Question that I've been asking for years!!

2008-08-26 Thread Claus Wahlers

An example is worth a thousand words.

public interface IBounce {
   function bounce():void;
}

public class Balls implements IBounce {
   public function bounce():void { }
}

public class Boobs implements IBounce {
   public function bounce():void { }
}

var balls:Balls = new Balls();
var boobs:Boobs = new Boobs();
doSomethingWith(balls);
doSomethingWith(boobs);

function doSomethingWith(bouncyObject:IBounce):void {
   bouncyObject.bounce();
}

Cheers,
Claus.

Omar Fouad wrote:


This could seem weird...
But what the hell is an interface!!! I've read lots of books and
posts without getting the answer. I bought Essential AS3 to read about
interfaces and he says that helps for multi inheritance. In other places I
read that it is a deal to ensure that a class has some methods and so on.
But what is the real benefit that I can come out with using interfaces

Maybe that is stupidity or I am not smart enough to get the concept but
believe me... its is been two years now!!

Please Help!!!




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


RE: [Flashcoders] A Question that I've been asking for years!!

2008-08-26 Thread Cor
Very good, Claus,

Do you have a visual of this... LOL

Regards
Cor

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Claus Wahlers
Sent: dinsdag 26 augustus 2008 9:42
To: Flash Coders List
Subject: Re: [Flashcoders] A Question that I've been asking for years!!

An example is worth a thousand words.

public interface IBounce {
function bounce():void;
}

public class Balls implements IBounce {
public function bounce():void { }
}

public class Boobs implements IBounce {
public function bounce():void { }
}

var balls:Balls = new Balls();
var boobs:Boobs = new Boobs();
doSomethingWith(balls);
doSomethingWith(boobs);

function doSomethingWith(bouncyObject:IBounce):void {
bouncyObject.bounce();
}

Cheers,
Claus.

Omar Fouad wrote:

 This could seem weird...
 But what the hell is an interface!!! I've read lots of books and
 posts without getting the answer. I bought Essential AS3 to read about
 interfaces and he says that helps for multi inheritance. In other places I
 read that it is a deal to ensure that a class has some methods and so on.
 But what is the real benefit that I can come out with using interfaces
 
 Maybe that is stupidity or I am not smart enough to get the concept but
 believe me... its is been two years now!!
 
 Please Help!!!
 


___
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] TweenMax help needed

2008-08-26 Thread allandt bik-elliott (thefieldcomic.com)
man - that would be sweet - i'll send it now

a

On Tue, Aug 26, 2008 at 3:10 AM, Jack Doyle [EMAIL PROTECTED] wrote:

 Absolutely not - I've never heard of (or experienced) any problems with
 intervals and TweenMax. I can't imagine anything TweenMax-related that
 would
 cause the problems you described. I'd love to see your code, though. The
 reason for the delayedCall() in TweenMax is just convenience. Timing is
 synchronized with tweens and you can pause/resume all the delayed calls
 (and/or tweens) at once.

 Feel free to send me your code - I'm sure we can figure out what the issue
 was.

 Jack

 -Original Message-
 From: Allandt Bik-Elliott (Receptacle) [mailto:
 [EMAIL PROTECTED]

 Sent: Monday, August 25, 2008 12:38 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] TweenMax help needed

 sweet

 i actually found a workaround for my issue - i used the
 TweenMax.delayedCall to run my functions instead of running delay:
 and delayIncrement: and that seemed to fix the problem i had.

 On a side note - i was using a setInterval to add pauses in between
 firing the different tweens i was doing (as part of a larger
 animation manager package) and it seemed to have problems doing both
 the tweens and the interval - the numbers i was passing to the
 interval were behaving very strangely - they were behaving like
 seconds rather than milliseconds and the whole interval would fall
 over after a couple of calls (hence me digging into the tweenmax api
 for the delay and delayedCall options). So it would seem that
 TweenMax doesn't play nice with setInterval. Is this a recognised
 issue (and the reason for a delayedCall method)?

 a


 On 24 Aug 2008, at 16:34, Jack Doyle wrote:

  Sure, you can use delay and delayIncrement together in a
  TweenMax.allTo()
  call. They work great together.
 
  Also, I should mention that I'm releasing a pretty significant
  upgrade to
  the TweenLite/TweenFilterLite/TweenMax family soon. Probably the
  biggest
  enhancement has to do with a new OverwriteManager class that gives
  you lots
  of control of how (and if) tweens handle overlaps/conflicts,
  including an
  AUTO mode that only overwrites individual overlapping properties
  instead
  of the entire tweens. There are actually 4 modes from which to
  choose (NONE,
  ALL, AUTO, and CONCURRENT). This means you'll probably never have
  to type
  overwrite:false again. Keep an eye on http://blog.greensock.com
  for the
  announcement.
 
  If anyone would like me to e-mail them when the update is ready,
  just let me
  know by sending me an e-mail with TweenMax update in the subject.
 
  Jack
 
 
  -Original Message-
  From: allandt bik-elliott (thefieldcomic.com)
  [mailto:[EMAIL PROTECTED]
  Sent: Friday, August 22, 2008 10:27 AM
  To: Flash Coders List
  Subject: [Flashcoders] TweenMax help needed
 
  hi folks - i have a quick question
 
  can anyone tell me if i use delay and delayIncrement in the same
  TweenMax
  call, will they clash?
 
  so
 
  will delayIncrement:0.05 and delay:_delay overwrite each other?
  TweenMax.allTo(aTilesToMove, .2, {_y:nMoveAmount, ease:Quad.easeIn,
  delayIncrement:0.05, overwrite:false, , onStart:nextAnimationFrame,
  onStartParams:[_oAnimationObject]});
 
  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] OT: List of all uk towns and cities with their longitude and latitudes

2008-08-26 Thread Paul Steven
I am creating a UK based estate agent site and would like to implement a 
proximity search function.

i.e the user would type in the area that they are looking for a house as well 
as a search radius and the site would display a list of all matching houses for 
sale in this area.

I am assuming I will need a list of every town, village and city in the UK with 
their associated longitude and latitude however I am really struggling to find 
one. Can anyone suggest where I can find such a list. I don't mind paying for 
one assuming I don't have to sell my house to do so.

If I can get this list, then my theory is to use pythagoras theorem to work out 
which properties are within the specified radius. Not sure how practical this 
will be.

So if anyone has created similar functionality I would really appreciate some 
tips.

Thanks in advance

Paul


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


[Flashcoders] is there a recognised date format for xml?

2008-08-26 Thread allandt bik-elliott (thefieldcomic.com)
hi guys

i'm speccing an xml file for a server side dev that needs to return a target
date and time and i wanted to make sure i wasn't doing anything stupid

what would a php dev be expecting to use for time / date and how would that
be supplied in an xml file? And what would the best way of converting the
return string for flash to use?

I was thinking something along the lines of
data date=2008,08,26 time=12,0,0 /

and using something like

var sDate:String = node.attributes.date;
var sTime:String = node.attributes.time;

var arDate:Array = sDate.split(,);
var nYear:Number = Number(arDate[0]);
var nMonth:Number = Number(arDate[1]-1); // months start at 0
var nDate:Number = Number(arDate[2]);

var arTime:Array = sTime.split(,);
var nTimeHours:Number = Number(arTime[0]);
var nTimeMinutes:Number = Number(arTime[1]);
var nTimeSeconds:Number = Number(arTime[2]);

var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
nTimeMinutes, nTimeSeconds);
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] is there a recognised date format for xml?

2008-08-26 Thread Cor
In PHP you can do whatever you want: see http://nl.php.net/date
I think it can also depend on your server.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of allandt
bik-elliott (thefieldcomic.com)
Sent: dinsdag 26 augustus 2008 11:48
To: Flash Coders List
Subject: [Flashcoders] is there a recognised date format for xml?

hi guys

i'm speccing an xml file for a server side dev that needs to return a target
date and time and i wanted to make sure i wasn't doing anything stupid

what would a php dev be expecting to use for time / date and how would that
be supplied in an xml file? And what would the best way of converting the
return string for flash to use?

I was thinking something along the lines of
data date=2008,08,26 time=12,0,0 /

and using something like

var sDate:String = node.attributes.date;
var sTime:String = node.attributes.time;

var arDate:Array = sDate.split(,);
var nYear:Number = Number(arDate[0]);
var nMonth:Number = Number(arDate[1]-1); // months start at 0
var nDate:Number = Number(arDate[2]);

var arTime:Array = sTime.split(,);
var nTimeHours:Number = Number(arTime[0]);
var nTimeMinutes:Number = Number(arTime[1]);
var nTimeSeconds:Number = Number(arTime[2]);

var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
nTimeMinutes, nTimeSeconds);
___
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] OT: List of all uk towns and cities with their longitude and latitudes

2008-08-26 Thread Pedro Kostelec
Hm, all i found with google is that

http://www.thesite.co.uk/
http://www.british-towns.net/england.asp

Websites that may use such a thing that you need. Perhpas contacting their
owner you may get more information where they got their lists.

**

*Pedro D. Kostelec*
[EMAIL PROTECTED]





On Tue, Aug 26, 2008 at 4:52 AM, Paul Steven [EMAIL PROTECTED]wrote:

 I am creating a UK based estate agent site and would like to implement a
 proximity search function.

 i.e the user would type in the area that they are looking for a house as
 well as a search radius and the site would display a list of all matching
 houses for sale in this area.

 I am assuming I will need a list of every town, village and city in the UK
 with their associated longitude and latitude however I am really struggling
 to find one. Can anyone suggest where I can find such a list. I don't mind
 paying for one assuming I don't have to sell my house to do so.

 If I can get this list, then my theory is to use pythagoras theorem to work
 out which properties are within the specified radius. Not sure how practical
 this will be.

 So if anyone has created similar functionality I would really appreciate
 some tips.

 Thanks in advance

 Paul


 ___
 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] is there a recognised date format for xml?

2008-08-26 Thread Kenneth Kawamoto
If so I'd ask my PHP coder to generate formatted string so that I need 
to code less ;)


e.g.
var xml:XML = data date=Tue Aug 26 12:00:00 GMT 2008 /
var targetDate:Date = new Date([EMAIL PROTECTED]());

...a lot less code than yours!

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Cor wrote:

In PHP you can do whatever you want: see http://nl.php.net/date
I think it can also depend on your server.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of allandt
bik-elliott (thefieldcomic.com)
Sent: dinsdag 26 augustus 2008 11:48
To: Flash Coders List
Subject: [Flashcoders] is there a recognised date format for xml?

hi guys

i'm speccing an xml file for a server side dev that needs to return a target
date and time and i wanted to make sure i wasn't doing anything stupid

what would a php dev be expecting to use for time / date and how would that
be supplied in an xml file? And what would the best way of converting the
return string for flash to use?

I was thinking something along the lines of
data date=2008,08,26 time=12,0,0 /

and using something like

var sDate:String = node.attributes.date;
var sTime:String = node.attributes.time;

var arDate:Array = sDate.split(,);
var nYear:Number = Number(arDate[0]);
var nMonth:Number = Number(arDate[1]-1); // months start at 0
var nDate:Number = Number(arDate[2]);

var arTime:Array = sTime.split(,);
var nTimeHours:Number = Number(arTime[0]);
var nTimeMinutes:Number = Number(arTime[1]);
var nTimeSeconds:Number = Number(arTime[2]);

var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
nTimeMinutes, nTimeSeconds);

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


RE: [Flashcoders] is there a recognised date format for xml?

2008-08-26 Thread Cor
Yes, but still it is depending of the localtime.

Trace(targetDate); gives me in the Netherlands: Tue Aug 26 12:00:00 GMT+0200
2008



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
Kawamoto
Sent: dinsdag 26 augustus 2008 12:22
To: Flash Coders List
Subject: Re: [Flashcoders] is there a recognised date format for xml?

If so I'd ask my PHP coder to generate formatted string so that I need 
to code less ;)

e.g.
var xml:XML = data date=Tue Aug 26 12:00:00 GMT 2008 /
var targetDate:Date = new Date([EMAIL PROTECTED]());

...a lot less code than yours!

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Cor wrote:
 In PHP you can do whatever you want: see http://nl.php.net/date
 I think it can also depend on your server.
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of allandt
 bik-elliott (thefieldcomic.com)
 Sent: dinsdag 26 augustus 2008 11:48
 To: Flash Coders List
 Subject: [Flashcoders] is there a recognised date format for xml?
 
 hi guys
 
 i'm speccing an xml file for a server side dev that needs to return a
target
 date and time and i wanted to make sure i wasn't doing anything stupid
 
 what would a php dev be expecting to use for time / date and how would
that
 be supplied in an xml file? And what would the best way of converting the
 return string for flash to use?
 
 I was thinking something along the lines of
 data date=2008,08,26 time=12,0,0 /
 
 and using something like
 
 var sDate:String = node.attributes.date;
 var sTime:String = node.attributes.time;
 
 var arDate:Array = sDate.split(,);
 var nYear:Number = Number(arDate[0]);
 var nMonth:Number = Number(arDate[1]-1); // months start at 0
 var nDate:Number = Number(arDate[2]);
 
 var arTime:Array = sTime.split(,);
 var nTimeHours:Number = Number(arTime[0]);
 var nTimeMinutes:Number = Number(arTime[1]);
 var nTimeSeconds:Number = Number(arTime[2]);
 
 var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
 nTimeMinutes, nTimeSeconds);
___
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] is there a recognised date format for xml?

2008-08-26 Thread Kenneth Kawamoto

Isn't that always the case no matter how you construct the date object?

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Cor wrote:

Yes, but still it is depending of the localtime.

Trace(targetDate); gives me in the Netherlands: Tue Aug 26 12:00:00 GMT+0200
2008



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
Kawamoto
Sent: dinsdag 26 augustus 2008 12:22
To: Flash Coders List
Subject: Re: [Flashcoders] is there a recognised date format for xml?

If so I'd ask my PHP coder to generate formatted string so that I need 
to code less ;)


e.g.
var xml:XML = data date=Tue Aug 26 12:00:00 GMT 2008 /
var targetDate:Date = new Date([EMAIL PROTECTED]());

...a lot less code than yours!

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Cor wrote:

In PHP you can do whatever you want: see http://nl.php.net/date
I think it can also depend on your server.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of allandt
bik-elliott (thefieldcomic.com)
Sent: dinsdag 26 augustus 2008 11:48
To: Flash Coders List
Subject: [Flashcoders] is there a recognised date format for xml?

hi guys

i'm speccing an xml file for a server side dev that needs to return a

target

date and time and i wanted to make sure i wasn't doing anything stupid

what would a php dev be expecting to use for time / date and how would

that

be supplied in an xml file? And what would the best way of converting the
return string for flash to use?

I was thinking something along the lines of
data date=2008,08,26 time=12,0,0 /

and using something like

var sDate:String = node.attributes.date;
var sTime:String = node.attributes.time;

var arDate:Array = sDate.split(,);
var nYear:Number = Number(arDate[0]);
var nMonth:Number = Number(arDate[1]-1); // months start at 0
var nDate:Number = Number(arDate[2]);

var arTime:Array = sTime.split(,);
var nTimeHours:Number = Number(arTime[0]);
var nTimeMinutes:Number = Number(arTime[1]);
var nTimeSeconds:Number = Number(arTime[2]);

var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
nTimeMinutes, nTimeSeconds);



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


Re: [Flashcoders] A Question that I've been asking for years!!

2008-08-26 Thread Hans Wichman
Hi,

interfaces are pretty simple in reality and they are everywhere.
Imagine every wall outlet looked different, and not only different, but that
in order to use them, you had to remove the outlet first, take a look at the
wiring and then bolt it back on with you finally knowing how to use it.

Would we accept that as a fact of life? No sir.
So what would we do?

We'd come up with a brilliant plan to take over the world, and it involves
agreeing on what a wall outlet looks like and what we expect it to do. So no
matter the device I want to plug in, as long as my device agrees with the
interface it has been offered, it's good to go.

Will it work without problems everywhere and always? Nah try to plug in your
dutch mp3player in the uk, no go, but within a certain context they can work
wonders.

hth :)
JC

On Tue, Aug 26, 2008 at 9:49 AM, Cor [EMAIL PROTECTED] wrote:

 Very good, Claus,

 Do you have a visual of this... LOL

 Regards
 Cor

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of Claus Wahlers
 Sent: dinsdag 26 augustus 2008 9:42
 To: Flash Coders List
  Subject: Re: [Flashcoders] A Question that I've been asking for years!!

 An example is worth a thousand words.

 public interface IBounce {
function bounce():void;
 }

 public class Balls implements IBounce {
public function bounce():void { }
 }

 public class Boobs implements IBounce {
public function bounce():void { }
 }

 var balls:Balls = new Balls();
 var boobs:Boobs = new Boobs();
 doSomethingWith(balls);
 doSomethingWith(boobs);

 function doSomethingWith(bouncyObject:IBounce):void {
bouncyObject.bounce();
 }

 Cheers,
 Claus.

 Omar Fouad wrote:

  This could seem weird...
  But what the hell is an interface!!! I've read lots of books and
  posts without getting the answer. I bought Essential AS3 to read about
  interfaces and he says that helps for multi inheritance. In other places
 I
  read that it is a deal to ensure that a class has some methods and so
 on.
  But what is the real benefit that I can come out with using
 interfaces
 
  Maybe that is stupidity or I am not smart enough to get the concept but
  believe me... its is been two years now!!
 
  Please Help!!!
 


 ___
 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] is there a recognised date format for xml?

2008-08-26 Thread Cor
Mmmm, I don't know??
Somebody out there who does???

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
Kawamoto
Sent: dinsdag 26 augustus 2008 12:43
To: 'Flash Coders List'
Subject: Re: [Flashcoders] is there a recognised date format for xml?

Isn't that always the case no matter how you construct the date object?

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Cor wrote:
 Yes, but still it is depending of the localtime.
 
 Trace(targetDate); gives me in the Netherlands: Tue Aug 26 12:00:00
GMT+0200
 2008
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
 Kawamoto
 Sent: dinsdag 26 augustus 2008 12:22
 To: Flash Coders List
 Subject: Re: [Flashcoders] is there a recognised date format for xml?
 
 If so I'd ask my PHP coder to generate formatted string so that I need 
 to code less ;)
 
 e.g.
 var xml:XML = data date=Tue Aug 26 12:00:00 GMT 2008 /
 var targetDate:Date = new Date([EMAIL PROTECTED]());
 
 ...a lot less code than yours!
 
 Kenneth Kawamoto
 http://www.materiaprima.co.uk/
 
 Cor wrote:
 In PHP you can do whatever you want: see http://nl.php.net/date
 I think it can also depend on your server.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of allandt
 bik-elliott (thefieldcomic.com)
 Sent: dinsdag 26 augustus 2008 11:48
 To: Flash Coders List
 Subject: [Flashcoders] is there a recognised date format for xml?

 hi guys

 i'm speccing an xml file for a server side dev that needs to return a
 target
 date and time and i wanted to make sure i wasn't doing anything stupid

 what would a php dev be expecting to use for time / date and how would
 that
 be supplied in an xml file? And what would the best way of converting the
 return string for flash to use?

 I was thinking something along the lines of
 data date=2008,08,26 time=12,0,0 /

 and using something like

 var sDate:String = node.attributes.date;
 var sTime:String = node.attributes.time;

 var arDate:Array = sDate.split(,);
 var nYear:Number = Number(arDate[0]);
 var nMonth:Number = Number(arDate[1]-1); // months start at 0
 var nDate:Number = Number(arDate[2]);

 var arTime:Array = sTime.split(,);
 var nTimeHours:Number = Number(arTime[0]);
 var nTimeMinutes:Number = Number(arTime[1]);
 var nTimeSeconds:Number = Number(arTime[2]);

 var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
 nTimeMinutes, nTimeSeconds);
 
___
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] is there a recognised date format for xml?

2008-08-26 Thread allandt bik-elliott (thefieldcomic.com)
hmm - this is actually an as2 class so i wouldn't be able to use
toXMLString() - is there anything similar i can use, do you think?

a

On Tue, Aug 26, 2008 at 11:28 AM, Cor [EMAIL PROTECTED] wrote:

 Yes, but still it is depending of the localtime.

 Trace(targetDate); gives me in the Netherlands: Tue Aug 26 12:00:00
 GMT+0200
 2008



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
 Kawamoto
 Sent: dinsdag 26 augustus 2008 12:22
 To: Flash Coders List
 Subject: Re: [Flashcoders] is there a recognised date format for xml?

 If so I'd ask my PHP coder to generate formatted string so that I need
 to code less ;)

 e.g.
 var xml:XML = data date=Tue Aug 26 12:00:00 GMT 2008 /
 var targetDate:Date = new Date([EMAIL PROTECTED]());

 ...a lot less code than yours!

 Kenneth Kawamoto
 http://www.materiaprima.co.uk/

 Cor wrote:
  In PHP you can do whatever you want: see http://nl.php.net/date
  I think it can also depend on your server.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of allandt
  bik-elliott (thefieldcomic.com)
  Sent: dinsdag 26 augustus 2008 11:48
  To: Flash Coders List
  Subject: [Flashcoders] is there a recognised date format for xml?
 
  hi guys
 
  i'm speccing an xml file for a server side dev that needs to return a
 target
  date and time and i wanted to make sure i wasn't doing anything stupid
 
  what would a php dev be expecting to use for time / date and how would
 that
  be supplied in an xml file? And what would the best way of converting the
  return string for flash to use?
 
  I was thinking something along the lines of
  data date=2008,08,26 time=12,0,0 /
 
  and using something like
 
  var sDate:String = node.attributes.date;
  var sTime:String = node.attributes.time;
 
  var arDate:Array = sDate.split(,);
  var nYear:Number = Number(arDate[0]);
  var nMonth:Number = Number(arDate[1]-1); // months start at 0
  var nDate:Number = Number(arDate[2]);
 
  var arTime:Array = sTime.split(,);
  var nTimeHours:Number = Number(arTime[0]);
  var nTimeMinutes:Number = Number(arTime[1]);
  var nTimeSeconds:Number = Number(arTime[2]);
 
  var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
  nTimeMinutes, nTimeSeconds);
 ___
 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] is there a recognised date format for xml?

2008-08-26 Thread allandt bik-elliott (thefieldcomic.com)
this also needs to be used in a countdown - so i could maybe get the server
to give it's current time and the target time and countdown between the 2?

a

On Tue, Aug 26, 2008 at 11:43 AM, Kenneth Kawamoto 
[EMAIL PROTECTED] wrote:

 Isn't that always the case no matter how you construct the date object?


 Kenneth Kawamoto
 http://www.materiaprima.co.uk/

 Cor wrote:

 Yes, but still it is depending of the localtime.

 Trace(targetDate); gives me in the Netherlands: Tue Aug 26 12:00:00
 GMT+0200
 2008



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
 Kawamoto
 Sent: dinsdag 26 augustus 2008 12:22
 To: Flash Coders List
 Subject: Re: [Flashcoders] is there a recognised date format for xml?

 If so I'd ask my PHP coder to generate formatted string so that I need to
 code less ;)

 e.g.
 var xml:XML = data date=Tue Aug 26 12:00:00 GMT 2008 /
 var targetDate:Date = new Date([EMAIL PROTECTED]());

 ...a lot less code than yours!

 Kenneth Kawamoto
 http://www.materiaprima.co.uk/

 Cor wrote:

 In PHP you can do whatever you want: see http://nl.php.net/date
 I think it can also depend on your server.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of allandt
 bik-elliott (thefieldcomic.com)
 Sent: dinsdag 26 augustus 2008 11:48
 To: Flash Coders List
 Subject: [Flashcoders] is there a recognised date format for xml?

 hi guys

 i'm speccing an xml file for a server side dev that needs to return a

 target

 date and time and i wanted to make sure i wasn't doing anything stupid

 what would a php dev be expecting to use for time / date and how would

 that

 be supplied in an xml file? And what would the best way of converting the
 return string for flash to use?

 I was thinking something along the lines of
 data date=2008,08,26 time=12,0,0 /

 and using something like

 var sDate:String = node.attributes.date;
 var sTime:String = node.attributes.time;

 var arDate:Array = sDate.split(,);
 var nYear:Number = Number(arDate[0]);
 var nMonth:Number = Number(arDate[1]-1); // months start at 0
 var nDate:Number = Number(arDate[2]);

 var arTime:Array = sTime.split(,);
 var nTimeHours:Number = Number(arTime[0]);
 var nTimeMinutes:Number = Number(arTime[1]);
 var nTimeSeconds:Number = Number(arTime[2]);

 var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
 nTimeMinutes, nTimeSeconds);


  ___
 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] A Question that I've been asking for years!!

2008-08-26 Thread Cor
Nice explaination Hans,

BTW to use my dutch MP3-player there is an adapter (interface) for every
country.
But maybe it would be better if the Dutch took over the world

LOL

Cor
Yeah... Dutch!!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman
Sent: dinsdag 26 augustus 2008 12:45
To: Flash Coders List
Subject: Re: [Flashcoders] A Question that I've been asking for years!!

Hi,

interfaces are pretty simple in reality and they are everywhere.
Imagine every wall outlet looked different, and not only different, but that
in order to use them, you had to remove the outlet first, take a look at the
wiring and then bolt it back on with you finally knowing how to use it.

Would we accept that as a fact of life? No sir.
So what would we do?

We'd come up with a brilliant plan to take over the world, and it involves
agreeing on what a wall outlet looks like and what we expect it to do. So no
matter the device I want to plug in, as long as my device agrees with the
interface it has been offered, it's good to go.

Will it work without problems everywhere and always? Nah try to plug in your
dutch mp3player in the uk, no go, but within a certain context they can work
wonders.

hth :)
JC

On Tue, Aug 26, 2008 at 9:49 AM, Cor [EMAIL PROTECTED] wrote:

 Very good, Claus,

 Do you have a visual of this... LOL

 Regards
 Cor

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of Claus Wahlers
 Sent: dinsdag 26 augustus 2008 9:42
 To: Flash Coders List
  Subject: Re: [Flashcoders] A Question that I've been asking for years!!

 An example is worth a thousand words.

 public interface IBounce {
function bounce():void;
 }

 public class Balls implements IBounce {
public function bounce():void { }
 }

 public class Boobs implements IBounce {
public function bounce():void { }
 }

 var balls:Balls = new Balls();
 var boobs:Boobs = new Boobs();
 doSomethingWith(balls);
 doSomethingWith(boobs);

 function doSomethingWith(bouncyObject:IBounce):void {
bouncyObject.bounce();
 }

 Cheers,
 Claus.

 Omar Fouad wrote:

  This could seem weird...
  But what the hell is an interface!!! I've read lots of books and
  posts without getting the answer. I bought Essential AS3 to read about
  interfaces and he says that helps for multi inheritance. In other places
 I
  read that it is a deal to ensure that a class has some methods and so
 on.
  But what is the real benefit that I can come out with using
 interfaces
 
  Maybe that is stupidity or I am not smart enough to get the concept but
  believe me... its is been two years now!!
 
  Please Help!!!
 


 ___
 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] is there a recognised date format for xml?

2008-08-26 Thread allandt bik-elliott (thefieldcomic.com)
yes it's local

On Tue, Aug 26, 2008 at 11:46 AM, Cor [EMAIL PROTECTED] wrote:

 Mmmm, I don't know??
 Somebody out there who does???

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
 Kawamoto
 Sent: dinsdag 26 augustus 2008 12:43
 To: 'Flash Coders List'
 Subject: Re: [Flashcoders] is there a recognised date format for xml?

 Isn't that always the case no matter how you construct the date object?

 Kenneth Kawamoto
 http://www.materiaprima.co.uk/

 Cor wrote:
  Yes, but still it is depending of the localtime.
 
  Trace(targetDate); gives me in the Netherlands: Tue Aug 26 12:00:00
 GMT+0200
  2008
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
  Kawamoto
  Sent: dinsdag 26 augustus 2008 12:22
  To: Flash Coders List
  Subject: Re: [Flashcoders] is there a recognised date format for xml?
 
  If so I'd ask my PHP coder to generate formatted string so that I need
  to code less ;)
 
  e.g.
  var xml:XML = data date=Tue Aug 26 12:00:00 GMT 2008 /
  var targetDate:Date = new Date([EMAIL PROTECTED]());
 
  ...a lot less code than yours!
 
  Kenneth Kawamoto
  http://www.materiaprima.co.uk/
 
  Cor wrote:
  In PHP you can do whatever you want: see http://nl.php.net/date
  I think it can also depend on your server.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of allandt
  bik-elliott (thefieldcomic.com)
  Sent: dinsdag 26 augustus 2008 11:48
  To: Flash Coders List
  Subject: [Flashcoders] is there a recognised date format for xml?
 
  hi guys
 
  i'm speccing an xml file for a server side dev that needs to return a
  target
  date and time and i wanted to make sure i wasn't doing anything stupid
 
  what would a php dev be expecting to use for time / date and how would
  that
  be supplied in an xml file? And what would the best way of converting
 the
  return string for flash to use?
 
  I was thinking something along the lines of
  data date=2008,08,26 time=12,0,0 /
 
  and using something like
 
  var sDate:String = node.attributes.date;
  var sTime:String = node.attributes.time;
 
  var arDate:Array = sDate.split(,);
  var nYear:Number = Number(arDate[0]);
  var nMonth:Number = Number(arDate[1]-1); // months start at 0
  var nDate:Number = Number(arDate[2]);
 
  var arTime:Array = sTime.split(,);
  var nTimeHours:Number = Number(arTime[0]);
  var nTimeMinutes:Number = Number(arTime[1]);
  var nTimeSeconds:Number = Number(arTime[2]);
 
  var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
  nTimeMinutes, nTimeSeconds);
 
 ___
 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] is there a recognised date format for xml?

2008-08-26 Thread Cor
So what if a user (from another continent) starts your app.
The difference will be greater or even before the server time.
So you would get a negative value???

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of allandt
bik-elliott (thefieldcomic.com)
Sent: dinsdag 26 augustus 2008 12:56
To: Flash Coders List
Subject: Re: [Flashcoders] is there a recognised date format for xml?

yes it's local

On Tue, Aug 26, 2008 at 11:46 AM, Cor [EMAIL PROTECTED] wrote:

 Mmmm, I don't know??
 Somebody out there who does???

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
 Kawamoto
 Sent: dinsdag 26 augustus 2008 12:43
 To: 'Flash Coders List'
 Subject: Re: [Flashcoders] is there a recognised date format for xml?

 Isn't that always the case no matter how you construct the date object?

 Kenneth Kawamoto
 http://www.materiaprima.co.uk/

 Cor wrote:
  Yes, but still it is depending of the localtime.
 
  Trace(targetDate); gives me in the Netherlands: Tue Aug 26 12:00:00
 GMT+0200
  2008
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
  Kawamoto
  Sent: dinsdag 26 augustus 2008 12:22
  To: Flash Coders List
  Subject: Re: [Flashcoders] is there a recognised date format for xml?
 
  If so I'd ask my PHP coder to generate formatted string so that I need
  to code less ;)
 
  e.g.
  var xml:XML = data date=Tue Aug 26 12:00:00 GMT 2008 /
  var targetDate:Date = new Date([EMAIL PROTECTED]());
 
  ...a lot less code than yours!
 
  Kenneth Kawamoto
  http://www.materiaprima.co.uk/
 
  Cor wrote:
  In PHP you can do whatever you want: see http://nl.php.net/date
  I think it can also depend on your server.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of allandt
  bik-elliott (thefieldcomic.com)
  Sent: dinsdag 26 augustus 2008 11:48
  To: Flash Coders List
  Subject: [Flashcoders] is there a recognised date format for xml?
 
  hi guys
 
  i'm speccing an xml file for a server side dev that needs to return a
  target
  date and time and i wanted to make sure i wasn't doing anything stupid
 
  what would a php dev be expecting to use for time / date and how would
  that
  be supplied in an xml file? And what would the best way of converting
 the
  return string for flash to use?
 
  I was thinking something along the lines of
  data date=2008,08,26 time=12,0,0 /
 
  and using something like
 
  var sDate:String = node.attributes.date;
  var sTime:String = node.attributes.time;
 
  var arDate:Array = sDate.split(,);
  var nYear:Number = Number(arDate[0]);
  var nMonth:Number = Number(arDate[1]-1); // months start at 0
  var nDate:Number = Number(arDate[2]);
 
  var arTime:Array = sTime.split(,);
  var nTimeHours:Number = Number(arTime[0]);
  var nTimeMinutes:Number = Number(arTime[1]);
  var nTimeSeconds:Number = Number(arTime[2]);
 
  var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
  nTimeMinutes, nTimeSeconds);
 
 ___
 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] is there a recognised date format for xml?

2008-08-26 Thread allandt bik-elliott (thefieldcomic.com)
The app is designed for people only in the uk - it will show the current
time and the amount of time remaining until the countdown is finished so it
will probably be worth giving the time based on the server time and setting
the time in flash based on that

the original question was about the best practise for getting the time for
flash from xml

thanks for the input so far guys
a

On Tue, Aug 26, 2008 at 12:16 PM, Cor [EMAIL PROTECTED] wrote:

 So what if a user (from another continent) starts your app.
 The difference will be greater or even before the server time.
 So you would get a negative value???

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of allandt
 bik-elliott (thefieldcomic.com)
 Sent: dinsdag 26 augustus 2008 12:56
 To: Flash Coders List
 Subject: Re: [Flashcoders] is there a recognised date format for xml?

 yes it's local

 On Tue, Aug 26, 2008 at 11:46 AM, Cor [EMAIL PROTECTED] wrote:

  Mmmm, I don't know??
  Somebody out there who does???
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
  Kawamoto
  Sent: dinsdag 26 augustus 2008 12:43
  To: 'Flash Coders List'
  Subject: Re: [Flashcoders] is there a recognised date format for xml?
 
  Isn't that always the case no matter how you construct the date object?
 
  Kenneth Kawamoto
  http://www.materiaprima.co.uk/
 
  Cor wrote:
   Yes, but still it is depending of the localtime.
  
   Trace(targetDate); gives me in the Netherlands: Tue Aug 26 12:00:00
  GMT+0200
   2008
  
  
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of
 Kenneth
   Kawamoto
   Sent: dinsdag 26 augustus 2008 12:22
   To: Flash Coders List
   Subject: Re: [Flashcoders] is there a recognised date format for xml?
  
   If so I'd ask my PHP coder to generate formatted string so that I need
   to code less ;)
  
   e.g.
   var xml:XML = data date=Tue Aug 26 12:00:00 GMT 2008 /
   var targetDate:Date = new Date([EMAIL PROTECTED]());
  
   ...a lot less code than yours!
  
   Kenneth Kawamoto
   http://www.materiaprima.co.uk/
  
   Cor wrote:
   In PHP you can do whatever you want: see http://nl.php.net/date
   I think it can also depend on your server.
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of
 allandt
   bik-elliott (thefieldcomic.com)
   Sent: dinsdag 26 augustus 2008 11:48
   To: Flash Coders List
   Subject: [Flashcoders] is there a recognised date format for xml?
  
   hi guys
  
   i'm speccing an xml file for a server side dev that needs to return a
   target
   date and time and i wanted to make sure i wasn't doing anything stupid
  
   what would a php dev be expecting to use for time / date and how would
   that
   be supplied in an xml file? And what would the best way of converting
  the
   return string for flash to use?
  
   I was thinking something along the lines of
   data date=2008,08,26 time=12,0,0 /
  
   and using something like
  
   var sDate:String = node.attributes.date;
   var sTime:String = node.attributes.time;
  
   var arDate:Array = sDate.split(,);
   var nYear:Number = Number(arDate[0]);
   var nMonth:Number = Number(arDate[1]-1); // months start at 0
   var nDate:Number = Number(arDate[2]);
  
   var arTime:Array = sTime.split(,);
   var nTimeHours:Number = Number(arTime[0]);
   var nTimeMinutes:Number = Number(arTime[1]);
   var nTimeSeconds:Number = Number(arTime[2]);
  
   var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
   nTimeMinutes, nTimeSeconds);
  
  ___
  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] is there a recognised date format for xml?

2008-08-26 Thread Hans Wichman
Hi,

isnt milliseconds since 1970 easier?
Something like:
date value=103810313 /
new Date ().setTime(103810313))

greetz
JC

On Tue, Aug 26, 2008 at 1:33 PM, allandt bik-elliott (thefieldcomic.com) 
[EMAIL PROTECTED] wrote:

 The app is designed for people only in the uk - it will show the current
 time and the amount of time remaining until the countdown is finished so it
 will probably be worth giving the time based on the server time and setting
 the time in flash based on that

 the original question was about the best practise for getting the time for
 flash from xml

 thanks for the input so far guys
 a

 On Tue, Aug 26, 2008 at 12:16 PM, Cor [EMAIL PROTECTED] wrote:

  So what if a user (from another continent) starts your app.
  The difference will be greater or even before the server time.
  So you would get a negative value???
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of allandt
  bik-elliott (thefieldcomic.com)
  Sent: dinsdag 26 augustus 2008 12:56
  To: Flash Coders List
  Subject: Re: [Flashcoders] is there a recognised date format for xml?
 
  yes it's local
 
  On Tue, Aug 26, 2008 at 11:46 AM, Cor [EMAIL PROTECTED] wrote:
 
   Mmmm, I don't know??
   Somebody out there who does???
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of
 Kenneth
   Kawamoto
   Sent: dinsdag 26 augustus 2008 12:43
   To: 'Flash Coders List'
   Subject: Re: [Flashcoders] is there a recognised date format for xml?
  
   Isn't that always the case no matter how you construct the date object?
  
   Kenneth Kawamoto
   http://www.materiaprima.co.uk/
  
   Cor wrote:
Yes, but still it is depending of the localtime.
   
Trace(targetDate); gives me in the Netherlands: Tue Aug 26 12:00:00
   GMT+0200
2008
   
   
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
  Kenneth
Kawamoto
Sent: dinsdag 26 augustus 2008 12:22
To: Flash Coders List
Subject: Re: [Flashcoders] is there a recognised date format for xml?
   
If so I'd ask my PHP coder to generate formatted string so that I
 need
to code less ;)
   
e.g.
var xml:XML = data date=Tue Aug 26 12:00:00 GMT 2008 /
var targetDate:Date = new Date([EMAIL PROTECTED]());
   
...a lot less code than yours!
   
Kenneth Kawamoto
http://www.materiaprima.co.uk/
   
Cor wrote:
In PHP you can do whatever you want: see http://nl.php.net/date
I think it can also depend on your server.
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
  allandt
bik-elliott (thefieldcomic.com)
Sent: dinsdag 26 augustus 2008 11:48
To: Flash Coders List
Subject: [Flashcoders] is there a recognised date format for xml?
   
hi guys
   
i'm speccing an xml file for a server side dev that needs to return
 a
target
date and time and i wanted to make sure i wasn't doing anything
 stupid
   
what would a php dev be expecting to use for time / date and how
 would
that
be supplied in an xml file? And what would the best way of
 converting
   the
return string for flash to use?
   
I was thinking something along the lines of
data date=2008,08,26 time=12,0,0 /
   
and using something like
   
var sDate:String = node.attributes.date;
var sTime:String = node.attributes.time;
   
var arDate:Array = sDate.split(,);
var nYear:Number = Number(arDate[0]);
var nMonth:Number = Number(arDate[1]-1); // months start at 0
var nDate:Number = Number(arDate[2]);
   
var arTime:Array = sTime.split(,);
var nTimeHours:Number = Number(arTime[0]);
var nTimeMinutes:Number = Number(arTime[1]);
var nTimeSeconds:Number = Number(arTime[2]);
   
var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
nTimeMinutes, nTimeSeconds);
   
   ___
   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

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] OT: List of all uk towns and cities with their longitude and latitudes

2008-08-26 Thread Andrei Thomaz
this can be interesting for you:
http://www.maxmind.com/app/ip-location

best,
andrei



On Tue, Aug 26, 2008 at 7:07 AM, Pedro Kostelec [EMAIL PROTECTED] wrote:

 Hm, all i found with google is that

 http://www.thesite.co.uk/
 http://www.british-towns.net/england.asp

 Websites that may use such a thing that you need. Perhpas contacting their
 owner you may get more information where they got their lists.

 **

 *Pedro D. Kostelec*
 [EMAIL PROTECTED]





 On Tue, Aug 26, 2008 at 4:52 AM, Paul Steven [EMAIL PROTECTED]
 wrote:

  I am creating a UK based estate agent site and would like to implement a
  proximity search function.
 
  i.e the user would type in the area that they are looking for a house as
  well as a search radius and the site would display a list of all matching
  houses for sale in this area.
 
  I am assuming I will need a list of every town, village and city in the
 UK
  with their associated longitude and latitude however I am really
 struggling
  to find one. Can anyone suggest where I can find such a list. I don't
 mind
  paying for one assuming I don't have to sell my house to do so.
 
  If I can get this list, then my theory is to use pythagoras theorem to
 work
  out which properties are within the specified radius. Not sure how
 practical
  this will be.
 
  So if anyone has created similar functionality I would really appreciate
  some tips.
 
  Thanks in advance
 
  Paul
 
 
  ___
  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] is there a recognised date format for xml?

2008-08-26 Thread allandt bik-elliott (thefieldcomic.com)
would that be the same as the php time() method? because that would be super

On Tue, Aug 26, 2008 at 1:27 PM, Hans Wichman 
[EMAIL PROTECTED] wrote:

 Hi,

 isnt milliseconds since 1970 easier?
 Something like:
 date value=103810313 /
 new Date ().setTime(103810313))

 greetz
 JC

 On Tue, Aug 26, 2008 at 1:33 PM, allandt bik-elliott (thefieldcomic.com) 
 [EMAIL PROTECTED] wrote:

  The app is designed for people only in the uk - it will show the current
  time and the amount of time remaining until the countdown is finished so
 it
  will probably be worth giving the time based on the server time and
 setting
  the time in flash based on that
 
  the original question was about the best practise for getting the time
 for
  flash from xml
 
  thanks for the input so far guys
  a
 
  On Tue, Aug 26, 2008 at 12:16 PM, Cor [EMAIL PROTECTED] wrote:
 
   So what if a user (from another continent) starts your app.
   The difference will be greater or even before the server time.
   So you would get a negative value???
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of
 allandt
   bik-elliott (thefieldcomic.com)
   Sent: dinsdag 26 augustus 2008 12:56
   To: Flash Coders List
   Subject: Re: [Flashcoders] is there a recognised date format for xml?
  
   yes it's local
  
   On Tue, Aug 26, 2008 at 11:46 AM, Cor [EMAIL PROTECTED] wrote:
  
Mmmm, I don't know??
Somebody out there who does???
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
  Kenneth
Kawamoto
Sent: dinsdag 26 augustus 2008 12:43
To: 'Flash Coders List'
Subject: Re: [Flashcoders] is there a recognised date format for xml?
   
Isn't that always the case no matter how you construct the date
 object?
   
Kenneth Kawamoto
http://www.materiaprima.co.uk/
   
Cor wrote:
 Yes, but still it is depending of the localtime.

 Trace(targetDate); gives me in the Netherlands: Tue Aug 26 12:00:00
GMT+0200
 2008



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
   Kenneth
 Kawamoto
 Sent: dinsdag 26 augustus 2008 12:22
 To: Flash Coders List
 Subject: Re: [Flashcoders] is there a recognised date format for
 xml?

 If so I'd ask my PHP coder to generate formatted string so that I
  need
 to code less ;)

 e.g.
 var xml:XML = data date=Tue Aug 26 12:00:00 GMT 2008 /
 var targetDate:Date = new Date([EMAIL PROTECTED]());

 ...a lot less code than yours!

 Kenneth Kawamoto
 http://www.materiaprima.co.uk/

 Cor wrote:
 In PHP you can do whatever you want: see http://nl.php.net/date
 I think it can also depend on your server.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
   allandt
 bik-elliott (thefieldcomic.com)
 Sent: dinsdag 26 augustus 2008 11:48
 To: Flash Coders List
 Subject: [Flashcoders] is there a recognised date format for xml?

 hi guys

 i'm speccing an xml file for a server side dev that needs to
 return
  a
 target
 date and time and i wanted to make sure i wasn't doing anything
  stupid

 what would a php dev be expecting to use for time / date and how
  would
 that
 be supplied in an xml file? And what would the best way of
  converting
the
 return string for flash to use?

 I was thinking something along the lines of
 data date=2008,08,26 time=12,0,0 /

 and using something like

 var sDate:String = node.attributes.date;
 var sTime:String = node.attributes.time;

 var arDate:Array = sDate.split(,);
 var nYear:Number = Number(arDate[0]);
 var nMonth:Number = Number(arDate[1]-1); // months start at 0
 var nDate:Number = Number(arDate[2]);

 var arTime:Array = sTime.split(,);
 var nTimeHours:Number = Number(arTime[0]);
 var nTimeMinutes:Number = Number(arTime[1]);
 var nTimeSeconds:Number = Number(arTime[2]);

 var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
 nTimeMinutes, nTimeSeconds);

___
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] is there a recognised date format for xml?

2008-08-26 Thread Ashim D'Silva
If it's specifically for a countdown, you can just ask your php guy to give
you the number of seconds to the deadline (or milliseconds if you need it).
Then just divide it up however you want. Make the class nice and clean and
unrestricted.

2008/8/26 Hans Wichman [EMAIL PROTECTED]

 Hi,

 isnt milliseconds since 1970 easier?
 Something like:
 date value=103810313 /
 new Date ().setTime(103810313))

 greetz
 JC

 On Tue, Aug 26, 2008 at 1:33 PM, allandt bik-elliott (thefieldcomic.com) 
 [EMAIL PROTECTED] wrote:

  The app is designed for people only in the uk - it will show the current
  time and the amount of time remaining until the countdown is finished so
 it
  will probably be worth giving the time based on the server time and
 setting
  the time in flash based on that
 
  the original question was about the best practise for getting the time
 for
  flash from xml
 
  thanks for the input so far guys
  a
 
  On Tue, Aug 26, 2008 at 12:16 PM, Cor [EMAIL PROTECTED] wrote:
 
   So what if a user (from another continent) starts your app.
   The difference will be greater or even before the server time.
   So you would get a negative value???
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of
 allandt
   bik-elliott (thefieldcomic.com)
   Sent: dinsdag 26 augustus 2008 12:56
   To: Flash Coders List
   Subject: Re: [Flashcoders] is there a recognised date format for xml?
  
   yes it's local
  
   On Tue, Aug 26, 2008 at 11:46 AM, Cor [EMAIL PROTECTED] wrote:
  
Mmmm, I don't know??
Somebody out there who does???
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
  Kenneth
Kawamoto
Sent: dinsdag 26 augustus 2008 12:43
To: 'Flash Coders List'
Subject: Re: [Flashcoders] is there a recognised date format for xml?
   
Isn't that always the case no matter how you construct the date
 object?
   
Kenneth Kawamoto
http://www.materiaprima.co.uk/
   
Cor wrote:
 Yes, but still it is depending of the localtime.

 Trace(targetDate); gives me in the Netherlands: Tue Aug 26 12:00:00
GMT+0200
 2008



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
   Kenneth
 Kawamoto
 Sent: dinsdag 26 augustus 2008 12:22
 To: Flash Coders List
 Subject: Re: [Flashcoders] is there a recognised date format for
 xml?

 If so I'd ask my PHP coder to generate formatted string so that I
  need
 to code less ;)

 e.g.
 var xml:XML = data date=Tue Aug 26 12:00:00 GMT 2008 /
 var targetDate:Date = new Date([EMAIL PROTECTED]());

 ...a lot less code than yours!

 Kenneth Kawamoto
 http://www.materiaprima.co.uk/

 Cor wrote:
 In PHP you can do whatever you want: see http://nl.php.net/date
 I think it can also depend on your server.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
   allandt
 bik-elliott (thefieldcomic.com)
 Sent: dinsdag 26 augustus 2008 11:48
 To: Flash Coders List
 Subject: [Flashcoders] is there a recognised date format for xml?

 hi guys

 i'm speccing an xml file for a server side dev that needs to
 return
  a
 target
 date and time and i wanted to make sure i wasn't doing anything
  stupid

 what would a php dev be expecting to use for time / date and how
  would
 that
 be supplied in an xml file? And what would the best way of
  converting
the
 return string for flash to use?

 I was thinking something along the lines of
 data date=2008,08,26 time=12,0,0 /

 and using something like

 var sDate:String = node.attributes.date;
 var sTime:String = node.attributes.time;

 var arDate:Array = sDate.split(,);
 var nYear:Number = Number(arDate[0]);
 var nMonth:Number = Number(arDate[1]-1); // months start at 0
 var nDate:Number = Number(arDate[2]);

 var arTime:Array = sTime.split(,);
 var nTimeHours:Number = Number(arTime[0]);
 var nTimeMinutes:Number = Number(arTime[1]);
 var nTimeSeconds:Number = Number(arTime[2]);

 var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
 nTimeMinutes, nTimeSeconds);

___
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] is there a recognised date format for xml?

2008-08-26 Thread Hans Wichman
PHP:

Description
int time ( void )
Returns the current time measured in the number of seconds since the
Unix Epoch (January 1 1970 00:00:00 GMT).

FLASH:
setTime (Date.setTime method)
public setTime(millisecond:Number) : Number
Sets the date for the specified Date object in milliseconds since
midnight on January 1, 1970, and returns the new time in milliseconds.
Availability: ActionScript 1.0; Flash Player 5

So there might be a factor thousand difference, so you might have to
do php.time()*1000, but I don't know.

greetz
JC

On Tue, Aug 26, 2008 at 2:52 PM, allandt bik-elliott
(thefieldcomic.com) [EMAIL PROTECTED] wrote:

 would that be the same as the php time() method? because that would be super

 On Tue, Aug 26, 2008 at 1:27 PM, Hans Wichman 
 [EMAIL PROTECTED] wrote:

  Hi,
 
  isnt milliseconds since 1970 easier?
  Something like:
  date value=103810313 /
  new Date ().setTime(103810313))
 
  greetz
  JC
 
  On Tue, Aug 26, 2008 at 1:33 PM, allandt bik-elliott (thefieldcomic.com) 
  [EMAIL PROTECTED] wrote:
 
   The app is designed for people only in the uk - it will show the current
   time and the amount of time remaining until the countdown is finished so
  it
   will probably be worth giving the time based on the server time and
  setting
   the time in flash based on that
  
   the original question was about the best practise for getting the time
  for
   flash from xml
  
   thanks for the input so far guys
   a
  
   On Tue, Aug 26, 2008 at 12:16 PM, Cor [EMAIL PROTECTED] wrote:
  
So what if a user (from another continent) starts your app.
The difference will be greater or even before the server time.
So you would get a negative value???
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
  allandt
bik-elliott (thefieldcomic.com)
Sent: dinsdag 26 augustus 2008 12:56
To: Flash Coders List
Subject: Re: [Flashcoders] is there a recognised date format for xml?
   
yes it's local
   
On Tue, Aug 26, 2008 at 11:46 AM, Cor [EMAIL PROTECTED] wrote:
   
 Mmmm, I don't know??
 Somebody out there who does???

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
   Kenneth
 Kawamoto
 Sent: dinsdag 26 augustus 2008 12:43
 To: 'Flash Coders List'
 Subject: Re: [Flashcoders] is there a recognised date format for xml?

 Isn't that always the case no matter how you construct the date
  object?

 Kenneth Kawamoto
 http://www.materiaprima.co.uk/

 Cor wrote:
  Yes, but still it is depending of the localtime.
 
  Trace(targetDate); gives me in the Netherlands: Tue Aug 26 12:00:00
 GMT+0200
  2008
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
Kenneth
  Kawamoto
  Sent: dinsdag 26 augustus 2008 12:22
  To: Flash Coders List
  Subject: Re: [Flashcoders] is there a recognised date format for
  xml?
 
  If so I'd ask my PHP coder to generate formatted string so that I
   need
  to code less ;)
 
  e.g.
  var xml:XML = data date=Tue Aug 26 12:00:00 GMT 2008 /
  var targetDate:Date = new Date([EMAIL PROTECTED]());
 
  ...a lot less code than yours!
 
  Kenneth Kawamoto
  http://www.materiaprima.co.uk/
 
  Cor wrote:
  In PHP you can do whatever you want: see http://nl.php.net/date
  I think it can also depend on your server.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
allandt
  bik-elliott (thefieldcomic.com)
  Sent: dinsdag 26 augustus 2008 11:48
  To: Flash Coders List
  Subject: [Flashcoders] is there a recognised date format for xml?
 
  hi guys
 
  i'm speccing an xml file for a server side dev that needs to
  return
   a
  target
  date and time and i wanted to make sure i wasn't doing anything
   stupid
 
  what would a php dev be expecting to use for time / date and how
   would
  that
  be supplied in an xml file? And what would the best way of
   converting
 the
  return string for flash to use?
 
  I was thinking something along the lines of
  data date=2008,08,26 time=12,0,0 /
 
  and using something like
 
  var sDate:String = node.attributes.date;
  var sTime:String = node.attributes.time;
 
  var arDate:Array = sDate.split(,);
  var nYear:Number = Number(arDate[0]);
  var nMonth:Number = Number(arDate[1]-1); // months start at 0
  var nDate:Number = Number(arDate[2]);
 
  var arTime:Array = sTime.split(,);
  var nTimeHours:Number = Number(arTime[0]);
  var nTimeMinutes:Number = Number(arTime[1]);
  var nTimeSeconds:Number = Number(arTime[2]);
 
  var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
  

Re: [Flashcoders] is there a recognised date format for xml?

2008-08-26 Thread Mark Walters
This is a good format to follow for date and time in XML:
http://www.w3.org/TR/NOTE-datetime .

Eg:

   Year:
   (eg 1997)
   Year and month:
  -MM (eg 1997-07)
   Complete date:
  -MM-DD (eg 1997-07-16)
   Complete date plus hours and minutes:
  -MM-DDThh:mmTZD (eg 1997-07-16T19:20+01:00)
   Complete date plus hours, minutes and seconds:
  -MM-DDThh:mm:ssTZD (eg 1997-07-16T19:20:30+01:00)
   Complete date plus hours, minutes, seconds and a decimal fraction of a
second
  -MM-DDThh:mm:ss.sTZD (eg 1997-07-16T19:20:30.45+01:00)

where:

  = four-digit year
 MM   = two-digit month (01=January, etc.)
 DD   = two-digit day of month (01 through 31)
 hh   = two digits of hour (00 through 23) (am/pm NOT allowed)
 mm   = two digits of minute (00 through 59)
 ss   = two digits of second (00 through 59)
 s= one or more digits representing a decimal fraction of a second
 TZD  = time zone designator (Z or +hh:mm or -hh:mm)

There's even a method in the DateUtil class included in the AS3CoreLib that
parses this format.

- Mark


On Tue, Aug 26, 2008 at 5:48 AM, allandt bik-elliott (thefieldcomic.com) 
[EMAIL PROTECTED] wrote:

 hi guys

 i'm speccing an xml file for a server side dev that needs to return a
 target
 date and time and i wanted to make sure i wasn't doing anything stupid

 what would a php dev be expecting to use for time / date and how would that
 be supplied in an xml file? And what would the best way of converting the
 return string for flash to use?

 I was thinking something along the lines of
 data date=2008,08,26 time=12,0,0 /

 and using something like

 var sDate:String = node.attributes.date;
 var sTime:String = node.attributes.time;

 var arDate:Array = sDate.split(,);
 var nYear:Number = Number(arDate[0]);
 var nMonth:Number = Number(arDate[1]-1); // months start at 0
 var nDate:Number = Number(arDate[2]);

 var arTime:Array = sTime.split(,);
 var nTimeHours:Number = Number(arTime[0]);
 var nTimeMinutes:Number = Number(arTime[1]);
 var nTimeSeconds:Number = Number(arTime[2]);

 var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
 nTimeMinutes, nTimeSeconds);
 ___
 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: [SOLVED] [Flashcoders] is there a recognised date format for xml?

2008-08-26 Thread allandt bik-elliott (thefieldcomic.com)
that's great

thanks for all your help guys

because i'm using as2, i've decided to go with the
Date.getTime()/Date.setTime() and get the serverside devs to spit out the
number in milliseconds using time() (possibly *1000) as i can pass that
straight to the Date object and let that work everything out for me.



On Tue, Aug 26, 2008 at 2:37 PM, Mark Walters
[EMAIL PROTECTED]wrote:

 This is a good format to follow for date and time in XML:
 http://www.w3.org/TR/NOTE-datetime .

 Eg:

   Year:
   (eg 1997)
   Year and month:
  -MM (eg 1997-07)
   Complete date:
  -MM-DD (eg 1997-07-16)
   Complete date plus hours and minutes:
  -MM-DDThh:mmTZD (eg 1997-07-16T19:20+01:00)
   Complete date plus hours, minutes and seconds:
  -MM-DDThh:mm:ssTZD (eg 1997-07-16T19:20:30+01:00)
   Complete date plus hours, minutes, seconds and a decimal fraction of a
 second
  -MM-DDThh:mm:ss.sTZD (eg 1997-07-16T19:20:30.45+01:00)

 where:

  = four-digit year
 MM   = two-digit month (01=January, etc.)
 DD   = two-digit day of month (01 through 31)
 hh   = two digits of hour (00 through 23) (am/pm NOT allowed)
 mm   = two digits of minute (00 through 59)
 ss   = two digits of second (00 through 59)
 s= one or more digits representing a decimal fraction of a second
 TZD  = time zone designator (Z or +hh:mm or -hh:mm)

 There's even a method in the DateUtil class included in the AS3CoreLib that
 parses this format.

 - Mark


 On Tue, Aug 26, 2008 at 5:48 AM, allandt bik-elliott (thefieldcomic.com) 
 [EMAIL PROTECTED] wrote:

  hi guys
 
  i'm speccing an xml file for a server side dev that needs to return a
  target
  date and time and i wanted to make sure i wasn't doing anything stupid
 
  what would a php dev be expecting to use for time / date and how would
 that
  be supplied in an xml file? And what would the best way of converting the
  return string for flash to use?
 
  I was thinking something along the lines of
  data date=2008,08,26 time=12,0,0 /
 
  and using something like
 
  var sDate:String = node.attributes.date;
  var sTime:String = node.attributes.time;
 
  var arDate:Array = sDate.split(,);
  var nYear:Number = Number(arDate[0]);
  var nMonth:Number = Number(arDate[1]-1); // months start at 0
  var nDate:Number = Number(arDate[2]);
 
  var arTime:Array = sTime.split(,);
  var nTimeHours:Number = Number(arTime[0]);
  var nTimeMinutes:Number = Number(arTime[1]);
  var nTimeSeconds:Number = Number(arTime[2]);
 
  var targetDate:Date = new Date(nYear, nMonth, nDate, nTimeHours,
  nTimeMinutes, nTimeSeconds);
  ___
  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] OT: List of all uk towns and cities with their longitude and latitudes

2008-08-26 Thread Paul Steven
Thanks Andrei and Pedro - I will check out those links.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrei
Thomaz
Sent: 26 August 2008 13:51
To: Flash Coders List
Subject: Re: [Flashcoders] OT: List of all uk towns and cities with their
longitude and latitudes

this can be interesting for you:
http://www.maxmind.com/app/ip-location

best,
andrei



On Tue, Aug 26, 2008 at 7:07 AM, Pedro Kostelec [EMAIL PROTECTED] wrote:

 Hm, all i found with google is that

 http://www.thesite.co.uk/
 http://www.british-towns.net/england.asp

 Websites that may use such a thing that you need. Perhpas contacting
their
 owner you may get more information where they got their lists.

 **

 *Pedro D. Kostelec*
 [EMAIL PROTECTED]





 On Tue, Aug 26, 2008 at 4:52 AM, Paul Steven [EMAIL PROTECTED]
 wrote:

  I am creating a UK based estate agent site and would like to implement a
  proximity search function.
 
  i.e the user would type in the area that they are looking for a house as
  well as a search radius and the site would display a list of all
matching
  houses for sale in this area.
 
  I am assuming I will need a list of every town, village and city in the
 UK
  with their associated longitude and latitude however I am really
 struggling
  to find one. Can anyone suggest where I can find such a list. I don't
 mind
  paying for one assuming I don't have to sell my house to do so.
 
  If I can get this list, then my theory is to use pythagoras theorem to
 work
  out which properties are within the specified radius. Not sure how
 practical
  this will be.
 
  So if anyone has created similar functionality I would really appreciate
  some tips.
 
  Thanks in advance
 
  Paul
 
 
  ___
  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] Embeding JSFL into SWC file, is it possible?

2008-08-26 Thread Helmut Granda
Is it possible to call a JSFL from a SWC file? I tried ExternalInterface
just for chucks and giggles but of course it didnt work... is it even
possible?

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


Re: [Flashcoders] OT: List of all uk towns and cities with their longitude and latitudes

2008-08-26 Thread Glen Pike

Hi,

   Have a look at some of the Post Office Address Products:

   
http://postcode.royalmail.com/portal/rm/jump1?catId=400120mediaId=400084 
http://postcode.royalmail.com/portal/rm/jump1?catId=400120mediaId=400084


   The Post Town Gazetter looks promising.  You may be able to hook 
into the Google API with this, or similar to get Long  Latitude:


   http://developer.yahoo.com/maps/rest/V1/geocode.html

   
http://jamesewelch.wordpress.com/2007/10/05/how-to-convert-a-street-address-to-longitude-and-latitude-geocoding-via-web-services/ 
 
http://jamesewelch.wordpress.com/2007/10/05/how-to-convert-a-street-address-to-longitude-and-latitude-geocoding-via-web-services/


   HTH

Glen

Paul Steven wrote:

I am creating a UK based estate agent site and would like to implement a 
proximity search function.

i.e the user would type in the area that they are looking for a house as well 
as a search radius and the site would display a list of all matching houses for 
sale in this area.

I am assuming I will need a list of every town, village and city in the UK with 
their associated longitude and latitude however I am really struggling to find 
one. Can anyone suggest where I can find such a list. I don't mind paying for 
one assuming I don't have to sell my house to do so.

If I can get this list, then my theory is to use pythagoras theorem to work out 
which properties are within the specified radius. Not sure how practical this 
will be.

So if anyone has created similar functionality I would really appreciate some 
tips.

Thanks in advance

Paul


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


  


--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


[Flashcoders] Re: Embeding JSFL into SWC file, is it possible?

2008-08-26 Thread Helmut Granda
Still cant do it, but I was able to access the document name with
DescribeType... :)

On Tue, Aug 26, 2008 at 2:00 PM, Helmut Granda [EMAIL PROTECTED]wrote:

 Is it possible to call a JSFL from a SWC file? I tried ExternalInterface
 just for chucks and giggles but of course it didnt work... is it even
 possible?

 --
 ...helmut




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


Re: [Flashcoders] Embeding JSFL into SWC file, is it possible?

2008-08-26 Thread Keith
If you got actionscript that runs JSFL commands it should work if the 
SWF is ran in a JSFL runnable environment, windowSWF or XUL Panel

MMExecute('alert(JSFL says: Hello);');



-- Keith H --
www.keith-hair.net





Helmut Granda wrote:

Is it possible to call a JSFL from a SWC file? I tried ExternalInterface
just for chucks and giggles but of course it didnt work... is it even
possible?

  



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


[Flashcoders] Flash apps via bluetooth

2008-08-26 Thread Glen Pike

Hi,

  I am working on a project with a control interface that has a little 
brother for Pocket PC, but I was wondering if it is possible to develop 
another version for mobiles that can be downloaded via bluetooth.


  The idea is that the mobile interface could be used to control a 
system in close proximity and the SWF would be served via bluetooth from 
something close by.  The app would also need to be able to talk to a 
central server using XML or similar and I am not sure whether I would 
need an internet connection or if this could be done over bluetooth too?


  Can anyone give me any pointers to useful info - I have found the 
Mobile  Devices Devnet site on Adobe and also googling, but any good 
sources would be useful.


  Cheers

  Glen
--

--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


[Flashcoders] GC-ing a SharedObject

2008-08-26 Thread Dave Segal
I have a large scale project I am working on that needs to be loaded and
unload so of course I am running into the dreaded AS3 garbage collection
mess.

I've tracked down the problem to a local SharedObject of a particular
class. The destructor of said class closes the SharedObject (even though
that shouldn't be necessary since it is local) and nulls the variable but
it seems this is not enough for the garbage collector. The memory is not
released. However, if I never create the SharedObject in the first place
and go through the same destruction procedure memory is released!

Help!

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


RE: [Flashcoders] Flash apps via bluetooth

2008-08-26 Thread Merrill, Jason
It should be possible by using something like perhaps a .dll and a Flash
wrapper - in theory.  For example, the WiiFlash server allows a Wiimote
to communicate to a Bluetooth dongle and on to the Flash file.  We built
some Flash games that are controlled with a Wiimote and a Bluetooth
dongle using WiiFlash server (which I believe is just a Zinc or
mProjector exe which can talk to the dongle and/or Windows COM of some
sort).  The communication works both ways too - the Wiimote controller
can control sprites and events in a Flash file, and the Flash file can
do things to the Wiimote like make it rumble. I can't tell you more than
that, but you might try and ask on the WiiFlash forums how they built
the WiiFlash server to get Bluetooth communication happening between the
Flash file and the dongle. 

Jason Merrill 
Bank of America 
Enterprise Technology  Global Risk LLD 
Instructional Technology  Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  Innovative Learning Blog  subscribe. 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Glen
Pike
Sent: Tuesday, August 26, 2008 5:59 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Flash apps via bluetooth

Hi,

   I am working on a project with a control interface that has a little

brother for Pocket PC, but I was wondering if it is possible to develop

another version for mobiles that can be downloaded via bluetooth.

   The idea is that the mobile interface could be used to control a 
system in close proximity and the SWF would be served via bluetooth from

something close by.  The app would also need to be able to talk to a 
central server using XML or similar and I am not sure whether I would 
need an internet connection or if this could be done over bluetooth too?

   Can anyone give me any pointers to useful info - I have found the 
Mobile  Devices Devnet site on Adobe and also googling, but any good 
sources would be useful.

   Cheers

   Glen
-- 

-- 

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
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] Access MainTimeline reference from within a component

2008-08-26 Thread Helmut Granda
Is it possible to access the MainTimeline from within a component? So far I
havent been able to access it trying different methods. Most times I get the
same result:
trace(parent);
trace(root);
trace(this.parent);
trace(this);
trace(this.parent.parent);

[object LivePreviewParent]
[object LivePreviewParent]
[object LivePreviewParent]
[object MyComponent]
[object Stage]

But it seems to skip the MainTimeline... basically what I am trying to
access is the File name which I can extract with Describe type for the
MainTimeline, and of course this is easy with objects on the timeline. I
have an init function in a component that tries to get the reference to the
MainTimeline but so far no luck... any tips?

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


Re: [Flashcoders] Access MainTimeline reference from within a component

2008-08-26 Thread poste9
have u tried this.root ?

2008/8/27 Helmut Granda [EMAIL PROTECTED]

 Is it possible to access the MainTimeline from within a component? So far I
 havent been able to access it trying different methods. Most times I get
 the
 same result:
 trace(parent);
 trace(root);
 trace(this.parent);
 trace(this);
 trace(this.parent.parent);

 [object LivePreviewParent]
 [object LivePreviewParent]
 [object LivePreviewParent]
 [object MyComponent]
 [object Stage]

 But it seems to skip the MainTimeline... basically what I am trying to
 access is the File name which I can extract with Describe type for the
 MainTimeline, and of course this is easy with objects on the timeline. I
 have an init function in a component that tries to get the reference to the
 MainTimeline but so far no luck... any tips?

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




-- 
=
Grupo Comunidade de Comunicação
Rafael Lúcio 29809.099333,
fazendo do seu website uma aplicação em tempo real
ms xsl js(dom) css xhtml php mysql pgsql ajax json smarty drupal
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] [JOB] Senior AS2 Developer - Telecommute | 80-110k

2008-08-26 Thread Beau Gould
This is for a FULL TIME, salaried, 100% telecommute position.
Applicants from any location are encouraged to apply, however, please be
a US Citizen or Green Card holder and able to work during Eastern
Standard Time (EST). Salary range is 80-110k; perhaps more for the right
individual. Full company information will be disclosed to interested
parties. 

My client is a young consumer web start-up who is looking for a smart,
motivated Flash developer to expand and improve upon what is already a
unique and exciting Flash application. 

Your primary role will be as an ActionScript 2 (AS2) Developer and you
should have extensive experience developing with AS2 within the Flash
IDE. 
 
Required Experience: 
* Expert ActionScript 2 (AS2) experience 
* Knowledge of ActionScript 3 (AS3) and/or Flex a plus 

Please submit your resume and/or portfolio and salary requirements to
beau AT open-source-staffing.com 

Thank you, 
Beau J. Gould 
 
Open Source Staffing 
www.open-source-staffing.com 
beau AT open-source-staffing.com 

http://www.linkedin.com/in/opensourcestaffing 

Subscribe to flashflexjobs at
http://groups.yahoo.com/group/flashflexjobs 

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