[Flashcoders] Flash - Hardware Interfacing/Communication

2008-08-21 Thread Daniel Boey
Hi people,

I've got a project that requires hardware communication between a Flash
kiosk-projector and a few hardwares (eg: scanner, biometric fingerprint
reader, smart card reader).
What is required is that all this are to be operated seamlessly without any
other application dialogs popping up over the Flash interface.
After days and weeks of scouring the net, I wasn't able to even stumble upon
any clue on this.

Is this even possible at all? If yes, can Flash handle all the communication
between APIs natively or what other ways is required to go about it?

I do hope there'd reply in spite of how busy you all may be.

-- 
Thanks  Best regards,
Daniel Boey
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 replacing Textfield Constructor

2008-08-21 Thread Dennis - I Sioux

Hey Jason and Ekameleon,

Thanks for the reply.

With the old AS2 code i used.. i could add extra code to the textfields 
constructor(without destroying it :D ).
This resulted that both textfields by code and the ones put on the stage in 
the IDE will have an altered constructor.


This was handy.. because some departments here favour to use the scripted 
onces.. and other to place them on stage in the IDE. And i need to collect 
all the textfields for my own actions (that was done with code in the new 
constructor).


So if i use a custom textfield class.. the textfields placed on the stage 
won't give a signal when they are initialised.

Now... i could make a component to catch both senario's.. but i rather not..

Any other thoughts?

Thanks

Dennis
Isioux


- Original Message - 
From: ekameleon [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, August 20, 2008 5:37 PM
Subject: Re: [Flashcoders] AS3 replacing Textfield Constructor



Hello :)

In AS2 or AS1 you can't override the TextField class... if you do that you
destroy the native class :)

You must use the prototype hack with the keyword __proto__ to change the
nature of your instances

Example :

_global.MyTextField = function()
{
   super();
   //
};

MyTextField.prototype.__proto__ = TextField.prototype ;

MyTextField.prototype.myCustomMethod = function() {}



var tf:TextField = createTextField(field, 1, 10,10,250,250) ;

// Hack the native instance with your custom class
tf.__proto__ = MyTextField.prototype ; // hack the prototype
MyTextField.call(tf) ; // launch the constructor

Now .. you can create a global function or a class, an helper to simplify
this hack :)

eKA+ :)





2008/8/20 Dennis - I Sioux [EMAIL PROTECTED]


Hey Guys,

I'm an experienced AS2 coder but i'm finally starting in AS3 and want to
port a piece of code that alters the Textfield constructor.
I've tried many things.. but think i'm overlooking something.

My original AS2 code was:

// Alter the constructor of the Textfield
var bfrTextField = TextField;
var bfrStyleSheet = TextField.StyleSheet;

_global.TextField = function() {
super();
// Do extra code
};
// reattach the stylesheet class
   _global.TextField.StyleSheet = function() {
super();
};

TextField.prototype = new bfrTextField();
TextField.StyleSheet.prototype = new bfrStyleSheet();
delete bfrTextField;
delete bfrStyleSheet;


Any help would be appreciated.

With kind regards,

Dennis
Isioux
___
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

__ NOD32 3373 (20080821) Informatie __

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




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


Re: [Flashcoders] Flash - Hardware Interfacing/Communication

