Re: [Flashcoders] zinc 3.0 overhead

2008-03-26 Thread Dennis - I Sioux

August!

2 Weeks ago i mailed the same to the guys from MDM.
With some e-mail contact they came to a fix for that.

They used to buffer offscreen and then put everything in screen.
They changed it to the way Flash doess it aswell (directly to screen).
This is build in the FULL pc version. up from the 3.0.2 build.
So the trial is'indeed slow, but the new full version is verrryy fast.. 
about the same as a swf. :-D
If you are using transparant exe's it's not worth wile for you though, that 
still works with the old buffer method.


Hope this helps.

With kind regards,

Dennis
Isioux

- Original Message - 
From: August Gresens [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Tuesday, March 25, 2008 7:13 PM
Subject: [Flashcoders] zinc 3.0 overhead



Anyone else find that frame rates drop significantly with Flash projects
wrapped in Zinc? Despite claims of performance enhancements, I'm noticing 
a

significant decrease in performance with an AS3 SWF running in Zinc 3.0 on
windows compared with the Flash Player.

Using the flex sample at http://www.bubblemark.com/ I found that the 
project
ran about 50% slower on Zinc than in the flash player (25-28 FPS in Zinc 
and

47-50 FPS in the Standalone Flash Player 9).

Kind of a disappointment for a product touting itself as a game 
development

platform for Flash. Has anyone else been down this road?

Note: I was testing with the trial version. Not sure if the trial 
watermark

could slow down the performance that much or not.

Thanks,

A

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

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

__ NOD32 2973 (20080326) Informatie __

Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
http://www.nod32.nl




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


[Flashcoders] SetVariable, GetVariable - are there anymore?

2008-03-26 Thread Martin Klasson
Hi Coders,

using SetVariable and GetVariable is somewhat funky with the use of
javascript/flash-communication,
sure there are other ways as well - fscommand and ExternalInterface...

but are there moew methods than GetVariable and SetVariable?
Can I issue a gotoAndStop, or play or so in the same manner - (without the
use of SetVariable and watching when a variable changes and such)

-- 

Martin Klasson
Flash Developer
Parkgatan 9-11
S-411 24 Göteborg
Sweden
Office +46 (0) 31 711 54 50
Cell +46 (0) 730 964 561
[EMAIL PROTECTED]
www.kokokaka.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Custom DrawRectangle Question

2008-03-26 Thread Allandt Bik-Elliott (Receptacle)
It seems to me that that would work as a Sprite too - less memory  
overheads (not by much, mind, but it'll help if there's a lot of them)


also, would you be better off making your class variables protected  
or private? Those variables are being set by the constructor, anyway,  
and if you use get() and set() methods on them you could add tweens  
and variable checking (for instance) etc if they're changed once the  
shape is initialised



On 25 Mar 2008, at 20:55, Omar Fouad wrote:


Yeah A good method to do rectangles fast

On Tue, Mar 25, 2008 at 9:30 PM, Cor [EMAIL PROTECTED] wrote:


Mmm, sounds familiair. :-)
It has to be added to the Displaylist otherwise it isn't visible.

Cor

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Omar Fouad
Verzonden: maandag 24 maart 2008 22:01
Aan: Flash Coders List
Onderwerp: [Flashcoders] Custom DrawRectangle Question

I am creating a custom Class that draws a simple rectangle for an
application. Here is the class

DrawRectangle.as

public class DrawRectangle extends MovieClip {

   public var _w:Number;
   public var _h:Number;
   public var _x:Number;
   public var _y:Number;

   public function DrawRectangle(w:Number, h:Number, x:Number,
y:Number) {
   this._w = w;
   this._h = h;
   this._x = x;
   this._y = y;
   Init();
   }
   private function Init():void {
   var MC:MovieClip = new MovieClip();
   MC.graphics.lineStyle(1, 0xFF);
   MC.graphics.beginFill(0xFF, .3);
   MC.graphics.drawRect(_x,_y,_w,_h);
   addChild(MC);
   }

   }
}

I wrote it without the last line ( addChild(MC) ) and it didnt  
work. It

did
not work Event when In the Main Class I added the addChild() like  
this:



var M:DrawRectangle = new Rectangle(100,100,20,100);

addChild(M);


I thought The addChild should be put outside the class. And No It  
only

worked when I add the addChild() in the class and out the class... It
works
But I want to understand Why??
How can I set it to draw from the class iteself??

Thanks.


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


--
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.0/1342 - Release Date:  
25-3-2008

10:26

No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.0/1342 - Release Date:  
25-3-2008

10:26


No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.0/1342 - Release Date:  
25-3-2008

10:26


___
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




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


Re: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Allandt Bik-Elliott (Receptacle)
i've never used tweenlite but i have used tweener and one of the  
things that blew me away was the ability to tween properties and  
variables rather than just clips/sprites


example from current project:

[CODE]
// read/write percentage value relates directly to the slider
public function get percent():Number { return slider.percent; }
public function set percent( p:Number ):void { slider.percent = p; }

 public function arrowPressed( e:MouseEvent ):void
 {
var dir:int = (e.target.name == left_arrow) ? -1 : 1;
var total:Number = slider.percent + (dir * scrollSpeed);
	Tweener.addTween(slider,{percent:total, time: .5,  
transition:easeInOutQuad}); // Tweens set() method

}
[/CODE]

you may be able to do this with tweenlite, i don't know


On 25 Mar 2008, at 23:46, Jack Doyle wrote:

First let me say that Tweener is fantastic, and a lot of people  
rely on it
for good reason. If quantity of features is your top priority, you  
should

seriously consider using Tweener.

Let me briefly address a few of the TweenLite-related concerns  
folks have

mentioned:

SPEED
-
TweenLite's speed advantage isn't only a factor when you're doing  
hundreds

of simultaneous tweens - it can be important even with a single tween.
Imagine a button that initiates a tween when you rollover it, and  
the user
rolls their mouse on/off/on/off quickly. Even a slight pause can  
degrade the

experience. Speed is also critical for mobile devices that have slower
processors, less memory, etc.

FILE SIZE
-
File size can be a huge factor in certain scenarios, especially for  
banner
ads. But for those who don't deal with strict file size  
requirements, it's a

non-issue.

FEATURES

Bezier tweens - Coming soon (well, as soon as I can clear my over- 
filled

plate) to TweenMax which is a class that extends TweenLite, adding
non-essential features. That way, the base class will remain very  
lean 
mean, but if you need the extra features and are willing to trade  
off some

file size and performance, TweenMax will take care of you.

Rounding numbers - Possible now with TweenLite's onUpdate feature.  
It does
require some extra steps, though. If it gets added to the base  
class, every
tween takes a slight performance hit because of the added  
conditional logic

required just to see whether or not each tween needs rounding. Calling
Math.round() on every frame is expensive in terms of performance too.

Transitions/easing - There aren't fewer transition options in  
TweenLite. You
can use ANY function as long as it conforms to the standard ease  
format that

all of Adobe's and Penner's do. Elastic, Strong, Back, etc. are all
available.

You may actually find that there are a few features that the TweenLite
family of classes (TweenLite, TweenFilterLite, and TweenMax) has that
Tweener is missing, but in general, I'd say Tweener is more feature- 
packed.
It just comes a the price of file size and performance. That's not  
to say
Tweener performs poorly, though - it depends on the scenario which  
is why

this speed test might be helpful:
http://blog.greensock.com/tweening-speed-test/

So, again, this isn't a good/bad issue - they're just different  
tools that

you can choose from to get the job done. TweenLite wasn't built to be
everything to everyone, and I'm pretty sure Tweener wasn't built to  
be a
super-compact engine that's perfect for banner ads. I'd encourage  
folks to

