Home > Uncategorized > AS3 Custom Video Controller Update

AS3 Custom Video Controller Update

August 3rd, 2007 Randy

The video controller is done (well … in beta stage) and using the FlexComponent kit it was easy to bring it into Flex where it indeed acted as a “first class citizen”. Events, traces, setters …. the works. One problem was that when I selected the VideoController movieclip in the library and then selected the “Make Flex Component” command it changed the base class to “mx.flash.UIMovieClip” which caused it to break since the videoController needs to be bound to my custom VideoController class. I ended up putting the VideoController movieclip into a “wrapper” movieclip. This worked fine, but required an extra level to dig into it from within Flex. Example wrapper.video.clear();

AS3 VideoController

Categories: Uncategorized Tags:
  1. August 16th, 2007 at 14:42 | #1

    Would it have worked if you subclassed UIMovieClip and put your VideoController logic in there? I know the kit allows for that (supply your own class).

  2. August 16th, 2007 at 21:13 | #2

    Stefan, you make a good point!

Comments are closed.