2008-08-21 Thread Ian Thomas
Hi Daniel,
   A number of Flash wrappers (i.e. programs to turn Flash movies into
.exe files) can handle extensions (.dlls) written in native code. So
you could write or buy extensions to interface with almost anything at
a system level - without additional dialogs etc.

  Northcode's SWFStudio does it: http://www.northcode.com/swfstudio.php

  SWHX also does it: http://www.haxe.org/com/libs/swhx

  And I know Zinc (much as I despise it's instability and bugginess)
does it: http://www.multidmedia.com/software/zinc/

 HTH,
   Ian

On Thu, Aug 21, 2008 at 7:18 AM, Daniel Boey [EMAIL PROTECTED] wrote:
 Hi people,

 I've got a project that requires hardware communication between a Flash
 kiosk-projector and a few hardwares (eg: scanner, biometric fingerprint
 reader, smart card reader).
 What is required is that all this are to be operated seamlessly without any
 other application dialogs popping up over the Flash interface.
 After days and weeks of scouring the net, I wasn't able to even stumble upon
 any clue on this.

 Is this even possible at all? If yes, can Flash handle all the communication
 between APIs natively or what other ways is required to go about it?

 I do hope there'd reply in spite of how busy you all may be.

 --
 Thanks  Best regards,
 Daniel Boey
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Flash - Hardware Interfacing/Communication

2008-08-21 Thread Daniel Boey
Hi Ian,

Thanks for the reply.

I failed to mention that I be deploying the kiosk with Adobe AIR and because
of that wrappers wouldn't be able to support it as per Adobe's licensing for
the runtime, unless I'm mistaken which I hope I am.

- Daniel -

On Thu, Aug 21, 2008 at 3:48 PM, Ian Thomas [EMAIL PROTECTED] wrote:

 Hi Daniel,
   A number of Flash wrappers (i.e. programs to turn Flash movies into
 .exe files) can handle extensions (.dlls) written in native code. So
 you could write or buy extensions to interface with almost anything at
 a system level - without additional dialogs etc.

  Northcode's SWFStudio does it: http://www.northcode.com/swfstudio.php

  SWHX also does it: http://www.haxe.org/com/libs/swhx

  And I know Zinc (much as I despise it's instability and bugginess)
 does it: http://www.multidmedia.com/software/zinc/

  HTH,
   Ian

 On Thu, Aug 21, 2008 at 7:18 AM, Daniel Boey [EMAIL PROTECTED] wrote:
  Hi people,
 
  I've got a project that requires hardware communication between a Flash
  kiosk-projector and a few hardwares (eg: scanner, biometric fingerprint
  reader, smart card reader).
  What is required is that all this are to be operated seamlessly without
 any
  other application dialogs popping up over the Flash interface.
  After days and weeks of scouring the net, I wasn't able to even stumble
 upon
  any clue on this.
 
  Is this even possible at all? If yes, can Flash handle all the
 communication
  between APIs natively or what other ways is required to go about it?
 
  I do hope there'd reply in spite of how busy you all may be.
 
  --
  Thanks  Best regards,
  Daniel Boey
  ___
  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




-- 
Thanks  Best regards,
Daniel Boey
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash - Hardware Interfacing/Communication

2008-08-21 Thread Ian Thomas
Hi Daniel,

There isn't an easy solution for AIR - can I ask why you're using AIR
if it doesn't do what you want it to?

There _is_ a way of doing it with AIR, but it's tricky.

What you'd need to do is to create a standalone socket server on your
host machine that interfaces with the relevant hardware; then talk to
that server from AIR by opening a socket to it.

HTH,
   Ian

On Thu, Aug 21, 2008 at 9:12 AM, Daniel Boey [EMAIL PROTECTED] wrote:
 Hi Ian,

 Thanks for the reply.

 I failed to mention that I be deploying the kiosk with Adobe AIR and because
 of that wrappers wouldn't be able to support it as per Adobe's licensing for
 the runtime, unless I'm mistaken which I hope I am.

 - Daniel -

 On Thu, Aug 21, 2008 at 3:48 PM, Ian Thomas [EMAIL PROTECTED] wrote:

 Hi Daniel,
   A number of Flash wrappers (i.e. programs to turn Flash movies into
 .exe files) can handle extensions (.dlls) written in native code. So
 you could write or buy extensions to interface with almost anything at
 a system level - without additional dialogs etc.

  Northcode's SWFStudio does it: http://www.northcode.com/swfstudio.php

  SWHX also does it: http://www.haxe.org/com/libs/swhx

  And I know Zinc (much as I despise it's instability and bugginess)
 does it: http://www.multidmedia.com/software/zinc/

  HTH,
   Ian

 On Thu, Aug 21, 2008 at 7:18 AM, Daniel Boey [EMAIL PROTECTED] wrote:
  Hi people,
 
  I've got a project that requires hardware communication between a Flash
  kiosk-projector and a few hardwares (eg: scanner, biometric fingerprint
  reader, smart card reader).
  What is required is that all this are to be operated seamlessly without
 any
  other application dialogs popping up over the Flash interface.
  After days and weeks of scouring the net, I wasn't able to even stumble
 upon
  any clue on this.
 
  Is this even possible at all? If yes, can Flash handle all the
 communication
  between APIs natively or what other ways is required to go about it?
 
  I do hope there'd reply in spite of how busy you all may be.
 
  --
  Thanks  Best regards,
  Daniel Boey
  ___
  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




 --
 Thanks  Best regards,
 Daniel Boey
 ___
 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] :: uploading Fonts into a live site--possible?

2008-08-21 Thread Juan Delgado
Haven't done it myself, but it should be possible.

Just put the *.ttf file on the server (via Flash/HTML and backend, no
AIR needed) and then run swfmill *on the server* to create the swf.
You need of course full access to the server to install swfmill.

Cheers!

Juan

On Wed, Aug 20, 2008 at 10:17 PM, artur [EMAIL PROTECTED] wrote:
 just wondering if anyone achieved this successfully yet?
 from both a mac and pc.

 is this doable via Air?
 basically embed the user's local font into a shared swf.
 then upload and share that swf's embedded font set with the main site swf? (
 after recompiling everything on the server of course )

 thanks

 --

 *artur :.*

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

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




-- 
Juan Delgado - Zárate
http://zarate.tv
http://dandolachapa.com
http://loqueyosede.com

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


Re: [Flashcoders] Flash - Hardware Interfacing/Communication

2008-08-21 Thread eric e. dolecki
Yup, sockets are your friend. You don't need a wrapper. You can get some
software that can open a bunch of ports too serving as your bridge.
(Comfoolery does this but only on a application instance per COM port) - get
one that allows virtual ports if you need it.

On Thu, Aug 21, 2008 at 4:32 AM, Ian Thomas [EMAIL PROTECTED] wrote:

 Hi Daniel,

 There isn't an easy solution for AIR - can I ask why you're using AIR
 if it doesn't do what you want it to?

 There _is_ a way of doing it with AIR, but it's tricky.

 What you'd need to do is to create a standalone socket server on your
 host machine that interfaces with the relevant hardware; then talk to
 that server from AIR by opening a socket to it.

 HTH,
Ian

 On Thu, Aug 21, 2008 at 9:12 AM, Daniel Boey [EMAIL PROTECTED] wrote:
  Hi Ian,
 
  Thanks for the reply.
 
  I failed to mention that I be deploying the kiosk with Adobe AIR and
 because
  of that wrappers wouldn't be able to support it as per Adobe's licensing
 for
  the runtime, unless I'm mistaken which I hope I am.
 
  - Daniel -
 
  On Thu, Aug 21, 2008 at 3:48 PM, Ian Thomas [EMAIL PROTECTED] wrote:
 
  Hi Daniel,
A number of Flash wrappers (i.e. programs to turn Flash movies into
  .exe files) can handle extensions (.dlls) written in native code. So
  you could write or buy extensions to interface with almost anything at
  a system level - without additional dialogs etc.
 
   Northcode's SWFStudio does it: http://www.northcode.com/swfstudio.php
 
   SWHX also does it: http://www.haxe.org/com/libs/swhx
 
   And I know Zinc (much as I despise it's instability and bugginess)
  does it: http://www.multidmedia.com/software/zinc/
 
   HTH,
Ian
 
  On Thu, Aug 21, 2008 at 7:18 AM, Daniel Boey [EMAIL PROTECTED] wrote:
   Hi people,
  
   I've got a project that requires hardware communication between a
 Flash
   kiosk-projector and a few hardwares (eg: scanner, biometric
 fingerprint
   reader, smart card reader).
   What is required is that all this are to be operated seamlessly
 without
  any
   other application dialogs popping up over the Flash interface.
   After days and weeks of scouring the net, I wasn't able to even
 stumble
  upon
   any clue on this.
  
   Is this even possible at all? If yes, can Flash handle all the
  communication
   between APIs natively or what other ways is required to go about it?
  
   I do hope there'd reply in spite of how busy you all may be.
  
   --
   Thanks  Best regards,
   Daniel Boey
   ___
   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
 
 
 
 
  --
  Thanks  Best regards,
  Daniel Boey
  ___
  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] Quick Delegate AS2 question

2008-08-21 Thread Ali Drongo
Hi there, I'm using the Delegate class and can't figure out how to  
call methods of another class.


I think there is an easy answer to this, any suggestions whole- 
heartedly appreciated.

Thanks,
Ali


Here is the syntax I'm using:

import Thermometer

class Animator{

var therno:Thermometer

function Animator(){
thermo = _global.timeline.thermometer;
}

private function startNextQ():Void {
		Delegate.create(thermo, allowInteraction) // error: There is no  
property with the name 'allowInteraction'.

thermo.allowInteraction(true); //doesn't work }
}
}

///

btw I don't know if you guys are already aware of this but I came  
across a neat way to pass vars using Delegate from this blog http://animateinexile.blogspot.com/2008/01/i-delegate-class-caller.html



//import the Delegate class
import mx.utils.Delegate;

//add a variable to pass to your handler
something.onPress = Delegate.create(this, someHandler);
something.onPress.myVariable = pass me;

//now to access that variable use caller
function someHandler(){
var passedVar= arguments.caller.myVariable;
trace(passedVar);
}

thanks to luftbuefel for that!



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


Re: [Flashcoders] Quick Delegate AS2 question

2008-08-21 Thread Ian Thomas
On Thu, Aug 21, 2008 at 3:01 PM, Ali Drongo [EMAIL PROTECTED] wrote:
 Hi there, I'm using the Delegate class and can't figure out how to call
 methods of another class.

  Delegate.create(thermo, allowInteraction)

should become

  Delegate.create(thermo, thermo.allowInteraction)

And this line:
 var therno:Thermometer

should probably be:
 var thermo:Thermometer

HTH,
  Ian


 I think there is an easy answer to this, any suggestions whole-heartedly
 appreciated.
 Thanks,
 Ali


 Here is the syntax I'm using:

 import Thermometer

 class Animator{

var therno:Thermometer

function Animator(){
thermo = _global.timeline.thermometer;
}

private function startNextQ():Void {
Delegate.create(thermo, allowInteraction) // error: There is
 no property with the name 'allowInteraction'.
thermo.allowInteraction(true); //doesn't work }
}
 }

 ///

 btw I don't know if you guys are already aware of this but I came across a
 neat way to pass vars using Delegate from this blog
 http://animateinexile.blogspot.com/2008/01/i-delegate-class-caller.html


 //import the Delegate class
 import mx.utils.Delegate;

 //add a variable to pass to your handler
 something.onPress = Delegate.create(this, someHandler);
 something.onPress.myVariable = pass me;

 //now to access that variable use caller
 function someHandler(){
 var passedVar= arguments.caller.myVariable;
 trace(passedVar);
 }

 thanks to luftbuefel for that!



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

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


[Flashcoders] Googlebot got confused when seeking Flash requests

2008-08-21 Thread Matheus Gorino
Funny thing, but seems that Googlebot got confused when crawling my Flash site.

About 4 weeks ago I created a test website to see exactly how Google
indexes a Flash site with contents coming from diferent sources:
http://seo.matheusgorino.com/
4 weeks later the only thing that Google has indexed is the initial
string of my preloader TextField: 0″:
http://www.google.com/search?q=site%3Aseo.matheusgorino.com

I'm sure that Google bot has gone trough my website a lot o times
because I'm getting emailed everytime he does it. Also, he has
correctly crawled another test version with alternative content that I
have created in the same day of the simple version:
http://www.google.com/search?q=site%3Aseofull.matheusgorino.com

Then today I acessed the Google Webmaster Tools and saw that Google is
making a mistake when accessing my main.swf. He is trying to access it
on http://seo.matheusgorino.com/http://seo.matheusgorino.com/main.swf
witch is obviously wrong.
My test website has a main_loader.swf embed on the html code that
preloads and then add to stage the main.swf, which is my main
application file.
As you can see on http://matheusgorino.com/MainLoader.as the only
thing that I'm doing is an innocent new URLRequest(main.swf)…
nothing special then.

The Google Webmaster Tools report screen is at:
http://matheusgorino.com/crawl.gif

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


Re: [Flashcoders] Quick Delegate AS2 question

2008-08-21 Thread Ian Thomas
On Thu, Aug 21, 2008 at 3:26 PM, Ali Drongo [EMAIL PROTECTED] wrote:


 I presumed as I had given the scope the method would be called in that
 object.

Yeah - it's because the compiler doesn't know what's inside a Delegate
or how to use it. It's just looking at the word 'allowInteraction' and
trying to figure out what it is. Because allowInteraction isn't a
known variable/method/property of the current class, the compiler
doesn't know what it is and so throws an error.
thermo.allowInteraction actually says to the compiler 'the method or
property called allowInteraction on the object thermo' - the compiler
will check out thermo's type and look up allowInteraction there, find
it and be happy.

Hope that explains it. :-)

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


