Re: [Flashcoders] ActionScript syntax enhancements?

2009-01-07 Thread Juan Delgado
Take a look to the haXe compiler that is doing it already:

http://haxe.org/doc/features

Specially compiler features (conditional compilation, etc) and
language features (enums, etc).

Cheers!

Juan

On Wed, Jan 7, 2009 at 12:11 AM, Weyert de Boer w...@innerfuse.biz wrote:
 In Delphi and C# I used it to get RTTI information.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Juan Delgado - Zárate
http://zarate.tv
http://blog.zarate.tv

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


[Flashcoders] Class syntax question...

2009-01-07 Thread Sander Schuurman
Hi cool list,

I want to make a Class that contains MotionBlur methods that I can call like 
this: MotionBlur.coordBlur(mc, 1.5);

I have other classes wich I don't initiate and just call static methods from. 
The MotionBlur class looks like this:
public class MotionBlur
{

public function MotionBlur()
{
// empty, never initiated
}

public static function coordBlur(   mc :MovieClip, blurFactor 
:Number = 1.5 ) :void
{
// calculate blur and apply blur setting to mc
}

public static function clearBlur(mc :MovieClip ) :void
{
// clear blur setting on mc
}
}

Ideally I want to use this through TweenMax like this:
TweenMax.from(mc, .4, {
alpha: 0, x: 1500, delay: 2, ease: Back.easeOut,
onUpdate: MotionBlur.coordBlur, 
onUpdateParams: [mc, 1.5],
onComplete: 
MotionBlur.clearBlur, onCompleteParams: [mc], overwrite: false
} );

But I get the following error: (even if I just call the method outside tweenmax 
like this MotionBlur.coordBlur(chick, 2);)
1120: Access of undefined property MotionBlur.

I'm not quit sure what is going wrong here... does anyone see something strange 
that I'm totally missing?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Class syntax question...

2009-01-07 Thread Manish Jethani
On Wed, Jan 7, 2009 at 4:13 PM, Sander Schuurman
sander.schuur...@oswaldandruby.com wrote:

 I want to make a Class that contains MotionBlur methods that I can call like 
 this: MotionBlur.coordBlur(mc, 1.5);
[snip]

 But I get the following error: (even if I just call the method outside 
 tweenmax like this MotionBlur.coordBlur(chick, 2);)
 1120: Access of undefined property MotionBlur.

I don't see anything wrong with your code. You've probably put your
class into a package (?), in which case you'll have to import it.

  import my.package.MotionBlur;

The compiler is unable to find the class.

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


Re: [Flashcoders] ActionScript syntax enhancements?

2009-01-07 Thread Manish Jethani
On Wed, Jan 7, 2009 at 4:34 AM, Ian Thomas i...@eirias.net wrote:
 On Tue, Jan 6, 2009 at 10:53 PM, Manish Jethani
 manish.jeth...@gmail.com wrote:

 The first enhancement I can think of is a language extension called
 'properties'.

private var _myProperty:int = 0;
public function get myProperty():int
{
  return _myProperty;
}
public function myProperty(value:int):void
{
  _myProperty = value;
}

 This pattern is so common, it could be a language feature.

public property myProperty:int = 0;

 Manish - why not just write:

 public var myProperty:int=0;

 It has exactly the same effect!

Oh, but it doesn't!

A public variable is different from a property. A property is really
part of a component's interface. It can be overridden by subclasses.

With a property, you can do this:

  override public function get myProperty():int
  {
return someCondition ? customMyProperty : super.myProperty;
  }

A property can be declared as part of an interface.

 interface IMyInterface
 {
function get myProperty():int;
function set myProperty(value:int):void;
 }

All classes that implement IMyInterface are required to have a
read-write myProperty property.

I almost never use public or protected variables in my code, unless
it's dumb data class (like a struct in C).

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


[Flashcoders] Patrick Jakub Jankun added you as a connection on Plaxo

2009-01-07 Thread Patrick Jakub Jankun

Hi Flashcoder,

Patrick Jakub Jankun wants to add you as a connection on Plaxo.

To accept this connection request, go to:
http://www.plaxo.com/invite?i=56225383k=804845241l=ensrc=emailet=1est=nolevelsetv=nnic1b2el=en

Thanks!
The Plaxo team

More than 20 million people use Plaxo to keep in touch with the
people they care about. 

Don't want to receive emails from Plaxo any more? Go to:
http://www.plaxo.com/stop?src=emailet=1est=nolevelsetv=nnic1b2el=en

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


RE: [Flashcoders] ActionScript syntax enhancements?

2009-01-07 Thread Merrill, Jason
You may want to look at the haxe language and compiler which already does what 
you're trying to do and see if you can compete with that - or at least find out 
what it does that you would like to do - this thread may be better suited for 
the osflash list only because this is the kind of thing they talk about and 
have lots of expertise on over there.


Jason Merrill
Bank of America Instructional Technology  Media   ·   GCIB  Staff Support 
LLD

Interested in Flash Platform technologies?  Join the Bank of America Flash 
Platform Developer Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning 
Blog and subscribe.





-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matthias Kramm
Sent: Tuesday, January 06, 2009 5:30 PM
To: Flash Coders List
Subject: [Flashcoders] ActionScript syntax enhancements?

Hi All,

I'm currently in the process of writing a compiler for
ActionScript 3.0.
(In case you're interested, the development snapshot at
 http://www.swftools.org/download.html already contains
 a pre-alpha command-line tool, called as3compile(.exe))

Now, I'm thinking about adding an extended mode to this 
compiler, which will support some additional convenience 
features which are not currently part of the ECMA spec. 

Right now, ideas on my list are things like [a,b,c,] or
{a:b, c:d, e:f, } array/object declarations (allowing the
trailing comma makes it easier to shift elements around 
especially for multi-line structures), try/catch/else, 
for/else, and keyword arguments (functioncall(x=3,y=4)).

I'd be interested to know what other syntax extensions you
can think of that would make life easier for you when
you're writing ActionScript?

Greetings

Matthias


___
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] Class syntax question...

2009-01-07 Thread Merrill, Jason
If you want to use a class like this:

MyClass.myMethod(myargs)

Then the myMethod function in MyClass should be defined as static.  So instead 
of:

public class MotionBlur
{
public static function coordBlur(mc:MovieClip, blurFactor:Number = 1.5)
{   
//logic here
}
}

And there is no need for the constructor, since you're not using it in the 
class, and the class is meant to have all static members. 


Jason Merrill
Bank of America Instructional Technology  Media   ·   GCIB  Staff Support 
LLD

Interested in Flash Platform technologies?  Join the Bank of America Flash 
Platform Developer Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning 
Blog and subscribe.






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Sander Schuurman
Sent: Wednesday, January 07, 2009 5:44 AM
To: Flash Coders List
Subject: [Flashcoders] Class syntax question...

Hi cool list,

I want to make a Class that contains MotionBlur methods that I can call like 
this: MotionBlur.coordBlur(mc, 1.5);

