Re: [Flashcoders] How do you tell if an Object is dynamic?

2008-01-04 Thread T. Michael Keesey
mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 http://exopolis.com/ -- http://3lbmonkeybrain.blogspot.com/ ___

Re: [Flashcoders] [Sort of OT] Flex Usage - IDE

2007-12-15 Thread T. Michael Keesey
;Blaze DS". See: http://labs.adobe.com/technologies/blazeds/ -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 http://exopolis.com/ -- http://3lbmonkeybrain.blogspot.com/ _

Re: [Flashcoders] OOP design books

2007-12-13 Thread T. Michael Keesey
esignPatterns for Java is the best design patterns book. > Which makes me wonder why not get the original GoF book. Then again, > maybe I should re-read the front material in the Lott/Patterson book. > > > > Suggestions? > > > > Erik J Mattheis -- T. Michael Ke

Re: [Flashcoders] protecting graphics

2007-09-14 Thread T. Michael Keesey
would be a lot of work, though. Again, ti wouldn't prevent anyone from taking screenshots, but it would make stealing the vector source much much harder. -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 http://e

Re: [Flashcoders] static vs singleton

2007-09-14 Thread T. Michael Keesey
} return _instance; } public function myMethod():void { trace("myMethod() was called"); } private static var _instance:MyFile = null; } // OTHER CODE MyFile.instance.myMethod(); -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena

Re: [Flashcoders] toString(aArray[i]) ?? does this work

2007-09-12 Thread T. Michael Keesey
On 9/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Quick question, can I toString an array element. > ie: var myStr:String = toString(aArray[i]);// where 'i' is the > increment. Use String(aArray[i]) or aArray[i].toString() -- T. Michael K

Re: [Flashcoders] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?

2007-09-08 Thread T. Michael Keesey
On 9/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > In the AS3 class MouseEvent, what is the use for ROLL_OVER and ROLL_OUT? > > > > They seem to be the same as MOUSE_OVER and MOUSE_OUT... > > ROLL_OVER and ROLL_OUT = mouse button down Wouldn't that be DRAG_OVER and DRAG_OUT? > MOUSE_OVER

Re: [Flashcoders] Static without extending Movieclip (2.0)

2007-09-07 Thread T. Michael Keesey
On 9/7/07, Kerry Thompson <[EMAIL PROTECTED]> wrote: Helmut Granda wrote: > When creating a static class that extends movieclip I'm confused--why would you extend MovieClip for a static class? Or do you mean something other than "a class that only has static fields and methods" when you say "stat

Re: [Flashcoders] Copy and paste a movieClip?

2007-09-06 Thread T. Michael Keesey
duplicate; } NOTE: I haven't tested this. -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry & Carney: http://parryandcarney.com ISPN Forum:

Re: [Flashcoders] as3 code!!

2007-09-03 Thread T. Michael Keesey
On 9/2/07, eka <[EMAIL PROTECTED]> wrote: > Hello :) > > Yes an Array can be better :) But in my experience i prefere use the native > flash.utils.Dictionnary class or a custom HashMap implementation based on > the Java Collections like it : Good point. But if you really just need to index somethi

Re: [Flashcoders] Site effect

2007-09-02 Thread T. Michael Keesey
Really nice! I'm pretty sure those were done in some 3D program and then imported as image sequences.(I'd guess video, but they don't seem to have any artifacts, and playing video backwards doesn't look that smooth.) On 9/2/07, 2lakes <[EMAIL PROTECTED]> wrote: > What? > No takers on this? WOW i

Re: [Flashcoders] as3 code!!

2007-09-02 Thread T. Michael Keesey
On 9/1/07, [p e r c e p t i c o n] <[EMAIL PROTECTED]> wrote: > greetings experts! > > way back in the days of as2 you could do something like this... > > this["somevarname"+someIndex] = new Something(); Even in AS2, it seems that this would be better done with an array. var somethings:Array = []

