RE: [Flashcoders] Q: Firefox on a mac

2006-10-30 Thread Steven Sacks | BLITZ
I may be wrong, but I thought IE on Windows is pretty much the only
browser that it works absolutely correctly on.  AFAIK, other browsers
have issues including decreased performance, etc.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Q: Firefox on a mac

2006-10-30 Thread Steven Sacks | BLITZ
Check to see if wmode="transparent" in the embed tag of the Flash in the
HTML.  That may be the cause of your issue, but I'm not sure exactly
what your issue is because your description is a bit vague.  If removing
the wmode="transparent" doesn't help, can you please provide more
information or perhaps a link?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Can anyone download Flex Builder 2?

2006-10-27 Thread Steven Sacks | BLITZ
ColdFusion FTL.  :(

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Can anyone download Flex Builder 2?

2006-10-27 Thread Steven Sacks | BLITZ
Can you link me to your forum post?


BLITZ | Steven Sacks - 310-551-0200 x209

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Bbt Lists
> Sent: Friday, October 27, 2006 2:17 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Can anyone download Flex Builder 2?
> 
> Steven Sacks | BLITZ wrote:
> > http://www.adobe.com/cfusion/tdrc/index.cfm?product=flex
> >
> > I click download and it hangs for about 15 seconds before it reloads
the
> > page.  No download occurs in either IE or Firefox.  I downloaded
this
> > just fine from home last night.  Anyone else not able to download
Flex
> > Builder 2?
> >
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> I had problems downloading it too, and posted in the adobe forums and
> essentially got told there was nothing wrong with it and it must be
me.
> 
> --
> dnk
> 
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Can anyone download Flex Builder 2?

2006-10-27 Thread Steven Sacks | BLITZ
http://www.adobe.com/cfusion/tdrc/index.cfm?product=flex

I click download and it hangs for about 15 seconds before it reloads the
page.  No download occurs in either IE or Firefox.  I downloaded this
just fine from home last night.  Anyone else not able to download Flex
Builder 2?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] xml parsing problem

2006-10-27 Thread Steven Sacks | BLITZ
Or you could use XML2AS.

// XML2AS - DO NOT AUTO FORMAT!
_global.XML2AS = function(n, r) {
var a, d, k;
if (r[k=n.nodeName] == null) r = ((a=r[k]=[{}]))[d=0];
else r = (a=r[k])[d=r[k].push({})-1];
if (n.hasChildNodes()) {
if ((k=n.firstChild.nodeType) == 1) {
r.attributes = n.attributes;
for (var i in k=n.childNodes) XML2AS(k[i], r);
} else if (k == 3) {
a[d] = new String(n.firstChild.nodeValue);
a[d].attributes = n.attributes;
}
}else r.attributes = n.attributes;
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [FlashCoders] Delegates and performance

2006-10-23 Thread Steven Sacks | BLITZ
Well, if you're not changing anything in the timeline(s) of the movie
(such as those animations or new movieclips), and you're only making a
change to the classes, then you'll definitely benefit from using FLASC
for those compiles.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] EmbedFonts = true

2006-10-23 Thread Steven Sacks | BLITZ
You don't need separate textfields for bold, italics and bold italics.

You make one html textfield and in that textfield you put

r b i bi

Make b bold, i italic, and bi bold italic.

Then embed the characters you need.  :)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Converting a comma delimitted list to an array fromMySql

2006-10-20 Thread Steven Sacks | BLITZ
It used to be bad but as of Flash MX 2004, it was improved a bit.

Most of the Array methods are slow, though, when compared to other
languages.  For instance, it's faster to use myArray[x] = val than
myArray.push(val).  Shift and Unshift are extremely slow.

If you need speed for an array that you're going to be iterating over or
shuffling items around a lot in, you should consider using a
doubly-linked array.  Check Google for more information.

-Steven

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [FlashCoders] Delegates and performance

2006-10-20 Thread Steven Sacks | BLITZ
You should look into using MTASC via FLASC to compile your games.  Since
games are mostly code, you'll save yourself a ton of time by using
MTASC.  The difference in compile time is astounding.  MTASC compiles in
about one second when the IDE can take much longer.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] onMouseup bug?

2006-10-20 Thread Steven Sacks | BLITZ
Also, you don't need to say this.onRelease inside another function.
Just put the following in your class:


class MyClass extends MovieClip {

function MyClass() {}

function onRelease():Void {
// do something
}
}

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] incrementing a target?

2006-10-19 Thread Steven Sacks | BLITZ
var mc = this["btn" + i];

mc is your target.

mc.onRollOver = function() {};

The issue you might have is that you cannot assign functions and certain
properties to a movieclip you are going to loadMovie on because as soon
as the movie is loaded, it overwrites all the methods and properties you
assigned to it except for certain things like _x/_y/_alpha, etc.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Selection.getFocus()

2006-10-19 Thread Steven Sacks | BLITZ
> eval() is not deprecated.

You're right.  It's more than deprecated.  It's been removed altogether
in the next version of Flash.


http://livedocs.macromedia.com/flex/2/langref/migration.html

Global Functions

eval()  Removed


No screen name said on Jul 22, 2006 at 7:59 AM :

Why was eval() removed?

djtechwriter said on Jul 25, 2006 at 5:31 PM :

eval() was removed because the implementation of it in AS2 was
limited and you can use other more efficient operations for obtaining
the same result. In the AS2 entry for eval():
http://livedocs.macromedia.com/flash/8/main/1726.html
You'll notice the description suggests some alternatives.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] using parseInt() and Math.floor() doesn't returnthe same value

2006-10-19 Thread Steven Sacks | BLITZ
Today's user headspace error brought to you by the number n.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] draggable mc with buttons in it?

2006-10-18 Thread Steven Sacks | BLITZ
Well yes.  That is the best way.  I was just responding to using a mouse
listener delegate.  You definitely want to keep it simple and just put a
clickable area behind the buttons in the clip.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] draggable mc with buttons in it?

2006-10-18 Thread Steven Sacks | BLITZ
Or you could skip the mouse listener and delegate and just in your
movieclip put the following:

onMouseDown = function() {};
onMouseUp = function() {};

No listener or delegate needed.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] RE: LoadVars to XML object

2006-10-18 Thread Steven Sacks | BLITZ
// XML2AS - DO NOT AUTO FORMAT!
_global.XML2AS = function(n, r) {
var a, d, k;
if (r[k=n.nodeName] == null) r = ((a=r[k]=[{}]))[d=0];
else r = (a=r[k])[d=r[k].push({})-1];
if (n.hasChildNodes()) {
if ((k=n.firstChild.nodeType) == 1) {
r.attributes = n.attributes;
for (var i in k=n.childNodes) XML2AS(k[i], r);
} else if (k == 3) {
a[d] = new String(n.firstChild.nodeValue);
a[d].attributes = n.attributes;
}
}else r.attributes = n.attributes;
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] scrollable dynamic text field

2006-10-18 Thread Steven Sacks | BLITZ
I handle scrolling in the simplest, most straightforward way possible. 

First, I get the percentage of where the scrollbar is along its track
from and have it dispatch that percentage.

var perc = (BTN_Shuttle._y - orgShuttleY) / range;
dispatchEvent({type:"change", data:perc});


The listener then moves whatever needs to scroll by its negative height
times the percentage.

var newY = -MC_Content._height * perc;
MC_Content._y = newY;


HTH,
Steven
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Flash Projectors - mProjector vs. Zinc

2006-10-18 Thread Steven Sacks | BLITZ
> The problem I found with Director is you have to go out and
> buy a bunch of Xtras to really achieve anything notable.

All you need with Director for OS level control is BuddyAPI.  There is
another extra to disable certain key combos (like CTRL+ALT+DEL, etc.)
for kiosk purposes but the name of the xtra escapes me; it's been
awhile.  Other than those two, what else do you need?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Alternative IDE for Flash Devel

2006-10-18 Thread Steven Sacks | BLITZ
That's odd.  Ben Jackson uses it exclusively and has it tied to MTASC
and Subversion.  He never has to open the Flash IDE.  Have you seen some
of the macros videos out there?  I know firsthand that the learning
curve can be a little steep, but if you take the time to learn the
program in and out, the benefits are outstanding.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] hello, and interval management question

