Sorry , please ignore, I was typing the instance as a CaptionManager in the
parent class and not a FLVPlaybackCaptioning component.
MaTT
On 8/13/07, Matt Muller <[EMAIL PROTECTED]> wrote:
>
> Hi, I'm trying to instantiate a new FLVPlaybackCaptioning component with
> actionscript.
> This is being called from another class like so...
>
> captionMngr = CaptionManager.getInstance ();
>
> I get this error when compiling...
>
> 1046: Type was not found or was not a compile-time constant:
> FLVPlaybackCaptioning.
>
> package com.foo.utils {
>
> import fl.video.CaptionChangeEvent ;
> import fl.video.FLVPlaybackCaptioning;
> import fl.video.FLVPlayback;
> import flash.display.Sprite;
>
> public class CaptionManager extends Sprite{
>
> public static var capCom:FLVPlaybackCaptioning;
>
> public function CaptionManager(enforcer:SingletonEnforcer)
> {
>
> }
>
> public static function getInstance():FLVPlaybackCaptioning
> {
> if (CaptionManager.capCom == null)
> {
> CaptionManager.capCom = new FLVPlaybackCaptioning();
> }
> return CaptionManager.capCom;
> }
> }
> }
>
> class SingletonEnforcer{}
>
> Thanks,
>
> MaTT
>
_______________________________________________
[email protected]
To change your subscription options or search 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