Re: [Flashcoders] AS3 Events, Delegates and passing parameters

2007-09-02 Thread T. Michael Keesey
On 9/1/07, Muzak <[EMAIL PROTECTED]> wrote: > I don't see why this is a "problem" as it's properly documented: > > http://livedocs.adobe.com/flash/9.0/main/0138.html I wasn't saying it was a problem, just that a developer should be aware of it. -- Mike Keesey

Re: [Flashcoders] AS3 Events, Delegates and passing parameters

2007-08-31 Thread T. Michael Keesey
they are dispatched.) -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.fi

Re: [Flashcoders] [AS3] Using ByteArray as a FLV holder

2007-08-31 Thread T. Michael Keesey
On 8/31/07, Bernard Visscher <[EMAIL PROTECTED]> wrote: > Hi all, > > I was trying to load a FLV in a ByteArray and then attaching it to a > NetStream or something like that to display the flv. No luck yet! > Does someone know how this can be done? > I think I have to replace the data like you "can

Re: [Flashcoders] "This is not Java": property accessors

2007-08-22 Thread T. Michael Keesey
On 8/22/07, Alan MacDougall <[EMAIL PROTECTED]> wrote: > > Well, the idea is that you'd never mix the two syntaxes. Either every > single field uses explicit getters, or every single one uses > property-style access. Fine if you're working by yourself, just using your own code. > An abstract clas

Re: [Flashcoders] "This is not Java": property accessors