give 'em both a shot and see what feels best.

Tweener: http://code.google.com/p/tweener/
TweenLite: http://www.TweenLite.com

Jack


-Original Message-
From: Cory Petosky [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2008 1:43 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Tweening Engines for AS3

TweenLite doesn't have bezier curve support, can't store the duration
in the options object, doesn't support auto-rounding of pixels, and
has significantly fewer transition options. I think TweenLite is great
-- if I ever need to tween 1200 things at once, I'll certainly choose
it -- but these features in Tweener make it a better choice for many
of my projects.

On Mon, Mar 24, 2008 at 1:16 PM, Steven Sacks  
[EMAIL PROTECTED]

wrote:

Tweener is proven to be significantly slower than TweenLite, and it's
 almost 300% larger (TweenLite is 3k vs Tweener's 8k).

 I'm not telling you what to do. You're welcome to your preference. I
 prefer to write better, faster, smaller, more efficient code.   
Different

 strokes for different folks, I guess.  :)


 Dave Mennenoh wrote:

I prefer Tweener, and if you've ever used Fuse you'll like it's
syntax. It's also quite small - adds about 8K.

Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/




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




___

[Flashcoders] How to determine value of source code

2008-03-26 Thread Jiri Heitlager

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


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

2008-03-26 Thread Glen Pike

Hi,

   I guess it depends on whether you are going to license it to them 
for their use only or if they are then going to sell it on.


   The other part is whether you selling it to them means that you 
cannot use it.


   At the end of the day, it's intellectual property you are selling, 
so if you would be upset that this client is reselling your source code 
and making money after paying a one off sum to you, or if you would be 
upset that you could not use your code again, I would look at pricing 
and having contracts accordingly.


   Of course, your client will probably say wtf!? when you point out 
these things to them as they will always assume that something you made 
for them is theirs to do with what they like.


   This probably doesn't help much, but it maybe a useful insight.  At 
the end of the day, I would be pragmatic about it, but think about the 
risks and issues involved.


   Glen

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




--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
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-26 Thread Ian Thomas
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


Re: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Matt S.
One thing I keep seeing is all this talk of the 8k+ that Tweener, Fuse
etc add to the file size. And while I absolutely understand the need
for keeping projects as barebones tiny as possible, I guess it just
doesnt seem like that much, especially since a project that involves
heavy, repeated and complex tweening, 9 times out of 10, is chock full
o' jpegs, flvs, complex vector graphics etc, all of which might make
8k seem like the least of one's concerns. Am I missing something? Is
that 8k per tween?

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


Re: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Kenneth Kawamoto
Then I'll tell you TweenLite can tween anything. It can even tween Array 
(of numbers).


The last time I checked Tweener did not have filter tweens, that's why I 
picked TweenLite/TweenFilterLite. But things may have changed.


Jack has even fixed a little (albeit non-critical) buggish TweenLite 
behaviour for me earlier this year in a few days. Big respect!


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

Allandt Bik-Elliott (Receptacle) wrote:
i've never used tweenlite but i have used tweener and one of the things 
that blew me away was the ability to tween properties and variables 
rather than just clips/sprites


example from current project:

[CODE]
// read/write percentage value relates directly to the slider
public function get percent():Number { return slider.percent; }
public function set percent( p:Number ):void { slider.percent = p; }

 public function arrowPressed( e:MouseEvent ):void
 {
var dir:int = (e.target.name == left_arrow) ? -1 : 1;
var total:Number = slider.percent + (dir * scrollSpeed);
Tweener.addTween(slider,{percent:total, time: .5, 
transition:easeInOutQuad}); // Tweens set() method

}
[/CODE]

you may be able to do this with tweenlite, i don't know

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


Re: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Zeh Fernando
No. Classes add their size per SWF file, not per use. So yes, it's 8kb 
added to the file regardless of the number of uses.



Zeh

Matt S. wrote:

One thing I keep seeing is all this talk of the 8k+ that Tweener, Fuse
etc add to the file size. And while I absolutely understand the need
for keeping projects as barebones tiny as possible, I guess it just
doesnt seem like that much, especially since a project that involves
heavy, repeated and complex tweening, 9 times out of 10, is chock full
o' jpegs, flvs, complex vector graphics etc, all of which might make
8k seem like the least of one's concerns. Am I missing something? Is
that 8k per tween?

.m
___
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-26 Thread Cor
Hi Kenneth,

That's interesting.
How can I tween an Array.
Do you perhaps  have a little example code?

TIA
Cor

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Kenneth Kawamoto
Verzonden: woensdag 26 maart 2008 14:45
Aan: Flash Coders List
Onderwerp: Re: [Flashcoders] Tweening Engines for AS3

Then I'll tell you TweenLite can tween anything. It can even tween Array (of
numbers).

The last time I checked Tweener did not have filter tweens, that's why I
picked TweenLite/TweenFilterLite. But things may have changed.

Jack has even fixed a little (albeit non-critical) buggish TweenLite
behaviour for me earlier this year in a few days. Big respect!

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

