Re: [Flashcoders] sorting xml

2010-08-31 Thread Steven Sacks
If you think he wants to do sorting as you described it, why don't you post some code that does that instead of arguing about the code sample I posted trying to help him accomplish what I think he wants to do? Hehe, that shut him up, Jason. :) ___

Re: [Flashcoders] Facebook API GetPhotos not working

2010-08-15 Thread Steven Sacks
I _highly_ recommend using the Graph API instead of the RESTful API. It's S much simpler and easier. http://developers.facebook.com/docs/api ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] How to handle String the best way

2010-07-22 Thread Steven Sacks
http://www.regular-expressions.info/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Tweener still in development

2010-06-24 Thread Steven Sacks
Jack, author of Greensock, has said that the Between AS3 demo is unfair because they purposefully used an inefficient way to tween in Greensock and a specifically optimized but not real world example of tweening with Between. You can ask him for more details. This is not in any way meant to

Re: [Flashcoders] Tweener still in development

2010-06-24 Thread Steven Sacks
If I recall correctly, one of his points was that they used Vectors in 10 for theirs and Arrays in 9 for Greensock's for their comparison, which is obviously biased. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] TweenMax EndArrayPlugin();

2010-06-23 Thread Steven Sacks
As mentioned in the release notes awhile back, the new version of Gaia uses the new Greensock v11 platform, which is different than the previous one and uses a brand new package. You cannot just upgrade an old Gaia project without taking the time to manually change all your references to the

Re: [Flashcoders] Reverse Compiling

2010-06-22 Thread Steven Sacks
I _highly_ recommend Beanstalk for all your svn needs. http://www.beanstalkapp.com/ On 6/22/2010 10:16 AM, Kerry Thompson wrote: Gustavo Duenas wrote: how can I install a subversion server on a mac? Do you want an SVN client on a Mac, or do you want to have a Mac SVN server? I've

Re: [Flashcoders] HTMLLoader and AIR -- always a nice white blank

2010-06-20 Thread Steven Sacks
Did you trace the width and height? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] regExp

2010-06-18 Thread Steven Sacks
I guess you were using AS2? There is no native RegEx in AS2, though, so I don't see how you were going to use AS3 in AS2. In AS3, you should NEVER use anything other than ints to iterate integer values. Don't use uint, and don't use Number. That code I provided is code I wrote and tested in

Re: [Flashcoders] regExp

2010-06-18 Thread Steven Sacks
And just to add to this, in AS3, I never use Array anymore for the very reason that passing an out of range value returns undefined instead of throwing an out of range error. So, I always use Vector. ___ Flashcoders mailing list

Re: [Flashcoders] regExp

