[Flashcoders] AIR write to PowerPoint

2008-03-27 Thread Jason Van Cleave
I am currently doing some research for a project that is asking for output
to a ppt/pps file. The original version of this project used Director and
some Xtras to accomplish this.

In hopes of doing the newer version in Adobe AIR I am wondering if anyone
has seen any AIR apps that have this feature. I have came across
Sliderocket.com (nice flex app) which is hoping to incorporate it in a
future version.

Any insights in trying to get in and out of a PowerPoint file would be
greatly appreciated also.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] query string

2008-03-27 Thread Laert Jansen
Hello folks!

I have to link one button to this link: home.php?location=boston

How do I do this? getURL ?

Thanks a lot

-- 
Laert Jansen
www.laertjansen.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Variable scope within for loops: reusing iteratorvariables

2008-03-27 Thread Steven Sacks
Valid where?  If that's in a class function and i is not a class 
variable, then the compiler will complain that you're using an 
undeclared variable.


Cory Petosky wrote:

I guess I should have provided an example when I mentioned no block
level scoping. Try this on for size:

for (i = 0; i < 10; ++i); // Do nothing but increment i
var i:int;
trace(i);

This is totally valid code and will trace 10! ALL variable
declarations in a function, regardless of the block the variable is
declared in, are performed as the function is pushed on the stack.
  


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


RE: [Flashcoders] Variable scope within for loops: reusingiteratorvariables

2008-03-27 Thread Francis Cheng
Ian, help is on the way, the ECMAScript 4th edition draft specification
contains a new keyword, "let", that can be used in place of "var" to
provide block-level scoping. Details for the curious:

http://wiki.ecmascript.org/doku.php?id=proposals:block_expressions

Francis Cheng | Senior Technical Writer | Adobe Systems, Inc.
http://blogs.adobe.com/fcheng

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
Sent: Thursday, March 27, 2008 1:23 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Variable scope within for loops:
reusingiteratorvariables

AFAIK, in AS2 the Flash IDE didn't respect block level scoping, but
MTASC did, which led to some confusion. That leads some people to
think that AS2 as a language has block level scoping.

AS3 definitely doesn't respect block scopes, and I curse every time I
trip over that 'variable declared twice' issue. I wish it did.

Ian

On Thu, Mar 27, 2008 at 8:09 PM, Juan Pablo Califano
<[EMAIL PROTECTED]> wrote:
> for (var i:int = 0; i < 10; i++)
>
> {
>   if (i == 5) break;
>  }
>  trace(i);
>
>  Mmm, have you actually tested the example? Because it does trace 5,
since,
>  as it was explained earlier in this thread, there is no block level
scoping
>  in AS 3.0. In fact, and this was mentioned too, all var declarations
are
>  "moved up" to be executed as the first actions run in a function's
code (I
>  believe that was called hoisting, but I might be wrong).
>
>  Cheers
>  Juan Pablo Califano
>
>  2008/3/27, Steven Sacks <[EMAIL PROTECTED]>:
>
>
> >
>  > function doSomething
>  > > {
>  > >   var i:int;
>  > >   for(i=0;i++;i<10)
>  > >   {
>  > >   }
>  > > }
>  > >
>  > > Is functionally identical to this:
>  > >
>  > > function doSomething
>  > > {
>  > >   for(var i:int =0;i++;i<10)
>  > >   {
>  > >   }
>  > > }
>  >
>  > Wrong.  It's not.
>  >
>  > In the latter example, i is not available after the loop.  In the
first
>  > example, it is.
>  >
>  > var i:int;
>  > for (i = 0; i < 10; i++)
>  > {
>  >   if (i == 5) break;
>  > }
>  > trace(i);
>  > -- 5
>  >
>  > There are a multitude of uses for this, and I do it all the
>  > time.  Additionally, I read somewhere many moons ago (back in my
FLASM days)
>  > that declaring variables outside a for loop is less bytecode and
uses less
>  > memory.  I don't believe that applies to the counter declaration,
but I do
>  > know it applies to the comparison as well as vars declared inside
the for
>  > loop.  However, this level of optimization is only useful in a
practical way
>  > on mobile and some games.
>  >
>  > ___
>  > 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] Variable scope within for loops: reusing iteratorvariables

2008-03-27 Thread Cory Petosky
I guess I should have provided an example when I mentioned no block
level scoping. Try this on for size:

for (i = 0; i < 10; ++i); // Do nothing but increment i
var i:int;
trace(i);

This is totally valid code and will trace 10! ALL variable
declarations in a function, regardless of the block the variable is
declared in, are performed as the function is pushed on the stack.

Cory

On Thu, Mar 27, 2008 at 3:47 PM, jonathan howe <[EMAIL PROTECTED]> wrote:
> "I wish it did."
>
>  Maybe at least one person saying that was what I was looking for... Thanks
>  for the discussion!
>
>
>
>  On Thu, Mar 27, 2008 at 4:22 PM, Ian Thomas <[EMAIL PROTECTED]> wrote:
>
>  > AFAIK, in AS2 the Flash IDE didn't respect block level scoping, but
>  > MTASC did, which led to some confusion. That leads some people to
>  > think that AS2 as a language has block level scoping.
>  >
>  > AS3 definitely doesn't respect block scopes, and I curse every time I
>  > trip over that 'variable declared twice' issue. I wish it did.
>  >
>  > Ian
>  >
>  > On Thu, Mar 27, 2008 at 8:09 PM, Juan Pablo Califano
>  > <[EMAIL PROTECTED]> wrote:
>  > > for (var i:int = 0; i < 10; i++)
>  > >
>  > > {
>  > >   if (i == 5) break;
>  > >  }
>  > >  trace(i);
>  > >
>  > >  Mmm, have you actually tested the example? Because it does trace 5,
>  > since,
>  > >  as it was explained earlier in this thread, there is no block level
>  > scoping
>  > >  in AS 3.0. In fact, and this was mentioned too, all var declarations
>  > are
>  > >  "moved up" to be executed as the first actions run in a function's code
>  > (I
>  > >  believe that was called hoisting, but I might be wrong).
>  > >
>  > >  Cheers
>  > >  Juan Pablo Califano
>  > >
>  > >  2008/3/27, Steven Sacks <[EMAIL PROTECTED]>:
>  > >
>  > >
>  > > >
>  > >  > function doSomething
>  > >  > > {
>  > >  > >   var i:int;
>  > >  > >   for(i=0;i++;i<10)
>  > >  > >   {
>  > >  > >   }
>  > >  > > }
>  > >  > >
>  > >  > > Is functionally identical to this:
>  > >  > >
>  > >  > > function doSomething
>  > >  > > {
>  > >  > >   for(var i:int =0;i++;i<10)
>  > >  > >   {
>  > >  > >   }
>  > >  > > }
>  > >  >
>  > >  > Wrong.  It's not.
>  > >  >
>  > >  > In the latter example, i is not available after the loop.  In the
>  > first
>  > >  > example, it is.
>  > >  >
>  > >  > var i:int;
>  > >  > for (i = 0; i < 10; i++)
>  > >  > {
>  > >  >   if (i == 5) break;
>  > >  > }
>  > >  > trace(i);
>  > >  > -- 5
>  > >  >
>  > >  > There are a multitude of uses for this, and I do it all the
>  > >  > time.  Additionally, I read somewhere many moons ago (back in my
>  > FLASM days)
>  > >  > that declaring variables outside a for loop is less bytecode and uses
>  > less
>  > >  > memory.  I don't believe that applies to the counter declaration, but
>  > I do
>  > >  > know it applies to the comparison as well as vars declared inside the
>  > for
>  > >  > loop.  However, this level of optimization is only useful in a
>  > practical way
>  > >  > on mobile and some games.
>  > >  >
>  > >  > ___
>  > >  > 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
>  >
>
>
>
>
> --
>  -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
>  ___
>
>
> Flashcoders mailing list
>  Flashcoders@chattyfig.figleaf.com
>  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Cory Petosky : Lead Developer : PUNY
1618 Central Ave NE Suite 130
Minneapolis, MN 55413
Office: 612.216.3924
Mobile: 240.422.9652
Fax: 612.605.9216
http://www.punyentertainment.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Outsourcing (was: Tweening Engines for AS3)

2008-03-27 Thread Kerry Thompson
Allandt Bik-Elliott wrote:

> it's bad enough to try to understand someone elses code when you
> speak the same language - it must be damn near impossible if
> everything's in Chinese

Well, as it happens, I speak Chinese--I used to live in Beijing. But
communication isn't the issue. It's time zones, cultural differences,
program behavior expectations, code structure expectations, and the like.
You have that same issue, often, dealing with programmers in India--even
really good programmers.

I must admit, though, that language is an issue with non-English speakers.
Programming languages are geared towards English speakers--all the keywords,
built-in classes, and the like are English. With the Chinese programmers,
who were very bright, but didn't speak English, I'd see a lot of variable or
function names like x, xx, xx1, xz1, and the like. They are just as
meaningful to a Chinese speaker as spritePos or detectCollision.

And don't get me started on code commenting.

Cordially,

Kerry Thompson


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


RE: [Flashcoders] using a class to load data

2008-03-27 Thread Merrill, Jason
Yeah, I mean that's basically how I described it and would do it - there
might be a better way, but that way should work fine for you.

Jason Merrill
Bank of America  
GT&O and Risk L&LD Solutions Design & Development 
eTools & Multimedia 

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  GT&O Innovative Learning Blog & subscribe.




 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Allandt Bik-Elliott (Receptacle)