Allandt Bik-Elliott (Receptacle) wrote:
 i've never used tweenlite but i have used tweener and one of the 
 things that blew me away was the ability to tween properties and 
 variables rather than just clips/sprites
 
 example from current project:
 
 [CODE]
 // read/write percentage value relates directly to the slider public 
 function get percent():Number { return slider.percent; } public 
 function set percent( p:Number ):void { slider.percent = p; }
 
  public function arrowPressed( e:MouseEvent ):void  {
 var dir:int = (e.target.name == left_arrow) ? -1 : 1;
 var total:Number = slider.percent + (dir * scrollSpeed);
 Tweener.addTween(slider,{percent:total, time: .5, 
 transition:easeInOutQuad}); // Tweens set() method } [/CODE]
 
 you may be able to do this with tweenlite, i don't know
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


--
No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.0/1343 - Release Date: 25-3-2008
19:17


No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.0/1343 - Release Date: 25-3-2008
19:17
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.0/1343 - Release Date: 25-3-2008
19:17
 

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


Re: [Flashcoders] Tweening Engines for AS3

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

no total

it only really matters with flash banners where you have to keep  
below a ridiculously low filesize (usually 20-30k for expanding ones)  
to not delay the content on the site


on sites / media it doesn't really add up to that much


On 26 Mar 2008, at 13:11, Matt S. wrote:


One thing I keep seeing is all this talk of the 8k+ that Tweener, Fuse
etc add to the file size. And while I absolutely understand the need
for keeping projects as barebones tiny as possible, I guess it just
doesnt seem like that much, especially since a project that involves
heavy, repeated and complex tweening, 9 times out of 10, is chock full
o' jpegs, flvs, complex vector graphics etc, all of which might make
8k seem like the least of one's concerns. Am I missing something? Is
that 8k per tween?

.m
___
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-26 Thread Merrill, Jason
 I'd encourage folks to give 
'em both a shot and see what feels best. 

Tweener: http://code.google.com/p/tweener/
TweenLite: http://www.TweenLite.com 

Jack, I just have to commend you for such an unbiased post - that's very
rare these days in online communities.  Kudos, espeically when you're
the developer of TweenLite.

Jason Merrill
Bank of America  
GTO and Risk LLD 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  GTO Innovative Learning Blog  subscribe.



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


RE: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Dwayne Neckles
I don't get the big deal either about size.. I mean I really don't...

except for ads maybe that have a tight 30k limit( which needs to be upped)

sites are like 2 megs these lols...



 Date: Wed, 26 Mar 2008 10:36:16 -0300
 From: [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Tweening Engines for AS3
 
 No. Classes add their size per SWF file, not per use. So yes, it's 8kb 
 added to the file regardless of the number of uses.
 
 
 Zeh
 
 Matt S. wrote:
  One thing I keep seeing is all this talk of the 8k+ that Tweener, Fuse
  etc add to the file size. And while I absolutely understand the need
  for keeping projects as barebones tiny as possible, I guess it just
  doesnt seem like that much, especially since a project that involves
  heavy, repeated and complex tweening, 9 times out of 10, is chock full
  o' jpegs, flvs, complex vector graphics etc, all of which might make
  8k seem like the least of one's concerns. Am I missing something? Is
  that 8k per tween?
  
  .m
  ___
  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

_
Test your Star IQ
http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_HMTAGMAR___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Custom DrawRectangle Question

2008-03-26 Thread Omar Fouad
Oh yeah I'll make the variables private and make their setters and getters.

Any ways thanks for the help everybody.

Hasta!

On Wed, Mar 26, 2008 at 1:07 PM, Allandt Bik-Elliott (Receptacle) 
[EMAIL PROTECTED] wrote:

 It seems to me that that would work as a Sprite too - less memory
 overheads (not by much, mind, but it'll help if there's a lot of them)

 also, would you be better off making your class variables protected
 or private? Those variables are being set by the constructor, anyway,
 and if you use get() and set() methods on them you could add tweens
 and variable checking (for instance) etc if they're changed once the
 shape is initialised


 On 25 Mar 2008, at 20:55, Omar Fouad wrote:

  Yeah A good method to do rectangles fast
 
  On Tue, Mar 25, 2008 at 9:30 PM, Cor [EMAIL PROTECTED] wrote:
 
  Mmm, sounds familiair. :-)
  It has to be added to the Displaylist otherwise it isn't visible.
 
  Cor
 
  -Oorspronkelijk bericht-
  Van: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Namens Omar Fouad
  Verzonden: maandag 24 maart 2008 22:01
  Aan: Flash Coders List
  Onderwerp: [Flashcoders] Custom DrawRectangle Question
 
  I am creating a custom Class that draws a simple rectangle for an
  application. Here is the class
 
  DrawRectangle.as
 
  public class DrawRectangle extends MovieClip {
 
 public var _w:Number;
 public var _h:Number;
 public var _x:Number;
 public var _y:Number;
 
 public function DrawRectangle(w:Number, h:Number, x:Number,
  y:Number) {
 this._w = w;
 this._h = h;
 this._x = x;
 this._y = y;
 Init();
 }
 private function Init():void {
 var MC:MovieClip = new MovieClip();
 MC.graphics.lineStyle(1, 0xFF);
 MC.graphics.beginFill(0xFF, .3);
 MC.graphics.drawRect(_x,_y,_w,_h);
 addChild(MC);
 }
 
 }
  }
 
  I wrote it without the last line ( addChild(MC) ) and it didnt
  work. It
  did
  not work Event when In the Main Class I added the addChild() like
  this:
 
 
  var M:DrawRectangle = new Rectangle(100,100,20,100);
 
  addChild(M);
 
 
  I thought The addChild should be put outside the class. And No It
  only
  worked when I add the addChild() in the class and out the class... It
  works
  But I want to understand Why??
  How can I set it to draw from the class iteself??
 
  Thanks.
 
 
  --
  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
 
 
  --
  No virus found in this incoming message.
  Checked by AVG.
  Version: 7.5.519 / Virus Database: 269.22.0/1342 - Release Date:
  25-3-2008
  10:26
 
  No virus found in this incoming message.
  Checked by AVG.
  Version: 7.5.519 / Virus Database: 269.22.0/1342 - Release Date:
  25-3-2008
  10:26
 
 
  No virus found in this outgoing message.
  Checked by AVG.
  Version: 7.5.519 / Virus Database: 269.22.0/1342 - Release Date:
  25-3-2008
  10:26
 
 
  ___
  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
 


 ___
 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 

[Flashcoders] How to expand import * statements?

2008-03-26 Thread Pasha
Thanks, guys, I stuck on FlasDevelop 2.0 and just misssed the new version -
FD 3.0.
However, despite new version is a great product (love it) it seems do not
have a batch mode to convert * imports for a set of classes or the whole
project.

But actually, I think it is not so important for me anymore, so don't
bother :)

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


[Flashcoders] AS2, AM/PM or 24 time format?

2008-03-26 Thread Pasha
Hey!

Is it possible to detect time settings on user computer?
I would like to know whether he/she uses american (AM/PM) or european 24
hour time format.

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


RE: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Merrill, Jason
I don't get the big deal either about size.. I mean I really don't...

except for ads maybe that have a tight 30k limit( which needs 
to be upped)

You add 40k here for some media. 60k there for some code, you're up to
100k.  If you have download requirements of 100k max in some client
environments (like we do in some environments), 8k makes a difference.

Jason Merrill
Bank of America  
GTO and Risk LLD 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  GTO Innovative Learning Blog  subscribe.




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


Re: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Martin Klasson
It is not that much to figure out Dwayne,
if you really care about filesizes - especially when doing banners - than
choosing
a lighter Tweening-engine might do the trick of keeping the filesize as low
as it must be

But you can use any tweening engine you like, as long as you agree with
yourself that
it is a tweening engine you want to use ;)

/m

2008/3/26, Dwayne Neckles [EMAIL PROTECTED]:

 I don't get the big deal either about size.. I mean I really don't...

 except for ads maybe that have a tight 30k limit( which needs to be upped)

 sites are like 2 megs these lols...



  Date: Wed, 26 Mar 2008 10:36:16 -0300
  From: [EMAIL PROTECTED]
  To: flashcoders@chattyfig.figleaf.com
  Subject: Re: [Flashcoders] Tweening Engines for AS3
 
  No. Classes add their size per SWF file, not per use. So yes, it's 8kb
  added to the file regardless of the number of uses.
 
 
  Zeh
 
  Matt S. wrote:
   One thing I keep seeing is all this talk of the 8k+ that Tweener, Fuse
   etc add to the file size. And while I absolutely understand the need
   for keeping projects as barebones tiny as possible, I guess it just
   doesnt seem like that much, especially since a project that involves
   heavy, repeated and complex tweening, 9 times out of 10, is chock full
   o' jpegs, flvs, complex vector graphics etc, all of which might make
   8k seem like the least of one's concerns. Am I missing something? Is
   that 8k per tween?
  
   .m
   ___
   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

 _
 Test your Star IQ

 http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_HMTAGMAR___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 

Martin Klasson
Flash Developer
Parkgatan 9-11
S-411 24 Göteborg
Sweden
Office +46 (0) 31 711 54 50
Cell +46 (0) 730 964 561
[EMAIL PROTECTED]
www.kokokaka.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ot :: specification apps tracking.

2008-03-26 Thread artur

i guess they can be shared of course..
but are there other tools out there that streamline this collaborative data?

i guess i can add these files into a check in/out system.

but i cant seem to track changes cleanly with these 2 apps..

*artur :.*

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



Merrill, Jason wrote:

Why do you say MindManager and Excel docs impossible to share?

Jason Merrill
Bank of America  
GTO and Risk LLD 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  GTO Innovative Learning Blog  subscribe.





 

  

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of artur

Sent: Tuesday, March 25, 2008 8:27 PM
To: flashcoders
Subject: [Flashcoders] ot :: specification apps  tracking.

oh wise list,

im about to start finalizing some major feature specs for my 
dev team ( im the product designer ) this doc will eventually 
be translated into a tech requirements doc.


which apps out there are great for authoring and tracking 
changes to both?


until now i have been using  MindManager PRO and 
Excel...which has been very fluid for me..but impossible to 
share with other team members.


p.s. we plan on using Trac w/ SVN for the dev process..