2007-08-22 Thread T. Michael Keesey
On 8/22/07, Alan MacDougall <[EMAIL PROTECTED]> wrote: > Further derail! What are people's thoughts on implicit vs. explicit > accessors? I prefer explicit ones, but I confess that it's almost > entirely because I learned Java before Actionscript. I think a lot of it has to do with readability. Co

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-21 Thread T. Michael Keesey
On 8/21/07, Ron Wheeler <[EMAIL PROTECTED]> wrote: > > T. Michael Keesey wrote: > > On 8/21/07, Ron Wheeler <[EMAIL PROTECTED]> wrote: > > > >>> myShape.x = 500; > >>> > >> I hope that you meant > >> myshape.setX(500); >

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-21 Thread T. Michael Keesey
On 8/21/07, Ron Wheeler <[EMAIL PROTECTED]> wrote: > > > > myShape.x = 500; > > I hope that you meant > myshape.setX(500); Huh? No, that's not part of the flash.display.Shape API. And while it's true that "x" in this context is actually not a true field, but a pair of methods (__get__x and __set_

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-21 Thread T. Michael Keesey
On 8/21/07, Steven Sacks <[EMAIL PROTECTED]> wrote: > > "Object-oriented programming (OOP) is a programming paradigm that uses > "objects" and their interactions to design applications and computer > programs. It is based on several techniques, including inheritance, > modularity, polymorphism, and

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-21 Thread T. Michael Keesey
On 8/21/07, Ian Thomas <[EMAIL PROTECTED]> wrote: > On 8/21/07, Steven Sacks <[EMAIL PROTECTED]> wrote: > > > If we take two students and you teach them OOP for 1 month and I teach > > them procedural for two weeks and then OOP for two weeks, my student > > will be further along than your student.s

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread T. Michael Keesey
of whether you want to introduce them to the environment of OOP earlier or later. In either case, the concepts of OOP should come later. -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 _

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread T. Michael Keesey
On 8/19/07, Ron Wheeler <[EMAIL PROTECTED]> wrote: > > Some of the Heads Up Design Patterns examples are fun and designed to > appeal to the 14 year old in all of us. (How does your duck quack? What > if it is a rubber duck?) 14-year-old or 4-year-old? -- Mike Keesey

Re: [Flashcoders] Random Question about throwing/catching Error

2007-08-14 Thread T. Michael 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 Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http:/

Re: [Flashcoders] Classes 101 [was: Version control and Flash ]

2007-08-14 Thread T. Michael Keesey
but I find them to be much fewer in AS3. -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry & Carney: http://parryandcarney.com ISPN Forum: http://www.phylonames.org/forum/

Re: [Flashcoders] array copy with random order

2007-08-13 Thread T. Michael Keesey
On 8/13/07, Steven Sacks <[EMAIL PROTECTED]> wrote: > > array2.sort ( function (){ return Math.round(Math.random()); } ); > > That's brilliant! :) > > To build upon that with all 3 outcomes (-1, 0, 1), you can use: > > Math.round(Math.random() * 2) - 1) Very interesting. But any time you use ran

Re: [Flashcoders] Classes 101 [was: Version control and Flash ]

2007-08-13 Thread T. Michael Keesey
On 8/13/07, Steven Sacks <[EMAIL PROTECTED]> wrote: > > You can override the getter and/or setter of any > > property: x, y, width, height, etc. > > This is actually one of the benefits in AS2 of using composition instead > of inheritance with MovieClip. But it should be noted that there are pro

Re: [Flashcoders] Classes 101 [was: Version control and Flash ]

2007-08-13 Thread T. Michael Keesey
On 8/13/07, Andy Herrman <[EMAIL PROTECTED]> wrote: > > Specifically, if I'm wrapping MovieClip I'm generally creating > something with a lot of special behavior, which sometimes causes > restrictions on things like position and size. If I extend MovieClip > then all the built in MovieClip functio

Re: [Flashcoders] Classes 101 [was: Version control and Flash ]

2007-08-13 Thread T. Michael Keesey
ayObject (a simpler superclass of MovieClip in AS3). In the end a lot of it boils down to taste, I think. Personally I have no problem with extending MovieClip or, in AS3, DisplayObject for anything that appears visually. -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste

Re: [Flashcoders] Classes 101 [was: Version control and Flash ]

2007-08-10 Thread T. Michael Keesey
On 8/10/07, David Ngo <[EMAIL PROTECTED]> wrote: > > If I need to create an algorithm to perform a series of calculations based > off each other, where do I put that? Do I put it in a class that extends > MovieClip or in a generic class? That really depends. If only one type of movieclip is ever g

Re: [Flashcoders] Version control and Flash

2007-08-10 Thread T. Michael Keesey
all, etc., but, by and large, people should be writing code as classes in AS files, organizing the AS classes into packages, and linking those classes to movieclip symbols in the library. -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 900

Re: [Flashcoders] XML loading and parsing problem

2007-07-08 Thread T. Michael Keesey
On 7/8/07, Paul Andrews <[EMAIL PROTECTED]> wrote: It's completely wrong to insist that you have to use a delegate in all situations. True--another case where you don't need them is when using static functions. -- Mike Keesey ___ Flashcoders@chattyf

Re: [Flashcoders] how to call method in sub-class instace?

2007-06-29 Thread T. Michael Keesey
On 6/29/07, Andrew Sinning <[EMAIL PROTECTED]> wrote: How do you get a super-class instance to call an over-riding method in a sub-class? I'm using AS2. Just call the method. That's it. I recall it being more complicated in Lingo, but in pretty much every other OOP language (Java, C++, AS, et

Re: [Flashcoders] EventDispatcher weirdness in AS2

2007-06-06 Thread T. Michael Keesey
Deeeleeegaaate On 6/6/07, Merrill, Jason <[EMAIL PROTECTED]> wrote: Driving me mad. I don't get what could possibly be happening here. Why would _myOtherClass instance no longer exist after the event in an unrelated class fires? Any ideas? import myClass; import myOtherClass; import mx.even

Re: [Flashcoders] functions for other classes within a class

2007-05-25 Thread T. Michael Keesey
On 5/25/07, Giles Roadnight <[EMAIL PROTECTED]> wrote: Hi All I have this code within a class: class com.tequila.canon.PosterArtist.Controller { private var portfolio:MovieClip; public function Controller() { trace("Controller constructor: " + this.portfolio); thi

Re: [flashcoders] Q: binary data (JPG) in XML

2007-05-23 Thread T. Michael Keesey
On 5/23/07, eric e. dolecki <[EMAIL PROTECTED]> wrote: I have been asked if its possible to have Flash display a JPG thats stored in XML as a binary object (ie. I don't get a path to the JPG, I get the JPG). I have NO idea what this XML looks like yet, but perhaps someone has done this already?

Re: [Flashcoders] Can I read XML before it is loaded?

2007-05-15 Thread T. Michael Keesey
a excluded). If you can, make an addition to the back-end: a script or web service call that returns a Boolean, based on the same thing. Am I right in assuming that the XML file is very large? (If not, what would be the point?) -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowe

Re: [Flashcoders] Question on removing Proxied Functions and EventListeners

2007-05-08 Thread T. Michael Keesey
e Odin, you don't need delegates at all, since each function instance has a reference to its scope.) -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 ___ Flashcoders@chattyfig.figle

Re: [Flashcoders] Flash / Java Communication with ExternalInterface

2007-05-03 Thread T. Michael Keesey
On 5/3/07, Alain Rousseau <[EMAIL PROTECTED]> wrote: Hi All, we're at a point in a project where we need good communication between Flash and Java. ATM we are using SWT Flash and it's FSCommand handling. I would like to go a bit further to be able to send complex objects via ExternalInterface. I

Re: [Flashcoders] factory with varying numbers of params

2007-05-01 Thread T. Michael Keesey
eightColorParams(params).color); } throw new Error("Unrecognized item parameters: " + params); } -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry & Carney:

[Flashcoders] Job: Flash Developers wanted in Los Angeles (freelance or full-time)

2007-04-30 Thread T. Michael Keesey
-tracking software. - Knowledge of standard code comment formats (e.g., ASDoc). Please send a resume and one or more code samples to mike dot keesey at exopolis dot com. (Do not reply to the GMail address.) -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles

Re: [Flashcoders] Are string literals and String objects the same in AS3?

2007-04-30 Thread T. Michael Keesey
On 4/30/07, David Bellerive <[EMAIL PROTECTED]> wrote: From what I understand, in AS2, a String object was a wrapper object around a string literal. For exemple, in AS2, these were not the same: var myFirstString:String = "my first string"; var mySecondString:String = new String("my second str

Re: [Flashcoders] Flex : importing .as class files.

2007-04-28 Thread T. Michael Keesey
ders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.co

Re: [Flashcoders] AS2.0 Question - passing data between classes

2007-04-23 Thread T. Michael Keesey
make an identical copy of the "items" array. Modifying it will not affect "items". -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.co

Re: [Flashcoders] Init generic clip

2007-04-18 Thread T. Michael Keesey
nsulting and Training > http://www.figleaf.com > http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to yo

Re: [Flashcoders] How is it done? coca-cola creator

2007-04-13 Thread T. Michael Keesey
we could finish). Basically we generated SVG data according to user input and then drew that in Flash, using MovieClip drawing methods. We were also going to create a utility for sending the SVG to a back-end, but -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue

Re: [Flashcoders] How is it done? coca-cola creator

2007-04-13 Thread T. Michael Keesey
On 4/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Flash is uploading a bitmapData object representing the final image to the server. This is a Flash 8 AS 2.0 solution The AS2.0 BitmapData class doesn't have any methods for uploading data. I'm pretty sure Flash 8/AS2.0 cannot send binary

Re: [Flashcoders] How is it done? coca-cola creator

2007-04-13 Thread T. Michael Keesey
The sniffer is looking for Flash 8, so I highly doubt it's an AS3 solution. I believe it's a highly optimized server-side solution. On 4/13/07, Mick G <[EMAIL PROTECTED]> wrote: Does anyone know how this is done? (The saving as JPG option) http://coca-colacreator.coca-cola.com/creator.html?cou

Re: [Flashcoders] LoadVars.sendAndLoad with POST

2007-04-11 Thread T. Michael Keesey
On 4/11/07, Lars Schwarz <[EMAIL PROTECTED]> wrote: you are sending an empty loadvars object... returning an empty post array when doing so is a feature, not a bug :) _send_lv.sendAndLoad("testing.php", _send_lv, "post"); No, _send_lv.sendAndLoad("testing.php", _result_lv) will send _send_lv