2006-10-17 Thread Steven Sacks | BLITZ
Check out Kenny Bunch's interval manager class.
http://www.kennybunch.com/index.php?p=16
 
Might help.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

RE: [Flashcoders] Alternative IDE for Flash Devel

2006-10-17 Thread Steven Sacks | BLITZ
http://osflash.org/flasc 
You should also check out FLASC, a Flash panel MTASC compiler that is basically 
an easy to use GUI for MTASC.  I often find myself with FlashDevelop and the 
Flash IDE open when making tests or working on projects with heavy design.  I 
can make a code change in FD, hit the compile button in FLASC and it launches 
the SWF instantaneously within the IDE with all the benefits of doing so.  I 
also have the flexibility to make "physical" changes to the Flash file and 
recompile in Flash because it's already open.
 
http://en.wikipedia.org/wiki/TextMate
If you're a Mac user you should really check out TextMate.  It's by and large 
the best coding tool out there and until FlashDevelop came out, it was better 
than any windows text editor.  I don't know any coders on the mac who are 
without it whether they code Java, Rails, PHP, C++, HTML, Javascript, 
Actionscript what have you.  It's quite simply an unbelievable application and 
worth the paltry $35 or whatever it costs.  It has customizable code completion 
and insanely cool macros you can create that make coding a breeze.
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

RE: [Flashcoders] ::dk:: understanding roll over with addEventListener

2006-10-16 Thread Steven Sacks | BLITZ
BTN_Foo.onRollOver = Delegate.create(this, fooRollOver);
BTN_Foo.onRelease = Delegrate.create(this, fooRelease);

etc.
etc.

:)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] swfObject problem

2006-10-16 Thread Steven Sacks | BLITZ
Or try Filezilla.  Once you go Zilla, you never go...

um...just try it.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] FLASC problem

2006-10-16 Thread Steven Sacks | BLITZ
Unlike Flash, which if a compile fails during it, the swf is
unlaunchable, mtasc fails before it injects the code.  You're not seeing
a swf preview, it's just launching the swf that exists.  

FLASC uses MTASC but it doesn't react to a failed build, possibly
because it doesn't know the compile failed?  Not sure on that.  At any
rate, I don't know the solution to your problem, perhaps Grden's
suggestion applies, but at least you now know that it will launch the
swf regardless of the success of the compile.  
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Steven Sacks | BLITZ
fin.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Steven Sacks | BLITZ
> get fucked jerk.

What happened to that whole unsubscribing thing you mentioned?  How did
you even receive this message if you unsubscribed?  And if it indeed was
not an honest statement and instead a sarcastic comment, why are you
surprised by a sarcastic comment in return?  I did get f**ked.  By your
mom.  She jerked me too.  I've fulfilled your request, it's the least I
could do.  And you should heed Jason's request and not swear on the
mailing list.  His bosses are watching.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Alternative IDE for Flash Devel

2006-10-12 Thread Steven Sacks | BLITZ
Why can't you use MTASC?  If you're serious about Flash development, you
should be using it.  I have a Flash application that literally takes 30
seconds to compile in the IDE and less than a second with MTASC.

If you don't want to have to write out that long command line compile
script (and who does) you should check out FLASC, which is a great GUI
for MTASC which runs as a panel in the Flash IDE.

http://www.osflash.org/flasc

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Steven Sacks | BLITZ
> This aftenoon I subscribed to this list once again. And now I remember
why
> I unsubscribed from the list so many months ago. Goodbye again.

You'll be missed.  Again.  ;)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Steven Sacks | BLITZ
So you're saying Now refers to this SINGLE point in time, and Then
refers to ANY point other than Now.  Definite vs indefinite.  

If you put it in code the opposite of now is !now or not now, and when
is not now?  Then.

The plaintiff rests.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Steven Sacks | BLITZ
> "then" is not the opposite of "now"

"Now" means at the present time.  "Then" means at any other time other
than now.  They are opposite.

The phrase "now and then" has no bearing on the denotation of the words.
"Then" is the antonym of "now".  If you disagree, what do you think is
the opposite of "now"?  It certainly isn't "after" because "after" is
the opposite of "before".

Feel free to engage me further in this logomachy off-list.  :)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Steven Sacks | BLITZ
> A bad practice most likely, but not technically wrong.  I do see it in
> text books from time to time.  

When I was in 10th grade, I had a French teacher who marked a question
on a test wrong because the test came from the teacher's version of the
text book and her book had a different (wrong) answer.  The question was
to provide the French word for the opposite of "now".  The correct
answer is "then" but the text book said it was "after".  Everyone knows
the opposite of "before" is "after".  The vocabulary word we learned
that week was the French word for "after" however that was not the
correct answer to the question on the test.  If they wanted me to answer
"after" then the test should have used "before".  I argued with the
teacher for about 20 minutes to no avail and then I took it to the
principal of the school and in the end I lost in the face of absolute
insanity and the question remained marked as incorrect.

That is an extreme example since using "this" is not wrong like saying
the opposite of "now" is "after", but I guess the point I'm trying to
make is that you have complete control over the code you write and the
implication that because a book uses a poor example we should code that
way is just as insane as marking a correct answer on a test wrong
because a book says it is.  :)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] brain teaser: filter tweening code has a problem, can you spot it?

2006-10-11 Thread Steven Sacks | BLITZ
> I'll let you know when I actually care ;-)

Sweet!  On second thought, you don't need to.  I'll set up a watcher.

Muzak.watch("cares", Steven, true);




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Muzak
> Sent: Wednesday, October 11, 2006 4:51 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] brain teaser: filter tweening code has a
> problem,can you spot it?
> 

> 
> 
> - Original Message -
> From: "Steven Sacks | BLITZ" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Thursday, October 12, 2006 1:46 AM
> Subject: RE: [Flashcoders] brain teaser: filter tweening code has a
> problem,can you spot it?
> 
> 
> Much cleaner, although you have a lot of this references that are
> redundant.
> 
> 
> 
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] brain teaser: filter tweening code has a problem, can you spot it?

2006-10-11 Thread Steven Sacks | BLITZ
Much cleaner, although you have a lot of this references that are
redundant.

import mx.transitions.Tween;
import mx.transitions.easing.*;
import flash.filters.GlowFilter;
import mx.utils.Delegate;

class GlowClip extends MovieClip {
 private var glowTween:Tween;
 private var glowVal:Number = 5;

function GlowClip() {
var gf = new GlowFilter(0x356D83, 100, 5, 5, 5, 3,
false, false);
filters = [gf];
glowTween = new Tween(this, "glowVal", Elastic.easeOut,
glowVal, glowVal, 1, true);
glowTween.onMotionChanged = Delegate.create(this,
tweenChanged);
glowTween.stop();
}
function onRollOver() {
glowTween.continueTo(30, 2);
}
function onRollOut() {
glowTween.continueTo(5, 2);
}
private function tweenChanged(tw, newVal) {
var gf = new GlowFilter(0x356D83, 100, newVal, newVal,
5, 3, false, false);
filters = [gf];
}
}


BLITZ | Steven Sacks - 310-551-0200 x209


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Muzak
> Sent: Wednesday, October 11, 2006 4:30 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] brain teaser: filter tweening code has a
> problem,can you spot it?
> 
> arghh, changed a variable name at the end and forgot to change it
> somewhere else in the code.
> 
> working version ;-)
> 
> import mx.transitions.Tween;
> import mx.transitions.easing.*;
> import flash.filters.GlowFilter;
> import mx.utils.Delegate;
> 
> class GlowClip extends MovieClip {
>  private var glowTween:Tween;
>  private var glowVal:Number = 5;
>  //
>  function GlowClip() {
>   var gf = new GlowFilter(0x356D83, 100, 5, 5, 5, 3, false, false);
>   this.filters = [gf];
>   this.glowTween = new Tween(this, "glowVal", Elastic.easeOut,
glowVal,
> glowVal, 1, true);
>   this.glowTween.onMotionChanged = Delegate.create(this,
> this.tweenChanged);
>   this.glowTween.stop();
>  }
>  //
>  function onRollOver() {
>   this.glowTween.continueTo(30, 2);
>  }
>  //
>  function onRollOut() {
>   this.glowTween.continueTo(5, 2);
>  }
>  //
>  private function tweenChanged(tw, newVal) {
>   var gf = new GlowFilter(0x356D83, 100, newVal, newVal, 5, 3, false,
> false);
>   filters = [gf];
>  }
> }
> 
> regards,
> Muzak
> 
> 
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Flash transparent on top of Windows Media Player

