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

2008-08-23 Thread chas warn
The tool you've got in front of you will tell you everything you need to
know.  Give or take.

On Fri, Aug 22, 2008 at 1:40 AM, allandt bik-elliott (thefieldcomic.com) 
[EMAIL PROTECTED] wrote:

 so here's a question - if you have spent any amount of time doing the job,
 would you consider going back and getting degree?

 On Fri, Aug 22, 2008 at 3:26 AM, Helmut Granda [EMAIL PROTECTED]
 wrote:

  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
 
 ___
 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 relatedto computer science?

2008-08-23 Thread Eamonn Faherty
I have a computer science degree and I think it is so valuable.  

The things I learnt on my course help me with my developing all the
time.  

From what I have seen (which is fairly limited) I think being taught
formally gives you a different attitude towards developing and learning
new languages.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of chas
warn
Sent: 23 August 2008 09:52
To: Flash Coders List
Subject: Re: [Flashcoders] how many coders here actually have a degree
relatedto computer science?

The tool you've got in front of you will tell you everything you need to
know.  Give or take.

On Fri, Aug 22, 2008 at 1:40 AM, allandt bik-elliott (thefieldcomic.com)

[EMAIL PROTECTED] wrote:

 so here's a question - if you have spent any amount of time doing the
job,
 would you consider going back and getting degree?

 On Fri, Aug 22, 2008 at 3:26 AM, Helmut Granda
[EMAIL PROTECTED]
 wrote:

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

2008-08-23 Thread Hans Wichman
That is true, although it's hard to see how your live would be if you'd
taken 'that other road' :)

On Sat, Aug 23, 2008 at 12:11 PM, Eamonn Faherty [EMAIL PROTECTED]wrote:

 I have a computer science degree and I think it is so valuable.

 The things I learnt on my course help me with my developing all the
 time.

 From what I have seen (which is fairly limited) I think being taught
 formally gives you a different attitude towards developing and learning
 new languages.


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of chas
 warn
 Sent: 23 August 2008 09:52
 To: Flash Coders List
 Subject: Re: [Flashcoders] how many coders here actually have a degree
 relatedto computer science?

  The tool you've got in front of you will tell you everything you need to
 know.  Give or take.

 On Fri, Aug 22, 2008 at 1:40 AM, allandt bik-elliott (thefieldcomic.com)
 
 [EMAIL PROTECTED] wrote:

  so here's a question - if you have spent any amount of time doing the
 job,
  would you consider going back and getting degree?
 
  On Fri, Aug 22, 2008 at 3:26 AM, Helmut Granda
 [EMAIL PROTECTED]
  wrote:
 
   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
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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


[Flashcoders] E4X case sensitivity

2008-08-23 Thread Pavel Krůšek

Hi List,

E4X is case sensitive, is possible to disable case sensitivity for  
searching?


thanks,

Pavel

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


[Flashcoders] Fading previously-drawn lines

2008-08-23 Thread Arka Roy
Hello,

I am a Flash newbie, but an experienced programmer (C/C++).

My requirement is to have an arrowhead traveling along a specific path on
the stage, leaving a trail behind.  As the arrowhead moves along, the trail
left behind needs to progressively fade.  The oldest part starts fading
first, so it is always the most faded.

By the time the arrowhead reaches its destination the oldest part of the
trail, furthest from the arrowhead, should be quite transparent, maybe an
alpha value of 10% or so, and the newest part of the trail, adjacent to
the arrowhead, should be a solid 100%.

The motion of the arrowhead was made by an animator.  I need to work with
that.

I am currently doing this as follows:
1. I start out by initializing a Shape, with a thick solid (red) line style.
2. I set the drawing pen position at the initial position of the arrowhead
using moveTo()
3. One each ENTER_FRAME event, I use lineTo() to draw a line to the current
position of the arrowhead.

And so on.

So what I would like to do is in each frame, after several frames have
elapsed, is to start fading the oldest line segment, then a couple of frames
later start fading the second-oldest, while continuing to further fade the
oldest, etc.

Is it possible to access the older lines?  I know how to fade the entire
Shape (trapezoid?) but not specific segments.

I tried the method of creating a new Shape every frame, just a line segment,
that I accumulate in an array.  That way I can fade them all separately
according to how old they are.  However the problem I had with this was that
the lines end up overlapping at a point, because I was doing the following.

Frame n:
create new segment
moveTo( 100, 100 )  // the previous position of the arrowhead
lineTo( 104, 104 )  // the current position of the arrowhead

Frame n + 1:
create new segment
moveTo( 104, 104 )  // the previous position of the arrowhead
lineTo( 100, 108 )  // the current position of the arrowhead

So both of the lines share a point at (104, 104).  As I fade out the lines
by decreasing their alpha values, it seems at this shared spot the alpha
values have an additive effect, and the spot is more opaque.  So the end
result is that while the path is incrementally faded as I want it to be, it
is punctuated with these thick spots.  I don't want those, I just want a
smooth continuous incremental fading.

Is there a way to access the pixels of that spot, where the two lines
intersect, and fade them to some transparency level?  The lines are a few
pixels thick (maybe 2 or 3 or more, depending on what the client likes) so
that interecting point is not just a single pixel.

