Question
Video class props not recognised
I am building a video player using AS2 and publishing for V7.
I have a video object (which is strong typed as Video in my
classes) on the stage and am using NetStream and NetConnection to
play an external FLV through it. I have also built a progress bar
and in order to make this as reusable as possible I want it to set
itself to the width of the video object and this is where my
problem arises.
If I call videoObj.width it returns 0 and as I need the video object width not the encoded FLV width this would not do anyway.
If I call videoObj._width I get back the correct width but I also get the error message "There is no property with the name '_width'. This is also the case with _x, _y, _alpha etc. I can get and set the properties but I always get this error despite them being listed as properties of the Video class.
As the error does not seem to impact the way things actually work I could just ignore it but I would like to understand whats going on here so... any thoughts?
Cheers all
If I call videoObj.width it returns 0 and as I need the video object width not the encoded FLV width this would not do anyway.
If I call videoObj._width I get back the correct width but I also get the error message "There is no property with the name '_width'. This is also the case with _x, _y, _alpha etc. I can get and set the properties but I always get this error despite them being listed as properties of the Video class.
As the error does not seem to impact the way things actually work I could just ignore it but I would like to understand whats going on here so... any thoughts?
Cheers all