2006-10-11 Thread Steven Sacks | BLITZ
> It's not broken - people use it, look at the advertising industry
using it
> on millions of pages/sites every day with their wonderful over the
page
> transparent advertising...

Wonderful?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] brain teaser: filter tweening code has a problem, can you spot it?

2006-10-11 Thread Steven Sacks | BLITZ
Why are you creating a reference to this inside the onRollOver method?

mc.onRollOver = function() {
this.gfBX.continueTo(30, 2);
};

There's no purpose behind a temporary reference variable to this.


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Keith Reinfeld
> Sent: Wednesday, October 11, 2006 2:50 PM
> To: 'Flashcoders mailing list'
> Subject: RE: [Flashcoders] brain teaser: filter tweening code has a
> problem,can you spot it?
> 
>  This works,
> 
> 
> import mx.transitions.Tween;
> import mx.transitions.easing.*;
> import flash.filters.GlowFilter;
> 
> var gf:GlowFilter = new GlowFilter(0x356D83, 100, 5, 5, 5, 3, false,
> false);
> 
> for (var i = 0; i < 5; ++i)
> {
> var mc:MovieClip = this["kText" + i];
>   mc.filters = [gf];
> 
> mc.gfBX = new Tween(gf, "blurX", Elastic.easeOut, 5, 5, 1, true);
> mc.gfBY = new Tween(gf, "blurY", Elastic.easeOut, 5, 5, 1, true);
> 
> mc.onRollOver = function() {
>   var _mc:MovieClip = this;
> _mc.gfBX.continueTo(30, 2);
>   _mc.gfBX.onMotionChanged = function() {
>   _mc.filters = [gf];
>   };
> 
> _mc.gfBY.continueTo(30, 2);
>   _mc.gfBY.onMotionChanged = function() {
>   _mc.filters = [gf];
>   };
> };
> 
> mc.onRollOut = function() {
>   var _mc:MovieClip = this;
> _mc.gfBX.continueTo(5, 2);
>   _mc.gfBX.onMotionChanged = function() {
>   _mc.filters = [gf];
>   };
> 
> _mc.gfBY.continueTo(5, 2);
>   _mc.gfBY.onMotionChanged = function() {
>   _mc.filters = [gf];
>   };
> };
> 
> }
> 
> 
> Did you have some other solution?
> 
> 
> -Keith
> http://home.mn.rr.com/keithreinfeld
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Boon
Chew
> Sent: Wednesday, October 11, 2006 1:46 PM
> To: Flashcoders mailing list
> Subject: [Flashcoders] brain teaser: filter tweening code has a
> problem,can
> you spot it?
> 
> Hi all,
> 
> I downloaded a piece of filter tweening code, modified it (added loop
> around
> it) to tween mutiple clips on stage with the name (kText0, kText1,
etc.)
> and
> for some reason it only tweens the last clip.
> 
> After some debugging I found out where the problem lies.  But when I
> compiled the code in my head, everything seemed fine (probably have a
> buggy
> brain).  Can you spot what the problem is from the code below?  How
would
> you fix it?
> 
> import mx.transitions.Tween;
> import mx.transitions.easing.*;
> import flash.filters.GlowFilter;
> 
> for (var i = 0; i < 5; ++i)
> {
> var mc = this["kText" + i];
> var gf:GlowFilter = new GlowFilter(0x356D83, 100, 5, 5, 5, 3,
false,
> false);
> var gfBX:Tween = new Tween(gf, "blurX", Elastic.easeOut, 5, 5, 1,
> true);
> var gfBY:Tween = new Tween(gf, "blurY", Elastic.easeOut, 5, 5, 1,
> true);
> mc.onRollOver = function() {
> gfBX.continueTo(30, 2);
> gfBY.continueTo(30, 2);
> };
> mc.onRollOut = function() {
> gfBX.continueTo(5, 2);
> gfBY.continueTo(5, 2);
> };
> 
> gfBX.onMotionChanged = function() {
> mc.filters = [gf];
> };
> }
> 
> 
> 
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> 
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Flash transparent on top of Windows Media Player

2006-10-11 Thread Steven Sacks | BLITZ
> Brilliant. Just brilliant. Now if someone points out a problem with
> Flash, then is an ignorant. Who do you think you are talking about
> people you don't know with such an arrogance?

Don't use wmode.  It's that simple.  You can complain about it until
you're blue in the face and it won't do any good.  The fact is that
wmode is inconsistent across browsers and platforms, and I doubt it's
ever going to be fixed so you need to alter your approach.

You want to see frustration?  Hang out with some senior level web
developers for awhile.  I don't understand how they stay sane with all
the hacking they have to do.  Web Developers are forced to contend with
a broken compiler that is used by 90% of the public (Internet Explorer)
which tries to fix their code for them at runtime (making debugging
difficult), and have to code against three or more different compilers
(Firefox, Safari, Opera) that all compile their code differently from
one another.

CSS, a widely used technology, is, in some ways, borderline broken in
IE6 and only after about five years is Microsoft doing anything about it
with IE7.  Best of luck in your endeavor to get Adobe to fix an edge
case issue with an extremely rarely used feature that has inconsistent
behavior across browsers due to browsers being inconsistent.  Your
energy is better spent explaining to your bosses the realities of web
development.

I hate web development.  That's why I do Flash development.  ;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Flash transparent on top of Windows Media Player

2006-10-11 Thread Steven Sacks | BLITZ
Huh.  I was offering an honest suggestion and also giving you a compliment.  
Apparently, though, you're perfect for the job you have.


BLITZ | Steven Sacks - 310-551-0200 x209


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Zárate
> Sent: Wednesday, October 11, 2006 11:49 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Flash transparent on top of Windows Media
> Player
> 
> Brilliant. Just brilliant. Now if someone points out a problem with
> Flash, then is an ignorant. Who do you think you are talking about
> people you don't know with such an arrogance?
> 
> Either the player or the browsers are having problems using wmode and
> that's a FACT. You don't need to remind me how good the Flash platform
> is, thank you anyway for your effort. Could we please stay on-topic?
> 
> I was asking if Adobe is NOW actively talking with browser
> manufacturers to solve this? I (and a huge amount of people) need it
> for my work.
> 
> Thanks,
> 
> Juan

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] brain teaser: filter tweening code has a problem, can you spot it?

2006-10-11 Thread Steven Sacks | BLITZ
You've got a scope issue.  The movieclip has no idea what gfBX or gfBY
is on rollover because they are just temporary variables in your
iterator and once your iterator is done they're gone and the movieclip
has no reference to them.  You need to assign gfBX and gfBY to the
movieclip so it knows what they are.

mc.gfBX = gfBX;

mc.onRollOver = function() {
this.gfBX.continueTo(30, 2);
};

Follow?

HTH,
Steven

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Logging Flash-Internal User Access?

2006-10-11 Thread Steven Sacks | BLITZ
"There's a sucker born every minute." - P.T. Barnum


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Victor Gaudioso
> Sent: Wednesday, October 11, 2006 10:55 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Logging Flash-Internal User Access?
> 
> Wow!  I didnt even know this was possible.  Why the heck do companies
use
> tracking companies like Hitbox if this is possible?
> 
> Victor

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Logging Flash-Internal User Access?

2006-10-11 Thread Steven Sacks | BLITZ
It's actually pretty straightforward and easy.  Here's a quick way to
track page impressions with no back-end code whatsoever.

Create empty (0 bytes) .txt (or .html) files and put them in a folder on
the server.  Have Flash loadVars the txt files and append a noCache
argument with the date in milliseconds so it doesn't cache.  So, your
file URL would look something like this:

tUrl = "tracking/page1.txt?noCache=" + new Date().getTime();