>>Sent: Thursday, March 27, 2008 4:30 PM
>>To: Flash Coders List
>>Subject: Re: [Flashcoders] using a class to load data
>>
>>thanks jason - i've done this and it's working, i just wanted 
>>you to take a look to make sure i've not done it stupidly
>>
>>CODE
>>package
>>{
>>  //package imports
>>  import flash.events.*;
>>  import flash.net.*;
>>  
>>  internal class XMLLoader extends EventDispatcher
>>  {
>>  // class variable declarations
>>  private var xmlDoc:XML;
>>  private var xmlURL:String;
>>  private var xmlLoader:URLLoader;
>>  
>>  public static const COMPLETE:String = "complete";
>>  
>>  public function get doc():XML
>>  {
>>  return xmlDoc;
>>  }
>>  
>>  // constructor
>>  public function XMLLoader(url:String)
>>  {
>>  xmlURL = url;
>>  var urlRequest:URLRequest = new 
>>URLRequest(xmlURL);
>>  xmlLoader = new URLLoader();
>>  
>>xmlLoader.addEventListener(Event.COMPLETE, completeListener);
>>  xmlLoader.load(urlRequest);
>>  }
>>  
>>  private function completeListener(e:Event):void
>>  {
>>  xmlDoc = new XML(xmlLoader.data);
>>  dispatchEvent(new Event(XMLLoader.COMPLETE));
>>  }
>>  }
>>}
>>/CODE
>>
>>and the function call is
>>
>>CODE
>>private var xmlDoc:XML;
>>private var xmlurl:String;
>>private var xmlLoader:XMLLoader;
>>
>>// call to initialiseXML() made in constructor private 
>>function initialiseXML():void {
>>  xmlLoader = new XMLLoader(xmlurl);  
>>  xmlLoader.addEventListener(Event.COMPLETE, completeListener); }
>>  
>>private function completeListener(e:Event):void {
>>  xmlDoc = xmlLoader.doc;
>>  trace (xmlDoc.toXMLString()); //traces xml correctly } /CODE
>>
>>a
>>
>>
>>
>>On 27 Mar 2008, at 19:14, Merrill, Jason wrote:
>>
>>> Have your XMLLoader class extend EventDispatcher and have your 
>>> XMLLoader class dispatch an event when the load is 
>>complete.  Wherever 
>>> your instance of the class is declared, add an event 
>>listener to the 
>>> instance and write a function handler. if you need assistance with 
>>> setting that up, write back, it's pretty simple.
>>>
>>>
>>> Jason Merrill
>>> Bank of America
>>> GT&O and Risk L&LD Solutions Design & Development eTools & 
>>Multimedia
>>>
>>> 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  GT&O Innovative Learning Blog & subscribe.
>>>
>>>
>>>
>>>
>>>
>>>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Allandt Bik-Elliott (Receptacle)
> Sent: Thursday, March 27, 2008 2:51 PM
> To: flashcoders
> Subject: [Flashcoders] using a class to load data
>
> hi guys
>
> i am trying to set up a class to handle my xml (will be 
>>instantiated 
> for each xml file) but i'm running into a slight problem
>
> here is the class so far:
>
> CODE
> package
> {
>   //package imports
>   import flash.events.*;
>   import flash.net.*;
>   
>   internal class XMLLoader
>   {
>   // class variable declarations
>   private var xmlDoc:XML;
>   private var xmlURL:String;
>   private var xmlLoader:URLLoader;
>   
>   public function get doc():XML {return xmlDoc;}
>   
>   // constructor
>   public function XMLLoader(url:String)
>   {
>   xmlURL = url;
>   var urlRequest:URLRequest = new
> URLRequest(xmlURL);
>   xmlLoader = new URLLoader();
>   
> xmlLoader.addEventListener(Event.COMPLETE, completeListener);
>   xmlLoader.load(urlRequest);
>   }
>   
>   private function completeListener(e:Event):void
>   {
>   xmlDoc = new XML(xmlLoader.da

Re: [Flashcoders] Outsourcing (was: Tweening Engines for AS3)

2008-03-27 Thread Elia Morling
Yes, there are caveats with outsourcing, but the problems are often on the 
buyer end. If you learn how to specifiy and run your outsourcing projects 
you can do it successfuly. Don't hire someone that doesn't speak english or 
has any experience with projects abroad.


I am running multiple indie game projects, all funded out of my own pocket, 
and they involve´more than 10 people in different countries. Their services 
range from 2D graphics, 3D modeling, programming and copywriting.


In my opinion outsourcing is the future. I don't see a reason to hire anyone 
from Europe, unless they offer below-european-standard-rates of course. I do 
contract americans, because of the great USD.


Regards
Elia


On 27 Mar 2008, at 16:45, Kerry Thompson wrote:


Laurent wrote:

sick. If you want to know for how little money projects are  proposed 
and

how fast programmer people on earth can work for go there:
http://www.getacoder.com


I found the same thing when I registered with guru.com. There are 
hundreds of jobs with a budget of $500 or less, and precious few  worth 
bidding on. All my work comes from contacts--current and  former clients, 
colleagues, and the like.


There is a downside to outsourcing, though. I've worked on two  major 
projects, one for Disney and one for Sesame Street, that were  initially 
outsourced overseas. Both projects were eventually deemed  substandard, 
and completely re-written in-house.


I'm not saying the programmers overseas are substandard--I've  worked 
with some fine Chinese and Indian programmers (even some  good Europeans 
;-) There are so many problems with time  differences, cultural 
differences, expectations, and a host of  other issues that it often 
costs more to send something overseas.


Cordially,

Kerry Thompson



___
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] Outsourcing (was: Tweening Engines for AS3)

2008-03-27 Thread Matt S.
On Thu, Mar 27, 2008 at 4:34 PM, Allandt Bik-Elliott (Receptacle)
<[EMAIL PROTECTED]> wrote:
> it's bad enough to try to understand someone elses code when you
>  speak the same language - it must be damn near impossible if
>  everything's in chinese
>
>
>

I've had to deal with that when working with an Italian coders
actionscript. The naming is what kills you, because unless you speak
the language you cant guess at what possible action a particular
function has or what a particular variable pertains to, and you have
to figure it out the long way, by combing through the code and
locating them all. At a glance, there's now way to know that
"spostiPannelli" means "movePanels"
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Variable scope within for loops: reusing iteratorvariables

2008-03-27 Thread jonathan howe
"I wish it did."

Maybe at least one person saying that was what I was looking for... Thanks
for the discussion!

On Thu, Mar 27, 2008 at 4:22 PM, Ian Thomas <[EMAIL PROTECTED]> wrote:

> AFAIK, in AS2 the Flash IDE didn't respect block level scoping, but
> MTASC did, which led to some confusion. That leads some people to
> think that AS2 as a language has block level scoping.
>
> AS3 definitely doesn't respect block scopes, and I curse every time I
> trip over that 'variable declared twice' issue. I wish it did.
>
> Ian
>
> On Thu, Mar 27, 2008 at 8:09 PM, Juan Pablo Califano
> <[EMAIL PROTECTED]> wrote:
> > for (var i:int = 0; i < 10; i++)
> >
> > {
> >   if (i == 5) break;
> >  }
> >  trace(i);
> >
> >  Mmm, have you actually tested the example? Because it does trace 5,
> since,
> >  as it was explained earlier in this thread, there is no block level
> scoping
> >  in AS 3.0. In fact, and this was mentioned too, all var declarations
> are
> >  "moved up" to be executed as the first actions run in a function's code
> (I
> >  believe that was called hoisting, but I might be wrong).
> >
> >  Cheers
> >  Juan Pablo Califano
> >
> >  2008/3/27, Steven Sacks <[EMAIL PROTECTED]>:
> >
> >
> > >
> >  > function doSomething
> >  > > {
> >  > >   var i:int;
> >  > >   for(i=0;i++;i<10)
> >  > >   {
> >  > >   }
> >  > > }
> >  > >
> >  > > Is functionally identical to this:
> >  > >
> >  > > function doSomething
> >  > > {
> >  > >   for(var i:int =0;i++;i<10)
> >  > >   {
> >  > >   }
> >  > > }
> >  >
> >  > Wrong.  It's not.
> >  >
> >  > In the latter example, i is not available after the loop.  In the
> first
> >  > example, it is.
> >  >
> >  > var i:int;
> >  > for (i = 0; i < 10; i++)
> >  > {
> >  >   if (i == 5) break;
> >  > }
> >  > trace(i);
> >  > -- 5
> >  >
> >  > There are a multitude of uses for this, and I do it all the
> >  > time.  Additionally, I read somewhere many moons ago (back in my
> FLASM days)
> >  > that declaring variables outside a for loop is less bytecode and uses
> less
> >  > memory.  I don't believe that applies to the counter declaration, but
> I do
> >  > know it applies to the comparison as well as vars declared inside the
> for
> >  > loop.  However, this level of optimization is only useful in a
> practical way
> >  > on mobile and some games.
> >  >
> >  > ___
> >  > 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
>



-- 
-jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Outsourcing

2008-03-27 Thread Helmut Granda
You forgot the "And create a Framework that is easy to use and 100s of
people can use. and a blg around it to get exposure." now that is the "easy"
part :)

On Thu, Mar 27, 2008 at 1:15 PM, Steven Sacks <[EMAIL PROTECTED]>
wrote:

> If you want freelance work, here's how you do it.
>
> Make an account on LinkedIn.  Get some recommendations.
>
> I get about 10 job offers each week from just that.  Some full-time,
> some project-based.  You're missing out if you're not making yourself
> known.  :)
>
> Dwayne Neckles wrote:
> > My sentiments exactly.. it's frustrating...thats why  I became full time
> in NY.
> >
> >
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



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


Re: [Flashcoders] Outsourcing (was: Tweening Engines for AS3)

2008-03-27 Thread Allandt Bik-Elliott (Receptacle)
it's bad enough to try to understand someone elses code when you  
speak the same language - it must be damn near impossible if  
everything's in chinese



On 27 Mar 2008, at 16:45, Kerry Thompson wrote:


Laurent wrote:

sick. If you want to know for how little money projects are  
proposed and

how fast programmer people on earth can work for go there:
http://www.getacoder.com


I found the same thing when I registered with guru.com. There are  
hundreds of jobs with a budget of $500 or less, and precious few  
worth bidding on. All my work comes from contacts--current and  
former clients, colleagues, and the like.


There is a downside to outsourcing, though. I've worked on two  
major projects, one for Disney and one for Sesame Street, that were  
initially outsourced overseas. Both projects were eventually deemed  
substandard, and completely re-written in-house.


I'm not saying the programmers overseas are substandard--I've  
worked with some fine Chinese and Indian programmers (even some  
good Europeans ;-) There are so many problems with time  
differences, cultural differences, expectations, and a host of  
other issues that it often costs more to send something overseas.


Cordially,

Kerry Thompson



___
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] AS3 Programmer is needed in Paris

2008-03-27 Thread laurent
 
A sweet agency call http://www.grouek.com is looking for some talented 
AS3 programmer urgently.


If you're the man ...or the woman contact me offlist I will forward your 
contact. Send me a cv if possible or some references to your last pieces 
of art.


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


RE: [Flashcoders] world clock - revisited

2008-03-27 Thread Keith Reinfeld
Hi Corban, Marcelo, 

>Marcelo Volmaro wrote:
> I did that code :) 