thanks
--

*artur :.*

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

___
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-26 Thread Dwayne Neckles
Gys



I'm very clear that when doing banners the is the big concern about size.. I 
was saying before that I understand that...

I do banners everyday


but that when it comes to BIG sites (2 megs )etc that I don't understand
the concern .most sites on FWA are big you know thats all?




Other than banners whats the big deal? Who cares about file sizes.. those sites 
on FWA are pretty huge..



Put me on.. I'm just asking 






 Date: Wed, 26 Mar 2008 11:04:30 -0400
 From: [EMAIL PROTECTED]
 Subject: RE: [Flashcoders] Tweening Engines for AS3
 To: flashcoders@chattyfig.figleaf.com
 
 I don't get the big deal either about size.. I mean I really don't...
 
 except for ads maybe that have a tight 30k limit( which needs 
 to be upped)
 
 You add 40k here for some media. 60k there for some code, you're up to
 100k.  If you have download requirements of 100k max in some client
 environments (like we do in some environments), 8k makes a difference.
 
 Jason Merrill
 Bank of America  
 GTO and Risk LLD 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  GTO Innovative Learning Blog  subscribe.
 
 
 
 
  
 ___
 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] Tweening Engines for AS3

2008-03-26 Thread Kenneth Kawamoto

Sure.

package {
import gs.TweenLite;

public class ArrayTweenExample {
private var arr:Array;

public function ArrayTweenExample():void {
arr = [2.34, 100, -666];
trace(arr);
			TweenLite.to(arr, 1, {endArray:[567.8, 999, 0], 
onUpdate:onArrayValueChange})

}

private function onArrayValueChange():void {
trace(arr);
}
}   
}

Output:
2.34,100,-666
67.0959137399,202.952581,-589.730346
98.5128713399,252.9010210001,-552.727386
133.8795670398,309.1289759997,-511.072416
165.9564164596,360.1265489995,-473.292234
195.8850833397,407.708821,-438.042186
224.6556881397,453.4499409997,-404.156106
252.2682308596,497.3499089997,-371.6339940003
279.5307538393,540.693395999,-339.524136
304.7909829595,580.853524,-309.772584
328.89314,619.17249,-281.385005
351.837254959,655.650324,-254.3613840004
374.285451499,691.339725,-227.92185
394.877242859,724.077709,-203.668794
414.310972139,754.974540999,-180.7797060003
432.586639339,784.030221,-159.2545860002
450.220509439,812.065536,-138.4853759997
466.1438630387,837.381375999,-119.730816
480.909154558,860.856063998,-102.3402240003
494.516383999,882.4896,-86.313606
507.335927659,902.870829001,-71.2147139996
518.590843499,920.764524999,-57.9586534
528.687697259,936.817069,-46.066554
537.62648894,951.028460999,-35.5384260007
545.631706159,963.755604,-26.10986400016
552.218184239,974.227155999,-18.35229600138
557.646600239,982.857555999,-11.95869600032
561.916954159,989.646804,-6.92906400039
565.10784494,994.719861,-3.170826000337
567.025885259,997.769268999,-0.911754000872
567.785863499,998.977524999,-0.01665000140608
567.8,999,0


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

Cor wrote:

Hi Kenneth,

That's interesting.
How can I tween an Array.
Do you perhaps  have a little example code?

TIA
Cor

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Kenneth Kawamoto
Verzonden: woensdag 26 maart 2008 14:45
Aan: Flash Coders List
Onderwerp: Re: [Flashcoders] Tweening Engines for AS3

Then I'll tell you TweenLite can tween anything. It can even tween Array (of
numbers).

The last time I checked Tweener did not have filter tweens, that's why I
picked TweenLite/TweenFilterLite. But things may have changed.

Jack has even fixed a little (albeit non-critical) buggish TweenLite
behaviour for me earlier this year in a few days. Big respect!

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

Allandt Bik-Elliott (Receptacle) wrote:
i've never used tweenlite but i have used tweener and one of the 
things that blew me away was the ability to tween properties and 
variables rather than just clips/sprites


example from current project:

[CODE]
// read/write percentage value relates directly to the slider public 
function get percent():Number { return slider.percent; } public 
function set percent( p:Number ):void { slider.percent = p; }


 public function arrowPressed( e:MouseEvent ):void  {
var dir:int = (e.target.name == left_arrow) ? -1 : 1;
var total:Number = slider.percent + (dir * scrollSpeed);
Tweener.addTween(slider,{percent:total, time: .5, 
transition:easeInOutQuad}); // Tweens set() method } [/CODE]


you may be able to do this with tweenlite, i don't know

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


Re: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Kenneth Kawamoto

Sure.

package {
import gs.TweenLite;

public class ArrayTweenExample {
private var arr:Array;

public function ArrayTweenExample():void {
arr = [2.34, 100, -666];
trace(arr);
TweenLite.to(arr, 1, {endArray:[567.8, 999, 0],
onUpdate:onArrayValueChange});
}

private function onArrayValueChange():void {
trace(arr);
}
}   
}

Output:
2.34,100,-666
67.0959137399,202.952581,-589.730346
98.5128713399,252.9010210001,-552.727386
133.8795670398,309.1289759997,-511.072416
165.9564164596,360.1265489995,-473.292234
195.8850833397,407.708821,-438.042186
224.6556881397,453.4499409997,-404.156106
252.2682308596,497.3499089997,-371.6339940003
279.5307538393,540.693395999,-339.524136
304.7909829595,580.853524,-309.772584
328.89314,619.17249,-281.385005
351.837254959,655.650324,-254.3613840004
374.285451499,691.339725,-227.92185
394.877242859,724.077709,-203.668794
414.310972139,754.974540999,-180.7797060003
432.586639339,784.030221,-159.2545860002
450.220509439,812.065536,-138.4853759997
466.1438630387,837.381375999,-119.730816
480.909154558,860.856063998,-102.3402240003
494.516383999,882.4896,-86.313606
507.335927659,902.870829001,-71.2147139996
518.590843499,920.764524999,-57.9586534
528.687697259,936.817069,-46.066554
537.62648894,951.028460999,-35.5384260007
545.631706159,963.755604,-26.10986400016
552.218184239,974.227155999,-18.35229600138
557.646600239,982.857555999,-11.95869600032
561.916954159,989.646804,-6.92906400039
565.10784494,994.719861,-3.170826000337
567.025885259,997.769268999,-0.911754000872
567.785863499,998.977524999,-0.01665000140608
567.8,999,0


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

Cor wrote:

Hi Kenneth,

That's interesting.
How can I tween an Array.
Do you perhaps  have a little example code?

TIA
Cor

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Kenneth Kawamoto
Verzonden: woensdag 26 maart 2008 14:45
Aan: Flash Coders List
Onderwerp: Re: [Flashcoders] Tweening Engines for AS3

Then I'll tell you TweenLite can tween anything. It can even tween Array (of
numbers).

The last time I checked Tweener did not have filter tweens, that's why I
picked TweenLite/TweenFilterLite. But things may have changed.

Jack has even fixed a little (albeit non-critical) buggish TweenLite
behaviour for me earlier this year in a few days. Big respect!

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

Allandt Bik-Elliott (Receptacle) wrote:
i've never used tweenlite but i have used tweener and one of the 
things that blew me away was the ability to tween properties and 
variables rather than just clips/sprites


example from current project:

[CODE]
// read/write percentage value relates directly to the slider public 
function get percent():Number { return slider.percent; } public 
function set percent( p:Number ):void { slider.percent = p; }


 public function arrowPressed( e:MouseEvent ):void  {
var dir:int = (e.target.name == left_arrow) ? -1 : 1;
var total:Number = slider.percent + (dir * scrollSpeed);
Tweener.addTween(slider,{percent:total, time: .5, 
transition:easeInOutQuad}); // Tweens set() method } [/CODE]


you may be able to do this with tweenlite, i don't know


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


Re: [Flashcoders] AS2, AM/PM or 24 time format?

2008-03-26 Thread Glen Pike

Hi,

   Look at the Date class - you can use getDate, etc.  or getUTCDate, 
etc.  so I guess you could compare and contrast.


   I don't think this would enable you to differentiate between 12  24 
hour clock though.


   Glen

Pasha wrote:

Hey!

Is it possible to detect time settings on user computer?
I would like to know whether he/she uses american (AM/PM) or european 24
hour time format.

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


  


--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS2, AM/PM or 24 time format?

2008-03-26 Thread ekameleon
Hello :)

You can try my DateFormatter class :
http://www.ekameleon.net/vegas/docs/asgard/date/DateFormatter.html

To use it you can install my opensource Framework :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

This formatter work in AS2 or AS3 with the same features.

EKA+ :)

2008/3/26, Glen Pike [EMAIL PROTECTED]:

 Hi,

 Look at the Date class - you can use getDate, etc.  or getUTCDate,
 etc.  so I guess you could compare and contrast.

 I don't think this would enable you to differentiate between 12  24
 hour clock though.

 Glen


 Pasha wrote:
  Hey!
 
  Is it possible to detect time settings on user computer?
  I would like to know whether he/she uses american (AM/PM) or european 24
  hour time format.
 
  Pasha
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 


 --

 Glen Pike
 01736 759321
 www.glenpike.co.uk http://www.glenpike.co.uk

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

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


RE: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Jack Doyle
You're right, Dwayne, for a lot of non-banner work, 8k vs 3k really doesn't
matter. It can, however, come into play in local memory as tweens are
created. For example, if an instance of Tweener has 8k worth of code driving
it (not that every instance would take 8k in memory - I'm just talking about
the variables/properties/methods stored for each instance) and you create
300 instances, it's that much more that has to get pushed into memory and
chewed on by the CPU verses 3k worth of code. Again, with today's
desktop/laptop processors and Gigabytes of RAM, it's not much of an issue
unless you're working with a LOT of tweens, but in some cases it's
important, especially for mobile devices. Some developers prefer
lightweight, efficient and speedy whereas some would rather trade for a
broader feature set. I'd encourage you to compare the feature sets because
if you need a Tweener-specific feature, your choice is a no-brainer. But
many developers find everything they need and more in TweenLite, so they
feel all warm  fuzzy inside when they get the size and speed benefits too.

When you're driving around town, there ain't much difference between a
Hummer and a Porche. They both get you from point A to B. If you're gonna do
some off-roading, better warm up the Hummer. If you need speed and agility,
get your racing gloves on and hop into the Porsche. :-)

Jack

-Original Message-
From: Dwayne Neckles [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2008 10:29 AM
To: Flash Coders List
Subject: RE: [Flashcoders] Tweening Engines for AS3

Gys

I'm very clear that when doing banners the is the big concern about size.. I
was saying before that I understand that...

I do banners everyday

but that when it comes to BIG sites (2 megs )etc that I don't understand
the concern .most sites on FWA are big you know thats all?

Other than banners whats the big deal? Who cares about file sizes.. those
sites on FWA are pretty huge..

Put me on.. I'm just asking 

 Date: Wed, 26 Mar 2008 11:04:30 -0400
 From: [EMAIL PROTECTED]
 Subject: RE: [Flashcoders] Tweening Engines for AS3
 To: flashcoders@chattyfig.figleaf.com
 
 I don't get the big deal either about size.. I mean I really don't...
 
 except for ads maybe that have a tight 30k limit( which needs 
 to be upped)
 
 You add 40k here for some media. 60k there for some code, you're up to
 100k.  If you have download requirements of 100k max in some client
 environments (like we do in some environments), 8k makes a difference.
 
 Jason Merrill
 Bank of America  
 GTO and Risk LLD Solutions Design  Development 
 eTools  Multimedia 



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


Re: [Flashcoders] AS2, AM/PM or 24 time format?

2008-03-26 Thread eric e. dolecki
don't all computers use 24 hour clocks and the user can decide whether or
not to display 12/24?

On Wed, Mar 26, 2008 at 12:13 PM, Glen Pike [EMAIL PROTECTED]
wrote:

 Hi,

Look at the Date class - you can use getDate, etc.  or getUTCDate,
 etc.  so I guess you could compare and contrast.

I don't think this would enable you to differentiate between 12  24
 hour clock though.

Glen

 Pasha wrote:
  Hey!
 
  Is it possible to detect time settings on user computer?
  I would like to know whether he/she uses american (AM/PM) or european 24
  hour time format.
 
  Pasha
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 

 --

 Glen Pike
 01736 759321
 www.glenpike.co.uk http://www.glenpike.co.uk
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] AS2, AM/PM or 24 time format?

2008-03-26 Thread Glen Pike
With windows you can decide whether to display 12 or 24 hour, but I am 
not sure if Flash can detect this setting, or if it affects the Date 
functions in Flash - I guess that's an experiment for someone to try...




eric e. dolecki wrote:

don't all computers use 24 hour clocks and the user can decide whether or
not to display 12/24?

On Wed, Mar 26, 2008 at 12:13 PM, Glen Pike [EMAIL PROTECTED]
wrote:

  

Hi,

   Look at the Date class - you can use getDate, etc.  or getUTCDate,
etc.  so I guess you could compare and contrast.

   I don't think this would enable you to differentiate between 12  24
hour clock though.

   Glen

Pasha wrote:


Hey!

Is it possible to detect time settings on user computer?
I would like to know whether he/she uses american (AM/PM) or european 24
hour time format.

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



  

--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



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


  


--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Dwayne Neckles
Thank you Jack.. didnt know that - I'lll check out TweenLite

and as some mentioned much kudos for the earllier non biased review by the 
way



 From: [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] Tweening Engines for AS3
 Date: Wed, 26 Mar 2008 11:38:16 -0500
 
 You're right, Dwayne, for a lot of non-banner work, 8k vs 3k really doesn't
 matter. It can, however, come into play in local memory as tweens are
 created. For example, if an instance of Tweener has 8k worth of code driving
 it (not that every instance would take 8k in memory - I'm just talking about
 the variables/properties/methods stored for each instance) and you create
 300 instances, it's that much more that has to get pushed into memory and
 chewed on by the CPU verses 3k worth of code. Again, with today's
 desktop/laptop processors and Gigabytes of RAM, it's not much of an issue
 unless you're working with a LOT of tweens, but in some cases it's
 important, especially for mobile devices. Some developers prefer
 lightweight, efficient and speedy whereas some would rather trade for a
 broader feature set. I'd encourage you to compare the feature sets because
 if you need a Tweener-specific feature, your choice is a no-brainer. But
 many developers find everything they need and more in TweenLite, so they
 feel all warm  fuzzy inside when they get the size and speed benefits too.
 
 When you're driving around town, there ain't much difference between a
 Hummer and a Porche. They both get you from point A to B. If you're gonna do
 some off-roading, better warm up the Hummer. If you need speed and agility,
 get your racing gloves on and hop into the Porsche. :-)
 
 Jack
 
 -Original Message-
 From: Dwayne Neckles [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 26, 2008 10:29 AM
 To: Flash Coders List
 Subject: RE: [Flashcoders] Tweening Engines for AS3
 
 Gys
 
 I'm very clear that when doing banners the is the big concern about size.. I
 was saying before that I understand that...
 
 I do banners everyday
 
 but that when it comes to BIG sites (2 megs )etc that I don't understand
 the concern .most sites on FWA are big you know thats all?
 
 Other than banners whats the big deal? Who cares about file sizes.. those
 sites on FWA are pretty huge..
 
 Put me on.. I'm just asking 
 
  Date: Wed, 26 Mar 2008 11:04:30 -0400
  From: [EMAIL PROTECTED]
  Subject: RE: [Flashcoders] Tweening Engines for AS3
  To: flashcoders@chattyfig.figleaf.com
  
  I don't get the big deal either about size.. I mean I really don't...
  
  except for ads maybe that have a tight 30k limit( which needs 
  to be upped)
  
  You add 40k here for some media. 60k there for some code, you're up to
  100k.  If you have download requirements of 100k max in some client
  environments (like we do in some environments), 8k makes a difference.
  
  Jason Merrill
  Bank of America  
  GTO and Risk LLD Solutions Design  Development 
  eTools  Multimedia 
 
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_
Test your Star IQ
http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_HMTAGMAR___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS2, AM/PM or 24 time format?

2008-03-26 Thread ekameleon
Hello :)

