Re: [Flashcoders] Five3D

2008-07-30 Thread Piers Cowburn

Also you may find this interesting:

http://blog.barcinski-jeanjean.com/2008/05/16/vectorsvision-vectors- 
in-papervision3d/


Piers


On 30 Jul 2008, at 00:22, Patrick J. Jankun wrote:


Hi Glen,

I went through my links, and found those:

http://www.flashandmath.com/advanced/
http://www.flashdevils.com/trigonometry/

maybe this is gonna help you out,
cheers,

Patrick

On Jul 30, 2008, at 12:19 AM, Glen Pike wrote:


Hi,

  I am working with the Five3D library and have a question  
regarding cameras so if anyone is familiar with this or really  
good at explaining 3D math to 5 year old kids (I am feeling a bit  
dumb here).


  The Five3D library itself does not have a camera, but projects  
its objects straight into the scene.   I would like to create a  
way of orbiting a single cube object, like with a camera, rather  
than rotating the object itself.   My aim is to achieve the type  
of manipulation used with the globe here - http://www.dasai.es/ -  
where the globe rotation does not end up looking wrong from a  
user perspective when you are looking along the Y axis or flip  
when the cube is upside down - here is an early trial of mine  
showing the problems -  http://glenpike.co.uk/play/cubetest.html


  I have not discounted using Papervision as it has cameras to do  
this, but the text rendering of Five3D is cleaner than bitmapped  
PV3D text and this is what I am looking for, so I would like to  
try and get the Five3D working if possible before I discount it.


  As the world only consists of one object, I am guessing it would  
be fairly trivial to create a fake camera with a single matrix,  
apply rotations to that matrix, then concatenate this matrix with  
the cube objects.  I tried a couple of things, but am flailing a  
bit in the dark here and could do with some pointers if anyone has  
any ideas.


  My first try was to apply X  Y rotations to a Matrix class - in  
Five3D - then do Matrix to Euler to get the X, Y  Z rotations to  
apply to my 3D object (meaning I did not have to hack the library  
yet).  I reckon I am going to have to dig deeper and manipulate  
the private matrix used by each 3D object in the library.


  I am assuming - maybe wrongly - that because I am wanting to  
orbit around the origin, which is also the centre of the cube, I  
can pretend my camera is also in the centre of the world, rather  
than transformed a distance from the cube.  This would mean I just  
have to rotate the x  y axes of my camera to get pitch   
roll, then apply this to my cube matrix.  Question is, do I have  
to include the distance of the camera from my object in the  
calculations and do I have to have a look at point too, or can I  
cheat as these are always fixed?


  Apart from looking at PV3D's camera's and some hardcore  
Wikipedia entries, I don't have much to go on, so any information  
to get my head around this would be helpful - particularly some  
real dumbed down tutorials on Matrices, possibly Quaternions.  (I  
fell asleep in my lessons on the former and never covered the  
latter...)


  Thanks in advance.

  Glen

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

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


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


[EMAIL PROTECTED]
0207 631 3278


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


RE: [Flashcoders] Masking Effect

2008-07-30 Thread Sander Schuurman
thnx!

this.cachAsBitmap = true; did the trick! Without converting to a bitmap, just 
the lines as the mask.

thnx again.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of allandt 
bik-elliott (thefieldcomic.com)
Sent: Tuesday, 29 July 2008 15:27
To: Flash Coders List
Subject: Re: [Flashcoders] Masking Effect

you could convert the lines to fills (under object i believe) or you could
use a bitmap (remember to use runtime bitmap caching)

On Tue, Jul 29, 2008 at 1:37 PM, Sander Schuurman 
[EMAIL PROTECTED] wrote:

 Hi cool list,

 I'm working on a masking effect and set it up with a mask MovieClip wich
 provide animated lines.

 Other masking effects work great when applied in the same way I am trying
 with this one. Only the other masking effects use Fills together with the
 lines.

 So my logic is saying me that lines don't trigger the mask of a
 DisplayObject and fills do. Am I correct?

 Is it possible otherwise to draw the lines to a bitmap object and have that
 as a mask? Or is a bitmap object always square when used as a mask?

 Thnx in advance,

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

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

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


[Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread alan skinner
 
So i just found out i've to interview an AS guy tomorrow, anybody have any good 
questions that i should be asking?
 
Cheers
_
Stay in touch when you're away with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_messenger2_072008___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Kevin Bowers
I'd think the first one should be are they a member of this list.  If the
answer is yes, think up some more questions quick

Kevin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of alan skinner
Sent: 30 July 2008 09:18
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] OT: Questions to ask an interviewee

 
So i just found out i've to interview an AS guy tomorrow, anybody have any
good questions that i should be asking?
 
Cheers
_
Stay in touch when you're away with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_messeng
er2_072008___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Adrian Ionut Beschea
uhm... this list is not exactly private :) the interviewee may be on it as well 
you wouldn't want to spoil the fun, now would you ? 

--- On Wed, 7/30/08, alan skinner [EMAIL PROTECTED] wrote:
From: alan skinner [EMAIL PROTECTED]
Subject: [Flashcoders] OT: Questions to ask an interviewee
To: flashcoders@chattyfig.figleaf.com
Date: Wednesday, July 30, 2008, 11:17 AM

So i just found out i've to interview an AS guy tomorrow, anybody have any
good questions that i should be asking?
 
Cheers
_
Stay in touch when you're away with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_messenger2_072008___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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


RE: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Kerry Thompson
Alan Skinner wrote:

 So i just found out i've to interview an AS guy tomorrow, anybody have any
good
 questions that i should be asking?

Here are my favorites, at 4:30 in the morning:

1. How long have you been out on parole?
2. So, do you think you're going to beat that child porn rap?
3. Did that program you wrote for Al Quaeda really work as well as everybody
says?
4. Have you ever worked for Microsoft?

Cheers!

Professor I. M. Gestopftmitscheiss

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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Steven Sacks
Don't ask questions.  You won't learn anything.  Make him code some stuff. 
Something tricky.  Come up with something good.  That is, if you care if they 
know how to code.


Nevermind.  You should ask him what his strengths and weaknesses are.  Those are 
always good interview questions.

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


RE: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Kerry Thompson
Steven Sacks wrote:
 You should ask him what his strengths and weaknesses are.  Those
 are always good interview questions.

Yeah, but everybody knows how to answer what are your weaknesses. Obvious
answer: I'm a perfectionist.

I think you were on the right track. Ask to see code. Ask tough questions,
specific to the job. How do you create a singleton? What is data binding?
How do you feel about is-a vs. has-a. Does AS3 have multiple inheritance?
Did you know that your fly is unzipped?

Cordially,

Kerry Thompson

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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Christoffer Enedahl
I've done some recruting and what surpised me was why some ppl even 
applied to the job when they clearly did not know how to code. One part 
of the questions was a small verbal programming test, I wrote a few 
questions about programming, ie, whats wrong with this syntax, how would 
you access this xmlnode from code etc... very useful to us to reflect 
the programming knowledge. Note we did not go on how correct the guy was 
but his way to handle it.


HTH
Christoffer

Kevin Bowers skrev:

I'd think the first one should be are they a member of this list.  If the
answer is yes, think up some more questions quick

Kevin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of alan skinner
Sent: 30 July 2008 09:18
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] OT: Questions to ask an interviewee

 
So i just found out i've to interview an AS guy tomorrow, anybody have any

good questions that i should be asking?
 
Cheers

_
Stay in touch when you're away with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_messeng
er2_072008___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


  


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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Paul Andrews
I didn't think you were allowed to talk about the CS3 certification 
questions?


- Original Message - 
From: Kerry Thompson [EMAIL PROTECTED]

To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Wednesday, July 30, 2008 9:40 AM
Subject: RE: [Flashcoders] OT: Questions to ask an interviewee



Alan Skinner wrote:

So i just found out i've to interview an AS guy tomorrow, anybody have 
any

good

questions that i should be asking?


Here are my favorites, at 4:30 in the morning:

1. How long have you been out on parole?
2. So, do you think you're going to beat that child porn rap?
3. Did that program you wrote for Al Quaeda really work as well as 
everybody

says?
4. Have you ever worked for Microsoft?

Cheers!

Professor I. M. Gestopftmitscheiss

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



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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Ian Thomas
On Wed, Jul 30, 2008 at 9:53 AM, Steven Sacks [EMAIL PROTECTED] wrote:
 Don't ask questions.  You won't learn anything.  Make him code some stuff.
 Something tricky.  Come up with something good.  That is, if you care if
 they know how to code.

(for once!) I kind of agree with Steven.

Talking to the interviewee - asking questions - _is_ important,
because one of the most critical things you need to find out is
whether they'll fit into your team, and getting into a decent
conversation with them is one of the ways to judge that. But that's a
whole different topic, and probably not one for this list.

However to get an idea what their coding abilities are like, you can
do worse than get them to write a couple of functions for you to do
specific things. On paper. With a pencil. :-D

A 'what's wrong with this syntax'? test is good, too. So is a 'what is
this function meant to do?' - showing them a listing.

You can also get a rough idea of their architectural/code organisation
skills in a similar way, by detailing a simple system and getting them
to throw together a rough diagram of how the classes in it might
interact (UML or whatever, your choice).

You'll still need to ask coding-related questions to get some idea of
the breadth of their experience. Here it's good to ask specific
questions, not general 'so, what about this whole MVC thing, then?'.
Be more specific - and ask more about _why_ than _how_. If they don't
understand the _why_, the how is often just a regurgitation of
rote-learned stuff or what they might have read on Wikipedia today.

At the end of the day, though, it very much depends what role you're
trying to fill, how big your team is, what this guy's responsibilities
are going to be, whether he'll have to talk to clients, etc. etc.

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


[Flashcoders] Re: AS3 - Eclipse FDT - Problem with Embed Fonts

2008-07-30 Thread david costard
Hi,

I try whith a font from my file system and my problem is resolved but a new
one is present.
Now the error message is

Main_impact.as(10): col: 42 Error: La définition de la classe de base
FontAsset est introuvable.
public class Main_impact extends mx.core.FontAsset

Any ideas ?

Thanks.



2008/7/29 david costard [EMAIL PROTECTED]

 Hi List,

 I'm using Eclipse and FDT for an AS3 application.
 In this application I need to embed fonts.

 I search the correct technique in Joey Lott and in tutorial on the web.

 So in my class just before the constructor I write that :
 [Embed(source=assets/Arial Unicode MS.TTF, fontFamily=EaganFont,
 mimeType=application/x-font-truetype)]
 private var EAGAN : String;

 And when I try to generate the swf eclipse generate this error :
 --
 Loading configuration file
 D:\work\nurun\environement\eclipse\flex_sdk_3\frameworks\flex-config.xml
 Recompile: D:\work\nurun\environement\workspaces\test\fonts\src\Main.as
 Reason: The source file wasn't fully compiled.
 Files changed: 0 Files affected: 1
 D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): Error:
 exception during transcoding: Unexpected exception encountered while reading
 font file '/D:/work/environement/workspaces/test/fonts/src/assets/Arial
 Unicode MS.TTF'

 [Embed(source=assets/Arial Unicode MS.TTF,
 fontFamily=EaganFont, mimeType=application/x-font-truetype)]

 D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): col: 4:
 Error: unable to build font 'EaganFont'

 [Embed(source=assets/Arial Unicode MS.TTF,
 fontFamily=EaganFont, mimeType=application/x-font-truetype)]
^

 D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): col: 4:
 Error: Unable to transcode assets/Arial Unicode MS.TTF.


^

 (fcsh)
 --

 I've got the same errors if my var is a Class
 private var EAGAN : Class;


 Anyone had the solution of my problem ?


 Thank you.

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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Steven Sacks
There's a company here in LA that gives you a choice of tests and you can take 
them home and work on them.  I heard what one of the tests was at 1:00am late 
one night and I was so psyched about it that I ended up staying up til 5:30am 
doing it.  I wasn't happy with my first solution, which worked but wasn't as 
elegant as I liked, so I refactored it until I was satisfied.


The particular test I took I thought was a fantastic way to figure out 
somebody's problem solving skills.  I heard the next day that most applicants 
failed that particular test, including the guy who told me about it!  (I can 
imagine it causing the Flash player to have script timeout errors).


I mean, you have to come up with a good challenge worth doing.  You'll also get 
an idea of how passionate people are about coding by giving them a challenge.  I 
want to interview at that company just so I can find out what their other tests 
are and take em, ha!


Here's what you have to decide.  What are you trying to determine about 
somebody's skillset?  Do you do a lot of collision detection stuff?  Are you 
more interested in design pattern knowledge?  Once you know what the goal is, 
you can come up with a test that will demonstrate their skills in that area.


No, I'm not going to tell you what the test is.  :)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Ibrahim Y
at the end you need your work done in any case in specific time with the
best performance.
so, giving him tasks related to your work in real environment with ability
to access internet on anything he needs will be the best way to decide how
he will be useful for you -imo-

Ibrahim

On Wed, Jul 30, 2008 at 12:14 PM, Ian Thomas [EMAIL PROTECTED] wrote:

 On Wed, Jul 30, 2008 at 9:53 AM, Steven Sacks [EMAIL PROTECTED]
 wrote:
  Don't ask questions.  You won't learn anything.  Make him code some
 stuff.
  Something tricky.  Come up with something good.  That is, if you care if
  they know how to code.

 (for once!) I kind of agree with Steven.

 Talking to the interviewee - asking questions - _is_ important,
 because one of the most critical things you need to find out is
 whether they'll fit into your team, and getting into a decent
 conversation with them is one of the ways to judge that. But that's a
 whole different topic, and probably not one for this list.

 However to get an idea what their coding abilities are like, you can
 do worse than get them to write a couple of functions for you to do
 specific things. On paper. With a pencil. :-D

 A 'what's wrong with this syntax'? test is good, too. So is a 'what is
 this function meant to do?' - showing them a listing.

 You can also get a rough idea of their architectural/code organisation
 skills in a similar way, by detailing a simple system and getting them
 to throw together a rough diagram of how the classes in it might
 interact (UML or whatever, your choice).

 You'll still need to ask coding-related questions to get some idea of
 the breadth of their experience. Here it's good to ask specific
 questions, not general 'so, what about this whole MVC thing, then?'.
 Be more specific - and ask more about _why_ than _how_. If they don't
 understand the _why_, the how is often just a regurgitation of
 rote-learned stuff or what they might have read on Wikipedia today.

 At the end of the day, though, it very much depends what role you're
 trying to fill, how big your team is, what this guy's responsibilities
 are going to be, whether he'll have to talk to clients, etc. etc.

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

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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread allandt bik-elliott (thefieldcomic.com)
if you do make a test, you have to give the applicant a chance to do it in a
natural environment, like that test you did where you could take it home. If
you're breathing down their neck, they may fail because of nerves more than
anything else (i'm good in interviews but blank if put on the spot)



On Wed, Jul 30, 2008 at 11:04 AM, Steven Sacks [EMAIL PROTECTED]wrote:

 There's a company here in LA that gives you a choice of tests and you can
 take them home and work on them.  I heard what one of the tests was at
 1:00am late one night and I was so psyched about it that I ended up staying
 up til 5:30am doing it.  I wasn't happy with my first solution, which worked
 but wasn't as elegant as I liked, so I refactored it until I was satisfied.

 The particular test I took I thought was a fantastic way to figure out
 somebody's problem solving skills.  I heard the next day that most
 applicants failed that particular test, including the guy who told me about
 it!  (I can imagine it causing the Flash player to have script timeout
 errors).

 I mean, you have to come up with a good challenge worth doing.  You'll also
 get an idea of how passionate people are about coding by giving them a
 challenge.  I want to interview at that company just so I can find out what
 their other tests are and take em, ha!

 Here's what you have to decide.  What are you trying to determine about
 somebody's skillset?  Do you do a lot of collision detection stuff?  Are you
 more interested in design pattern knowledge?  Once you know what the goal
 is, you can come up with a test that will demonstrate their skills in that
 area.

 No, I'm not going to tell you what the test is.  :)

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

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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread allandt bik-elliott (thefieldcomic.com)
agreed on that

On Wed, Jul 30, 2008 at 11:12 AM, Ibrahim Y [EMAIL PROTECTED] wrote:

 at the end you need your work done in any case in specific time with the
 best performance.
 so, giving him tasks related to your work in real environment with ability
 to access internet on anything he needs will be the best way to decide how
 he will be useful for you -imo-

 Ibrahim

 On Wed, Jul 30, 2008 at 12:14 PM, Ian Thomas [EMAIL PROTECTED] wrote:

  On Wed, Jul 30, 2008 at 9:53 AM, Steven Sacks [EMAIL PROTECTED]
  wrote:
   Don't ask questions.  You won't learn anything.  Make him code some
  stuff.
   Something tricky.  Come up with something good.  That is, if you care
 if
   they know how to code.
 
  (for once!) I kind of agree with Steven.
 
  Talking to the interviewee - asking questions - _is_ important,
  because one of the most critical things you need to find out is
  whether they'll fit into your team, and getting into a decent
  conversation with them is one of the ways to judge that. But that's a
  whole different topic, and probably not one for this list.
 
  However to get an idea what their coding abilities are like, you can
  do worse than get them to write a couple of functions for you to do
  specific things. On paper. With a pencil. :-D
 
  A 'what's wrong with this syntax'? test is good, too. So is a 'what is
  this function meant to do?' - showing them a listing.
 
  You can also get a rough idea of their architectural/code organisation
  skills in a similar way, by detailing a simple system and getting them
  to throw together a rough diagram of how the classes in it might
  interact (UML or whatever, your choice).
 
  You'll still need to ask coding-related questions to get some idea of
  the breadth of their experience. Here it's good to ask specific
  questions, not general 'so, what about this whole MVC thing, then?'.
  Be more specific - and ask more about _why_ than _how_. If they don't
  understand the _why_, the how is often just a regurgitation of
  rote-learned stuff or what they might have read on Wikipedia today.
 
  At the end of the day, though, it very much depends what role you're
  trying to fill, how big your team is, what this guy's responsibilities
  are going to be, whether he'll have to talk to clients, etc. etc.
 
  HTH,
 Ian
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Ian Thomas
On Wed, Jul 30, 2008 at 11:42 AM, allandt bik-elliott
(thefieldcomic.com) [EMAIL PROTECTED] wrote:
 if you do make a test, you have to give the applicant a chance to do it in a
 natural environment, like that test you did where you could take it home.

I don't agree with taking it home. That gives too many opportunities
to go away and copy the answer from somewhere else.

I do agree with giving them some space without you standing over them.

I don't agree with giving access to the internet. The tests should be
designed to test general programming and design logical thought rather
than knowledge of extensive APIs (even expert AS and Java coders are
constantly referring to the API docs; I wouldn't penalise anyone for
not knowing the exact list of parameters any given function takes -
that's what code hinting is for).

Anway, it's not exact syntax you're looking for (that may well stray
under interview pressure). It's the general approach and getting them
to explain why they're doing it that way.

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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Glen Pike
A mate of mine asked me to help him out with some code once, so I did an 
example for him, which I then found out was for an interview...  I was a 
bit pd off about this, but in the end, my mate could not get his 
head around the code, so did not try to pass it off as his:


Thing here is to have some time to go through the code before the 
interview - bearing in mind, that the solution may be somewhere between 
hand coding and compiled from the Internet :)


I think a combination of asking someone to do a test in their own 
environment + a bit of on the spot challenges will give you a balanced 
view, you want someone who can go away and work at their comfort, but 
you may want someone who can do stuff under a little pressure too, 
although interviews are probably up there with exams, so take both 
results as a pinch of salt too.  Asking someone to write code under 
pressure is harsh, but asking them to give you a more abstract 
solution / approach to a problem is not so bad. 

The best interviews for me to show off my abilities, from an interviewee 
perspective, involved talking to the boss and someone who new about 
coding.  Also meeting the team I would be working with was good.  The 
best interview like this included an informal lunch with some of the 
team where I was able to talk to them, have a bit of a laugh and was 
still assessed but in a lot more relaxing way :)


