Re: [Flashcoders] structuring singletons in AS3

2008-12-02 Thread Steven Sacks
Singletons are overused and, except in rare instances, are a bad idea. Singletons are acceptable if you're writing throwaway code, like agency stuff where getting it done under tight deadlines is more important than getting it done in the most scalable and flexible way. A Singleton is just a

Re: [Flashcoders] structuring singletons in AS3

2008-12-02 Thread Steven Sacks
Why aren't you using a static class for that instead of a Singleton? Mendelsohn, Michael wrote: Thanks for the responses everyone. Steven, I could use some constructive feedback: Usually what I do is have a singleton instanced when the swf is initialized, and using composition, other classes

Re: [Flashcoders] Loader bytesTotal equals to 0

2008-12-04 Thread Steven Sacks
Just for clarification, it was 4 bytes (the size of an empty MovieClip in AS2). I don't know if it's the same in AS3 (don't care enough to look into it). I don't think that's the issue he's having. I think he's saying the bytesLoaded is returning correctly, but the bytesTotal is 0 the entir

Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Steven Sacks
For clarity, they're referred to as implicit and explicit. get prop / set prop = implicit getProp() / setProp = explicit In AS2, it made a difference because implicits were available right away, whereas explicits were not available for 1 frame. This limitation is not present in AS3. Basical

Re: [Flashcoders] video seek ability

2008-12-09 Thread Steven Sacks
Here's what you need to know to make a good scrubber for progressive download FLVs. 1. You need a background that shows the entire width of the bar. 2. You need a progress bar that shows how much of the video has loaded. The width of this bar is the background.width * (ns.bytesLoaded / ns.byt

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Steven Sacks
Keyword: Old. Hans Wichman wrote: ps we're probably not the first ones discussing this old subject, has n1 found some good sources/references? Most of the old CS textbooks sentence you to hell for using public variables so let's not refer to those ;)

Re: [Flashcoders] video seek ability

2008-12-10 Thread Steven Sacks
> Make sense? bytesTotal = 100% * width; duration = 100% * width; bytesLoaded / bytesTotal = 0%-100% * width time / duration = 0%-100% * width The relationship between bytesLoaded and time is 1 to 1, which is why my scrubber logic is flawless. That's where you went off the track. Eek, a pun!

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Steven Sacks
And just to clarify: Stand on the shoulders of giants, don't follow in their footsteps. Steven Sacks wrote: Keyword: Old. Hans Wichman wrote: ps we're probably not the first ones discussing this old subject, has n1 found some good sources/references? Most of the old CS textbook

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Steven Sacks
Thankfully, AS3 allows you to put implicit getters and setters into an interface. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Steven Sacks
It is incredibly rare that I agree with Steven. I resemble that remark! ;) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] RE: Interactive Developer, NYC | 90-100k (Beau Gould (OSS))

2009-01-01 Thread Steven Sacks
Not really. That's far less than I work for. alan skinner wrote: Surely thats not the going rate for a flash developer in the US? Thats an obscene amount of money ;o) _ It’s the same Hotmail®. If by “same” you mean up to 70%

Re: [Flashcoders] Storing x and y in a bytearray

2009-03-31 Thread Steven Sacks
http://polygonal.de If you want to learn about maximum optimization for collision detection, etc. nobody knows more than this guy. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Favorite Flex book?

2009-04-14 Thread Steven Sacks
> For training, I like the Adobe Flex training from the source book(s). I personally did not like this book at all. Here's how the book goes: Build this like this. Build that like that. Now, you know how you built this and that? That's the wrong way to build it, so we're going to refactor

Re: [Flashcoders] Favorite Flex book?

2009-04-14 Thread Steven Sacks
>This book obviously wasn't meant for your learning style, but it was for me. Different strokes for different folks! :) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] flickr api as3

2009-04-17 Thread Steven Sacks
http://tinyurl.com/d67kuy On Apr 17, 2009, at 1:02 PM, Preston Parris wrote: Does anyone have a good example of loading thumbnails from flickr, and then once you click on that thumbnail, loading a larger version of the picture from flickr still in the flash. Everything i have found links to

