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
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
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
, 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
, 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 flashcoders@chattyfig.figleaf.com
Sent: Thursday
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
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
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
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
{
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
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:
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
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:
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:
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
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
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
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
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:
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:
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.
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
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
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
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
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
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
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:
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
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
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
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.
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
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.
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
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
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
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
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.
___
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
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
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
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
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
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
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
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
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
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
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();
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
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
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
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.
___
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
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://youtube.com/watch?v=CJ-n2IVxW_Y
___
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
All I have to say about this is tellTarget and _global.
Conversation over!
___
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
.
;)
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
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
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
] On Behalf
Of Steven Sacks | BLITZ
Sent: 24 August 2006 02:19
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Flash/Actionscript Coding conventions
why does adding block comments to your code ruin it?
I still don't understand how Javadoc makes your process suffer.
From my
Here's one way:
myString.split(\r).join();
myString.split(\n).join();
And if you use my XString class (search the archives):
myString.squeeze( ); might do the trick, too.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or
Careful with circular references. Pretty easy to get that one in to
exceed the 256 recursion limit.
Feel free to post an alternative. :)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hi,
I have a model class that has a bunch of getters and setters.
Example:
private var _prop:Object;
function get prop():Object {
return _prop;
}
function set prop(p:Object) {
_prop = p;
}
I have a controller class that instantiates that model.
I'm wondering if there is some
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
http://www.regular-expressions.info/tutorial.html
This is the best RegEx tutorial I've seen out there. It's comprehensive
and every lesson builds on the last. By the time you get through it,
you'll be a RegExpert! :)
___
I have an issue with coders who put block comments in the middle of
their code, such as:
/***
** SOME COMMENTS
**/
function foo() {
trace(hello world);
}
Or even worse:
/***
** SOME COMMENTS
**/
function foo() {
/*
Putting a block comment before a function is standard
All standards are is somebody's way of saying I code like this and so
should you. Everyone codes how they want to anyway. And by the way,
nobody reads those documents anyway. I certainly don't. I read code
the way I read music. I don't
Experienced coders who don't want to take the time to trawl through
possibly impenetrable code read those documents.
If you write impenetrable code, you need to reevaluate your career
choice. If you're not willing to put forth the effort to be great at
what you do, especially in something as
why does adding block comments to your code ruin it?
I still don't understand how Javadoc makes your process suffer.
From my first post:
Commenting like that in your code makes it completely impossible to
easily and completely comment out blocks of code using /* */ because
they have their */
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;
}
___
Hey try out FLASC, a nice GUI for MTASC that runs in the Flash IDE.
http://osflash.org/flasc
It makes it easy to add classes and such.
-Steven
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Optimized for her pleasure:
hex = [00, 33, 66, 99, CC, FF];
wsp = [];
var r, g, b;
r = 6;
var x = 0;
while (--r -(-1)) {
g = 6;
while (--g -(-1)) {
b = 6;
while (--b -(-1)) {
wsp[x++] = 0x + hex[r] + hex[g] + hex[b];
SENIOR FLASH PROGRAMMER (Full-Time)
BLITZ is looking for a Full-Time Senior Flash Programmer with strong
ActionScript 2 and OOP skills. The chosen one will be leading and
building a wide range of interactive experiences, games, websites and
rich internet applications. You'll get the chance to
The salary range is 70k-90k.
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ
Sent: Friday, August 18, 2006 10:55 AM
To: Flashcoders mailing list
Subject: [Flashcoders] JOB: BLITZ Agency
SENIOR FLASH PROGRAMMER
Yes.
BLITZ | Steven Sacks - 310-551-0200 x209
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of John Giotta
Sent: Friday, August 18, 2006 11:14 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] JOB: BLITZ Agency
In-house
Did you put the remoting components on the stage?
___
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
I've always put the Remoting Debug component on the stage. Somebody
told me you had to. Good to know. :)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
If you spent money on getting Flash certification, I'd certainly agree
you were certifiable. ;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
hi people,
anybody know how to draw button using AS.
if anybody can tell me,
thanks
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-April/164718.htm
l
hi hello how do I make a multi-player game in flash its got to have
lasers thank you
___
from a usability standpoint its not great
Jakob Nielsen is overrated! ;)
___
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
sometimes it overwhelms the enjoyment of the information
You find it enjoyable to read about an ad agency's employees?
You're kidding, right? I mean, do you think that anyone would give a
crap about that site if it had standard navigation? Think outside the
box, man!
:)
Is there a reason to wrap this in parentheses?
(no)
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
Ok, so it's very specific to BitmapData objects, and even in Grant's
example, it's because he's using a temporary variable which isn't
getting cleaned up, and he has the solution (which IS the solution) to
hold on to the reference to dispose of it later.
The person who posted on the second link
Especially a Flash guru ;)
BLITZ | Steven Sacks - 310-551-0200 x209
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Chris Hill
Sent: Thursday, August 10, 2006 4:32 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] print
Character substitution, perhaps?
Use pipes | perhaps.
Then, in Flash...
myLoadedString.split(|).join(\);
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Right you are! Thanks!
BLITZ | Steven Sacks - 310-551-0200 x209
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Heerko van der Kooij
Sent: Tuesday, August 01, 2006 9:12 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] String
I have no idea what memory leak issues you're talking about with the
Flash player. I've created a few applications that were designed to run
for days and even weeks at a time without a restart and I was able to
eliminate all memory leak and memory waste issues with Flash 6, 7 and 8
with careful
Don't use the toLowerCase()
Because when I write my name like: Bernard Visscher I don't want the
output to be Bernard visscher with the lowercase V.
That's what capitalize() does. For what you're wanting you should use
toTitleCase().
___
You may be new to Flash development, but it's no secret that Flash
performance on the PowerPC Macs is, to understate it, lacking.
The only known solution is to take a deep breath and accept the reality
that there is nothing you can do about the sluggish performance on those
machines, and that, in
Hello,
I'm trying to figure out a way to set the Publish path of the SWF of the
current document using JSFL. Does anyone know how to accomplish this?
Thanks!
---
Steven Sacks
Senior Flash Developer
[EMAIL PROTECTED]
Ph: 310-551-0200 x209
Fax: 310-551-0022
BLITZ | 405 S Beverly Drive, 3rd
Just to clarify, I don't want to exportSWF(), I want to change the
publish path of the SWF file and then save the FLA with that set path.
This is so I can create template FLAs and have them all publish
themselves to
../deploy/FILENAME
I can import and export publish profiles, but I want to
Is there any way to do step 1 (or bypass it) using actionscript?
No.
___
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
Just a quick note on capitalize()
String.toUpperCase() and String.toLowerCase() are part of ActionScript
1
since Flash 5
Capitalize is different than toUpperCase and toLowerCase. Those convert
the entire string, capitalize only uppercases the first character and
then lowercases the rest of
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-April/164718.htm
l
hi hello how do I make a multi-player game in flash its got to have
lasers thank you
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Ammor
umm... Title Case as MS Word calls it...
Title Case in Word is different than capitalize. Title Case capitalizes
every word in a string. Capitalize only capitalizes the first character
of the string. However, toTitleCase() would be a handy method. I'll
code it.
The next in my Empowerment series of scripts tackles the Date object.
Rails introduced a ton of great shortcuts and methods to their Time
object, the equivalent to the Date object in Flash (though much easier
to use). I've appropriated all their methods and added a few more.
There are some great
BLITZ | Steven Sacks - 310-551-0200 x209
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ
Sent: Friday, July 28, 2006 12:22 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Date Empowerment
The next in my
Oops that last message got messed up:
-
A quick fix to two methods that should have used weeks not days in
their change methods.
// Sets date representing the start of the given day in next week
(default is Monday).
Date.prototype.nextWeek =
701 - 800 of 1049 matches
Mail list logo