Glen

allandt bik-elliott (thefieldcomic.com) wrote:

agreed on that

On Wed, Jul 30, 2008 at 11:12 AM, Ibrahim Y [EMAIL PROTECTED] wrote:

  

at the end you need your work done in any case in specific time with the
best performance.
so, giving him tasks related to your work in real environment with ability
to access internet on anything he needs will be the best way to decide how
he will be useful for you -imo-

Ibrahim

On Wed, Jul 30, 2008 at 12:14 PM, Ian Thomas [EMAIL PROTECTED] wrote:



On Wed, Jul 30, 2008 at 9:53 AM, Steven Sacks [EMAIL PROTECTED]
wrote:
  

Don't ask questions.  You won't learn anything.  Make him code some


stuff.
  

Something tricky.  Come up with something good.  That is, if you care


if


they know how to code.


(for once!) I kind of agree with Steven.

Talking to the interviewee - asking questions - _is_ important,
because one of the most critical things you need to find out is
whether they'll fit into your team, and getting into a decent
conversation with them is one of the ways to judge that. But that's a
whole different topic, and probably not one for this list.

However to get an idea what their coding abilities are like, you can
do worse than get them to write a couple of functions for you to do
specific things. On paper. With a pencil. :-D

A 'what's wrong with this syntax'? test is good, too. So is a 'what is
this function meant to do?' - showing them a listing.

You can also get a rough idea of their architectural/code organisation
skills in a similar way, by detailing a simple system and getting them
to throw together a rough diagram of how the classes in it might
interact (UML or whatever, your choice).

You'll still need to ask coding-related questions to get some idea of
the breadth of their experience. Here it's good to ask specific
questions, not general 'so, what about this whole MVC thing, then?'.
Be more specific - and ask more about _why_ than _how_. If they don't
understand the _why_, the how is often just a regurgitation of
rote-learned stuff or what they might have read on Wikipedia today.

At the end of the day, though, it very much depends what role you're
trying to fill, how big your team is, what this guy's responsibilities
are going to be, whether he'll have to talk to clients, etc. etc.

HTH,
   Ian
___
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


  


--

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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Sidney de Koning
The list of questions i always ask interviewees are the following, and  
this gives me a pretty good example of what they are like and what  
their skillset is.


Test is always accompanied with a practical test we make up on the spot.
The XML in Q16 is made up, you can create your own for this.

Feel free to use this,

Cheers,

Sid

1  - write an event listener (normal and weak referenced) and handling  
function for a Sprite

 named 'beginQuestions' and listen for a  mouse click.
2  - what does weak referenced mean in regards to event listeners?
3  - what is the difference between an object an an array?
4  - how doe you get cue point from vidio in AS3? And in AS2?
5  - briefly explain the various datatypes for numbers.
6  - how do you load an external file?
7  - draw a 20px by 20px Rectangle using the graphics API.
8  - which of the following cannot contain other display objects?
 Sprite, Shape, MovieClip, DisplayObjectContainer.
9  - which properties can you use to change the size of DisplayObjects?
10 - ENTER_FRAME is independant of an SWF's frame rate? True or false?
11 - XP is a type of which programming methology?
12 - why would you use a Singleton?
13 - what is the Document Class?
14 - create a new TextField instance, then add text it, then add some  
more text.

15 - what is the difference between public, private and protected.
16 - look at the piece of XML (see other sheet). How do i:
 - Get all of the page nodes as an XMLList.
 - Get node in showcase where the attribute id=1.   
17 - listen for when the 'enter key' is pressed and
 trace out all questions are now done when the event happens.


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com






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


RE: [Flashcoders] Re: AS3 - Eclipse FDT - Problem with Embed Fonts

2008-07-30 Thread Romuald Quantin
Are you making mxml file with FDT?

mx.core.FontAsset is part of the Flex Framework if I'm not wrong. You can't
use it for Flash, like you can't use Tile, HBox or other part of the Flex
framework.

For flash with FDT

- you can load a SWF containing the fonts

- add a SWC containing your fonts in the compiler
In the compiler arguments add:
-include-libraries C:\Fonts.swc

- use the metadata tag Embed (not work in flash IDE, only with Flex SDK):
http://www.scottgmorgan.com/blog/index.php/2007/06/18/runtime-font-embedding
-in-as3-there-is-no-need-to-embed-the-entire-fontset-anymore/

A useful method to check what's embedded

public function showEmbeddedFonts():void {
trace(Embedded Fonts);
var fonts:Array = Font.enumerateFonts();
fonts.sortOn(fontName, Array.CASEINSENSITIVE);
for (var i:int = 0; i  fonts.length; i++) {
trace(fonts[i].fontName + ,  + fonts[i].fontStyle);
}
}

Hope it helps.

Romu
www.soundstep.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of david
costard
Sent: 30 July 2008 10:41
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Re: AS3 - Eclipse FDT - Problem with Embed Fonts

Hi,

I try whith a font from my file system and my problem is resolved but a new
one is present.
Now the error message is

Main_impact.as(10): col: 42 Error: La définition de la classe de base
FontAsset est introuvable.
public class Main_impact extends mx.core.FontAsset

Any ideas ?

Thanks.



2008/7/29 david costard [EMAIL PROTECTED]

 Hi List,

 I'm using Eclipse and FDT for an AS3 application.
 In this application I need to embed fonts.

 I search the correct technique in Joey Lott and in tutorial on the web.

 So in my class just before the constructor I write that :
 [Embed(source=assets/Arial Unicode MS.TTF, fontFamily=EaganFont,
 mimeType=application/x-font-truetype)]
 private var EAGAN : String;

 And when I try to generate the swf eclipse generate this error :
 --
 Loading configuration file
 D:\work\nurun\environement\eclipse\flex_sdk_3\frameworks\flex-config.xml
 Recompile: D:\work\nurun\environement\workspaces\test\fonts\src\Main.as
 Reason: The source file wasn't fully compiled.
 Files changed: 0 Files affected: 1
 D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): Error:
 exception during transcoding: Unexpected exception encountered while
reading
 font file '/D:/work/environement/workspaces/test/fonts/src/assets/Arial
 Unicode MS.TTF'

 [Embed(source=assets/Arial Unicode MS.TTF,
 fontFamily=EaganFont, mimeType=application/x-font-truetype)]

 D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): col: 4:
 Error: unable to build font 'EaganFont'

 [Embed(source=assets/Arial Unicode MS.TTF,
 fontFamily=EaganFont, mimeType=application/x-font-truetype)]
^

 D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): col: 4:
 Error: Unable to transcode assets/Arial Unicode MS.TTF.


^

 (fcsh)
 --

 I've got the same errors if my var is a Class
 private var EAGAN : Class;


 Anyone had the solution of my problem ?


 Thank you.

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


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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread allandt bik-elliott (thefieldcomic.com)
hmmm - i didn't do bad (without looking stuff up) but i must say that i've
not been asked to do a single as3 project since i started doing agency work
- the only time i've done an as3 project was for an interactive cd so i
could set my own target for the projector file. Most of the work i do in
digital agencies has been targeted at flash player 8 or (even worse) 6 so
AS2 has been more important than AS3.

Under what sort of circumstances do you find that AS3 is used?

a

On Wed, Jul 30, 2008 at 12:03 PM, Sidney de Koning
[EMAIL PROTECTED]wrote:

 The list of questions i always ask interviewees are the following, and this
 gives me a pretty good example of what they are like and what their skillset
 is.

 Test is always accompanied with a practical test we make up on the spot.
 The XML in Q16 is made up, you can create your own for this.

 Feel free to use this,

 Cheers,

 Sid

 1  - write an event listener (normal and weak referenced) and handling
 function for a Sprite
 named 'beginQuestions' and listen for a  mouse click.
 2  - what does weak referenced mean in regards to event listeners?
 3  - what is the difference between an object an an array?
 4  - how doe you get cue point from vidio in AS3? And in AS2?
 5  - briefly explain the various datatypes for numbers.
 6  - how do you load an external file?
 7  - draw a 20px by 20px Rectangle using the graphics API.
 8  - which of the following cannot contain other display objects?
 Sprite, Shape, MovieClip, DisplayObjectContainer.
 9  - which properties can you use to change the size of DisplayObjects?
 10 - ENTER_FRAME is independant of an SWF's frame rate? True or false?
 11 - XP is a type of which programming methology?
 12 - why would you use a Singleton?
 13 - what is the Document Class?
 14 - create a new TextField instance, then add text it, then add some more
 text.
 15 - what is the difference between public, private and protected.
 16 - look at the piece of XML (see other sheet). How do i:
 - Get all of the page nodes as an XMLList.
 - Get node in showcase where the attribute id=1.
 17 - listen for when the 'enter key' is pressed and
 trace out all questions are now done when the event happens.


 Sidney de Koning
 Flash / AIR Developer @ www.funky-monkey.nl
 Technical Writer @ www.insideria.com







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

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


RE: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Romuald Quantin
Why not asking him sources and asks questions about his own sources?

Why did you do it that way?
Why did you do use that?
Etc...

You'll see both what is capable of by looking closely at his sources and see
his skills by asking right questions about it. I can't think you won't find
out that someone is faking sources when you'll ask precise questions about
it. Anyway, if the guy does, he's going to lose the job after 2 days right?
:)

Romu
www.soundstep.com




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney de
Koning
Sent: 30 July 2008 12:04
To: Flash Coders List
Subject: Re: [Flashcoders] OT: Questions to ask an interviewee

The list of questions i always ask interviewees are the following, and  
this gives me a pretty good example of what they are like and what  
their skillset is.

Test is always accompanied with a practical test we make up on the spot.
The XML in Q16 is made up, you can create your own for this.

Feel free to use this,

Cheers,

Sid

1  - write an event listener (normal and weak referenced) and handling  
function for a Sprite
 named 'beginQuestions' and listen for a  mouse click.
2  - what does weak referenced mean in regards to event listeners?
3  - what is the difference between an object an an array?
4  - how doe you get cue point from vidio in AS3? And in AS2?
5  - briefly explain the various datatypes for numbers.
6  - how do you load an external file?
7  - draw a 20px by 20px Rectangle using the graphics API.
8  - which of the following cannot contain other display objects?
 Sprite, Shape, MovieClip, DisplayObjectContainer.
9  - which properties can you use to change the size of DisplayObjects?
10 - ENTER_FRAME is independant of an SWF's frame rate? True or false?
11 - XP is a type of which programming methology?
12 - why would you use a Singleton?
13 - what is the Document Class?
14 - create a new TextField instance, then add text it, then add some  
more text.
15 - what is the difference between public, private and protected.
16 - look at the piece of XML (see other sheet). How do i:
 - Get all of the page nodes as an XMLList.
 - Get node in showcase where the attribute id=1.   
17 - listen for when the 'enter key' is pressed and
 trace out all questions are now done when the event happens.


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com






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

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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Sidney de Koning

Very true :)
A little test i always do is ask people what they think of themself on  
a scale of 1 to 10.
Most good coders with +5 jears experience will give them selfs a 6 or  
a 7 and are very modest.
Coders that think they are good (-3 years experience) will rate  
themself higher than they really are. This is practice proven.


Those people leave during or after their trial period :)

Sid

On Jul 30, 2008, at 1:27 PM, Romuald Quantin wrote:


Why not asking him sources and asks questions about his own sources?

Why did you do it that way?
Why did you do use that?
Etc...

You'll see both what is capable of by looking closely at his sources  
and see
his skills by asking right questions about it. I can't think you  
won't find
out that someone is faking sources when you'll ask precise questions  
about
it. Anyway, if the guy does, he's going to lose the job after 2 days  
right?

:)

Romu
www.soundstep.com




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

Koning
Sent: 30 July 2008 12:04
To: Flash Coders List
Subject: Re: [Flashcoders] OT: Questions to ask an interviewee

The list of questions i always ask interviewees are the following, and
this gives me a pretty good example of what they are like and what
their skillset is.

Test is always accompanied with a practical test we make up on the  
spot.

The XML in Q16 is made up, you can create your own for this.

Feel free to use this,

Cheers,

Sid

1  - write an event listener (normal and weak referenced) and handling
function for a Sprite
 named 'beginQuestions' and listen for a  mouse click.
2  - what does weak referenced mean in regards to event listeners?
3  - what is the difference between an object an an array?
4  - how doe you get cue point from vidio in AS3? And in AS2?
5  - briefly explain the various datatypes for numbers.
6  - how do you load an external file?
7  - draw a 20px by 20px Rectangle using the graphics API.
8  - which of the following cannot contain other display objects?
 Sprite, Shape, MovieClip, DisplayObjectContainer.
9  - which properties can you use to change the size of  
DisplayObjects?

10 - ENTER_FRAME is independant of an SWF's frame rate? True or false?
11 - XP is a type of which programming methology?
12 - why would you use a Singleton?
13 - what is the Document Class?
14 - create a new TextField instance, then add text it, then add some
more text.
15 - what is the difference between public, private and protected.
16 - look at the piece of XML (see other sheet). How do i:
 - Get all of the page nodes as an XMLList.
 - Get node in showcase where the attribute id=1.   
17 - listen for when the 'enter key' is pressed and
 trace out all questions are now done when the event happens.


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com






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

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



Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com






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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Sidney de Koning