Absolutely! And thank you again. Awesome! (Corban and I corresponded on the
topic, offlist, back when the Flashcoders list was down for so very long.) 

> check if I'm in DST 

And that, Corban, is the trick. At least for me. My World Clock
implementation allows for the display of multiple clocks simultaneously. So
how does one correctly display the DST transitions across a number of
timezones? 

I modified Marcelo's code to get DST start and end times (in milliseconds)
down to the last second before the transition. So now I can check to see if
the current time falls between start and end (add an hour) or not. But that
is not enough! 

Is DST observed at the remote location? If yes then: 

According to the client machine's clock settings: 
Is DST observed locally? 
Is DST currently in effect locally? 

Is start < end (Northern Hemisphere)? 
If local DST is in effect is the calculated time less than start?
If local DST is in effect is the calculated time greater than end?

Is start > end (Southern Hemisphere)? 
If local DST is in effect is the calculated time less than end?
If local DST is in effect is the calculated time greater than start?
If local DST is in effect is the calculated time greater than end and less
than start?

Etc... 

If there is an elegant way of doing this I would love to hear it! 

Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
 


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


Re: [Flashcoders] Tweening Engines for AS3

2008-03-27 Thread Allandt Bik-Elliott (Receptacle)

i couldn't afford to pay my bills on those prices


On 27 Mar 2008, at 16:15, Dwayne Neckles wrote:


Yea guys I I know we are off the issue topic.
but its disgusting...

i could be wrong but I feel getacoder and elance all i feel cheapen  
us as coders and "flashers".. but this is a digression..





Date: Thu, 27 Mar 2008 16:24:08 +0100
From: [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Tweening Engines for AS3

sick. If you want to know for how little money projects are  
proposed and

how fast programmer people on earth can work for go there:
http://www.getacoder.com

L


Paul Andrews a écrit :
- Original Message - From: "Pedro Kostelec"  
<[EMAIL PROTECTED]>

To: "Flash Coders List" 
Sent: Thursday, March 27, 2008 9:21 AM
Subject: Re: [Flashcoders] Tweening Engines for AS3



"Sorry, my fault, sometimes I forgot I am on an international list.
You would cry if you see a paycheck of a programmer from a third- 
world

country ;)"

I don't get it. I am not even in university so i am not employed  
and

i have
no idea what this international list means??


People reading and posting to the list are from all over the world -
international - rather than just being in the US. In that respect  
you
can't assume that worldwide flash developers are all driving in  
shiny

new Porsches.

Paul



I am curious,
Pedro


On Wed, Mar 26, 2008 at 7:43 PM, Wagner Amaral  
<[EMAIL PROTECTED]>

wrote:


On Wed, Mar 26, 2008 at 2:38 PM, Steven Sacks
<[EMAIL PROTECTED]>
wrote:


We are programmers, we can't afford Porsches! Better change that
to bike and skate...


You're joking, right?  Talented Flash developers are in extremely

high

demand right now.  Every day I get 3-5 emails from recruiters or

companies.
 It's a seller's market and people are paying top dollar for  
AS3 and

Flex
devs.  Flash and Flex jobs are paying $75-$150/hr.  That's  
$150,000 -

$300,000 a year.  If you can't afford a Porsche, you need to find

a new
job

or grow a pair and ask for a raise.

That being said, I don't own a Porsche because I've got better

things > to

do with my money.  ;)




Sorry, my fault, sometimes I forgot I am on an international list.
You would cry if you see a paycheck of a programmer from a  
third-world

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





--
Pedro D.K.
___
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


_
In a rush?  Get real-time answers with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html? 
ocid=TXT_TAGLM_WL_Refresh_realtime_042008_ 
__

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] using a class to load data

2008-03-27 Thread Allandt Bik-Elliott (Receptacle)
thanks jason - i've done this and it's working, i just wanted you to  
take a look to make sure i've not done it stupidly


CODE
package
{
//package imports
import flash.events.*;
import flash.net.*;

internal class XMLLoader extends EventDispatcher
{
// class variable declarations
private var xmlDoc:XML;
private var xmlURL:String;
private var xmlLoader:URLLoader;

public static const COMPLETE:String = "complete";

public function get doc():XML
{
return xmlDoc;
}

// constructor
public function XMLLoader(url:String)
{
xmlURL = url;
var urlRequest:URLRequest = new URLRequest(xmlURL);
xmlLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, 
completeListener);
xmlLoader.load(urlRequest);
}

private function completeListener(e:Event):void
{
xmlDoc = new XML(xmlLoader.data);
dispatchEvent(new Event(XMLLoader.COMPLETE));
}
}
}
/CODE

and the function call is

CODE
private var xmlDoc:XML;
private var xmlurl:String;
private var xmlLoader:XMLLoader;

// call to initialiseXML() made in constructor
private function initialiseXML():void
{
xmlLoader = new XMLLoader(xmlurl);  
xmlLoader.addEventListener(Event.COMPLETE, completeListener);
}

private function completeListener(e:Event):void
{
xmlDoc = xmlLoader.doc;
trace (xmlDoc.toXMLString()); //traces xml correctly
}
/CODE

a



On 27 Mar 2008, at 19:14, Merrill, Jason wrote:

Have your XMLLoader class extend EventDispatcher and have your  
XMLLoader

class dispatch an event when the load is complete.  Wherever your
instance of the class is declared, add an event listener to the  
instance

and write a function handler. if you need assistance with setting that
up, write back, it's pretty simple.


Jason Merrill
Bank of America
GT&O and Risk L&LD Solutions Design & Development
eTools & Multimedia

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  GT&O Innovative Learning Blog & subscribe.







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Allandt Bik-Elliott (Receptacle)
Sent: Thursday, March 27, 2008 2:51 PM
To: flashcoders
Subject: [Flashcoders] using a class to load data

hi guys

i am trying to set up a class to handle my xml (will be
instantiated for each xml file) but i'm running into a slight  
problem


here is the class so far:

CODE
package
{
//package imports
import flash.events.*;
import flash.net.*;

internal class XMLLoader
{
// class variable declarations
private var xmlDoc:XML;
private var xmlURL:String;
private var xmlLoader:URLLoader;

public function get doc():XML {return xmlDoc;}

// constructor
public function XMLLoader(url:String)
{
xmlURL = url;
var urlRequest:URLRequest = new
URLRequest(xmlURL);
xmlLoader = new URLLoader();

xmlLoader.addEventListener(Event.COMPLETE, completeListener);
xmlLoader.load(urlRequest);
}

private function completeListener(e:Event):void
{
xmlDoc = new XML(xmlLoader.data);
}
}
}
/CODE

the problem is with timing - from within the XMLLoader()
Class i can wait for the COMPLETE event to reference the
xmlDoc but how would i do that from an instance of the class?

for instance if i do the following from my main class i get a
null object error because it doesn't wait for the data to be
loaded before trying to read it:

CODE
var xmlurl:String = "path/to/xml.xml";
var xmlDoc:XMLLoader = new XMLLoader(xmlurl); xmlDoc =
xmlLoader.doc; trace (xmlDoc.toXMLString()); /CODE

this would equally apply to an image loader, i guess

thanks in advance
a

Allandt Bik-Elliott
thefieldcomic.com
e [EMAIL PROTECTED]

___
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/flas

Re: [Flashcoders] Variable scope within for loops: reusing iteratorvariables

2008-03-27 Thread Ian Thomas
AFAIK, in AS2 the Flash IDE didn't respect block level scoping, but
MTASC did, which led to some confusion. That leads some people to
think that AS2 as a language has block level scoping.

AS3 definitely doesn't respect block scopes, and I curse every time I
trip over that 'variable declared twice' issue. I wish it did.

Ian

On Thu, Mar 27, 2008 at 8:09 PM, Juan Pablo Califano
<[EMAIL PROTECTED]> wrote:
> for (var i:int = 0; i < 10; i++)
>
> {
>   if (i == 5) break;
>  }
>  trace(i);
>
>  Mmm, have you actually tested the example? Because it does trace 5, since,
>  as it was explained earlier in this thread, there is no block level scoping
>  in AS 3.0. In fact, and this was mentioned too, all var declarations are
>  "moved up" to be executed as the first actions run in a function's code (I
>  believe that was called hoisting, but I might be wrong).
>
>  Cheers
>  Juan Pablo Califano
>
>  2008/3/27, Steven Sacks <[EMAIL PROTECTED]>:
>
>
> >
>  > function doSomething
>  > > {
>  > >   var i:int;
>  > >   for(i=0;i++;i<10)
>  > >   {
>  > >   }
>  > > }
>  > >
>  > > Is functionally identical to this:
>  > >
>  > > function doSomething
>  > > {
>  > >   for(var i:int =0;i++;i<10)
>  > >   {
>  > >   }
>  > > }
>  >
>  > Wrong.  It's not.
>  >
>  > In the latter example, i is not available after the loop.  In the first
>  > example, it is.
>  >
>  > var i:int;
>  > for (i = 0; i < 10; i++)
>  > {
>  >   if (i == 5) break;
>  > }
>  > trace(i);
>  > -- 5
>  >
>  > There are a multitude of uses for this, and I do it all the
>  > time.  Additionally, I read somewhere many moons ago (back in my FLASM 
> days)
>  > that declaring variables outside a for loop is less bytecode and uses less
>  > memory.  I don't believe that applies to the counter declaration, but I do
>  > know it applies to the comparison as well as vars declared inside the for
>  > loop.  However, this level of optimization is only useful in a practical 
> way
>  > on mobile and some games.
>  >
>  > ___
>  > 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] Variable scope within for loops: reusing iteratorvariables

