[Flashcoders] loading xml into an object

2006-09-16 Thread dc
hi - It's a scoping issue. Your XML object is calling the drawMenu function in its own scope and not within the scope of the WireMenu instance. Use the delegate class when assigning your onLoad handler. my understanding is that the Delegate class can only be used where an addEventListener

Re: [Flashcoders] loading xml into an object

2006-09-16 Thread Farid Shahlavi
You can use delegate like this as well: xmlObj = new XML(); xmlObj.onLoad = Delegate.create(this,myOnLoadHandler); Farid - Original Message From: dc [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Saturday, September 16, 2006 3:50:38

Re: [Flashcoders] loading xml into an object

2006-09-16 Thread Andreas R
Just to be clear about Delegate, all it does is create a reference to a function but in a specified scope. AFAIK there is no restriction as to where you can use it. Thus i use it all over the place ;P I'm not sure if that's good practise but by god it's made life easier. - A dc wrote: hi -

Re: [Flashcoders] Xray trace problem

2006-09-16 Thread John Grden
yes, Karina - I too am sad ;( we did alot of great work with the old interface and you certainly influenced the current version since it's largly based on the old one ;) You ROCK! don't be sad, be happy ! jpg On 9/15/06, Karina Steffens [EMAIL PROTECTED] wrote: Now I'm really hurt :~( :P

Re: [Flashcoders] reflection update

2006-09-16 Thread John Grden
Yeah, your class works great and I've never had a problem with it! THanks Hans! On 9/15/06, Hans Wichman [EMAIL PROTECTED] wrote: Hi peeps, in the http://chattyfig.figleaf.com/pipermail/flashcoders/2005-June/140802.html i described a method for class name reflection I used. I noticed a

RE: [Flashcoders] Software Development Position

2006-09-16 Thread Dave Watts
Exactly, and I'm skeptical of anyone who requires a CompSci degree for a Flash position because there isn't a single college degree for Flash programming. ;) Comp Sci isn't about Flash programming, or Java programming, or {insert language flavor of the week} programming. It's not even about

Re: [Flashcoders] Software Development Position

2006-09-16 Thread Ron Wheeler
My explanation of the difference between someone with a CompSci background and one who does not goes as follows: The computer science background gives one a high plateau to build on. This is in contrast to talented people who have been dragged into this world, who may have very high peaks of

[Flashcoders] My First oop AS 2.0 project, any tips or comments?

2006-09-16 Thread Dave Geurts
Ok Im taking the plunge, I just got Colin Mooks Book Essential ActionScript 2.0 Started reading it last night as my first exposure to OOP. I have coded something very simple that display 3 buttons in a menu for a game. If anybody has time to look over my organization and code that would

Re: [Flashcoders] bandwidth detection...

2006-09-16 Thread greg h
badi, Am I correct that you are NOT using the Flash Media Server? (fyi ... bandwidth detection is a feature of FMShttp://www.adobe.com/products/flashmediaserver/productinfo/features/#f-3-1 .) Normally I would suggest your cross posting your question on the FlashCommlist, but weirdly that list

[Flashcoders] Layout algorithms

2006-09-16 Thread Andreas R
Does anyone know of any good tutorials/articles on layout algorithms? I seem to have a hard time finding anything applicable :( In particular i'm interested in spring embedded layouts and rectangle/scaling algorithms (such as Apple's Exposè) - A ___

Re: [Flashcoders] external links from flash on myspace.com

2006-09-16 Thread Josh Santangelo
A workaround I've used is to keep the links to external websites outside of the Flash widget itself. See the embed code on welovewidgets.com for an example. As far as I know, there's no way within Flash to get around it, which is... sort of the point. -josh On Sep 14, 2006, at 6:22p,

Re: [Flashcoders] bandwidth detection...

2006-09-16 Thread badi malik
thanks greg... no, i'm not using FMS. I searched for bandwidth detection before, but came up empty handed...not that there weren't any articles, but none of them seemed quite what i was looking for at the time...i'll look again and see what comes up this time.. regards b - Original

[Flashcoders] extending built-in classes and scope

2006-09-16 Thread dc
hi list - I am trying to add some functions to built in classes. Q1) Using the prototype syntax. Is this an AS1 method, is there a better way to do this with AS2? Q2) this works within my main movie script. however, when i try to use the extended XML object within my own classes, the compiler

Re: [Flashcoders] Software Development Position

2006-09-16 Thread Adam Pasztory
I am in a somewhat unique position to comment on this topic. Over the last 4 years, I have been pursuing a career in Flash programming (mostly full time) and I have also been taking courses toward a 2nd Bachelors degree in Computer Science, which I hope to finish up in the Spring. (My original

[Flashcoders] specifying type of an array contents?

2006-09-16 Thread dc
is there a way to tell flash what types an array contains? eg given this: var btnClipArray:Array; --- later: for (var btn in btnClipArray) { btn.removeMovieClip(); } flash defaults to thiking the array contains only strings, so the movieclip methods throw a compile error. of course, i can

Re: [Flashcoders] bandwidth detection...

2006-09-16 Thread Duncan Reid
Hi Badi, Have a look at the first example on this page. I have not used this personally, but have looked at some of their other files and they are all well done. At the very least it may get you started. http://www.betriebsraum.de/blog/downloads/ good luck, Dunc On 9/16/06, badi malik

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

2006-09-16 Thread Scott Hyndman
for...in loops don't work the same as they do in Java or C#. Take a look at the following code: for (var key in btnClipArray) { btnClipArray[key].removeMovieClip(); } The loop iterates over keys, not values This technique is not limited to arrays and can be used on any object in Flash. Flash

Re: [Flashcoders] bandwidth detection...

2006-09-16 Thread badi malik
Hi Duncan, wow...impressive...thanks alot! b - Original Message From: Duncan Reid [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Saturday, September 16, 2006 7:40:39 PM Subject: Re: [Flashcoders] bandwidth detection... Hi Badi, Have a look at