Hi allandt,

As agencies we also have a advising role to play towards the customer,  
so we only do AS3 projects, hardly any AS2 (maybee some banners in  
FP8). So we try to advice/push the client towards AS3 projects, which,  
most of the times, is better for all parties invloved.


Sid


On Jul 30, 2008, at 1:24 PM, allandt bik-elliott (thefieldcomic.com)  
wrote:


hmmm - i didn't do bad (without looking stuff up) but i must say  
that i've
not been asked to do a single as3 project since i started doing  
agency work
- the only time i've done an as3 project was for an interactive cd  
so i
could set my own target for the projector file. Most of the work i  
do in
digital agencies has been targeted at flash player 8 or (even worse)  
6 so

AS2 has been more important than AS3.

Under what sort of circumstances do you find that AS3 is used?

a

On Wed, Jul 30, 2008 at 12:03 PM, Sidney de Koning
[EMAIL PROTECTED]wrote:

The list of questions i always ask interviewees are the following,  
and this
gives me a pretty good example of what they are like and what their  
skillset

is.

Test is always accompanied with a practical test we make up on the  
spot.

The XML in Q16 is made up, you can create your own for this.

Feel free to use this,

Cheers,

Sid

1  - write an event listener (normal and weak referenced) and  
handling

function for a Sprite
   named 'beginQuestions' and listen for a  mouse click.
2  - what does weak referenced mean in regards to event listeners?
3  - what is the difference between an object an an array?
4  - how doe you get cue point from vidio in AS3? And in AS2?
5  - briefly explain the various datatypes for numbers.
6  - how do you load an external file?
7  - draw a 20px by 20px Rectangle using the graphics API.
8  - which of the following cannot contain other display objects?
   Sprite, Shape, MovieClip, DisplayObjectContainer.
9  - which properties can you use to change the size of  
DisplayObjects?
10 - ENTER_FRAME is independant of an SWF's frame rate? True or  
false?

11 - XP is a type of which programming methology?
12 - why would you use a Singleton?
13 - what is the Document Class?
14 - create a new TextField instance, then add text it, then add  
some more

text.
15 - what is the difference between public, private and protected.
16 - look at the piece of XML (see other sheet). How do i:
   - Get all of the page nodes as an XMLList.
   - Get node in showcase where the attribute id=1.
17 - listen for when the 'enter key' is pressed and
   trace out all questions are now done when the event happens.


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com







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


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



Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com






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


RE: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Romuald Quantin
Well it depends who you're working for; my company is not asking me any as2
code.

Romu
www.soundstep.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of allandt
bik-elliott (thefieldcomic.com)
Sent: 30 July 2008 12:24
To: Flash Coders List
Subject: Re: [Flashcoders] OT: Questions to ask an interviewee

hmmm - i didn't do bad (without looking stuff up) but i must say that i've
not been asked to do a single as3 project since i started doing agency work
- the only time i've done an as3 project was for an interactive cd so i
could set my own target for the projector file. Most of the work i do in
digital agencies has been targeted at flash player 8 or (even worse) 6 so
AS2 has been more important than AS3.

Under what sort of circumstances do you find that AS3 is used?

a

On Wed, Jul 30, 2008 at 12:03 PM, Sidney de Koning
[EMAIL PROTECTED]wrote:

 The list of questions i always ask interviewees are the following, and
this
 gives me a pretty good example of what they are like and what their
skillset
 is.

 Test is always accompanied with a practical test we make up on the spot.
 The XML in Q16 is made up, you can create your own for this.

 Feel free to use this,

 Cheers,

 Sid

 1  - write an event listener (normal and weak referenced) and handling
 function for a Sprite
 named 'beginQuestions' and listen for a  mouse click.
 2  - what does weak referenced mean in regards to event listeners?
 3  - what is the difference between an object an an array?
 4  - how doe you get cue point from vidio in AS3? And in AS2?
 5  - briefly explain the various datatypes for numbers.
 6  - how do you load an external file?
 7  - draw a 20px by 20px Rectangle using the graphics API.
 8  - which of the following cannot contain other display objects?
 Sprite, Shape, MovieClip, DisplayObjectContainer.
 9  - which properties can you use to change the size of DisplayObjects?
 10 - ENTER_FRAME is independant of an SWF's frame rate? True or false?
 11 - XP is a type of which programming methology?
 12 - why would you use a Singleton?
 13 - what is the Document Class?
 14 - create a new TextField instance, then add text it, then add some more
 text.
 15 - what is the difference between public, private and protected.
 16 - look at the piece of XML (see other sheet). How do i:
 - Get all of the page nodes as an XMLList.
 - Get node in showcase where the attribute id=1.
 17 - listen for when the 'enter key' is pressed and
 trace out all questions are now done when the event happens.


 Sidney de Koning
 Flash / AIR Developer @ www.funky-monkey.nl
 Technical Writer @ www.insideria.com







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

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

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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread allandt bik-elliott (thefieldcomic.com)
i'm starting a new thread because i think that it might derail this one



On Wed, Jul 30, 2008 at 12:35 PM, Sidney de Koning
[EMAIL PROTECTED]wrote:

 Hi allandt,

 As agencies we also have a advising role to play towards the customer, so
 we only do AS3 projects, hardly any AS2 (maybee some banners in FP8). So we
 try to advice/push the client towards AS3 projects, which, most of the
 times, is better for all parties invloved.

 Sid



 On Jul 30, 2008, at 1:24 PM, allandt bik-elliott (thefieldcomic.com)
 wrote:

  hmmm - i didn't do bad (without looking stuff up) but i must say that i've
 not been asked to do a single as3 project since i started doing agency
 work
 - the only time i've done an as3 project was for an interactive cd so i
 could set my own target for the projector file. Most of the work i do in
 digital agencies has been targeted at flash player 8 or (even worse) 6 so
 AS2 has been more important than AS3.

 Under what sort of circumstances do you find that AS3 is used?

 a

 On Wed, Jul 30, 2008 at 12:03 PM, Sidney de Koning
 [EMAIL PROTECTED]wrote:

  The list of questions i always ask interviewees are the following, and
 this
 gives me a pretty good example of what they are like and what their
 skillset
 is.

 Test is always accompanied with a practical test we make up on the spot.
 The XML in Q16 is made up, you can create your own for this.

 Feel free to use this,

 Cheers,

 Sid

 1  - write an event listener (normal and weak referenced) and handling
 function for a Sprite
   named 'beginQuestions' and listen for a  mouse click.
 2  - what does weak referenced mean in regards to event listeners?
 3  - what is the difference between an object an an array?
 4  - how doe you get cue point from vidio in AS3? And in AS2?
 5  - briefly explain the various datatypes for numbers.
 6  - how do you load an external file?
 7  - draw a 20px by 20px Rectangle using the graphics API.
 8  - which of the following cannot contain other display objects?
   Sprite, Shape, MovieClip, DisplayObjectContainer.
 9  - which properties can you use to change the size of DisplayObjects?
 10 - ENTER_FRAME is independant of an SWF's frame rate? True or false?
 11 - XP is a type of which programming methology?
 12 - why would you use a Singleton?
 13 - what is the Document Class?
 14 - create a new TextField instance, then add text it, then add some
 more
 text.
 15 - what is the difference between public, private and protected.
 16 - look at the piece of XML (see other sheet). How do i:
   - Get all of the page nodes as an XMLList.
   - Get node in showcase where the attribute id=1.
 17 - listen for when the 'enter key' is pressed and
   trace out all questions are now done when the event happens.


 Sidney de Koning
 Flash / AIR Developer @ www.funky-monkey.nl
 Technical Writer @ www.insideria.com







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

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


 Sidney de Koning
 Flash / AIR Developer @ www.funky-monkey.nl
 Technical Writer @ www.insideria.com






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

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


[Flashcoders] When to use AS3?

2008-07-30 Thread allandt bik-elliott (thefieldcomic.com)
@Sidney: That's really interesting because at all the places I've worked
(which isn't many - I've always done coding as a sideline and have only
recently gone full-time), they seem to be utterly entrenched in FP8 (i guess
using the old 'work to the last player' thinking). I personally would love
to move the (non-banner) work to AS3 as it's a far more elegant way of
working. I find that the clients tend to dictate it based on whatever plugin
their IT department have set them up with.

a


NOTE: This is taken from the interview thread and I thought it might be
worth having it's own one




On Wed, Jul 30, 2008 at 12:35 PM, Sidney de Koning
[EMAIL PROTECTED]wrote:

 Hi allandt,

 As agencies we also have a advising role to play towards the customer, so
 we only do AS3 projects, hardly any AS2 (maybee some banners in FP8). So we
 try to advice/push the client towards AS3 projects, which, most of the
 times, is better for all parties invloved.

 Sid


 On Jul 30, 2008, at 1:24 PM, allandt bik-elliott (thefieldcomic.com)
 wrote:

  hmmm - i didn't do bad (without looking stuff up) but i must say that i've
 not been asked to do a single as3 project since i started doing agency
 work
 - the only time i've done an as3 project was for an interactive cd so i
 could set my own target for the projector file. Most of the work i do in
 digital agencies has been targeted at flash player 8 or (even worse) 6 so
 AS2 has been more important than AS3.

 Under what sort of circumstances do you find that AS3 is used?

 a

 On Wed, Jul 30, 2008 at 12:03 PM, Sidney de Koning
 [EMAIL PROTECTED]wrote:

  The list of questions i always ask interviewees are the following, and
 this
 gives me a pretty good example of what they are like and what their
 skillset
 is.

 Test is always accompanied with a practical test we make up on the spot.
 The XML in Q16 is made up, you can create your own for this.

 Feel free to use this,

 Cheers,

 Sid

 1  - write an event listener (normal and weak referenced) and handling
 function for a Sprite
   named 'beginQuestions' and listen for a  mouse click.
 2  - what does weak referenced mean in regards to event listeners?
 3  - what is the difference between an object an an array?
 4  - how doe you get cue point from vidio in AS3? And in AS2?
 5  - briefly explain the various datatypes for numbers.
 6  - how do you load an external file?
 7  - draw a 20px by 20px Rectangle using the graphics API.
 8  - which of the following cannot contain other display objects?
   Sprite, Shape, MovieClip, DisplayObjectContainer.
 9  - which properties can you use to change the size of DisplayObjects?
 10 - ENTER_FRAME is independant of an SWF's frame rate? True or false?
 11 - XP is a type of which programming methology?
 12 - why would you use a Singleton?
 13 - what is the Document Class?
 14 - create a new TextField instance, then add text it, then add some
 more
 text.
 15 - what is the difference between public, private and protected.
 16 - look at the piece of XML (see other sheet). How do i:
   - Get all of the page nodes as an XMLList.
   - Get node in showcase where the attribute id=1.
 17 - listen for when the 'enter key' is pressed and
   trace out all questions are now done when the event happens.


 Sidney de Koning
 Flash / AIR Developer @ www.funky-monkey.nl
 Technical Writer @ www.insideria.com







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

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


 Sidney de Koning
 Flash / AIR Developer @ www.funky-monkey.nl
 Technical Writer @ www.insideria.com






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

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


RE: [Flashcoders] When to use AS3?

2008-07-30 Thread Romuald Quantin
Good idea of the new thread.

AS3 is definitely better in term of performance and stability, the
Papervision3D guys can probably talk about, see the differences between the
as2 and as3 version.

AS3 is also a lot cleaner than AS2, easier to maintain IMHO.

Another good way to see when to use AS3 would be reading this:
http://gskinner.com/talks/as3workshop/

Hope it helps.

Romu
www.soundstep.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of allandt
bik-elliott (thefieldcomic.com)
Sent: 30 July 2008 12:49
To: Flash Coders List
Subject: [Flashcoders] When to use AS3?

@Sidney: That's really interesting because at all the places I've worked
(which isn't many - I've always done coding as a sideline and have only
recently gone full-time), they seem to be utterly entrenched in FP8 (i guess
using the old 'work to the last player' thinking). I personally would love
to move the (non-banner) work to AS3 as it's a far more elegant way of
working. I find that the clients tend to dictate it based on whatever plugin
their IT department have set them up with.

a


NOTE: This is taken from the interview thread and I thought it might be
worth having it's own one




On Wed, Jul 30, 2008 at 12:35 PM, Sidney de Koning
[EMAIL PROTECTED]wrote:

 Hi allandt,

 As agencies we also have a advising role to play towards the customer, so
 we only do AS3 projects, hardly any AS2 (maybee some banners in FP8). So
we
 try to advice/push the client towards AS3 projects, which, most of the
 times, is better for all parties invloved.

 Sid


 On Jul 30, 2008, at 1:24 PM, allandt bik-elliott (thefieldcomic.com)
 wrote:

  hmmm - i didn't do bad (without looking stuff up) but i must say that
i've
 not been asked to do a single as3 project since i started doing agency
 work
 - the only time i've done an as3 project was for an interactive cd so i
 could set my own target for the projector file. Most of the work i do in
 digital agencies has been targeted at flash player 8 or (even worse) 6 so
 AS2 has been more important than AS3.

 Under what sort of circumstances do you find that AS3 is used?

 a

 On Wed, Jul 30, 2008 at 12:03 PM, Sidney de Koning
 [EMAIL PROTECTED]wrote:

  The list of questions i always ask interviewees are the following, and
 this
 gives me a pretty good example of what they are like and what their
 skillset
 is.

 Test is always accompanied with a practical test we make up on the spot.
 The XML in Q16 is made up, you can create your own for this.

 Feel free to use this,

 Cheers,

 Sid

 1  - write an event listener (normal and weak referenced) and handling
 function for a Sprite
   named 'beginQuestions' and listen for a  mouse click.
 2  - what does weak referenced mean in regards to event listeners?
 3  - what is the difference between an object an an array?
 4  - how doe you get cue point from vidio in AS3? And in AS2?
 5  - briefly explain the various datatypes for numbers.
 6  - how do you load an external file?
 7  - draw a 20px by 20px Rectangle using the graphics API.
 8  - which of the following cannot contain other display objects?
   Sprite, Shape, MovieClip, DisplayObjectContainer.
 9  - which properties can you use to change the size of DisplayObjects?
 10 - ENTER_FRAME is independant of an SWF's frame rate? True or false?
 11 - XP is a type of which programming methology?
 12 - why would you use a Singleton?
 13 - what is the Document Class?
 14 - create a new TextField instance, then add text it, then add some
 more
 text.
 15 - what is the difference between public, private and protected.
 16 - look at the piece of XML (see other sheet). How do i:
   - Get all of the page nodes as an XMLList.
   - Get node in showcase where the attribute id=1.
 17 - listen for when the 'enter key' is pressed and
   trace out all questions are now done when the event happens.


 Sidney de Koning
 Flash / AIR Developer @ www.funky-monkey.nl
 Technical Writer @ www.insideria.com







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

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


 Sidney de Koning
 Flash / AIR Developer @ www.funky-monkey.nl
 Technical Writer @ www.insideria.com






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

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

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


Re: [Flashcoders] When to use AS3?

2008-07-30 Thread Sidney de Koning

Nice one :)

As i said earlier; we also have advising roles to play. If a specific  
project needs specific technology, dont bend or sway for less. Try to  
convince/explain the client why. Especially if the concept comes from  
the developing party, they thought about it, they'll also make it.


I know sometimes clients can be difficult, what i have noticed, as  
long as you explain why and show them figures, they'll go for it.


Or tell them the competitors ARE using AS3, two seconds ... they'll  
reconsider ;)


Sid

On Jul 30, 2008, at 1:48 PM, allandt bik-elliott (thefieldcomic.com)  
wrote:


@Sidney: That's really interesting because at all the places I've  
worked
(which isn't many - I've always done coding as a sideline and have  
only
recently gone full-time), they seem to be utterly entrenched in FP8  
(i guess
using the old 'work to the last player' thinking). I personally  
would love

to move the (non-banner) work to AS3 as it's a far more elegant way of
working. I find that the clients tend to dictate it based on  
whatever plugin

their IT department have set them up with.

a


NOTE: This is taken from the interview thread and I thought it might  
be

worth having it's own one




On Wed, Jul 30, 2008 at 12:35 PM, Sidney de Koning
[EMAIL PROTECTED]wrote:


Hi allandt,

As agencies we also have a advising role to play towards the  
customer, so
we only do AS3 projects, hardly any AS2 (maybee some banners in  
FP8). So we
try to advice/push the client towards AS3 projects, which, most of  
the

times, is better for all parties invloved.

Sid


On Jul 30, 2008, at 1:24 PM, allandt bik-elliott (thefieldcomic.com)
wrote:

hmmm - i didn't do bad (without looking stuff up) but i must say  
that i've
not been asked to do a single as3 project since i started doing  
agency

work
- the only time i've done an as3 project was for an interactive cd  
so i
could set my own target for the projector file. Most of the work i  
do in
digital agencies has been targeted at flash player 8 or (even  
worse) 6 so

AS2 has been more important than AS3.

Under what sort of circumstances do you find that AS3 is used?

a

On Wed, Jul 30, 2008 at 12:03 PM, Sidney de Koning
[EMAIL PROTECTED]wrote:

The list of questions i always ask interviewees are the following,  
and

this
gives me a pretty good example of what they are like and what their
skillset
is.

Test is always accompanied with a practical test we make up on  
the spot.

The XML in Q16 is made up, you can create your own for this.

Feel free to use this,

Cheers,

Sid

1  - write an event listener (normal and weak referenced) and  
handling

function for a Sprite
 named 'beginQuestions' and listen for a  mouse click.
2  - what does weak referenced mean in regards to event listeners?
3  - what is the difference between an object an an array?
4  - how doe you get cue point from vidio in AS3? And in AS2?
5  - briefly explain the various datatypes for numbers.
6  - how do you load an external file?
7  - draw a 20px by 20px Rectangle using the graphics API.
8  - which of the following cannot contain other display objects?
 Sprite, Shape, MovieClip, DisplayObjectContainer.
9  - which properties can you use to change the size of  
DisplayObjects?
10 - ENTER_FRAME is independant of an SWF's frame rate? True or  
false?

11 - XP is a type of which programming methology?
12 - why would you use a Singleton?
13 - what is the Document Class?
14 - create a new TextField instance, then add text it, then add  
some

more
text.
15 - what is the difference between public, private and protected.
16 - look at the piece of XML (see other sheet). How do i:
 - Get all of the page nodes as an XMLList.
 - Get node in showcase where the attribute id=1.
17 - listen for when the 'enter key' is pressed and
 trace out all questions are now done when the event happens.


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com







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

___

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



Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com






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


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



Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com






___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] When to use AS3?

2008-07-30 Thread Romuald Quantin
Yeah true, or what's working as well is saying that AS2 code is harder to
maintain and will cost you more money in the future.

Romu
www.soundstep.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney de
Koning
Sent: 30 July 2008 13:05
To: Flash Coders List
Subject: Re: [Flashcoders] When to use AS3?

Nice one :)

As i said earlier; we also have advising roles to play. If a specific  
project needs specific technology, dont bend or sway for less. Try to  
convince/explain the client why. Especially if the concept comes from  
the developing party, they thought about it, they'll also make it.

I know sometimes clients can be difficult, what i have noticed, as  
long as you explain why and show them figures, they'll go for it.

Or tell them the competitors ARE using AS3, two seconds ... they'll  
reconsider ;)

Sid

On Jul 30, 2008, at 1:48 PM, allandt bik-elliott (thefieldcomic.com)  
wrote:

 @Sidney: That's really interesting because at all the places I've  
 worked
 (which isn't many - I've always done coding as a sideline and have  
 only
 recently gone full-time), they seem to be utterly entrenched in FP8  
 (i guess
 using the old 'work to the last player' thinking). I personally  
 would love
 to move the (non-banner) work to AS3 as it's a far more elegant way of
 working. I find that the clients tend to dictate it based on  
 whatever plugin
 their IT department have set them up with.

 a


 NOTE: This is taken from the interview thread and I thought it might  
 be
 worth having it's own one




 On Wed, Jul 30, 2008 at 12:35 PM, Sidney de Koning
 [EMAIL PROTECTED]wrote:

 Hi allandt,

 As agencies we also have a advising role to play towards the  
 customer, so
 we only do AS3 projects, hardly any AS2 (maybee some banners in  
 FP8). So we
 try to advice/push the client towards AS3 projects, which, most of  
 the
 times, is better for all parties invloved.

 Sid


 On Jul 30, 2008, at 1:24 PM, allandt bik-elliott (thefieldcomic.com)
 wrote:

 hmmm - i didn't do bad (without looking stuff up) but i must say  
 that i've
 not been asked to do a single as3 project since i started doing  
 agency
 work
 - the only time i've done an as3 project was for an interactive cd  
 so i
 could set my own target for the projector file. Most of the work i  
 do in
 digital agencies has been targeted at flash player 8 or (even  
 worse) 6 so
 AS2 has been more important than AS3.

 Under what sort of circumstances do you find that AS3 is used?

 a

 On Wed, Jul 30, 2008 at 12:03 PM, Sidney de Koning
 [EMAIL PROTECTED]wrote:

 The list of questions i always ask interviewees are the following,  
 and
 this
 gives me a pretty good example of what they are like and what their
 skillset
 is.

 Test is always accompanied with a practical test we make up on  
 the spot.
 The XML in Q16 is made up, you can create your own for this.

 Feel free to use this,

 Cheers,

 Sid

 1  - write an event listener (normal and weak referenced) and  
 handling
 function for a Sprite
  named 'beginQuestions' and listen for a  mouse click.
 2  - what does weak referenced mean in regards to event listeners?
 3  - what is the difference between an object an an array?
 4  - how doe you get cue point from vidio in AS3? And in AS2?
 5  - briefly explain the various datatypes for numbers.
 6  - how do you load an external file?
 7  - draw a 20px by 20px Rectangle using the graphics API.
 8  - which of the following cannot contain other display objects?
  Sprite, Shape, MovieClip, DisplayObjectContainer.
 9  - which properties can you use to change the size of  
 DisplayObjects?
 10 - ENTER_FRAME is independant of an SWF's frame rate? True or  
 false?
 11 - XP is a type of which programming methology?
 12 - why would you use a Singleton?
 13 - what is the Document Class?
 14 - create a new TextField instance, then add text it, then add  
 some
 more
 text.
 15 - what is the difference between public, private and protected.
 16 - look at the piece of XML (see other sheet). How do i:
  - Get all of the page nodes as an XMLList.
  - Get node in showcase where the attribute id=1.
 17 - listen for when the 'enter key' is pressed and
  trace out all questions are now done when the event happens.


 Sidney de Koning
 Flash / AIR Developer @ www.funky-monkey.nl
 Technical Writer @ www.insideria.com







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

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


 Sidney de Koning
 Flash / AIR Developer @ www.funky-monkey.nl
 Technical Writer @ www.insideria.com






 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 

Re: [Flashcoders] Re: AS3 - Eclipse FDT - Problem with Embed Fonts

2008-07-30 Thread david costard
Thank you Romuald for your answer.
I will try with an mxml file if it's possible.

I know the solution whith the swf and swc and if it's not possible whith a
.ttf file i will use one of those solution.


David



2008/7/30 Romuald Quantin [EMAIL PROTECTED]

 Are you making mxml file with FDT?

 mx.core.FontAsset is part of the Flex Framework if I'm not wrong. You can't
 use it for Flash, like you can't use Tile, HBox or other part of the Flex
 framework.

 For flash with FDT

 - you can load a SWF containing the fonts

 - add a SWC containing your fonts in the compiler
 In the compiler arguments add:
 -include-libraries C:\Fonts.swc

 - use the metadata tag Embed (not work in flash IDE, only with Flex SDK):

 http://www.scottgmorgan.com/blog/index.php/2007/06/18/runtime-font-embedding
 -in-as3-there-is-no-need-to-embed-the-entire-fontset-anymore/http://www.scottgmorgan.com/blog/index.php/2007/06/18/runtime-font-embedding-in-as3-there-is-no-need-to-embed-the-entire-fontset-anymore/

 A useful method to check what's embedded

 public function showEmbeddedFonts():void {
trace(Embedded Fonts);
var fonts:Array = Font.enumerateFonts();
fonts.sortOn(fontName, Array.CASEINSENSITIVE);
for (var i:int = 0; i  fonts.length; i++) {
trace(fonts[i].fontName + ,  + fonts[i].fontStyle);
}
 }

 Hope it helps.

 Romu
 www.soundstep.com


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of david
 costard
 Sent: 30 July 2008 10:41
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Re: AS3 - Eclipse FDT - Problem with Embed Fonts

 Hi,

 I try whith a font from my file system and my problem is resolved but a new
 one is present.
 Now the error message is

 Main_impact.as(10): col: 42 Error: La définition de la classe de base
 FontAsset est introuvable.
 public class Main_impact extends mx.core.FontAsset

 Any ideas ?

 Thanks.



 2008/7/29 david costard [EMAIL PROTECTED]

  Hi List,
 
  I'm using Eclipse and FDT for an AS3 application.
  In this application I need to embed fonts.
 
  I search the correct technique in Joey Lott and in tutorial on the web.
 
  So in my class just before the constructor I write that :
  [Embed(source=assets/Arial Unicode MS.TTF, fontFamily=EaganFont,
  mimeType=application/x-font-truetype)]
  private var EAGAN : String;
 
  And when I try to generate the swf eclipse generate this error :
  --
  Loading configuration file
  D:\work\nurun\environement\eclipse\flex_sdk_3\frameworks\flex-config.xml
  Recompile: D:\work\nurun\environement\workspaces\test\fonts\src\Main.as
  Reason: The source file wasn't fully compiled.
  Files changed: 0 Files affected: 1
  D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): Error:
  exception during transcoding: Unexpected exception encountered while
 reading
  font file '/D:/work/environement/workspaces/test/fonts/src/assets/Arial
  Unicode MS.TTF'
 
  [Embed(source=assets/Arial Unicode MS.TTF,
  fontFamily=EaganFont, mimeType=application/x-font-truetype)]
 
  D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): col: 4:
  Error: unable to build font 'EaganFont'
 
  [Embed(source=assets/Arial Unicode MS.TTF,
  fontFamily=EaganFont, mimeType=application/x-font-truetype)]
 ^
 
  D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): col: 4:
  Error: Unable to transcode assets/Arial Unicode MS.TTF.
 
 
 ^
 
  (fcsh)
  --
 
  I've got the same errors if my var is a Class
  private var EAGAN : Class;
 
 
  Anyone had the solution of my problem ?
 
 
  Thank you.
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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

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


[Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread S0 F1
You should ask to see source/code before an interview - then you'll know
beforehand whether to proceed or not. Also, ask where they see Adobe going
and whether it'll be Apple or Google that eventually buys Adobe out? I say
Apple, but you never know with Google.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] When to use AS3?

2008-07-30 Thread Matt S.
This debate really shows the odd place Flash is in right now. A few
threads ago someone else was saying they would never even look at a
project that was being done in AS2 and indeed any client demanding
such a thing deserved a whoopin'. Others still find themselves working
almost exclusively in AS2, and others like myself find themselves
jumping back and forth between the two on a daily basis which is
probably the worst of all. coding half your day in AS3 and the other
half in AS2 is such a mindf*ck.

.m

On Wed, Jul 30, 2008 at 7:48 AM, allandt bik-elliott
(thefieldcomic.com) [EMAIL PROTECTED] wrote:
 @Sidney: That's really interesting because at all the places I've worked
 (which isn't many - I've always done coding as a sideline and have only
 recently gone full-time), they seem to be utterly entrenched in FP8 (i guess
 using the old 'work to the last player' thinking). I personally would love
 to move the (non-banner) work to AS3 as it's a far more elegant way of
 working. I find that the clients tend to dictate it based on whatever plugin
 their IT department have set them up with.

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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Zeh Fernando
I don't know about you guys, but that checklist of skills and the 
possibility of getting that on an interview make me depressed.


Of that list, I'm pretty sure I can do it all, but most of that are not 
something I do all the time every day so I may have the gist of it, but 
not know the syntax down to its every comma. I personally use the 
reference *and* the internet every tie when writing code - for example, 
I never use cue points, and while I know perfectly well how it works, 
I'd have to see how the event works and do a few tests before applying 
it to my code. Nothing huge that takes day of research, but still. 
That's I think just shooting a lot of questions to the interviewee may 
help filter out the crap but also won't help you find the best 
candidates; I honestly think good developers, specially in the Flash 
world, are the ones who can quickly find the answer to a new question 
before having to ask around, be it by using the reference, be using by 
using the internet, or by testing. Remember this technology changes at a 
fast pace. Having a catalog of techniques in your mind may show 
experience, but there'll be gaping holes if the guy's work was focused 
somewhere else or if he's not very formally trained.


Personally, on an interview, I'd ask to see the candidate's previous 
work that's online (doing so next to him). Ask him what kind of 
techniques were in place on that particular website, question him about 
interface elements. Give hints on how you'd do something he has done and 
see his reaction, whether he gets into it and start discussing code 
with a peer or whether he shows he's full of shit. Ask how long that 
particular work took, and whether someone helped him, and what external 
classes or frameworks he used. Ask him what kind of work he liked the 
most, and why. Which was the most difficult one he did recently, and 
why. Ask what kind of work he doesn't like doing. Try to get a hang of 
how he works, and try to understand what motivates and unmotivates him. 
If possible, ask to see some real-life code he's produced, and then see 
what kind of techniques he does apply on real code more than just 
knowing the number of a dozen design patterns.


I don't know if you guys get too many interviewees or something that 
warrants a list like that to make things faster. But for website 
development in Flash, I think there's so much more that's necessary than 
just schoolbook knowledge that focusing too much on the checklist really 
seems counterproductive and sad to me.


Zeh

Sidney de Koning wrote:
The list of questions i always ask interviewees are the following, and 
this gives me a pretty good example of what they are like and what their 
skillset is.


Test is always accompanied with a practical test we make up on the spot.
The XML in Q16 is made up, you can create your own for this.

Feel free to use this,

Cheers,

Sid

1  - write an event listener (normal and weak referenced) and handling 
function for a Sprite

 named 'beginQuestions' and listen for a  mouse click.
2  - what does weak referenced mean in regards to event listeners?
3  - what is the difference between an object an an array?
4  - how doe you get cue point from vidio in AS3? And in AS2?
5  - briefly explain the various datatypes for numbers.
6  - how do you load an external file?
7  - draw a 20px by 20px Rectangle using the graphics API.
8  - which of the following cannot contain other display objects?
 Sprite, Shape, MovieClip, DisplayObjectContainer.
9  - which properties can you use to change the size of DisplayObjects?
10 - ENTER_FRAME is independant of an SWF's frame rate? True or false?
11 - XP is a type of which programming methology?
12 - why would you use a Singleton?
13 - what is the Document Class?
14 - create a new TextField instance, then add text it, then add some 
more text.

15 - what is the difference between public, private and protected.
16 - look at the piece of XML (see other sheet). How do i:
 - Get all of the page nodes as an XMLList.
 - Get node in showcase where the attribute id=1.   
17 - listen for when the 'enter key' is pressed and

 trace out all questions are now done when the event happens.


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com






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


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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Meinte van't Kruis
I don't think asking questions about a specific language(be it as3 or as2)
is actually the key
of finding a good programmer. In my opinion programming is not about knowing
an API but
about thinking of smart solutions which will solve problems in a simple and
elegant way.

The best questions are those which doesn't assume the person has any
knowledge of any language
at all, since programming isn't about a programming language per se. Maybe
find out which language
he has never worked with and then send him home with a small assignment in
that language, this
would be a neat test and will also show how fast someone can pick up new
things and ideas.

On Wed, Jul 30, 2008 at 1:03 PM, Sidney de Koning [EMAIL PROTECTED]wrote:

 The list of questions i always ask interviewees are the following, and this
 gives me a pretty good example of what they are like and what their skillset
 is.

 Test is always accompanied with a practical test we make up on the spot.
 The XML in Q16 is made up, you can create your own for this.

 Feel free to use this,

 Cheers,

 Sid

 1  - write an event listener (normal and weak referenced) and handling
 function for a Sprite
 named 'beginQuestions' and listen for a  mouse click.
 2  - what does weak referenced mean in regards to event listeners?
 3  - what is the difference between an object an an array?
 4  - how doe you get cue point from vidio in AS3? And in AS2?
 5  - briefly explain the various datatypes for numbers.
 6  - how do you load an external file?
 7  - draw a 20px by 20px Rectangle using the graphics API.
 8  - which of the following cannot contain other display objects?
 Sprite, Shape, MovieClip, DisplayObjectContainer.
 9  - which properties can you use to change the size of DisplayObjects?
 10 - ENTER_FRAME is independant of an SWF's frame rate? True or false?
 11 - XP is a type of which programming methology?
 12 - why would you use a Singleton?
 13 - what is the Document Class?
 14 - create a new TextField instance, then add text it, then add some more
 text.
 15 - what is the difference between public, private and protected.
 16 - look at the piece of XML (see other sheet). How do i:
 - Get all of the page nodes as an XMLList.
 - Get node in showcase where the attribute id=1.
 17 - listen for when the 'enter key' is pressed and
 trace out all questions are now done when the event happens.


 Sidney de Koning
 Flash / AIR Developer @ www.funky-monkey.nl
 Technical Writer @ www.insideria.com







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