The flash player use the timestamp of the current date of the client OS
system. The number of ms since 1970.

EKA+ :)



2008/3/26, Glen Pike [EMAIL PROTECTED]:

 With windows you can decide whether to display 12 or 24 hour, but I am
 not sure if Flash can detect this setting, or if it affects the Date
 functions in Flash - I guess that's an experiment for someone to try...




 eric e. dolecki wrote:
  don't all computers use 24 hour clocks and the user can decide whether
 or
  not to display 12/24?
 
  On Wed, Mar 26, 2008 at 12:13 PM, Glen Pike [EMAIL PROTECTED]
  wrote:
 
 
  Hi,
 
 Look at the Date class - you can use getDate, etc.  or getUTCDate,
  etc.  so I guess you could compare and contrast.
 
 I don't think this would enable you to differentiate between 12  24
  hour clock though.
 
 Glen
 
  Pasha wrote:
 
  Hey!
 
  Is it possible to detect time settings on user computer?
  I would like to know whether he/she uses american (AM/PM) or european
 24
  hour time format.
 
  Pasha
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
  --
 
  Glen Pike
  01736 759321
  www.glenpike.co.uk http://www.glenpike.co.uk
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 


 --


 Glen Pike
 01736 759321
 www.glenpike.co.uk http://www.glenpike.co.uk
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Wagner Amaral
On Wed, Mar 26, 2008 at 1:38 PM, Jack Doyle [EMAIL PROTECTED] wrote:

 When you're driving around town, there ain't much difference between a
 Hummer and a Porche. They both get you from point A to B. If you're gonna
 do
 some off-roading, better warm up the Hummer. If you need speed and
 agility,
 get your racing gloves on and hop into the Porsche. :-)


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

Anyway, I really think that most size optimizations should be made in your
asset library, not in your code.
So, you have a 80Kb filesize limit. Will 8Kb really make that much a
difference? And if it does, well maybe your images could be encoded
differently, or maybe you have a whole huge font embedded, which could be
stripped down to a subset of characters that you really need.
There's plenty of room to do size optimizations in your graphics, so you
don't have to give up on code features.

On the other hand, if a smaller code library fits you well enough, then just
forget about all that ;)

In the company I work, we use Tweener. Not actually by my own choice, but
because the animation guys know how to use it well, so the tweens are
already programmed when I touch the code. So much the better for me, will
not complain ;)
Still, I've never had any problems with filesize, not even on banners, which
could only be solved by stripping some code out of it.

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


Re: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Wagner Amaral
On Wed, Mar 26, 2008 at 1:38 PM, Jack Doyle [EMAIL PROTECTED] wrote:

 You're right, Dwayne, for a lot of non-banner work, 8k vs 3k really
 doesn't
 matter. It can, however, come into play in local memory as tweens are
 created. For example, if an instance of Tweener has 8k worth of code
 driving
 it (not that every instance would take 8k in memory - I'm just talking
 about
 the variables/properties/methods stored for each instance) and you create
 300 instances, it's that much more that has to get pushed into memory and
 chewed on by the CPU verses 3k worth of code.


About that, I was just looking at Tweener's code, and I don't think that
would be a problem either. It is basically a static class, so there's no
extra memory allocation for tween added, except for a relatively small
TweenListObj pushed into an array.

Or maybe I am wrong and Zeh can correct me ;)

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


Re: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Steven Sacks
A few years ago, I went to work at a company and a guy had written an 
AS2 variable height data grid component.  It was over 2000 lines of code 
in 3-4 classes.  It had bugs and it was slow to render.  He had been 
working on it for over two months.


I sat down and wrote a variable height data grid with the same exact 
functionality in 41 lines of AS1 in about 2 hours.  No bugs, instant 
rendering.


While the above example is a far cry from 3k vs 8k, the point I'm making 
is if the extra lines of code aren't benefiting you, why compile them?


For most purposes, TweenLite gets the job done.  If you're doing 
Papervision 3D and need bezier curves and such, Tweener is the obvious 
choice.


Both are fantastic.  I choose TweenLite most of the time purely for 
speed, size and efficiency.  If I need something more robust, I use 
Tweener.  They're the two obvious winners.

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


Re: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Zeh Fernando
Correct, but just as a matter of clarity, it's important to be clear 
that the exported SWF size is completely unrelated to how much memory 
each 'instance' takes in memory.



Zeh

Jack Doyle wrote:

You're right, Dwayne, for a lot of non-banner work, 8k vs 3k really doesn't
matter. It can, however, come into play in local memory as tweens are
created. For example, if an instance of Tweener has 8k worth of code driving
it (not that every instance would take 8k in memory - I'm just talking about
the variables/properties/methods stored for each instance) and you create
300 instances, it's that much more that has to get pushed into memory and
chewed on by the CPU verses 3k worth of code. Again, with today's
desktop/laptop processors and Gigabytes of RAM, it's not much of an issue
unless you're working with a LOT of tweens, but in some cases it's
important, especially for mobile devices. Some developers prefer
lightweight, efficient and speedy whereas some would rather trade for a
broader feature set. I'd encourage you to compare the feature sets because
if you need a Tweener-specific feature, your choice is a no-brainer. But
many developers find everything they need and more in TweenLite, so they
feel all warm  fuzzy inside when they get the size and speed benefits too.

When you're driving around town, there ain't much difference between a
Hummer and a Porche. They both get you from point A to B. If you're gonna do
some off-roading, better warm up the Hummer. If you need speed and agility,
get your racing gloves on and hop into the Porsche. :-)

Jack

-Original Message-
From: Dwayne Neckles [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2008 10:29 AM

To: Flash Coders List
Subject: RE: [Flashcoders] Tweening Engines for AS3

Gys

I'm very clear that when doing banners the is the big concern about size.. I
was saying before that I understand that...

I do banners everyday

but that when it comes to BIG sites (2 megs )etc that I don't understand
the concern .most sites on FWA are big you know thats all?

Other than banners whats the big deal? Who cares about file sizes.. those
sites on FWA are pretty huge..

Put me on.. I'm just asking 


Date: Wed, 26 Mar 2008 11:04:30 -0400
From: [EMAIL PROTECTED]
Subject: RE: [Flashcoders] Tweening Engines for AS3
To: flashcoders@chattyfig.figleaf.com


I don't get the big deal either about size.. I mean I really don't...

except for ads maybe that have a tight 30k limit( which needs 
to be upped)

You add 40k here for some media. 60k there for some code, you're up to
100k.  If you have download requirements of 100k max in some client
environments (like we do in some environments), 8k makes a difference.

Jason Merrill
Bank of America  
GTO and Risk LLD Solutions Design  Development 
eTools  Multimedia 




___
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-26 Thread Steven Sacks

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.  ;)

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