2008-03-27 Thread Juan Pablo Califano
for (var i:int = 0; i < 10; i++)
{
  if (i == 5) break;
}
trace(i);

Mmm, have you actually tested the example? Because it does trace 5, since,
as it was explained earlier in this thread, there is no block level scoping
in AS 3.0. In fact, and this was mentioned too, all var declarations are
"moved up" to be executed as the first actions run in a function's code (I
believe that was called hoisting, but I might be wrong).

Cheers
Juan Pablo Califano

2008/3/27, Steven Sacks <[EMAIL PROTECTED]>:
>
> function doSomething
> > {
> >   var i:int;
> >   for(i=0;i++;i<10)
> >   {
> >   }
> > }
> >
> > Is functionally identical to this:
> >
> > function doSomething
> > {
> >   for(var i:int =0;i++;i<10)
> >   {
> >   }
> > }
>
> Wrong.  It's not.
>
> In the latter example, i is not available after the loop.  In the first
> example, it is.
>
> var i:int;
> for (i = 0; i < 10; i++)
> {
>   if (i == 5) break;
> }
> trace(i);
> -- 5
>
> There are a multitude of uses for this, and I do it all the
> time.  Additionally, I read somewhere many moons ago (back in my FLASM days)
> that declaring variables outside a for loop is less bytecode and uses less
> memory.  I don't believe that applies to the counter declaration, but I do
> know it applies to the comparison as well as vars declared inside the for
> loop.  However, this level of optimization is only useful in a practical way
> on mobile and some games.
>
> ___
> 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] using a class to load data

2008-03-27 Thread Merrill, Jason
Have your XMLLoader class extend EventDispatcher and have your XMLLoader
class dispatch an event when the load is complete.  Wherever your
instance of the class is declared, add an event listener to the instance
and write a function handler. if you need assistance with setting that
up, write back, it's pretty simple.


Jason Merrill
Bank of America  
GT&O and Risk L&LD Solutions Design & Development 
eTools & Multimedia 

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  GT&O Innovative Learning Blog & subscribe.




 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Allandt Bik-Elliott (Receptacle)
>>Sent: Thursday, March 27, 2008 2:51 PM
>>To: flashcoders
>>Subject: [Flashcoders] using a class to load data
>>
>>hi guys
>>
>>i am trying to set up a class to handle my xml (will be 
>>instantiated for each xml file) but i'm running into a slight problem
>>
>>here is the class so far:
>>
>>CODE
>>package
>>{
>>  //package imports
>>  import flash.events.*;
>>  import flash.net.*;
>>  
>>  internal class XMLLoader
>>  {
>>  // class variable declarations
>>  private var xmlDoc:XML;
>>  private var xmlURL:String;
>>  private var xmlLoader:URLLoader;
>>  
>>  public function get doc():XML {return xmlDoc;}
>>  
>>  // constructor
>>  public function XMLLoader(url:String)
>>  {
>>  xmlURL = url;
>>  var urlRequest:URLRequest = new 
>>URLRequest(xmlURL);
>>  xmlLoader = new URLLoader();
>>  
>>xmlLoader.addEventListener(Event.COMPLETE, completeListener);
>>  xmlLoader.load(urlRequest);
>>  }
>>  
>>  private function completeListener(e:Event):void
>>  {
>>  xmlDoc = new XML(xmlLoader.data);
>>  }
>>  }
>>}
>>/CODE
>>
>>the problem is with timing - from within the XMLLoader() 
>>Class i can wait for the COMPLETE event to reference the 
>>xmlDoc but how would i do that from an instance of the class?
>>
>>for instance if i do the following from my main class i get a 
>>null object error because it doesn't wait for the data to be 
>>loaded before trying to read it:
>>
>>CODE
>>var xmlurl:String = "path/to/xml.xml";
>>var xmlDoc:XMLLoader = new XMLLoader(xmlurl); xmlDoc = 
>>xmlLoader.doc; trace (xmlDoc.toXMLString()); /CODE
>>
>>this would equally apply to an image loader, i guess
>>
>>thanks in advance
>>a
>>
>>Allandt Bik-Elliott
>>thefieldcomic.com
>>e [EMAIL PROTECTED]
>>
>>___
>>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] using a class to load data

2008-03-27 Thread Allandt Bik-Elliott (Receptacle)

hi guys

i am trying to set up a class to handle my xml (will be instantiated  
for each xml file) but i'm running into a slight problem


here is the class so far:

CODE
package
{
//package imports
import flash.events.*;
import flash.net.*;

internal class XMLLoader
{
// class variable declarations
private var xmlDoc:XML;
private var xmlURL:String;
private var xmlLoader:URLLoader;

public function get doc():XML {return xmlDoc;}

// constructor
public function XMLLoader(url:String)
{
xmlURL = url;
var urlRequest:URLRequest = new URLRequest(xmlURL);
xmlLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, 
completeListener);
xmlLoader.load(urlRequest);
}

private function completeListener(e:Event):void
{
xmlDoc = new XML(xmlLoader.data);
}
}
}
/CODE

the problem is with timing - from within the XMLLoader() Class i can  
wait for the COMPLETE event to reference the xmlDoc but how would i  
do that from an instance of the class?


for instance if i do the following from my main class i get a null  
object error because it doesn't wait for the data to be loaded before  
trying to read it:


CODE
var xmlurl:String = "path/to/xml.xml";
var xmlDoc:XMLLoader = new XMLLoader(xmlurl);
xmlDoc = xmlLoader.doc;
trace (xmlDoc.toXMLString());
/CODE

this would equally apply to an image loader, i guess

thanks in advance
a

Allandt Bik-Elliott
thefieldcomic.com
e [EMAIL PROTECTED]

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


Re: [Flashcoders] AMFPHP vs RubyAMF

2008-03-27 Thread Steven Sacks
AMFPHP has been around a long time.  It's been optimized and optimized 
and optimized.  RubyAMF is (relatively) new.  However, I have not used 
it, so I don't know how it performs, but I'm going to take an educated 
guess that AMFPHP is faster, more stable and more flexible only because 
of its age and widespread use.


artur wrote:
is there a major difference in terms of performance, stability,  and 
flexibility?


im about to built an RIA using Flex & MySQL..
but havent decided on the middleware yet.

whats the verdict?

also whats the learning curve on it for devs who have experience with 
Java, JSP, ASP, PHP





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


Re: [Flashcoders] FLASH+AIR+ASP

2008-03-27 Thread Helmut Granda
There is no a open API, everything is strictly controlled by IT so I think I
need to find another way around. My logic was telling me that since the
application was being only wrapped by AIR that still the longin calls were
going to be implemented in the application. Meaning if the user wasn't
logged in it was going to ask for UN and pass and then continue.

Thanks, this is for sure a great learning experience

On Thu, Mar 27, 2008 at 11:59 AM, Sidney de Koning <[EMAIL PROTECTED]>
wrote:

> Does you aspx login form have an API? I mean, can you POST of GET
> variables to it and you you get back a value of something to let you
> know you are logged in? If so, you can access it with AIR.
>
> in you example you say 'go to the app()' . Are we talking about AIR or
> a webapplication in the browser (i just need to be sure), because you
> just cannot start an application that is on the users hard drive.
>
> Hope to hear from you,
>
> Sid
>
>
> On Mar 27, 2008, at 3:33 PM, Helmut Granda wrote:
>
> > You have to login through a aspx form(no httaccess). basically the
> > application lives in the extranet so you have to login to access any
> > documents on that specific area. It works well on the browser
> > because before
> > accessing the application you have to login and once you are in the
> > process
> > continues. But as a stand-alone application it seems to be a whole
> > different
> > monster
> >
> > start()
> > if user is not logged in
> > ask for login info()
> > else
> > go to the app()
> > end()
> >
> > thanks for your input
> >
> > On Thu, Mar 27, 2008 at 3:44 AM, Sidney de Koning <
> [EMAIL PROTECTED]
> > >
> > wrote:
> >
> >> Do you mean that you need to login through HTACCESS? (the browser
> >> dialog box) or through an ASP file?
> >>
> >> If its HTACCESS then, with AIR, you can get past it in AIR. Tell me
> >> which one is of use and i'll try to help.
> >>
> >> Cheers,
> >>
> >> Sid
> >>
> >> On Mar 26, 2008, at 11:41 PM, Helmut Granda wrote:
> >>
> >>>   I have an application that was created for the browser
> >>> (Flash+ASP)and runs under a secure server (https) and everything
> >>> works
> >>> great. Now there is an attenpt to move the application to stand
> >>> alone with
> >>> AIR but it seems like because it is under a secure server I am
> >>> having issues
> >>> accessing the server.
> >>>
> >>>   Basically this is what happens:
> >>>
> >>>   Flash -> ask to ASP for stuff
> >>>   ASP -> give back Flash STUFF
> >>>   FLASH -> Display the stuff ASP Provided
> >>>
> >>>   Using AIR as a wrapper Im not sure how still being able to
> >>> hit the
> >>> server without having the user to log in. Oh yeah I forgot to
> >>> mention that
> >>> the user has to login throuh the browser so do I need to create a
> >>> page for
> >>> the user to login before deploying my application?
> >>>
> >>>   TIA
> >>> ___
> >>> 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
> >>
> >
> >
> >
> > --
> > ...helmut
> > ___
> > 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
>



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


Re: [Flashcoders] Outsourcing

2008-03-27 Thread Steven Sacks

If you want freelance work, here's how you do it.

Make an account on LinkedIn.  Get some recommendations.

I get about 10 job offers each week from just that.  Some full-time, 
some project-based.  You're missing out if you're not making yourself 
known.  :)