I have other classes wich I don't initiate and just call static methods from. 
The MotionBlur class looks like this:
public class MotionBlur
{

public function MotionBlur()
{
// empty, never initiated
}

public static function coordBlur(   mc :MovieClip, blurFactor 
:Number = 1.5 ) :void
{
// calculate blur and apply blur setting to mc
}

public static function clearBlur(mc :MovieClip ) :void
{
// clear blur setting on mc
}
}

Ideally I want to use this through TweenMax like this:
TweenMax.from(mc, .4, {
alpha: 0, x: 1500, delay: 2, ease: Back.easeOut,
onUpdate: MotionBlur.coordBlur, 
onUpdateParams: [mc, 1.5],
onComplete: 
MotionBlur.clearBlur, onCompleteParams: [mc], overwrite: false
} );

But I get the following error: (even if I just call the method outside tweenmax 
like this MotionBlur.coordBlur(chick, 2);)
1120: Access of undefined property MotionBlur.

I'm not quit sure what is going wrong here... does anyone see something strange 
that I'm totally missing?
___
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] asdoc inheritance from built-in class

2009-01-07 Thread Romuald Quantin

Hi,

I generated a doc for a single class with the asdoc tool from the SDK 
and I found out that I dont get the properties, methods and events from 
the super class:


http://www.soundstep.com/blog/source/somatext/docs/

For instance, I dont see the link: show inherited properties I can see 
with other doc I've generated:


http://www.soundstep.com/blog/source/baseuiv3/docs/

If my class extend a custom class, I get everything but it seems in my 
case it is not working because my class extend flash.text.TextField 
(maybe because it is a built-in class)


I tried @inheritDoc before the class, but not working...

Any hint to get correctly the inheritance from a built-in super class?

Romu
www.soundstep.com

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


Re: [Flashcoders] Patrick Jakub Jankun added you as a connection on Plaxo

2009-01-07 Thread Joel Stransky
Sorry I have to rant. For such an elite group of coders, this email format
is really annoying. It's probably an old issue but isn't there simply a
flashcoders forum like Kirupa and flashkit? It's so much easier to keep
threads together, search for recurrent questions and style code samples.
/rant

On Wed, Jan 7, 2009 at 9:00 AM, Patrick Jakub Jankun pu...@mx.plaxo.comwrote:


 Hi Flashcoder,

 Patrick Jakub Jankun wants to add you as a connection on Plaxo.

 To accept this connection request, go to:

 http://www.plaxo.com/invite?i=56225383k=804845241l=ensrc=emailet=1est=nolevelsetv=nnic1b2el=en

 Thanks!
 The Plaxo team

 More than 20 million people use Plaxo to keep in touch with the
 people they care about.

 Don't want to receive emails from Plaxo any more? Go to:
 http://www.plaxo.com/stop?src=emailet=1est=nolevelsetv=nnic1b2el=en

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




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


Re: [Flashcoders] Patrick Jakub Jankun added you as a connection on Plaxo

2009-01-07 Thread Manish Jethani
On Wed, Jan 7, 2009 at 9:31 PM, Joel Stransky stranskydes...@gmail.com wrote:
 Sorry I have to rant. For such an elite group of coders, this email format
 is really annoying. It's probably an old issue but isn't there simply a
 flashcoders forum like Kirupa and flashkit? It's so much easier to keep
 threads together, search for recurrent questions and style code samples.

I don't think the email format is annoying -- email rules. I think the
invitations from Plaxo are annoying.

It would be nice to have the archives publicly available and searchable though.

$0.02

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


[Flashcoders] Thoughts on new features in CS4

2009-01-07 Thread Wendy Serrell
I was reading this blog post:

 

http://visualrinse.com/2009/01/05/2008-in-review-flash-platform-shortcomings
/

 

And one of the commenters wrote, New features in Flash Player 10 - e.g. 3D,
bones and hardware acceleration - were all a massive let down and basically
useless.

 

I haven't downloaded CS4 yet, but I was wondering if other people felt the
same way, and why (or why not).

 

Wendy

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


Re: [Flashcoders] Patrick Jakub Jankun added you as a connection onPlaxo

2009-01-07 Thread Paul Andrews
- Original Message - 
From: Joel Stransky stranskydes...@gmail.com

To: p...@jankun.org; Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, January 07, 2009 4:01 PM
Subject: Re: [Flashcoders] Patrick Jakub Jankun added you as a connection 
onPlaxo




Sorry I have to rant. For such an elite group of coders, this email format
is really annoying. It's probably an old issue but isn't there simply a
flashcoders forum like Kirupa and flashkit? It's so much easier to keep
threads together, search for recurrent questions and style code samples.
/rant


You may well rant, but I like it as it is. 


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


Re: [Flashcoders] ActionScript syntax enhancements?

2009-01-07 Thread Matthias Kramm
On Wed, Jan 07, 2009 at 09:27:06AM -0500, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:
 You may want to look at the haxe language and compiler which already
 does what you're trying to do and see if you can compete with that

haxe is a nifty project. But they're inventing their own language,
which is only similar to (and not quite identical with) ActionScript.

My goal is to be fully compatible with the ActionScript
compiler in Flash CS4 and Flex, but hopefully produce smaller output files 
(Flex's code generator, in particular, is producing somewhat bloated
 bytecode right now) and also offer the aforementioned syntax enhancements.

Btw.: Thanks for all the great suggestions so far!

Greetings

Matthias

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


Re: [Flashcoders] Patrick Jakub Jankun added you as a connection on Plaxo

2009-01-07 Thread Anthony Pace
I actually like this, as it make it easier to search through the 
messages for a word or phrase; as well, it makes it so sharing of code 
and files is a lot easier as they do not need to be stored by some 
dude's server.


I would love it if it had code highlighting, an built in hinting when 
going through the messages.  Kind of like integrating flash develop with 
outlook or thunderbird... now that would be cool.



Joel Stransky wrote:

Sorry I have to rant. For such an elite group of coders, this email format
is really annoying. It's probably an old issue but isn't there simply a
flashcoders forum like Kirupa and flashkit? It's so much easier to keep
threads together, search for recurrent questions and style code samples.
/rant

On Wed, Jan 7, 2009 at 9:00 AM, Patrick Jakub Jankun pu...@mx.plaxo.comwrote:

  

Hi Flashcoder,

Patrick Jakub Jankun wants to add you as a connection on Plaxo.

To accept this connection request, go to:

http://www.plaxo.com/invite?i=56225383k=804845241l=ensrc=emailet=1est=nolevelsetv=nnic1b2el=en

Thanks!
The Plaxo team

More than 20 million people use Plaxo to keep in touch with the
people they care about.

Don't want to receive emails from Plaxo any more? Go to:
http://www.plaxo.com/stop?src=emailet=1est=nolevelsetv=nnic1b2el=en

___
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] Thoughts on new features in CS4

2009-01-07 Thread Anthony Pace
From an animator's perspective it as some nice new features; yet, from 
a coder's perspective I hate it.  Even when forced to do timeline code, 
I still write the code in flashdevelop and then paste it in later, 
unless it is a very very small chunk.