2010-06-17 Thread Steven Sacks
RegEx isn't really used for what you're talking about. You should use ascii codes to create your alphanumeric array and then choose random indexes from it to create your random string. var i:int; var alphaNumeric:Array = []; for (i = 97; i 123; ++i) {

Re: [Flashcoders] regExp

2010-06-17 Thread Steven Sacks
http://www.asciitable.com/ a-z = 97-122 A-Z = 65-90 97 - 65 = 32 a-z = 26 letters A-Z = 26 letters 0-9 = 10 numbers 26 + 26 + 10 = 62 On 6/16/2010 11:15 PM, Karl DeSaulniers wrote: Ah thanks Steve. So is 97 to 123 the placement of upper and lowercase letters and the numbers on the CharCode

Re: [Flashcoders] Realaxy ActionScript Editor public beta

2010-06-10 Thread Steven Sacks
You're going to have to provide a bullet point list of why I should choose Relaxy over FDT or FlashDevelop, because your website is working against you. I watched your videos and they didn't make any sense. No voiceover and lots of mistakes while making your screencasts don't make for a good

Re: [Flashcoders] Flash Skype Integration

2010-06-08 Thread Steven Sacks
No. On 6/8/2010 2:32 PM, patrick [insert last name here] wrote: Hi List, I'm looking for any useful information on Flash/AIR integration with Skype or Google Voice, or any VOIP service. Is this possible? Any info would be greatly appreciated. Thanks. Patrick

Re: [Flashcoders] Flash Skype Integration

2010-06-08 Thread Steven Sacks
http://bit.ly/aLgX7Q http://bit.ly/b4Pd7y ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Steven Sacks
Architecturally speaking, that's a bad idea. There's probably a strongly typed solution to what you're doing. Can you provide detail about what you need to accomplish so we can help you figure out a better solution? On 6/7/2010 3:40 AM, Jim Andrews wrote: i want to write a method x which

Re: [Flashcoders] Passing Var value to loaded swf

2010-06-07 Thread Steven Sacks
Loader is a DisplayObject. You can add Loader to the stage before telling it to load. You don't have to wait to addChild() the content of the Loader after it loads. You cannot dispatch bubbled events from your loaded swf through the Loader that loaded it. Keep that in mind. Doing

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Steven Sacks
Right so what you're essentially talking about is a Model, and the SharedObject is acting as a Service. public class Model extends EventDispatcher { private var so:SharedObject; public function Model() { super(); init(); } private function init():void {

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Steven Sacks
With due deference, what you just said I disagree with. The scenario you described is not a necessary evil, it's a hack. The only situation where that isn't a hack is if your class extends a native type such as Sprite, but there's no ISprite. That problem is either solved by adding the Sprite

[Flashcoders] Flash CS5 TLF Engine Causes Errors With Loaded SWFs

2010-05-28 Thread Steven Sacks
http://www.stevensacks.net/2010/05/28/flash-cs5-tlf-engine-causes-errors-with-loaded-swfs/ You cannot use the TLF Engine in swfs that you load into another swf. If you know somebody at Adobe, please raise this issue. ___ Flashcoders mailing list

Re: [Flashcoders] Producing a random list with no repeats

2010-05-09 Thread Steven Sacks
Here's a very clean, fast and simple way to randomize an array. array.sort(randomizeFunction); function randomize(a:int, b:int):int { return int(Math.random() * 2) - 1; } If you're not happy with Math.random()'s randomness, there are plenty of other random number generators out there,

Re: [Flashcoders] Producing a random list with no repeats

2010-05-09 Thread Steven Sacks
You're right. I was careless on two counts. Fisher-Yates it is. On 5/9/2010 4:36 PM, Juan Pablo Califano wrote: Steven, sorry to contradict you, but although your code is simple and sort of works, there a couple of problems with it. First, the sorting function is wrong. A sorting function is

Re: [Flashcoders] Producing a random list with no repeats

2010-05-09 Thread Steven Sacks
In the exception that Math.random() returns 1, in which case you would get 2. I don't use Math.random(), though, I use the Parker-Miller PRNG. On 5/9/2010 5:01 PM, Juan Pablo Califano wrote: PS 2: I think the correct way to write the function that returns a number in the range -1 / 1 is:

Re: [Flashcoders] debugging Flash apps

2010-05-07 Thread Steven Sacks
FDT. End of story. On 5/7/2010 2:46 PM, Jim Andrews wrote: I'm finding the debugger in the Flash IDE almost unusably slow. How do people debug their apps? And I've taken to using FlashDevelop for editing code because the editor in the Flash IDE is equally slow. ja

Re: [Flashcoders] debugging Flash apps

2010-05-07 Thread Steven Sacks
Download the standalone version of FDT 3.5. On 5/7/2010 5:00 PM, Jim Andrews wrote: Thanks, Steven. Does this require Eclipse? What flavour of Eclipse, if so? ja FDT. End of story. On 5/7/2010 2:46 PM, Jim Andrews wrote: I'm finding the debugger in the Flash IDE almost unusably slow.

Re: [Flashcoders] Best Practices and optimization

2010-05-03 Thread Steven Sacks
http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Best Practices and optimization

2010-05-03 Thread Steven Sacks
http://lab.polygonal.de/2007/05/10/bitwise-gems-fast-integer-math/ And just in general: http://lab.polygonal.de/ Michael's examples are the fastest versions of various algorithms, such as collision detection, tangent approximation, etc. There is much to learn from his blog.

Re: [Flashcoders] Recommended set-up for Flash Builder 4?

2010-04-10 Thread Steven Sacks
NDA? Flash Builder 4 is out. Nobody is prohibited from talking about it anymore. ;) On 4/10/2010 1:44 PM, Kerry Thompson wrote: John McCormack wrote: Which setup do you recommend for Flash Builder 4? Stand-alone or plug-in? If plug-in, which eclipse version? I would use the plug-in