Just loadVars a file every time they load in a different page.  They'll
be able to check their weblogs to see traffic.  If they want something
more like session data and such, then you'll have to write a back-end to
support it.


BLITZ | Steven Sacks - 310-551-0200 x209

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Flash transparent on top of Windows Media Player

2006-10-11 Thread Steven Sacks | BLITZ
> Ok, fair enough, it seems everything it's up to the browsers. However,
> users, bosses and even developers don't care about that. What they see
> is that the application is not working properly. What they see is that
> Flash is doing "weird" things _again_. What they see is that they
> cannot trust Flash.

The only thing I can suggest is to try to find another job.  Working at
a technology company where the people in charge are ignorant when it
comes to technology is a recipe for an unhappy life.  It sounds like you
don't have a project manager there who has any familiarity with web
development (or any project manager at all?).

Flash is, for all intensive purposes, on all of your end users'
machines.  Flash has become the only choice for streaming video delivery
on the web.  These aren't the days of Flash intros anymore.  If your
bosses don't trust Flash, I wouldn't trust them to provide an
environment that will enrich your career.  They're on the wrong side of
the bell curve and you owe it to yourself as a professional to get
yourself back on the other side. 

There are tons of great jobs out there right now for talented Flash
developers.  Don't settle for working for someone who doesn't trust the
technology you are investing your time and energy into.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
> Assembly/machine languages are iconic, programming languages are
> supposed to be verbose. ;-)

Your mom is verbose!  ;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
Correct me if I'm wrong, but it looks like your rationale is entirely
based on an argument name being identical to a class variable name.  I
might be looking at this too simply, but shouldn't you just use a
different argument name if it clashes with a class variable name?

-Steven


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of JOR
> Sent: Tuesday, October 10, 2006 1:19 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Moving to AS2, array always undefined
> 
> Actually, the "need" is dependent on the implementation.
> 
> It was my understanding that AS first looks to the local scope for the
> existence of a variable then works up to find it.  By using "this" you
> were explicitly telling flash that the var isn't local to the function
> but rather belongs to the object cutting out a step for the VM.
> 
> Therefore, something like the following becomes possible and the use
of
> "this" becomes necessary:
> 
> class MyConstructor {
>private var target:MovieClip;
>public function MyConstructor (target:MovieClip) {
>  this.target = target;
>}
> }
> 
> Because you can not do this:
> 
> class MyConstructor {
>private var target:MovieClip;
>public function MyConstructor (target:MovieClip) {
>  target = target; // ?
>}
> }
> 
> However, depending on your naming conventions you "might" not have to
> use "this" if you did something like the following:
> 
> class MyConstructor {
>private var _target:MovieClip;
>public function MyConstructor (target:MovieClip) {
>  _target = target;
>}
> }
> 
> Even still, I think the VM might check for the existence of a var
named
> _target local to the constructor function before locating the object's
> field named _target.
> 
> It's been a while since I've done anything in AS1 so I may be way off
> here but I thought I remembered "this" being necessary because at
weird
> times the VM would think you were trying to instantiate a local var if
> you didn't use "this".  Particularly in "on (something)" event
handlers.
> Maybe I'm thinking of _global, or perhaps both.  This, I'm not sure
> about... if you'll excuse the pun. :)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
> talking about square brackets, dunno how relevant this would be

Bracket access is a separate discussion, yes.  :)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
There's no need to use "this" when referring to class variables from
within the class itself.

class ArrayTest {
public var myArray:Array;

public function ArrayTest() {
myArray = [];
}
public function test(str:String):Void {
myArray.push(str);
trace(myArray);
    }
}

BLITZ | Steven Sacks - 310-551-0200 x209

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Jon Bennett
> Sent: Tuesday, October 10, 2006 12:44 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Moving to AS2, array always undefined
> 
> > Or you can do it in the class' constructor:
> >
> > class ArrayTest {
> >public var aryItems:Array;
> >public function ArrayTest ()
> >{
> >  this.aryItems = new Array();
> >}
> >public function test (str:String):Void
> >{
> >  this.aryItems.push (str);
> >  trace (this.aryItems);
> >}
> > }

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
Sorry for the confusion.  I wasn't referring to the typecasting just the
instantiation.  You should still use

myArray:Array = [];

and

myObject:Object = {};


BLITZ | Steven Sacks - 310-551-0200 x209

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
It's neither AS2 or AS1 centric.

Substituting [] for new Array() or {} for new Object() is universal
across many languages.  Personally, I prefer the visual [] and {} to the
wordy new Array() and new Object().  It's quicker to write, and it's
easier to read.  

[] 

{}

Plenty of research has been done on the subject of icons versus words
but suffice to say we don't write 100 dollars and 0 cents, we write
$100.00.  When you write music you don't write QUARTER NOTE C.  You just
draw a quarter note symbol on the C line.  That's how I look at writing
code.
:)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
I prefer 

myArray = [];

and

myObject = {};

But that's just me.  :)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Playing video backwards kills my CPU

2006-10-10 Thread Steven Sacks | BLITZ
Sorry, let me be more clear.  You don't have a movie running backwards,
you make a version of your movie that IS backwards (prior to importing)
and play it forwards.  

Also, they aren't running at the same time, but when you swap movies you
need to set the new movie's timecode to the timecode of the other movie,
make it visible, play it and stop and hide the other movie.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Playing video backwards kills my CPU

2006-10-10 Thread Steven Sacks | BLITZ
Bottom line, videos do not play backwards well.  Nothing wrong with your
code or computer, and nothing you can do about it.

If you absolutely need your video to play backwards and forwards, you
create a backwards version of your movie, have it running invisibly and
concurrently with the forwards one, and when you want to go backwards,
you swap visibility.  If there is audio on the video, make sure you mute
the invisible one.

BLITZ | Steven Sacks - 310-551-0200 x209

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Iterate over all movieclips in a timeline

2006-10-09 Thread Steven Sacks | BLITZ
> I feel a bit boneheaded asking this... is there any way of iterating
> over all movie clips in a timeline?

for (var a in this) {
if (this[a] instanceof MovieClip) {
trace(this[a]._name);
}
}

BLITZ | Steven Sacks - 310-551-0200 x209

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Flash transparent on top of Windows Media Player

2006-10-09 Thread Steven Sacks | BLITZ
It's easy to get the impression that the video is playing inside the the
browser window but it isn't.  The ActiveX control in the browser talks
to Windows and tells it where to draw the video, which actually plays
above the browser window.  When you move the browser window around, it's
telling the video to move with it.  Sometimes, the video will move with
it, sometimes you will see a "masking effect" where the video stays in
place while the player moves.  Both behaviors are good demonstrations
that the video and the player are separate components in Windows.

Unfortunately, there's nothing you can do about it, AFAIK.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] dynamic string color switching

2006-10-09 Thread Steven Sacks | BLITZ
> I was wondering if if is possible to dynamically change the color of
> parts of a string within a single text field.

You can do it with an HTML textfield.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Unsubscribe me please

2006-10-05 Thread Steven Sacks | BLITZ
> Unsubscribe me please

I've unsubscribed you.  You shouldn't receive this email.

Just in case you did, check out this part of the footer of every single
message on Flashcoders.  :)

Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Flash based desktop mate

2006-10-05 Thread Steven Sacks | BLITZ
> it would need to be a full screen projector file

Why would it need to be a full screen projector file?

mProjector's alpha performance on Windows is the best there is.  
http://www.thespringbox.com/  uses mProjector and has alpha
transparency.

If you want to be able to move something around the screen, you can move
it around the screen by setting the window's x and y position.  You
don't need to make it a full screen application.  If you want multiple
things to appear in different places anywhere on the screen, you open up
new mProjector windows and communicate to those using mProjector's API.
It's all supported and well documented.  You don't need to make it a
full screen application to achieve those things.  :)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] How to create a preloader that plays in full

2006-10-05 Thread Steven Sacks | BLITZ
You're going to need a preloader for your preloader...

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Find point after rotation

2006-10-04 Thread Steven Sacks | BLITZ
The _width and _height change based on the rotation so don't use the
stored _width and _height and instead use the current _width and
_height.