At the very least they could have given dreamweaver some advanced code 
editing and IDE integration features that make Actionscript development 
easier.


Another gripe I have is with the HTML templates available in the flash 
IDE, and flash detection that doesn't always work in firefox, ... they 
are s outdated; why not provide users with the capability to easily 
make their own templates and pick and choose multiple features instead 
of one or the other? Why not just integrate dreamweaver and flash 
together completely? or provide photoshop features in illustrator?


The company is profit, not results and quality, oriented.  They don't 
care enough about users to make one application that does everything, or 
an app that integrates extremely easily with another feature set if 
purchased; for, they don't think like that.  SOA and tight integration 
is what they should be focusing on; yet, why would they when there 
current model has made them rich?


Wendy Serrell wrote:

I was reading this blog post:

 


http://visualrinse.com/2009/01/05/2008-in-review-flash-platform-shortcomings
/

 


And one of the commenters wrote, New features in Flash Player 10 - e.g. 3D,
bones and hardware acceleration - were all a massive let down and basically
useless.

 


I haven't downloaded CS4 yet, but I was wondering if other people felt the
same way, and why (or why not).

 


Wendy

___
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] Thoughts on new features in CS4

2009-01-07 Thread Mendelsohn, Michael
Anthony, I'm going out on a limb and guessing that the why don't they
just make it all one app that does everything suggestion has been
around longer than you've been alive.  Don't lose any sleep over that
one.  :-D

- MM


  They don't care enough about users to make one application that does
everything, or 
an app that integrates extremely easily with another feature set if 
purchased; for, they don't think like that.


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


[Flashcoders] free online flash books at the toronto public library...

2009-01-07 Thread Anthony Pace
Free books available to library card holders in Toronto through safari 
online.


Awesome... I just had a read through keith peters' making things move.  
It is totally great; yet, I wish it was more recent and used the 
features available in the new flash player.  Apparently a lot of 
libraries have this contract set up, so you should check to see if your 
library has it too.


Almost their entire lineup is available. I am just assuming that they 
don't put their best sellers on the list right away; however, their are 
books that were just published a few months ago.


They don't have university level text books available though; for that I 
have to go to one my university libraries to read old copies if 
available; however, they do have certification texts that usually cost 
around $100.00 per book.

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


Re: [Flashcoders] free online flash books at the toronto public library...

2009-01-07 Thread Anthony Pace
I just read the message and realized that, for someone that frequents 
the library, my spelling and sentence structure, outside of my essays, 
is not all that grand.


Anthony Pace wrote:
Free books available to library card holders in Toronto through safari 
online.


Awesome... I just had a read through keith peters' making things 
move.  It is totally great; yet, I wish it was more recent and used 
the features available in the new flash player.  Apparently a lot of 
libraries have this contract set up, so you should check to see if 
your library has it too.


Almost their entire lineup is available. I am just assuming that they 
don't put their best sellers on the list right away; however, their 
are books that were just published a few months ago.


They don't have university level text books available though; for that 
I have to go to one my university libraries to read old copies if 
available; however, they do have certification texts that usually cost 
around $100.00 per book.

___
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] Auto Reply: Flashcoders Digest, Vol 16, Issue 7

2009-01-07 Thread jk
Vielen Dank für Ihre Nachricht.

Ich bin bis einschließlich 9. Januar 2009 nicht erreichbar. In dringenden 
Fällen wenden Sie sich bitte an Herrn Peer Schmidt-Soltau 
(p...@masterkitchen.de) oder Frau Hannah Witopil (han...@masterkitchen.de).

Vielen Dank
Johannes Killinger

Master Kitchen GmbH
Audiovisuelle Medienentwicklung
Schorndorfer Straße 42/2 • 71638 Ludwigsburg

Telefon (07141) 4 88 89-12
Telefax (07141) 4 88 89-19

http://www.masterkitchen.de



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


Re: [Flashcoders] free online flash books at the toronto public library...

2009-01-07 Thread Glen Pike

Good job you are only reading the books then :-)

Anthony Pace wrote:
I just read the message and realized that, for someone that frequents 
the library, my spelling and sentence structure, outside of my essays, 
is not all that grand.


Anthony Pace wrote:
Free books available to library card holders in Toronto through 
safari online.


Awesome... I just had a read through keith peters' making things 
move.  It is totally great; yet, I wish it was more recent and used 
the features available in the new flash player.  Apparently a lot of 
libraries have this contract set up, so you should check to see if 
your library has it too.


Almost their entire lineup is available. I am just assuming that they 
don't put their best sellers on the list right away; however, their 
are books that were just published a few months ago.


They don't have university level text books available though; for 
that I have to go to one my university libraries to read old copies 
if available; however, they do have certification texts that usually 
cost around $100.00 per book.

___
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] as2 bitmapdata dispose() issue

2009-01-07 Thread allandt bik-elliott (thefieldcomic.com)
hi guys

should be a quickie for someone

i've got a bitmapdata object which is being written to by a quickie drawing
api that i wrote. It works absolutely great. The problem is that when i
.dispose() of the attached bitmap, i cannot write to it any more

i've tried recreating it but with no joy - i really hope you can help


code
var mcBitmap: MovieClip = this.mcBitmap;
var bmp:BitmapData= new BitmapData(169, 136, true, 0x00);
this.onMouseDown = startDrawing;
this.onMouseUp = stopDrawing;

function setupClearButton():Void
{
mcClearButton.onRelease = function():Void
{
bmp.dispose(); // clears the bmp
bmp = new BitmapData(169, 136, true, 0x00); // tried to
reinstantiate the bitmapdata but it doesn't work
}
}


function startDrawing():Void
{
setLineStyle(); // set linestyle to current style

var point:Object = {x:_xmouse, y:_ymouse}; // object to be used with
globalToLocal to change to local coordinates
mcDrawing.globalToLocal(point);
mcDrawing.moveTo(point.x, point.y);

this.onMouseMove = function():Void
{
var point:Object = {x:_xmouse, y:_ymouse}; // object to be used
with globalToLocal to change to local coordinates
mcDrawing.globalToLocal(point);
mcDrawing.lineTo(point.x, point.y);
}
}
}

function setLineStyle():Void
{
mcDrawing.lineStyle(nLineWeight, nCurrentColour, nLineAlpha);
}

function stopDrawing():Void
{
delete this.onMouseMove;

bmp.draw(mcDrawing); // copy user stroke to bmp BitmapData

mcDrawing.clear(); // clear user drawing
}
}

/code

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


[Flashcoders] re: as2 bitmapdata dispose() issue

2009-01-07 Thread allandt bik-elliott (thefieldcomic.com)
ah never mind i got it

code
bmp.dispose();
bmp = new BitmapData(169, 136, true, 0x00);
mcBitmap.attachBitmap(bmp, 1);
/code

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


[Flashcoders] design pattern diagrams...

2009-01-07 Thread Anthony Pace
I am looking to get more info on the composition of design patterns and 
which ones are used most often in the corporate world.