[Flashcoders] RE: how many coders here actually have a degree related to computer science?

2008-08-21 Thread Kevin Mcfarland
Like Kerry, I come from the world of Director (Adobe/Macromedia  
Director), with 15+ year's experience there. I have a degree in  
English but never had a problem landing a job, probably because back  
in the early days of the 90's, good help was hard to find, and then  
as I gained experience in Director,  that made it easier.


Recently I've been learning AS3 and trying to get Flash gigs, and  
I've had a few job interviews which have been illuminating. I don't  
know if this is typical, but in both interviews there were some tests  
I had to do. On one interview it was more casual, just a series of  
OOP design questions on a whiteboard. The other interview however  
they stuck me in a little room and gave me a few hours to program  
Conway's Game of Life. This was a surprise (!) to me which I was not  
prepared for. I was able to get it working, however my solution was  
not optimal. I read about it later (Wikipedia has an entry on it) and  
apparently I took the basic route of just using a multidimensional  
array, which is not very scaleable. I heard later from someone else  
that the Game of Life is often used in Comp Sci studies as an example  
problem.


My point is that many years later now, in middle age, I am feeling  
the effects of not having a degree in Comp Sci. Don't know if this is  
a permanent drawback or just temporary while I try to reinvent myself  
as an AS3 coder. I know I have a good programmer mindset, I've been  
told I have good OOP design skills, and I've always been interested  
in design patterns. However anything beyond basic math is a weak  
point for me. I have a feeling I would have done better in both  
interviews if I had more of a traditional Comp Sci background.