Dwayne Neckles wrote:

My sentiments exactly.. it's frustrating...thats why  I became full time in NY.

  


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


Re: [Flashcoders] Variable scope within for loops: reusing iteratorvariables

2008-03-27 Thread Steven Sacks

function doSomething

{
  var i:int;
  for(i=0;i++;i<10)
  {
  }
}

Is functionally identical to this:

function doSomething
{
  for(var i:int =0;i++;i<10)
  {
  }
}


Wrong.  It's not.

In the latter example, i is not available after the loop.  In the first 
example, it is.

var i:int;
for (i = 0; i < 10; i++)
{
  if (i == 5) break;
}
trace(i);
-- 5

There are a multitude of uses for this, and I do it all the time.  
Additionally, I read somewhere many moons ago (back in my FLASM days) that 
declaring variables outside a for loop is less bytecode and uses less memory.  
I don't believe that applies to the counter declaration, but I do know it 
applies to the comparison as well as vars declared inside the for loop.  
However, this level of optimization is only useful in a practical way on mobile 
and some games.

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


Re: [Flashcoders] JSFL Add a new font

2008-03-27 Thread Steven Sacks
You can do anything you want in C++.  Read the JSFL docs on how to use 
C++ to do more complex JSFL stuff.


Hopefully, the time and cost it takes to research it, write the C++, 
debug and deploy your solution will be less than the time and cost 
savings of importing a Font into a Flash library.  If you can sense the 
sarcasm, you're dead on.  ;)


On the other hand, it might be possible to alter an already existing 
Font symbol in the Library.  You might want to look into that.  The 
history panel is your friend and so are the JSFL docs.




Leon wrote:

And no others way?
Ex: A low-level extension for flash that extends JSFL ?
  


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


RE: [Flashcoders] Outsourcing (was: Tweening Engines for AS3)

2008-03-27 Thread Dwayne Neckles
My sentiments exactly.. it's frustrating...thats why  I became full time in NY.



> Date: Thu, 27 Mar 2008 10:05:38 -0700
> From: [EMAIL PROTECTED]
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] Outsourcing (was: Tweening Engines for AS3)
> 
> And that's why I took a steady. I contracted for about 6 years. Got a bit
> burnt out on people wanting something for nothing. Oh, and the "we'll give
> you a project and see how well you do. Then we'll discus payment'... look at
> my @[EMAIL PROTECTED]@ portfolio you piece of [EMAIL PROTECTED]@[EMAIL 
> PROTECTED] Also the 'my neighbors son
> said he could build this for $200 in half the time'.
> 
> I think the best was when I quoted a flash form project and the company
> thought it was too much so they outsourced it. Needlesss to say that when
> they got the final product and tried to implement it into their existing
> application it wasn't compatible and very buggy. Guess you get what you pay
> for ;)
> 
> B.
> 
> 
> On Thu, Mar 27, 2008 at 9:45 AM, Kerry Thompson <[EMAIL PROTECTED]>
> wrote:
> 
> > Laurent wrote:
> >
> > > sick. If you want to know for how little money projects are proposed and
> > > how fast programmer people on earth can work for go there:
> > > http://www.getacoder.com
> >
> > I found the same thing when I registered with guru.com. There are hundreds
> > of jobs with a budget of $500 or less, and precious few worth bidding on.
> > All my work comes from contacts--current and former clients, colleagues, and
> > the like.
> >
> > There is a downside to outsourcing, though. I've worked on two major
> > projects, one for Disney and one for Sesame Street, that were initially
> > outsourced overseas. Both projects were eventually deemed substandard, and
> > completely re-written in-house.
> >
> > I'm not saying the programmers overseas are substandard--I've worked with
> > some fine Chinese and Indian programmers (even some good Europeans ;-) There
> > are so many problems with time differences, cultural differences,
> > expectations, and a host of other issues that it often costs more to send
> > something overseas.
> >
> > Cordially,
> >
> > Kerry Thompson
> >
> >
> >
> > ___
> > 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

_
Watch “Cause Effect,” a show about real people making a real difference.  Learn 
more.
http://im.live.com/Messenger/IM/MTV/?source=text_watchcause___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Outsourcing (was: Tweening Engines for AS3)

2008-03-27 Thread Bob Wohl
And that's why I took a steady. I contracted for about 6 years. Got a bit
burnt out on people wanting something for nothing. Oh, and the "we'll give
you a project and see how well you do. Then we'll discus payment'... look at
my @[EMAIL PROTECTED]@ portfolio you piece of [EMAIL PROTECTED]@[EMAIL 
PROTECTED] Also the 'my neighbors son
said he could build this for $200 in half the time'.

I think the best was when I quoted a flash form project and the company
thought it was too much so they outsourced it. Needlesss to say that when
they got the final product and tried to implement it into their existing
application it wasn't compatible and very buggy. Guess you get what you pay
for ;)

B.


On Thu, Mar 27, 2008 at 9:45 AM, Kerry Thompson <[EMAIL PROTECTED]>
wrote:

> Laurent wrote:
>
> > sick. If you want to know for how little money projects are proposed and
> > how fast programmer people on earth can work for go there:
> > http://www.getacoder.com
>
> I found the same thing when I registered with guru.com. There are hundreds
> of jobs with a budget of $500 or less, and precious few worth bidding on.
> All my work comes from contacts--current and former clients, colleagues, and
> the like.
>
> There is a downside to outsourcing, though. I've worked on two major
> projects, one for Disney and one for Sesame Street, that were initially
> outsourced overseas. Both projects were eventually deemed substandard, and
> completely re-written in-house.
>
> I'm not saying the programmers overseas are substandard--I've worked with
> some fine Chinese and Indian programmers (even some good Europeans ;-) There
> are so many problems with time differences, cultural differences,
> expectations, and a host of other issues that it often costs more to send
> something overseas.
>
> Cordially,
>
> Kerry Thompson
>
>
>
> ___
> 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] FLASH+AIR+ASP

2008-03-27 Thread Sidney de Koning
Does you aspx login form have an API? I mean, can you POST of GET  
variables to it and you you get back a value of something to let you  
know you are logged in? If so, you can access it with AIR.


in you example you say 'go to the app()' . Are we talking about AIR or  
a webapplication in the browser (i just need to be sure), because you  
just cannot start an application that is on the users hard drive.


Hope to hear from you,

Sid


On Mar 27, 2008, at 3:33 PM, Helmut Granda wrote:


You have to login through a aspx form(no httaccess). basically the
application lives in the extranet so you have to login to access any
documents on that specific area. It works well on the browser  
because before
accessing the application you have to login and once you are in the  
process
continues. But as a stand-alone application it seems to be a whole  
different

monster

start()
if user is not logged in
ask for login info()
else
go to the app()
end()

thanks for your input

On Thu, Mar 27, 2008 at 3:44 AM, Sidney de Koning <[EMAIL PROTECTED] 
>

wrote:


Do you mean that you need to login through HTACCESS? (the browser
dialog box) or through an ASP file?

If its HTACCESS then, with AIR, you can get past it in AIR. Tell me
which one is of use and i'll try to help.

Cheers,

Sid

On Mar 26, 2008, at 11:41 PM, Helmut Granda wrote:


  I have an application that was created for the browser
(Flash+ASP)and runs under a secure server (https) and everything  
works

great. Now there is an attenpt to move the application to stand
alone with
AIR but it seems like because it is under a secure server I am
having issues
accessing the server.

  Basically this is what happens:

  Flash -> ask to ASP for stuff
  ASP -> give back Flash STUFF
  FLASH -> Display the stuff ASP Provided

  Using AIR as a wrapper Im not sure how still being able to
hit the
server without having the user to log in. Oh yeah I forgot to
mention that
the user has to login throuh the browser so do I need to create a
page for
the user to login before deploying my application?

  TIA
___
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





--
...helmut
___
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] Outsourcing (was: Tweening Engines for AS3)

2008-03-27 Thread Kerry Thompson
Laurent wrote:

> sick. If you want to know for how little money projects are proposed and
> how fast programmer people on earth can work for go there:
> http://www.getacoder.com

I found the same thing when I registered with guru.com. There are hundreds of 
jobs with a budget of $500 or less, and precious few worth bidding on. All my 
work comes from contacts--current and former clients, colleagues, and the like.

There is a downside to outsourcing, though. I've worked on two major projects, 
one for Disney and one for Sesame Street, that were initially outsourced 
overseas. Both projects were eventually deemed substandard, and completely 
re-written in-house.

I'm not saying the programmers overseas are substandard--I've worked with some 
fine Chinese and Indian programmers (even some good Europeans ;-) There are so 
many problems with time differences, cultural differences, expectations, and a 
host of other issues that it often costs more to send something overseas.

Cordially,

Kerry Thompson



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


RE: [Flashcoders] Tweening Engines for AS3

2008-03-27 Thread Dwayne Neckles
Yea guys I I know we are off the issue topic.
but its disgusting...

i could be wrong but I feel getacoder and elance all i feel cheapen us as 
coders and "flashers".. but this is a digression..