Diagrams accompanied by code examples would be awesome.  I have been 
able to find stuff in the past; yet, I really want to know what is 
generally preferred?


I like to try and make things black box; however, it just seems 
illogical that things be black boxes all the time.


when a person talks to another person the environment that they are in 
has to facilitate the communication; thus, if I have two objects 
instantiated in the same class and I want them to communicate with each 
other, I have to have a function in the main class or somewhere globally 
that allows those objects to communicate.


How do I accomplish this without calling to the function in the parent?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ActionScript syntax enhancements?

2009-01-07 Thread Mark Winterhalder
I think another compiler with a focus on more efficient bytecode would
be great, but those extra convenience features give me an uneasy
feeling (embrace and extend has caused too many problems already).

So, my feature request would be an export functionality to remove all
those extra features from the code, where all comments and formatting
would be kept intact, and a --vanilla compiler setting that enforces
compliance with standard Adobe AS3 (better yet, a required
--convenient setting to enable them). That way, there would be no fear
of vendor lock-in or compatibility issues.
Also, it might be a good idea to have a special suffix to indicate
that it's special AS3 -- maybe some possible acronym for Action
Script Special. :)

haXe has an AS3 generator for that very reason.

But, those fears aside, would it be possible to build on the work that
was done for Alchemy and use LLVM to generate the bytecode? AFAIK, it
has very good optimization already. According to the third post in
this thread, it should be possible to use normal LLVM with AlchemyÄs
llc binary:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72catid=755threadid=1407226

Mark



On Wed, Jan 7, 2009 at 5:28 PM, Matthias Kramm kr...@quiss.org wrote:
 On Wed, Jan 07, 2009 at 09:27:06AM -0500, Merrill, Jason 
 jason.merr...@bankofamerica.com wrote:
 You may want to look at the haxe language and compiler which already
 does what you're trying to do and see if you can compete with that

 haxe is a nifty project. But they're inventing their own language,
 which is only similar to (and not quite identical with) ActionScript.

 My goal is to be fully compatible with the ActionScript
 compiler in Flash CS4 and Flex, but hopefully produce smaller output files
 (Flex's code generator, in particular, is producing somewhat bloated
  bytecode right now) and also offer the aforementioned syntax enhancements.

 Btw.: Thanks for all the great suggestions so far!

 Greetings

 Matthias

 ___
 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] design pattern diagrams...

2009-01-07 Thread Joel Stransky
I'm only just starting to understand the concepts but AS3 Design Patterns is
a great book (aside from being riddled with typo's)

It's possible you want a Command Pattern for your issue but I'm not at a
point where I can say for sure.

On Wed, Jan 7, 2009 at 3:47 PM, Anthony Pace anthony.p...@utoronto.cawrote:

 I am looking to get more info on the composition of design patterns and
 which ones are used most often in the corporate world.

 Diagrams accompanied by code examples would be awesome.  I have been able
 to find stuff in the past; yet, I really want to know what is generally
 preferred?

 I like to try and make things black box; however, it just seems illogical
 that things be black boxes all the time.

 when a person talks to another person the environment that they are in has
 to facilitate the communication; thus, if I have two objects instantiated in
 the same class and I want them to communicate with each other, I have to
 have a function in the main class or somewhere globally that allows those
 objects to communicate.

 How do I accomplish this without calling to the function in the parent?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


RE: [Flashcoders] design pattern diagrams...

2009-01-07 Thread Merrill, Jason
 I'm only just starting to understand the concepts but AS3 Design Patterns is
a great book (aside from being riddled with typo's)

Are you talking about the Joey Lott book on AS3 design patterns?  Just curious 
as I was thinking of picking that one up.


Jason Merrill
Bank of America Instructional Technology  Media   ·   GCIB  Staff Support 
LLD

Interested in Flash Platform technologies?  Join the Bank of America Flash 
Platform Developer Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning 
Blog and subscribe.




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


RE: [Flashcoders] design pattern diagrams...

2009-01-07 Thread Merrill, Jason
I think just a quick answer to your questions which may help a lot is to check 
into understanding MVC - the Model-View-Controller design pattern.  Probably 
one of the most common pattern used and one that other coding design frameworks 
use as well for part of their operations.

So there are also frameworks like Cairngorm which takes MVC and other patterns 
together and go a lot further, it has things like Commands to facilitate 
communication.  But simple MVC using event listeners and dispatchers is 
probably the best place to start to get what you want to do going.


Jason Merrill
Bank of America Instructional Technology  Media   ·   GCIB  Staff Support 
LLD

Interested in Flash Platform technologies?  Join the Bank of America Flash 
Platform Developer Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning 
Blog and subscribe.






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Anthony Pace
Sent: Wednesday, January 07, 2009 3:48 PM
To: Flash Coders List
Subject: [Flashcoders] design pattern diagrams...

I am looking to get more info on the composition of design patterns and 
which ones are used most often in the corporate world.

Diagrams accompanied by code examples would be awesome.  I have been 
able to find stuff in the past; yet, I really want to know what is 
generally preferred?

I like to try and make things black box; however, it just seems 
illogical that things be black boxes all the time.

when a person talks to another person the environment that they are in 
has to facilitate the communication; thus, if I have two objects 
instantiated in the same class and I want them to communicate with each 
other, I have to have a function in the main class or somewhere globally 
that allows those objects to communicate.

How do I accomplish this without calling to the function in the parent?
___
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] Hi Flash Coders List, you were invited to join the gamer's social network

2009-01-07 Thread jdgiotta
Hey Flash Coders List,

Your friend jdgio...@gmail.com (jdgiotta) has invited you
to join the new social network for gamers, Playfire.com.

Click here to check it out: http://www.playfire.com/?rc=48b6b6387783ecc9

At Playfire.com, you can:

Create a killer profile to show off all your games
  (we have over 40,000 games in the database!)
Add your friends and follow what they're playing
Stay up to date with news, videos and sceenshots for the games you track
Hang out with other gamers and have fun!
It only takes a few minutes to sign up, so have a look now.

Warm regards,

Playfire Team


UUMC Ltd., 19 Greek St., 1st Floor, London, UK, W1D 4DT
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] design pattern diagrams...

2009-01-07 Thread Ron Wheeler
Head First Design Patterns is very easy to pick up. No typos, lots and 
lots of pictures, illustrations and code examples.

http://oreilly.com/catalog/9780596007126/?CMP=AFC-ak_bookATT=Head+First+Design+Patterns

http://www.headfirstlabs.com/books/hfdp/ for a quick overview and a 
typical illustration


http://oreilly.com/catalog/9780596007126/toc.pdf  Read the section on 
the Observer Pattern. It might be what you are looking for.


Merrill, Jason wrote:

I think just a quick answer to your questions which may help a lot is to check 
into understanding MVC - the Model-View-Controller design pattern.  Probably 
one of the most common pattern used and one that other coding design frameworks 
use as well for part of their operations.

So there are also frameworks like Cairngorm which takes MVC and other patterns 
together and go a lot further, it has things like Commands to facilitate 
communication.  But simple MVC using event listeners and dispatchers is 
probably the best place to start to get what you want to do going.