Re: [Flashcoders] flickr api as3

2009-04-20 Thread Steven Sacks
Hilarious. On Apr 19, 2009, at 5:17 PM, Peter B wrote: Ha! Know what's crazy there? Your post Stephen, and the OP are now the number 3 & 4 results from that search... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figl

[Flashcoders] Adobe AIR Mailing List?

2009-04-23 Thread Steven Sacks
Anyone know of an active Adobe AIR mailing list (like Flashcoders/ Flash Tiger)? Apollocoders is basically dead, and all posts are moderated. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/f

Re: [Flashcoders] Adobe AIR Mailing List?

2009-04-24 Thread Steven Sacks
Rad. I've blogged and twittered about it. I suggest everyone else do the same! On Apr 24, 2009, at 7:21 AM, Merrill, Jason wrote: and give the group a name like FlashTiger, I made Air-Tight. Great name, I love it. Jason Merrill Bank of America Global Learning Shared Services Soluti

Re: [Flashcoders] Embed Fonts in Main SWF

2009-05-07 Thread Steven Sacks
You can embed specific ranges like this: http://www.gaiaflashframework.com/index.php/topic,1678.msg7436.html#msg7436 If you put the font in the library, you can just set the font to export in frame 1, give it a class name and then Font.registerFont(fontClassName); Easy peasy. On May 7, 20

Re: [Flashcoders] is imported db text safe from decompilers?

2009-05-13 Thread Steven Sacks
Encrypt your text using a super crazy encryption algorithm. Then, create a swc that contains the key and algorithm to decrypt the text. Then, encrypt that swc using another super crazy encryption algorithm. Load the swc at runtime as raw bytes, decrypt it in memory, and then instantiate it

Re: [Flashcoders] FileReferenceList - no upload function?

2009-05-15 Thread Steven Sacks
http://74.125.155.132/search?q=cache:Z9ZpwotYRtkJ:www.mikestead.co.uk/2009/01/04/upload-multiple-files-with-a-single-request-in-flash/+AS3+Socket+send+progress+broken&cd=3&hl=en&ct=clnk&gl=us&client=firefox-a On May 15, 2009, at 11:19 AM, Paul Freedman wrote: I haven't had to build ftp function

Re: [Flashcoders] Is there an AS3 equivalent of AJAX Suggest (like Facebook autofill searchbox)? is it even possible?

2009-05-15 Thread Steven Sacks
Like the search on this site? http://www.dermalogica.com/us/#/home It's actually super easy to do this. On May 15, 2009, at 12:48 PM, Carl Welch wrote: Hi all, I need to make an AS3 version this: http://www.w3schools.com/ajax/ajax_example_suggest.asp I'm thinking I'll query the database fo

Re: [Flashcoders] JSON Experiences

2009-05-20 Thread Steven Sacks
If your XML has namespaces (like YouTube's xml feeds), then, yes, JSON is easier to implement. Namespace support in E4X is the very definition of "Royal Pain In The Arse". It's why the AS3 code lib for YouTube uses their JSON feed instead. It's just too ridiculous to deal with all those

Re: [Flashcoders] JSON Experiences

2009-05-20 Thread Steven Sacks
Agreed! On May 20, 2009, at 3:45 PM, Taka Kojima wrote: IMO, there are times to use JSON and times to use XML. JSON is very easy to implement and not very hard to grasp... all you're basically doing is running an encode when you send data out and a decode when you bring data in. So you o

Re: [Flashcoders] XML Sorting Question

2009-05-21 Thread Steven Sacks
My advice is to use the wonderful encyclopedia available to you called "The Internet". I went to Google and typed in: sort xml AS3 The first 4 results have the exact code you need to do this. The Internet: Helping people find answers, one search at a time. On May 21, 2009, at 7:25 AM, Dom

Re: [Flashcoders] Parsing HTML tags within flash from an XHTML file?

2009-05-21 Thread Steven Sacks
http://www.gaiaflashframework.com/index.php/topic,1847.msg7817.html#msg7817 Just so everyone is familiar with the context here, the above is the thread on the forum about this. The question is about how to use E4X to parse XHTML. I provide a code example of how easy it is to do this, but J

Re: [Flashcoders] Parsing HTML tags within flash from an XHTML file?

2009-05-21 Thread Steven Sacks
) 298-2738 office: (713) 464-CRAM (2726) email: jw...@cramcrew.com www.cramcrew.com "One Student At A Time" -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steven Sacks Sent: Thursday, May 21, 2009

