RE: [Flashcoders] re: quick actionscript question

2006-11-15 Thread Mike Keesey
What I'm saying is that you can't fix it from the AS--you have to re-encode the FLVs with keyframes on every frame. ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of eric walton 9 / edub9 Edub9 > Sen

RE: [Flashcoders] HELP!!! Eventdispatcher and firefox bug????

2006-11-14 Thread Mike Keesey
) If not, listen for the "load" event. I'll bet what's happening now is that your listeners don't start listening until after the XML has already been loaded--hence they never receive the event. (That said, I could be way off.) ― Mike Keesey > -Original Message---

RE: [Flashcoders] Letting go of AS2 for AS3

2006-11-14 Thread Mike Keesey
In the Flash 9 Public Alpha, it's under Publish Settings > Flash > ActionScript Settings > Document class ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Lori Hutchek > Sent: Tuesday, Novem

RE: [Flashcoders] quick actionscript question

2006-11-14 Thread Mike Keesey
The problem is in how the FLVs are encoded. You have to encode with keyframes on every frame. Once that's done, they should scroll fine (although backwards is generaly chunkier than forwards). ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoder

RE: [Flashcoders] functions outside a class

2006-11-11 Thread Mike Keesey
c function someFunction():Void { // ... MyFunctions.functionA(); MyFunctions.functionB(); } } ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Helmut Granda > Sent: Friday, November 10, 2006 11:30 A

RE: [Flashcoders] Need help from PHP coder

2006-11-09 Thread Mike Keesey
ATA); > fclose($fp); > echo "Done saving"; Yup. You have to make sure of a certain setting in php.ini, though. I can't remember which one it is, but you can probably find out at: http://php.net ― Mike Keesey ___ Flashcoders@chattyfig.fig

RE: [Flashcoders] Grabbing data directly from the HTML page

