STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228028
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2560 · P5119

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/92348693?noj=FRM92348693-20DC" width="1" height="1"></div>

522386_SnowSnowForLucy_NG_API.swf

This is the info page for
Flash #206357

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
frame 1 { NewgroundsAPI.connectMovie(10421); NewgroundsAPI.setMovieVersion('1'); } frame 1 { stop(); } movieClip 2 { } movieClip 4 { } movieClip 6 { } movieClip 10 { } movieClip 13 { } movieClip 16 { } movieClip 27 { } movieClip 29 { frame 40 { stop(); } } movieClip 39 { } button 40 { on (release) { startMovie(); } } movieClip 41 { frame 1 { function timerHandler() { if (!loadingComplete) { var v4 = _root.getBytesLoaded() / _root.getBytesTotal(); bar._xscale = 100 * v4; if (v4 == 1) { loadingComplete = true; if (AUTO_PLAY) { startMovie(); } else { gotoAndStop('loaded'); } return undefined; } } dt = getTimer() - time; time += dt; frameAccum += dt; var v3 = 0; for (;;) { if (!(frameAccum >= FRAME_TIME && v3 < MAX_FRAME_SKIP)) break; advanceFrame(tankLogo, true, true); advanceFrame(loadingText, false, true); advanceFrame(barGfx, false, true); if (loadingComplete) { advanceFrame(this, false, false); } frameAccum -= FRAME_TIME; v3++; } updateAfterEvent(); } function advanceFrame(clip, recurse, loop) { if (!clip) { return undefined; } clip.stop(); if (clip._currentframe == clip._totalframes) { if (loop) { clip.gotoAndStop(1); } } else { clip.nextFrame(); } if (recurse) { for (childName in clip) { if (typeof clip[childName] == 'movieclip') { advanceFrame(clip[childName], recurse, loop); } } } } function startMovie() { clearInterval(intervalId); _root.play(); } _root.stop(); stop(); var FRAME_TIME = 33.33333333333334; var AUTO_PLAY = false; var MAX_FRAME_SKIP = 5; var loadingComplete; var intervalId; var time; var frameAccum; loadingComplete = false; intervalId = setInterval(this, 'timerHandler', FRAME_TIME / 2); frameAccum = 0; time = getTimer(); timerHandler(); } } movieClip 45 { } movieClip 48 { } movieClip 52 { } movieClip 53 { } movieClip 55 { } button 58 { on (release) { getURL('http://www.newgrounds.com', '_blank'); } } movieClip 61 { } movieClip 65 { } movieClip 69 { } movieClip 70 { } movieClip 73 { } movieClip 77 { } movieClip 80 { } movieClip 81 { } movieClip 83 { } movieClip 84 { } button 86 { on (release) { getURL('http://www.newgrounds.com', '_blank'); } } button 92 { on (release) { NewgroundsAPI.loadNewgrounds(); } } button 98 { on (release) { NewgroundsAPI.loadNewgrounds(); } } movieClip 99 { } movieClip 100 { frame 1 { function startAd(ngad_url) { trace('opening ' + ngad_url); System.security.allowDomain('70.87.128.99'); System.security.allowInsecureDomain('70.87.128.99'); System.security.allowDomain('ads.shizmoo.com'); System.security.allowInsecureDomain('ads.shizmoo.com'); System.security.allowDomain('www.cpmstar.com'); System.security.allowInsecureDomain('www.cpmstar.com'); System.security.allowDomain('server.cpmstar.com'); System.security.allowInsecureDomain('server.cpmstar.com'); var ngads_redirect = new XML(); ngads_redirect.ignoreWhite = true; ngads_redirect.onLoad = function (success) { trace('[NEWGROUNDS FLASH ADS] :: You may get a \'Security Sandbox Violation\' ... this is normal, do not freak out!'); if (success) { ng_ad.loadMovie(ngads_redirect.toString(), 'GET'); } else {} }; ngads_redirect.load(ngad_url); } if (NewgroundsAPI.getAdURL()) { startAd(NewgroundsAPI.getAdURL()); } NewgroundsAPI.onAdsApproved = function (ad_url) { startAd(ad_url); }; stop(); } } movieClip 396 __Packages.NewgroundsAPI { #initclip if (!_global.NewgroundsAPI) { var v1 = function () {}; _global.NewgroundsAPI = v1; var v2 = v1.prototype; v1.connectMovie = function (id) { if (!id) { NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.connectMovie(id:Number)'); } else { if (!NewgroundsAPI.tracker_id) { NewgroundsAPI.SendMessage('Connecting to API gateway...'); NewgroundsAPI.tracker_id = id; NewgroundsAPI.host = (_url.split('/'))[2].toLowerCase(); if (NewgroundsAPI.host.length < 1) { NewgroundsAPI.host = 'localhost'; } var v2 = new Object(); NewgroundsAPI.SendEvent(NewgroundsAPI.MOVIE_VIEWS); } } }; v1.setMovieVersion = function (movie_version) { if (!movie_version) { NewgroundsAPI.SendError('Missing required \'version\' in NewgroundsAPI.setMovieVersion(version:String)'); } else { NewgroundsAPI.version = movie_version; } }; v1.debugMode = function () { NewgroundsAPI.debug = true; }; v1.addCustomEvent = function (stat_id, stat_name) { if (!stat_id) { NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)'); } else { if (!stat_name) { NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)'); } else { NewgroundsAPI.custom_events[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id; NewgroundsAPI.SendMessage('Created custom event: ' + stat_name); } } }; v1.addCustomLink = function (stat_id, stat_name) { if (!stat_id) { NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)'); } else { if (!stat_name) { NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)'); } else { NewgroundsAPI.custom_links[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id; NewgroundsAPI.SendMessage('Created custom link ' + stat_id + ': ' + stat_name); } } }; v1.loadMySite = function () { NewgroundsAPI.SendLink(NewgroundsAPI.AUTHOR_SITE); }; v1.loadNewgrounds = function (special) { if (special) { var v1 = {'page': special}; } NewgroundsAPI.SendLink(NewgroundsAPI.NEWGROUNDS, v1); }; v1.logCustomEvent = function (event_name) { if (!event_name) { NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.logCustomEvent(event_name:String)'); } else { if (!NewgroundsAPI.custom_events[event_name]) { NewgroundsAPI.SendError('Attempted to log undefined custom event: ' + event_name); } else { NewgroundsAPI.SendEvent(NewgroundsAPI.custom_events[event_name]); } } }; v1.loadCustomLink = function (link_name) { if (!link_name) { NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.loadCustomLink(link_name:String)'); } else { if (!NewgroundsAPI.custom_links[link_name]) { NewgroundsAPI.SendError('Attempted to open undefined custom link: ' + link_name); } else { NewgroundsAPI.SendLink(NewgroundsAPI.custom_links[link_name]); } } }; v1.getAdURL = function () { return NewgroundsAPI.movie_options.ad_url; }; v1.getMovieURL = function () { if (NewgroundsAPI.movie_options.movie_url) { return NewgroundsAPI.movie_options.movie_url; } else { return 'Newgrounds.com'; } }; v1.getNewVersionURL = function () { return NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + NewgroundsAPI.NEW_VERSION; }; v1.SendEvent = function (id) { NewgroundsAPI.SendStat(id, false); }; v1.SendLink = function (id, extra) { NewgroundsAPI.SendStat(id, true, extra); }; v1.ReadGatewayData = function (params) { for (var v2 in params) { params[v2] = unescape(params[v2]); NewgroundsAPI.movie_options[v2] = params[v2]; } if (params.settings_loaded) { NewgroundsAPI.SendMessage('You have successfully connected to the Newgrounds API gateway!'); NewgroundsAPI.SendMessage('Movie Identified as \'' + NewgroundsAPI.movie_options.movie_name + '\''); if (NewgroundsAPI.movie_options.message) { NewgroundsAPI.SendMessage(NewgroundsAPI.movie_options.message); } if (NewgroundsAPI.movie_options.ad_url) { NewgroundsAPI.SendMessage('Your movie has been approved to run Flash Ads'); NewgroundsAPI.onAdsApproved(NewgroundsAPI.movie_options.ad_url); } if (NewgroundsAPI.movie_options.movie_version and NewgroundsAPI.movie_options.movie_version.toString() != NewgroundsAPI.version.toString()) { NewgroundsAPI.SendMessage('WARNING: The movie version configured in your API settings does not match this movie\'s version!'); NewgroundsAPI.onNewVersionAvailable(NewgroundsAPI.movie_options.movie_version, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL()); } if (NewgroundsAPI.movie_options.deny_host) { NewgroundsAPI.SendMessage('You have blocked \'localHost\' in your API settings.'); NewgroundsAPI.SendMessage('If you wish to test your movie you will need to remove this block.'); NewgroundsAPI.onDenyHost(NewgroundsAPI.host, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL()); } if (NewgroundsAPI.movie_options.request_portal_url == 1) { var v4 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&portal_url=' + escape(_url); var v3 = new XML(); v3.ignoreWhite = true; v3.load(v4); } } else { if (!NewgroundsAPI.movie_options.settings_loaded) { NewgroundsAPI.SendError('Could not establish connection to the API gateway.'); } } }; v1.SendStat = function (stat_id, open_in_browser, extra) { if (!NewgroundsAPI.tracker_id) { NewgroundsAPI.SendError('API calls cannot be made without a valid movie id.'); NewgroundsAPI.SendError('Did you remember to add the "NewgroundsAPI.connectMovie()" code?'); } else { var v7 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + stat_id; for (var v9 in extra) { v7 += '&' + escape(v9) + '=' + escape(extra[v9]); } trace(v7); if (NewgroundsAPI.debug) { v7 += '&debug=1'; } if (open_in_browser) { getURL(v7, '_blank'); } else { var v10 = new XML(); v10.ignoreWhite = true; v10.onLoad = function (success) { var v6 = new Object(); var v3 = 0; while (v3 < this.firstChild.childNodes.length) { var v4 = this.firstChild.childNodes[v3]; var v5 = v4.nodeName; var v2 = v4.attributes.value; if (v2 == Number(v2)) { v2 = Number(v2); } v6[v5] = v2; ++v3; } NewgroundsAPI.ReadGatewayData(v6); }; v10.load(v7); } } }; v1.SendError = function (msg) { trace('[NEWGROUNDS API ERROR] :: ' + msg); }; v1.SendMessage = function (msg) { trace('[NEWGROUNDS API] :: ' + msg); }; v1.InitTextFormats = function () { if (!NewgroundsAPI.error_format) { NewgroundsAPI.error_format = new TextFormat(); NewgroundsAPI.error_format.font = 'Arial Black'; NewgroundsAPI.error_format.size = 48; NewgroundsAPI.error_format.color = 16711680; } if (!NewgroundsAPI.header_format) { NewgroundsAPI.header_format = new TextFormat(); NewgroundsAPI.header_format.font = 'Arial Black'; NewgroundsAPI.header_format.size = 24; NewgroundsAPI.header_format.color = 16777215; } if (!NewgroundsAPI.normal_format) { NewgroundsAPI.normal_format = new TextFormat(); NewgroundsAPI.normal_format.font = 'Arial'; NewgroundsAPI.normal_format.bold = true; NewgroundsAPI.normal_format.size = 12; NewgroundsAPI.normal_format.color = 16777215; } if (!NewgroundsAPI.link_format) { NewgroundsAPI.link_format = new TextFormat(); NewgroundsAPI.link_format.color = 16776960; NewgroundsAPI.link_format.underline = true; } }; v1.onNewVersionAvailable = function (version, movie_url, redirect_url) { NewgroundsAPI.InitTextFormats(); var v2 = new Object(); v2.x = Stage.width / 2; v2.y = Stage.height / 2; _root.createEmptyMovieClip('NGAPI_new_version_overlay', _root.getNextHighestDepth()); _root.NGAPI_new_version_overlay.lineStyle(1, 0, 100); _root.NGAPI_new_version_overlay.beginFill(0, 70); _root.NGAPI_new_version_overlay.moveTo(-10, -10); _root.NGAPI_new_version_overlay.lineTo(-10, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, -10); _root.NGAPI_new_version_overlay.lineTo(-10, -10); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.lineStyle(10, 0, 100); _root.NGAPI_new_version_overlay.beginFill(51); _root.NGAPI_new_version_overlay.moveTo(v2.x - 240, v2.y - 120); _root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y - 120); _root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y + 80); _root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y + 80); _root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y - 120); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.createEmptyMovieClip('exit', 1000); _root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100); _root.NGAPI_new_version_overlay.exit.beginFill(0, 50); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 210, v2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 110); _root.NGAPI_new_version_overlay.exit.endFill(); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 214, v2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 226, v2.y - 94); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 226, v2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 214, v2.y - 94); _root.NGAPI_new_version_overlay.exit.onMouseUp = function () { if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) { _root.NGAPI_new_version_overlay.removeMovieClip(); } }; var v3 = 'Version ' + version + ' is now available at:' + '\n'; var v5 = v3.length; v3 += movie_url; var v4 = v3.length; _root.NGAPI_new_version_overlay.createTextField('mouseblocker', 99, -10, -10, 1000, 1000); _root.NGAPI_new_version_overlay.createTextField('newversion', 100, v2.x - 210, v2.y - 90, 400, 80); _root.NGAPI_new_version_overlay.newversion.text = 'New Version Available!'; _root.NGAPI_new_version_overlay.newversion.setTextFormat(NewgroundsAPI.header_format); _root.NGAPI_new_version_overlay.createTextField('message', 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40); _root.NGAPI_new_version_overlay.message.text = v3; _root.NGAPI_new_version_overlay.message.multiline = true; _root.NGAPI_new_version_overlay.message.wordWrap = true; _root.NGAPI_new_version_overlay.message.html = true; _root.NGAPI_new_version_overlay.message.setTextFormat(NewgroundsAPI.normal_format); NewgroundsAPI.link_format.url = redirect_url; _root.NGAPI_new_version_overlay.message.setTextFormat(v5, v4, NewgroundsAPI.link_format); }; v1.onDenyHost = function (hostname, movie_url, redirect_url) { NewgroundsAPI.InitTextFormats(); _root.createEmptyMovieClip('NGAPI_deny_host_overlay', _root.getNextHighestDepth()); _root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100); _root.NGAPI_deny_host_overlay.beginFill(6684672); _root.NGAPI_deny_host_overlay.moveTo(0, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, 0); _root.NGAPI_deny_host_overlay.endFill(); var v2 = 'This movie has not been approved for use on ' + hostname + '.'; v2 += '\r\rFor an aproved copy, please visit:\r'; var v4 = v2.length; v2 += movie_url; var v3 = v2.length; _root.NGAPI_deny_host_overlay.createTextField('mousekill', 100, 0, 0, Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.createTextField('error', 101, (Stage.width - 400) / 2, Stage.height / 2 - 100, 400, 200); _root.NGAPI_deny_host_overlay.error.text = 'ERROR!'; _root.NGAPI_deny_host_overlay.error.setTextFormat(NewgroundsAPI.error_format); _root.NGAPI_deny_host_overlay.createTextField('message', 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200); _root.NGAPI_deny_host_overlay.message.text = v2; _root.NGAPI_deny_host_overlay.message.multiline = true; _root.NGAPI_deny_host_overlay.message.wordWrap = true; _root.NGAPI_deny_host_overlay.message.html = true; _root.NGAPI_deny_host_overlay.message.setTextFormat(NewgroundsAPI.normal_format); NewgroundsAPI.link_format.url = redirect_url; _root.NGAPI_deny_host_overlay.message.setTextFormat(v4, v3, NewgroundsAPI.link_format); }; v1.isInstalled = function () { return true; }; v1.onAdsApproved = function (ad_url) {}; v1.movie_options = new Object(); v1.custom_events = new Object(); v1.custom_links = new Object(); v1.MOVIE_VIEWS = 1; v1.AUTHOR_SITE = 2; v1.NEWGROUNDS = 3; v1.NEW_VERSION = 4; v1.CUSTOM_STATS = 50; v1.GATEWAY_URL = 'http://www.ngads.com/gateway.php'; ASSetPropFlags(_global.NewgroundsAPI.prototype, null, 1); } #endinitclip } frame 2 { stop(); } movieClip 103 { } button 104 { on (release) { gotoAndPlay(3); } } movieClip 106 { } movieClip 108 { } button 109 { on (release) { gotoAndPlay(4); } } button 110 { on (release) { gotoAndPlay(5); } } button 111 { on (release) { gotoAndPlay(6); } } button 112 { on (release) { gotoAndStop(3); } } frame 3 { stop(); } movieClip 115 { } movieClip 118 { } // unknown tag 88 length 63 // unknown tag 88 length 68 movieClip 130 { } movieClip 132 { } movieClip 134 { frame 1 { _visible = false; } } movieClip 137 { frame 1 { function overMe() { return _xmouse >= -10 && _xmouse <= 10 && _ymouse >= -10 && _ymouse <= 10; } function advance() { var v2 = overMe(); if (v2) { if (down || pushed) { gotoAndStop(3); } else { gotoAndStop(2); } } else { if (down) { gotoAndStop(4); } else { gotoAndStop(1); } } _parent.gotoAndStop(_currentframe); } function clicked() { pushed = overMe(); } function released() { pushed = false; if (_currentframe == 3) { if (bipress && down) { release(); click(); } else { if (!down) { click(); } down = lockable; } } else { if (_currentframe == 1) { down = false; } } } function release() { down = false; pushed = false; } if (init == undefined) { init = true; pushed = false; if (down == undefined) { down = false; } if (lockable == undefined) { lockable = true; } if (bipress == undefined) { bipress = false; } } } instance trigger of movieClip 134 { onClipEvent (enterFrame) { _parent.advance(); } onClipEvent (mouseDown) { _parent.clicked(); } onClipEvent (mouseUp) { _parent.released(); } } } movieClip 139 { frame 1 { function release() { button.release(); } } instance button of movieClip 137 { onClipEvent (load) { function click() { _parent.click(); } } } } movieClip 141 { frame 1 { function release() { button.release(); } } instance button of movieClip 137 { onClipEvent (load) { function click() { _parent.click(); } } } } movieClip 143 { frame 1 { function release() { button.release(); } } instance button of movieClip 137 { onClipEvent (load) { function click() { _parent.click(); } } } } movieClip 146 { instance button of movieClip 137 { onClipEvent (load) { function click() { _parent.click(); } lockable = false; } } } movieClip 148 { instance button of movieClip 137 { onClipEvent (load) { function click() { _parent.click(); } lockable = false; } } } movieClip 150 { instance button of movieClip 137 { onClipEvent (load) { function click() { _parent.click(); } lockable = false; } } } movieClip 153 { instance button of movieClip 137 { onClipEvent (load) { function click() { _parent.click(); } bipress = true; } } } movieClip 155 { } movieClip 159 { frame 11 { stop(); } } button 160 { on (release) { _root.gotoAndStop('B'); } } movieClip 161 { frame 1 { function Play() { play_button.button.down = true; pause_button.release(); stop_button.release(); play_button.click(); } function Pause() { pause_button.button.down = true; play_button.release(); stop_button.release(); pause_button.click(); } function Stop() { stop_button.button.down = true; play_button.release(); pause_button.release(); stop_button.click(); } } frame 1 { function getTime(seconds) { var v2 = int(seconds / 60) % 60; if (v2 < 10) { v2 = '0' + v2; } seconds = int(seconds - v2 * 60) % 60; if (seconds < 10) { seconds = '0' + seconds; } return v2 + ':' + seconds; } if (myClip == undefined) { myClip = _parent; } var loaded = myClip.getBytesLoaded() == myClip.getBytesTotal(); if (!loaded) { Status.text = 'Downloading...'; myClip.stop(); checkTime = function (seconds) { if (myClip._framesloaded < myClip._totalframes) { if (!playing) { current_time.text = getTime(myClip._framesloaded / fps); total_time.text = getTime(myClip._totalframes / fps); } else { current_time.text = getTime(seconds); total_time.text = getTime(myClip._framesloaded / fps); } } else { if (autoplay) { play_button.click(); } else { Status.text = 'Done'; } loading_text._visible = false; total_time.text = getTime(myClip._totalframes / fps); checkTime = function (seconds) { current_time.text = getTime(seconds); }; hide = function () { _visible = _ymouse >= 0; }; } }; hide = function () { if (playing) { _visible = _ymouse >= 0; } else { _visible = true; } }; } else { checkTime = function (seconds) { current_time.text = getTime(seconds); }; hide = function () { _visible = _ymouse >= 0; }; } total_time.text = getTime(myClip._totalframes / fps); if (autohide == undefined) { autohide = true; } if (autohide_delay == undefined) { autohide_delay = 0; } loading_text._visible = !loaded; play_button.button.down = loaded; playing = loaded; speeding = false; speed = 1; } instance prog of movieClip 132 { onClipEvent (load) { function overMe() { return _parent._xmouse >= anchor && _parent._xmouse <= anchor + 620 && _ymouse >= -7.5 && _ymouse <= 7.5; } total = _parent.myClip._totalframes; drag = false; anchor = _x; } onClipEvent (enterFrame) { if (drag) { var percent = (_parent._xmouse - anchor) / 620; if (percent < 0) { percent = 0; } else { if (percent > 1) { percent = 1; } } var toGo = int((total - 1) * percent + 1.5); if (_parent.playing) { _parent.myClip.gotoAndPlay(toGo); } else { _parent.myClip.gotoAndStop(toGo); } } var current = _parent.myClip._currentframe; if (_parent.speeding) { var toGo = current + _parent.speed - 1; if (toGo < 1) { _parent.Stop(); } else { if (toGo >= total) { if (_parent.autorepeat) { _parent.myClip.gotoAndStop(toGo % total); } else { _parent.myClip.gotoAndStop(total); _parent.Pause(); } } else { _parent.myClip.gotoAndPlay(toGo); } } } current = _parent.myClip._currentframe; _x = ((current - 1) / (total - 1)) * 620 + anchor; _parent.checkTime(current / _parent.fps); if (_parent.autohide) { _parent.hide(); } if (current >= total && _parent.playing) { if (_parent.autorepeat) { _parent.myClip.gotoAndPlay(1); } else { _parent.Pause(); } } } onClipEvent (mouseDown) { drag = overMe(); if (_parent._ymouse < 0) { if (_parent.playing) { _parent.Pause(); } else { _parent.Play(); } } } onClipEvent (mouseUp) { drag = false; } onClipEvent (keyDown) { if (Key.isDown(_parent.play_pause)) { if (_parent.playing) { _parent.Pause(); } else { _parent.Play(); } } if (Key.isDown(_parent.stepForward)) { _parent.myClip.nextFrame(); } if (Key.isDown(_parent.stepBackward)) { _parent.myClip.prevFrame(); } if (Key.isDown(_parent.volumeUp)) { _parent.vol.setVol(_parent.vol.myVolume + 8); } if (Key.isDown(_parent.volumeDown)) { _parent.vol.setVol(_parent.vol.myVolume - 8); } } } instance pause_button of movieClip 139 { onClipEvent (load) { function click() { button.down = true; _parent.play_button.release(); _parent.stop_button.release(); _parent.playing = false; _parent.myClip.stop(); _parent.Status.text = 'Paused'; _parent.speed = 0; _parent.speeding = false; } } } instance play_button of movieClip 141 { onClipEvent (load) { function click() { button.down = true; _parent.pause_button.release(); _parent.stop_button.release(); _parent.playing = true; _parent.myClip.play(); _parent.Status.text = 'Playing'; _parent.speed = 1; _parent.speeding = false; } } } instance stop_button of movieClip 143 { onClipEvent (load) { function click() { _parent.play_button.release(); _parent.pause_button.release(); _parent.playing = false; _parent.myClip.gotoAndStop(1); _parent.Status.text = 'Stopped'; _parent.speed = 0; _parent.speeding = false; } } } instance RW_button of movieClip 146 { onClipEvent (load) { function click() { if (_parent.speed == 1) { _parent.speed = 0; } --_parent.speed; _parent.pause_button.release(); _parent.stop_button.release(); _parent.play_button.release(); _parent.speeding = true; _parent.playing = true; if (_parent.speed > 0) { if (_parent.speed > 2) { _parent.Status.text = 'FF x' + _parent.speed; } else { if (_parent.speed > 1) { _parent.Status.text = 'FF'; } else { _parent.play_button.click(); } } } else { if (_parent.speed == 0) { _parent.pause_button.click(); } else { if (_parent.speed < 0) { if (_parent.speed < -1) { _parent.Status.text = 'RW x' + -_parent.speed; } else { _parent.Status.text = 'RW'; } } } } } } } instance FF_button of movieClip 148 { onClipEvent (load) { function click() { if (_parent.speed == -1) { _parent.speed = 0; } ++_parent.speed; _parent.pause_button.release(); _parent.stop_button.release(); _parent.play_button.release(); _parent.speeding = true; _parent.playing = true; if (_parent.speed > 0) { if (_parent.speed > 2) { _parent.Status.text = 'FF x' + _parent.speed; } else { if (_parent.speed > 1) { _parent.Status.text = 'FF'; } else { _parent.play_button.click(); } } } else { if (_parent.speed == 0) { _parent.pause_button.click(); } else { if (_parent.speed < 0) { if (_parent.speed < -1) { _parent.Status.text = 'RW x' + -_parent.speed; } else { _parent.Status.text = 'RW'; } } } } } } } instance step_button of movieClip 150 { onClipEvent (load) { function click() { _parent.Pause(); _parent.pause_button.button.gotoAndStop(4); _parent.myClip.nextFrame(); } } } instance mute_button of movieClip 153 { onClipEvent (load) { function click() { mute = !mute; if (mute) { mySound.setVolume(0); } else { mySound.setVolume(_parent.vol.myVolume); } } mySound = new Sound(_parent.myClip); mute = false; } } instance vol of movieClip 155 { onClipEvent (load) { function overMe() { return _parent._xmouse >= anchor && _parent._xmouse <= anchor + 45 && _ymouse >= -8 && _ymouse <= 8; } function setVol(percent) { if (percent < 0) { percent = 0; } else { if (percent > 100) { percent = 100; } } myVolume = percent; _x = anchor + myVolume * 0.45; if (!_parent.mute_button.mute) { _parent.mute_button.mySound.setVolume(myVolume); } } anchor = _x - 45; clicked = false; setVol(100); } onClipEvent (mouseDown) { if (overMe()) { clicked = true; } } onClipEvent (mouseUp) { clicked = false; } onClipEvent (enterFrame) { if (clicked) { setVol((_parent._xmouse - anchor) / 0.45); } } } } movieClip 168 { } movieClip 170 { } movieClip 172 { } movieClip 173 { } movieClip 175 { } movieClip 177 { } movieClip 182 { } movieClip 191 { frame 1 { stop(); } instance trackbar of movieClip 161 { onClipEvent (load) { fps = 12; myClip = _parent; play_pause = 32; stepForward = 39; stepBackward = 37; volumeUp = 38; volumeDown = 40; autohide = true; autoplay = false; autorepeat = false; } } frame 16000 { _root.gotoAndStop('B'); } } frame 4 { stop(); } button 192 { on (release) { gotoAndPlay(2); } } movieClip 194 { } movieClip 196 { } movieClip 198 { } button 199 { on (release) { getURL('http://www.snowsnowforlucy.com', '_blank'); } } frame 5 { stop(); } movieClip 203 { } movieClip 208 { frame 1 { stop(); } frame 5 { gotoAndStop(1); } } movieClip 210 { } button 211 { on (release) { _root.characters.nextFrame(); } } frame 6 { stop(); } movieClip 213 { } movieClip 231 { } movieClip 244 { } movieClip 246 { } movieClip 248 { } movieClip 250 { } movieClip 252 { } movieClip 260 { } movieClip 272 { } movieClip 293 { } movieClip 393 { } movieClip 394 { frame 1 { stop(); } frame 8 { gotoAndStop(1); } } button 395 { on (release) { _root.da.nextFrame(); } } frame 7 { stop(); }




http://swfchan.com/42/206357/info.shtml
Created: 9/10 -2018 21:48:30 Last modified: 9/10 -2018 21:48:30 Server time: 20/04 -2024 04:28:02