Question
Video object _width property
Hi all,
I have a class which has a private property 'screen' containing a
reference to a Video object like:
private var screen:Video;
A few lines below there's a public method returning the width of the
video object:
public function getWidth():Number{
return this.screen._width;
}
Now, when I compile I get the following error:
**Error**
D:\aloft\FlashLibrary\current\nl\aloft\media\phpflv\ScreenView.as: Line
35: There is no property with the name '_width'.
return this.screen._width;
However, when i run the code and call the method I get the width of the
object without any problems.
If I have the method return any of the properties without the underscore
(like: width, smoothing, deblocking etc.) I get no compile error.
What am I missing here?
Thanks in advance,
Manno
--
----------
Manno Bult
manno@xs4all.nl