That is, unless you're trying to keep track of that exact point on the
rectangle after you rotate it, then that's something more complex.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] [JOB] Flash Developer | NYC | 50/hour

2006-10-04 Thread Steven Sacks | BLITZ
Isn't $50/hr kind of low for a senior level contract in the most
expensive place to live in the country?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Projector Wrapper

2006-10-03 Thread Steven Sacks | BLITZ
> 1.  SWHX is completely new, open source and cross-platform

Great news!

> 2.  The old version was the bench mark to which other's hoped to
attain
> and worked great.

I disagree and there are many who would side with me.  It wasn't stable
and it wasn't easy to code against.


> 3.  The version you speak of, as I have heard, was a version that was
> modified for a company you worked for - a company who's owner was a
> liar/fraud and never paid for the services he hired Edwin to do.  I
> believe
> also, that that version was left "buggy" BECAUSE of the non-payments
and
> therefore, was never completed/fixed/updated/made right.

I am not speaking of the custom version but of the fully available
version specifically.  I would not talk about the custom version because
I know it was written by Edwin from virtual scratch and I am aware of
the bugs associated with that.

You can ask developer friends of mine who worked at Turner whether or
not they could use the publicly available Screenweaver for their
projects and they will tell you resoundingly no.  They tried but it was
far too unstable and buggy.

As to the other part, the non-payments and lying etc., I wrote out the
other side of the story but I decided to delete it because it really
doesn't belong on Flashcoders.  Suffice to say the following:  There are
two sides to every story and painting Edwin as an innocent man who got
screwed out of money hardly encompasses the entire story.

I had used the public version of Screenweaver prior and attempted to use
it after at a different company and had nothing but problems and other
developers I know did too.  It was written by somebody who didn't know
C++ that well when he started (Edwin divulged to us that he was learning
it as he wrote Screenweaver), and that's why it had the problems it did.

It scored the worst on all the measurements when compared to three other
wrappers.  It had the largest executable file size, it had the largest
base memory footprint, it had the worst frame rate performance, it used
by far the most CPU during an animation and alpha blending test (it
would spike to 25-40% cpu while other wrappers barely hit 5% and
mProjector maxed at 2%) and it performed even worse when Outlook was
open.


> 4.  Nicolas only did a port from C++ to C on the windows platform.
> Edwin/team have taken it from there to the mac platform.  Haxe/Neko
make
> everything else possible, crossplatform and very consistent with a
> standard of coding that remains from platform to platform.

That sounds promising.


> 5.  That's not true - and is a slap in the face to the guys who worked
on
> it.  Of whom, I am good friends with.  Screenweaver was for-profit
with 3
> partners.  The company folded and later, Edwin encouraged going open
> source with it because it was collecting dust and there were alot of
> requests for it to return.  

I apologize if any of the developers who came on after were offended.
My comments had nothing to do with any developer who came on after Edwin
decided to open the source to other developers.  They had nothing to do
with that decision and their efforts on the project since that decision
are not what I'm discussing.  If they whipped it into shape, great!  If
they rewrote it from scratch, fantastic!  The bottom line is it had many
problems before he opened it up and that says nothing about the quality
or dedication of the developers who came on after.

Why did the company fold if Screenweaver was so great?  Is it because
the demand for Flash wrappers was too low, or because the competition
was too tough or perhaps because Screenweaver wasn't stable enough or
maybe Edwin got busy doing other things?  That's a separate discussion.


> Mainly based on the buggy issues with OTHER wrappers.

Unfortunately, almost nobody knows about mProjector because it wasn't
marketed as heavily as the other wrappers, and yet, it's the best one
out there as far as performance, stability and ease-of-development goes.
It doesn't have some of the features some of the other wrappers out
there have, though, and that's its primary weakness as I see it.


> "I invite anyone to share a negative experience they had with
mProjector
> 
> 6.  Ok.  The UI sucks and is completely off track with other wrapper
> applications.  In an attempt to be "innovative", they've left other's
> behind who don't have time to "think" like their innovators.

Fair enough.  That's a fair critique since it is part of the wrapper.
You could put a Porsche engine in a VW Bug and you could put a VW Bug
engine in a Porsche.  I'd opt for the VW Bug with the Porsche engine if
my job was to win races.

mProjector's UI is straightforward to me.  I don't have a problem with
it.  That being said, the UI for the wrapper creation tool is not the
only measurement one should use.

mProjector has an extremely powerful and easy-to-code-against API.
Beyond just that, the way it does things in general is very smart.
Let's talk about the system tray, for instance.

I

RE: [Flashcoders] Projector Wrapper

2006-10-03 Thread Steven Sacks | BLITZ
Promoting it is one thing, but his post was not a promotional post, but
more that of a call to action from an impartial party, which he is not.

I don't think Screenweaver being open and free makes it better
considering Screenweaver before it was open and free was, simply put,
bad.  Here are some facts about Screenweaver.

It was extremely buggy,
had features that simply did not work,
was unstable and would crash without warning and with no notification,
had issues with ATI cards when Microsoft Outlook was open,
had issues where the CPU usage would spike to 99% and never release
making Windows (and the SW app) unresponsive requiring a task manager
force quit,
had a terrible API for doing the most simple things (something like
15-20 lines of code to make a system tray icon compared to ONE line of
code in mProjector,
had many functions required 5+ arguments, which reflects poor planning)

And the list goes on and on.

I wouldn't recommend trusting anything that was based on such bad code
unless it was completely rewritten from scratch, which I'm not sure it
was.

Contrary to that, mProjector has always been rock solid and well thought
out and has had asynchronous support since the beginning while all other
wrapper developers could not figure how to do it for years.  Let me
stress that - for years nobody knew how the author of mProjector
provided asynchronous support despite their best efforts, and there was
plenty of effort from all the wrapper developers.

Now that the facts are out of the way, it's time for my opinions.

I invite anyone to share a negative experience they had with mProjector
(I've never seen or heard a single one), but you can search the archives
and there are plenty of developers in the community who have had plenty
of negative experiences with Screenweaver.  Other wrappers like
SWFStudio and Zinc, while not as solid as mProjector, were far more
stable than Screenweaver.  I would trust any wrapper except Screenweaver
to handle functionality that mProjector doesn't have.

IMO, the reason Screenweaver was made open source is because it was a
mess and the only way to clean it up was to invite other coders to get
involved and help fix all its problems.  I'm all for open source, but
the original Screenweaver code was so bad, I can't bring myself to rely
on it.  

All this being said, major companies trust mProjector as their wrapper
of choice for mass deployment.  Companies like The Weather Channel,
DirecTV, Fox Interactive, Earthlink, and Turner Broadcasting.  I think
the paltry $199 (or $300 for both platforms) is worth the peace of mind
of owning the most solid, well-built, best API, easiest to use Flash
wrapper on the market.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] allowScriptAccess

2006-10-02 Thread Steven Sacks | BLITZ
> Just waisted 3 hours of my time trying to debug my JS/Flash
application.

Here's a general debugging tip that I hope will save you time and
frustration in the future.

One of the best things you can do when a part of your application isn't
working, and it isn't readily apparent why, is create a brand new file
and make a simple test that does the single action that is failing in
your main file. 

If it fails, you can debug it much easier in the simple test since the
number of possibilities are greatly reduced, and implement the fix in
the main file after. 

If it succeeds, then you have a good clue that it's something else and
you can either slowly add pieces to your simple test until it fails or
begin looking elsewhere in your main file.

HTH,
Steven

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Projector Wrapper