2006-11-09 Thread Mike Keesey
Ah, fixing it on the Javascript side! That makes a lot more sense. (And there's no double-load.) Thanks--I'll give this a try. (It's kind of hard to read, though ... but I guess that can be good with Javascript) ― Mike Keesey > -Original Message- > F

RE: [Flashcoders] Noob, basic questions on actionscript, withmethodology suggestions

2006-11-09 Thread Mike Keesey
ML.onLoad() is called (which is the XML object's way of telling you that it finally got around to it). (ActionScript 3.0 is a bit nicer with its URLLoader class that dispatches multiple types of events instead of calling a single callback function, b

RE: [Flashcoders] Noob, basic questions on actionscript, withmethodology suggestions

2006-11-09 Thread Mike Keesey
ml:XML, stateName:String):Object { var state:XMLList = xml.state.(@name == stateName); return {cc: [EMAIL PROTECTED], url: [EMAIL PROTECTED]; } Ain't e4x grand? ― Mike Keesey ___ Flashcoders@chattyfig.figleaf.com To change your sub

RE: [Flashcoders] Noob, basic questions on actionscript, with methodology suggestions

2006-11-09 Thread Mike Keesey
You have to use a function because the loading is asynchronous. It doesn't stop program flow while it's loading; it continues with the program and calls a handler (onLoad) once the load is complete. I'm not sure this is the proper forum for n00b questions...

RE: [Flashcoders] Grabbing data directly from the HTML page

2006-11-09 Thread Mike Keesey
Ah, that works. The only thing is that it requires a double load of the page and the data isn't instantly available (although, with browser-caching, it should load in very quickly). Not huge concerns, but the double load could skew metrics. ― Mike Keesey > -Original Message

RE: [Flashcoders] Grabbing data directly from the HTML page

2006-11-09 Thread Mike Keesey
That sounds *much* nicer--how do you grab the whole XHTML page in Javascript? ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Ryan Potter > Sent: Thursday, November 09, 2006 11:39 AM > To: Flashcode

[Flashcoders] Grabbing data directly from the HTML page

2006-11-09 Thread Mike Keesey
I was playing around with the idea of passing data from an HTML page directly into a Flash movie via Javascript/SWFObject. One thing I wanted to try was sending the text that SWFObject replaces into the Flash movie. In Firefox this was pretty simple. E.g., if SWFObject was replacing the contents

RE: [Flashcoders] Test if using ActionScript 2.0

2006-11-09 Thread Mike Keesey
If you were using AS3.0 you could use the flash.display.LoaderInfo.actionScriptversion property. Wait--no, that only distinguishes 1.0 and 2.0 from 3.0. You could use the swfVersion property, though. Why exactly do you need to detect this? ― Mike Keesey > -Original Message- >

RE: [Flashcoders] Writing code for big teams

2006-11-08 Thread Mike Keesey
=pd_bbs_sr_1/002-6548398-2158405?ie=UTF8 &s=books It really opened my eyes to the utility of unit-testing, and how paying some time up front can allow your code to be more stable and more flexible down the road. (Yes, the examples are in Java, but

RE: [Flashcoders] EventDispatcher and onEnterFrame.... problems

2006-11-08 Thread Mike Keesey
public function traceFoo() { trace(foo); } private function toggleAndTraceFoo():Void { foo = !foo; traceFoo(); } } (Me, I prefer to use an event dispatcher that sends "enterFrame" events, but I'

RE: [Flashcoders] Freelancer Class

2006-11-08 Thread Mike Keesey
tion set name(value:String):Void { if (value instanceof String) { _name = value.toUpperCase(); } else { _name = null; } } private var _name:String = null; } ― Mike Keesey

RE: [Flashcoders] Freelancer Class

2006-11-07 Thread Mike Keesey
/langref/Error.html Error(message:String = "", id:int = 0) Creates a new Error object. (Well, the "id" argument corresponds to the "errorID" property--so I guess they went both ways on this one!) ― Mike Keesey > -Original Message- > From: [EMAIL PROT

RE: [Flashcoders] Freelancer Class

2006-11-07 Thread Mike Keesey
n documentation generated from a signature where the argument was, e.g., "nameValue", since it would be more immediately obvious that the argument "name" corresponds to the property "name". That said, the code itself is clearer the other way. Six of one and half a dozen of

RE: [Flashcoders] Freelancer Class

2006-11-07 Thread Mike Keesey
his in AS3.0.) Other than that, I think it tends to clutter things up. But that's just my take. ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of slangeberg > Sent: Tuesday, November 07, 2006 11:47 AM > To

RE: [Flashcoders] preventing scientific notation

2006-11-06 Thread Mike Keesey
AS3.0 has Number.toFixed(): http://livedocs.macromedia.com/flex/2/langref/Number.html#toFixed() Of course, that probably doesn't help you.... ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Hans Wichman

RE: [Flashcoders] Have I got this OOP business right?

2006-11-06 Thread Mike Keesey
Looks pretty good to me! You might consider having the display classes dispatch an event instead of calling a single function when they close--then you can extend behavior more easily in the future, if several things need to happen based on the same event. ― Mike Keesey > -Original Mess

RE: [Flashcoders] OOP advice for game

2006-11-06 Thread Mike Keesey
that Macromedia/Adobe writes, event names don’t have "on" as part of the name, but a function responding to them might, e.g.: WeatherManager.instance.addEventListener("windChange", Delegate.create(this, onWindChange)); Or, in AS3.0: WeatherManager.instance

RE: [Flashcoders] Copy Constructor

2006-11-06 Thread Mike Keesey
fy an empty square. In AS3.0, this becomes trickier, since there are no private constructors. Anyone know if there is a recommended way to get around this? (On the plus side, you can make the class final and the static values constant, which is a major shortcoming in AS2.0.) -- Mike Keesey

RE: [Flashcoders] Copy Constructor

2006-11-03 Thread Mike Keesey
r properties. public function copy(source:GameState):Void { _board = new Board(source._board); // Copy other fields. } private var _board:Board; // Other private fields. } ― Mike Keesey > -Original Message- > From: [EMAIL PROTEC

RE: [Flashcoders] Copy Constructor

2006-11-03 Thread Mike Keesey
dentical:Array = original; var copy:Array = original.concat(); original.push(4); trace(original); // Outputs "1,2,3,4". trace(identical); // Outputs "1,2,3,4". trace(copy); // Outputs "1,2,3". ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTE

RE: [Flashcoders] OT conver java code to flash

2006-11-03 Thread Mike Keesey
lose as it gets. The distinction doesn't matter much in practice, but ― Mike Keesey ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoder

RE: [Flashcoders] OT conver java code to flash

2006-11-02 Thread Mike Keesey
Number = [some positive integer value]; var randomInt:Number = Math.floor(MAX * Math.random()); // Sets it to some number from 0 to MAX - 1. ― Mike Keesey ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyf

RE: [Flashcoders] terminating hotspots etc

2006-11-02 Thread Mike Keesey
is, play)); MotionController.instance.addEventListener("stop", Delegate.create(this, stop)); // To stop all controlled animations: MotionController.instance.stopped = true; // To restart all controlled animations: MotionController.instance.stopped = false; ― Mike Keesey > -Orig

RE: [Flashcoders] Copy Constructor

2006-11-02 Thread Mike Keesey
e subclass, e.g.: public function toString():String { return super.toString() + " extra subclass info"; } ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Paul Steven > Sent: Thursday, Novembe

RE: [Flashcoders] Copy Constructor

2006-11-02 Thread Mike Keesey
on clone():ClassName { var cloneObj:ClassName = new ClassName(); cloneObj.copy(this); return cloneObj; } // ... ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ > Sent:

RE: [Flashcoders] Copy Constructor

2006-11-02 Thread Mike Keesey
(); } public var board:Array; public var score:Array; } Then you could call the construct with or without a parameter. (Actually, I would never use public variables, but that's another topic....) ― Mike Keesey > -Original Message- > From: [EMAI

RE: [Flashcoders] Flash Print Function and Callbacks ?

2006-11-02 Thread Mike Keesey
Pretty sure you can't. Just noticed something odd whil looking at the documentation on AS3.0's ProntJob class (http://livedocs.macromedia.com/flex/2/langref/)--it extends EventDispatcher, yet it doesn't have any documented events. Vot der hey? ― Mike Keesey > -Original M

RE: [Flashcoders] playing audio filetypes other than mp3?

2006-11-01 Thread Mike Keesey
r as sound goes, you're kind of stuck with MP3. ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Josh Santangelo > Sent: Wednesday, November 01, 2006 3:54 PM > To: flashcoders@chattyfig.figleaf.com >

RE: [Flashcoders] AS 3 -> event args

2006-11-01 Thread Mike Keesey
Yeah, the simplest way is to create an index field on the buttons themselves, and then access that in the listener with event.target.index. ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of dnk > Sent: Tuesday

RE: [Flashcoders] Q:Coding : from Procedural to Class based code?

2006-11-01 Thread Mike Keesey
/write] nodes:Array [read/write] radius:Number [read/write] copy(source:TweenSettings):Void ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] > Sent: Wednesday, November 01, 2

