Skip to main content
Known Participant
August 18, 2008
Question

onMetaData

  • August 18, 2008
  • 1 reply
  • 341 views
Hello all ,I realy read the help document of actionscript 3 about onMetaData property ,and I 'v e seen the code that use onMetaData for play back function ,but I can't get it . I don't know why should I use onMetaData for playing back function ?
Sincerely yours Mohsena
This topic has been closed for replies.

1 reply

Inspiring
August 19, 2008
One of the reasons is that you need to know stream's parameters - like duration, height, width, etc. stream Parameters are not instantly available - they are available in a few moments after you start the stream. You can know these things only when metadata is loaded and have no way to know before it happens. Without knowing this you cannot manipulate the video properly. So by invoking onMetaData you make Flash wait until those things arrive.