2006-10-02 Thread Steven Sacks | BLITZ
> Would be interesting to compare with recently released Screenweaver HX
> (http://haxe.org/swhx).

...says one of the authors of Screenweaver HX.  Being a shill doesn't
work unless you use a different name.  ;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Profanity - (to Lieven especially)

2006-10-02 Thread Steven Sacks | BLITZ
> Could we keep the language on this list down a tad?  

Profanity filters used by corporations to keep tabs on their employees'
email communication are just as important as keeping track of what their
employees are talking about to ensure vital company secrets aren't being
let out.

In this post-Janet-Jackson-wardrobe-malfunction era, it's important to
remember that the morals and values police are everywhere and
corporations are extremely sensitive to public opinion.  If the people
reading Jason's emails (and make no mistake - there are people reading
his emails to make sure he's not releasing company secrets) find profane
words in his incoming emails, they may react like auto insurance
companies do when they punish you by raising your rates for getting hit
by some random person at absolutely no fault of your own, and fire him.

Jason might lose his fvcking job because of your shi++y language. Show
some respect you k0ksuckers and intentionally misspell or l33t 5p34k
your g0d d4mn swear words.  The thought police aren't very bright so
they won't be able to read them.

See?  Everybody wins!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Projector Wrapper

2006-09-29 Thread Steven Sacks | BLITZ
http://www.screentime.com/software/mprojector/
 
mProjector is the best wrapper out there, period.  It's completely stable and 
has the absolute best performance and smallest memory and filesize footprint 
(I've done metrics).  The API is outstanding, well-thought out and easier to 
use than any of the other wrappers.  And while Flash 8 brought about External 
Interface for asynchronous communication with the OS, mProjector has been doing 
it for years while none of the other wrapper authors could figure out how 
despite their best efforts.  Oh, and it's cross-platform.
 
http://www.thespringbox.com/
 
That is made with mProjector.  It's the technology Fox Interactive trusts to 
deploy to the tens of millions of users on MySpace and beyond. 
 
Nuff said.  :)
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

RE: [Flashcoders] Controlling a swf loaded into a movieclip

2006-09-28 Thread Steven Sacks | BLITZ
I use something along these lines:

fCount = 0;
this.onEnterFrame = function() {
fCount++;
if (fCount > 0) {
delete this.onEnterFrame;
callMethodsOnTargetClip();
}
}

;)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Controlling a swf loaded into a movieclip

2006-09-28 Thread Steven Sacks | BLITZ
> but I have found that
> loaded clips seem to take a few milliseconds to actually initialise
> properly so that I can actually call my own methods on them 

What you're describing is clips need one frame to draw before you can
call their methods (though you can set properties before the frame
passes).  This is something that has been in Flash since the beginning.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] >> Check Problem

2006-09-28 Thread Steven Sacks | BLITZ
Why are you making checkboxes behave like radio buttons?  Use radio
buttons for single select and checkboxes for multi select.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Label --> null

2006-09-26 Thread Steven Sacks | BLITZ
Are you using -keep?

Have you tried FLASC?  http://osflash.org/flasc
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Q:Change publish path dynamically

2006-09-26 Thread Steven Sacks | BLITZ
The answer is JSFL.

I wrote an article about how to change publish paths using JSFL on my
blog.

http://www.stevensacks.net/2006/08/06/using/

You can use this technique (see lines 10-13) with a panel (or just a
script) which loads in XML and publishes the SWF.  My entire script
actually saves the file with the new publish path but you don't need to
go that far.

HTH,
Steven
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Mute Flash Application, mac.

2006-09-22 Thread Steven Sacks | BLITZ
Tell him to get a freaking iPod and some headphones.  Failing that, buy
him a box of tissues.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Right-MouseClick

2006-09-22 Thread Steven Sacks | BLITZ
> Setting wmode as transparent makes the context menu not show up in a
> browser.

Setting wmode as transparent causes a major performance hit on all
browsers on all computers especially Macs and Firefox.  Avoid it like
the plague on anything where frame rate and script performance is
important.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Working on Flash 6 player but not on Flash 8

2006-09-21 Thread Steven Sacks | BLITZ
> instead of random(x), you should use
> Math.floor(Math.random() * x).

Which makes me wonder why random() is deprecated.  They really think
that Math.floor(Math.random() * x) is better than random()?  Ridiculous!
The sign of a great API is its simplicity.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] onScroller ?

2006-09-21 Thread Steven Sacks | BLITZ
Check out

TextField.autoSize
TextField.textHeight

And check out the other properties of TextFields while you're in there.
I'm sure you'll find them quite helpful.  :)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Find item in array

2006-09-19 Thread Steven Sacks | BLITZ
And to be specific about why your for in as you put it would not be
faster, you're declaring var i in your loop, which results in more
pcode, which means it will take longer.

var a;
for (a in array) {}  

would be faster.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Find item in array

2006-09-19 Thread Steven Sacks | BLITZ
> using a for..i..in loop will always be faster

It's been proven before here on flashcoders that for in is not faster
than --a -(-1) because it compiles to more lines of pcode.  I guess it's
time to use Flasm to bust out some pcode and post it here on the list
instead of making claims based on hunches and past posts in the
archives.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Find item in array

2006-09-19 Thread Steven Sacks | BLITZ
> So, now I just end up using it for everything since it's become a
habit.
> The flipside is that sometimes I need to do forward loops for
> reiterating to maintain proper order.  However, I would have to do
that
> anyway regardless of which backwards looping method I used.

To clarify, I don't mean I do two for loops one after the other that do
the same thing.  That would be much slower than just one forward loop.
I mean later on somewhere else in the app I might need that data in
reverse order for some specific purpose.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Find item in array

2006-09-19 Thread Steven Sacks | BLITZ
I guess what it depends on is what you're doing with that for loop.

If you're using it to attach or create or animate movieclips, or parse
through xml or a recordset, or anything that would make Flash
unresponsive during the loop, then the benefits of while (--a -(-1))
outweigh the readability compared to while (a--).

As a result, I use it pretty often.  ;)

So, now I just end up using it for everything since it's become a habit.
The flipside is that sometimes I need to do forward loops for
reiterating to maintain proper order.  However, I would have to do that
anyway regardless of which backwards looping method I used.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Find item in array

2006-09-19 Thread Steven Sacks | BLITZ
As to why exactly --i -(-1) runs faster in a while loop than i--, well,
it can't be the same exact pcode or it wouldn't be faster so it must be
less pcode.  I didn't bother to verify it myself because at the time,
somebody did for me.  It's explained somewhere in the archives.  If you
dig, you'll find it, and you'll find my name somewhere in there along
with it since I was part of the discussion on most occasions that it
came up.

I do like mustard, now, by the way.  :)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Find item in array

2006-09-18 Thread Steven Sacks | BLITZ
There has been extensive testing on this (search the archives) and it's
been proven to my satisfaction that pre-decrementated loops are
consistently faster than post-decremented loops, and specifically that
while (--i -(-1)) is faster than while (i--), less p-code or not.

To the point that it's more readable, that's like saying that you prefer
quarter notes instead of sixteenth notes when reading music.  Once you
write while (--i -(-1)) a bunch, you have no trouble reading it.  It's a
hell of a lot easier to read than the fastest for loop syntax.

for (var i = myArray.length; --i -(-1); ) {}

I mean, if you find inline conditionals or non-braced if statements hard
to read, does that mean you shouldn't write them or that you should
learn to write them so you can learn to read them.

I didn't like mustard when I was younger.  Does that mean I shouldn't
ever like mustard?   ;)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Find item in array

2006-09-18 Thread Steven Sacks | BLITZ
It's the fastest because:

Pre-decrementation (--i) is faster than post-decrementation (i--)
And substraction (- (-1) is faster than addition (+ 1).

They are faster because it's less code that gets produced when you
compile.
http://flasm.sourceforge.net/#optimization

For most cases, it's a matter of milliseconds or even less, which isn't
that big a deal, but I use it anyway because it's a good habit to have
and it makes my code logic work with that in mind always so when it does
make a difference in seconds, it's already there.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] specifying type of an array contents?

2006-09-18 Thread Steven Sacks | BLITZ
You are using the wrong syntax, that's all.

for (var btn in btnClipArray) {
btnClipArray[btn].removeMovieClip();
}

btn is simply referring to the index in the array, not the object in
that array's position.  If you traced btn you'd get a number counting
down from the length - 1 of the array to zero (10 9 8 7 6, etc.) because
for in iterates backwards through an array.

For that loop, though, I'd use the fastest loop in Flash:

var i = btnClipArray.length;
while (--i -(-1)) {
btnClipArray[i].removeMovieClip();
}


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Software Development Position

2006-09-15 Thread Steven Sacks | BLITZ
Exactly, and I'm skeptical of anyone who requires a CompSci degree for a
Flash position because there isn't a single college degree for Flash
programming.  ;)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Software Development Position

