[Flashcoders] Erasing areas with the drawing API?

2007-02-16 Thread David Ham
DAH -- David Ham http://davidham.com :: [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you

Re: [Flashcoders] Erasing areas with the drawing API?

2007-02-16 Thread David Ham
Specifically in the drawGear() example. OK DAH On Feb 16, 2007, at 4:54 PM, David Ham wrote: Does anyone know how to erase part of an area that was created with the drawing API? I need to be able to draw a polygon, and then draw another polygon inside it and punch it out. For example, I need

Re: [Flashcoders] Erasing areas with the drawing API?

2007-02-16 Thread David Ham
://www.adobe.com/devnet/flash/articles/adv_draw_methods.html Specifically in the drawGear() example. OK DAH On Feb 16, 2007, at 4:54 PM, David Ham wrote: Does anyone know how to erase part of an area that was created with the drawing API? I need to be able to draw a polygon, and then draw

[Flashcoders] UIObject without MM Components

2007-02-09 Thread David Ham
Hi, I am working on an app that has many view classes that extend mx.core.UIObject. Until recently I was using Macromedia components as placeholders, but the production app will use a different library, the FlashLoaded BJC components, which are incompatible with the Macromedia

Re: [Flashcoders] UIObject without MM Components

2007-02-09 Thread David Ham
Bryan, You're awesome! In 100 years that would not have occurred to me. What a bizarre program Flash is! Thanks very much for the tip, OK DAH On Feb 9, 2007, at 6:25 PM, Bryan Thompson wrote: Try adding the UIObject MovieClip to your library. You'll find it (Win XP, Flash8) in Program

Re: [Flashcoders] class confusion

2007-02-04 Thread David Ham
1. Load/init ordering: When do classes load, and when do static initializers execute? If a class has a static property that is assigned outside a constructor, is this initialized when the class loads (presumably frame 1?) or the first time it is accessed, or what? If class A refers to a static

Re: [Flashcoders] class confusion

2007-02-04 Thread David Ham
Yeah I'm reading Essential Actionscript (Moock) right now, and he does somewhat reduce confusion. Part of the problem is that older methods that have sort of been practically deprecated by AS 2 are still given out by others (#initclip and registerObject() ) are confusing as they appear completely

Re: [Flashcoders] hooking up GUI in pure OO code...

2007-02-04 Thread David Ham
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 -- David Ham http://anthropomorphy.org :: +1 630 297 1273 http

Re: [Flashcoders] Re: more bitmap data questions...

2007-02-03 Thread David Ham
I don't think so. I think you'd just have to removeMovieClip() to take it off of one parent and then do a new attachMovie() on the new parent. OK DAH On Feb 3, 2007, at 1:58 PM, [p e r c e p t i c o n] wrote: thanks...while i'm at it...does anyone know of a way to change a movieclips

[Flashcoders] Flash diagnostic tools

2007-02-01 Thread David Ham
I am working on a Flash app and it is starting to exhibit some performance problems. Is there any tool or technique people use to analyze Flash apps as they are running? Aside from the beloved trace () of course? Thanks for any advice you can offer, OK DAH

Re: [Flashcoders] Q:Hittest and transparent PNG's

2007-02-01 Thread David Ham
by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- David Ham http://anthropomorphy.org :: +1 630 297 1273 http://davidham.com :: [EMAIL PROTECTED

Re: [Flashcoders] full screen window

2007-01-30 Thread David Ham
The best user experience would be two windows: have a launch page with a link that would open a new JavaScript child window, and tell the user that the course is going to open in fullscreen. Then you can control the size and properties of the window as much as you like, and the user

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread David Ham
Been a while since I've posted here, a few years I think. I miss the geek tangents / debates. =) Good man! Seriously, the world affords precious few opportunities to truly geek out on design patterns and such. Internet mailing lists excepted of course. I have the Head First Design

[Flashcoders] Flair Pattern?

2007-01-29 Thread David Ham
Hey FlashCoders: In the app I am building, I have a need to add and remove functionality to an object at runtime--specifically, functionality that will snap the object to a border. I have puzzled on this for awhile, and the method that seems most applicable to me is the Flair pattern

Re: [Flashcoders] Flair Pattern?

2007-01-29 Thread David Ham
I've never heard of an OOP design pattern called Flair. From the class you've pasted, it looks like a novice attempt at implementating (sic) a design pattern known as Decorator. Perhaps they were trying to be funny with a reference to the movie Office Space where buttons decorating a

Re: [Flashcoders] Flair Pattern?

2007-01-29 Thread David Ham
For my part, I have the Head First book, and the Decorator section did not answer the particular questions I had. Nor did the other sources I read. Whether something is a true design pattern or not is kind of beside the point, for me; what I want to know is if a particular approach is

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-29 Thread David Ham
Anyhow I tend not to use decorators (matter of personal taste). I prefer to not Frankenstein an object at runtime and rather use mixins (composition + interfaces). Ah, thank you, now we are getting somewhere! Tell me about mixins. I have used EventDispatcher before, but I am unfamiliar

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-29 Thread David Ham
, hope that gets the gears turning. =) DISCLAIMER: Didn't spell check or test anything in the compiler so maybe some typos. =) -erik -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Monday, January 29, 2007 7:12 PM To: Flashcoders

[Flashcoders] movieclip size change onRotate?

2007-01-17 Thread David Ham
I'm having a thorny Flash problem and I was wondering if you've seen anything like it before. In the tool I am building, you can place an object on the stage and do a free transform kind of operation on it; you can scale X, scale Y, and rotate it around its center. So far, I can: * rotate * scale

[Flashcoders] FLVPlayback redraw problems with Firefox and opacity filter--help!

2007-01-08 Thread David Ham
Hi, I have an FLVPlayback component playing a progressive download FLV video. The component is on a page whose background image is at a 10% opacity using a CSS filter. The stylesheet code is like this: #background img { filter: alpha(opacity=10); } In Firefox, this is causing some weird

[Flashcoders] Using components in MovieClips

2006-12-19 Thread David Ham
Hi, I was having trouble with some components yesterday. I am writing a NavigatonView class that extends UIObject. I linked it to a symbol in the library that had four Button components in it. The symbol had no code in it; the code for the class was entirely in an external .as file. Here is the

[Flashcoders] Re: Using components in MovieClips

2006-12-19 Thread David Ham
at Ultrashock.com and is called Introduction to the V2 Component Architecture. http://www.ultrashock.com/ff.htm?http://www.ultrashock.com/tutorials/flashmx 2004/v2a-01.php On 12/19/06 10:22 AM, David Ham [EMAIL PROTECTED] wrote: Hi, I was having trouble with some components yesterday. I am

Re: [Flashcoders] flash applicatin and database

2006-12-09 Thread David Ham
Have you looked at OpenAMF? http://openamf.com I used it on a project a couple of years ago, and it works great. It's free, and our developers evaluated it and found it to be functionally indistinguishable from Flash Remoting. OK DAH ___

[Flashcoders] UIObject/UIComponent: Getting started

2006-12-08 Thread David Ham
I am working on a Flash app that will be set up in an MVC architecture. It will have draggable objects, a menu, a property inspector, and other UI pieces. In the past I have built my Views with composition; that is, by including the MovieClip as a property instead of subclassing it. But I have