FWIW,
KMc

p.s. if anyone has any San Francisco/bay area gigs, I'm interested ;)  
esp salaried

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


Re: [Flashcoders] Flash - Hardware Interfacing/Communication

2008-08-21 Thread Kevin Mcfarland
Daniel - have you thought about using Director? One of the few things  
its still useful for (kiosks / communication with external devices).


OTOH the current version has so many problems and Director in general  
seems on its way out, so that I can't blame you for wanting to go the  
Flash route, probably safer in the long run if you can get it working.

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


Re: [Flashcoders] how many coders here actually have a degree related to computer science?

2008-08-21 Thread chas warn
One guy may write a function in a few lines - another may take pages of code
to do the exact same thing. Who has the more logical brain? Who is the
better programmer? My degree and background is in business and accounting.
That fundamental knowledge is key to understanding a business system and to
writing an effective accounting program - you gotta know the subject first.
A lot of guys with cs degrees are so caught up in theory they can't see the
forest through the trees. But obviously - some are pretty darn good.

On Tue, Aug 19, 2008 at 2:25 PM, Anthony Pace [EMAIL PROTECTED]wrote:

 Do you have a degree related to computer science? if not, how difficult is
 it getting jobs programming AS3 without one?

 I need a a stable job ASAP; yet, I have two more years to go before I
 complete my degree in computer science; thus, I am wondering how difficult
 it would be to find a programming related job without a degree?  Do all I
 need is a portfolio, or does the piece of paper really make the difference
 at an entry level?

 I also have a background in fine art if that helps.

 Thanks,
 Anthony Pace
 ___
 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] how many coders here actually have a degree related to computer science?