2006-09-15 Thread Steven Sacks | BLITZ
> The fact that you can name the pioneers (and I know who they are) is
> an indication of how small the group is. A few hundred, heck even a
> few thousand, is a **VERY** small number.  There are hundreds of
> thousands (or perhaps millions) of people that are serious programmers
> in Java that have been doing it for many years.

Just because you've got a degree doesn't mean you know what you're
doing.  There are thousands of "serious" programmers out there with
degrees that are just mediocre.  That piece of paper doesn't mean what
it used to.  

That list of names isn't just a list of Flash pioneers, but talented
hard-working developers who continue to be some of the most influential
people in the business.  Some of them had no previous programming
experience before Flash and now they're some of the best Flash
developers in the world all without a piece of paper that says they sat
in a classroom on some campus for years and without knowing so-called
"real" programming languages.

Saying AS1 isn't real programming is, IMO, unfair.  Somebody programmed
a graphic adventure game in Flash 3 with inventory, etc. using a
turing-machine movieclip schema.  It must have been quite a challenge to
code but it indeed was programming, and probably smarter and better than
many people who code in AS2 today are capable of.

I don't have a CompSci degree. I only ever took one programming class; a
one semester course for Director 3 at a community college taught by a
guy who wanted me to do everything in the score because he didn't really
understand Lingo.  The rest I've learned by doing, reading and, luckily,
being mentored.  If an employer doesn't want me because I don't have a
CompSci degree, it's their loss, not mine, because I know Flash better
than many people who claim to be Flash developers out there simply
because nobody told me what its limits or capabilities were, I found
them out for myself in order to "make the impossible possible" for
clients.  :)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] ' Undo ' Feature in flash RIAs - any success stories?

2006-09-08 Thread Steven Sacks | BLITZ
I have, but I built my app with it in mind from the beginning, not
slapped on after.  You have to plan for something like this from the
start.

First off, doing everything in MVC is pretty much required.  I wrote a
static History class.  It takes snapshots of the Model everytime the
Controller changes the Model in a way that warrants saving the state
(you're not changing the model with your views are you?).  The
Controller calls History.addEvent() (note: the controller (not the
model!) calls addEvent because that is the job of the controller, not
the model).  When you undo or redo, History tells Controller to update
the app with the saved model data.

I pass the History class references to the primary application
controller and model.  I'm not using Event/Listeners with this one.
Feel free to make it event driven if you like.  You'll still need to
pass a reference of the Model to the History class.

Why did I choose to do it this way, storing a snapshot of the data?
Because it's super easy!  If you had to store deltas and do comparisons
you'd kill yourself trying to debug all the possible combinations.  What
if you had a reset button for some pieces of the data?  How would you
handle that?  Believe me, I put some thought into this.  :)

Forget that.  Just take snapshots of the entire data model.  If you
build your application to draw itself based on the data model's data at
any time, you can make your history class super simple, and very quick.
Memory usage has not been a problem for me even with thousands of steps
(I wrote functional tests).  It's serialized data, after all.

The specifics of how the History class works is like this.  When you
addEvent, it sets historyArray.length = currentStep + 1.  This truncates
the historyArray if you've taken steps back.  Then, it pushes a clone of
the model data, sets the current step to the last item in the
historyArray and tells the controller that the history has updated, for
whatever purposes you might need.

When you undo or redo, it ignores it if the historyArray only has one or
zero items in it.  It also ignores it if undoing or redoing would take
it beyond the range of the historyArray.  Then, it tells the controller
that a historyStep has occurred (undo or redo), passing a clone of the
data in the historyArray (you have to do this to prevent references),
which the controller responds to by redrawing the application however
it's been coded to based on the model data.


class com.stagr.controller.History {
private static var historyArray:Array = [];
private static var currentStep:Number = -1; 
public static var controller;
public static var model;

static function addEvent() {
historyArray.length = currentStep + 1;
historyArray.push(clone(model.data));
currentStep = historyArray.length - 1;
controller.onHistoryUpdate();
}
static function undo() {
if (historyArray.length < 2) return;
currentStep--;
if (currentStep < 0) {
currentStep = 0;
return;
}

controller.historyStep(clone(historyArray[currentStep]));
}
static function redo() {
if (historyArray.length < 2) return;
currentStep++;
if (currentStep > historyArray.length - 1) {
currentStep = historyArray.length - 1;
return;
}

controller.historyStep(clone(historyArray[currentStep]));
}
static function clone(obj:Object):Object {  
var o = (null != obj.length) ? [] : {};
for (var i in obj) {
o[i] = (typeof obj[i] == "object") ?
clone(obj[i]) : obj[i];
}
return o;
}
static function get data():Object {
return {step:currentStep, len:historyArray.length};
}
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Dynamically Loading JPGs ~ Strange Behavior

2006-09-01 Thread Steven Sacks | BLITZ
Some of the JPGs might be exported with Progressive turned on.  Flash
can't display those (pre 8) so that might be your issue.


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Friday, September 01, 2006 10:24 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] Dynamically Loading JPGs ~ Strange Behavior
> 
> I have about 20 jpegs that are dynamically being loaded into a swf.
These
> images are loaded one at a time, fade in as the previous one fades
out,
> and then eventually the loop starts over again, loading the initial
image.
> I am using the MovieClipLoader Class to load them. I am, however,
running
> into an odd problem.
> 
> On the site's live server (Linux Box), the images don't always get
loaded
> in to the swf and there is just 'white' space.  I have this exact site
on
> another hosting company's server (windows) and the issue never occurs.
To
> resolve the issue, I have even tried to use a "cacheBuster" for the
images
> (ex: image1.jpg?12345). This however still doesn't work.  I have also
> tried using a "Windows" server on the live site, but it yielded the
same
> result. In my mind. clearly this is an issue with the hosting
company?.
> Does anyone have any thioughts about why this may be occuring?
> 
> Thanks for any and all replies.
> 
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [FlashCoders] Images stay on memory forever?

2006-08-31 Thread Steven Sacks | BLITZ
That is correct.  If you want to remove a movieclip that you did not
attach using attachMovie (one that is manually there on a layer in the
timeline at compile) then you have to first swapDepths() it and then you
can removeMovieClip it.



BLITZ | Steven Sacks - 310-551-0200 x209


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of eric dolecki
> Sent: Thursday, August 31, 2006 10:52 AM
> To: Flashcoders mailing list
> Subject: Re: [FlashCoders] Images stay on memory forever?
> 
> to remove a movieclip, you need to create or attach it first. if
you're
> using the IDE to place the mcs, you can't use removeMovieClip().
> 
> if a mc is not on stage, is invisible, it will still be rendered by
the
> player.
> 
> Thats the way it works, whether it makes sense to you or not.
> 
> On 8/31/06, Dimitrios Bendilas <[EMAIL PROTECTED]> wrote:
> >
> > Hi Steven,
> >
> > Thanks for the information.
> > I've read this great article before, I'll read it once more
> > to refresh my memory.
> >
> > My mistake, I forgot to mention that I have the same issue
> > even if I remove the movieclip with removeMovieClip(),
> > or move it to negative coords, outside the visible stage area.
> >
> > Does this still make sense? Well, not to me!
> >
> > Dimitrios
> >
> >
> >
> > - Original Message -
> > From: "Steven Sacks | BLITZ" <[EMAIL PROTECTED]>
> > To: "Flashcoders mailing list" 
> > Sent: Thursday, August 31, 2006 8:32 PM
> > Subject: RE: [FlashCoders] Images stay on memory forever?
> >
> >
> > Setting a movieclip to invisible doesn't free up memory, nor does it
> > reduce processing power that anything in that clip is doing.  The
only
> > thing it frees up is drawing power, which can help in some cases.
> >
> > The Flash garbage collector is not as good as it could be and we
> > currently don't have any hooks into it.  It's very easy for memory
waste
> > (as opposed to a leak) to occur when one isn't sure how it happens.
> >
> > Here is a great article on Scope Chain and Memory Waste. Recommended
> > reading for anyone interested in memory management in Flash.
> > http://timotheegroleau.com/Flash/articles/scope_chain.htm
> >
> > That being said, back in the Director days clients used to freak out
> > because Director used 99% of the CPU.  What they didn't understand
was
> > that it would readily give up any of its processing power when
anything
> > else needed it, but as long as it was running, it used as much
available
> > CPU as it could to ensure it ran as smoothly as possible.  If your
> > client is giving you a hard time over a few thousand k of memory
usage,
> > your project is going too well.  Slow it down and miss some
milestones.
> > Give them something important to pester you about.  ;)
> >
> > HTH!
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> >
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [FlashCoders] Images stay on memory forever?

