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

[Flashcoders] Text background

2006-09-05 Thread Mike Cobb
workaround for adding a background to portions of text. Flash 8, AS2 Any ideas? -- - Mike Cobb Creative Director HMC Interactive - Tel: + 44 (0)845 20 11 462 Mob: + 44 (0)785 52 54 743 Web: http://www.hmcinterac

Re: [Flashcoders] getURL and IE 6.0.

2006-09-04 Thread Mike Cobb
.figleaf.com http://training.figleaf.com -- ----- Mike Cobb Creative Director HMC Interactive - Tel: + 44 (0)845 20 11 462 Mob: + 44 (0)785 52 54 743 Web: http://www.hmcinteractive.co.uk - Grosvenor Hou

Re: [Flashcoders] Fwd: Application Framework

2006-08-31 Thread Mike Britton
It's built into Flash 8: import mx.xpath.XPathAPI; function getXMLData() { var myXML:XML = new XML(); myXML.ignoreWhite = true; myXML.onLoad = function(success:Boolean) { if (success) { var groupAr:Array = XPathAPI.selectNodeList(t

Re: [Flashcoders] Flash + Web Services problems

2006-08-31 Thread Mike Britton
Like this: Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf

Re: [Flashcoders] Flash + Web Services problems

2006-08-31 Thread Mike Britton
Try adding a domain="*" attribute to , and a node to your cross-domain-policy nodes. Let me know if this works so I can feel a smug sense of satisfaction. Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or

Re: [Flashcoders] Flash + Web Services problems

2006-08-31 Thread Mike Britton
What does your crossdomain.xml file look like? Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier

RE: [Flashcoders] TextFormat

2006-08-31 Thread Mike Mountain
Jason The only way I can ever get the "dings" fonts to display in a dynamic tf is by embedding them - even if they are on the users system. I assume this is something to do with the dings family being a "symbol" font. M > He suggested I trace the font on the textfield, which is not > the same

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] FLV8/VP6 decoding?

2006-08-30 Thread Mike Cobb
ized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- - Mike Cobb Creative Director HMC Interactive - Tel: + 44 (0)845 20 11 462 Mob: + 44 (0)785 52 54 743 Web: http://www.hmcinterac

Re: [Flashcoders] mvc dillema

2006-08-29 Thread Mike Britton
You could use EventDispatcher in the Model, View and Controller, and send the XML data to your Model through your Controller. When the Model changes, make it dispatch an event that updates the view, etc. Mike ___ Flashcoders@chattyfig.figleaf.com To

Re: [Flashcoders] OOP methodology and flash. I'm loosing my faith...

2006-08-29 Thread Mike Britton
tellTarget and _global to accomplish this is questionable. Maybe I'm missing something. Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Broug

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

2006-08-25 Thread Mike Britton
It also has round trip AS2 code generation. Gotta love that. http://www.5etdemi.com/blog/archives/2005/11/uml-to-as2-generator-for-enterprise-architect/ Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the

Re: [Flashcoders] UML Diagrams

2006-08-25 Thread Mike Britton
Enterprise Architect: http://www.sparxsystems.com.au/products/ea.html Mike ___ 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

Re: [FlashCoders] Local storage warning

2006-08-25 Thread Mike Cobb
figleaf.com http://training.figleaf.com -- ----- Mike Cobb Creative Director HMC Interactive - Tel: + 44 (0)845 20 11 462 Mob: + 44 (0)785 52 54 743 Web: http://www.hmcinteractive.co.uk - Grosvenor Hous

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

2006-08-24 Thread Mike Mountain
The MovieCLip Loader events do not fire off correctly in IE when the content has been cached and IE is set to check for updates "Automatically" or "Never". It's utter crap. Cheers M > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Tony Fairfiel

RE: [Flashcoders] Flash/Actionscript Coding conventions

2006-08-24 Thread Mike Mountain
Surely this is just a matter of using a fully featured IDE to develop your code in - if you use Flashdevelop for instance you can block comment/uncomment any lines/lines using "//" syntax from the edit menu with "comment line", or with keyboard shortcuts - this will not conflict with block comment

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] Special characters?

2006-08-22 Thread Mike Mountain
[as] for (i=288; i<=318; i++) { var val = String.fromCharCode(i); trace(val); } [/as] Any good? M > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Steven Loe > Sent: 22 August 2006 16:40 > To: flashcoders@chattyfig.figleaf.com >

