P.S. If it's any easier to access an mx_internal variable than a private variable (when sub-classing/extending a control) that'll work too!
Cheers Bill --- In [email protected], "beecee1977" <[EMAIL PROTECTED]> wrote: > > Hi, > > I would normally spend more time trying to work this out first, but > I'm under a bit of pressure... There appears to be a bug in the > VideoDisplay code. > > vid.close() => within the videoDisplay a private variable called > closeCalled is set to true. > vid.play() => the closeCalled variable is set to be false in the play > function. > > Fine, but: > vid.close() => closeCalled=true > vid.load() => loadVideo() > vid.play() => if (closeCalled==true) {loadVideo()} > > So if you load in the video this variable is not reset to false. This > means that the video gets loaded twice; once when the video is loaded > and once when the video is played... > > Anyway, all this is besides the point... I just want to know how to > get around this. I've tried this: > > package libraries.utility > { > import mx.controls.VideoDisplay; > > public class NewVideoDisplay extends VideoDisplay > { > //private var closeCalled:Boolean = false; > > > public function NewVideoDisplay() > { > super(); > } > > override public function load():void > { > super.load(); > closeCalled = false; > } > > } > } > > > but naturally I cannot access the private variable closeCalled. How > do I go about doing this? > > Thanks in advance > Bill >