Re: [Flashcoders] Problem with footer fixed to bottom of page

2009-05-21 Thread Steven Sacks
Without posting the errors, I can't tell for sure, but it's possible you didn't declare pubilc var footer_bar:MovieClip at the top of your class? Or, perhaps it's null? On May 21, 2009, at 12:41 PM, Jonathan Wing wrote: This is probably a silly question, but I've searched google and can't

Re: [Flashcoders] calling an "event" function with a parameter that is a number

2009-05-23 Thread Steven Sacks
The latter is cleaner and better, IMO. Write a function that your event handler calls. Then, you can call it from elsewhere and from your button click handler. function onThumbClick(event:MouseEvent):void { loadImage(event.target.name); } function loadImage(num:int):void { // loadImage

Re: [Flashcoders] How do I flow text from an XML/XHTML file into two columns?

2009-05-26 Thread Steven Sacks
Could you show some sample of the XHTML you are reading in? Specifically, what does body.p trace out? On May 26, 2009, at 4:00 PM, Jonathan Wing wrote: Using Gaia, I am trying to load content within flash from an XHTML file, and have the text flow from a into two columns. This is what I h

[Flashcoders] OT: The Vendor Client relationship In real world situations

2009-05-28 Thread Steven Sacks
http://www.youtube.com/watch?v=R2a8TRSgzZY This is a work of genius. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Dynamic fonts and Tweens

2009-06-07 Thread Steven Sacks
Did you choose the characters you wanted to embed on the TextField? John R. Sweeney Jr wrote: After I attach the mc, I position both the _x and _y with no problem. The _alpha does not function. I¹m now trying it in just a simple, new moving and the alpha works if I attach the mc, but if I chang

Re: [Flashcoders] XML find and delete nodes

2009-06-09 Thread Steven Sacks
Filter the XML using E4X and then make a new XML from that filtered result. var xml:XML =

Re: [Flashcoders] XML find and delete nodes

2009-06-09 Thread Steven Sacks
Actually, you don't need that newXML var. Sorry. I left that in during debugging. Just setChildren the original xml, as I did. If you want to make a copy without destroying the original, then setChildren() the newXML var instead. ___ Flashcoder

Re: [Flashcoders] XML find and delete nodes

2009-06-09 Thread Steven Sacks
Once you really dig into E4X and realize the crazy stuff you can do, it's amazing. I do some pretty crazy E4X parsing, filtering and validation with Gaia. Here are some examples: // get all nodes named page or asset in the entire XML var nodes:XMLList = xml.descendants().(name() == "page"

Re: [Flashcoders] array.indexOf problem

2009-06-16 Thread Steven Sacks
Your sample doesn't show how you build the Array. So the answer to your incomplete question is nothing different than what Flash is telling you. The reason it returns -1 is because indexOf couldn't find a STRICT EQUALITY match for e.target.name in your array. If you posted how you built b

Re: [Flashcoders] Re: SWAddress logical workflow

2009-06-16 Thread Steven Sacks
This is exactly how Gaia works. goto() calls setValue on SWFAddress and the response is dispatched to the framework to handle the navigation. Interrupts are handled in both loading and transitions. It's open source, so you're welcome to examine how it's done in Gaia. On Jun 16, 2009, at

Re: [Flashcoders] Flash MouseWheel Listener Problem

2009-06-26 Thread Steven Sacks
http://www.libspark.org/wiki/SWFWheel/en On Jun 26, 2009, at 1:50 AM, Dav wrote: Hi Guys, I'm having a problem with attaching the mouse wheel listener to the stage in AS3. For some strange reason, when flash is focused and I scroll my mouse wheel, the entire browser scrolls along with f

Re: [Flashcoders] Flex interferes with SVN

2009-06-26 Thread Steven Sacks
http://jessewarden.com/2008/05/two-directory-source-control-workflow.html On Jun 26, 2009, at 3:00 PM, Mario Gonzalez wrote: If I have a project that is under subversion control, then I decide to make a flex project with the folder (order of these two operations can be reversed with same re

Re: [Flashcoders] mac vs pc

2009-08-11 Thread Steven Sacks
My home computer is a Windows XP box. My last full-time job was a Mac-only shop. So, I used Mac every day, 5 days a week, for 10 months. Within a few weeks, I realized I couldn't live without FlashDevelop. I installed Parallels 3 with Windows XP and figured out how to use FlashDevelop in my

Re: [Flashcoders] mac vs pc

2009-08-12 Thread Steven Sacks
I didn't say people who used it were retarded, I said the program was. The bottom line is, you can use Flex Builder to do your debugging if you need it, but for coding, which is what you spend the majority of your time doing, all the Eclipse-based Actionscript editors suck ass compared to Flash

Re: [Flashcoders] mac vs pc

2009-08-12 Thread Steven Sacks
Oh yeah, and Flex Builder is $500 whereas FlashDevelop is free. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] mac vs pc