Re: [Flashcoders] AS3 Delegate

2007-04-09 Thread T. Michael Keesey
x".) By the way, I think the AS3 syntax for this: button.onRelease=myFunction; // AS3 ... is actually: button.addEventListener(MouseEvent.CLICK, myFunction); -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Di

Re: [Flashcoders] Entities are Hell!

2007-04-04 Thread T. Michael Keesey
hild.firstChild.nodeValue; Even better: theClip.txt.htmlText = xmlNode.firstChild.childNodes.join(""); -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry & Carney: http://parryandc

Re: [Flashcoders] Delegate Scope Class Issues

2007-04-02 Thread T. Michael Keesey
On 4/2/07, Helmut Granda <[EMAIL PROTECTED]> wrote: This myTween.onMotionFinished = function() { Delegate.create(this, record); } Should be: myTween.onMotionFinished = Delegate.create(this, record); -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894

Re: [Flashcoders] [OT] PHP book recommendations

2007-03-22 Thread T. Michael Keesey
On 3/22/07, Hairy Dog Digital <[EMAIL PROTECTED]> wrote: Hi all, I need (want) to get myself up to speed with PHP 4.x/5.x and MySQL. I'm experienced with ActionScript (1 and 2), JavaScript, and Lingo (Director), and have dabbled with Java. I don't need a text that goes into basic programming te