[Flashcoders] Getting the line index at the caretIndex

2010-04-09 Thread Steven Sacks
I'm trying to get the line index at the caret index in a multiline input TextField, but it doesn't work. Any ideas why? var tf:TextField; // this is my TextField tf.addEventListener(Event.CHANGE, onChange); function onChange(event:Event):void { var caret:int = tf.caretIndex; var

Re: [Flashcoders] Prevent children from listening to parent mouse events

2010-04-06 Thread Steven Sacks
This is what the ROLL_OVER and ROLL_OUT events are for. On 4/6/2010 6:11 AM, Ktu wrote: If none of the children require any mouse events you could always do: parent.mouseChildren = false; Ktu On Sun, Mar 28, 2010 at 11:45 PM, confustic...@gmail.com confustic...@gmail.com wrote: Hey list,

Re: [Flashcoders] What good is a Controller?

2010-03-31 Thread Steven Sacks
On 3/31/2010 7:32 AM, Merrill, Jason wrote: FlashDevelop - yes, you can code in AS2 - but if you want to compile without using the Flash IDE, you have to use the free Flex SDK, which means you have to use (well, I should say get to use) Actionscript 3.0. Incorrect. MTASC is used to compile

Re: [Flashcoders] What good is a Controller?

2010-03-30 Thread Steven Sacks
If you know the basics of MVC, then you should be able to learn RobotLegs. [Inject] is SwiftSuspenders metadata, which RobotLegs uses. Just because it's foreign to you doesn't mean it's not worth learning. ___ Flashcoders mailing list

Re: [Flashcoders] What good is a Controller?

2010-03-30 Thread Steven Sacks
RobotLegs was built for AS3, not Flex. I am using it in a pure AS3 project right now. It's easy to setup for Flash IDE. http://www.helmutgranda.com/2009/12/02/robotlegs-and-flash-ide-cs4-injection/ Believe me, it's worth learning. RobotLegs is amazing.

Re: [Flashcoders] What good is a Controller?

2010-03-30 Thread Steven Sacks
though obviously, using mxmlc to compile makes it a lot easier. FlashDevelop, FDT, FlexBuilder, anything can be used to compile Flash without Flash (or Flex). ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] What good is a Controller?

2010-03-29 Thread Steven Sacks
MVC Public Service Announcement http://www.youtube.com/watch?v=91C7ax0UAAc If you want to learn about MVC, pick up the Ruby on Rails book. I suggest you use RobotLegs, which uses Mediators and Commands instead of Controllers. RobotLegs is better suited for the world of Flash than MVC, which

Re: [Flashcoders] NoCache XML

2010-03-26 Thread Steven Sacks
It should always work. Perhaps the url of the xml has a ? already in it? public function nocache(url:String):String { var d:Date = new Date(); var nc:String = nocache= + d.getTime(); if (url.indexOf(?) -1) return url + + nc; return url + ? + nc; } On

Re: [Flashcoders] NoCache XML

2010-03-26 Thread Steven Sacks
. Then on a refresh it pulls them. --Original Message-- From: Steven Sacks To: Nathan Mynarcik To: Flash Coders List Subject: Re: [Flashcoders] NoCache XML Sent: Mar 26, 2010 5:27 PM It should always work. Perhaps the url of the xml has a ? already in it? public function nocache