2009-08-12 Thread Steven Sacks
I'm confused why you would need to look at more than one project at a time, and you can switch projects very quickly in FD by using Recent Projects. It's well established the debugger is limited to tracing, which is generally good enough for most of the time. I don't know what you mean about

Re: [Flashcoders] FlexBuilder 3 auto-complete vs. FlashDevelop

2009-08-13 Thread Steven Sacks
Only FlashDevelop auto-completes in-scope member names and key words. Only FlashDevelop has smart auto-completion that forgives typos. AFAIK, only FlashDevelop has toggle line (CTRL+T) functionality (which I use all the time), and the *extremely* useful clone file (CTRL+SHIFT+N) functionality.

Re: [Flashcoders] mac vs pc

2009-08-13 Thread Steven Sacks
FlashDevelop does do find and replace in files. FlexBuilder's "rename" function is very slow sometimes. FlashDevelop's Find and Replace In Files is nearly instant. Considering how infrequently one uses "rename" in FlexBuilder, it doesn't seem to offset the slowness of day to day coding with i

Re: [Flashcoders] Slow emails

2009-08-13 Thread Steven Sacks
I have slow email issues with Flashcoders, as well. There's a noticable delay between when I post and when it shows up. Sometimes I get no emails for awhile, and then a slew of them come in (like a hose that's been crimped and then released). FlashTiger emails show up very quickly, but they'r

Re: [Flashcoders] FlexBuilder 3 auto-complete vs. FlashDevelop

2009-08-13 Thread Steven Sacks
FlashDevelop auto-completes class, instance and local vars, as well as native key words like public, private, class, interface, implements, function, static, const, etc. FDT and FB do not. Here's what toggle line does hello(); world(); CTRL+T on world line world(); hello(); While this mig

Re: [Flashcoders] FlexBuilder 3 auto-complete vs. FlashDevelop

2009-08-13 Thread Steven Sacks
FlexBuilder absolutely does NOT do auto-completion of class, instance and local vars (FD also does function names, etc.). I've never seen FDT do it, either, but that link obviously makes it clear that it is possible (though completely undocumented, not to mention that field doesn't look like it

Re: [Flashcoders] FlexBuilder 3 auto-complete vs. FlashDevelop

2009-08-13 Thread Steven Sacks
It certainly does. It's simply using the mxml compiler to find those errors. The FD developers have stated their intent to include it one day, but have stated it's a lot of work. They currently have syntax checking. Keep in mind that FlashDevelop is two guys working in their spare time for fre