2008-08-21 Thread Kerry Thompson
Chas Warn wrote:

 One guy may write a function in a few lines - another may take pages of
code
 to do the exact same thing. Who has the more logical brain? Who is the
 better programmer? 

I'm not sure that's a good criterion. I'm more interested in how well the
code performs, how well it is documented, and how easy it is to maintain.
Sometimes shorter code == more obscure code. Not always, of course--often
shorter code == a more elegant solution.

There used to be contests to see who could cram the most C code into one
line. I have serious doubts about the value of that contest. Code should be
readable, documented, and maintainable. 

Also, sometimes more code == faster code. Consider looping through an
array--if you use an extra line to store the count, a for loop should run
faster than if you use something like myArray.count as an argument in the
for loop.

Cordially,

Kerry Thompson

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


Re: [Flashcoders] how many coders here actually have a degree related to computer science?

2008-08-21 Thread Helmut Granda


 I've been a hiring manager for companies such as Sony and Disney, and the
 first thing I look at is experience, then a degree--any degree. Though a
 degree in a relevant field is nice, the fact that you have a degree shows
 that you're motivated, and can stick with something and see it through to
 the end.


I partially agree with this point. There are many factors and circumstances
that can push some one toward not acquiring a degree while building
a career. While this may not be all the time if you notice some older people
(by that I mean 60+) never had a formal education, yet their drive allowed
them to make a name for themselves.