Re: [Flashcoders] math.round question

2007-03-17 Thread T. Michael Keesey
int() is deprecated in favor of Math.floor() (for numbers) or parseInt() (for strings). In AS3 "int" has a different meaning (a data type instead of a function). On 3/17/07, Kerem İşeri <[EMAIL PROTECTED]> wrote: Just replace the code with below: loadProgressOutput = int((this.getBytesLoaded()

Re: [Flashcoders] math.round question

2007-03-16 Thread T. Michael 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 Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://

Re: [Flashcoders] Super and this

2007-03-16 Thread T. Michael Keesey
On 3/16/07, Danny Kodicek <[EMAIL PROTECTED]> wrote: Just a quick check, as I'm more used to Director's inheritance model than Flash's! I have an object A which extends B, which in turn extends MovieClip Object B has a method 'fGetElementAt' which returns a movieclip In A, I want to extend this

Re: [Flashcoders] Order of events for function call

2007-03-14 Thread T. Michael Keesey
your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- T. Michael Keesey Director of Technology Exop

Re: [Flashcoders] asunit and a class that loads XML

2007-03-13 Thread T. Michael Keesey
races come out looking like this: > setUp() > size: 0 > tearDown() > size: undefined > > any tips are greatly appreciated. > > thanks. -- matt. > > ** > > > ___ Flashcoders@chattyfig.figleaf.com To chan

Re: [Flashcoders] Extending buttons interface

2007-03-12 Thread T. Michael Keesey
On 3/12/07, Merrill, Jason <[EMAIL PROTECTED]> wrote: Well, I still disagree. You're talking about the authoring tool, not the language, which is what I thought we were talking about. There is no "beta" or "preview" AS3 - only Flash 9 beta/preview which allows you create projects in AS3. Flex

Re: [Flashcoders] Extending buttons interface

2007-03-12 Thread T. Michael Keesey
On 3/12/07, Merrill, Jason <[EMAIL PROTECTED]> wrote: No it doesn't, any owner of Flash 8 can use the Flash 9 AS3 preview to compile projects - not just test projects, real projects which are legal, and target the Flash 9 player. You're right in that Flash 9 has not been released yet, but the F

Re: [Flashcoders] Extending buttons interface

2007-03-12 Thread T. Michael Keesey
private variable of the same name. If that package had used proper class conventions, I could have saved myself about 40 minutes spent tracking down the conflict. -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauric

Re: [Flashcoders] Image Caching Problem

2007-03-10 Thread T. Michael Keesey
On 3/10/07, David Beermann <[EMAIL PROTECTED]> wrote: So my options are, to create a preloader for all areas where I need my thumbnails or the convince my client to switch to Flash 8. Would the switch really help or would I end up in another caching problem? I couldn't find any information in th

Re: [Flashcoders] Flash + SWFObject + innerHTML + IE7 problem

2007-03-05 Thread T. Michael 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 Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.fi

Re: [Flashcoders] AS3... when to start?

2007-03-04 Thread T. Michael Keesey
On 3/3/07, Micky Hulse <[EMAIL PROTECTED]> wrote: Hi all, I just picked-up Actionscript 3.0 Cookbook (O'Reilly) today, and found myself pondering this: Is it time to make the switch from v2 to v3 AS? If you are using Flex, then yes. If you are using Flash, then probably not. They have only re

Re: [Flashcoders] Cache Killer... is it bulletproof ???

2007-03-03 Thread T. Michael Keesey
Actually using a random string is not a good idea because there is a chance, however small, that it will fail. Using new Date().getTime(), as the OP mentioned (and erroneously called "random"), will work every time (unless, of course, the user resets their clock during the session--and even then y

Re: [Flashcoders] simple math question...

2007-03-02 Thread T. Michael Keesey
On 3/2/07, JOR <[EMAIL PROTECTED]> wrote: sweet tip, thanks. -- JOR No prob. Incidentally, I'm pretty sure this is why BlurFilter, etc. are optimized for blur amounts that are powers of 2. -- Mike Keesey ___ Flashcoders@chattyfig.figleaf.com To chan

Re: [Flashcoders] simple math question...

2007-03-02 Thread T. Michael Keesey
On 3/2/07, T. Michael Keesey <[EMAIL PROTECTED]> wrote: In a test where I ran a calculation a million times, shift right was about 200ms faster than division. Sorry, that's not a helpful metric. I should have said shift right took ~90% as much time. --

Re: [Flashcoders] simple math question...

2007-03-02 Thread T. Michael Keesey
is equivalent to Math.floor(x / 8) x >> 4 is equivalent to Math.floor(x / 16) x << 1 is equivalent to Math.floor(x * 2) x << 2 is equivalent to Math.floor(x * 4) x << 3 is equivalent to Math.floor(x * 8) x << 4 is equivalent to Math.floor(x * 16) You get the

Re: [Flashcoders] XPathAPI recursive XML search

2007-02-28 Thread T. Michael Keesey
On 2/26/07, Jim Cheng <[EMAIL PROTECTED]> wrote: Unfortunately, Flash has never had a good means to traverse an XML tree. Never say never. AS3.0's e4x is an extremely good means for traversing an XML tree. (You're right if you mean "pre-AS3 Flash", though.) -- Mike Keesey _

Re: [Flashcoders] Append variables to SWF server-side

2007-02-27 Thread T. Michael Keesey
leaf.com http://training.figleaf.com -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry & Carney: http://parryandcarney.com ISP

Re: [Flashcoders] Do You Need to Clear Intervals in this Case?

2007-02-24 Thread T. Michael Keesey
af.com http://training.figleaf.com -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry & Carney: http://parryandcarney.com ISPN Forum: http://www.phylonames

Re: [Flashcoders] Flash chat and Smiley

2007-02-23 Thread T. Michael Keesey
nsulting and Training http://www.figleaf.com http://training.figleaf.com -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry & Carney: http://parryandcarney.com ISPN Forum: http:/

Re: [Flashcoders] Collision detection NOT using hitTest()

2007-02-23 Thread T. Michael 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 Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://train

Re: [Flashcoders] Passing a Function as Parameter and call functionlater

2007-02-19 Thread T. Michael Keesey
On 2/18/07, Jesse Graupmann <[EMAIL PROTECTED]> wrote: var callback:Function = mx.utils.Delegate.create ( _root, nextFrame ); anyOtherObject.func = function(){ callback () }; anyOtherObject.func (); You can combine the first two lines (and simplify the second) to just: anyOtherObj.func =

Re: [Flashcoders] extends MovieClip

2007-02-17 Thread T. Michael Keesey
ght to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry & Car

Re: [Flashcoders] removeMovieclip actions on 1000 MCs

2007-02-16 Thread T. Michael Keesey
man/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon:

Re: [Flashcoders] Flash Player 7 Installer?

2007-02-16 Thread T. Michael Keesey
On 2/16/07, Thomas Fowler <[EMAIL PROTECTED]> wrote: There's another utility in the same vein as Sephiroth's extension: http://www.pluginswitcher.de/download/index.html I find this one to be a little richer in features... Wow, nice!!! -- Mike Keesey __

Re: [Flashcoders] for...in property access replacement in AS3?

2007-02-15 Thread T. Michael Keesey
You can use Object.setPropertyisEnumerable(propName). flash.utils.describeType() might be another way. -- Mike Keesey On 2/15/07, Matt Garland <[EMAIL PROTECTED]> wrote: Hi, I'm converting some AS2 code to AS3. The code manipulates several big, complicated data containers to produce an animat

Re: [Flashcoders] Problem with cascading functions within a class

2007-02-15 Thread T. Michael Keesey
Incidentally, in AS3 all functions preserve their scope, so Delegate is no longer needed. (Yay!) But, in the meantime, Delegate is the best solution to the problem of associating a function call with a scope. Also worth mentioning is that since static functions have no scope, you don't need to us

Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-15 Thread T. Michael Keesey
On 2/15/07, Karina Steffens <[EMAIL PROTECTED]> wrote: Hi Michael, I address the problem of testing cache-busting code in the IDE in my blog: http://blog.neo-archaic.net/2006/08/02/nocache-for-javascript-and-flash.htm Basically, what you need to do is check for System.capabilites.playerType bef

Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread T. Michael Keesey
On 2/14/07, John VanHorn <[EMAIL PROTECTED]> wrote: this problem has been discussed before. is this what youre referring to? http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/171681.html seems that MovieClipLoader events do not fire correctly when content is loaded from cache. if t

Re: [Flashcoders] Problem with cascading functions within a class

2007-02-14 Thread T. Michael Keesey
o you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry & C

Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread T. Michael Keesey
Preliminary results seem to suggest that the problem only occurs when compiling with the Flash 9 public alpha rather than Flash 8. I'd be interested to hear if anyone else has had problems with MovieClipLoader:onLoadInit not firing in SWFs published with the Flash 9 public alpha. -- T. Mi

Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread T. Michael Keesey
On 2/14/07, Derek Vadneau <[EMAIL PROTECTED]> wrote: What version is the SWF you are loading that causes you the grief? Is it the same version as the SWF that is performing the load? Was it published for version 6 (or earlier) perhaps? Good thought, but--nope, they're both version 8 (AS2). --

Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread T. Michael Keesey
On 2/14/07, T. Michael Keesey <[EMAIL PROTECTED]> wrote: On 2/14/07, John VanHorn <[EMAIL PROTECTED]> wrote: > this problem has been discussed before. is this what youre referring to? > > http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/171681.html > >

Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread T. Michael Keesey
targetMc ); -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://

Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread T. Michael Keesey
some more exploration and then post relevant sections if need be. First thing to do is check Danny Kodicek's suggestion: see if the httpStatus is unusual. -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste.

Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread T. Michael Keesey
s called when the load actually failed. Ahh, right. Ever find an answer to that? -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 ___ Flashcoders@chattyfig.figleaf.com To change your subscription

Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread T. Michael Keesey
nstructors). Normally, this is exactly what MovieClipLoader:onLoadInit is for, but, as I said, it's not being called for some reason, even though the components in the loaded SWF do initialize. Just wondering if anyone's encountered a similar situation. -- T. Michael Keesey Director of Techno

Re: [Flashcoders] Anyone hate flash 9 already?

2007-02-14 Thread T. Michael Keesey
change with a release :) Actually, AS3 has awesome documentation. It's just not integrated into the Flash 9 alpha release. Go here: http://livedocs.macromedia.com/flex/2/langref/ -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles,