Re: [Flashcoders] FlexBuilder 3 auto-complete vs. FlashDevelop

2009-08-13 Thread Steven Sacks
In FlexBuilder, they don't start appearing as auto-completion hints as you type. You have to hit CTRL+SPACE. This is not a "mere" difference. You have to stop writing code to get auto-completion. Even worse, it's not "live" which means it breaks your natural flow. In FlashDevelop, you can hit

Re: [Flashcoders] Slow emails

2009-08-14 Thread Steven Sacks
Kerry, My email was a matter of fact one, nothing more. It had nothing to do with the quality of the posts, members or owner. Flash Tiger emails show up very quickly because they're on Yahoo servers. Despite their recent financial troubles, Yahoo has a ton of servers on very fat pipes. By

Re: [Flashcoders] FlexBuilder 3 auto-complete vs. FlashDevelop

2009-08-14 Thread Steven Sacks
Unfortunately, yes, I get runtime errors sometimes when screens are split and you close some tabs. You can choose to ignore the errors and FlashDevelop will keep on trucking. You don't have to quit. Joel Stransky wrote: Hey Steven, does FD crash on you when you have your view split and choo

Re: [Flashcoders] Slow emails

2009-08-16 Thread Steven Sacks
Dave, As an example of the irregular nature of the current list server, I did not receive your response. I saw Latcho's response to your response, which thankfully quoted your response, otherwise I would have missed it. I'm not sure how many emails I've missed and *not* known about. Thanks

Re: [Flashcoders] Slow emails

2009-08-16 Thread Steven Sacks
As I understand it, the previous ones were lost forever, unfortunately. Alan wrote: I think the current Mailman configuration works well, although it would be nice if the web archives worked. There's so much helpful information coming through this list, but they end in late 2007. Alan If

Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-17 Thread Steven Sacks
I don't understand why you would not want to write a single line of code in the class where it would provide the most clarity, and instead write MORE code in another class obscuring the behavior that is going on. In other words, you're writing more code to write the same code. You're going to

Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-17 Thread Steven Sacks
if (Boolean) Everything inside an if statement is automatically coerced into a Boolean. Either it is or it isn't. It's not more clear to write != null because an if statement cannot possibly be anything other than true or false. In this case, null or not null. Writing it out is redundant (and

Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-17 Thread Steven Sacks
Dave Watts wrote: > Lots of people hate implicit Boolean conversion, and see it as a sin > against God and nature. I'm not one of those people, but I think it's > a mistake to say that implicit Boolean conversion is superior and > everyone should use it. Code bloat is one of the seven deadly sins

Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-17 Thread Steven Sacks
It's called artistic license. ;) And you are eating code, through your eyes and brain. :) Dave Watts wrote: Code bloat is one of the seven deadly sins (gluttony). This is why we all name our variables things like x, y, etc instead of giving them recognizable names, right? And gluttony, r

Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-17 Thread Steven Sacks
James Gosling got his Doctorate in CS in 1983. Programming has changed quite a bit since then. new > old ;) Dave Watts wrote: And you are eating code, through your eyes and brain. :) ... and I must therefore excrete code from my fingertips. And the usefulness of this metaphor reaches a di

Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-17 Thread Steven Sacks
I highly suggest reading "Practices of an Agile Developer" http://www.pragprog.com/titles/pad/practices-of-an-agile-developer Use KISS. Stay DRY. Code less. Code smart (code S-Mart). Use smart shortcuts when they're available to you. Implicit boolean coercion is one such shortcut, among many o

Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-17 Thread Steven Sacks
Here's the best way to write that. No try catch required. if (myDO && myDO.parent) myDO.parent.removeChild(myDO); Keith H wrote: Steven, Maybe its just me but... Just doing a Boolean check on DisplayObjects always put my scripts in high risk of runtime errors. Especially in the case of "cl

Re: [Flashcoders] mac vs pc