RE: [Flashcoders] DataGrid woes

2006-08-22 Thread Mike Mountain
I swear I saw a sortable datagrid on IFBIN - can't check at the mo' as my work proxy won't allow access - but it is definetely dooable M > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Chris Hill > Sent: 19 August 2006 01:50 > To: 'Flashcoders

[Flashcoders] JOB: Full time and contract work at ID Society in New York

2006-08-21 Thread Mike Brittain
(preferably New York-based) who are expert-level ActionScripters and would be interested in working with us. Please respond with all inquiries about these positions to [EMAIL PROTECTED] Thank you, Mike -- MIKE BRITTAIN Director of Technology ID Society, Inc. 138 West 25th Street, 9th Floor New

Re: [Flashcoders] Capped MovieClip._rotation, what can be done?

2006-08-21 Thread Mike Cobb
lashcoders@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.figleaf.com -- ---

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] Best way to learn OO Analysis andDesign withActionScript

2006-08-18 Thread Mike Mountain
"it's crucial to be in sync with specialist language and concepts" Completely agree, but Jargon in any industry is always a barrier to effective communication between the initiated and the uninitiated, whether it is intentional or not. I just find that the OOP literati can sometimes be a little "t

RE: [Flashcoders] Best way to learn OO Analysis and Design withActionScript

2006-08-18 Thread Mike Mountain
explained within the bounds of this "jargon" - One question inevitably leads to many more. M > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Mike Britton > Sent: 18 August 2006 15:33 > To: Flashcoders mailing list > Sub

Re: [Flashcoders] Best way to learn OO Analysis and Design with ActionScript

2006-08-18 Thread Mike Britton
rything at once. Give your brain time to wrap around small chunks of new info. My .02 Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brou

RE: [Flashcoders] MovieClip loader IE Caching bug

2006-08-18 Thread Mike Mountain
http://chattyfig.figleaf.com/pipermail/flashcoders/2005-February/132366. html > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Mike Mountain > Sent: 18 August 2006 09:09 > To: Flashcoders mailing list > Subject: RE: [F

RE: [Flashcoders] MovieClip loader IE Caching bug

2006-08-18 Thread Mike Mountain
ROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Mike Mountain > Sent: Thursday, August 17, 2006 2:29 AM > To: Flashcoders mailing list > Subject: RE: [Flashcoders] MovieClip loader IE Caching bug > > OK I've narrowed it down to when IE is set to "never check"

RE: [Flashcoders] MovieClip loader IE Caching bug

2006-08-17 Thread Mike Mountain
ly there's a few AS2 conversions of qlod which slotted neatly in. I wonder if flash 9 will have similar problems with its Loader events? M > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Mike Mountain > Sent: 16 Aug

RE: [Flashcoders] OT: Flashmaps - anybody used it before?

2006-08-17 Thread Mike Mountain
There's also this free google map component: http://www.afcomponents.com/map_google/ > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of David Rorex > Sent: 17 August 2006 04:48 > To: Flashcoders mailing list > Subject: Re: [Flashcoders] OT: Flashm

Re: [Flashcoders] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Mike Britton
I always put my methodTable in the constructor, not include it. This could be the source of the problem. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flash

