开发者

Removing VideoDisplay in flex/flash

I have a videoDisplay object in a popup. When I remove the popup the video continues to play. How do I remove the videoDisplay object from memory? I have tried setting the var开发者_开发技巧iable to null but with no luck. I can just call the stop() function and forget about it but am wondering whether this won't come back and bite me.

Any help much appreciated.


Stopping would be enough. Remove any event listeners attached to it to make sure that it is garbage collected. If the control is is streaming from the Flash Media Server, call the close() method after calling the stop(). The close method forces the close of an input stream and connection to Flash Media Server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