> Date: Thu, 27 Mar 2008 16:24:08 +0100
> From: [EMAIL PROTECTED]
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] Tweening Engines for AS3
> 
> sick. If you want to know for how little money projects are proposed and 
> how fast programmer people on earth can work for go there:
> http://www.getacoder.com
> 
> L
> 
> 
> Paul Andrews a écrit :
> > - Original Message - From: "Pedro Kostelec" <[EMAIL PROTECTED]>
> > To: "Flash Coders List" 
> > Sent: Thursday, March 27, 2008 9:21 AM
> > Subject: Re: [Flashcoders] Tweening Engines for AS3
> >
> >
> >> "Sorry, my fault, sometimes I forgot I am on an international list.
> >> You would cry if you see a paycheck of a programmer from a third-world
> >> country ;)"
> >>
> >> I don't get it. I am not even in university so i am not employed and 
> >> i have
> >> no idea what this international list means??
> >
> > People reading and posting to the list are from all over the world - 
> > international - rather than just being in the US. In that respect you 
> > can't assume that worldwide flash developers are all driving in shiny 
> > new Porsches.
> >
> > Paul
> >
> >
> >> I am curious,
> >> Pedro
> >>
> >>
> >> On Wed, Mar 26, 2008 at 7:43 PM, Wagner Amaral <[EMAIL PROTECTED]>
> >> wrote:
> >>
> >>> On Wed, Mar 26, 2008 at 2:38 PM, Steven Sacks 
> >>> <[EMAIL PROTECTED]>
> >>> wrote:
> >>>
> >>> > > We are programmers, we can't afford Porsches! Better change that
> >>> > > to bike and skate...
> >>> >
> >>> > You're joking, right?  Talented Flash developers are in extremely 
> >>> high
> >>> > demand right now.  Every day I get 3-5 emails from recruiters or
> >>> companies.
> >>> >  It's a seller's market and people are paying top dollar for AS3 and
> >>> Flex
> >>> > devs.  Flash and Flex jobs are paying $75-$150/hr.  That's $150,000 -
> >>> > $300,000 a year.  If you can't afford a Porsche, you need to find 
> >>> a new
> >>> job
> >>> > or grow a pair and ask for a raise.
> >>> >
> >>> > That being said, I don't own a Porsche because I've got better 
> >>> things > to
> >>> > do with my money.  ;)
> >>> >
> >>>
> >>>
> >>> Sorry, my fault, sometimes I forgot I am on an international list.
> >>> You would cry if you see a paycheck of a programmer from a third-world
> >>> country ;)
> >>> ___
> >>> Flashcoders mailing list
> >>> Flashcoders@chattyfig.figleaf.com
> >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>>
> >>
> >>
> >>
> >> -- 
> >> Pedro D.K.
> >> ___
> >> 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

_
In a rush?  Get real-time answers with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_realtime_042008___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Tweening Engines for AS3

2008-03-27 Thread laurent
sick. If you want to know for how little money projects are proposed and 
how fast programmer people on earth can work for go there:

http://www.getacoder.com

L


Paul Andrews a écrit :

- Original Message - From: "Pedro Kostelec" <[EMAIL PROTECTED]>
To: "Flash Coders List" 
Sent: Thursday, March 27, 2008 9:21 AM
Subject: Re: [Flashcoders] Tweening Engines for AS3



"Sorry, my fault, sometimes I forgot I am on an international list.
You would cry if you see a paycheck of a programmer from a third-world
country ;)"

I don't get it. I am not even in university so i am not employed and 
i have

no idea what this international list means??


People reading and posting to the list are from all over the world - 
international - rather than just being in the US. In that respect you 
can't assume that worldwide flash developers are all driving in shiny 
new Porsches.


Paul



I am curious,
Pedro


On Wed, Mar 26, 2008 at 7:43 PM, Wagner Amaral <[EMAIL PROTECTED]>
wrote:

On Wed, Mar 26, 2008 at 2:38 PM, Steven Sacks 
<[EMAIL PROTECTED]>

wrote:

> > We are programmers, we can't afford Porsches! Better change that
> > to bike and skate...
>
> You're joking, right?  Talented Flash developers are in extremely 
high

> demand right now.  Every day I get 3-5 emails from recruiters or
companies.
>  It's a seller's market and people are paying top dollar for AS3 and
Flex
> devs.  Flash and Flex jobs are paying $75-$150/hr.  That's $150,000 -
> $300,000 a year.  If you can't afford a Porsche, you need to find 
a new

job
> or grow a pair and ask for a raise.
>
> That being said, I don't own a Porsche because I've got better 
things > to

> do with my money.  ;)
>


Sorry, my fault, sometimes I forgot I am on an international list.
You would cry if you see a paycheck of a programmer from a third-world
country ;)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





--
Pedro D.K.
___
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] world clock - revisited

2008-03-27 Thread Marcelo Volmaro
I can't send code if that's what you need (because it belongs to a client  
app) but on each clock (that are a kind of widget you can place into a  
dashboard) you can select the timezone you want to display in that clock.


The time is simply calculated by performing some math on the Date object:

var d:Date = new Date();
var ct:Number = Number(d)+(d.getTimezoneOffset() * 6); // this makes  
the time be at GMT+0
d.setTime(ct + (selectedTimeZoneOffset * 6)); //this makes the time be  
at the selected Timezone


Where the "selectedTimeZoneOffset" variable holds the information of the  
"b" attribute. Then, I use that date to check if I'm in DST I re-do the  
calc, but using the "d" attribute.


Regards,

On Thu, 27 Mar 2008 11:05:44 -0300, Corban Baxter <[EMAIL PROTECTED]>  
wrote:



thats great! Marcelo! sorry about the code confusion. :)  do you have
any examples of how you are implementing this? I think i have put my
clocks together ok... i'd kinda like to see how you are using it. do
you mind?

On Wed, Mar 26, 2008 at 6:08 PM, Marcelo Volmaro <[EMAIL PROTECTED]>  
wrote:

I did that code :)

 You have problems because the US changed the DST policy. Now it starts  
at

 SECOND SUNDAY of MARCH
  and ends at FIRST SUNDAY of NOVEMBER.

 So, USADLS now should be (2, 0, 3, 1, 0, 11);

 I don't know if the other policies changed too.

 This is the latest table:
 OLD_USADST: new Dst(LAST, SUNDAY, OCTOBER, FIRST, SUNDAY, APRIL),
 NEW_USADST: new Dst(FIRST, SUNDAY, NOVEMBER, SECOND, SUNDAY, MARCH),
 EU_DST: new Dst(LAST, SUNDAY, OCTOBER, LAST, SUNDAY, MARCH),
 CH_DST: new Dst(SECOND, SATURDAY, MARCH, SECOND, SATURDAY, OCTOBER),
 OCBR_DST: new Dst(SECOND, SUNDAY, FEBRUARY, FIRST, SUNDAY, NOVEMBER),
 NCBR_DST: new Dst(LAST, SUNDAY, FEBRUARY, FIRST, SUNDAY, NOVEMBER),
 MV_DST: new Dst(SECOND, SUNDAY, MARCH, FIRST, SUNDAY, OCTOBER),
 MA_DST: new Dst(LAST, SUNDAY, SEPTEMBER, LAST, SUNDAY, MARCH),
 JD_DST: new Dst(LAST, FRIDAY, SEPTEMBER, LAST, THURSDAY, MARCH),
 ME_DST: new Dst(LAST, SATURDAY, OCTOBER, LAST, SUNDAY, MARCH),
 EG_DST: new Dst(LAST, THURSDAY, SEPTEMBER, LAST, THURSDAY, APRIL),
 IS_DST: new Dst(THIRD, SUNDAY, SEPTEMBER, LAST, FRIDAY, MARCH),
 NA_DST: new Dst(FIRST, SUNDAY, SEPTEMBER, FIRST, SUNDAY, APRIL),
 AR_DST: new Dst(FIRST, SUNDAY, OCTOBER, FIRST, SUNDAY, APRIL),
 IR_DST: new Dst(FOURTH, TUESDAY, SEPTEMBER, FIRST, SUNDAY, MARCH),
 AU_DST: new Dst(LAST, SUNDAY, MARCH, LAST, SUNDAY, OCTOBER),
 TA_DST: new Dst(LAST, SUNDAY, MARCH, FIRST, SUNDAY, OCTOBER),
 NZ_DST: new Dst(THIRD, SUNDAY, MARCH, FIRST, SUNDAY, OCTOBER)

 There are a couple of countries that do not have a "programatic" DST  
but

 moves from year to year.

 Below is the XML I use to get the information I need:

 Attributes:
 n = name of the timezone
 b = time offset (in minutes)
 d = same, but in daylight

 f and l = used to identify first and last nodes. Any year before f will
 use the information in f for the calcs, any year after l will use the
 information in l.

 dst = the dst information from above.
 shh, ehh: Start hour and End hour where the change occurs (so, it is  
not

 always at 00:00).

 If a year does not has a DST information, it must has the information
 regarding the start and end date (sd = start day, sm = start month, ed  
=

 end day, em = end month). If no information is provided (nor DST nor
 Start/End dates), there are no DST for that specific year.

 Also, remember that countries/timezones that have DST may or may not  
apply

 the policy (example: Check GreenLand in the TimeZone control pannel in
 Windows, you have an option to adjust for DST or not).

 Hope this helps

 







d="420">











d="360">





d="300">




d="300">





d="240">















emm="59" ess="59"/>


























 b="0" d="-60">



 b="-60" d="-120">



 b="-60" d="-120">


d="-120">



d="-120">







d="-180">







emm="59" ess="59"/>


 

Re: [Flashcoders] FLASH+AIR+ASP

2008-03-27 Thread Helmut Granda
You have to login through a aspx form(no httaccess). basically the
application lives in the extranet so you have to login to access any
documents on that specific area. It works well on the browser because before
accessing the application you have to login and once you are in the process
continues. But as a stand-alone application it seems to be a whole different
monster

start()
if user is not logged in
ask for login info()
else
go to the app()
end()

thanks for your input

On Thu, Mar 27, 2008 at 3:44 AM, Sidney de Koning <[EMAIL PROTECTED]>
wrote:

> Do you mean that you need to login through HTACCESS? (the browser
> dialog box) or through an ASP file?
>
> If its HTACCESS then, with AIR, you can get past it in AIR. Tell me
> which one is of use and i'll try to help.
>
> Cheers,
>
> Sid
>
> On Mar 26, 2008, at 11:41 PM, Helmut Granda wrote:
>
> >I have an application that was created for the browser
> > (Flash+ASP)and runs under a secure server (https) and everything works
> > great. Now there is an attenpt to move the application to stand
> > alone with
> > AIR but it seems like because it is under a secure server I am
> > having issues
> > accessing the server.
> >
> >Basically this is what happens:
> >
> >Flash -> ask to ASP for stuff
> >ASP -> give back Flash STUFF
> >FLASH -> Display the stuff ASP Provided
> >
> >Using AIR as a wrapper Im not sure how still being able to
> > hit the
> > server without having the user to log in. Oh yeah I forgot to
> > mention that
> > the user has to login throuh the browser so do I need to create a
> > page for
> > the user to login before deploying my application?
> >
> >TIA
> > ___
> > 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
>



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


