Re: [flexcoders] Function pointers?

2007-03-11 Thread Benjamin Schwehn
I'd like at some point, after the button is clicked and the functions performed, that a certain callback function be performed. Something like a function pointer you can pass functions as arguments or assign to properties just as you would with any other type. eg. private function

Re: [flexcoders] Re: Function pointers?

2007-03-11 Thread Benjamin Schwehn
..to the object class. Further, at the point where the callback object should fire, I've added this code: if( callback != null ) callback( 3 ); do you ever get here? In case you don't know: you can set breakpoints when using FlexBuilder. There trace(string) function is also handy for

Re: [flexcoders] Re: Function pointers?

2007-03-11 Thread Benjamin Schwehn
Alex wrote: Thanks Ben, jumping in head first with tons of heavy programming experience, but zero Flash/AS/Flex experience. btw, i've done the same a few months ago and found the learing curve to be very smooth (coming from a c++/c# background -- and returning there now :)). AS3 is close

Re: [flexcoders] n00b question on dynamic generation of UI components

2007-03-10 Thread Benjamin Schwehn
systemsforge wrote: Just wondering, is it possible to completely programmatically generate all interface elements at runtime in Flex (i.e. do you HAVE to have any compile time MXML or can you dynamically generate your entire UI on the fly using AS if you so wish). You sure can, matter of fact

[flexcoders] [OT] swf 9 specification

2007-03-03 Thread Benjamin Schwehn
Hello all, sorry for the slightly off topic post. Has Adobe made any Announcements yet when to expect an updated swf file format specifaction for flash 9? http://www.adobe.com/licensing/developer/fileformat/faq/ just says The most recent version of the specification covers version 8 of the

Re: [flexcoders] Removing Slider Thumb

2007-01-28 Thread Benjamin Schwehn
Daniel Freiman wrote: Does anyone know how to remove a single thumb from a slider without losing the values of the other thumbs? Looking at the source code for the Slider component (the 2.0 version, not 2.01) (Slider.as) I'd say you'd have to implement your own Slider Class. Whenever you

Re: [flexcoders] playing two video simultaneously, seeking too slow especially when playing from dvd

2007-01-23 Thread Benjamin Schwehn
Tom Chiverton wrote: On Monday 22 January 2007 17:43, Benjamin Schwehn wrote: The two FLV typically have sizes between 20 and 200MB each. One is encoded with an Flash 7 Codec, the other with the newer Flash 8 On2 VP6 Codec. (seeking is slow with both codecs) Would it be possible to just

Re: [flexcoders] playing two video simultaneously, seeking too slow especially when playing from dvd

2007-01-23 Thread Benjamin Schwehn
Abdul Qabiz wrote: Hi, 1. Is it possible to force the flash player to just load both videos into main memory (or PageFile) at start up? You can set the buffer-time to a large number, Thanks Abdul, I entirely overlooked this property! Interestingly when setting this property to a very

[flexcoders] playing two video simultaneously, seeking too slow especially when playing from dvd

2007-01-22 Thread Benjamin Schwehn
Hello all, Long post in a nutshell: I'm looking for a way to speed up seeking time when playing FLVs. Long post: I'm currently working on a project that displays two flv-files at the same time (playback is synchronized). Performance when seeking forward is just about acceptable (though not