2009-08-17 Thread Steven Sacks
The act of writing Actionscript in FlashDevelop is, IMO, better. FD's code completion and code gen is easier and faster. Because code completion and code gen is the majority of what I do from moment to moment as I'm writing, it's the better tool. Refactoring and debugging are not what I spen

Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-18 Thread Steven Sacks
I didn't see a reponse from Ash. Yet another email lost to the ether. :( Dave Watts wrote: And as much as I like Ash, I'm not sure I want to take coding advice from the guy who couldn't remember "klaatu barada nikto" - maybe he was too enamored of shortcuts? Dave Watts, CTO, Fig Leaf Softwar

Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-18 Thread Steven Sacks
That was supposed to be a winky, not a frowny. Steven Sacks wrote: I didn't see a reponse from Ash. Yet another email lost to the ether. :( Dave Watts wrote: And as much as I like Ash, I'm not sure I want to take coding advice from the guy who couldn't remember "

Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-18 Thread Steven Sacks
Dave, come on. Take a stand on the issue. Stop straddling the fence. Pick a side. Im or Ex? I'm not about writing cryptic PERL-like statements, but writing != null is a waste of time. It's obviously a null comparison (by nature of it being an instance). Calling it out as such is redundant.

Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-18 Thread Steven Sacks
The reason you're comfortable straddling the fence is because you don't experience the pain or discomfort associated with a picket sticking into your crotch. Why would that be? ;) How do YOU code? Do you use implicit or explicit? Dave Watts wrote: I think you're missing the point. You're as

Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-18 Thread Steven Sacks
Taka, When you're done building your Straw Man, you let me know and I'll happily continue the discussion with you. Cheers, Steven Taka Kojima wrote: Writing readable code > writing less code. That is what it comes down to. Most coders can understand both of the following: if(myObj){;} an

Re: [Flashcoders] spacing horizontal dynamic xml menu textfields

2009-08-26 Thread Steven Sacks
As I described on my forum post, you have to first put your items in an array. var items:Array = [all, of, your, items]; var len:int= items.length; var i:int; Then, you do the following measurements: // the right of the last item minus the left of the first item var availableWidth:Number = ite

Re: [Flashcoders] empty XML Attributes..

2009-08-26 Thread Steven Sacks
You will get runtime errors when attempting to access an attribute that isn't there. The proper way to check for existence and length of an attribute is to use the .attributes() syntax as such: if (node.attribute("instance").length() > 0) ___ Flashco

Re: [Flashcoders] empty XML Attributes..

2009-08-26 Thread Steven Sacks
hasOwnProperty does not tell you whether it has a length, though. It only checks for existence. And for some reason, it looks like you modified my code when quoting me: >> if (node.hasOwnProperty("instance").length() > 0) I didn't write that code, which would error since a Boolean doesn't hav

Re: [Flashcoders] RE: Flash speech-to-text

2009-08-26 Thread Steven Sacks
This is how you record sound: http://www.getmicrophone.com/?p=69 If you're asking how to convert sound waves into speech, dude, what? Do you realize how challenging speech recognition is? Wait, why am I asking you this? If you did, you wouldn't be asking people on a Flash list how to do it,

Re: [Flashcoders] RE: Flash speech-to-text

2009-08-26 Thread Steven Sacks
Well, if you're got a working server solution, then all you have to do is send an mp3 file to the server, which that link I sent you should describe how to do. Rock on with your bad self. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com h

Re: [Flashcoders] empty XML Attributes..

2009-08-27 Thread Steven Sacks
Unfortunately, that doesn't work. That returns something (an empty XMLList, I believe). The best way to test for attribute existence and/or if it has a value is what I wrote. Glen Pike wrote: Thanks for the answers with the length() thing - I tried out a few of those and got working thing

Re: [Flashcoders] seeing is xml has children

2009-08-27 Thread Steven Sacks
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/XML.html var hasChildren:Boolean = xmlLabels.section.children().length() > 0; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashco

Re: [Flashcoders] Problem understanding Class heirarchy issue