Let me give you an illustration so that I can make my point clear in case my
words are not able to explain precisely what I am talking about. I know some
one that had it made one day his parents flew overseas for vacation and
during the trip they died. He had a choice, stay in school or take a job and
help his brothers to finish their school. He gave up school and all his
brothers and sisters graduated from college, yet he did not finish school.
Today he is the owner of his own company and you may never see him come over
to your desk to ask you for a job. But i still feel that not having a degree
shows that you are not motivated.

my 1 cent :)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how many coders here actually have a degree related to computer science?

2008-08-21 Thread chas warn
Good points Kerry.

On Thu, Aug 21, 2008 at 1:07 PM, Kerry Thompson [EMAIL PROTECTED]wrote:

 Chas Warn wrote:

  One guy may write a function in a few lines - another may take pages of
 code
  to do the exact same thing. Who has the more logical brain? Who is the
  better programmer?

 I'm not sure that's a good criterion. I'm more interested in how well the
 code performs, how well it is documented, and how easy it is to maintain.
 Sometimes shorter code == more obscure code. Not always, of course--often
 shorter code == a more elegant solution.

 There used to be contests to see who could cram the most C code into one
 line. I have serious doubts about the value of that contest. Code should be
 readable, documented, and maintainable.

 Also, sometimes more code == faster code. Consider looping through an
 array--if you use an extra line to store the count, a for loop should run
 faster than if you use something like myArray.count as an argument in the
 for loop.

 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] how many coders here actually have a degree related to computer science?

2008-08-21 Thread Kerry Thompson
Helmut Granda wrote:

 But i still feel that not having a degree shows that you are not
motivated.

That's a good rule of thumb, and words to live by (and study by). Of course,
we can point to the exceptions--Bill Gates dropped out of Harvard, I believe
it was--but the odds are heavily in your favor with a degree. From time to
time I see reports of studies that show lifetime earnings, and, without
exception, average lifetime earnings with a degree are hundreds of thousands
of dollars more than without.

Cordially,

Kerry Thompson

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


Re: [Flashcoders] Flash - Hardware Interfacing/Communication

2008-08-21 Thread Daniel Boey
Ian / Eric,

Has there been any of such implementations carried out that I can take a
look at, even snippets of codes or any of that sort?
Unfortunately I don't have experience in this although as a programmer I can
understand the gist of what you're both telling me so far and able to
conceptualized (as much as I can) what is required. Hopefully there will be
information available that would help me get on with my way.

Kevin,

Yeah, Director did cross my mind and as you've mentioned it has laid dormant
for too long and although Adobe claims to be improving it for a next
release, I've decided to follow something that has (and most probably will
compared to Director) to continue being worked and stabilized further.

Thanks again for the replies.


On Fri, Aug 22, 2008 at 12:09 AM, Kevin Mcfarland [EMAIL PROTECTED]wrote:

 Daniel - have you thought about using Director? One of the few things its
 still useful for (kiosks / communication with external devices).

 OTOH the current version has so many problems and Director in general seems
 on its way out, so that I can't blame you for wanting to go the Flash route,
 probably safer in the long run if you can get it working.

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




-- 
Thanks  Best regards,
Daniel Boey
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] AS3 replacing Textfield Constructor

2008-08-21 Thread Merrill, Jason
Yeah, sorry, you've lost me now.  the textfields won't give a signal
when they are initialized - can you explain that?  What kind of signal
- hand signals?  Tornado siren?  I can't go out with you because I need
to stay home and wash my hair.? ;) 

Jason

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis -
I Sioux
Sent: Thursday, August 21, 2008 3:27 AM
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 replacing Textfield Constructor