Re: [Flashcoders] xml: counting parents

2010-03-22 Thread Steven Sacks
I think you mean ancestors. A node can only have one parent. Parents can have many children. I think you have a bigger issue, though. Why do you need to know the depth of an xml node? I can't think of a single example that I would need that information. On 3/22/2010 9:27 AM, Lehr, Theodore

Re: [Flashcoders] xml: counting parents

2010-03-22 Thread Steven Sacks
A few optimizations for general coding practice: uint is slower than int for math and should only be used if you're not doing math on it. Number is faster than uint for numbers higher than int's positive limit. Generally speaking, always use int in for/while loops. There's no need to call

Re: [Flashcoders] xml: counting parents

2010-03-22 Thread Steven Sacks
Why not go from the top down instead of the bottom up? On 3/22/2010 10:33 AM, Lehr, Theodore wrote: Perhaps I do have a bigger issue (actually, I have LOTS of issues ;-), but the reason I need to know the depth is my thought was to use that as a means of assisting in layout for example,

Re: [Flashcoders] xml: counting parents

2010-03-22 Thread Steven Sacks
I disagree with using explicit node names. He's building an org chart of people, so the nodes should be person and the title should be an attribute. people person title=CEO name=Bill Gates person title=President name=Steve Ballmer/ person title=Manager - North America

Re: [Flashcoders] xml: counting parents

2010-03-22 Thread Steven Sacks
: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steven Sacks [flash...@stevensacks.net] Sent: Monday, March 22, 2010 3:19 PM To: Flash Coders List Subject: Re: [Flashcoders] xml: counting parents I disagree with using explicit node names. He's

Re: [Flashcoders] xml: counting parents

2010-03-22 Thread Steven Sacks
So if there's an organizational shuffle of roles, I'd have to rewrite my XML schema? Because that sort of thing happens all the time, and a rigid hierarchy simply won't be able to match that without frequent changes. Precisely. My solution uses design patterns, encapsulation and DRY. It

Re: [Flashcoders] Calculator

2010-03-17 Thread Steven Sacks
Holy crap. Was there seriously just a thread about how to solve a percent value of a number? I've heard that education in America was bad, but this is like 7th grade pre-Algebra. x * y = z Therefore: x = z / y 3000 * y = 450 y = 450 / 3000 y = 0.15 or 15%

Re: [Flashcoders] Calculator

2010-03-17 Thread Steven Sacks
I sincerely apologize for my sarcastic remark regarding the current state of the public educational system in America, and for any emotional trauma it may have caused to those whose proficiency at arithmetic is equivalent to or less than that of an elementary school student. In the future, I

Re: [Flashcoders] how to reduce CPU usage

2010-03-04 Thread Steven Sacks
On 3/4/2010 2:04 AM, Fahim Akhter wrote: There is a difference between invisible and not being rendered my friend, even if you can't see something doesn't mean its not there ;) Your intentions are correct, even if your terminology is not. Don't confuse the word rendered with the word

Re: [Flashcoders] how to reduce CPU usage

2010-03-04 Thread Steven Sacks
It only makes sense that Flash decompresses jpgs when it loads them. The visible property has nothing to do with that. When you say visible = true, that would be the absolute worst time to decompress the image. Imagine decompressing 1000 jpgs at once in a for loop. Imagine when setting

Re: [Flashcoders] Question in regards to NetStream

2010-02-25 Thread Steven Sacks
https://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/events/NetStatusEvent.html NetStream.Play.Start NetStream.Play.Stophttp://livedocs.adobe.com/fms/2/docs/0592.html NetStream.Pause.Notify NetStream.Unpause.Notify

Re: [Flashcoders] Event.COMPLETE Question

2010-02-23 Thread Steven Sacks
When loading bitmaps, your loader will NEVER be eligible for cleanup by the Garbage Collector unless you do ALL of the following in this order: var bitmap:Bitmap = new Bitmap(Bitmap(loader.content).bitmapData.clone(), auto, true); Bitmap(loader.content).bitmapData.dispose();