2009-09-01 Thread Steven Sacks
You're not calling super() in the ClassA constructor. On Aug 31, 2009, at 11:12 PM, Sajid Saiyed wrote: Ok, Here is a bit more information. ClassA (works pefrectly fine): --- package com.folder.subfolder { import flash.display.*; import flash.events.*; import flash.filters.*;

Re: [Flashcoders] Problem understanding Class heirarchy issue

2009-09-01 Thread Steven Sacks
In AS2, super() was called automatically (so to speak), so calling it was a matter of proper form more than anything else. In AS3, you have to call it yourself or it doesn't get called. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com ht

Re: [Flashcoders] Can I display slanted quotes in a textField?

2009-09-01 Thread Steven Sacks
I believe you're talking about "curly quotes" and yes you can include them BUT you have to embed them specifically by copying and pasting them into the embed characters field on the TextField in Flash as they're not included in the basic glyph set. Also, you have to make sure the font you're u

Re: [Flashcoders] Problem understanding Class heirarchy issue

2009-09-02 Thread Steven Sacks
You're right. I'm wrong. Sajid is doing something else incorrectly. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] making a right to left horizontal content scroller

2009-09-02 Thread Steven Sacks
Invert your equation. If your scrollbar has a percentage from 0-1 where 0 is left and 1 is right, then do this: content.x = content.width * (1 - scrollbar.perc); This is just for example. Obviously you would need to account for content not starting at 0. But you get the idea. It's pretty s

Re: [Flashcoders] disable mouse on transparent part of alpha video

2009-09-10 Thread Steven Sacks
Cover the video with an alpha 0 shape. Problem solved. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] closures

2009-09-15 Thread Steven Sacks
AS3 is based entirely on closures. Not sure what you mean by it being an option. Anthony Pace wrote: I was wondering if anyone here uses closures in AS3? I like them a ton; yet, I am wondering if they are ever used in a real world development projects in AS3? Can you see an excuse for using t

Re: [Flashcoders] RegExp vs. CDATA in E4X

2009-09-15 Thread Steven Sacks
You, sir, are a victim of premature optimization. Write it the easy way. If it proves to be a bottleneck later, optimize it then. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] AS3 Socket is broken and I need help from Adobe or any Socket Expert

2009-09-17 Thread Steven Sacks
I'm having major issues with the Socket class in AIR right now. All the searches I have made result in people who have asked "Why is this happening?" and NOBODY has answered any of their questions. Socket progress events stop firing if "too much" data is coming across the socket, and apparently

Re: [Flashcoders] AS3 Socket is broken and I need help from Adobe or any Socket Expert

2009-09-17 Thread Steven Sacks
Wow am I stupid or what? socket.readBytes(bufferIn, 0, socket.bytesAvailable); should be socket.readBytes(bufferIn, bufferIn.length); This code has been working for months up until now because I never got any large enough packets for them to be broken up to expose this stupid bug of mine. __

Re: [Flashcoders] how do i say "string" + anything?

2009-09-23 Thread Steven Sacks
var compareBranch:String = "index/nav/home/whatever/else"; if (compareBranch.indexOf(event.validBranch) > -1) On Sep 23, 2009, at 5:56 AM, Kenneth Kawamoto wrote: Or you could just use indexOf(). Kenneth Kawamoto http://www.materiaprima.co.uk/ strk wrote: On Wed, Sep 23, 2009 at 12:40:55PM

Re: [Flashcoders] audio pause/resume problem

2009-09-24 Thread Steven Sacks
http://www.stevensacks.net/2008/08/07/bug-with-sound-channel-position-and-mp3s-less-than-128kbps On Sep 23, 2009, at 6:19 AM, Rodrigo Augusto Guerra wrote: c'mom guys...no one knows? i'm in a dead end here i can't guarantee that everybody will have FP 10 to avoid this :) - Origin

Re: [Flashcoders] RE: Pricing a Freelance Project