-- 
M.A. van't Kruis
http://www.malatze.nl/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Romuald Quantin
It does make me feel depressed as well :)

I'll have to find someone to hire in the next month and I'll focus on his
own source code and what Meinte and Zeh said previously.

For me it is very important to see if the interviewee is interested in what
he's doing (coding) and most of all id he's enjoying what is doing. Having
knowledge is a very good thing but people who goes further is mainly because
they love what they're doing, not only because they know or because they're
cleverer.

Romu

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeh Fernando
Sent: 30 July 2008 14:48
To: Flash Coders List
Subject: Re: [Flashcoders] OT: Questions to ask an interviewee

I don't know about you guys, but that checklist of skills and the 
possibility of getting that on an interview make me depressed.

Of that list, I'm pretty sure I can do it all, but most of that are not 
something I do all the time every day so I may have the gist of it, but 
not know the syntax down to its every comma. I personally use the 
reference *and* the internet every tie when writing code - for example, 
I never use cue points, and while I know perfectly well how it works, 
I'd have to see how the event works and do a few tests before applying 
it to my code. Nothing huge that takes day of research, but still. 
That's I think just shooting a lot of questions to the interviewee may 
help filter out the crap but also won't help you find the best 
candidates; I honestly think good developers, specially in the Flash 
world, are the ones who can quickly find the answer to a new question 
before having to ask around, be it by using the reference, be using by 
using the internet, or by testing. Remember this technology changes at a 
fast pace. Having a catalog of techniques in your mind may show 
experience, but there'll be gaping holes if the guy's work was focused 
somewhere else or if he's not very formally trained.

Personally, on an interview, I'd ask to see the candidate's previous 
work that's online (doing so next to him). Ask him what kind of 
techniques were in place on that particular website, question him about 
interface elements. Give hints on how you'd do something he has done and 
see his reaction, whether he gets into it and start discussing code 
with a peer or whether he shows he's full of shit. Ask how long that 
particular work took, and whether someone helped him, and what external 
classes or frameworks he used. Ask him what kind of work he liked the 
most, and why. Which was the most difficult one he did recently, and 
why. Ask what kind of work he doesn't like doing. Try to get a hang of 
how he works, and try to understand what motivates and unmotivates him. 
If possible, ask to see some real-life code he's produced, and then see 
what kind of techniques he does apply on real code more than just 
knowing the number of a dozen design patterns.

I don't know if you guys get too many interviewees or something that 
warrants a list like that to make things faster. But for website 
development in Flash, I think there's so much more that's necessary than 
just schoolbook knowledge that focusing too much on the checklist really 
seems counterproductive and sad to me.

Zeh

Sidney de Koning wrote:
 The list of questions i always ask interviewees are the following, and 
 this gives me a pretty good example of what they are like and what their 
 skillset is.
 
 Test is always accompanied with a practical test we make up on the spot.
 The XML in Q16 is made up, you can create your own for this.
 
 Feel free to use this,
 
 Cheers,
 
 Sid
 
 1  - write an event listener (normal and weak referenced) and handling 
 function for a Sprite
  named 'beginQuestions' and listen for a  mouse click.
 2  - what does weak referenced mean in regards to event listeners?
 3  - what is the difference between an object an an array?
 4  - how doe you get cue point from vidio in AS3? And in AS2?
 5  - briefly explain the various datatypes for numbers.
 6  - how do you load an external file?
 7  - draw a 20px by 20px Rectangle using the graphics API.
 8  - which of the following cannot contain other display objects?
  Sprite, Shape, MovieClip, DisplayObjectContainer.
 9  - which properties can you use to change the size of DisplayObjects?
 10 - ENTER_FRAME is independant of an SWF's frame rate? True or false?
 11 - XP is a type of which programming methology?
 12 - why would you use a Singleton?
 13 - what is the Document Class?
 14 - create a new TextField instance, then add text it, then add some 
 more text.
 15 - what is the difference between public, private and protected.
 16 - look at the piece of XML (see other sheet). How do i:
  - Get all of the page nodes as an XMLList.
  - Get node in showcase where the attribute id=1.   
 17 - listen for when the 'enter key' is pressed and
  trace out all questions are now done when the event happens.
 
 
 Sidney de Koning
 Flash / AIR Developer @ 

Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Sidney de Koning
So where it all comes down to is that everybody has its own personal  
preferences of doing.
A personal set of things to do and how to spot a good coder or an  
opinion on what makes a good flash developer, whether this is by  
showing code, letting them do some questions, shoing some work or all  
of the above.


If somebody steps into our office and understands the concept of  
programming, knows its syntax but is not that good in AS coding, i'll  
give him / her a shot, treat that person as a junior and see what they  
do in their trial period(mostly it is 1 or 2 months, depending what  
country you are in). Depending on the questions they ask you kindof  
know what they are like.
If they've proven them selfs usefull and are willing to learn, i'll  
invest in that person with a contract.


Does that still sound sad to you Zeh?

Sid


On Jul 30, 2008, at 3:47 PM, Zeh Fernando wrote:

I don't know about you guys, but that checklist of skills and the  
possibility of getting that on an interview make me depressed.


Of that list, I'm pretty sure I can do it all, but most of that are  
not something I do all the time every day so I may have the gist of  
it, but not know the syntax down to its every comma. I personally  
use the reference *and* the internet every tie when writing code -  
for example, I never use cue points, and while I know perfectly well  
how it works, I'd have to see how the event works and do a few tests  
before applying it to my code. Nothing huge that takes day of  
research, but still. That's I think just shooting a lot of questions  
to the interviewee may help filter out the crap but also won't help  
you find the best candidates; I honestly think good developers,  
specially in the Flash world, are the ones who can quickly find the  
answer to a new question before having to ask around, be it by using  
the reference, be using by using the internet, or by testing.  
Remember this technology changes at a fast pace. Having a catalog of  
techniques in your mind may show experience, but there'll be gaping  
holes if the guy's work was focused somewhere else or if he's not  
very formally trained.


Personally, on an interview, I'd ask to see the candidate's previous  
work that's online (doing so next to him). Ask him what kind of  
techniques were in place on that particular website, question him  
about interface elements. Give hints on how you'd do something he  
has done and see his reaction, whether he gets into it and start  
discussing code with a peer or whether he shows he's full of shit.  
Ask how long that particular work took, and whether someone helped  
him, and what external classes or frameworks he used. Ask him what  
kind of work he liked the most, and why. Which was the most  
difficult one he did recently, and why. Ask what kind of work he  
doesn't like doing. Try to get a hang of how he works, and try to  
understand what motivates and unmotivates him. If possible, ask to  
see some real-life code he's produced, and then see what kind of  
techniques he does apply on real code more than just knowing the  
number of a dozen design patterns.


I don't know if you guys get too many interviewees or something that  
warrants a list like that to make things faster. But for website  
development in Flash, I think there's so much more that's necessary  
than just schoolbook knowledge that focusing too much on the  
checklist really seems counterproductive and sad to me.


Zeh

Sidney de Koning wrote:
The list of questions i always ask interviewees are the following,  
and this gives me a pretty good example of what they are like and  
what their skillset is.
Test is always accompanied with a practical test we make up on the  
spot.

The XML in Q16 is made up, you can create your own for this.
Feel free to use this,
Cheers,
Sid
1  - write an event listener (normal and weak referenced) and  
handling function for a Sprite

named 'beginQuestions' and listen for a  mouse click.
2  - what does weak referenced mean in regards to event listeners?
3  - what is the difference between an object an an array?
4  - how doe you get cue point from vidio in AS3? And in AS2?
5  - briefly explain the various datatypes for numbers.
6  - how do you load an external file?
7  - draw a 20px by 20px Rectangle using the graphics API.
8  - which of the following cannot contain other display objects?
Sprite, Shape, MovieClip, DisplayObjectContainer.
9  - which properties can you use to change the size of  
DisplayObjects?
10 - ENTER_FRAME is independant of an SWF's frame rate? True or  
false?

11 - XP is a type of which programming methology?
12 - why would you use a Singleton?
13 - what is the Document Class?
14 - create a new TextField instance, then add text it, then add  
some more text.

15 - what is the difference between public, private and protected.
16 - look at the piece of XML (see other sheet). How do i:
- Get all of the page nodes as an XMLList.
- Get node in 

Re: [Flashcoders] faster, longer, better ... for programming maniaks

2008-07-30 Thread laurent
 information as if you can use the while
incremental instead of For decremental, then just use For incremental.
I heard that any loop was compiled to a while loop so I started coding
everything with a while, what is faster to write and more elegant.
Now I'll go back to those For loops, I promess I never stoped loving you
guys...

here some convincing results :
takeLengthMinus : 1695
takeLengthMinusOut : 1598
takeLengthPlus : 1580
takeLengthPlusOut : 1550


takePushMinus : 1860
takePushMinusOut : 1768
takePushPlus : 1756
takePushPlusOut : 1685

Don't compare results between separate paragraphe because they did not run
all together:

takeForWithLengthMinus : 1624
takeForWithLengthPlus : 1581

The For loop is directly with operation outside, so it has to be compared
to the

other outside operations:

takeLengthMinusOut : 1686
takeLengthPlusOut : 1610
takePushMinusOut : 1788
takePushPlusOut : 1666
takeForWithLengthMinus : 1626
takeForWithLengthPlus : 1563

I guess that's why I learned to use for( i = 0; i  n; i++ ) for my first
loops.
So if we want our code faster we have to make it longer and actually more
human readable, at the same time it means more computer readable as it gets
fasterhm, is the computer so close to human...?!

I [ mean my brain ] actually use a dicotomic way to find my current client
folder in the list of all my works.

cheers.
L

and here the codes :


function takeLengthMinus():String{
  var i : int = 1000;
  var a: Array = new Array();
  var t: Number = getTimer();
  while( i-- ){
  a[ a.length ] = i;
  }
  return takeLengthMinus :  + ( getTimer() - t );
}

function takeLengthMinusOut():String{
  var i : int = 1000;
  var a: Array = new Array();
  var t: Number = getTimer();
  while( i ){
  a[ a.length ] = i;
  i--;
  }
  return takeLengthMinusOut :  + ( getTimer() - t );
}

function takeLengthPlus():String{
  var i : int = 0;
  var a: Array = new Array();
  var t: Number = getTimer();
  while( i  1000 ){
  a[ a.length ] = i++;
  }
  return takeLengthPlus :  + ( getTimer() - t );
}

function takeLengthPlusOut():String{
  var i : int = 0;
  var a: Array = new Array();
  var t: Number = getTimer();
  while( i  1000 ){
  a[ a.length ] = i;
  i++;
  }
  return takeLengthPlusOut :  + ( getTimer() - t );
}

function takePushMinus():String{
  var i : int = 1000;
  var a: Array = new Array();
  var t: Number = getTimer();
  while( i-- ){
  a.push( i );
  }
  return takePushMinus :  + ( getTimer() - t );
}

function takePushMinusOut():String{
  var i : int = 1000;
  var a: Array = new Array();
  var t: Number = getTimer();
  while( i ){
  i--;
  a.push( i );
  }
  return takePushMinusOut :  + ( getTimer() - t );
}

function takePushPlus():String{
  var i : int = 0;
  var a: Array = new Array();
  var t: Number = getTimer();
  while( i  1000 ){
  a.push( i++ );
  }
  return takePushPlus :  + ( getTimer() - t );
}

function takePushPlusOut():String{
  var i : int = 0;
  var a: Array = new Array();
  var t: Number = getTimer();
  while( i  1000 ){
  a.push( i );
  i++;
  }
  return takePushPlusOut :  + ( getTimer() - t );
}

function takeForWithLengthMinus():String{
  var i : int;
  var a: Array = new Array();
  var t: Number = getTimer();
  for( i = 1000; i  0; i-- ){
  a[ a.length ] = i;
  }
  return takeForWithLengthMinus :  + ( getTimer() - t );
}

function takeForWithLengthPlus():String{
  var i : int;
  var a: Array = new Array();
  var t: Number = getTimer();
  for( i = 0; i  1000; i++ ){
  a[ a.length ] = i;
  }
  return takeForWithLengthPlus :  + ( getTimer() - t );
}

//trace( takeLengthMinus() );
trace( takeLengthMinusOut() );
//trace( takeLengthPlus() );
trace( takeLengthPlusOut() );
//trace( takePushMinus() );
trace( takePushMinusOut() );
//trace( takePushPlus() );
trace( takePushPlusOut() );
trace( takeForWithLengthMinus() );
trace( takeForWithLengthPlus() );

___
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


__ Information from ESET NOD32 Antivirus, version of virus signature 
database 3309 (20080730) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



  


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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Helmut Granda
How would Apple want to buy Adobe when they dont even want to use the Flash
Plugin in their IPhone/ITouch? and Google? is this rumor floating around?
because personally this is the first time I hear about this idea...

On Wed, Jul 30, 2008 at 8:06 AM, S0 F1 [EMAIL PROTECTED] wrote:

 You should ask to see source/code before an interview - then you'll know
 beforehand whether to proceed or not. Also, ask where they see Adobe going
 and whether it'll be Apple or Google that eventually buys Adobe out? I say
 Apple, but you never know with Google.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] faster, longer, better ... for programming maniaks

2008-07-30 Thread Juan Pablo Califano
;
  }
  return takeForWithLengthPlus :  + ( getTimer() - t );
 }

 //trace( takeLengthMinus() );
 trace( takeLengthMinusOut() );
 //trace( takeLengthPlus() );
 trace( takeLengthPlusOut() );
 //trace( takePushMinus() );
 trace( takePushMinusOut() );
 //trace( takePushPlus() );
 trace( takePushPlusOut() );
 trace( takeForWithLengthMinus() );
 trace( takeForWithLengthPlus() );

 ___
 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


 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 3309 (20080730) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com






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

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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Matt S.
I dont think Apple *doesnt want* to use Flash on the iphone per se, in
fact I think they'd love to have it. Its just a question of (depending
on who you talk to) technical challenges and/or political difficulties
on Apple and Adobe's part. Owning Adobe would help to solve both (not
that I'm supporting the rumors, just sayin...).

.m

On Wed, Jul 30, 2008 at 10:51 AM, Helmut Granda [EMAIL PROTECTED] wrote:
 How would Apple want to buy Adobe when they dont even want to use the Flash
 Plugin in their IPhone/ITouch? and Google? is this rumor floating around?
 because personally this is the first time I hear about this idea...

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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Zeh Fernando
This is something I forgot - a trial period of 1-3 months is a real 
necessity. There's just so much you had to know about an employee on 
Flash development, that just an interview doesn't cut it; seeing how the 
person works once he/she settles down is a must. You can't have a guy 
dragging the office around just because he knew the right answers at one 
specific time.


