Re: [Flashcoders] BitmapData subtract from every pixel

2007-08-21 Thread Brian Williams
You can also use the subtract blendmode. BitmapData.draw supports using a blendmode, and subtract does exactly what you want. --Brian On 8/21/07, Bojil Vassilev [EMAIL PROTECTED] wrote: Thank you both for the replies. There is some urgent stuff at work right now, but I'll test more later and

Re: [Flashcoders] NetStream time and seek

2007-08-15 Thread Brian Williams
While what you say is true, it's not really a 'good' reason. Quicktime has been around for far longer than flash, and it allows seeking to any time. Seeking to a non-keyframe is much slower than seeking to a keyframe (since you must decompress the intermediate frames), but it can be done. If

Re: [Flashcoders] mtasc and keep

2007-08-05 Thread Brian Williams
As you have discovered, changing class hierarchy and -keep don't go very well together. Classes need to be initialized in the proper order, or the prototype chain isn't set up correctly. When you use the keep flag, mtasc keeps all existing classes (and preserves their order), and then adds all

Re: [Flashcoders] FLV Streaming causes browser crash when closing a window

2007-06-13 Thread Brian Williams
How are you embedding your flash? I remember reading about a bug fix for swfobject which addressed crashes when unloading flash movies that used rtmp. It may be something that is only an issue in certain versions of browsers/flash players. --Brian On 6/12/07, Johannes Nel [EMAIL PROTECTED]

Re: [Flashcoders] RGB tinting using the colorMatrixFilter()

2007-05-10 Thread Brian Williams
I may be wrong, but I don't think you can do it just with a color matrix, but you could try drawing the solid color you want to tint with, and use the greyscale image with the hardlight blendmode on top. I think that should give you the desired effect. check out

Re: [Flashcoders] Bitmap draw and transparency

2007-05-08 Thread Brian Williams
did you try filling with 0? You're setting the background color to an opaque color, and then drawing the transparent bitmap on top of it. var m_cBitmap = new BitmapData( target_mc._width, target_mc._height, true, 0x0 ); if you don't specify the color, it might be using 0xff00 (black with

Re: [Flashcoders] Help: test EventDispatcher speed please

2007-03-22 Thread Brian Williams
Someone already mentioned what it is - the for in loop vs the straight for loop. for (var i in array) ends up pushing all the keys of the array on the stack, and then popping those off. for (var i =0; i array.length; i++) doesn't. The test attaches 500 listeners to each dispatcher, so when you

Re: [Flashcoders] more _lockroot woes

2007-03-02 Thread Brian Williams
Yes, I've noticed that too. Classes are only loaded once, so if swf A uses class Foo, and then loads swf B into a lockroot, if swf B also has a class Foo, it's going to be using the class defined in swf A (with the wrong root). Note: it's not just the interpretation of _root. class Foo from

Re: [Flashcoders] Is UIEventDispatcher class functioning?

2007-01-06 Thread Brian Williams
Look at mx.events.LowLevelEvents.as The way it works, as soon as you add an eventlistener for one of the low level events, it will replace onPress, onRelease, etc with new methods that dispatch an event. Code that's in your configuration folder is only looked at once when starting flash, so if

Re: [Flashcoders] Complex objects in a DataProvider

2006-11-15 Thread Brian Williams
Each DataGridColumn supports a label function, and a cell renderer. For each row, add the same object multiple times (as many as you have columns), and set the columns up to have different label functions. Or use a custom cellrenderer. --Brian On 11/15/06, Mark Hawley [EMAIL PROTECTED] wrote:

Re: [Flashcoders] movieclip._y = textField._height

2006-09-28 Thread Brian Williams
A trap I often fall into when debugging flash is missing the obvious. Take for example, If I put movieclip._y = 60 , it works fine If I put movieclip._y = textField._height , it doesn't work fine and then trace(textField._height) prints 60, yes. then my question would be - did you

Re: [Flashcoders] Querystring prevents FLV playback

2006-09-26 Thread Brian Williams
If you're using the Flash classes for playback (like the FLVPlayback class), it actually looks at the suffix of the loaded url to determine whether it's an FLV or xml (playlist?). You can hack it to work by loading video1.flv?id=26-09-2006type=.flv I haven't actually dug through the classes to

Re: [Flashcoders] RE: Flash Video : Relationship between data rate andfile size doesn't work ?

2006-09-23 Thread Brian Williams
The bitrate is only a target. If you use single-pass encoding, the codec will attempt to match the bitrate, but if it encounters a segment that uses more bits, it'll hope that it can make it up later. But if the keyframe interval is too low or resolution is too high, it may never be able to,