Hey Jason and Ekameleon,

Thanks for the reply.

With the old AS2 code i used.. i could add extra code to the
textfields 
constructor(without destroying it :D ).
This resulted that both textfields by code and the ones put on the stage
in 
the IDE will have an altered constructor.

This was handy.. because some departments here favour to use the
scripted 
onces.. and other to place them on stage in the IDE. And i need to
collect 
all the textfields for my own actions (that was done with code in the
new 
constructor).

So if i use a custom textfield class.. the textfields placed on the
stage 
won't give a signal when they are initialised.
Now... i could make a component to catch both senario's.. but i rather
not..

Any other thoughts?

Thanks

Dennis
Isioux


- Original Message - 
From: ekameleon [EMAIL PROTECTED]
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, August 20, 2008 5:37 PM
Subject: Re: [Flashcoders] AS3 replacing Textfield Constructor


 Hello :)

 In AS2 or AS1 you can't override the TextField class... if you do that
you
 destroy the native class :)

 You must use the prototype hack with the keyword __proto__ to change
the
 nature of your instances

 Example :

 _global.MyTextField = function()
 {
super();
//
 };

 MyTextField.prototype.__proto__ = TextField.prototype ;

 MyTextField.prototype.myCustomMethod = function() {}

 

 var tf:TextField = createTextField(field, 1, 10,10,250,250) ;

 // Hack the native instance with your custom class
 tf.__proto__ = MyTextField.prototype ; // hack the prototype
 MyTextField.call(tf) ; // launch the constructor

 Now .. you can create a global function or a class, an helper to
simplify
 this hack :)

 eKA+ :)





 2008/8/20 Dennis - I Sioux [EMAIL PROTECTED]

 Hey Guys,

 I'm an experienced AS2 coder but i'm finally starting in AS3 and want
to
 port a piece of code that alters the Textfield constructor.
 I've tried many things.. but think i'm overlooking something.

 My original AS2 code was:

 // Alter the constructor of the Textfield
 var bfrTextField = TextField;
 var bfrStyleSheet = TextField.StyleSheet;

 _global.TextField = function() {
 super();
 // Do extra code
 };
 // reattach the stylesheet class
_global.TextField.StyleSheet = function() {
 super();
 };

 TextField.prototype = new bfrTextField();
 TextField.StyleSheet.prototype = new bfrStyleSheet();
 delete bfrTextField;
 delete bfrStyleSheet;


 Any help would be appreciated.

 With kind regards,

 Dennis
 Isioux
 ___
 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

 __ NOD32 3373 (20080821) Informatie __

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

 

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


Re: [Flashcoders] how many coders here actually have a degree related to computer science?

2008-08-21 Thread Helmut Granda
Right, and that is why I partially agree with the post I was referring to,
specially because life without a college is not for everyone.
Going back to my main point I still believe that not having a degree does
not necessary mean that you are not motivated.

On Thu, Aug 21, 2008 at 7:32 PM, Kerry Thompson [EMAIL PROTECTED]wrote:

 Helmut Granda wrote:

  But i still feel that not having a degree shows that you are not
 motivated.

 That's a good rule of thumb, and words to live by (and study by). Of
 course,
 we can point to the exceptions--Bill Gates dropped out of Harvard, I
 believe
 it was--but the odds are heavily in your favor with a degree. From time to
 time I see reports of studies that show lifetime earnings, and, without
 exception, average lifetime earnings with a degree are hundreds of
 thousands
 of dollars more than without.

 Cordially,

 Kerry Thompson

 ___
 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] AS3 replacing Textfield Constructor

2008-08-21 Thread Dave Watts
 Yeah, sorry, you've lost me now.  the textfields won't give 
 a signal when they are initialized - can you explain that?  
 What kind of signal
 - hand signals?  Tornado siren?  I can't go out with you 
 because I need to stay home and wash my hair.? ;) 

I would guess it means they won't raise an initialize event, because he's
not invoking super() in his subclass's constructor.

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] AS3 replacing Textfield Constructor

2008-08-21 Thread Merrill, Jason
 I would guess it means they won't raise an initialize event, because
he's
not invoking super() in his subclass's constructor.

You mean, like I suggested in my example code? ;) 


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