[Flashcoders] onLoadComplete, but no onLoadInit

2007-02-13 Thread T. Michael Keesey
rified that the actions on the first frame (a component initializing) are being called, but onLoadInit never happens. TIA, -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039

Re: [Flashcoders] Coding Standards: Use of Get/Set

2007-02-13 Thread T. Michael Keesey
One of the few reasons to use explicit getters/setters in AS2 is as part of an interface. AS2 does not allow implicit property getters and setters in interfaces. // Will not work in AS2: interface Ratio { function get percent():Number; } // Will work in AS2: interface Ratio { function getPer

Re: [Flashcoders] Coding Standards: Use of Get/Set

2007-02-13 Thread T. Michael Keesey
eter and will never evaluate to anything but an integer from 0 to 100. If you were using getPercent() and setPercent(), you couldn't have the inspectable component parameter. -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles

Re: [Flashcoders] Coding Standards: Use of Get/Set

2007-02-13 Thread T. Michael Keesey
On 2/13/07, Holth, Daniel C. <[EMAIL PROTECTED]> wrote: I was wondering what people's thoughts were on the use of "get" and "set" functions. I personally have felt that creating functions such as: public function get theLetterA(){ return "a"; } so the user can simply call someObject.t

Re: [Flashcoders] Adding a function to the String prototype