Re: [Flashcoders] Event.COMPLETE Question

2010-02-23 Thread Steven Sacks
You should only create the bevel filter ONCE. Filters are _expensive_ and can/should be shared. Make your bevel an instance variable private var myBevel:BevelFilter = new BevelFilter(); public function foo() { myClip.filters = [myBevel]; } ___

Re: [Flashcoders] Event.COMPLETE Question

2010-02-23 Thread Steven Sacks
If you call close() on a Loader and it fails for any reason, it will throw a runtime error that you can do nothing about. To avoid this, you should wrap it in a try catch. The code block comes straight from Flex and it works. If you test it a bunch and close() never fires an error, then you

Re: [Flashcoders] How to remove bytes from the beginning of a ByteArray?

2010-02-23 Thread Steven Sacks
FWIW, flush() does nothing in AS3. Bytes written to the Socket are sent immediately. Anyone who tells you otherwise has never tested it and you can safely ignore them! :) Adobe has acknowledged this as a documentation bug (whatever that means). For more info:

Re: [Flashcoders] How to remove bytes from the beginning of a ByteArray?

2010-02-23 Thread Steven Sacks
private var buffer:ByteArray; private function onData(event:ProgressEvent):void { socket.readBytes(buffer, buffer.length); var bytes:ByteArray = new ByteArray(); buffer.readBytes(bytes, 0, messageLength); buffer.position = bytes.length; trim(); // deserialize the message

Re: [Flashcoders] Event.COMPLETE Question

2010-02-22 Thread Steven Sacks
Update this line: var displayObject:DisplayObject = loaderInfo.loader.content; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Event.COMPLETE Question

2010-02-22 Thread Steven Sacks
e.target isn't your loader info, its most likely the Loader itself. loader.contentLoaderInfo.addEventListener() The LoaderInfo is the target of the event - that's what you added the event listener to. trace(event.target); [LoaderInfo] Proof that the LoaderInfo is the target is easily

Re: [Flashcoders] Re: is it ever ideal to NOT use weak references?

2010-02-07 Thread Steven Sacks
function onComplete(event:Event):void { event.target.removeEventListener(Event.COMPLETE, onComplete); } Easy peasy. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Re: is it ever ideal to NOT use weak references?

2010-02-06 Thread Steven Sacks
function loadImage():void { var loader:URLLoader = new URLLoader(); loader.addEventListener(Event.COMPLETE, onComplete, false, 0, true); loader.load(new URLRequest(url)); } function onComplete(event:Event):void { trace(event); } Guess what never fires? If you guessed onComplete,

Re: [Flashcoders] XMLList question

2010-02-03 Thread Steven Sacks
I always use CDATA tags for text in nodes where special characters might exist. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] SEO + Flash = any great strategies?

2010-02-03 Thread Steven Sacks
I like the solution that Gaia uses. I'm biased because I wrote it and it works really well. It is an idea given to me by a guy who's very good at SEO, I merely executed it. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Steven Sacks
beno gets so much free work out of everyone on this list it's insane. he's not learning anything because everyone else is doing all his work for him. and that's exactly how he likes it. http://slash7.com/2006/12/22/vampires/ suckers. ;) ___

Re: OT Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Steven Sacks
I think you made a very good point right here: Surely we all get a lot of free work out of you too - by using Gaia. Yes, what I provided for free benefits more than just one person, it benefits the community. The only person benefiting from free work here is beno. There's nothing to be

Re: [Flashcoders] XMLList question