Jason Merrill
Bank of America Instructional Technology  Media   ·   GCIB  Staff Support 
LLD

Interested in Flash Platform technologies?  Join the Bank of America Flash Platform Developer Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning Blog and subscribe.







-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Anthony Pace
Sent: Wednesday, January 07, 2009 3:48 PM
To: Flash Coders List
Subject: [Flashcoders] design pattern diagrams...

I am looking to get more info on the composition of design patterns and 
which ones are used most often in the corporate world.


Diagrams accompanied by code examples would be awesome.  I have been 
able to find stuff in the past; yet, I really want to know what is 
generally preferred?


I like to try and make things black box; however, it just seems 
illogical that things be black boxes all the time.


when a person talks to another person the environment that they are in 
has to facilitate the communication; thus, if I have two objects 
instantiated in the same class and I want them to communicate with each 
other, I have to have a function in the main class or somewhere globally 
that allows those objects to communicate.


How do I accomplish this without calling to the function in the parent?
___
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] Hi Flash Coders List, you were invited to join the gamer's social network

2009-01-07 Thread Glen Pike

Knob jockey.

jdgiotta wrote:

Hey Flash Coders List,

Your friend jdgio...@gmail.com (jdgiotta) has invited you
to join the new social network for gamers, Playfire.com.

Click here to check it out: http://www.playfire.com/?rc=48b6b6387783ecc9

At Playfire.com, you can:

Create a killer profile to show off all your games
  (we have over 40,000 games in the database!)
Add your friends and follow what they're playing
Stay up to date with news, videos and sceenshots for the games you track
Hang out with other gamers and have fun!
It only takes a few minutes to sign up, so have a look now.

Warm regards,

Playfire Team


UUMC Ltd., 19 Greek St., 1st Floor, London, UK, W1D 4DT
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

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

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


A message from the list admin: YOU ARE DOING IT WRONG (was: Re: [Flashcoders] Hi Flash Coders List, you were invited to join the gamer's social network)

2009-01-07 Thread Dave Watts
Please don't send invitations to these sorts of things to the list. If
you can't apply the good sense to do that, I will unsubscribe you.

On Wed, Jan 7, 2009 at 5:54 PM, jdgiotta notificati...@playfire.com wrote:
 Hey Flash Coders List,

 Your friend jdgio...@gmail.com (jdgiotta) has invited you
 to join the new social network for gamers, Playfire.com.

 Click here to check it out: http://www.playfire.com/?rc=48b6b6387783ecc9

 At Playfire.com, you can:

 Create a killer profile to show off all your games
  (we have over 40,000 games in the database!)
 Add your friends and follow what they're playing
 Stay up to date with news, videos and sceenshots for the games you track
 Hang out with other gamers and have fun!
 It only takes a few minutes to sign up, so have a look now.

 Warm regards,

 Playfire Team


 UUMC Ltd., 19 Greek St., 1st Floor, London, UK, W1D 4DT
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] design pattern diagrams...

2009-01-07 Thread Anthony Pace
But I am trying to understand why you would go through all that trouble, 
when calling the function in the parent, if it is a very small 
application unlikely to be expanded upon, is so much simpler?  maybe for 
code re-use in a bigger application sure; however, doesn't it seem weird 
that tightly woven and fast executing code is not prized anymore, and 
there is a preference for bloated object oriented frameworks?  All in 
the name of making the development cycle smaller and thus less costly; 
yet, what about increased file size issues and decreased performance?


More objects and more event listeners == less performance and higher 
memory usage in my understanding.




Ron Wheeler wrote:
Head First Design Patterns is very easy to pick up. No typos, lots and 
lots of pictures, illustrations and code examples.
http://oreilly.com/catalog/9780596007126/?CMP=AFC-ak_bookATT=Head+First+Design+Patterns 



http://www.headfirstlabs.com/books/hfdp/ for a quick overview and a 
typical illustration


http://oreilly.com/catalog/9780596007126/toc.pdf  Read the section on 
the Observer Pattern. It might be what you are looking for.


Merrill, Jason wrote:
I think just a quick answer to your questions which may help a lot is 
to check into understanding MVC - the Model-View-Controller design 
pattern.  Probably one of the most common pattern used and one that 
other coding design frameworks use as well for part of their operations.


So there are also frameworks like Cairngorm which takes MVC and other 
patterns together and go a lot further, it has things like Commands 
to facilitate communication.  But simple MVC using event listeners 
and dispatchers is probably the best place to start to get what you 
want to do going.



Jason Merrill
Bank of America Instructional Technology  Media   ·   GCIB  
Staff Support LLD


Interested in Flash Platform technologies?  Join the Bank of America 
Flash Platform Developer Community Interested in innovative ideas in 
Learning?  Check out the Innovative Learning Blog and subscribe.







-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of 
Anthony Pace

Sent: Wednesday, January 07, 2009 3:48 PM
To: Flash Coders List
Subject: [Flashcoders] design pattern diagrams...

I am looking to get more info on the composition of design patterns 
and which ones are used most often in the corporate world.


Diagrams accompanied by code examples would be awesome.  I have been 
able to find stuff in the past; yet, I really want to know what is 
generally preferred?


I like to try and make things black box; however, it just seems 
illogical that things be black boxes all the time.


when a person talks to another person the environment that they are 
in has to facilitate the communication; thus, if I have two objects 
instantiated in the same class and I want them to communicate with 
each other, I have to have a function in the main class or somewhere 
globally that allows those objects to communicate.


How do I accomplish this without calling to the function in the parent?
___
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] design pattern diagrams...

2009-01-07 Thread Leandro Ferreira
Well It's your job as a developer to be able to priorize one thing over
another... development time, scalability, flexibility, speed, etc.It always
depends on what It's more important for the project.


   Leandro Ferreira