I also tried staggering the starting point of each new segment, based on the
direction of the line, so that it doesn't overlap with the previous line.
But this was really ugly and jagged looking.  There may be an intelligent
algorithm or heuristic for this but I don't have the time or budget to make
a big deal of this.


Here is a link to help clarify things.  It doesn't satisfy the requirement,
since there is no incremental fading, it is all equally faded except for the
line attached to the arrowhead.  It also doesn't exactly employ the methods
I describe above, it is just one of my many trials incorporating a few
technquies.  I am just linking it to help this discussion.  If, on the other
hand, it is confusing please ignore it.
http://arka.sunnyday.jp/script/escort/hokkaido_01.html

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


Re: [Flashcoders] Fading previously-drawn lines

2008-08-23 Thread Zeh Fernando

So what I would like to do is in each frame, after several frames have
elapsed, is to start fading the oldest line segment, then a couple of frames
later start fading the second-oldest, while continuing to further fade the
oldest, etc.
(...)
I tried the method of creating a new Shape every frame, just a line segment,
that I accumulate in an array.  That way I can fade them all separately
according to how old they are.  However the problem I had with this was that
the lines end up overlapping at a point, because I was doing the following.


In the end you'll never be able to use separate shapes. While you can 
change the caps of the lines, there's no easy way to avoid overlapping.


One easier solution is this: when you create each line, instead of 
creating a vector shape and adding it do a display object, you draw the 
line to a bitmap (create the shape, .draw it to the container bitmap, 
then remove the original line).


You'll need the bitmap to be added to a container. It works as a video 
buffer of sorts.


The trick is that after each line is drawn, you have to change the 
bitmap color accordingly, either by subtracting something from the alpha 
value of all pixels or by gradually filling it by another tinting. How 
you do this is up to you, there's a number of different ways to achieve 
the result (like adding the Bitmap to adisplayobjectcontainer, setting 
is alpha to 90%, .draw()ing it to a new bitmap, and replacing the old 
bitmap with the new one).


Also, depending on how you control the recoloring, you can chose to make 
it work like a relative fade (each line gets weaker and weaker but never 
disappears completely) or an absolute fade (each line disappears after X 
steps). It all depends on the kind of color/alpha transformation you 
apply to the buffer bitmap on every step.


You can also do some crazy tricks by using bitmap copies of every line 
and removing a shape with the mask of the new line from the old line, 
but that'd be harder than simply having a single bitmap copy which has 
gradual recoloring applied to it.


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


Re: [Flashcoders] E4X case sensitivity

2008-08-23 Thread Keith

You could use Regular Expressions in your filtering.
Here's my ramblings:
http://keith-hair.net/blog/2008/06/01/case-insensitive-e4x-filtering/

-- Keith H --
www.keith-hair.net




Pavel Krůšek wrote:

Hi List,

E4X is case sensitive, is possible to disable case sensitivity for 
searching?


thanks,

Pavel

___
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] E4X case sensitivity

2008-08-23 Thread Pavel Krůšek

Thank you very much, Keith!

I have already solved this problem with the help of your blog- 
articleCase-insensitive E4X filtering before an hour  :)


Thanks for awesome article

Pavel


On Aug 23, 2008, at 8:35 PM, Keith wrote:


You could use Regular Expressions in your filtering.
Here's my ramblings:
http://keith-hair.net/blog/2008/06/01/case-insensitive-e4x-filtering/

-- Keith H --
www.keith-hair.net




Pavel Krůšek wrote:

Hi List,

E4X is case sensitive, is possible to disable case sensitivity for  
searching?


thanks,

Pavel

___
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] load many XML files problem

2008-08-23 Thread Pavel Krůšek

Hi List,

i am trying to load many XML files, all at once (altogether 90 files).
Class PreloadXML works fine, because only cca 40 files are loaded.
I don't understand it No error message, loading simply ends...

thanks,

Pavel



package app.site
{
import flash.display.Sprite;
import flash.events.*;
import flash.net.*;

public class PreloadXML extends Sprite
{
private var _siteXML:XMLList;
private var _xmlLoader:URLLoader;
private var _loadCounter:Number;
private var _totalCounter:Number;

public function PreloadXML( data:XMLList )
{
_siteXML = data;
_loadCounter = 0;
_totalCounter = data.length();

_xmlLoader = new URLLoader();
			_xmlLoader.addEventListener( Event.COMPLETE, onLoadFile, false, 0,  
true );
			_xmlLoader.addEventListener( IOErrorEvent.IO_ERROR, onIOError,  
false, 0, true );


loadXML();
}

private function loadXML() : void
{   
			_xmlLoader.load( new URLRequest( data/pages/+  
_siteXML[_loadCounter] +.xml ) );

trace(data/pages/+ _siteXML[_loadCounter] +.xml);
}


private function onLoadFile(e:Event) : void
{

try {
if( _loadCounter   _totalCounter - 1)
{   
_loadCounter += 1;
loadXML();
}else{

_xmlLoader.removeEventListener(Event.COMPLETE, onLoadFile);
 			_xmlLoader.removeEventListener(IOErrorEvent.IO_ERROR,  
onIOError);

trace(done);
}

} catch ( err:Error ) {
		 trace( Could not parse loaded content as XML:\n +  
err.message );

}
}


private function onIOError( evt:IOErrorEvent ) : void
{
			trace( An error occurred when attempting to load the XML.\n +  
evt.text );

}

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