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
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
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 -
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
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
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
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
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
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
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
___
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,
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
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
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
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
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
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
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
18 matches
Mail list logo