So no, it does not sound sad to me, sorry if I sounded harsh or anything 
(that wasn't my intention). What made me kind of down was just focusing 
too much on a questionnaire. I understand the rationale and I've applied 
something similar on interviews I've done or helped doing in the past, 
but I just think stuff like that need to be considered with some real 
caution. It may guide but it can't lead. Getting to know how the guy/gal 
works and what's his or her pace is more important than having them fill 
in the blanks successfully (but also more difficult).


Zeh

Sidney de Koning wrote:
So where it all comes down to is that everybody has its own personal 
preferences of doing.
A personal set of things to do and how to spot a good coder or an 
opinion on what makes a good flash developer, whether this is by showing 
code, letting them do some questions, shoing some work or all of the above.


If somebody steps into our office and understands the concept of 
programming, knows its syntax but is not that good in AS coding, i'll 
give him / her a shot, treat that person as a junior and see what they 
do in their trial period(mostly it is 1 or 2 months, depending what 
country you are in). Depending on the questions they ask you kindof know 
what they are like.
If they've proven them selfs usefull and are willing to learn, i'll 
invest in that person with a contract.


Does that still sound sad to you Zeh?

Sid


On Jul 30, 2008, at 3:47 PM, Zeh Fernando wrote:

I don't know about you guys, but that checklist of skills and the 
possibility of getting that on an interview make me depressed.


Of that list, I'm pretty sure I can do it all, but most of that are 
not something I do all the time every day so I may have the gist of 
it, but not know the syntax down to its every comma. I personally use 
the reference *and* the internet every tie when writing code - for 
example, I never use cue points, and while I know perfectly well how 
it works, I'd have to see how the event works and do a few tests 
before applying it to my code. Nothing huge that takes day of 
research, but still. That's I think just shooting a lot of questions 
to the interviewee may help filter out the crap but also won't help 
you find the best candidates; I honestly think good developers, 
specially in the Flash world, are the ones who can quickly find the 
answer to a new question before having to ask around, be it by using 
the reference, be using by using the internet, or by testing. Remember 
this technology changes at a fast pace. Having a catalog of techniques 
in your mind may show experience, but there'll be gaping holes if the 
guy's work was focused somewhere else or if he's not very formally 
trained.


Personally, on an interview, I'd ask to see the candidate's previous 
work that's online (doing so next to him). Ask him what kind of 
techniques were in place on that particular website, question him 
about interface elements. Give hints on how you'd do something he has 
done and see his reaction, whether he gets into it and start 
discussing code with a peer or whether he shows he's full of shit. Ask 
how long that particular work took, and whether someone helped him, 
and what external classes or frameworks he used. Ask him what kind of 
work he liked the most, and why. Which was the most difficult one he 
did recently, and why. Ask what kind of work he doesn't like doing. 
Try to get a hang of how he works, and try to understand what 
motivates and unmotivates him. If possible, ask to see some real-life 
code he's produced, and then see what kind of techniques he does apply 
on real code more than just knowing the number of a dozen design 
patterns.


I don't know if you guys get too many interviewees or something that 
warrants a list like that to make things faster. But for website 
development in Flash, I think there's so much more that's necessary 
than just schoolbook knowledge that focusing too much on the checklist 
really seems counterproductive and sad to me.


Zeh

Sidney de Koning wrote:
The list of questions i always ask interviewees are the following, 
and this gives me a pretty good example of what they are like and 
what their skillset is.

Test is always accompanied with a practical test we make up on the spot.
The XML in Q16 is made up, you can create your own for this.
Feel free to use this,
Cheers,
Sid
1  - write an event listener (normal and weak referenced) and 
handling function for a Sprite

named 'beginQuestions' and listen for a  mouse click.
2  - what does weak referenced mean in regards to event listeners?
3  - what is the 

Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread laurent
://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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


__ Information from ESET NOD32 Antivirus, version of virus 
signature database 3309 (20080730) __


The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





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


Re: [Flashcoders] faster, longer, better ... for programming maniaks

2008-07-30 Thread laurent
( takeLengthMinusOut() );
//trace( takeLengthPlus() );
trace( takeLengthPlusOut() );
//trace( takePushMinus() );
trace( takePushMinusOut() );
//trace( takePushPlus() );
trace( takePushPlusOut() );
trace( takeForWithLengthMinus() );
trace( takeForWithLengthPlus() );

___
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


__ Information from ESET NOD32 Antivirus, version of virus
signature database 3309 (20080730) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





  

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



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


__ Information from ESET NOD32 Antivirus, version of virus signature 
database 3309 (20080730) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



  


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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Sidney de Koning

Hi Zeh,

There's just so much you had to know about an employee on Flash  
development, that just an interview doesn't cut it; seeing how the  
person works once he/she settles down is a must. You can't have a  
guy dragging the office around just because he knew the right  
answers at one specific time.


I  totally agree, good point.

So no, it does not sound sad to me, sorry if I sounded harsh or  
anything (that wasn't my intention).


No problem :) Discussions can get heated sometimes. Thats normal on  
lists like this ;)


Sid



Zeh

Sidney de Koning wrote:
So where it all comes down to is that everybody has its own  
personal preferences of doing.
A personal set of things to do and how to spot a good coder or an  
opinion on what makes a good flash developer, whether this is by  
showing code, letting them do some questions, shoing some work or  
all of the above.
If somebody steps into our office and understands the concept of  
programming, knows its syntax but is not that good in AS coding,  
i'll give him / her a shot, treat that person as a junior and see  
what they do in their trial period(mostly it is 1 or 2 months,  
depending what country you are in). Depending on the questions they  
ask you kindof know what they are like.
If they've proven them selfs usefull and are willing to learn, i'll  
invest in that person with a contract.

Does that still sound sad to you Zeh?
Sid








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


Re: [Flashcoders] faster, longer, better ... for programming maniaks

2008-07-30 Thread laurent
();
 var t: Number = getTimer();
 while( i  1000 ){
 a.push( i );
 i++;
 }
 return takePushPlusOut :  + ( getTimer() - t );
}

function takeForWithLengthMinus():String{
 var i : int;
 var a: Array = new Array();
 var t: Number = getTimer();
 for( i = 1000; i  0; i-- ){
 a[ a.length ] = i;
 }
 return takeForWithLengthMinus :  + ( getTimer() - t );
}

function takeForWithLengthPlus():String{
 var i : int;
 var a: Array = new Array();
 var t: Number = getTimer();
 for( i = 0; i  1000; i++ ){
 a[ a.length ] = i;
 }
 return takeForWithLengthPlus :  + ( getTimer() - t );
}

//trace( takeLengthMinus() );
trace( takeLengthMinusOut() );
//trace( takeLengthPlus() );
trace( takeLengthPlusOut() );
//trace( takePushMinus() );
trace( takePushMinusOut() );
//trace( takePushPlus() );
trace( takePushPlusOut() );
trace( takeForWithLengthMinus() );
trace( takeForWithLengthPlus() );

___
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


__ Information from ESET NOD32 Antivirus, version of virus
signature database 3309 (20080730) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com







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

  


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


__ Information from ESET NOD32 Antivirus, version of virus signature 
database 3309 (20080730) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



  


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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Sidney de Koning
And ofcourse we all try to find a answer that is suitable for this  
specific problem and its good that loads of people have different  
takes on it.


Sid.

On Jul 30, 2008, at 5:42 PM, Sidney de Koning wrote:


Hi Zeh,

There's just so much you had to know about an employee on Flash  
development, that just an interview doesn't cut it; seeing how the  
person works once he/she settles down is a must. You can't have a  
guy dragging the office around just because he knew the right  
answers at one specific time.


I  totally agree, good point.

So no, it does not sound sad to me, sorry if I sounded harsh or  
anything (that wasn't my intention).


No problem :) Discussions can get heated sometimes. Thats normal on  
lists like this ;)


Sid



Zeh

Sidney de Koning wrote:
So where it all comes down to is that everybody has its own  
personal preferences of doing.
A personal set of things to do and how to spot a good coder or an  
opinion on what makes a good flash developer, whether this is by  
showing code, letting them do some questions, shoing some work or  
all of the above.
If somebody steps into our office and understands the concept of  
programming, knows its syntax but is not that good in AS coding,  
i'll give him / her a shot, treat that person as a junior and see  
what they do in their trial period(mostly it is 1 or 2 months,  
depending what country you are in). Depending on the questions  
they ask you kindof know what they are like.
If they've proven them selfs usefull and are willing to learn,  
i'll invest in that person with a contract.

Does that still sound sad to you Zeh?
Sid








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



Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com






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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Bob Wohl
HAHAHA



B.

On Wed, Jul 30, 2008 at 1:40 AM, Kerry Thompson [EMAIL PROTECTED]wrote:

 Alan Skinner wrote:

  So i just found out i've to interview an AS guy tomorrow, anybody have
 any
 good
  questions that i should be asking?

 Here are my favorites, at 4:30 in the morning:

 1. How long have you been out on parole?
 2. So, do you think you're going to beat that child porn rap?
 3. Did that program you wrote for Al Quaeda really work as well as
 everybody
 says?
 4. Have you ever worked for Microsoft?

 Cheers!

 Professor I. M. Gestopftmitscheiss

 ___
 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] faster, longer, better ... for programming maniaks

2008-07-30 Thread Juan Pablo Califano
If you mean decompiling the push method itself, you can't because it's not
actioscript but a native code, implemented directly in the player.

If you mean how the push method is called, it'd be something like this:

Actionscript:

 function test():void {
  var i:int = 0;
  var arr:Array = new Array();
  arr.push(i);
 }

Disassembled bytecode:

function test():void /* disp_id 0*/
{
  // local_count=3 max_scope=1 max_stack=2 code_len=26
  0 getlocal0
  1 pushscope
  2 pushbyte   0
  4 setlocal1
  5 pushnull
  6 coerce Array
  8 setlocal2
  9 pushbyte   0
  11setlocal1
  12findpropstrict Array
  14constructprop  Array (0)
  17coerce Array
  19setlocal2
  20getlocal2
  21getlocal1
  22callpropvoid   http://adobe.com/AS3/2006/builtin::push (1)
  25returnvoid
}

The relevant part is this (local2 is the array and local1 the variable i)


  20getlocal2
  21getlocal1
  22callpropvoid   http://adobe.com/AS3/2006/builtin::push (1)

Basically, you push the array onto the stack, then the arguments (the i
variable), and then use the callpropvoid native method. That method pops the
stack to get the arguments (the number of arguments is specified by the
caller, in this case it's 1 as you can see between the parens), and then it
pops the stack again to get the object (the array in this case). Then the
player calls the method passed to callpropvoid (push), on the array, and
passes the arguments to it (the variable i). If push returned a value,
callprop would have been used instead of callpropvoid.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS3: Video player scrubber doesnt work until reload?

2008-07-30 Thread Matt S.
So I've got a fairly standard video player, using code adapted from
Brimelow et al, but the problem I'm runnign into is that the first
time the page loads, it plays the video just fine, but the scrubber
doesnt work. Once I reload the page, it loads fine and the scrubber
kicks in. Has anyone else encountered this? Some of the code is
below...

thx,

.matt






-

public function VideoModule(myR,vD) {
trace(Video Module Loaded);
//
myRoot = myR;
myVideo = vD;
_videoStarted = false;
//
displayHours = true;
//
_videobg = new Sprite();
_videobg.name = bg;
_videobg.graphics.lineStyle();
_videobg.graphics.beginFill(0xFF);
_videobg.graphics.drawRect(0,0,10,10);
_videobg.graphics.endFill();
_videobg.visible = false;
addChild(_videobg);
//
_video = new Video(80,60);

//
_playbackTime = new Timedisplay();
_playbackTime.visible = false;
_duration = 0;
//
//ADD THE PLAY/PAUSE BTN
_pausebtn = new Pausebtn();
_pausebtn.name = pausebtn_mc;

_pausebtn.mouseEnabled = true;
_pausebtn.useHandCursor = true;
_pausebtn.buttonMode = true;
_pausebtn.visible = false;
addChild(_pausebtn);
//
var connection:NetConnection = new NetConnection();
connection.connect(null);
_stream = new NetStream(connection);
_stream.bufferTime = 1;
_stream.play(vD);

var client:Object = new Object();
client.onMetaData = onMetaData;
_stream.client = client;
_video.attachNetStream(_stream);
_video.x = 0;
_video.y = 0;
_video.visible = false;
addChild(_video);
addChild(_playbackTime);
//

//this timer restarts the video after it has been 
paused by the resizer
resTimer = new Timer(700,1);
resTimer.addEventListener(timer, restartVideo);
//activate Listeners
addListeners();

}
public function addListeners():void {


_stream.addEventListener(NetStatusEvent.NET_STATUS,onStatus);
//_stream.addEventListener(NetStatusEvent.NET_STATUS,
onNetStatusEvent, false, 0, true);
addEventListener(Event.ENTER_FRAME,onEnterFrame);

_pausebtn.addEventListener(MouseEvent.MOUSE_DOWN,pausePlay);
myRoot.stage.addEventListener( Event.RESIZE, 
videoResizer );

}
//
private function onMetaData(data:Object):void {
_duration = data.duration;
}





private function onEnterFrame(event:Event):void {
if (_duration  0  _stream.time  0) {
var nowSecs:Number = Math.floor(_stream.time);
var totalSecs:Number = Math.round(_duration);

/*if (nowSecs  totalSecs-.2) {
_stream.seek(0);
_stream.pause();
_pausebtn.gotoAndStop(2);
_playbackTime.txt.text = 00:00:00;
}*/

_playbackTime.txt.text = 
videoTimeConvert(nowSecs);// +  /  +
videoTimeConvert(totalSecs);


}
}
private function onStatus(event:NetStatusEvent):void {
if (_video.videoWidth  0  _video.width != 
_video.videoWidth) {

//SCALE AND POSITION THE VIDEO ELEMENTS

_video.width = _video.videoWidth;
_video.height = _video.videoHeight;
//_video.x = Math.round( 

Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Bob Wohl

 You can't have a guy dragging the office around just because he knew the
 right answers at one specific time.


This has been a bum deal for me over the past 5 months. I've sat in on 3
interviews for a flash/flex developer and have told the rest in the
interview that the person was not qualified yet they still hired them based
on some canned responses (hell... one knew a little about silverlight and no
Actionscript what so ever). All three either quit or was moved to a
different team in under a month and yours truly had to take up their work.
If you are going to hire some one they need to be able to do the dang job!
Hence why my last day is Friday!!!  ;)

As for the questions. When thinking about flash and the many ways to do a
single task, I feel the concept of how to think the problem through is a lot
more important than having the person sit and write code. The understanding
of what needs to be done and the steps to take to get it done with a side of
excitement goes a long way for me.

A lot of good points and perspectives have come up in this thread! Keep it
coming! :)

B.


On Wed, Jul 30, 2008 at 8:21 AM, Zeh Fernando [EMAIL PROTECTED] wrote:

 This is something I forgot - a trial period of 1-3 months is a real
 necessity. There's just so much you had to know about an employee on Flash
 development, that just an interview doesn't cut it; seeing how the person
 works once he/she settles down is a must. You can't have a guy dragging the
 office around just because he knew the right answers at one specific time.

 So no, it does not sound sad to me, sorry if I sounded harsh or anything
 (that wasn't my intention). What made me kind of down was just focusing too
 much on a questionnaire. I understand the rationale and I've applied
 something similar on interviews I've done or helped doing in the past, but I
 just think stuff like that need to be considered with some real caution. It
 may guide but it can't lead. Getting to know how the guy/gal works and
 what's his or her pace is more important than having them fill in the blanks
 successfully (but also more difficult).


 Zeh

 Sidney de Koning wrote:

 So where it all comes down to is that everybody has its own personal
 preferences of doing.
 A personal set of things to do and how to spot a good coder or an opinion
 on what makes a good flash developer, whether this is by showing code,
 letting them do some questions, shoing some work or all of the above.

 If somebody steps into our office and understands the concept of
 programming, knows its syntax but is not that good in AS coding, i'll give
 him / her a shot, treat that person as a junior and see what they do in
 their trial period(mostly it is 1 or 2 months, depending what country you
 are in). Depending on the questions they ask you kindof know what they are
 like.
 If they've proven them selfs usefull and are willing to learn, i'll invest
 in that person with a contract.

 Does that still sound sad to you Zeh?

 Sid


 On Jul 30, 2008, at 3:47 PM, Zeh Fernando wrote:

  I don't know about you guys, but that checklist of skills and the
 possibility of getting that on an interview make me depressed.

 Of that list, I'm pretty sure I can do it all, but most of that are not
 something I do all the time every day so I may have the gist of it, but not
 know the syntax down to its every comma. I personally use the reference
 *and* the internet every tie when writing code - for example, I never use
 cue points, and while I know perfectly well how it works, I'd have to see
 how the event works and do a few tests before applying it to my code.
 Nothing huge that takes day of research, but still. That's I think just
 shooting a lot of questions to the interviewee may help filter out the crap
 but also won't help you find the best candidates; I honestly think good
 developers, specially in the Flash world, are the ones who can quickly find
 the answer to a new question before having to ask around, be it by using the
 reference, be using by using the internet, or by testing. Remember this
 technology changes at a fast pace. Having a catalog of techniques in your
 mind may show experience, but there'll be gaping holes if the guy's work was
 focused somewhere else or if he's not very formally trained.

 Personally, on an interview, I'd ask to see the candidate's previous work
 that's online (doing so next to him). Ask him what kind of techniques were
 in place on that particular website, question him about interface elements.
 Give hints on how you'd do something he has done and see his reaction,
 whether he gets into it and start discussing code with a peer or whether
 he shows he's full of shit. Ask how long that particular work took, and
 whether someone helped him, and what external classes or frameworks he used.
 Ask him what kind of work he liked the most, and why. Which was the most
 difficult one he did recently, and why. Ask what kind of work he doesn't
 like doing. Try to get a hang of how 

Re: [Flashcoders] faster, longer, better ... for programming maniaks

2008-07-30 Thread Mark Winterhalder
On Wed, Jul 30, 2008 at 5:44 PM, laurent [EMAIL PROTECTED] wrote:

 Can you decompile the push method to see how it use the stack ? :)