On Wed, Jan 7, 2009 at 9:16 PM, Anthony Pace anthony.p...@utoronto.cawrote:

 But I am trying to understand why you would go through all that trouble,
 when calling the function in the parent, if it is a very small application
 unlikely to be expanded upon, is so much simpler?  maybe for code re-use in
 a bigger application sure; however, doesn't it seem weird that tightly woven
 and fast executing code is not prized anymore, and there is a preference for
 bloated object oriented frameworks?  All in the name of making the
 development cycle smaller and thus less costly; yet, what about increased
 file size issues and decreased performance?

 More objects and more event listeners == less performance and higher memory
 usage in my understanding.




 Ron Wheeler wrote:

 Head First Design Patterns is very easy to pick up. No typos, lots and
 lots of pictures, illustrations and code examples.

 http://oreilly.com/catalog/9780596007126/?CMP=AFC-ak_bookATT=Head+First+Design+Patterns

 http://www.headfirstlabs.com/books/hfdp/ for a quick overview and a
 typical illustration

 http://oreilly.com/catalog/9780596007126/toc.pdf  Read the section on the
 Observer Pattern. It might be what you are looking for.

 Merrill, Jason wrote:

 I think just a quick answer to your questions which may help a lot is to
 check into understanding MVC - the Model-View-Controller design pattern.
  Probably one of the most common pattern used and one that other coding
 design frameworks use as well for part of their operations.

 So there are also frameworks like Cairngorm which takes MVC and other
 patterns together and go a lot further, it has things like Commands to
 facilitate communication.  But simple MVC using event listeners and
 dispatchers is probably the best place to start to get what you want to do
 going.


 Jason Merrill
 Bank of America Instructional Technology  Media   ·   GCIB  Staff
 Support LLD

 Interested in Flash Platform technologies?  Join the Bank of America
 Flash Platform Developer Community Interested in innovative ideas in
 Learning?  Check out the Innovative Learning Blog and subscribe.






 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Anthony Pace
 Sent: Wednesday, January 07, 2009 3:48 PM
 To: Flash Coders List
 Subject: [Flashcoders] design pattern diagrams...

 I am looking to get more info on the composition of design patterns and
 which ones are used most often in the corporate world.

 Diagrams accompanied by code examples would be awesome.  I have been able
 to find stuff in the past; yet, I really want to know what is generally
 preferred?

 I like to try and make things black box; however, it just seems illogical
 that things be black boxes all the time.

 when a person talks to another person the environment that they are in
 has to facilitate the communication; thus, if I have two objects
 instantiated in the same class and I want them to communicate with each
 other, I have to have a function in the main class or somewhere globally
 that allows those objects to communicate.

 How do I accomplish this without calling to the function in the parent?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




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


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

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


Re: [Flashcoders] design pattern diagrams...

2009-01-07 Thread Taka Kojima
I will agree with you in that people that glibly swear by frameworks for
every project annoy me and usually end up getting in the way of projects.

I always sit down and approach each project individually, each one is unique
and has different requirements. If it's something small and simple, why go
through all the trouble to separate it out into an MVC or similar structure.
However, some frameworks provide invaluable methods with working and
implementing some solutions.

This is where heirarchy and modularization comes in, when you build things
that are not tightly coupled, it should be easy to only implement those
things you need into your projects.

In the long run, if you develop like this, you will find that you have put
together quite an arsenal of classes and components to use and development
will definitely be faster. We all know there are parts of projects or pieces
of code we wrote back then, that would be awesome if we could just reuse
(and we often do). Sometimes, this can be more of a pain in the ass than it
should be because we hard coded everything, were being lazy, yadda yadda,
you know the story.

Just my 2 cents, sorry for the rambling.

On Wed, Jan 7, 2009 at 3:26 PM, Leandro Ferreira dur...@gmail.com wrote:

 Well It's your job as a developer to be able to priorize one thing over
 another... development time, scalability, flexibility, speed, etc.It always
 depends on what It's more important for the project.


   Leandro Ferreira

 On Wed, Jan 7, 2009 at 9:16 PM, Anthony Pace anthony.p...@utoronto.ca
 wrote:

  But I am trying to understand why you would go through all that trouble,
  when calling the function in the parent, if it is a very small
 application
  unlikely to be expanded upon, is so much simpler?  maybe for code re-use
 in
  a bigger application sure; however, doesn't it seem weird that tightly
 woven
  and fast executing code is not prized anymore, and there is a preference
 for
  bloated object oriented frameworks?  All in the name of making the
  development cycle smaller and thus less costly; yet, what about increased
  file size issues and decreased performance?
 
  More objects and more event listeners == less performance and higher
 memory
  usage in my understanding.
 
 
 
 
  Ron Wheeler wrote:
 
  Head First Design Patterns is very easy to pick up. No typos, lots and
  lots of pictures, illustrations and code examples.
 
 
 http://oreilly.com/catalog/9780596007126/?CMP=AFC-ak_bookATT=Head+First+Design+Patterns
 
  http://www.headfirstlabs.com/books/hfdp/ for a quick overview and a
  typical illustration
 
  http://oreilly.com/catalog/9780596007126/toc.pdf  Read the section on
 the
  Observer Pattern. It might be what you are looking for.
 
  Merrill, Jason wrote:
 
  I think just a quick answer to your questions which may help a lot is
 to
  check into understanding MVC - the Model-View-Controller design
 pattern.
   Probably one of the most common pattern used and one that other coding
  design frameworks use as well for part of their operations.
 
  So there are also frameworks like Cairngorm which takes MVC and other
  patterns together and go a lot further, it has things like Commands to
  facilitate communication.  But simple MVC using event listeners and
  dispatchers is probably the best place to start to get what you want to
 do
  going.
 
 
  Jason Merrill
  Bank of America Instructional Technology  Media   ·   GCIB  Staff
  Support LLD
 
  Interested in Flash Platform technologies?  Join the Bank of America
  Flash Platform Developer Community Interested in innovative ideas in
  Learning?  Check out the Innovative Learning Blog and subscribe.
 
 
 
 
 
 
  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
  flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Anthony Pace
  Sent: Wednesday, January 07, 2009 3:48 PM
  To: Flash Coders List
  Subject: [Flashcoders] design pattern diagrams...
 
  I am looking to get more info on the composition of design patterns and
  which ones are used most often in the corporate world.
 
  Diagrams accompanied by code examples would be awesome.  I have been
 able
  to find stuff in the past; yet, I really want to know what is generally
  preferred?
 
  I like to try and make things black box; however, it just seems
 illogical
  that things be black boxes all the time.
 
  when a person talks to another person the environment that they are in
  has to facilitate the communication; thus, if I have two objects
  instantiated in the same class and I want them to communicate with each
  other, I have to have a function in the main class or somewhere
 globally
  that allows those objects to communicate.
 
  How do I accomplish this without calling to the function in the parent?
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  

Re: [Flashcoders] design pattern diagrams...

2009-01-07 Thread Joel Stransky
@Jason
I'm talking about the oreilly book Actionscript 3.0 Design Patterns by
William Sanders and Chandima Cumaranatunge. Enter chapters are shifted off
the page but there are addendum on the site.

Also, MVC's are made up Observer, Strategy, and Composite patterns. Those
need to be understood first.


@Anthony,
From what I've understood, if you aren't going to need to go back an
edit/extend the app frequently or work on a team, there really isn't much
benefit to using design patterns. They do however lend to re-using old
classes in new apps so you that you don't have to start from scratch each
time.