2009-10-11 Thread Steven Sacks
You need to charge for time spent babysitting the client. That's billable time. Any time you spend that could be spent working for somebody else is billable. If you're on the phone with them or emailing back and forth, it's billable. ___ Flashcoders m

Re: [Flashcoders] RE: Pricing a Freelance Project

2009-10-11 Thread Steven Sacks
However, with T&M, I get paid for the work I do, and you have full flexibility in making as many changes as you like, with the knowledge that development never stops, though the deadline may be affected by your changes. Something to that effect. Kerry Thompson wrote: Steven Sacks wr

Re: [Flashcoders] Movieclip in a remote shared object

2009-10-18 Thread Steven Sacks
What does that mean? ktt wrote: Hello, Is it possible to store Movieclip in a remote shared object? Ktt ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] localconnection speed in relation to movieframerate

2009-10-24 Thread Steven Sacks
Framerate directly affects Flash's code execution response time. Is there a reason why you would find this odd or surprising? Hans Wichman wrote: Hi List, I've set up a test in AS2 with a 2 channel localconnection, swf A sends a msg to swf B, and B sends back an acknowledge signal. If I set

Re: [Flashcoders] Website in an application

2009-10-28 Thread Steven Sacks
By default, all clicked links will be contained within the HTMLLoader instance. You have to explicitly allow links to be opened in the system browser. As to the rest, you need to talk to a DOM/JS expert. I'm certain that what you want can be accomplished because you can inject your own javascr

Re: [Flashcoders] Weak eventListener Problem

2009-11-08 Thread Steven Sacks
No, it's not true. You're misunderstanding how weak listeners work, how anonymous functions work (you shouldn't use those anyway), and you're also misunderstanding how the garbage collector works. Whenever you addEventListener, immediately write a function that removes the event listener (suc

Re: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread Steven Sacks
I highly recommend pastebin for sharing code online: http://pastebin.com/ You can set the syntax highlighting to Actionscript. Makes it much easier to read. :) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.c

Re: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread Steven Sacks
wow that came across as one big line with no breaks. i guess the good luck is in reference to being able to read it. David Hunter wrote: hi this is the calculation i used for something very similar. dynamic text layed out round a circle (picture attached), although it doesn't take into accoun

Re: [Flashcoders] one class listening for anotherclassesdispatchedevent

2009-11-18 Thread Steven Sacks
Exactly. Encapsulation FTW. Merrill, Jason wrote: A bunch of smart stuff about not breaking encapsulation ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Still Infinitely Looping

2009-11-21 Thread Steven Sacks
Latcho you've got it all wrong. The true power of debugging is posting your code on a mailing list and letting other people debug your code for you. It's much easier to ask dozens of people to look at your code than for you to comment out lines of code and write traces on your own. Even bet

[Flashcoders] Mailing List Idea: Teddy Bear

2009-11-21 Thread Steven Sacks
Legend has it that at one time the MIT student lab had a teddy bear to whom you were required to explain a programming issue you were having before you could ask the lab administrator for help. Many people, myself included, ask a mailing list about an issue we are having, and only moments afte

Re: [Flashcoders] Mailing List Idea: Teddy Bear

2009-11-23 Thread Steven Sacks
> It could even deliver snide responses. Hey! That's my job! I lost it to a freakin bear! http://www.youtube.com/watch?v=KLni3wbndls ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashco

Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Steven Sacks
> There is nothing arrogant about pointing out people's errors, especially > when you are truly trying to help them become better people. Indeed, it is > just the opposite. It's good work :) > I have not bitten any hand, nor would I. Are you offended when people point > out to you your faults? If

[Flashcoders] Flash Socket Class Does Not Wait For Flush

2009-12-08 Thread Steven Sacks
http://www.stevensacks.net/2009/12/08/flash-socket-class-does-not-wait-for-flush/ The Socket class documentation is incorrect. Calling flush() not only is not necessary, it also has no effect, since all data written to a socket is sent automatically. ___

  1   2   3   4   5   6   7   8   9   10   >