RE: [Flashcoders] Create zip file through flash

2006-11-01 Thread Mike Keesey
esystem. Sorry for the noise. Don't apologize--I found the unzip class interesting! ― Mike Keesey ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashco

RE: [Flashcoders] AS 3 -> event args

2006-10-30 Thread Mike Keesey
Err, that last function should probably be called "onButtonRelease" ... but you get the idea.... ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Mike Keesey > Sent: Monday, October 30, 2006 5:04

RE: [Flashcoders] AS 3 -> event args

2006-10-30 Thread Mike Keesey
event.target is IndexButton) { var index:uint = IndexButton(event.target).index; // Do something with index. } } //... ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:

RE: [Flashcoders] AS 3 -> event args

2006-10-30 Thread Mike Keesey
// Do stuff with button. } If you need to specifically use an index number, I'd attach that to the button instances themselves. Then you could retrieve that via event.target. ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTE

RE: [Flashcoders] Q:passing a variable as argument with getURL("javascript:testfunc(arg)");

2006-10-24 Thread Mike Keesey
Use this: var arg:String = "myvar"; getURL("javascript:testfunc('" + arg + "')"); // Note: arg's value cannot have apostrophes in it. Or, better yet, look into the flash.external.ExternalInterface class. ― Mike Keesey > -Original Message---

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

2006-10-13 Thread Mike Keesey
_theta = value; } } private var _radius:Number; private var _theta:Number; } �D Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of JOR > Sent: Thursday, October 12, 2006 7:27 PM > To: Flashcode