I take the :) you already know the answer, but just in case, it's
intrinsic and you can probably look the C++ code up in the Tamarin
sources.

I have to agree with Juan that you shouldn't take those results
seriously. The numbers are closer to each other than the margin of
error.
When I set up such a test (sorry, no code on this machine), I wait a
few frames so the player is fully initialized, and then run several
test of each variant. I take the best result and discard the rest --
the average or median are worthless, they just tell you how much other
processes on the system interfere with the test, and the worst tells
you if the garbage collector did its round.

In any case, don't go down the X does Y the fastest, so I'll only use
X from now on route. If you're writing some selected inner loops or a
math library, OK, but most of your code won't get executed thousands
of times each frame, so it's much more important that it's readable
and easy to understand for others (including future-you). This is
especially true if your fastest solution is verbose and repetitive
--  it's inconvenient if you have to modify it in the future, add
traces for debugging or step through with the debugger.

Also, whether writing something in a single line or two is faster
depends on the compiler, and might change when better optimization is
introduced in a future version. Common ways of doing something are
probably more likely to get optimized.

Stating the obvious, try to find a better algorithm first.

And finally, have a look at haXe. That touches the compiler
optimization part again -- the haXe compiler knows much about your
code than the AS3 compilers, so it can do better optimization. Part of
it is explained here:
http://blog.haxe.org/entry/31
Note inlining and haxe.rtti.Generic. For an AS3 vs haXe example, read:
http://blog.haxe.org/entry/35

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


Re: [Flashcoders] When to use AS3?

2008-07-30 Thread allandt bik-elliott (thefieldcomic.com)
yeh - i tried telling someone to object.addEventListener(Event.ENTER_FRAME,
func); the other day (they were in as2)

it's really hard doing both

On Wed, Jul 30, 2008 at 2:29 PM, Matt S. [EMAIL PROTECTED] wrote:

 This debate really shows the odd place Flash is in right now. A few
 threads ago someone else was saying they would never even look at a
 project that was being done in AS2 and indeed any client demanding
 such a thing deserved a whoopin'. Others still find themselves working
 almost exclusively in AS2, and others like myself find themselves
 jumping back and forth between the two on a daily basis which is
 probably the worst of all. coding half your day in AS3 and the other
 half in AS2 is such a mindf*ck.

 .m

 On Wed, Jul 30, 2008 at 7:48 AM, allandt bik-elliott
 (thefieldcomic.com) [EMAIL PROTECTED] wrote:
  @Sidney: That's really interesting because at all the places I've worked
  (which isn't many - I've always done coding as a sideline and have only
  recently gone full-time), they seem to be utterly entrenched in FP8 (i
 guess
  using the old 'work to the last player' thinking). I personally would
 love
  to move the (non-banner) work to AS3 as it's a far more elegant way of
  working. I find that the clients tend to dictate it based on whatever
 plugin
  their IT department have set them up with.
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Kerry Thompson
 You should ask to see source/code before an interview - then you'll know
 beforehand whether to proceed or not

That's usually not practical. I'm perfectly happy to direct somebody to my
links, but I'm not going to send my source code, which is usually
proprietary, to a potential client or employer.

One thing we shouldn't lose sight of here--the interview process is a
two-way street. The employer is interviewing you, but you should also be
interviewing the employer. If you're a half-decent coder, you are very much
in demand, and should look for a job that fits you. For example, I've done
educational software most of my career, and I'm not going to take a job
writing banner ads (not a criticism of those of us who do--it's just not my
thing).

Cordially,

Kerry Thompson

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


Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread allandt bik-elliott (thefieldcomic.com)
derailment imminent!

with sproutcore, i think apple will have too much invested elsewhere to want
to retain flash if they ever bought adobe

i don't think it's on the cards tho - aren't they peers in the software
space?

On Wed, Jul 30, 2008 at 4:13 PM, Matt S. [EMAIL PROTECTED] wrote:

 I dont think Apple *doesnt want* to use Flash on the iphone per se, in
 fact I think they'd love to have it. Its just a question of (depending
 on who you talk to) technical challenges and/or political difficulties
 on Apple and Adobe's part. Owning Adobe would help to solve both (not
 that I'm supporting the rumors, just sayin...).

 .m

 On Wed, Jul 30, 2008 at 10:51 AM, Helmut Granda [EMAIL PROTECTED]
 wrote:
  How would Apple want to buy Adobe when they dont even want to use the
 Flash
  Plugin in their IPhone/ITouch? and Google? is this rumor floating around?
  because personally this is the first time I hear about this idea...
 
 ___
 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] AS3: Video player scrubber doesnt work until reload?

2008-07-30 Thread Helmut Granda
I havent seen your code but for what you are describing the scrubber wont
work because it doesnt have the information it needs in the initial load to
scrub, that is why when you reload the page it works. You need to edit your
code so that the scrubbing works in the initial load only in the section
that it has been loaded so if 10% is loaded the scrub will only work in that
10% area and so forth. Unless you have access to a streaming server that
will allow you to scrub in real time by loading content as needed (as seen
in YT and such).

On Wed, Jul 30, 2008 at 11:41 AM, Matt S. [EMAIL PROTECTED] wrote:

 So I've got a fairly standard video player, using code adapted from
 Brimelow et al, but the problem I'm runnign into is that the first
 time the page loads, it plays the video just fine, but the scrubber
 doesnt work. Once I reload the page, it loads fine and the scrubber
 kicks in. Has anyone else encountered this? Some of the code is
 below...

 thx,

 .matt






 -

 public function VideoModule(myR,vD) {
trace(Video Module Loaded);
//
myRoot = myR;
myVideo = vD;
_videoStarted = false;
//
displayHours = true;
//
_videobg = new Sprite();
_videobg.name = bg;
_videobg.graphics.lineStyle();
_videobg.graphics.beginFill(0xFF);
_videobg.graphics.drawRect(0,0,10,10);
_videobg.graphics.endFill();
_videobg.visible = false;
addChild(_videobg);
//
_video = new Video(80,60);

//
_playbackTime = new Timedisplay();
_playbackTime.visible = false;
_duration = 0;
//
//ADD THE PLAY/PAUSE BTN
_pausebtn = new Pausebtn();
_pausebtn.name = pausebtn_mc;

_pausebtn.mouseEnabled = true;
_pausebtn.useHandCursor = true;
_pausebtn.buttonMode = true;
_pausebtn.visible = false;
addChild(_pausebtn);
//
var connection:NetConnection = new NetConnection();
connection.connect(null);
_stream = new NetStream(connection);
_stream.bufferTime = 1;
_stream.play(vD);

var client:Object = new Object();
client.onMetaData = onMetaData;
_stream.client = client;
_video.attachNetStream(_stream);
_video.x = 0;
_video.y = 0;
_video.visible = false;
addChild(_video);
addChild(_playbackTime);
//

//this timer restarts the video after it has been
 paused by the resizer
resTimer = new Timer(700,1);
resTimer.addEventListener(timer, restartVideo);
//activate Listeners
addListeners();

}
public function addListeners():void {


  _stream.addEventListener(NetStatusEvent.NET_STATUS,onStatus);

  //_stream.addEventListener(NetStatusEvent.NET_STATUS,
 onNetStatusEvent, false, 0, true);
addEventListener(Event.ENTER_FRAME,onEnterFrame);

  _pausebtn.addEventListener(MouseEvent.MOUSE_DOWN,pausePlay);
myRoot.stage.addEventListener( Event.RESIZE,
 videoResizer );

}
//
private function onMetaData(data:Object):void {
_duration = data.duration;
}





private function onEnterFrame(event:Event):void {
if (_duration  0  _stream.time  0) {
var nowSecs:Number =
 Math.floor(_stream.time);
var totalSecs:Number =
 Math.round(_duration);

/*if (nowSecs  totalSecs-.2) {
_stream.seek(0);
_stream.pause();
_pausebtn.gotoAndStop(2);
_playbackTime.txt.text = 00:00:00;
}*/

_playbackTime.txt.text =
 videoTimeConvert(nowSecs);// +  /  +
 videoTimeConvert(totalSecs);


}
}
   

Re: [Flashcoders] When to use AS3?

2008-07-30 Thread Mark Winterhalder
On Wed, Jul 30, 2008 at 2:22 PM, Romuald Quantin
[EMAIL PROTECTED] wrote:
 Yeah true, or what's working as well is saying that AS2 code is harder to
 maintain and will cost you more money in the future.

Regarding the future argument, you can add that future versions of the
project could use future functionality that won't be available with
the old AS2 API. Also, ECMA262.v4/JS2/AS4/whatever will come not only
to the Flashplayer, and it will be much easier to reuse AS3 code.

Anyway, it's just one percent difference in penetration:
http://www.adobe.com/products/player_census/flashplayer/version_penetration.html

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


Re: [Flashcoders] When to use AS3?

2008-07-30 Thread eric e. dolecki
Taking time to jump to AS3 with the penetration numbers the way they are is
only going to put one behind the 8-ball in regards to new features to take
advantage of, performance increases, ease of maintenance and of development.
Building class libraries, etc. is such a joy now and with OOP you can easily
add or remove functionality at a moment's notice without disturbing some
fragile AS2 framework.

AS2 is safe as rain to deploy, but I would say that AS3 should be just as
safe at the moment... unless you've got a lot of AS2 legacy stuff one would
need to re-write to get it all together.

I don't have any public facing stuff, and probably won't for quite some
time, but I forced myself into strict use of AS3 a long time ago and all
that AS2 hacking, debugging, and worrying is basically nearly gone
altogether.

Old habits are tough to break.

I like new toys though, so I kicked AS2 to the curb and I'd hope most
everyone would do the same.

On Wed, Jul 30, 2008 at 2:01 PM, Mark Winterhalder [EMAIL PROTECTED] wrote:

 On Wed, Jul 30, 2008 at 2:22 PM, Romuald Quantin
 [EMAIL PROTECTED] wrote:
  Yeah true, or what's working as well is saying that AS2 code is harder to
  maintain and will cost you more money in the future.

 Regarding the future argument, you can add that future versions of the
 project could use future functionality that won't be available with
 the old AS2 API. Also, ECMA262.v4/JS2/AS4/whatever will come not only
 to the Flashplayer, and it will be much easier to reuse AS3 code.

 Anyway, it's just one percent difference in penetration:
 
 http://www.adobe.com/products/player_census/flashplayer/version_penetration.html
 

 Mark
 ___
 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] faster, longer, better ... for programming maniaks

2008-07-30 Thread Kerry Thompson
Juan Pablo Califano wrote:

 If you mean decompiling the push method itself, you can't because it's not
 actioscript but a native code, implemented directly in the player.

Nice work, Juan Pablo.

The code you have been posting prompts me to comment on the underlying
mechanism of Flash. I know, from experience, that a lot of Flash coders (and
Director, and Java) don't understand about bytecode vs. native code.

If you're writing in a true compiled language like C++, your code will
compile to machine language specific to your CPU. Machine code is 1's and
0's, the on/off switches that are the basis of any binary computer. 

Flash is cross-platform, though. It has to work on Intel processors,
PowerPC, and others. It has to work on different OS's like Windows, Mac, and
Unix. The machine code is different for every processor, and the
implementation is specific to an OS. So, the Flash compiler can't compile to
machine code.

Instead, Macromedia, and now Adobe, have written a player for each of the
supported platforms. The player is in machine code (ones and zeros), but our
ActionScript code is not. ActionScript compiles to an intermediate bytecode,
or token. The player reads these tokens, and executes the appropriate
machine code.

That's what makes Flash slower than C++, and also more secure--it's much
more difficult to write malicious code if you don't have direct access to
the machine, but have to go through an interpreter.

This idea has been around for 25 years or so. The first implementation I
used was UCSC Pascal, which, like Flash, compiled down to an intermediate
token which was, in turn interpreted and executed by the player (we called
it a virtual machine back then). It has only been in the last 10 years or
so that machines have gotten fast enough to run this sort of code
satisfactorily.

If you understand this, you can find the bottlenecks in your code more
easily, and optimize it. Loops are often the main culprit, as they have to
interpret the bytecode each time through the loop. Also, if you're working
with something with a fixed length like an array or XML nodes (really the
same thing), it's faster if you store the length of the array in a register
variable. An illustration:

var arrLen:int;
arrLen = myArray.length();
for (var i:int; i  arrLen; i++)

works faster than 
for (var i:int; i  myArray.length(); i++)

Cordially,

Kerry Thompson

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


Re: [Flashcoders] faster, longer, better ... for programming maniaks

2008-07-30 Thread Mark Winterhalder
Nitpicking, but just as anything digital the SWF opcodes essentially
are 1s and 0s, too. :)

Anyway, the new VM supports JIT compilation to native machine code. I
must admit I don't know if /all/ code gets JIT compiled or only
hotspots, and I don't know if it will be recompiled for each use to
hardcode variables, but that would also have implications.

Mark



On Wed, Jul 30, 2008 at 8:21 PM, Kerry Thompson [EMAIL PROTECTED] wrote:
 Juan Pablo Califano wrote:

 If you mean decompiling the push method itself, you can't because it's not
 actioscript but a native code, implemented directly in the player.

 Nice work, Juan Pablo.

 The code you have been posting prompts me to comment on the underlying
 mechanism of Flash. I know, from experience, that a lot of Flash coders (and
 Director, and Java) don't understand about bytecode vs. native code.

 If you're writing in a true compiled language like C++, your code will
 compile to machine language specific to your CPU. Machine code is 1's and
 0's, the on/off switches that are the basis of any binary computer.

 Flash is cross-platform, though. It has to work on Intel processors,
 PowerPC, and others. It has to work on different OS's like Windows, Mac, and
 Unix. The machine code is different for every processor, and the
 implementation is specific to an OS. So, the Flash compiler can't compile to
 machine code.

 Instead, Macromedia, and now Adobe, have written a player for each of the
 supported platforms. The player is in machine code (ones and zeros), but our
 ActionScript code is not. ActionScript compiles to an intermediate bytecode,
 or token. The player reads these tokens, and executes the appropriate
 machine code.

 That's what makes Flash slower than C++, and also more secure--it's much
 more difficult to write malicious code if you don't have direct access to
 the machine, but have to go through an interpreter.

 This idea has been around for 25 years or so. The first implementation I
 used was UCSC Pascal, which, like Flash, compiled down to an intermediate
 token which was, in turn interpreted and executed by the player (we called
 it a virtual machine back then). It has only been in the last 10 years or
 so that machines have gotten fast enough to run this sort of code
 satisfactorily.

 If you understand this, you can find the bottlenecks in your code more
 easily, and optimize it. Loops are often the main culprit, as they have to
 interpret the bytecode each time through the loop. Also, if you're working
 with something with a fixed length like an array or XML nodes (really the
 same thing), it's faster if you store the length of the array in a register
 variable. An illustration:

 var arrLen:int;
 arrLen = myArray.length();
 for (var i:int; i  arrLen; i++)

 works faster than
 for (var i:int; i  myArray.length(); i++)

 Cordially,

 Kerry Thompson

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

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


RE: [Flashcoders] faster, longer, better ... for programming mani aks

2008-07-30 Thread Dave Watts
 If you're writing in a true compiled language like C++, your 
 code will compile to machine language specific to your CPU. 
 Machine code is 1's and 0's, the on/off switches that are the 
 basis of any binary computer.

EVERYTHING on a computer is 1s and 0s, because that's the only way that
(non-quantum) computers can store and access values.

 This idea has been around for 25 years or so. The first 
 implementation I used was UCSC Pascal, which, like Flash, 
 compiled down to an intermediate token which was, in turn 
 interpreted and executed by the player (we called it a 
 virtual machine back then).

And it's still called a virtual machine, most of the time. There is arguably
some difference between an interpreter and a VM, though.

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] faster, longer, better ... for programming maniaks

2008-07-30 Thread Kerry Thompson
Mark Winterhalder wrote:

 Nitpicking, but just as anything digital the SWF opcodes essentially
 are 1s and 0s, too. :)

Fair enough. Following that to its logical conclusion, _everything_ on your
computer is 1s and 0s, including the text in this email ^_^

You clearly understand what I was saying, Mark, but just a brief
reiteration: compiled ActionScript has to be interpreted by the VM, which is
_always_ slower than compiling directly to machine language.

When I was doing Director full time, I ran some tests that showed C++ to run
up to 400 times as fast as Lingo. I lobbied for years to get a true
machine-language compiler for Lingo, at least for desktop apps. I was struck
by how few developers understood the implications, and without other
developers clamoring for the need for speed, Macromedia never went there.
Director could have been a major player in the 3D game world.