Re: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Zeh Fernando

About that, I was just looking at Tweener's code, and I don't think that
would be a problem either. It is basically a static class, so there's no
extra memory allocation for tween added, except for a relatively small
TweenListObj pushed into an array.

Or maybe I am wrong and Zeh can correct me ;)


Every engine will have additional memory spent for new instances - with 
Tweener, it's TweenListObj on the current version, which is basically an 
array containing references and data about timing and tweening parameters.


But obviously there are many reasons why the byte size of the compiled 
class isn't duplicated for new instances. This would be the case even 
for instances of a non-static class or for a single class (Tweener code 
is split on few different classes). The very reason we have classes is 
to keep code centralized instead of duplicating similar methods for 
every new object. The SWF byte code is completely different from the 
'code' in memory anyway too.



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


Re: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread laurent
I never use more than one instance as it's static objectWhat do you 
mean ?


Zeh Fernando a écrit :
Correct, but just as a matter of clarity, it's important to be clear 
that the exported SWF size is completely unrelated to how much memory 
each 'instance' takes in memory.



Zeh

Jack Doyle wrote:
You're right, Dwayne, for a lot of non-banner work, 8k vs 3k really 
doesn't

matter. It can, however, come into play in local memory as tweens are
created. For example, if an instance of Tweener has 8k worth of code 
driving
it (not that every instance would take 8k in memory - I'm just 
talking about
the variables/properties/methods stored for each instance) and you 
create
300 instances, it's that much more that has to get pushed into memory 
and

chewed on by the CPU verses 3k worth of code. Again, with today's
desktop/laptop processors and Gigabytes of RAM, it's not much of an 
issue

unless you're working with a LOT of tweens, but in some cases it's
important, especially for mobile devices. Some developers prefer
lightweight, efficient and speedy whereas some would rather trade for a
broader feature set. I'd encourage you to compare the feature sets 
because

if you need a Tweener-specific feature, your choice is a no-brainer. But
many developers find everything they need and more in TweenLite, so they
feel all warm  fuzzy inside when they get the size and speed 
benefits too.


When you're driving around town, there ain't much difference between a
Hummer and a Porche. They both get you from point A to B. If you're 
gonna do
some off-roading, better warm up the Hummer. If you need speed and 
agility,

get your racing gloves on and hop into the Porsche. :-)

Jack

-Original Message-
From: Dwayne Neckles [mailto:[EMAIL PROTECTED] Sent: 
Wednesday, March 26, 2008 10:29 AM

To: Flash Coders List
Subject: RE: [Flashcoders] Tweening Engines for AS3

Gys

I'm very clear that when doing banners the is the big concern about 
size.. I

was saying before that I understand that...

I do banners everyday

but that when it comes to BIG sites (2 megs )etc that I don't understand
the concern .most sites on FWA are big you know thats all?

Other than banners whats the big deal? Who cares about file sizes.. 
those

sites on FWA are pretty huge..

Put me on.. I'm just asking

Date: Wed, 26 Mar 2008 11:04:30 -0400
From: [EMAIL PROTECTED]
Subject: RE: [Flashcoders] Tweening Engines for AS3
To: flashcoders@chattyfig.figleaf.com


I don't get the big deal either about size.. I mean I really don't...

except for ads maybe that have a tight 30k limit( which needs to 
be upped)

You add 40k here for some media. 60k there for some code, you're up to
100k.  If you have download requirements of 100k max in some client
environments (like we do in some environments), 8k makes a difference.

Jason Merrill
Bank of America  GTO and Risk LLD Solutions Design  Development 
eTools  Multimedia 




___
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] Tweening Engines for AS3

2008-03-26 Thread Wagner Amaral
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


Re: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Jason Van Pelt

I've used Fuse a great deal in AS2, and both Tweenlite and Tweener in
AS2/3. I tend to stick with tweener primarily for the beziers. I think
adding even a hint of a curve when moving from A to B makes a movement look
much more natural.

I'm wondering, though, if anyone on the list has gotten into GO(ASAP) at
all? I'm very curious about it, but I don't know how involved I want to get
in rolling my own when there are already tweening engines out there that
are usable.

I've also seen no mention of Boostworthy. I personally don't care for the
syntax. Is this the general concensus?


Jason Van Pelt
Interactive Developer
504.210.1232 (p) / 504.581.2731 (f)
Peter A. Mayer Advertising, Inc.
www.peteramayer.com___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] ot : Flex RIA running on multiple servers

2008-03-26 Thread artur

is this possible?
if so does it HAVE to be on a Flash Communication Server?
or can it run on others?

any links to sample setups would be great too..thanks

--

*artur :.*

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

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


[Flashcoders] world clock - revisited

2008-03-26 Thread Corban Baxter
Hey all,
because of the daylight savings time going on across the world I was
having trouble with the world clocks I setup for a client. I tried to
implement the code below but was un succesful to do it correctly
apparently. Does anyone have any working examples of this. And if so
do you mind sharing? Thanks ALL!!



Code via: Keith Reinsfield (I think* sorry...)
dstPolicies = {
   USADLS:new DstPolicy(1,0,4, -1,0,10),
   EUDLS:new DstPolicy(-1,0,3, -1,0,10),
   AU2003DLS:new DstPolicy(-1,0,10, -1,0,3),
   AUTDLS:new DstPolicy(1,1,10, -1,0,3),
   RUDLS:new DstPolicy(-1,0,3, -1,0,10),
   EGDLS:new DstPolicy(-1,5,4, -1,4,9),
   IRDLS:new DstPolicy(-1,6,3, -1,1,9),
   IQDLS:new DstPolicy(255, 1,4, 255, 1,10),
   ILDLS:new DstPolicy(-1,4,3, 1,4,10),
   JODLS:new DstPolicy(-1,3,3, -1,4,10),
   NADLS:new DstPolicy(1,0,9, 1,0,4),
   PKDLS:new DstPolicy(1,6,4, 1,6,10),
   SYDLS:new DstPolicy(255,30,3, 255,21,9),
   CLDLS:new DstPolicy(2,0,10, 2,0,3),
   CLEDLS:new DstPolicy(2,5,10, 2,6,3),
   NZDLS:new DstPolicy(1,0,10, 3,0,3),
   PYDLS:new DstPolicy(1,0,9, 1,0,4),
   FKDLS:new DstPolicy(1,0,9, -1,0,4)
   };

/*Where the first number is the position (1: first, -1:last, 255: straight
date), the second and the third are the day/month.
If the position is 255, the date is a straight day/month date, so for
example for IRAQ the start date is April 1.

The formulas for the calcs are:*/

/**
* @param y:int Year
* @param m:int Month (0 - 11)
* @param n:int Day of the week (0 for a Sunday, 1 for
a Monday, 2 for a
Tuesday, etc)
* @param w:int Occurence (1:first, 2:second, 3:third,
4:fourth, -1:last)
* @return real day of the month where the DST starts/ends
*
* first friday = w:1, n:5
* third monday = w:3, n:1
* last monday = w:-1, n:1
*/

function calcStartEnd(y:Number, m:Number, n:Number, w:Number):Number {
if (w0) {
var nd:Number = (new Date(y, m, 0)).getDate();
var diff:Number = (getDayOfWeek(y, m+1, nd)-n)%7;
if (diff0) {
diff += 7;
}
return nd-diff;
}

var nq:Number = 7*w-6+(n-getDayOfWeek(y, m+1, 1))%7;
if (nq1) {
nq += 7;
}

return nq;
}