RE: [Flashcoders] Error check for parseXML()

2006-10-09 Thread Mike Keesey
" + this.status); } } The scope should probably be "this" instead of "xml" in this case. ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Ray Chuan > Sent: Saturday, October 07, 2

RE: [Flashcoders] Error check for parseXML()

2006-10-06 Thread Mike Keesey
Use the XML.status field. var xml:XML = new XML(); xml.ignoreWhite = true; xml.parseXML(someTextVar); if (xml.status == 0) { trace("Success!"); } else { trace("Error in XML! Code: " + xml.status); } ― Mike Keesey > -Original Message- &

RE: [Flashcoders] when classes die...

2006-10-03 Thread Mike Keesey
deleting a variable and setting it to undefined? ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Peter Hall > Sent: Tuesday, October 03, 2006 3:55 PM > To: Flashcoders mailing list > Subject: Re: [Fl

RE: [Flashcoders] when classes die...

2006-10-03 Thread Mike Keesey
Will that be called if you use unloadMovie() or if the playhead moves to a frame without the instance? MovieClip.onUnload is put there specifically for this kind of purpose. ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On

RE: [Flashcoders] when classes die...

2006-10-03 Thread Mike Keesey
troy(): public function destroy():Void { // Perform clean-up. delete this; } Then replace all instances of "delete instanceOfYourClass;" with "instanceOfYourClass.destroy()". ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flas

RE: [Flashcoders] Implicit setters and exceptions in AS2.0

2006-09-29 Thread Mike Keesey
I think that's very well-put. ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of David Bellerive > Sent: Thursday, September 28, 2006 8:22 PM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashc

RE: [Flashcoders] log or sin or what?

2006-09-28 Thread Mike Keesey
According the the name, it should be some kind of a quadratic equation (ax^2 + bx + c = 0). You could get something looking a lot like this with the sine or cosine functions, though. ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROT

RE: [Flashcoders] Delegating Events and AS2

2006-09-26 Thread Mike Keesey
Whoops! > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Mike Keesey > Sent: Tuesday, September 26, 2006 2:23 PM > To: 'Flashcoders mailing list' > Subject: RE: [Flashcoders] Delegating Events and AS2 [...

RE: [Flashcoders] Delegating Events and AS2

2006-09-26 Thread Mike Keesey
tried AS3.0, so someone let me know if I messed anything up.) ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Sean Scott > Sent: Tuesday, September 26, 2006 12:09 PM > To: Flashcoders@chattyfig.figle

RE: [Flashcoders] How do you manage your classes?

2006-09-26 Thread Mike Keesey
to go back to project A with some tweaks and republish it. Because of changes in the package, there may be problems--at best you will still have to spend time regression testing. Copying your packages to a project-local folder means that you have a secure "snapshot" of the package

RE: [Flashcoders] Implicit Setters: Is validation considered a goodor bad OOP practice ?

2006-09-25 Thread Mike Keesey
This is generally the route I take. The only thing is that it may halt application flow in unforeseen circumstances, so 1) unit test and beta test really well and 2) try as much as possible to catch errors in code that sets the property. ― Mike Keesey > -Original Message- > From:

RE: [Flashcoders] Mute Flash Application, mac.

2006-09-22 Thread Mike Keesey
Well, can he load it into a holder SWF and set the global volume on that? ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Merrill, Jason > Sent: Friday, September 22, 2006 12:11 PM > To: Flashcoders mailing

RE: [Flashcoders] Mute Flash Application, mac.

2006-09-22 Thread Mike Keesey
I think you can control all of the sound in a Flash movie like so: var globalSound:Sound = new Sound(_root); // Mute. globalSound.setVolume(0); // Restore. globalSound.setVolume(100); ― Mike Keesey

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

2006-09-21 Thread Mike Keesey
Well, random() has two meanings then, and the Math.random() function is more generally useful than random() (for example, if you need a random floating-point number). That said, I'd love a Math.randomInt() function. ― Mike Keesey > -Original Message- > From: [EMAI

RE: [Flashcoders] HTTP post request in the background