2007-02-13 Thread T. Michael Keesey
the compiler that? How does one add a function to String? P. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://

Re: [Flashcoders] using mx.controls package in an Actionscript 3.0 Project

2007-02-13 Thread T. Michael Keesey
g.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- T

Re: [Flashcoders] Stop Flash caching classes

2007-02-05 Thread T. Michael Keesey
On 2/5/07, Ian Thomas <[EMAIL PROTECTED]> wrote: Hi Pedr, This is almost certainly because 'master' includes the same classes, or classes with the same package/name as swfA. Flash always uses the _first loaded version_ of any classes. Update the classes in master (i.e. rebuild it with the new c

Re: [Flashcoders] What are your thoughts on creating a hook back vs Delegate ?

2007-02-04 Thread T. Michael Keesey
Whoops, missed one line (toward the bottom): On 2/4/07, T. Michael Keesey <[EMAIL PROTECTED]> wrote: import mx.utils.Delegate; import mx.events.EventDispatcher; class MyClass extends Object { public function MyClass() { super(); _doSomething = Delegate.creat

Re: [Flashcoders] What are your thoughts on creating a hook back vs Delegate ?

2007-02-04 Thread T. Michael Keesey
("eventType", _doSomething); } public function stopListeningTo(dispatcher:EventDispatcher):Void { dispatcher.removeEventListener("eventType", _doSomething); } private function doSomething(event:Object):Void { // Do something! } } -- T. Michael Kee

Re: [Flashcoders] Detecting NaN

2007-02-01 Thread T. Michael Keesey
NFINITY or Number.NEGATIVE_INFINITY). } -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry & Carney: http://parryandcarney.com ISPN Forum: http://www.phylon

  1   2   >