Changeset 66 for branches/4.2/yt.as
- Timestamp:
- 09/22/08 11:14:49 (5 years ago)
- File:
-
- 1 edited
-
branches/4.2/yt.as (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2/yt.as
r45 r66 29 29 ytPlayer.addEventListener("onError", onPlayerError); 30 30 ytPlayer.setSize(320,240); 31 ytPlayer.unMute(); 31 32 } 32 33 }; … … 76 77 77 78 78 79 79 // Directive forwards 80 80 _as3_to_as2.pauseVideo = function() { ytPlayer.pauseVideo(); }; 81 81 _as3_to_as2.playVideo = function() { ytPlayer.playVideo(); }; 82 _as3_to_as2.stopVideo = function(){ 83 ytPlayer.stopVideo(); 84 clearInterval(byteInterval); 85 }; 82 _as3_to_as2.stopVideo = function(){ ytPlayer.stopVideo(); clearInterval(byteInterval); }; 86 83 _as3_to_as2.loadVideoById = function(id,pos) { ytPlayer.loadVideoById(id,pos); }; 87 _as3_to_as2.setVolume = function(vol) { 88 ytPlayer.unMute(); 89 ytPlayer.setVolume(vol); 90 }; 84 _as3_to_as2.setVolume = function(vol) { ytPlayer.setVolume(vol); }; 91 85 _as3_to_as2.seekTo = function(pos) { ytPlayer.seekTo(pos,true); }; 92 86 _as3_to_as2.setSize = function(wid,hei) { ytPlayer.setSize(wid,hei); }; 93 94 87 95 88 … … 97 90 _as3_to_as2.connect("_AS3_to_AS2"); 98 91 ytPlayerLoaderListener = {}; 99 ytPlayerLoaderListener.onLoadInit = function() { 100 loadInterval = setInterval(loadHandler,200); 101 }; 92 ytPlayerLoaderListener.onLoadInit = function() { loadInterval = setInterval(loadHandler,200); }; 102 93 ytPlayerLoader.addListener(ytPlayerLoaderListener); 103 94 ytPlayerLoader.loadClip(ytLocation,ytPlayer); 95
Note: See TracChangeset
for help on using the changeset viewer.