On Wed, Jan 7, 2009 at 6:16 PM, Anthony Pace anthony.p...@utoronto.cawrote:

 But I am trying to understand why you would go through all that trouble,
 when calling the function in the parent, if it is a very small application
 unlikely to be expanded upon, is so much simpler?  maybe for code re-use in
 a bigger application sure; however, doesn't it seem weird that tightly woven
 and fast executing code is not prized anymore, and there is a preference for
 bloated object oriented frameworks?  All in the name of making the
 development cycle smaller and thus less costly; yet, what about increased
 file size issues and decreased performance?

 More objects and more event listeners == less performance and higher memory
 usage in my understanding.




 Ron Wheeler wrote:

 Head First Design Patterns is very easy to pick up. No typos, lots and
 lots of pictures, illustrations and code examples.

 http://oreilly.com/catalog/9780596007126/?CMP=AFC-ak_bookATT=Head+First+Design+Patterns

 http://www.headfirstlabs.com/books/hfdp/ for a quick overview and a
 typical illustration

 http://oreilly.com/catalog/9780596007126/toc.pdf  Read the section on the
 Observer Pattern. It might be what you are looking for.

 Merrill, Jason wrote:

 I think just a quick answer to your questions which may help a lot is to
 check into understanding MVC - the Model-View-Controller design pattern.
  Probably one of the most common pattern used and one that other coding
 design frameworks use as well for part of their operations.

 So there are also frameworks like Cairngorm which takes MVC and other
 patterns together and go a lot further, it has things like Commands to
 facilitate communication.  But simple MVC using event listeners and
 dispatchers is probably the best place to start to get what you want to do
 going.


 Jason Merrill
 Bank of America Instructional Technology  Media   ·   GCIB  Staff
 Support LLD

 Interested in Flash Platform technologies?  Join the Bank of America
 Flash Platform Developer Community Interested in innovative ideas in
 Learning?  Check out the Innovative Learning Blog and subscribe.






 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Anthony Pace
 Sent: Wednesday, January 07, 2009 3:48 PM
 To: Flash Coders List
 Subject: [Flashcoders] design pattern diagrams...

 I am looking to get more info on the composition of design patterns and
 which ones are used most often in the corporate world.

 Diagrams accompanied by code examples would be awesome.  I have been able
 to find stuff in the past; yet, I really want to know what is generally
 preferred?

 I like to try and make things black box; however, it just seems illogical
 that things be black boxes all the time.

 when a person talks to another person the environment that they are in
 has to facilitate the communication; thus, if I have two objects
 instantiated in the same class and I want them to communicate with each
 other, I have to have a function in the main class or somewhere globally
 that allows those objects to communicate.

 How do I accomplish this without calling to the function in the parent?
 ___
 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




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


Re: [Flashcoders] Thoughts on new features in CS4

2009-01-07 Thread Ashim D'Silva
One app the does everything would be terrible. You'd have to pay for
features you don't want and will have to run an incredibly beefy program
that will take the strongest of systems down. Maybe at some point, maybe
when quantum computing is around!, but till then I'd say it's organised
well.That however, is not an excuse for the terrible code editor.

As for the original post, I have gotten my hands on CS4 just yet, but I've
seen demo's and video tuts, and WOW.. its a pretty big jump and fantastic
features for animators, which possibly means power for devs as well. But all
of it could be done through code in 9, so maybe they've just made it easier
for animators to do, but that's great none the less.

2009/1/8 Mendelsohn, Michael michael.mendels...@fmglobal.com

 Anthony, I'm going out on a limb and guessing that the why don't they
 just make it all one app that does everything suggestion has been
 around longer than you've been alive.  Don't lose any sleep over that
 one.  :-D

 - MM


   They don't care enough about users to make one application that does
 everything, or
 an app that integrates extremely easily with another feature set if
 purchased; for, they don't think like that.


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




-- 
The Random Lines
My online portfolio
www.therandomlines.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] NativeMenuItem keyModifier with function key (AIR)

2009-01-07 Thread Zeh Fernando
Hey list,

Do people here work with AIR? Or is there any better-aligned mailing list?

Anyway. I'm using AIR 1.5's NativeMenuItem's .keyEquivalent and
.keyEquivalentModifier. That feature is pretty cool and works like
this:

var item:NativeMenuItem = new NativeMenuItem(Do Whatever);
item.keyEquivalent = d;
item.keyEquivalentModifiers = [Keyboard.CONTROL];

Then when the user presses CTRL+D, the menu item is executed.

(More information at
http://livedocs.adobe.com/flex/3/html/help.html?content=Menus_2.html)

I'm having a problem setting the .keyEquivalent, though. It accepts
strings, so you can't set them to things like Enter, Tab, Del, F1,
etc.

You can try doing this:

var item:NativeMenuItem = new NativeMenuItem(Do Whatever);
item.keyEquivalent = F1;
item.keyEquivalentModifiers = [Keyboard.CONTROL];

And then, funny enough, the menu item will display CTRL+F1 as the
shortcut; but it won't work. The actual shortcut will be CTRL+F - that
is, it only takes the first character of the string as the activation
key (!). The documentation seems to completely ignore the problem,
very briefly mentioning that .keyEquivalent accepts a string. In fact,
you can write *anything* as the .keyEquivalent and it'll be shown
there on the menu, but only the first char matters.

I tried a lot of different things, like adding Keyboard.F1 to the
keyEquivalentModifiers array, using Keyboard.F1's key code as a
keyEquivalent char, using AIR's new .STRING_F1 or KEYNAME_F1
constants, and things like that. Nothing seems to work though.

Has somebody ran into that and found a solution that works? Or am I
imagining things? It seems odd to me that I'm able to create a menu in
Flash which responds to F1 while I can't do that in AIR using its
(great) native menus. Of course I can always add the shortcuts as some
keyboard event listener hidden somewhere, but it'd be less than
optimal (and wouldn't display the shortcut on the menu).


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


Re: [Flashcoders] Hi Flash Coders List, you were invited to join the gamer's social network

2009-01-07 Thread John Giotta
On Wed, Jan 7, 2009 at 5:54 PM, jdgiotta notificati...@playfire.com wrote:
 Hey Flash Coders List,

 Your friend jdgio...@gmail.com (jdgiotta) has invited you
 to join the new social network for gamers, Playfire.com.

 Click here to check it out: http://www.playfire.com/?rc=48b6b6387783ecc9

 At Playfire.com, you can:

 Create a killer profile to show off all your games
  (we have over 40,000 games in the database!)
 Add your friends and follow what they're playing
 Stay up to date with news, videos and sceenshots for the games you track
 Hang out with other gamers and have fun!
 It only takes a few minutes to sign up, so have a look now.

 Warm regards,

 Playfire Team


 UUMC Ltd., 19 Greek St., 1st Floor, London, UK, W1D 4DT
 ___
 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] Thoughts on new features in CS4

2009-01-07 Thread Anthony Pace
In advance I would like to apologize for what may seem to be, and quite 
possibly is in some cases, a rant.


I have used it while on contract, and it is not all that great.

For animation it is okay and sprites points bones and IK are great; yet, 
no coding improvements, other than not having to be case sensitive all 
the time for code hinting to work; however, I have found several bugs 
already with it; thus, flashdevelop is hundreds of miles ahead and I am 
so thankful that they exist; as well, they didn't even to give their 
dedicated code editor, dreamweaver the capability to edit AS1,2,3, which 
makes me believe they have real idiots managing things, and could be the 
reason, other than the downturn of the economy, as to why there apps are 
not selling as well as expected.


I agree paying for an app that does everything would be horribly costly; 
however, paying for an app that gave you only the pieces you wanted to 
pay for on a modular basis, akin to SOA model, would make it so tighter 
integration and ease of use would be easily achievable.  Just imagine 
the productivity if everything had a parent app that allowed to turn on 
and off features that were tightly integrated based upon what you needed 
at the time you were using the app.


As it stands I have to keep 5 applications open at once on consistent 
basis, and having them integrate is annoyingly over complex, to 
downright impossible in some cases, so you better have real experience 
with choosing your work-flow and usage of apps.


-copying the vector info from flash cs3 to illustrator is easy; however, 
I quite often come across situations where it will not copy the filters, 
and don't get me started on how difficult it is to get those vectors 
paths to properly work with photoshop. 

-What the hell happened to image ready?  Photoshop cs3 lost a lot of 
features when they tried to merge them, and I think it is due to them 
just wanting to force you to purchase more applications to fill small 
wholes.


-Why not just give flash developers the ability to publish directly to 
DVD?  it is because they want to force you to purchase encore, when it 
would be so easy to make it possible in the flash IDE; as well, not 
being able to do tis from flash makes you have to employ work arounds to 
get your content on the DVD.


-Soundbooth just sucks ass and I am forced to use cakewalk or protools 
to edit audio and bring it into flash.


I will stop it here or I will be at it for weeks.



Ashim D'Silva wrote:

One app the does everything would be terrible. You'd have to pay for
features you don't want and will have to run an incredibly beefy program
that will take the strongest of systems down. Maybe at some point, maybe
when quantum computing is around!, but till then I'd say it's organised
well.That however, is not an excuse for the terrible code editor.

As for the original post, I have gotten my hands on CS4 just yet, but I've
seen demo's and video tuts, and WOW.. its a pretty big jump and fantastic
features for animators, which possibly means power for devs as well. But all
of it could be done through code in 9, so maybe they've just made it easier
for animators to do, but that's great none the less.

2009/1/8 Mendelsohn, Michael michael.mendels...@fmglobal.com

  

Anthony, I'm going out on a limb and guessing that the why don't they
just make it all one app that does everything suggestion has been
around longer than you've been alive.  Don't lose any sleep over that
one.  :-D

- MM




 They don't care enough about users to make one application that does
  

everything, or
an app that integrates extremely easily with another feature set if
purchased; for, they don't think like that.


___
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] Hi Flash Coders List, you were invited to join the gamer's social network

