I have a SWF that plays FLV files, using the action script below,
I am attempting to find a way to allow the SWF to also play a regular SWF file as well as an FLV file, without breaking the current code.
Any thoughts suggestions, ideas, would be greatly appreciated.
Code:
stop();
_root.player.autoPlay = true;
var curPlayURL:Object = new Object();
var PlayURLWatcher:Function = function (prop, oldVal, newVal, userData) {
trace("set "+newVal);
_root.player.setMedia(newVal);
return newVal;
};
curPlayURL.watch("cururl", PlayURLWatcher, 0);
player.addEventListener("playheadChange", controlListen);