2006-08-31 Thread Steven Sacks | BLITZ
Setting a movieclip to invisible doesn't free up memory, nor does it
reduce processing power that anything in that clip is doing.  The only
thing it frees up is drawing power, which can help in some cases.

The Flash garbage collector is not as good as it could be and we
currently don't have any hooks into it.  It's very easy for memory waste
(as opposed to a leak) to occur when one isn't sure how it happens.

Here is a great article on Scope Chain and Memory Waste. Recommended
reading for anyone interested in memory management in Flash.
http://timotheegroleau.com/Flash/articles/scope_chain.htm

That being said, back in the Director days clients used to freak out
because Director used 99% of the CPU.  What they didn't understand was
that it would readily give up any of its processing power when anything
else needed it, but as long as it was running, it used as much available
CPU as it could to ensure it ran as smoothly as possible.  If your
client is giving you a hard time over a few thousand k of memory usage,
your project is going too well.  Slow it down and miss some milestones.
Give them something important to pester you about.  ;)

HTH!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] JSFL: Can I set the htmlText property?

2006-08-30 Thread Steven Sacks | BLITZ
Have you tried setting renderAsHTML before you setTextString?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] >> String and Expression SPECIAL

2006-08-29 Thread Steven Sacks | BLITZ
Try bracket access.

rec.text = flashSQL.MoveNext[d] 

I don't have enough of your code to know for sure but that's my first
guess.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Steven Sacks | BLITZ
You are being far too defensive.  I was not attacking you, I was
attacking lazy coding practices.  I didn't say YOU are a lazy coder, I
said taking advantage of a compiler's shortcoming is lazy coding.

If the compiler required him to call super(), he would have had more
information to figure out what was wrong.  My telling him to call
super() provides information to the relationship of inherited classes.
You saying that the compiler allows you to get away without calling
super() doesn't help him understand his problem nor is it good practice,
especially for somebody who is learning the ropes of OOP.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Steven Sacks | BLITZ
And one more thing - if the compiler complained to him to call super(),
then he wouldn't have had this problem would he?  I'll take a strict
compiler any day.  Don't encourage lazy coding; it only opens the door
for bugs and confusing results.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Steven Sacks | BLITZ
And a browser tries to fix unclosed div and font tags, too.

Just because compiler allows you to be lazy doesn't mean you should be.
Code right, or don't code at all.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Steven Sacks | BLITZ
You should make sure to call super(); in your subclass constructors,
too.


BLITZ | Steven Sacks - 310-551-0200 x209


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Chris Allen
> Sent: Tuesday, August 29, 2006 2:56 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Class inheritance and scope
> 
> Hi Helmut,
> 
> They don't need to be static at all. In fact if you want to access the
> parent class you can use the key word super. super.myMethodName() for
> example. Take a look at the documentation on that and hopefully that
> gets you pointed in the right direction.
> 
> Good Luck.
> 
> -Chris
> 
> On 8/29/06, Helmut Granda <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I have a class with 3 subclasses. in order for me to access a method
> from
> > any of the subClasses they have to be static (or at least that is
the
> error
> > that the compiler gives me) so i have made my methods static and now
> when i
> > try to access somethig out of those methods flash tells me that
Instance
> > variables cannot be accessed in static functions.
> >
> > Im a bit confused about this. i know that getting an answer from a
> mailing
> > list might not be sufficient to explain the concept but any attempts
are
> > welcome.
> >
> > TIA
> > Helmut
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] OOP methodology and flash. I'm loosing my faith...

2006-08-29 Thread Steven Sacks | BLITZ
I wrote:
> > All I have to say about this is tellTarget and _global.
> > Conversation over.

Mike wrote:
> tellTarget was deprecated in Flash 5 and has been removed in AS3.  Not
> sure what you mean about _global, or why the conversation is over.
> ...
> Maybe I'm missing something.

Yes, a sense of humor.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Extending singletons?

2006-08-29 Thread Steven Sacks | BLITZ
I have singletons with extensions.

class myClass extends superClass {
private static var _instance;
  function myClass() {
// do constructor stuff
}
public function get instance() {
if (!_instance) return new myClass();
return _instance;
}
}

Or do you mean the superClass is a singleton?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Re: OOP methodology and flash. I'm loosing myfaith...

2006-08-29 Thread Steven Sacks | BLITZ
If I am building an application, not a presentation, and it's not
throwaway (going to be gone in 6 months) or I'm expected to maintain
and/or upgrade it for awhile, then I will write MVC because of all the
benefits it provides long-term and for future developers to follow
behind me.  Otherwise, I just code to get it done and there's nothing
wrong with that.  Knowing how to do both and when to do which is
important when managing your stress level and time management skills.

MVC doesn't help you get a disposable, glorified power point
presentation out the door faster and I've seen many intermediate coders
over code something with views and controllers when it's just a screen
with three buttons that swap a center movieclip with three different
images.  They might see it as practice, but it's not good practice to
use the wrong tool to get the job done.  

If you're building a bird house, should you spend the time to get proper
zoning, building permits and lay down a cement foundation, plumbing and
wiring as if you were building a real house?  :)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] clone object

2006-08-25 Thread Steven Sacks | BLITZ
> I'm not working for blitz at the moment ;)

Me neither while this keeps up!  ;)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] clone object

2006-08-25 Thread Steven Sacks | BLITZ
Are you stalking me, Grden?  :)

> 1.  I use block comments all the time - but if you think it's janky,
more
> power to you.

I have the power of Greyskull.  Block comments are for commenting out
*gasp* blocks of code.  I use block comments all the time for that very
purpose.  I use line comments to write internal commentary on my code,
though, so that anyone can comment out blocks without issue.


> 2.  I prefer people to drop the curly brace down to the next line, not
> left up on the method declaration line.  But I don't give a rats ass
if 
> they don't.

That's a tomayto tomahto thing.  I can read code just fine either way.


> 3.  I think WWF wrestling is fake - but it's cool if others don't.

It's never cool to be willfully ignorant.  And while it is all fake,
it's not like it doesn't hurt getting slammed to the floor or doesn't
require a level of athleticism and endurance.  It might be a show, but
it takes a lot of work to put on that show and I'm sure there are real
injuries.
 

> 4.  Drew Bledsoe will be out by the 3rd game of the regular season -
well,
> that's just a fact.

Baseball is boring.  Are you cool with me saying that?  ;)


> 5.  Your mom.

Has a broken heart thanks to you.  Nice going, John, you tease.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] clone object

2006-08-25 Thread Steven Sacks | BLITZ
I'm using this to clone data objects.  If you put circular references in
your data models that's not my problem.  :)



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of John Grden
> Sent: Friday, August 25, 2006 6:37 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] clone object
> 
> Guess there's a first time for everything, eh?
> 
> var obj = new Object();
> obj.prop1 = new Object();
> obj.prop1.prop2 = new Object();
> obj.prop1.prop2.ref = obj.prop1;
> 
> function clone(obj:Object):Object
> {
> var o = (null != obj.length) ? [] : {};
> for (var i in obj)
> {
> o [i] = (typeof obj[i] == "object") ? clone(obj[i]) :
> obj[i];
> }
> return o;
> }
> 
> 256 levels of recursion were exceeded in one action list.
> This is probably an infinite loop.
> Further execution of actions has been disabled in this movie.
> 
> ;)
> 
> On 8/24/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
> >
> > If you're not willing to code a solution, then why are you bothering
to
> > write out an explanation?  I have yet to encounter a recursion limit
and
> > I've parsed some deep object models.
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> 
> 
> 
> --
> [  JPG  ]
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


<    3   4   5   6   7   8   9   10   11   12   >