/**
* @param y:int Year
* @param m:int Month (1 - 12)
* @param d:int Day (1 - 31)
* @return 0 for a Sunday, 1 for a Monday, 2 for a Tuesday, etc.
*/

function getDayOfWeek(y:Number, m:Number, d:Number):Number {
var a:Number = Number((14-m)/12);
y -= a;
m += 12*a-2;
var r:Number = 
(d+y+Number(y/4)-Number(y/100)+Number(y/400)+int((31*m)/12))%7;
if (r0) {
return 7+r;

} else {
return r;
}
}

-- 
Corban Baxter
http://www.projectx4.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] ReferenceError: Error #1069:

2008-03-26 Thread anuj sharma
Hi guys
I am getting reference error which is breaking my code. In my code i have
drag gable movieclip which when crossed some coordinates is going to call
external UIloader (containing external SWF) on the main stage. I can create
multiple instances of UIloader  by dragging same movie multiple times.(I am
providing the option of dragging and dropping movieClip as well as UIloader
too). Now when i am trying to drop movieclip on already created UIloader I
am getting this error which is breaking my code. ReferenceError: Error
#1069: Property index not found on flash.display.Stage and there is no
default value.

Actually I have 2 drag and drop functions(on mousedown and mouse up) in my
program. One for movieClip drag drop and other for UILoader drag  drop. It
seems like when i am dropping my movieclip on already existing UIloader,
drop function of UIloader ( instead of MovieClip) has been called . I am not
sure how to fix that.
Any help will be highly appreciated.
I have made everything in AS 3.0 without my custom classes. Attached is the
code to make things little clear.
Thanks
Anuj
/*Code for movieDrop*/

function CamStopDragTN(event:MouseEvent):void
{
var CameraStartDrag=event.currentTarget;


if ((CameraStartDrag.xBoundedX)  (CameraStartDrag.yBoundedY1)
(CameraStartDrag.yBoundedY2) 
(CameraStartDrag!=null) )

{

CameraStartDrag.stopDrag();
var UIcontainer:DisplayObject=CreateUILoaderObject(num);
UIcontainer.x=mouseX-UIcontainer.width/2;
UIcontainer.y=mouseY-UIcontainer.height/2;


CameraStartDrag.x=x1;
CameraStartDrag.y=y1;

}
/*Code for UILoader Drop
function dropUILoader(e:MouseEvent):void
{

if(e.target is UILoader)
{
if(mouseY746)
{

var myUILoader:UILoader = e.target as UILoader;


myUILoader.stopDrag();
myUILoader.mouseChildren=false;

myUILoader.x=mouseX-myUILoader.width/2-23;
myUILoader.y=mouseY-myUILoader.height/2-42;



else
{
myUILoader.unload();
container.removeChild(myUILoader);

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


[Flashcoders] FLASH+AIR+ASP

2008-03-26 Thread Helmut Granda
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


Re: [Flashcoders] world clock - revisited

2008-03-26 Thread Marcelo Volmaro

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

tzinfo
tz n=(GMT-12:00) International Date Line West b=720/
tz n=(GMT-11:00) Midway Island, Samoa b=660/
tz n=(GMT-10:00) Hawaii b=600/
tz n=(GMT-09:00) Alaska b=540 d=480
y f=2006 dst=OLD_USADST shh=2 ehh=2/
y l=2007 dst=NEW_USADST shh=2 ehh=2/
/tz
tz n=(GMT-08:00) Pacific Time (US amp; Canada) b=480 d=420
y f=2006 dst=OLD_USADST shh=2 ehh=2/
y l=2007 dst=NEW_USADST shh=2 ehh=2/
/tz
tz n=(GMT-08:00) Tijuana, Baja California b=480 d=420
y dst=OLD_USADST shh=2 ehh=2/
/tz
tz n=(GMT-07:00) Arizona b=420/
tz n=(GMT-07:00) Chihuahua, La Paz, Mazatlan b=420 d=360
y dst=OLD_USADST shh=2 ehh=2/
/tz
tz n=(GMT-07:00) Mountain Time (US amp; Canada) b=420 d=360
y f=2006 dst=OLD_USADST shh=2 ehh=2/
y l=2007 dst=NEW_USADST shh=2 ehh=2/
/tz
tz n=(GMT-06:00) Central America b=360/
tz n=(GMT-06:00) Central Time (US amp; Canada) b=360 d=300
y f=2006 dst=OLD_USADST shh=2 ehh=2/
y l=2007 dst=NEW_USADST shh=2 ehh=2/
/tz
tz n=(GMT-06:00) Guadalajara, Mexico City, Monterrey b=360 d=300
y dst=OLD_USADST shh=2 ehh=2/
/tz
tz n=(GMT-06:00) Saskatchewan b=360/
tz n=(GMT-05:00) Bogota, Lima, Quito, Rio Branco b=300/
tz n=(GMT-05:00) Eastern Time (US amp; Canada) b=300 d=240
y f=2006 dst=OLD_USADST shh=2 ehh=2/
y l=2007 dst=NEW_USADST shh=2 ehh=2/
/tz
tz n=(GMT-05:00) Indiana (East) b=300/
tz n=(GMT-04:00) Atlantic Time (Canada) b=240 d=180
y f=2006 dst=OLD_USADST shh=2 ehh=2/
y l=2007 dst=NEW_USADST shh=2 ehh=2/
/tz
tz n=(GMT-04:00) Caracas, La Paz b=240/
tz n=(GMT-04:00) Manaus b=240 d=180
y f=2006 dst=OCBR_DST shh=2/
y l=2007 dst=NCBR_DST/
/tz
tz n=(GMT-04:00) Santiago b=240 d=180
y dst=CH_DST shh=23 smm=59 sss=59 ehh=23 emm=59 
ess=59/
/tz
tz n=(GMT-03:30) Newfoundland b=210 d=150
y f=2006 dst=OLD_USADST smm=1 emm=1/
y l=2007 dst=NEW_USADST smm=1 emm=1/
/tz
tz n=(GMT-03:00) Brasilia b=180 d=120
y f=2006 dst=OCBR_DST shh=2/
y l=2007 dst=NCBR_DST/
/tz

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

2008-03-26 Thread Jon Bradley


On Mar 26, 2008, at 4:35 PM, artur wrote:


is this possible?
if so does it HAVE to be on a Flash Communication Server?
or can it run on others?

any links to sample setups would be great too..thanks


??

 Flex compiles to an SWF file.

However you'd do what you want to do with Flash, you would do with Flex.

- jon
___
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-26 Thread artur

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.


*artur :.*

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



Jon Bradley wrote:


On Mar 26, 2008, at 4:35 PM, artur wrote:


is this possible?
if so does it HAVE to be on a Flash Communication Server?
or can it run on others?

any links to sample setups would be great too..thanks


??

 Flex compiles to an SWF file.

However you'd do what you want to do with Flash, you would do with Flex.

- 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] Flash Video fullscreen problem

2008-03-26 Thread Omar Fouad
hi,
i've got an application where there are some videos.
The application is fullscreen and so, the video when comes to play, gets
fullscreen as in fullScreenTakeOver is true by default.

So I set it to be fullScreenTakeOver  = false; on the frame.

But this is not working.
 any ideas?

thanks

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

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Flash Video fullscreen problem

2008-03-26 Thread Omar Fouad
Note: I need the video to play not in fullscreen.


On Thu, Mar 27, 2008 at 6:00 AM, Omar Fouad [EMAIL PROTECTED] wrote:

 hi,
 i've got an application where there are some videos.
 The application is fullscreen and so, the video when comes to play, gets
 fullscreen as in fullScreenTakeOver is true by default.

 So I set it to be fullScreenTakeOver  = false; on the frame.

 But this is not working.
  any ideas?

 thanks

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