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 o

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 per

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 Tr

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

[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? __

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.

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@chattyf

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.figl

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: [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. __

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 } }

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 as

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()

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 P

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 subscript

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 opt

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;

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 the

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 t

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, t

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/flashcode

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 t

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/

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

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 fail

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://w

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. B

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 do

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 sea

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. ___ Flashco

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 o

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) a

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

2006-10-11 Thread Steven Sacks | BLITZ
f 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" <[EMA

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

2006-10-11 Thread Steven Sacks | BLITZ
Changed(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 PROT

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 subscripti

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 PROT

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 an

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 Be

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 wha

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-I

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

2006-10-11 Thread Steven Sacks | BLITZ
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: h

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 tru

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/mailma

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

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/lis

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

2006-10-10 Thread Steven Sacks | BLITZ
tr: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 >

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 c

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

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 S

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 t

RE: [Flashcoders] Playing video backwards kills my CPU

2006-10-10 Thread Steven Sacks | BLITZ
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

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-020

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

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:

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.figl

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

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

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.

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/flashc

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 y

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 f

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 b

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 ch

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-J

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

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.fi

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 pass

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/m

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 So

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

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 Broug

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. __

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. _

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 t

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.figlea

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 hun

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 mea

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 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 f

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 mo

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

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 arr

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

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 hav

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 chan

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

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 > -Origi

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 ho

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 P

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

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 w

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. ___ Flashco

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

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 >

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 o

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(); re

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 j

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 b

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 t

RE: [Flashcoders] clone object

2006-08-25 Thread Steven Sacks | BLITZ
re 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, th

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