Re: [Flashcoders] world clock - revisited

2008-03-27 Thread Corban Baxter
thats great! Marcelo! sorry about the code confusion. :)  do you have
any examples of how you are implementing this? I think i have put my
clocks together ok... i'd kinda like to see how you are using it. do
you mind?

On Wed, Mar 26, 2008 at 6:08 PM, Marcelo Volmaro <[EMAIL PROTECTED]> wrote:
> I did that code :)
>
>  You have problems because the US changed the DST policy. Now it starts at
>  SECOND SUNDAY of MARCH
>   and ends at FIRST SUNDAY of NOVEMBER.
>
>  So, USADLS now should be (2, 0, 3, 1, 0, 11);
>
>  I don't know if the other policies changed too.
>
>  This is the latest table:
>  OLD_USADST: new Dst(LAST, SUNDAY, OCTOBER, FIRST, SUNDAY, APRIL),
>  NEW_USADST: new Dst(FIRST, SUNDAY, NOVEMBER, SECOND, SUNDAY, MARCH),
>  EU_DST: new Dst(LAST, SUNDAY, OCTOBER, LAST, SUNDAY, MARCH),
>  CH_DST: new Dst(SECOND, SATURDAY, MARCH, SECOND, SATURDAY, OCTOBER),
>  OCBR_DST: new Dst(SECOND, SUNDAY, FEBRUARY, FIRST, SUNDAY, NOVEMBER),
>  NCBR_DST: new Dst(LAST, SUNDAY, FEBRUARY, FIRST, SUNDAY, NOVEMBER),
>  MV_DST: new Dst(SECOND, SUNDAY, MARCH, FIRST, SUNDAY, OCTOBER),
>  MA_DST: new Dst(LAST, SUNDAY, SEPTEMBER, LAST, SUNDAY, MARCH),
>  JD_DST: new Dst(LAST, FRIDAY, SEPTEMBER, LAST, THURSDAY, MARCH),
>  ME_DST: new Dst(LAST, SATURDAY, OCTOBER, LAST, SUNDAY, MARCH),
>  EG_DST: new Dst(LAST, THURSDAY, SEPTEMBER, LAST, THURSDAY, APRIL),
>  IS_DST: new Dst(THIRD, SUNDAY, SEPTEMBER, LAST, FRIDAY, MARCH),
>  NA_DST: new Dst(FIRST, SUNDAY, SEPTEMBER, FIRST, SUNDAY, APRIL),
>  AR_DST: new Dst(FIRST, SUNDAY, OCTOBER, FIRST, SUNDAY, APRIL),
>  IR_DST: new Dst(FOURTH, TUESDAY, SEPTEMBER, FIRST, SUNDAY, MARCH),
>  AU_DST: new Dst(LAST, SUNDAY, MARCH, LAST, SUNDAY, OCTOBER),
>  TA_DST: new Dst(LAST, SUNDAY, MARCH, FIRST, SUNDAY, OCTOBER),
>  NZ_DST: new Dst(THIRD, SUNDAY, MARCH, FIRST, SUNDAY, OCTOBER)
>
>  There are a couple of countries that do not have a "programatic" DST but
>  moves from year to year.
>
>  Below is the XML I use to get the information I need:
>
>  Attributes:
>  n = name of the timezone
>  b = time offset (in minutes)
>  d = same, but in daylight
>
>  f and l = used to identify first and last nodes. Any year before f will
>  use the information in f for the calcs, any year after l will use the
>  information in l.
>
>  dst = the dst information from above.
>  shh, ehh: Start hour and End hour where the change occurs (so, it is not
>  always at 00:00).
>
>  If a year does not has a DST information, it must has the information
>  regarding the start and end date (sd = start day, sm = start month, ed =
>  end day, em = end month). If no information is provided (nor DST nor
>  Start/End dates), there are no DST for that specific year.
>
>  Also, remember that countries/timezones that have DST may or may not apply
>  the policy (example: Check GreenLand in the TimeZone control pannel in
>  Windows, you have an option to adjust for DST or not).
>
>  Hope this helps
>
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  d="300">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  ess="59"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   b="0" d="-60">
> 
> 
>   b="-60" d="-120">
> 
> 
>   b="-60" d="-120">
> 
> 
>  d="-120">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  ess="59"/>
> 
> 
>   b="-120" d="-180">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  

[Flashcoders] AMFPHP vs RubyAMF

2008-03-27 Thread artur
is there a major difference in terms of performance, stability,  and 
flexibility?


im about to built an RIA using Flex & MySQL..
but havent decided on the middleware yet.

whats the verdict?

also whats the learning curve on it for devs who have experience with 
Java, JSP, ASP, PHP



--

*artur :.*

- *www.artur.com*
- [EMAIL PROTECTED]
- *ph:646.797.3320*

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


Re: [Flashcoders] ot : Flex RIA running on multiple servers

2008-03-27 Thread Jon Bradley


On Mar 27, 2008, at 9:07 AM, Cutter (FlashRelated) wrote:

You could also use Adobe ColdFusion, which has native AMF support  
built-in, as well as a gateway for interacting with Flex apps. Then  
you have the power of a J2EE app server, the agility of RAD  
development with ColdFusion and Flex, plus the scalability of  
ColdFusion, with it's clustering support, etc.


Great addition to the discussion. There are a lot of options out there.

cheers,

jon

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


Re: [Flashcoders] Image colorization / contrast adjusting

2008-03-27 Thread Jon Bradley


On Mar 27, 2008, at 7:37 AM, Alistair Colling wrote:

Hello, I would like to know if it is possible for flash to process  
a regular photograph to produce a pop-arty image like this:


http://www.popartuk.com/g/l/lgpo7028+pop-art-andy-warhol-1962-che- 
guevara-poster.jpg


A little Warhol-style transformation huh?

I am not sure if this is possible or the best way to go about this.  
If someone could let me know if this would be possible to do and  
maybe give me some direction as to how to do it that would be great.


100% possible.

Check out BitmapData.paletteMap() as one option. Additionally, you  
could use BitmapData.threshold() to get different value areas,  
colorize them and recombine them.


Lots of options.

cheers,

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


Re: [Flashcoders] Variable scope within for loops: reusing iteratorvariables

2008-03-27 Thread Omar Fouad
I mean inserting var i:int instead of declaring it outside the loop.

On Thu, Mar 27, 2008 at 3:26 PM, Omar Fouad <[EMAIL PROTECTED]> wrote:

> Try this:
>
> for(var i:int; i<10; i++) {
>//some crap here
>
> }
>
> On Mon, Mar 24, 2008 at 8:49 PM, Kerry Thompson <[EMAIL PROTECTED]>
> wrote:
>
> > jonathan howe wrote:
> >
> > > Hmm... it is within a class... and that's when I'm getting the
> > warnings.
> > Or
> > > did you mean just in general to reiterate that variables are locally
> > scoped
> > > to functions and classes and not to for loops?
> >
> > If you declare a variable within a function, its scope is limited to
> > that
> > function. It really doesn't relate to where in the function you use it
> > (or
> > declare it). In my example, this:
> >
> > function doSomething
> > {
> >   var i:int;
> >   for(i=0;i++;i<10)
> >   {
> >   }
> > }
> >
> > Is functionally identical to this:
> >
> > function doSomething
> > {
> >   for(var i:int =0;i++;i<10)
> >   {
> >   }
> > }
> >
> > You're correct that AS3 is more strict about these sorts of things than
> > AS2.
> > AS2 was really just syntactic sugar for AS1, and wasn't strict at all.
> >
> > Cordially,
> >
> > Kerry Thompson
> >
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> 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.




-- 
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


Re: [Flashcoders] Variable scope within for loops: reusing iteratorvariables

2008-03-27 Thread Omar Fouad
Try this:

for(var i:int; i<10; i++) {
   //some crap here
}

On Mon, Mar 24, 2008 at 8:49 PM, Kerry Thompson <[EMAIL PROTECTED]>
wrote:

> jonathan howe wrote:
>
> > Hmm... it is within a class... and that's when I'm getting the warnings.
> Or
> > did you mean just in general to reiterate that variables are locally
> scoped
> > to functions and classes and not to for loops?
>
> If you declare a variable within a function, its scope is limited to that
> function. It really doesn't relate to where in the function you use it (or
> declare it). In my example, this:
>
> function doSomething
> {
>   var i:int;
>   for(i=0;i++;i<10)
>   {
>   }
> }
>
> Is functionally identical to this:
>
> function doSomething
> {
>   for(var i:int =0;i++;i<10)
>   {
>   }
> }
>
> You're correct that AS3 is more strict about these sorts of things than
> AS2.
> AS2 was really just syntactic sugar for AS1, and wasn't strict at all.
>
> Cordially,
>
> Kerry Thompson
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
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


Re: [Flashcoders] ot : Flex RIA running on multiple servers

2008-03-27 Thread Cutter (FlashRelated)
You could also use Adobe ColdFusion, which has native AMF support 
built-in, as well as a gateway for interacting with Flex apps. Then you 
have the power of a J2EE app server, the agility of RAD development with 
ColdFusion and Flex, plus the scalability of ColdFusion, with it's 
clustering support, etc.


Yes, the server license costs, but when you factor in the support, the 
community information (which is extreme), and the time savings offered 
by programming in CFML over Java (or something else), plus the bonus of 
the native communication channels that Adobe has built into the two 
products, it really is a major win-win scenario.


Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com

Jon Bradley wrote:


On Mar 26, 2008, at 8:34 PM, artur wrote:


the CMS webservice i want to build will be done in FLEX / AMF / MySQL.

and i want to make sure that it can scale and be redundant.


Ok but that doesn't have anything to do with Flex. Flex is just a 
different application to build an SWF file. It is only the front-end 
solution.