Re: [Flashcoders] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Mike Britton
You need to create a methodTable array in the constructor of every class you're using with AMFPHP. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Mike Britton
"access"=>"remote", "arguments"=>array(), "returntype"=>"string") ); } function test1() { return $this->test2()." world

RE: [Flashcoders] OT: Blitz Labs Xray

2006-08-16 Thread Mike Mountain
Hi John - once more, heaps of praise for this app - it truly is a lifesaver. Can I be cheeky and ask if there's any chance of a standalone version of the flex one? Zinc wrapped maybe? M > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of John Grde

[Flashcoders] MovieClip loader IE Caching bug

2006-08-16 Thread Mike Mountain
I don't do too much online work to be honest so I've only just found this out - but I cannot believe Adobe haven't fixed this bug. http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/w whelp.htm?context=LiveDocs_Parts&file=2538.html Using listeners for the movieclip loader,

Re: [Flashcoders] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Mike Britton
$this->test2(); hth, Mike ___ 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 Ad

RE: [Flashcoders] AS3 bitmapdata lock/unlock

2006-08-16 Thread Mike Mountain
Hi Ralph If you're feeling generous I'd be interested in seeing the source for those comparisons Cheers M > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Hauwert, Ralph > Sent: 16 August 2006 11:16 > To: Flashcoders mailing list > Subject: RE:

RE: [Flashcoders] AS3 bitmapdata lock/unlock

2006-08-16 Thread Mike Mountain
That's how I read it, just wondered if anyone had done any real performance comparisions - my test is fairly simple. M > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Meinte van't Kruis > Sent: 16 August 2006 10:43 > To: Flashcoders mailing list

[Flashcoders] AS3 bitmapdata lock/unlock

2006-08-16 Thread Mike Mountain
Just messing around converting some double buffering AS2 routines to AS3 when I stumbled upon lock() and unlock() - does this make double buffering unnecessary? I'm not noticing any immediate speed differences between my routine using double buffering and my test with lock()/unlock(). Cheers M __

RE: [Flashcoders] print question

2006-08-11 Thread Mike Mountain
Have you thought of perhaps loading the swf into an MC offstage and using the printjob class to print that. And googling first is just plain courtesy man. Otherwise the quality of the forums decline and all the people who would've had the answer to your problem move on elsewhere. M > -Origin

Re: [Flashcoders] Re: quotes in XML

2006-08-09 Thread Mike Britton
Are you using remoting? Check out AMFPHP: http://www.amfphp.org/ You don't need to use the XML object to send your POST, just to receive it. Create your XML object after you get your result back. var my_xml = new XML();my_xml.onLoad = function(success){if (success){trace( this);}}my_xml.load("y

Re: [Flashcoders] Flash cant add up!!

2006-08-09 Thread mike cann
oaky great cheers :D On 09/08/06, Michael Kneib <[EMAIL PROTECTED]> wrote: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_13989 Am Mi, 9.08.2006, 16:46, schrieb mike cann: > Okay, i may be going crazy but slap this on frame one of a flash file and > observ

RE: [Flashcoders] Calling functions in sequence

2006-08-09 Thread Mike Mountain
You can also store references to functions in an array and call them from the array. FuncArr= [] FuncArr[0]=func0 FuncArr[1]=func1 // call func 1 FuncArr[1]() // call a load of funcs in sequence Var len=FuncArr.length For(var i=0; i -Original Message- > From: [EMAIL PROTECTED] > [mail

[Flashcoders] Flash cant add up!!

2006-08-09 Thread mike cann
Okay, i may be going crazy but slap this on frame one of a flash file and observe the output: // var incrementNum:Number = 0; var oldNum:Number = 0; var resultNum:Number =0; onEnterFrame = function(){gogo();

RE: [Flashcoders] name objects dynamicly

2006-08-06 Thread Mike
"so.data.MyIndex.toString" is a function object. "so.data.MyIndex.toString()" is a string representation of "so.data.MyIndex". -- T. Michael Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Céline Nguyen Sent: Sunday, August 06, 2006 4:18 PM To: Fla

[Flashcoders] UIScrollbar disabled state?

2006-08-01 Thread Mike Pearce
abled state. .wtf? Mike Pearce Nectarine +61 3 9687 7820 <http://www.nectarine.com.au/> www.nectarine.com.au ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.

RE: [Flashcoders] Loading a 3500 entry XML file

2006-07-31 Thread Mike
Now there's an interesting problem. I have one really awkward idea. I'm assuming the XML structure is something like this? - Use the XML object's onData handler so that you can work with the raw string data. - Strip out the root open

RE: [Flashcoders] Problems getting the brightness of a colorreturnedfrom getPixel

2006-07-29 Thread Mike
CTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Sent: Saturday, July 29, 2006 3:25 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Problems getting the brightness of a colorreturnedfrom getPixel You seem to be thinking of numbers as if they are stored like strings. They aren&

RE: [Flashcoders] Problems getting the brightness of a color returnedfrom getPixel

2006-07-29 Thread Mike
You seem to be thinking of numbers as if they are stored like strings. They aren't. RGB colors are stored as 3-byte (24-bit) numbers. For example, red looks like this in binary: b ...which is the same thing as this in hexadecimal: 0xFF ... which is the same

RE: [SPAM] RE: [Flashcoders] String Empowerment

2006-07-28 Thread Mike
If you REALLY wanted to be fancy, you could have it accept an array of words *not* to capitalize (unless they are the first word). For example: var lowerCaseWords:Array = ["a", "an", "and", "of", "the"]; trace("a tale of two cities".toTitleCase(lowerCaseWords)); trace("THE PRINCE AND THE PAUPER"

[Flashcoders] Decompiler for AS3

2006-07-28 Thread Mike Mountain
We're discussing on the HaXe mailing list whether it would be possible to decompile from Flash 8/AS2 swfs to Haxe, then (when the support is added) recompile to Flash9/AS3 swfs to help speed up AS2 to AS3 conversion. Obvious stumbling block at the moment is nothing decompiles to HaXe, but as a re

RE: [Flashcoders] AS3 scripting, first try - some Q's

2006-07-28 Thread Mike Mountain
Well my frustration was stoked by the vague error messages being churned out by the compiler. But no sweat. M > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Supriya > Sent: 28 July 2006 09:40 > To: Flashcoders mailing list > Subject: Re: [Fla

RE: [Flashcoders] AS3 scripting, first try - some Q's

2006-07-28 Thread Mike Mountain
> Hi Mike, > > I didnt know FlashCoders was a place to get one's code > reviewed for silly mistakes in logic. Hence I just cleared > your way from thinking its an AS3 problem. Anyways glad to > know you figured it out. You're right, it's not and I did thin

RE: [Flashcoders] loadComplete but no loadInit

2006-07-27 Thread Mike
Random thought--is it possible that the initialization code for the loaded SWF is throwing an error? (I have no idea if this would stop onLoadInit from being called, though.) It's a long shot, but -- T. Michael Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

RE: [Flashcoders] How to change reference?

2006-07-27 Thread Mike
It's a hack, but you can do: as.func1.apply(_root); Might be better to change func1 so that it takes a MovieClip as a parameter. Then you could just do: as.func1(_root); (Although that's still a bit of a hack.) -- T. Michael Keesey -Original Message- From: [EMAIL PROTECTED] [ma

RE: [Flashcoders] AS3 scripting, first try - some Q's

2006-07-27 Thread Mike Mountain
Anyone got an answer to the second part: what's the simple AS3 scripting way (I know the class way) of doing myObj.onEnterFrame=function(){ this.x+=1 //Etc. } Cheers Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription optio

RE: [Flashcoders] AS3 scripting, first try - some Q's

2006-07-27 Thread Mike Mountain
for(var i=0; i -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Mike Mountain > Sent: 27 July 2006 17:17 > To: Flashcoders mailing list > Subject: RE: [Flashcoders] AS3 scripting, first try - some Q's > > > >

RE: [Flashcoders] AS3 scripting, first try - some Q's

2006-07-27 Thread Mike Mountain
> > function moveme(event:Event):void{ > > > You aren't passing in an event there... so perhaps that is > causing the vomit? The event gets passed auotmatically, it traces out fine > > On 7/27/06, Supriya <[EMAIL PROTECTED]> wrote: > > > > its not an AS3 problem, its a small problem in your

[Flashcoders] AS3 scripting, first try - some Q's

2006-07-27 Thread Mike Mountain
OK having a dabble in AS3 for the first time and I ported a simple particle script over to the timeline: [as] import flash.events.Event; var numBots:int = 50; var balls:Array=new Array(); // for(var i=0; i<=numBots; i++){ var bl:Ball=new Ball(); var tmpBall=addChild(bl); tm

RE: [Flashcoders] pass variables between classes in AS3

2006-07-27 Thread Mike
Depends on the structure, but, in the end, it sounds like it will boil down to having some static method for the the document class to find the movieclip, or the movieclip to find the document class. The simplest variant of this approach is the Singleton pattern. Is there only one instance of your

RE: [Flashcoders] Array Empowerment

2006-07-26 Thread Mike
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of js > Sent: Wednesday, July 26, 2006 7:01 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Array Empowerment > > I was fairly surprised to see that if(this.length == 0) is considered sloppy

RE: [Flashcoders] Array Empowerment

2006-07-26 Thread Mike
> > - "nitems" looks like "number of items" (i.e., "length"); why not > > "numSetItems" or "countSetItem"? > > Yeah, I didn't think it was very descriptive either, but it returns the > number of non null/undefined items in the array (which, at the moment, I > don't see as very useful, hehe). Perha

Re: [Flashcoders] net connection debugger not working in F8

2006-07-26 Thread Mike Boutin
Ive had this problem using the f8 remoting files. It seems to fix itself for me by restarting flash... Bbt Lists wrote: Has anyone had this issue, or a way around it? I had searched google, and found references to using the mx2004 files to replace the F8 ones, but i do not have access to thos

RE: [Flashcoders] Array Empowerment

2006-07-26 Thread Mike Mountain
Doh, scrolled right past it, nice work. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of janosch > Sent: 26 July 2006 11:04 > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Array Empowerment > > uniq is the appropriate function > > Ja

RE: [Flashcoders] Array Empowerment

2006-07-26 Thread Mike Mountain
Yup good to see, an optimised "remove duplicate items" would be good, or have I missed it? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Hans Wichman > Sent: 26 July 2006 10:41 > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Array E

RE: [Flashcoders] Array Empowerment

2006-07-25 Thread Mike
Question totally unrelated to implementation and optimization: Why do the function names have underscores when "camel-humped" names are the customary syntax in ActionScript (and Java, and Javascript...)? Some of the names could be clearer: - "nitems" looks like "number of items" (i.e., "length");

RE: [Flashcoders] Attention Recursion & Speed Experts

2006-07-25 Thread Mike
Why have the step with the semicolon? You can just do this: var foo:Array = ["a", "b", "c", ["d", "e", ["d", "e", ["d", "e", ["d", "e", "f", ["g", ["h"]], [[], "i"], "j"]; var fooFlat:Array = foo.toString().split(","); Potential problems with this approach: - It does not preserve the type of

Re: [Flashcoders] XML access

2006-07-24 Thread Mike Boutin
r/mx2004/pg/medialab.jpg now the second..when i try to use this : newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue; to catch this: http://www.kirupa.com/developer/mx2004/pg/kresge.jpg http://www.kirupa.com/developer/mx2004/pg/medialab.jpg On 7/24/06, Mike

Re: [Flashcoders] Form Help Needed, Please - STILL NEED HELP

2006-07-24 Thread Mike Boutin
You could try using loadVars and return a status in xml rather than loadVariablesNum... var myVars:LoadVars = new LoadVars; var xml_results:XML = new XML(); xml_results.ignoreWhite = true; xml_results.onLoad = function(success:Boolean){ if (success){ } else { } } myVars.sendAndLoad("yourfile.a

Re: [Flashcoders] XML access

2006-07-24 Thread Mike Boutin
My not use childNodes? mainMenu.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; mainMenu.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue; Jose Maria Barros wrote: Hi, i have the xml: http://www.kirupa.com/developer/mx2004/pg/kresge.jpg http://www.

Re: [Flashcoders] Radiobutton groupName issue *URGENT*

2006-07-20 Thread Mike Boutin
Thanks for all the posts. Yes this is what i ended up doing, i just figured there might be a way around it.. thanks again! Mike eric dolecki wrote: yup - seems like a scoping issue... if all the radiobutton mcw were nested in a larger, single mc, they could all register with the radiobutton

RE: [Flashcoders] HTML Parser with Flash

2006-07-19 Thread Mike
XHTML or HTML 4.0? If the former, you can just use the XML object. If the latter ... have fun -- T. Michael Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sara Czyzewicz Sent: Wednesday, July 19, 2006 1:46 PM To: flashcoders@chattyfig.figleaf.

RE: [Flashcoders] Difference between null and undefined?

2006-07-19 Thread Mike
usual case you do not check for the pure value, but for the value, saved in a variable: a = "foo"; trace(!a); // false Janosch Mike schrieb: >That's what I thought, too, but when I did the test, !"foo" evaluated as >true. > >trace(!"fo

[Flashcoders] Radiobutton groupName issue *URGENT*

2006-07-19 Thread Mike Boutin
onfigGroup"}); mc._y = i * 20; trace("Group Name: "+rb.groupName); } Mike Boutin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/fla

RE: [Flashcoders] Difference between null and undefined?

2006-07-19 Thread Mike
That's what I thought, too, but when I did the test, !"foo" evaluated as true. trace(!"foo"); /// Outputs "true". -- T. Michael Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of janosch Sent: Wednesday, July 19, 2006 9:39 AM To: Flashcoders mailing l

RE: [Flashcoders] Difference between null and undefined?

2006-07-19 Thread Mike
n. trace('"foo".length'); } ... should say ... if (!"foo".length) { // This will never run. trace('"foo".length'); } -- T. Michael Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mi

RE: [Flashcoders] Difference between null and undefined?

2006-07-19 Thread Mike
It's useful in traces. -- T. Michael Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rifled Cloaca Sent: Wednesday, July 19, 2006 9:34 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Difference between null and undefined? This is particu

RE: [Flashcoders] Difference between null and undefined?

2006-07-19 Thread Mike
You can actually just use (!var) in most cases. if (!undefined) { // This will always run. trace(undefined); } if (!null) { // This will always run. trace(null); } if (!false) { // This will always run. trace(false); } if (!0) { // This will

[Flashcoders] Flash videos streaming from RealServer

2006-07-18 Thread Mike Nowak
er things. Yet, when I test locally, everything works. Is it RealServer? Is it a cross-domain issue (and if it is, why's the file playing to begin with and why do the flvs work)? I'm totally at a loss at trouble shooting this. -mike __

Re: [Flashcoders] ActionScript Application Framework

2006-07-18 Thread Mike Britton
We definitely can do this, but it may amount to reinventing the wheel. Do you suggest this in lieu of Cairngorm and ARP? Are there things about these frameworks that make them undesirable? Mike ___ Flashcoders@chattyfig.figleaf.com To change your

Re: [Flashcoders] AMFPHP: CrossDomain

2006-07-17 Thread Mike Britton
k out one of the PHP proxy classes. Mike ___ 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

Re: [Flashcoders] How to embed metadata in SWF files?

2006-07-16 Thread Mike Britton
ers. http://www.osflash.org/localconnection hth, Mike ___ 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 Author

Re: [Flashcoders] How to embed metadata in SWF files?

2006-07-15 Thread Mike Britton
A couple questions for you Jeff: 1. What version of Flash player are you targeting? 2. How are you generating the swfs? Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com

Re: [Flashcoders] Flash SQL

2006-07-14 Thread mike cann
this doesnt sound like a good idea as anyone can download your .swf and decompile it then change that SELECT * statement to a DROP statement with ease. On 12/07/06, Jose Maria Barros <[EMAIL PROTECTED]> wrote: Now im working on a project that involves SQL Server, ASP , XML and flash..and i thin

RE: [Flashcoders] conflicts with the name of another class

2006-07-14 Thread Mike
I find this happens when two classes import each other. Just compile again and the error goes away. Weird little bug that will hopefully go away in Flash 9. (I'm assuming you don't actually have two classes both named 'ConnectDots'.) -- T. Michael Keesey -Original Message- From: [EMAIL PR

RE: [Flashcoders] Abstract classes in AS3?

2006-07-12 Thread Mike
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nicolas Cannasse Sent: Wednesday, July 12, 2006 1:16 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Abstract classes in AS3? > > Mike Keesey wrote: > > I don't really care w

RE: [Flashcoders] Php Host (Full Control)

2006-07-12 Thread Mike
I'm gonna jump on this thread with a more specific question. One person mentioned www.hostbrigade.com, which offers, among other things: # Full root access # Install anything you want Any recommendations for other hosts like this? -- Mike K

Re: [Flashcoders] IIS vs Apache: transferring of vars from swf to PHPproblem?

2006-07-12 Thread Mike Britton
Bernard is right. Take a look at these resources before you go live with your application: http://del.icio.us/search/?all=PHP+security Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http

Re: [Flashcoders] Php Host

2006-07-12 Thread Mike Britton
I use FutureQuest (http://www.futurequest.net/) and love their service. I've never had a problem for over four years. They have PHP, MySQL and Ruby; shared and dedicated hosting; I can't say enough good things about them quite honestly.

RE: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Mike
I don't really care whether they allow private constructors or not, as long as they provide some way of accomplishing the same thing. Specifically, I want to be able to: 1) Limit the number of instances of certain classes (singletons, enumerations). 2) Have methods which are not attached to specifi

RE: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Mike
Yeah, but what if you're doing an enumeration class, like so: class TransitionState { private function TransitionState() { } public static var NOT_PLAYED_IN:TransitionState = new TransitionState(); public static var PLAYING_IN:TransitionState = new TransitionState()

<    1   2   3   4   5   6   7   8   9   10   >