And don't tell me that Director 3D is fast enough. Hard-core gamers buy
$8,000 machines to squeeze every last fps out of their games. With lights,
shaders, high-poly objects, multiple cameras, Director is just not fast
enough for a Quake or Doom LAN party. And, of course, neither is Flash.

 Anyway, the new VM supports JIT compilation to native machine code. I
 must admit I don't know if /all/ code gets JIT compiled or only
 hotspots, and I don't know if it will be recompiled for each use to
 hardcode variables, but that would also have implications.

One major implication would be in loops. The complier would  have no way of
knowing if an array would change length in a loop, for example, so it
couldn't hard code the length.

Cordially,

Kerry Thompson

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


[Flashcoders] Modifying movieclip property kills tween

2008-07-30 Thread Boon Chew
Hi all, I ran into something strange whereby if I modify a movieclip's property 
(say alpha), it would kill the tween that will take place later that involves 
the movieclip.  Wonder if anyone has run into this?

1) In a test FLA, create a movieclip called test.  Inside test, create two 
frames, start on frame 2 and end on whatever (say frame 30).
2) Put a movieclip called box on timeline and tween it from start to end.
3) In the main timeline, add this:
stage.addEventListener(MouseEvent.MOUSE_DOWN, click);

function click(event:MouseEvent):void
{
    test.box.alpha = 1;  // -- changing alpha value causes the tween to stop 
working, comment this out and tween works
    test.gotoAndPlay(start);  // tween test.box by moving it across the stage
}


- boon




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


RE: [Flashcoders] faster, longer, better ... for programming mani aks

2008-07-30 Thread Kerry Thompson
Dave Watts wrote:

 There is arguably some difference between an interpreter and a VM, though.

True. We're getting into the nitty-gritty details here, but some
interpreters read the source code as is, without compiling even to an
intermediate bytecode. The original AppleSoft Basic, circa 1978, was one
example. Variable names were limited to two characters to keep speed
acceptable (by the standards of the day, that is--my Blackberry has more
processing power than that old Apple).

Cordially,

Kerry Thompson

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


RE: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Kerry Thompson
Bob Wohl wrote:

 HAHAHA

Well, at least one person got the joke ^_^

  Professor I. M. Gestopftmitscheiss

I guess there just aren't enough German speakers on the list :-^|

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


RE: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Cor
Jawhol, aber nicht jeder reagiert.
BTW ik ben Nederlander.  :-)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kerry
Thompson
Sent: woensdag 30 juli 2008 21:32
To: 'Flash Coders List'
Subject: RE: [Flashcoders] OT: Questions to ask an interviewee

Bob Wohl wrote:

 HAHAHA

Well, at least one person got the joke ^_^

  Professor I. M. Gestopftmitscheiss

I guess there just aren't enough German speakers on the list :-^|

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

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


RE: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Merrill, Jason
Adobe is already working on bringing a version of the Flash player to
the iPhone.  It's going to be Apple that needs to remove some barriers
to make it happen, and make it happen so that it's not just a video and
animation player 

http://www.engadget.com/2008/03/19/adobe-says-flash-is-coming-to-the-iph
one/
http://gizmodo.com/5017204/adobe-getting-flash-prepped-for-iphone-if-onl
y-apple-will-allow-it



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

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GTO Innovative Learning Blog  subscribe. 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Running Projector from a DVD

2008-07-30 Thread Alfred Hess
I am creating an multimedia training DVD.

The user interface will be a flash projector that runs the menu.
The menu will allow the user to select either flash video (flv)
or interactive flash content (swf).

This DVD will be available for sale. Users with varying CPU speeds and DVD 
players will be using it.

Has anyone created an application like this. Is there anything I need to worry 
about re I/O errors and user system configuration?

The fact that I can't find anyone who has experience with this is a bit 
worrying.

Any help would be greatly appreciated 

Alfred


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


Re: [Flashcoders] faster, longer, better ... for programming mani aks

2008-07-30 Thread Juan Pablo Califano
About the 0's and 1's, I think Kerry's point was clear. While C++ code, for
instance is compiled into native code, that is, code that is hardwired to
a particular processor, with a particular set of instructions, languages
like Actionscript, are compiled to an intermediate representation that is
translated into native code for the target platform. Anyway, that's faster
than how most Javascript implementations work currently (as far as I know),
for instance, since the JS environment has first to do the parsing and
lexing of the source code, compile it on the fly to bytecode and then
translate that to native code. (In all these cases, there might be extra
processing layers, I'm talking about the general flow rather than the
concrete implementation, which I frankly ignore).

So, working with VM bytecode is adding an extra step to the whole process.
It pays off in portability and deployment ease, and is a fair trade-off in
most cases. And, as it's been pointed out, some languages / envorinments
translate the bytecode to native code at load time (.NET on Windows) or
through some mix of load-time and on-demand compiling. I understand the
flash players does that to some extent, and that Adobe plans to get more
stuff JIT compiled, to improve performance.

Cheers
Juan Pablo Califano


2008/7/30, Kerry Thompson [EMAIL PROTECTED]:

 Dave Watts wrote:

  There is arguably some difference between an interpreter and a VM,
 though.

 True. We're getting into the nitty-gritty details here, but some
 interpreters read the source code as is, without compiling even to an
 intermediate bytecode. The original AppleSoft Basic, circa 1978, was one
 example. Variable names were limited to two characters to keep speed
 acceptable (by the standards of the day, that is--my Blackberry has more
 processing power than that old Apple).

 Cordially,

 Kerry Thompson

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

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


Re: [Flashcoders] faster, longer, better ... for programming maniaks

2008-07-30 Thread Mark Winterhalder
 You clearly understand what I was saying, Mark, but just a brief
 reiteration: compiled ActionScript has to be interpreted by the VM, which is
 _always_ slower than compiling directly to machine language.

Yes, I understand and am not even disagreeing. :)

However, there have been benchmarks where Java was actually marginally
/faster/ than C++ for some specific tests. This seems
counterintuitive, but the JIT compiler knows more at runtime than the
traditional compiler can know in advance, and I'm guessing that's why
it can (not generally, but in some rare situations) do better
optimizations. When you have ideal programmers then of course compiled
languages will be faster, but that difference is getting less as
technology evolves.
But of course we're talking about the Flashplayer here, and size,
portability and start-up time are more important design goals than
execution speed, so we'll most definitely will always have to live
with a very noticeable performance penalty. Then again, we don't have
to manage memory ourselves, which is a big plus.
(Btw memory allocation and optimization: recycling instances where
possible is also a good idea.)

If somebody knows a good explanation about the when and how of the
AVM2 JIT compiler, I'd be curious. The same goes for a table that
shows relative performance of stuff the renderer does -- like with
alpha vs. without, if rendering time grows linear with the number of
pixels, how much time is wasted on DisplayObjects outside of the
visible Stage, stuff like that.

Mark





On Wed, Jul 30, 2008 at 9:05 PM, Kerry Thompson [EMAIL PROTECTED] wrote:
 Mark Winterhalder wrote:

 Nitpicking, but just as anything digital the SWF opcodes essentially
 are 1s and 0s, too. :)

 Fair enough. Following that to its logical conclusion, _everything_ on your
 computer is 1s and 0s, including the text in this email ^_^

 You clearly understand what I was saying, Mark, but just a brief
 reiteration: compiled ActionScript has to be interpreted by the VM, which is
 _always_ slower than compiling directly to machine language.

 When I was doing Director full time, I ran some tests that showed C++ to run
 up to 400 times as fast as Lingo. I lobbied for years to get a true
 machine-language compiler for Lingo, at least for desktop apps. I was struck
 by how few developers understood the implications, and without other
 developers clamoring for the need for speed, Macromedia never went there.
 Director could have been a major player in the 3D game world.

 And don't tell me that Director 3D is fast enough. Hard-core gamers buy
 $8,000 machines to squeeze every last fps out of their games. With lights,
 shaders, high-poly objects, multiple cameras, Director is just not fast
 enough for a Quake or Doom LAN party. And, of course, neither is Flash.

 Anyway, the new VM supports JIT compilation to native machine code. I
 must admit I don't know if /all/ code gets JIT compiled or only
 hotspots, and I don't know if it will be recompiled for each use to
 hardcode variables, but that would also have implications.

 One major implication would be in loops. The complier would  have no way of
 knowing if an array would change length in a loop, for example, so it
 couldn't hard code the length.

 Cordially,

 Kerry Thompson

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

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


Re: [Flashcoders] Modifying movieclip property kills tween

2008-07-30 Thread Helmut Granda
This is the proper behavior since you are overriding the properties of the
object itself. Such as if you were overriding the x, y, scale properties.
You can wrap the object into a container and edit the properties of the
container that then will be reflected into its child, in this case the
box.


On Wed, Jul 30, 2008 at 2:13 PM, Boon Chew [EMAIL PROTECTED] wrote:

 Hi all, I ran into something strange whereby if I modify a movieclip's
 property (say alpha), it would kill the tween that will take place later
 that involves the movieclip.  Wonder if anyone has run into this?

 1) In a test FLA, create a movieclip called test.  Inside test, create
 two frames, start on frame 2 and end on whatever (say frame 30).
 2) Put a movieclip called box on timeline and tween it from start to
 end.
 3) In the main timeline, add this:
 stage.addEventListener(MouseEvent.MOUSE_DOWN, click);

 function click(event:MouseEvent):void
 {
 test.box.alpha = 1;  // -- changing alpha value causes the tween to
 stop working, comment this out and tween works
 test.gotoAndPlay(start);  // tween test.box by moving it across the
 stage
 }


 - boon




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




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


Re: [Flashcoders] faster, longer, better ... for programming maniaks

2008-07-30 Thread Juan Pablo Califano
Check these slides:

http://www.onflex.org/ACDS/AS3TuningInsideAVM2JIT.pdf

From page 43:

* We make a simple hotspot-like decision about whether to interpret or JIT
* Initialization functions ($init, $cinit) are interpreted
* Everything else is JIT
* Upshot: Don't put performance-intensive code in class initialization


Cheers
Juan Pablo Califano


2008/7/30, Mark Winterhalder [EMAIL PROTECTED]:

  You clearly understand what I was saying, Mark, but just a brief
  reiteration: compiled ActionScript has to be interpreted by the VM, which
 is
  _always_ slower than compiling directly to machine language.

 Yes, I understand and am not even disagreeing. :)

 However, there have been benchmarks where Java was actually marginally
 /faster/ than C++ for some specific tests. This seems
 counterintuitive, but the JIT compiler knows more at runtime than the
 traditional compiler can know in advance, and I'm guessing that's why
 it can (not generally, but in some rare situations) do better
 optimizations. When you have ideal programmers then of course compiled
 languages will be faster, but that difference is getting less as
 technology evolves.
 But of course we're talking about the Flashplayer here, and size,
 portability and start-up time are more important design goals than
 execution speed, so we'll most definitely will always have to live
 with a very noticeable performance penalty. Then again, we don't have
 to manage memory ourselves, which is a big plus.
 (Btw memory allocation and optimization: recycling instances where
 possible is also a good idea.)

 If somebody knows a good explanation about the when and how of the
 AVM2 JIT compiler, I'd be curious. The same goes for a table that
 shows relative performance of stuff the renderer does -- like with
 alpha vs. without, if rendering time grows linear with the number of
 pixels, how much time is wasted on DisplayObjects outside of the
 visible Stage, stuff like that.

 Mark





 On Wed, Jul 30, 2008 at 9:05 PM, Kerry Thompson [EMAIL PROTECTED]
 wrote:
  Mark Winterhalder wrote:
 
  Nitpicking, but just as anything digital the SWF opcodes essentially
  are 1s and 0s, too. :)
 
  Fair enough. Following that to its logical conclusion, _everything_ on
 your
  computer is 1s and 0s, including the text in this email ^_^
 
  You clearly understand what I was saying, Mark, but just a brief
  reiteration: compiled ActionScript has to be interpreted by the VM, which
 is
  _always_ slower than compiling directly to machine language.
 
  When I was doing Director full time, I ran some tests that showed C++ to
 run
  up to 400 times as fast as Lingo. I lobbied for years to get a true
  machine-language compiler for Lingo, at least for desktop apps. I was
 struck
  by how few developers understood the implications, and without other
  developers clamoring for the need for speed, Macromedia never went there.
  Director could have been a major player in the 3D game world.
 
  And don't tell me that Director 3D is fast enough. Hard-core gamers buy
  $8,000 machines to squeeze every last fps out of their games. With
 lights,
  shaders, high-poly objects, multiple cameras, Director is just not fast
  enough for a Quake or Doom LAN party. And, of course, neither is Flash.
 
  Anyway, the new VM supports JIT compilation to native machine code. I
  must admit I don't know if /all/ code gets JIT compiled or only
  hotspots, and I don't know if it will be recompiled for each use to
  hardcode variables, but that would also have implications.
 
  One major implication would be in loops. The complier would  have no way
 of
  knowing if an array would change length in a loop, for example, so it
  couldn't hard code the length.
 
  Cordially,
 
  Kerry Thompson
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Transition Out direction

2008-07-30 Thread J.C. Berry
Hello all,
This is a short question. I have searched for it for a few days now, but
have not even seen a hint of an answer. (I think perhaps the answer lies in
understanding the Transition Manager better?) What I need is to direct which
way a Transition Out goes. There is a Transition In accompanying property,
startPoint:, that can determine from where the object transitions in, but
this ability is not available apparently if you want to direct toward which
way a Transition Out would go. Can anyone give me a clue? TIA

-- 
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
[EMAIL PROTECTED]
I think the real reason the Extropy Institute closed is because Ayn Rand
rose from her cryo-sleep -digibrill

( @ o )
/ | | | | \ Chumby.com

---

This E-mail is covered by the Electronic Communications Privacy Act, 18
U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.

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


Re: [Flashcoders] faster, longer, better ... for programming maniaks

2008-07-30 Thread Mark Winterhalder
On Wed, Jul 30, 2008 at 11:02 PM, Juan Pablo Califano
[EMAIL PROTECTED] wrote:
 Check these slides:

 http://www.onflex.org/ACDS/AS3TuningInsideAVM2JIT.pdf

 From page 43:

 * We make a simple hotspot-like decision about whether to interpret or JIT
 * Initialization functions ($init, $cinit) are interpreted
 * Everything else is JIT
 * Upshot: Don't put performance-intensive code in class initialization

Thanks for the link, but I was hoping for something more specific,
like an article that explains when the compilation happens. For
example, a method could be compiled initially, when it first runs, or
each time it gets called.

I'm just curious, it's not important to know.

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


[Flashcoders] huge html file

2008-07-30 Thread Alan Neilsen
I am revisiting a fla I worked on a couple of years ago (Flash 8) and have 
upgraded it and saved and published it in Flash CS3. For some reason I end up 
with a html file that is 2MB which is full of paragraph text from the swf, with 
each paragraph repeated in the html file 120 times. What am I doing wrong to 
cause that to happen?

This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Modifying movieclip property kills tween

2008-07-30 Thread Boon Chew
 
Hmm, this doesn't make sense.  The property of an object should be allowed to 
change since it's not changed during an actual tween.  Also, the property 
involved is not what's being tweened, so why would it nullify a tween done on 
it at a different time?
 
- boon

--- On Wed, 7/30/08, Helmut Granda [EMAIL PROTECTED] wrote:

From: Helmut Granda [EMAIL PROTECTED]
Subject: Re: [Flashcoders] Modifying movieclip property kills tween
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Date: Wednesday, July 30, 2008, 1:49 PM

This is the proper behavior since you are overriding the properties of the
object itself. Such as if you were overriding the x, y, scale properties.
You can wrap the object into a container and edit the properties of the
container that then will be reflected into its child, in this case the
box.


On Wed, Jul 30, 2008 at 2:13 PM, Boon Chew [EMAIL PROTECTED] wrote:

 Hi all, I ran into something strange whereby if I modify a movieclip's
 property (say alpha), it would kill the tween that will take place later
 that involves the movieclip.  Wonder if anyone has run into this?

 1) In a test FLA, create a movieclip called test.  Inside
test, create
 two frames, start on frame 2 and end on whatever
(say frame 30).
 2) Put a movieclip called box on timeline and tween it from
start to
 end.
 3) In the main timeline, add this:
 stage.addEventListener(MouseEvent.MOUSE_DOWN, click);

 function click(event:MouseEvent):void
 {
 test.box.alpha = 1;  // -- changing alpha value causes the tween
to
 stop working, comment this out and tween works
 test.gotoAndPlay(start);  // tween test.box by moving it
across the
 stage
 }


 - boon




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




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




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