2010-02-02 Thread Steven Sacks
As a rule, I only put string values that never contain special characters in attributes, otherwise you end up with XML validation errors (like putting ampersands in attributes). Also, I generally put parsing code inside the constructor of the VO class (well, I call deserialize() because code

Re: [Flashcoders] Flash and MySQL

2010-02-01 Thread Steven Sacks
Quite frankly, it boggles my mind anyone ever answers beno's posts with any level of seriousness. He's the love child of a troll and a help vampire. How hard would [building a MySQL equivalent db in AS3] be? Tell me... I think beno is a 4channer and is secretly laughing at how many people

[Flashcoders] Adobe AIR has bad redraw bugs on Windows

2010-01-27 Thread Steven Sacks
http://www.stevensacks.net/2010/01/27/adobe-air-has-bad-redraw-bugs-on-windows/ Recommended reading if you ever plan on working with non-tranparent windows in AIR and expect to have your window be able to minimize and restore. There are some really nasty surprises waiting for you.

Re: [Flashcoders] Using MVC for a site framework

2010-01-19 Thread Steven Sacks
Want to do MVC right? Use this: http://www.robotlegs.org/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Declaring Function Variables

2010-01-08 Thread Steven Sacks
The rule I follow (and one that I think is best for code readability) is that you declare a variable the first time you use it. If you're using it in multiple loops, you declare it above the first loop that uses it. This is a trivial example: private function foo(data:Array):void { var

[Flashcoders] Performance from casting array/vector?

2009-12-26 Thread Steven Sacks
var instance1:MyClass = new MyClass(); var instance2:MyClass = new MyClass(); var instance3:MyClass = new MyClass(); var myArray:Array = [instance1, instance2, instance3]; // QUESTION A: CASTING WITH ARRAYS var i:int = myArray.length; while (i--) { // [A1] - Does Flash have to do a look up

Re: [Flashcoders] What IDE on Mac ?

2009-12-14 Thread Steven Sacks
FDT is pretty much your best choice. On 12/14/2009 3:53 AM, Greg Ligierko wrote: I grown up with PC, Windows and in work I am completely happy with FlashDevelop + CS3. For some time I am also a happy MacBook user, but it is hard for me to swap with AS2/AS3 coding to Mac. So far I could not

Re: [Flashcoders] What IDE on Mac ?

2009-12-14 Thread Steven Sacks
If you want to see an example of FDT in action, check out the Robot Legs Hello World video tutorial. John doesn't touch the mouse once throughout the tutorial. It's pretty insane how much you can do in FDT without the mouse. I'm a die-hard FlashDevelop user and even I'm impressed.

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

Re: [Flashcoders] Back On Course, Still Problems

2009-12-08 Thread Steven Sacks
Beno, In the spirit of your recommendations and opinions regarding criticism, allow me to be blunt with you in the manner you find most effective. Considering everyone here has expressed a negative reaction to your communication style, it's pretty fucking clear where the problem is.

Re: [Flashcoders] Flash Socket Class Does Not Wait For Flush

2009-12-08 Thread Steven Sacks
It's all player 10, but varying versions of it. Glen Pike wrote: Steven Sacks wrote: 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

Re: [Flashcoders] Flash Socket Class Does Not Wait For Flush

2009-12-08 Thread Steven Sacks
The player team has confirmed the documentation is wrong. Data gets sent the instant you write it to the socket. flush() has no purpose. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Flash Socket Class Does Not Wait For Flush

2009-12-08 Thread Steven Sacks
Henrik Andersson wrote: Then why was it added in the first place? Great question. Ask Adobe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Flash Socket Class Does Not Wait For Flush

2009-12-08 Thread Steven Sacks
Word is that the writer tasked with updating the documentation is asking the same thing. Henrik Andersson wrote: Steven Sacks wrote: Henrik Andersson wrote: Then why was it added in the first place? Great question. Ask Adobe. You are the one who said that it was confirmed pointless. You

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

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

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

[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

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

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

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

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

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

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] RE: Pricing a Freelance Project

2009-10-12 Thread Steven Sacks
, with TM, 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 wrote: You need to charge

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

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

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

[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] 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

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

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

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

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

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

2009-08-27 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

  1   2   3   4   5   6   7   8   9   10   >