Re: [Flashcoders] Strange RegExp behaviour

2010-03-18 Thread Anthony Pace
While I really don't understand why you would want to do things this way, but... I tested this code below, with several clips on the stage: sq_1, sq_12, sq_122, sq_1222a, sq_1212_1212, sq_6dad_12, sq_6d_6d it worked fine and outputed the obvious results: sq_1 sq_12 sq_122 sq_1212_1212 sq_6dad_1

RE: [Flashcoders] bubbling listening

2010-03-18 Thread Mattheis, Erik (MIN - WSW)
Ah, I was trying to do it without public methods or variables, just passing things around through custom events. _ _ _ Erik Mattheis Senior Web Developer Minneapolis T  952 346 6610 C 612 377 2272 Weber Shandwick Advocacy starts here. PRWeek Global Agency Report Card 2009 - Gold Medal Winner Th

RE: [Flashcoders] bubbling listening

2010-03-18 Thread Merrill, Jason
The view would have public methods the controller calls. The views retain their encapsulation/loose coupling as does the model. The controller however, is tied into calling specific methods on views - so it's tightly coupled. There are patterns to break this down further (i.e. Cairngorm uses

RE: [Flashcoders] bubbling listening

2010-03-18 Thread Mattheis, Erik (MIN - WSW)
I've been thinking about the below message from Jason and tried rearranging a simple project into a MVC for a while this afternoon, but couldn't figure out how to do it without breaking encapsulation. I think I'm not getting the MVC advantage because I don't understand one of two things - or ma

Re: [Flashcoders] Bezier curve arrows

2010-03-18 Thread Ivan Dembicki
Hello Paul, > [...] how can I get the right angle to point it to? very easy: http://code.google.com/p/bezier/source/browse/trunk/bezier/src/flash/geom/Bezier.as getTangentAngle method. time parameter is 0 for start and 1 for end of bezier. good luck! -- iv http://www.bezier.ru http://bezier.

[Flashcoders] Strange RegExp behaviour

2010-03-18 Thread Jiri
Hello, i would like some help, because I am confused. If have a Movieclip that holds several sprites some of them have instance names like so frame_ where n is a number. I then loop through every child of the MovieClip and test the instance name using regExp. var childs:int = clip.numChild

Re: [Flashcoders] design patterns by use case

2010-03-18 Thread Anthony Pace
Hi Glen, Thanks for the suggestion. Coffee shops are cool, and I love Pizza. Thanks, Anthony On 3/18/2010 1:33 PM, Glen Pike wrote: Anthony Pace wrote: Apparently, according to what I have been reading, I have lately been designing everything using a command pattern / composition mix, as it

Re: [Flashcoders] design patterns by use case

2010-03-18 Thread Glen Pike
Anthony Pace wrote: Apparently, according to what I have been reading, I have lately been designing everything using a command pattern / composition mix, as it seems to come most naturally, and deviating where necessary, without knowing the names of any of the patterns I stumble upon; thus, you

Re: [Flashcoders] design patterns by use case

2010-03-18 Thread Anthony Pace
Apparently, according to what I have been reading, I have lately been designing everything using a command pattern / composition mix, as it seems to come most naturally, and deviating where necessary, without knowing the names of any of the patterns I stumble upon; thus, you can obviously tell

Re: [Flashcoders] Bezier curve arrows

2010-03-18 Thread Anthony Pace
Oops. Just noticed how atrocious the writing was. On 3/18/2010 11:25 AM, Anthony Pace wrote: Hi Pual, I just noticed that I had already written something, but it didn't get sent to the list before the question got answered. Oh well...anyways: To find the angle, you have to find the slope o

Re: [Flashcoders] Calculator

2010-03-18 Thread Karl DeSaulniers
Me either, I was just wanting a quick response and got all this. Thank you though Ashim and everyone else and Steve. I am sorry this took up so much of everyones time. I understand now why I was getting the results I was getting. Thank you, Karl This thread can end here. (you can sigh the sigh o

Re: [Flashcoders] Bezier curve arrows

2010-03-18 Thread Anthony Pace
Hi Pual, I just noticed that I had already written something, but it didn't get sent to the list before the question got answered. Oh well...anyways: To find the angle, you have to find the slope of the tangent at that point of the curve; however, this is really easy because with bezier cur

[Flashcoders] FlashAndTheCity Workshops: Standard vs Full?

2010-03-18 Thread Matt S.
Sorry if this is an annoying question to ask this list, but I asked the Teddy Bear and he just shrugged and went back to pulling cotton from the hole in his seam. I'm guessing there are people on this list hitting FATC, does anyone know why there are two prices for the Workshops, and what the "sta

RE: [Flashcoders] bubbling listening

2010-03-18 Thread Merrill, Jason
Well, that's OK and you don't even have to get fancy yet - just write a class that has references to all the display objects, and listens to your custom events. It also has the handlers in it to respond to the events. This in effect, is a "controller" class. Jason Merrill Bank of America Gl

RE: [Flashcoders] bubbling listening

2010-03-18 Thread Mendelsohn, Michael
Yes, I suspected I've been touching on MVC. I'm not that sophisticated in my design pattern usage yet. I will get there though. Thanks for the follow up responses Jason. I really appreciate the feedback. - Michael M. >> In my project, this EventDispatcher managing all the Sprites. Is the

RE: [Flashcoders] bubbling listening

2010-03-18 Thread Merrill, Jason
>> In my project, this EventDispatcher managing all the Sprites. Is there a better way of managing all the displayObjects from one class, other than having instructions come from an EventDispatcher? See the example I posted - you just have to extend on it. If you choose MVC as a pattern like I l

RE: [Flashcoders] bubbling listening

2010-03-18 Thread Mendelsohn, Michael
Thanks for the responses everyone! > Yes, and what I am saying is, that architecture is wrong. You don't create > instances of EventDispatcher and then put Display object inside of them. OK, it seems I've violated a golden rule about bubbling. My EventDispatcher obviously isn't on the display

[Flashcoders] Test Movie vs. Publish

2010-03-18 Thread David Benman
Is there any difference between Test Movie and Publish in terms of the swf compilation? It seems Publish compiles a tad faster on the Mac though I've had issues before where a published swf had issues and the test movie version didn't. David Benman Interactive Developer d...@dbenman.com htt

Re: [Flashcoders] Weird Embeded Font Issue

2010-03-18 Thread David Benman
Thanks. I think something is messed up with that specific font, but I'll try what you suggested too. On Mar 13, 2010, at 11:23 AM, Meinte van't Kruis wrote: odd, never seen anything like it. I always refrain from using static text fields though. Mixing dynamic and static fields which share

RE: [Flashcoders] Recurisve Functions

2010-03-18 Thread Lehr, Theodore
thanks! From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Andrews [p...@ipauland.com] Sent: Wednesday, March 17, 2010 3:10 AM To: Flash Coders List Subject: Re: [Flashcoders] Recurisve Functions

Re: [Flashcoders] Calculator

2010-03-18 Thread Ashim D'Silva
I really can't believe this reply chain has lasted this long. 450 is 15% of 3000. 0.5% of 3000 is 15. % simply means out of 100. 15/100 * 3000 = 450; 0.5/100 * 3000 = 15; The equations through most of these emails have been right. Nobody seems to actually be reading them. Jonathan said: sum/to

Re: [Flashcoders] Calculator

2010-03-18 Thread dr.ache
sarcasm doesn't make it better. Am 18.03.2010 04:12, schrieb Steven Sacks: I sincerely apologize for my sarcastic remark regarding the current state of the public educational system in America, and for any emotional trauma it may have caused to those whose proficiency at arithmetic is equivale