2009-01-07 Thread John Giotta
I apologize for this really bad spam mistake.
It was completely unintentional, but someone thought it was a
brilliant idea to invite every contact in Gmail as a default feature.
If I knew it was going to do that I wouldn't have.

On Wed, Jan 7, 2009 at 5:54 PM, jdgiotta notificati...@playfire.com wrote:
 Hey Flash Coders List,

 Your friend jdgio...@gmail.com (jdgiotta) has invited you
 to join the new social network for gamers, Playfire.com.

 Click here to check it out: http://www.playfire.com/?rc=48b6b6387783ecc9

 At Playfire.com, you can:

 Create a killer profile to show off all your games
  (we have over 40,000 games in the database!)
 Add your friends and follow what they're playing
 Stay up to date with news, videos and sceenshots for the games you track
 Hang out with other gamers and have fun!
 It only takes a few minutes to sign up, so have a look now.

 Warm regards,

 Playfire Team


 UUMC Ltd., 19 Greek St., 1st Floor, London, UK, W1D 4DT
 ___
 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] Hi Flash Coders List, you were invited to join the gamer's social network

2009-01-07 Thread Dave Watts
 I apologize for this really bad spam mistake.

Apology accepted!

 It was completely unintentional, but someone thought it was a
 brilliant idea to invite every contact in Gmail as a default feature.
 If I knew it was going to do that I wouldn't have.

I know it was unintentional. For anyone else who's paying attention, a
lot of these social network apps do this - you should assume that if
you give it your Google Account credentials, that's what's going to
happen.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Auto Reply: Flashcoders Digest, Vol 16, Issue 8

2009-01-07 Thread jk
Vielen Dank für Ihre Nachricht.

Ich bin bis einschließlich 9. Januar 2009 nicht erreichbar. In dringenden 
Fällen wenden Sie sich bitte an Herrn Peer Schmidt-Soltau 
(p...@masterkitchen.de) oder Frau Hannah Witopil (han...@masterkitchen.de).

Vielen Dank
Johannes Killinger

Master Kitchen GmbH
Audiovisuelle Medienentwicklung
Schorndorfer Straße 42/2 • 71638 Ludwigsburg

Telefon (07141) 4 88 89-12
Telefax (07141) 4 88 89-19

http://www.masterkitchen.de



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


Re: [Flashcoders] Auto Reply: Flashcoders Digest, Vol 16, Issue 8

2009-01-07 Thread Joel Stransky
This is getting annoying.

2009/1/7 j...@masterkitchen.de

 Vielen Dank für Ihre Nachricht.

 Ich bin bis einschließlich 9. Januar 2009 nicht erreichbar. In dringenden
 Fällen wenden Sie sich bitte an Herrn Peer Schmidt-Soltau (
 p...@masterkitchen.de) oder Frau Hannah Witopil (han...@masterkitchen.de).

 Vielen Dank
 Johannes Killinger

 Master Kitchen GmbH
 Audiovisuelle Medienentwicklung
 Schorndorfer Straße 42/2 • 71638 Ludwigsburg

 Telefon (07141) 4 88 89-12
 Telefax (07141) 4 88 89-19

 http://www.masterkitchen.de



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




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


Re: [Flashcoders] Auto Reply: Flashcoders Digest, Vol 16, Issue 8

2009-01-07 Thread Anthony Pace

I know...

Joel Stransky wrote:

This is getting annoying.

2009/1/7 j...@masterkitchen.de

  

Vielen Dank für Ihre Nachricht.

Ich bin bis einschließlich 9. Januar 2009 nicht erreichbar. In dringenden
Fällen wenden Sie sich bitte an Herrn Peer Schmidt-Soltau (
p...@masterkitchen.de) oder Frau Hannah Witopil (han...@masterkitchen.de).

Vielen Dank
Johannes Killinger

Master Kitchen GmbH
Audiovisuelle Medienentwicklung
Schorndorfer Straße 42/2 • 71638 Ludwigsburg

Telefon (07141) 4 88 89-12
Telefax (07141) 4 88 89-19

http://www.masterkitchen.de



___
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] How do you access this mailing list ...

2009-01-07 Thread SJF
I find the flashcoders mailing list very helpful and often pick up new
ideas/techniques from what people post.

Just wondering how people access this mailing list.

It would be great if you could configure the SearchCoders Dashboard (which
is a nice little air app - see link http://www.searchcoders.com/) for this
FlashCoders list. I'll send them an email (searchcoders) and see if this is
possible.

Any thoughts on this.

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


[Flashcoders] Re: design pattern diagrams...

2009-01-07 Thread SJF
Furthermore, I suggest taking a look through the samples in the Adobe Flash
Developer Center (http://www.adobe.com/devnet/flash/?navID=samples).

The first link (New Flash ActionScript 3.0 samples -
http://www.adobe.com/devnet/flash/samples/) has some downloadable source
files that might assist you.

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