2006-09-21 Thread Mike Keesey
Actually, scratch that -- move the whole formData deal to its own function, and call that from onMailComplete(). IOW, do the calls sequentially, not simultaneously. ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behal

RE: [Flashcoders] HTTP post request in the background

2006-09-21 Thread Mike Keesey
ntact.aspx";, response); ... to the very end of your processForm() function. ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Bill Abel > Sent: Thursday, September 21, 2006 10:20 AM > To: Flashcod

RE: [Flashcoders] Algorithm to find "center" of an irregular shape

2006-09-21 Thread Mike Keesey
) / 2; center.y = (bounds.yMax - bounds.yMin) / 2; return center; } (Assuming that the scope of this function is a movie clip timeline or a subclass of MovieClip.) ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROT

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

2006-09-21 Thread Mike Keesey
The earlier post (by Jake Prime) is probably the explanation. But also, random() is deprecated; instead of random(x), you should use Math.floor(Math.random() * x). ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf

RE: [Flashcoders] HTTP post request in the background

2006-09-20 Thread Mike Keesey
(this, onResponseComplete); request.sendAndLoad(url, response); ― Mike Keesey ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by

RE: [Flashcoders] Associate clip with class

2006-09-19 Thread Mike Keesey
, and if there is no such symbol, an error is thrown (which does not disrupt any other processes). -- Mike Keesey ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/fl

RE: [Flashcoders] Find item in array

2006-09-19 Thread Mike Keesey
My guess would be that postincrement it takes longer because it needs to store and return the original value, while preincrement only needs to return the result after performing the operation. But that's only a guess. ― Mike Keesey > -Original Message- > From: [EMAI

RE: [Flashcoders] htmlText javascript link being ignored in Safari

2006-09-18 Thread Mike Keesey
I can think of a reason: SAFARI SUCKS!!! Sorry, I can't be more helpful; just had to get that out there. ;) Okay, I'll try to be a little helpful--have you tried putting an alert() call in your JS function to see if Safari's calling it at all? Or, better yet, try calling the function from an HTM

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

2006-09-18 Thread Mike Keesey
lice(index, 1); } public function toString():String { return "[type ItemList(items=" + _items.join(", ") + ")] "; } private var _items; } It is cumbersome to do this for all types, but it's handy for many occasions. (I

RE: [Flashcoders] AS3 : chr() == String.fromCharCode()?

2006-09-15 Thread Mike Keesey
lowed ECMA standards. ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of julien castelain > Sent: Friday, September 15, 2006 1:17 AM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] AS3 : chr() == S

RE: [Flashcoders] AS3 : chr() == String.fromCharCode()?

2006-09-14 Thread Mike Keesey
Not to be too harsh, but that's been deprecated since, what, Flash 5? ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of julien castelain > Sent: Wednesday, September 13, 2006 10:45 PM > To: flashc

RE: [Flashcoders] does actionscript have something like sql's IN orLIKE ?

