post #1 of 1
Thread Starter 
I am using a netstream object to play a an flv video. I have a toggle button to resize the video to full screen which works fine. I want the video to return to original size once it finishes playing automatically. I used an onEnterFrame function and had it delete itself, but then it only runs once, for the first video. Any subsequent videos do not resize automatically. How to I get the playback status of a NetStream video?

Nevermind, I got it.

stream_ns.onStatus = function(info){
trace(info.code);
if(info.code == "NetStream.Play.Stop"){
//my action
}
}
Wolfdale
(13 items)
 
  
CPUMotherboardGraphicsRAM
E5200 @ 3.15 GHz ASRock P43TWINS1600 Radeon HD4670 4GB Super Talent 
Hard DriveOptical DriveOSMonitor
1TB Caviar Black, Caviar 250GB NEC Windows 7 x64, Vista 32 20" 
KeyboardPowerCaseMouse
Apple, yes, Apple. Antec Smartpower 500 Antec Solo Logitech MX700 
  hide details  
Reply
Wolfdale
(13 items)
 
  
CPUMotherboardGraphicsRAM
E5200 @ 3.15 GHz ASRock P43TWINS1600 Radeon HD4670 4GB Super Talent 
Hard DriveOptical DriveOSMonitor
1TB Caviar Black, Caviar 250GB NEC Windows 7 x64, Vista 32 20" 
KeyboardPowerCaseMouse
Apple, yes, Apple. Antec Smartpower 500 Antec Solo Logitech MX700 
  hide details  
Reply