Flex SWF == Flash SWF, plus a whole bunch of code for handling the UI. 
The Flex SDK is like using a framework (vegas, arp, etc.) for Flash, but 
on crack.


If you're talking about your server solution scaling and being 
redundant, you need to be way more concerned with other things. You'll 
most likely need some type of J2EE server.


Your best bet is to find a content management system that utilizes 
JSR-170 (Java Content Repository) and can use MySQL or PostgresSQL (or 
even oracle) for serious scalability and capability to handle 
clustering, etc.


Check Alfresco.com as a nice, forward looking solution for that (it's 
open source and free, if you don't need support). You'll still need to 
write the API on the server with Java to allow the AMF library 
(GraniteDS or BlazeDS) to speak with the CMS services.Drupal or DSpace 
might be additional options but I don't know how they scalability and 
redundancy.


There is also an open source project that wasn't started too long ago: 
Igenko  The goal of this project is to act as a JSR-170 (with Apache 
Jackrabbit) with data services (GraniteDS at the moment). the link is: 
code.google.com/p/igenko


Either way, your issue is server-side, not Flex/Flash.

- jon


___
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] Image colorization / contrast adjusting

2008-03-27 Thread Alistair Colling
Hello, I would like to know if it is possible for flash to process a  
regular photograph to produce a pop-arty image like this:


http://www.popartuk.com/g/l/lgpo7028+pop-art-andy-warhol-1962-che- 
guevara-poster.jpg


The user would upload their photograph, I guess I would then need  
flash to convert it to black and white add some sort of severe  
contrast so I get 3 distinct colours and then separate these sections  
so I can colour them with bright colours.


I am not sure if this is possible or the best way to go about this.  
If someone could let me know if this would be possible to do and  
maybe give me some direction as to how to do it that would be great.



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


Re: [Flashcoders] JSFL Add a new font

2008-03-27 Thread Leon
And no others way?
Ex: A low-level extension for flash that extends JSFL ?



2008/3/25, Michael Randolph <[EMAIL PROTECTED]>:
>
> I wish...no way to do this afaik
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Leon
> Sent: Tuesday, March 25, 2008 4:05 PM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] JSFL Add a new font
>
> Hello FlashCoders,
>
> With a JSFL
> 1 - I want to : in an opened document.
> 2 - Create a new Font Symbol in my opened document library.
> 3 - Set his parameters.
>
> Is it possible !?
>
> Leon
>
> /*
> var lib = fl.getDocumentDOM().library;
> lib.addNewItem('FontItem');
> */
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>
>
>
>
>
>
>
>
>
> This message is the property of R/GA and contains information which may be
> privileged or confidential. It is meant only for the intended recipients
> and/or their authorized agents. If you believe you have received this
> message in error, please notify us immediately by return e-mail or by
> forwarding this message to [EMAIL PROTECTED], and destroy any printed or
> electronic copies of the message. Any unauthorized use, dissemination,
> disclosure, or copying of this message or the information contained in it,
> is strictly prohibited and may be unlawful. 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] ot : Flex RIA running on multiple servers

2008-03-27 Thread Jon Bradley


On Mar 26, 2008, at 8:34 PM, artur wrote:


the CMS webservice i want to build will be done in FLEX / AMF / MySQL.

and i want to make sure that it can scale and be redundant.


Ok but that doesn't have anything to do with Flex. Flex is just a  
different application to build an SWF file. It is only the front-end  
solution.


Flex SWF == Flash SWF, plus a whole bunch of code for handling the  
UI. The Flex SDK is like using a framework (vegas, arp, etc.) for  
Flash, but on crack.


If you're talking about your server solution scaling and being  
redundant, you need to be way more concerned with other things.  
You'll most likely need some type of J2EE server.


Your best bet is to find a content management system that utilizes  
JSR-170 (Java Content Repository) and can use MySQL or PostgresSQL  
(or even oracle) for serious scalability and capability to handle  
clustering, etc.


Check Alfresco.com as a nice, forward looking solution for that (it's  
open source and free, if you don't need support). You'll still need  
to write the API on the server with Java to allow the AMF library  
(GraniteDS or BlazeDS) to speak with the CMS services.Drupal or  
DSpace might be additional options but I don't know how they  
scalability and redundancy.


There is also an open source project that wasn't started too long  
ago: Igenko  The goal of this project is to act as a JSR-170 (with  
Apache Jackrabbit) with data services (GraniteDS at the moment). the  
link is: code.google.com/p/igenko


Either way, your issue is server-side, not Flex/Flash.

- jon


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


Re: [Flashcoders] Tweening Engines for AS3

2008-03-27 Thread Paul Andrews
- Original Message - 
From: "Pedro Kostelec" <[EMAIL PROTECTED]>

To: "Flash Coders List" 
Sent: Thursday, March 27, 2008 9:21 AM
Subject: Re: [Flashcoders] Tweening Engines for AS3



"Sorry, my fault, sometimes I forgot I am on an international list.
You would cry if you see a paycheck of a programmer from a third-world
country ;)"

I don't get it. I am not even in university so i am not employed and i 
have

no idea what this international list means??


People reading and posting to the list are from all over the world - 
international - rather than just being in the US. In that respect you can't 
assume that worldwide flash developers are all driving in shiny new 
Porsches.


Paul



I am curious,
Pedro


On Wed, Mar 26, 2008 at 7:43 PM, Wagner Amaral <[EMAIL PROTECTED]>
wrote:


On Wed, Mar 26, 2008 at 2:38 PM, Steven Sacks <[EMAIL PROTECTED]>
wrote:

> > We are programmers, we can't afford Porsches! Better change that
> > to bike and skate...
>
> You're joking, right?  Talented Flash developers are in extremely high
> demand right now.  Every day I get 3-5 emails from recruiters or
companies.
>  It's a seller's market and people are paying top dollar for AS3 and
Flex
> devs.  Flash and Flex jobs are paying $75-$150/hr.  That's $150,000 -
> $300,000 a year.  If you can't afford a Porsche, you need to find a new
job
> or grow a pair and ask for a raise.
>
> That being said, I don't own a Porsche because I've got better things 
> to

> do with my money.  ;)
>


Sorry, my fault, sometimes I forgot I am on an international list.
You would cry if you see a paycheck of a programmer from a third-world
country ;)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





--
Pedro D.K.
___
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] Tweening Engines for AS3

2008-03-27 Thread Pedro Kostelec
"Sorry, my fault, sometimes I forgot I am on an international list.
You would cry if you see a paycheck of a programmer from a third-world
country ;)"

I don't get it. I am not even in university so i am not employed and i have
no idea what this international list means??
I am curious,
Pedro


On Wed, Mar 26, 2008 at 7:43 PM, Wagner Amaral <[EMAIL PROTECTED]>
wrote:

> On Wed, Mar 26, 2008 at 2:38 PM, Steven Sacks <[EMAIL PROTECTED]>
> wrote:
>
> > > We are programmers, we can't afford Porsches! Better change that
> > > to bike and skate...
> >
> > You're joking, right?  Talented Flash developers are in extremely high
> > demand right now.  Every day I get 3-5 emails from recruiters or
> companies.
> >  It's a seller's market and people are paying top dollar for AS3 and
> Flex
> > devs.  Flash and Flex jobs are paying $75-$150/hr.  That's $150,000 -
> > $300,000 a year.  If you can't afford a Porsche, you need to find a new
> job
> > or grow a pair and ask for a raise.
> >
> > That being said, I don't own a Porsche because I've got better things to
> > do with my money.  ;)
> >
>
>
> Sorry, my fault, sometimes I forgot I am on an international list.
> You would cry if you see a paycheck of a programmer from a third-world
> country ;)
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



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


Re: [Flashcoders] How to determine value of source code

2008-03-27 Thread Jiri Heitlager
Thank you all for replying. It really made things clearier and some of 
the points made I really didn't think of yet, for instance the code 
libs. I really didnt take the time to develop those into consideration.


Seems like a hell of a job to value code, I prefer coding :0

Again thanks,

Jiri

Ian Thomas wrote:

I'd be very careful how you proceed with this, but at the end of the
day it's your own judgement.

It also rather depends on how much of what you've written for the
client is solely for that client - you will never reuse it - or if
you're depending on code libraries you've previously developed and
plan to continue on developing.

With our projects, the price to develop the project is assuming our
(extensive) code libraries already exist. So if a client asks for
source code, I'll tend to quote them for the project development time
+ all the time to (re)develop all those libraries (and associated
testing etc.). And I'll explain the reasons behind it.

At that point they look at the numbers, look uncomfortable, and say
'okay, well, maybe we don't want the source code, then.'

:-)

Ian

On Wed, Mar 26, 2008 at 11:55 AM, Jiri Heitlager
<[EMAIL PROTECTED]> wrote:

Hello,


 a client of mine has requested to buy the source code of a project I did
 for them. I havent really sold any source code yet, so I was wondering
 if somebody maybe could give me some tips, because I really dont know
 how to value source code?

 I was thinking in the line of a percentage of the total project cost,
 something like 45%??

 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


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


Re: [Flashcoders] FLASH+AIR+ASP

2008-03-27 Thread Sidney de Koning
Do you mean that you need to login through HTACCESS? (the browser  
dialog box) or through an ASP file?


If its HTACCESS then, with AIR, you can get past it in AIR. Tell me  
which one is of use and i'll try to help.


Cheers,

Sid

On Mar 26, 2008, at 11:41 PM, Helmut Granda wrote:


   I have an application that was created for the browser
(Flash+ASP)and runs under a secure server (https) and everything works
great. Now there is an attenpt to move the application to stand  
alone with
AIR but it seems like because it is under a secure server I am  
having issues

accessing the server.

   Basically this is what happens:

   Flash -> ask to ASP for stuff
   ASP -> give back Flash STUFF
   FLASH -> Display the stuff ASP Provided

   Using AIR as a wrapper Im not sure how still being able to  
hit the
server without having the user to log in. Oh yeah I forgot to  
mention that
the user has to login throuh the browser so do I need to create a  
page for

the user to login before deploying my application?

   TIA
___
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