2006-09-12 Thread Mike Keesey
Why not just: public static function contains(str:String, val:String):Boolean { return str.indexOf(val) >= 0; } ? A tad more concise (you don't need the "? true : false" part), and avoids the problem your function has that if str is null or undefined, it returns t

RE: [Flashcoders] classes vs external .as files

2006-09-11 Thread Mike Keesey
line with what Adobe is doing. Are they making classes? Yes. Are they making scripts to be included from the timeline? No. There is only one instance where I currently use an included timeline script instead of a class, and that is for SWFObject's expressinstall.as, which needs to work in

RE: [Flashcoders] XML id attribute shortcut not working?

2006-09-07 Thread Mike Keesey
t and mark it with a "KLUDGE" comment. ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Rifled Cloaca > Sent: Thursday, September 07, 2006 3:59 PM > To: Flashcoders mailing list > Subject: Re: [Fl

RE: [Flashcoders] XML id attribute shortcut not working?

2006-09-07 Thread Mike Keesey
Use the XML.idMap property. ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Rifled Cloaca > Sent: Thursday, September 07, 2006 3:27 PM > To: Flashcoders mailing list > Subject: [Flashcoders] XML id attr

RE: [Flashcoders] weird class could not be loaded.

2006-09-05 Thread Mike Keesey
What's the path? Is the class name actually "myClass"? ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Christian Pugliese > Sent: Tuesday, September 05, 2006 2:31 PM > To: Flashcoders mailin

RE: [Flashcoders] Singleton not always Singleton?

2006-08-30 Thread Mike Keesey
Boy, is my face red! But I have seen bad package-naming conventions used before, so hopefully the post wasn't completely useless for eveyone out there. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Park Sent: Sunday, August 27, 2006 4:34 AM To: Fl

RE: [Flashcoders] Singleton not always Singleton?

2006-08-25 Thread Mike Keesey
PET PEEVE ALERT class com.shell.util.IntroAnimProxy Unless you are actually doing Shell Petroleum's website at http://shell.com, this isn't a proper name for the package. The "com" convention is a strategy to keep package paths from overlapping on different projects: if you're doing a website, yo

RE: [Flashcoders] Protect model setters from being called by anyclassexcept Controller

2006-08-24 Thread Mike Keesey
it should work. A bit weird, though. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Keesey Sent: Thursday, August 24, 2006 6:46 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Protect model setters from being called by anyclasse

RE: [Flashcoders] Protect model setters from being called by any classexcept Controller

2006-08-24 Thread Mike Keesey
In AS3.0 I think it can be package-private, but until then One way is to have the Model class satisfy an interface that lacks the property (of course, in AS2.0, all interfaces lack properties...), and then only expose the model class as the interface elsewhere. interface IModel { func

[Flashcoders] UML Diagrams

2006-08-24 Thread Mike Keesey
27;ve experimented with a few such programs. I'd really like to find something (or a combo solution) that can work both ways. -- Mike Keesey ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the arc

RE: [Flashcoders] retrieving vars using query string

2006-08-24 Thread Mike Keesey
You can just set your FlashVars on the first frame on the main timeline. (And make sure you delete them when done testing.) I don't know of a better way. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, August 24, 2006 4:0

RE: [Flashcoders] Flash/Actionscript Coding conventions

2006-08-24 Thread Mike Keesey
It ends when you make your own damn third-party tools! ;) Seriously, though, I don't find that I have to comment out huge swaths of class functions at a time very often. Even if I did have to comment out several functions, they might not be next to each other, anyway. And, as I said before, commen

RE: [Flashcoders] Flash/Actionscript Coding conventions

2006-08-23 Thread Mike Keesey
asy to do "Move Method" refactorings and suchlike. > I'm not going to make my process suffer nor am I going to litter my code > with ugly asterisks just to document my work when I can spend that > energy writing cleaner, easier to read code with light commenting in the >

RE: [Flashcoders] Flash/Actionscript Coding conventions

2006-08-23 Thread Mike Keesey
g // It's easier to read than all those asterisks // IMNSHO / Oh I used about 6 asterisks in my example. I don't like huge lines of them, either. -- Mike Keesey ___ Flashcoders@chattyfig.figleaf.com To change your subscriptio

RE: [Flashcoders] Flash/Actionscript Coding conventions

2006-08-23 Thread Mike Keesey
Putting a block comment before a function is standard, though (Javadoc). Putting one *inside* a function is awful, though, I agree. /** * This is a perfectly fine Javadoc comment * * @param bar some parameter */ public function foo(bar:Object):Void { /* Using a block co

RE: [Flashcoders] Dynamically Upcast to a class in the _global tree?

2006-08-23 Thread Mike Keesey
What would be the point of that? The only point of upcasting is to have things compile with strict typing, and the compiler can't tell what the class is if it's dynamically determined. Are you talking about dynamic *instantiation*? Then you could use something like this: // Import all classes tha

RE: [Flashcoders] vars with $

2006-08-18 Thread Mike Keesey
I have seen others do it, or mark parameters with a "p_". I prefer not to mark parameters in any special way. I mark private variables with "_", so those are already distinct. And if I have a function that's so long that I can't see the top from somewhere in the body, it's well past time to cut it

Re: [Flashcoders] init TextFormat prop in a class

2006-06-27 Thread mike . keesey
public function Test(){ super(); _tf = new TextFormat(); trace("hello"); } } (The "super();" is not strictly necessary; I'm just anal.) -- Mike Keesey ___ Flashcoders@chattyfig.f