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

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

512482_Windows_Doors_Final.swf

This is the info page for
Flash #172304

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


ActionScript [AS1/AS2]
Combined Code
movieClip 22 { } movieClip 26 { } movieClip 30 { } movieClip 31 { } movieClip 34 { } movieClip 38 { } movieClip 41 { } movieClip 42 { } movieClip 44 { } movieClip 45 { } movieClip 46 { } movieClip 47 { } movieClip 48 { frame 1 { stop(); } } movieClip 50 { } // unknown tag 88 length 138 movieClip 53 { } button 59 { on (release) { _parent._parent._parent.gotoAndStop(7); } } button 65 { on (release) { _parent._parent._parent.gotoAndStop(8); } } button 66 { on (release) { _parent._parent._parent.gotoAndStop(26); } } // unknown tag 88 length 143 // unknown tag 88 length 107 movieClip 77 { frame 1 { onLoad = function () { gospeed = 20; speed = gospeed; _root.tankMoved = false; }; onEnterFrame = function () { if (_root.tankMoved == true) { info._visible = false; } if (Key.isDown(37)) { speed = gospeed; ngLogo._xscale = -54.7; ngLogo._x -= 5; ngLogo.gotoAndStop(2); info._visible = false; _root.tankMoved = true; } else { if (Key.isDown(39)) { speed = gospeed; ngLogo._xscale = 54.7; ngLogo._x += 5; ngLogo.gotoAndStop(2); info._visible = false; _root.tankMoved = true; } else { if (!Key.isDown(37) && !Key.isDown(39)) { speed = 0; ngLogo.gotoAndStop(1); } } } }; } } movieClip 80 { } movieClip 99 NG_Falsch_Blank { } movieClip 104 { } button 106 { on (release) { _parent._parent.gotoAndStop(17); } } button 107 { on (release) { _parent._parent.gotoAndStop(20); } } button 108 { on (release) { _parent._parent.gotoAndStop(18); } } button 109 { on (release) { _parent._parent.gotoAndStop(21); } } button 110 { on (release) { _parent._parent.gotoAndStop(19); } } button 111 { on (release) { _parent._parent.gotoAndStop(22); } } button 112 { on (release) { _parent._parent.gotoAndStop(32); } } button 113 { on (release) { _parent._parent.gotoAndStop(41); } } button 114 { on (release) { _parent._parent.gotoAndStop(35); } } movieClip 128 { } // unknown tag 88 length 62 movieClip 155 twitter_logo { } movieClip 160 NG_home { frame 1 { siteNews.onRelease = function () { _parent._parent.gotoAndStop(9); }; } instance of movieClip 104 { onClipEvent (enterFrame) { this.onRelease = function () { _parent._parent._parent.gotoAndStop(6); }; } } instance of movieClip 128 { onClipEvent (enterFrame) { this.onRelease = function () { _parent._parent._parent.gotoAndStop(6); }; } } } movieClip 164 { } button 174 { on (press) { this.startDrag(); this.bringToFront(); } on (release) { this.stopDrag(); } } // unknown tag 88 length 69 movieClip 182 { } button 184 { on (press) { pr_internet.sites_mc.gotoAndStop(1); } } button 190 { on (release) { pr_internet.sites_mc.gotoAndStop(_root.forwardSite); } } button 196 { on (release) { pr_internet.sites_mc.gotoAndStop(_root.backSite); } } movieClip 201 { frame 1 { stop(); } } button 211 { on (release) { _root.tray.push({'mc': this._name, 'title': title_txt.text}); this._visible = false; } } // unknown tag 88 length 67 movieClip 232 { } movieClip 244 BoundingBox { } movieClip 246 DataHeaderBackGnd { } movieClip 248 DataHeaderOverlay { } movieClip 250 DataHeaderSeperator { } movieClip 252 DataSortArrow { } movieClip 254 DataStretchBar { } movieClip 256 cursorStretch { } movieClip 257 DataGridAssets { #initclip mx.controls.DataGrid.prototype.headerStyle = _global.styles.dataGridStyles; #endinitclip frame 1 { } } movieClip 258 DataGridColumn { #initclip Object.registerClass('DataGridColumn', mx.controls.gridclasses.DataGridColumn); #endinitclip frame 1 { stop(); } } movieClip 259 Defaults { #initclip Object.registerClass('Defaults', mx.skins.halo.Defaults); #endinitclip } movieClip 260 UIObjectExtensions { #initclip Object.registerClass('UIObjectExtensions', mx.core.ext.UIObjectExtensions); #endinitclip } movieClip 261 UIObject { #initclip Object.registerClass('UIObject', mx.core.UIObject); #endinitclip frame 1 { stop(); } } button 264 { on (keyPress '<Tab>') { this.tabHandler(); } } movieClip 265 { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, 'focusManager', mx.managers.DepthManager.highestDepth--); } #endinitclip frame 1 { } } movieClip 266 FocusRect { #initclip Object.registerClass('FocusRect', mx.skins.halo.FocusRect); #endinitclip } movieClip 267 FocusManager { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); #endinitclip frame 1 { stop(); } } movieClip 268 UIComponentExtensions { #initclip Object.registerClass('UIComponentExtensions', mx.core.ext.UIComponentExtensions); #endinitclip } movieClip 269 UIComponent { #initclip Object.registerClass('UIComponent', mx.core.UIComponent); #endinitclip frame 1 { stop(); } } movieClip 270 SelectableRow { #initclip Object.registerClass('SelectableRow', mx.controls.listclasses.SelectableRow); #endinitclip frame 1 { stop(); } } movieClip 271 DataGridRow { #initclip Object.registerClass('DataGridRow', mx.controls.gridclasses.DataGridRow); #endinitclip frame 1 { stop(); } } movieClip 272 DataProvider { #initclip Object.registerClass('DataProvider', mx.controls.listclasses.DataProvider); #endinitclip frame 1 { stop(); } } movieClip 273 DataSelector { #initclip Object.registerClass('DataSelector', mx.controls.listclasses.DataSelector); #endinitclip frame 1 { stop(); } } movieClip 275 BrdrShdw { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'shadowColor'); } } movieClip 277 BrdrFace { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'buttonColor'); } } movieClip 278 SimpleButtonDown { } movieClip 280 BrdrBlk { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'borderColor'); } } movieClip 282 BrdrHilght { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'highlightColor'); } } movieClip 283 SimpleButtonIn { } movieClip 284 SimpleButtonUp { } movieClip 285 SimpleButton { #initclip Object.registerClass('SimpleButton', mx.controls.SimpleButton); #endinitclip frame 1 { stop(); } } movieClip 286 Border { #initclip Object.registerClass('Border', mx.skins.Border); #endinitclip frame 1 { stop(); } } movieClip 287 RectBorder { #initclip mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder)); Object.registerClass('RectBorder', mx.skins.halo.RectBorder); #endinitclip frame 1 { stop(); } } movieClip 288 ButtonSkin { #initclip Object.registerClass('ButtonSkin', mx.skins.halo.ButtonSkin); #endinitclip } movieClip 289 Button { #initclip Object.registerClass('Button', mx.controls.Button); #endinitclip frame 1 { stop(); } instance of movieClip 285 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 290 CustomBorder { #initclip Object.registerClass('CustomBorder', mx.skins.CustomBorder); mx.skins.SkinElement.registerElement('CustomBorder', mx.skins.CustomBorder); #endinitclip frame 1 { } } movieClip 293 ScrollTrack { } movieClip 300 ScrollDownArrowDisabled { } movieClip 302 ScrollThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 304 ScrollThemeColor2 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 305 ScrollDownArrowDown { } movieClip 306 ScrollDownArrowOver { } movieClip 307 ScrollDownArrowUp { } movieClip 313 ScrollThumbBottomDisabled { } movieClip 315 ThumbThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 317 ThumbThemeColor3 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 318 ScrollThumbBottomDown { } movieClip 319 ScrollThumbBottomOver { } movieClip 320 ScrollThumbBottomUp { } movieClip 322 ScrollThumbGripDisabled { } movieClip 324 ThumbThemeColor2 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 325 ScrollThumbGripDown { } movieClip 326 ScrollThumbGripOver { } movieClip 327 ScrollThumbGripUp { } movieClip 329 ScrollThumbMiddleDisabled { } movieClip 330 ScrollThumbMiddleDown { } movieClip 331 { } movieClip 333 { } movieClip 334 ScrollThumbMiddleOver { } movieClip 335 ScrollThumbMiddleUp { } movieClip 336 ScrollThumbTopDisabled { } movieClip 337 ScrollThumbTopDown { } movieClip 338 ScrollThumbTopOver { } movieClip 339 ScrollThumbTopUp { } movieClip 340 ScrollTrackDisabled { } movieClip 341 ScrollUpArrowDisabled { } movieClip 342 ScrollUpArrowDown { } movieClip 343 ScrollUpArrowOver { } movieClip 344 ScrollUpArrowUp { } movieClip 345 BtnDownArrow { #initclip Object.registerClass('BtnDownArrow', mx.controls.SimpleButton); #endinitclip } movieClip 346 BtnUpArrow { #initclip Object.registerClass('BtnUpArrow', mx.controls.SimpleButton); #endinitclip } movieClip 347 ScrollBarAssets { } movieClip 348 HScrollBar { #initclip Object.registerClass('HScrollBar', mx.controls.HScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 289 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 285 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 349 VScrollBar { #initclip Object.registerClass('VScrollBar', mx.controls.VScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 289 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 285 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 350 View { #initclip Object.registerClass('View', mx.core.View); #endinitclip frame 1 { stop(); } } movieClip 351 ScrollView { #initclip Object.registerClass('ScrollView', mx.core.ScrollView); #endinitclip frame 1 { stop(); } instance of movieClip 348 HScrollBar { onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 349 VScrollBar { onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 352 ScrollSelectList { #initclip Object.registerClass('ScrollSelectList', mx.controls.listclasses.ScrollSelectList); #endinitclip frame 1 { stop(); } } movieClip 353 List { #initclip Object.registerClass('List', mx.controls.List); #endinitclip frame 1 { stop(); } } movieClip 356 TextInput { #initclip Object.registerClass('TextInput', mx.controls.TextInput); #endinitclip frame 1 { stop(); } } movieClip 357 DataGrid { #initclip Object.registerClass('DataGrid', mx.controls.DataGrid); #endinitclip frame 1 { stop(); } instance of movieClip 353 List { onClipEvent (initialize) { multipleSelection = false; rowHeight = 20; } } instance of movieClip 356 TextInput { onClipEvent (initialize) { editable = true; password = false; text = ''; maxChars = null; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 390 { frame 1 { var sites = siteGrid; var sitesArray = new Array({'Website': 'Welcome to Internet Appendage!', 'URL': 'http://www.microsoft.com/ia/welcome'}, {'Website': 'United States Government Home', 'URL': 'http://www.usa.gov'}, {'Website': 'Chuck Norris is Gonna Kill You', 'URL': 'http://chucknorrisisgonnakillyou.com'}, {'Website': 'RickRoll', 'URL': 'http://www.smouch.net/lol'}, {'Website': 'Newgrounds', 'URL': 'http://www.newgrounds.com'}, {'Website': 'The Value of Pi', 'URL': 'http://www.thevalueofpi.com'}, {'Website': 'You Fail!', 'URL': 'http://www.youfail.net'}, {'Website': 'Poogle', 'URL': 'http://www.poogle.com'}, {'Website': 'Ruinscape', 'URL': 'http://www.ruinscape.com'}, {'Website': 'Twatter', 'URL': 'http://www.twatter.com/home'}, {'Website': 'Apple, Inc.', 'URL': 'http://www.apple.com'}, {'Website': 'Footbook', 'URL': 'http://www.footbook.com'}, {'Website': 'KinderHumor', 'URL': 'http://www.kinderhumor.com'}); var frameArray = new Array(1, 2, 5, 6, 7, 23, 24, 27, 32, 35, 40, 41, 46); var siteListener = new Object(); siteListener.change = function (evt) { var v2 = evt.target.selectedIndex; _parent.gotoAndStop(frameArray[v2]); }; sites.dataProvider = sitesArray; sites.addEventListener('change', siteListener); } instance siteGrid of movieClip 357 DataGrid { onClipEvent (construct) { editable = false; multipleSelection = false; rowHeight = 20; } } } movieClip 393 { } movieClip 399 { } // unknown tag 88 length 153 // unknown tag 88 length 148 movieClip 405 { } movieClip 406 { } // unknown tag 88 length 155 // unknown tag 88 length 68 button 417 { on (rollOver) { _parent._parent.link_txt.text = 'http://www.usa.gov'; } on (rollOut) { _parent._parent.link_txt.text = ''; } on (release) { _parent._parent.link_txt.text = ''; _parent.gotoAndStop(2); } } button 420 { on (rollOver) { _parent._parent.link_txt.text = 'http://www.usa.gov/database'; } on (rollOut) { _parent._parent.link_txt.text = ''; } on (release) { _parent._parent.link_txt.text = ''; _parent.gotoAndStop(4); } } button 428 { on (rollOver) { _parent._parent.link_txt.text = 'http://www.usa.gov/news'; } on (rollOut) { _parent._parent.link_txt.text = ''; } on (release) { _parent._parent.link_txt.text = ''; _parent.gotoAndStop(3); } } movieClip 429 { frame 1 { ad.onRelease = function () { _parent.gotoAndStop(6); }; } } movieClip 433 { } movieClip 436 { frame 1 { var Name = new mx.controls.gridclasses.DataGridColumn('Name'); var Description = new mx.controls.gridclasses.DataGridColumn('Description'); criminal.addColumn(Name); criminal.addColumn(Description); (criminal.getColumnAt(0)).width = 100; (criminal.getColumnAt(1)).width = 400; criminal.dataProvider = [{'Name': 'Abdul, Paula', 'Description': 'Too old to be seen in public.'}, {'Name': 'Al Khaleel Ur, Raman', 'Description': 'Explosives Expert; Attempted to blow up a federal court building.'}, {'Name': 'Allah, Steve', 'Description': 'Attempted to blow up a federal court building with Raman Al Khaleel Ur.'}, {'Name': 'Bellic, Nico', 'Description': 'From another country.'}, {'Name': 'Bellic, Roman', 'Description': 'The Brother of Nico Bellic.'}, {'Name': 'Bob, Billy', 'Description': 'Has a funny name.'}, {'Name': 'Bolender, Cody', 'Description': 'Hit an old lady with a banana.'}, {'Name': 'Brecht, Sharron', 'Description': 'Robbery of a police station.'}, {'Name': 'Brocato, Jamie', 'Description': 'Tried to steal a hobo.'}, {'Name': 'Burnstein, Sam', 'Description': 'People see his ads and want to become cheap lawyers, too.'}, {'Name': 'Bush, George', 'Description': 'Led an entire nation into war and ground its economy into the dirt.'}, {'Name': 'Bushraa, Mubeen', 'Description': 'Assisted Steve Allah and Raman Al Khaleel Ur.'}, {'Name': 'Cowbell, Simon', 'Description': 'His name is funny.'}, {'Name': 'Depaoli, Anna', 'Description': 'Armed robbery of a preschool complex.'}, {'Name': 'Dorian, John', 'Description': 'Armed robbery of an elementary school.'}, {'Name': 'Duball, Rolf', 'Description': 'Armed robbery of a middle school.'}, {'Name': 'Dumas, Tyler', 'Description': 'Armed robbery of a high school.'}, {'Name': 'East, Alison', 'Description': 'Armed robbery of a college campus.'}, {'Name': 'Eston, Franklin', 'Description': 'Armed robbery of a senior center.'}, {'Name': 'Eston, Lisa', 'Description': 'Armed robbery of a cemetary.'}, {'Name': 'Farmer, Joe', 'Description': 'Responsible for the deaths of over 190 people.'}, {'Name': 'Farms, Edwin', 'Description': 'Fraud'}, {'Name': 'Fjorm, Matt', 'Description': 'Hacked into his school\'s computer network and deleted Windows.'}, {'Name': 'Fjumalolumiajf, Achmed', 'Description': 'He\'s from Iraq.'}, {'Name': 'Fjumalolumiajf, Azlam', 'Description': 'He\'s from Iraq.'}, {'Name': 'Flesher, Benita', 'Description': 'Skinned someone alive.'}, {'Name': 'Fulp, Tom', 'Description': 'Runs a secret terrorist organization through his popular website, Newgrounds.'}, {'Name': 'Fulp, Wade', 'Description': 'Helps his brother run a secret terrorist organization through his brother\'s website.'}, {'Name': 'Gates, Bill', 'Description': 'Sells Windows.'}, {'Name': 'Gaw, Ted', 'Description': 'Cannibalism.'}, {'Name': 'Hendricks, Jason', 'Description': 'Stole Lady Liberty\'s crown and revealed her bald spot.'}, {'Name': 'Hope, Cindy', 'Description': 'Ate a monkey.'}, {'Name': 'Ivan, Jim', 'Description': 'Ate an apple.'}, {'Name': 'Jacobs, John', 'Description': 'Ate a human'}, {'Name': 'Jacobs, John', 'Description': 'Murder in the first degree.'}, {'Name': 'Jacobs, John', 'Description': 'Murder in the second degree.'}, {'Name': 'Jacobs, John', 'Description': 'Murder in the third degree.'}, {'Name': 'Jobs, Steve', 'Description': 'Sells an operating system other than Windows.'}, {'Name': 'Jonas, Joe', 'Description': 'AN EVIL CLONE!'}, {'Name': 'Jonas, Nick', 'Description': 'AN EVIL CLONE!'}, {'Name': 'Jonas, Steve', 'Description': 'AN EVIL CLONE!'}, {'Name': 'Lambert, John', 'Description': 'OH NOES HE\'S A FIRIN HIS LAZERZZZ!!!!!'}, {'Name': 'Martin, Carrey', 'Description': 'Forgot to feed her children.'}, {'Name': 'Miller, Derek', 'Description': 'Broke into prison.'}, {'Name': 'Miller, Kevin', 'Description': 'Broke out of prison.'}, {'Name': 'Montana, Hannah', 'Description': 'Sings terribly and transforms millions of little girls into bratty, obsessive little demons.'}, {'Name': 'Monty, Jim', 'Description': 'Shot up his sister\'s home.'}, {'Name': 'Monty, Sarah', 'Description': 'Killed her brother\'s family.'}, {'Name': 'O\'Neil, Mike', 'Description': 'Owns a record player.'}, {'Name': 'Parker, Michael', 'Description': 'Gang-related violence.'}, {'Name': 'Parker, Peter', 'Description': 'He\'s da spider man.'}, {'Name': 'Purpurea, Dalia', 'Description': 'the evil flower lady from the center of the Earth.'}, {'Name': 'Song, Henry', 'Description': 'Made siz people dance on top of burning coals.'}, {'Name': 'West, Georgina', 'Description': 'Moo.'}]; } instance criminal of movieClip 357 DataGrid { onClipEvent (construct) { editable = false; multipleSelection = false; rowHeight = 20; } } } movieClip 438 ScrollPane { #initclip Object.registerClass('ScrollPane', mx.containers.ScrollPane); #endinitclip frame 1 { stop(); } } movieClip 443 { } movieClip 444 { frame 1 { loader_mc.loadMovie('http://chodecircus.com/area51/ilovethe80s.swf'); } } // unknown tag 88 length 151 // unknown tag 88 length 146 movieClip 454 { } movieClip 481 { } movieClip 482 { frame 1 { stop(); var failSong = new Sound(); failSong.loadSound('http://community.nbtsc.org/~adam/music/Trans%20Siberian%20Orchestra%20-%20Wizards%20In%20Winter.mp3'); failSong.onLoad = function (success) { if (success) { failSong.start(0, 3); gotoAndStop(2); } else { gotoAndStop(1); } }; } } movieClip 483 { } // unknown tag 88 length 68 // unknown tag 88 length 63 movieClip 494 { } movieClip 499 { frame 1 { numResults = 4; turds01 = new Sound(); turds01.attachSound('fart.wav'); turds02 = new Sound(); turds02.attachSound('wetfart.wav'); turds03 = new Sound(); turds03.attachSound('quickfart.wav'); turds04 = new Sound(); turds04.attachSound('lotafarts.wav'); poogleSearch.onRelease = function () { if (search_txt.text != '' && search_txt.text != ' ' && search_txt.text != ' ') { _parent.gotoAndStop(27 + Math.ceil(Math.random() * numResults)); } }; feelingCrappy.onRelease = function () { var randomFart = Math.ceil(Math.random() * 4); trace(randomFart); var curFart = eval('turds0' + randomFart); curFart.start(); }; } instance poogleSearch of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = 'Poogle Search'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance feelingCrappy of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = 'I\'m Feeling Crappy'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 502 { } button 503 { on (release) { gotoAndStop(9); } } button 504 { on (release) { gotoAndStop(27); } } button 505 { on (release) { gotoAndStop(7); } } // unknown tag 88 length 150 movieClip 559 { frame 560 { _parent.gotoAndStop(2); } } // unknown tag 88 length 43 movieClip 576 { frame 1 { stop(); stopAllSounds(); } frame 2 { stop(); _root.rs_username = new String(); rs_name_txt.backgroundColor = '0x948362'; rs_name_txt.borderColor = '0x663300'; rs_name_txt.text = ''; rs_pass_txt.backgroundColor = '0x948362'; rs_pass_txt.borderColor = '0x663300'; rs_pass_txt.text = ''; rs_login_btn.onRelease = function () { if (rs_name_txt.text != '' && rs_name_txt.text != ' ' && rs_pass_txt.text != '' && rs_pass_txt.text != ' ') { rs_error_txt.text = 'You are not a high enough level to use that button.'; _root.rs_username = rs_name_txt.text; } else { rs_error_txt.text = 'Please enter a valid username and password.'; } }; rs_free_btn.onRelease = function () { _parent.gotoAndStop(34); }; _root.themeMusic.start(); } } movieClip 585 { frame 1 { stop(); stopAllSounds(); } frame 2 { stop(); rs_username = 'archon68'; rs_password = 'newgrounds'; rs_name_txt.backgroundColor = '0x948362'; rs_name_txt.borderColor = '0x663300'; rs_name_txt.text = ''; rs_pass_txt.backgroundColor = '0x948362'; rs_pass_txt.borderColor = '0x663300'; rs_pass_txt.text = ''; rs_login_btn.onRelease = function () { rs_error_txt.text = 'We\'re sorry, that\'s a members-only button. Please login as a member to use it.'; }; rs_member_btn.onRelease = function () { _parent.gotoAndStop(33); }; _root.themeMusic.start(); } } movieClip 588 { } button 594 { on (release) { _parent.gotoAndStop(36); } } button 603 { on (release) { gotoAndStop(2); } } button 605 { on (release) { gotoAndStop(3); } } button 609 { on (release) { gotoAndStop(1); } } movieClip 615 { frame 1 { stop(); } } button 632 { on (release) { _parent.gotoAndStop(37); } } // unknown tag 88 length 145 movieClip 639 { } button 662 { on (release) { _parent.gotoAndStop(35); } } movieClip 663 { } movieClip 669 UIScrollBar { #initclip Object.registerClass('UIScrollBar', mx.controls.UIScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 349 VScrollBar { onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 348 HScrollBar { onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } // unknown tag 88 length 156 button 681 { on (release) { _parent._parent.gotoAndStop(37); } } button 684 { on (release) { var randomTweet = Math.floor(Math.random() * 2); _parent._parent.gotoAndStop(38 + randomTweet); } } movieClip 687 { } movieClip 691 { } movieClip 692 { frame 1 { function tweetThis() { tweets.addItemAt(0, {'data': 'tweet' + numTweets, 'label': tweet_txt.text, 'icon': 'twatterMyIcon'}); tweet_txt.text = ''; myTwits.data.twits = tweets.dataProvider; myTwits.flush(); } myTwits = SharedObject.getLocal('user'); if (myTwits.data.twits != undefined) { tweets.dataProvider = myTwits.data.twits; } else { myTwits.data.twits = ''; } var charLimit = 100; var myTweets = new Array(); var numTweets = new Number(); var userIcon = 'twatterMyIcon'; tweets.rowHeight = 45; tweets.setStyle('themeColor', '0xEFEFEF'); tweets.cellRenderer = 'MultiLineCell'; tweets.iconField = 'icon'; tweet_txt.text = ''; tweet_txt.maxChars = charLimit; onEnterFrame = function () { charCount_txt.text = charLimit - tweet_txt.length; if (tweet_txt.length < 3) { update_btn.enabled = false; updateDisabled._visible = true; } else { update_btn.enabled = true; updateDisabled._visible = false; } }; update_btn.onRelease = function () { tweetThis(); }; var enterListenerTweet = new Object(); enterListenerTweet.onKeyDown = function () { var v1 = Selection.getFocus(); v1 = v1.substr(19); if (Key.isDown(13)) { tweetThis(); } }; Key.addListener(enterListenerTweet); tweet_txt.onChanged = function () { var v2 = escape(this.text); while (v2.indexOf('%0D') != -1) { var v4 = v2.substr(0, v2.indexOf('%0D')); var v3 = v2.substr(v2.indexOf('%0D') + 3, v2.length); v2 = v4 + v3; } this.text = unescape(v2); }; arrow1.onRelease = function () { gotoAndStop(6); }; } instance of movieClip 669 UIScrollBar { onClipEvent (construct) { _targetInstanceName = 'tweet_txt'; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance tweets of movieClip 353 List { onClipEvent (construct) { multipleSelection = false; rowHeight = 20; } } } movieClip 698 { } movieClip 699 { frame 1 { function twittie() { if (noLifeTweets[curTweet] != undefined) { noLifeTweetsBox.addItemAt(0, {'data': 'noLife' + curTweet, 'label': noLifeTweets[curTweet], 'icon': userIcon}); ++curTweet; } } clearInterval(tweetInterval); var noLifeTweets = new Array('Hai Gaiz.', 'Eatin A Pancake', 'Polishin mah hat', 'Wait hats don need polishin im a stupid', 'Hey', 'I accidentally my dog. Is that dangerous?', 'Minions--UNITE! Onwards to victory!!!', 'My kitty is sitting on my keyboard.', 'He\'s rolling around', 'Oh wait that\'s not my kitty--it\'s just a RAT WITH A WIG ON!', 'AHHHHH', 'AAAAAHHHHHHHH HELP!', 'HELP MEH!!!!!!!!!!', 'Ok I got it.', 'What now guys?', 'Oh no! My mom sees the wig. I\'m toast!', 'I love toast. I like putting jelly on it', 'I\'m not really Brittish and I don\'t really like toast.', 'Oh NVM I am and I do.', 'Except I ddidn\'t mean \'I Do\' as in I wanna get married, I didn\'t mean it like that.', 'What kinds of foods does you guys like?', 'I personally like cheese, ravioli, and apricots.', 'I\'m listening to Thriller right now.', 'It\'s such a shame that MJ is dead.', 'Dead... Zombies! They\'re cool. Maybe MJ is a zombie and hes harvestin the souls of innocent children grrr!', 'Hey...', 'I forgot NVM', 'So what do you guys like to drink? Twit it to me!', 'If you haven\'t already, go to www.newgrounds.com its a great website. I just love "Banana Dressup" by Mista-Kwong. It\'s amazing.', 'Ok, guys. I have to go to bed now. Cya l8r.', 'Just Kidding... I\'d never stop twitting!', 'It\'s really dark in here now that the lights are off.', 'I think my parents will get mad If I stay up too long. They wouldn\'t want their 30-year-old son twitting all night long.', 'Oh well, it\'s too much fun. I mean--', 'Who doesn\'t want to get constant updates from random people around the world?!?!', 'Guys?', 'GUYS?!?!', 'WHY IS NO ONE THERE?!?!', 'Im gon shoot miself now', 'BANG IM DED U HAPPY NOW?!?1', 'Oh wait', 'You know i not ded...', 'OK GAIZ IM GON DO IT 4 REEL NOW', 'BOOM!', 'U LIEK ME NOW?', 'DARNIT I DID IT AGEN', 'OK I DO IT REELY THIS TIME', 'Bang boom WEE WOO WEE WOO', 'O DARN I gotta stop typin now', 'OOOOOOOOOOOOOOH', 'OH NOES ITS A BRICK AN ITS FALLIN STRATE TOWARD MAH FACE!', 'ONLY loving twatter users can save mah life by twitting!!!!', 'i gon go now an shoot meself for real.'); var curTweet = 0; var userIcon = 'twitter_logo'; var tweetInterval = setInterval(twittie, 2200); noLifeTweetsBox.rowHeight = 45; noLifeTweetsBox.setStyle('themeColor', '0xEFEFEF'); noLifeTweetsBox.cellRenderer = 'MultiLineCell'; noLifeTweetsBox.iconField = 'icon'; arrow1.onRelease = function () { gotoAndStop(5); }; arrow2.onRelease = function () { gotoAndStop(7); }; } instance noLifeTweetsBox of movieClip 353 List { onClipEvent (construct) { multipleSelection = false; rowHeight = 20; } } } movieClip 704 { } movieClip 705 { frame 1 { function twittie() { if (lizzieTweets[curTweet] != undefined) { lizzieTweetsBox.addItemAt(0, {'data': 'lizzie' + curTweet, 'label': lizzieTweets[curTweet], 'icon': userIcon}); ++curTweet; } } clearInterval(tweetInterval); var lizzieTweets = new Array('Hey Minions!', 'Good Day!', 'So today, I was like, at the mall, and like, I saw these shoes, and', 'Like I was like OMG I LOVE THOSE so then my friend Shiela was all like,', '"No you can\'t get those, I want them more than you!"', 'Then I was like, "EXCUSE ME?!?! YOU DON\'T TELL ME WHAT TO DO" So I whacked her in the face n she died.', 'Later my mommie told me to not hit people so hard, but winked at me when the cops left.', 'I later was at a different mall (they banned me from the other one)', 'I saw this cute guy and I was like, "OMG UR CUTE" and I started following him.', 'He was like, "Stop following me ur all wierd" so then I hit him and he died.', 'Now I\'m in a jail cell twitting from my mobil--', 'Hey! Ignore what she just said. She smuggled this mo-bile phone in here!', 'She\'s in the electric chair right now. She\'s about to be shocked...', 'They\'re sponging her up...', 'Oooh! They\'re getting ready to pull the switch...', 'ZZZAAP! ZZZAP!', 'She\'s dead now. See ya you twitting losers.'); var curTweet = 0; var userIcon = 'shopping_icon'; twittie(); var tweetInterval = setInterval(twittie, 2700); lizzieTweetsBox.rowHeight = 45; lizzieTweetsBox.setStyle('themeColor', '0xEFEFEF'); lizzieTweetsBox.cellRenderer = 'MultiLineCell'; lizzieTweetsBox.iconField = 'icon'; arrow1.onRelease = function () { gotoAndStop(5); }; } instance lizzieTweetsBox of movieClip 353 List { onClipEvent (construct) { multipleSelection = false; rowHeight = 20; } } } movieClip 710 { } movieClip 711 { } movieClip 712 { } // unknown tag 88 length 103 movieClip 725 { frame 1 { email_txt.text = _root.user_name + '@pmail.com'; login_btn.onRelease = function () { _parent.gotoAndStop(42); }; } } movieClip 735 { frame 1 { stop(); } } movieClip 737 { } movieClip 743 { frame 1 { as_btn.onRelease = function () { _parent._parent._parent.gotoAndStop(42); }; jp_btn.onRelease = function () { _parent._parent._parent.gotoAndStop(43); }; tc_btn.onRelease = function () { _parent._parent._parent.gotoAndStop(44); }; } } movieClip 744 { frame 1 { menu1._visible = false; enemies.onRollOver = function () { enemies.gotoAndStop(2); menu1._visible = true; }; onEnterFrame = function () { if (!menu1.background_mc.hitTest(_root._xmouse, _root._ymouse, true)) { enemies.gotoAndStop(1); menu1._visible = false; } }; } } movieClip 745 { } movieClip 748 { } movieClip 751 { } movieClip 759 TextArea { #initclip Object.registerClass('TextArea', mx.controls.TextArea); #endinitclip frame 1 { stop(); } } // unknown tag 88 length 248 movieClip 767 { frame 1 { tutLoader.wordWrap = true; tutLoader.setStyle('fontFamily', 'times new roman'); tutLoader.html = true; tutLoader.text = 'LOLOLOLOL'; b1.onRelease = function () { tutLoader.text = '<font face="times new roman"><font size="16"><b>How to Read</b></font>\n\nAre you one of the millions of Americans who can\'t read? Do you want to learn how do read? Well then this is the tutorial for you.\n\nFirst, let\'s define <b>Reading</b>. Reading is a complex cognitive process of decoding symbols for the intention of deriving meaning (reading comprehension) and/or constructing meaning. Written information is received by the retina, processed by the primary visual cortex, and interpreted in Wernicke\'s area. If you can understand this, move on to the next section.\n\nThe process of reading is simple. Just follow the following steps, and you\'ll be a pro in notime! \n\n<li>Open Your Eyes</li><li>Examine the text</li><li>Take note of each individual character.</li><li>Force your brain to recognize the strings of letters as "Words".</li><li>Read each word, stopping to define and understand each one.</li><li>Stop at the period ("."). Take a moment to understand what you just read.</li><li>Move on to the next sentence.</li><li>Repeat.</li>\n\nYou should now a be a professional reader! Go and read some more for practice.'; }; b2.onRelease = function () { tutLoader.text = '<font face="times new roman"><font size="16"><b>Making a Good Flash Game</b></font>\n\nIn the world of Flash Programming, it can be tough to make a game that stands out. But, with my proven methods, I\'ll show you how to make an award-worthy game in <i>minutes</i>. \n\nEveryone knows that hard work, determination, and hours of practice will lead you nowhere. Do you think the creators of games like Sonny or Portal Defenders spent a lot of time on their games? Of course not! They have money to count! I told them my amazing method for creating Flash games, and all they had to do was type a single line.\n\nAre you excited yet? You\'re about to discover my amazing method for creating Flash games. \n \n Ready? \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nKeep Scrolling\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nA little further!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nType this in your actions panel: \nhiImaLoserWhoCannotBeBotheredToSpendAnyTimeOnAGameButIWantInstantFameAndFortuneSoPleaseMakeMeAnAmazingGameThatWillBeOnTheFrontPageOfEveryFlashWebsiteAndWinSoManyAwardsIWillNotKnowWhatToDoWithThem();\n'; }; b3.onRelease = function () { tutLoader.text = '<font face="times new roman"><font size="16"><b>Safe Internet Practices</b></font>\n\n<font size="45">USE COMMON SENSE YOU MORON! IF SOMEONE YOU DON\'T KNOW SENDS YOU AN ATTACHMENT, DO NOT OPEN IT! DON\'T DOWNLOAD EVERYTHING THAT LOOKS COOL! HOW MUCH EASIER COULD IT BE?!?!</font>'; }; b4.onRelease = function () { tutLoader.text = '<font face="times new roman"><font size="16"><b>Stopping Cyberbullies</b></font>\n\nAre you bullied by people whenever you sign into Facebook, Twitter, AIM, 4chan, Gaia, or whatever awful social networkin site you\'re into? Are you tired of the constant insults? Don\'t want to be forced to commit suicide? Well there\'s a simple solution to it all:\n\n <b>Sign off of that website. Seriously, it\'s not that hard.</b>'; }; b5.onRelease = function () { tutLoader.text = '<font face="times new roman"><font size="16"><b>Title</b></font>\n\nParagraph Paragraph Paragraph'; }; b6.onRelease = function () { tutLoader.text = '<font face="times new roman"><font size="16"><b>Title</b></font>\n\nParagraph Paragraph Paragraph'; }; b7.onRelease = function () { tutLoader.text = '<font face="times new roman"><font size="16"><b>Title</b></font>\n\nParagraph Paragraph Paragraph'; }; } instance tutLoader of movieClip 759 TextArea { onClipEvent (construct) { editable = false; html = true; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 770 { } movieClip 771 { frame 1 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 1 { stop(); _parent._parent.url_txt.text = 'http://www.microsoft.com/ia/welcome'; } frame 2 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 2 { _root.themeMusic.stop(); } frame 2 { stop(); _parent._parent.url_txt.text = 'http://www.usa.gov'; } frame 3 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 3 { _root.themeMusic.stop(); } frame 3 { stop(); _parent._parent.url_txt.text = 'http://www.usa.gov/news'; } frame 4 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 4 { _root.themeMusic.stop(); } frame 4 { stop(); _parent._parent.url_txt.text = 'http://www.usa.gov/database'; } frame 5 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 5 { _root.themeMusic.stop(); } frame 5 { stop(); _parent._parent.url_txt.text = 'http://chucknorrisisgonnakillyou.com'; } instance chuckWindow of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'Chuck_Norris_Site'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 6 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 6 { _root.themeMusic.stop(); } frame 6 { stop(); _parent._parent.url_txt.text = 'http://www.smouch.net/lol'; } frame 7 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 7 { _root.themeMusic.stop(); } frame 7 { stop(); _parent._parent.url_txt.text = 'http://www.newgrounds.com'; } instance homeWindow of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'NG_home'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 8 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 8 { _root.themeMusic.stop(); } frame 8 { stop(); _parent._parent.url_txt.text = 'http://www.newgrounds.com/bbs'; } instance bbsWindow of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'NG_forums'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 9 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 9 { _root.themeMusic.stop(); } frame 9 { stop(); _parent._parent.url_txt.text = 'http://www.newgrounds.com/bbs/topic/494922'; } instance bbsWindow1 of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'NG_Forums_NG NEWS'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 10 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 10 { _root.themeMusic.stop(); } frame 10 { stop(); _parent._parent.url_txt.text = 'http://www.newgrounds.com/bbs/topic/495563'; } instance bbsWindow2 of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'NG_Forums_New User'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 11 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 11 { _root.themeMusic.stop(); } frame 11 { stop(); _parent._parent.url_txt.text = 'http://www.newgrounds.com/bbs/topic/460942'; } instance bbsWindow2 of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'NG_Forums_XOXOXOXO'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 12 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 12 { _root.themeMusic.stop(); } frame 12 { stop(); _parent._parent.url_txt.text = 'http://www.newgrounds.com/bbs/topic/223526'; } instance bbsWindow2 of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'NG_Forums_Dumped'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 13 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 13 { _root.themeMusic.stop(); } frame 13 { stop(); _parent._parent.url_txt.text = 'http://www.newgrounds.com/bbs/topic/788843'; } instance bbsWindow2 of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'NG_Forums_Photoshop'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 14 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 14 { _root.themeMusic.stop(); } frame 14 { stop(); _parent._parent.url_txt.text = 'http://www.newgrounds.com/bbs/topic/220012'; } instance bbsWindow2 of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'NG_Forums_Fight'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 15 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 15 { _root.themeMusic.stop(); } frame 15 { stop(); _parent._parent.url_txt.text = 'http://www.newgrounds.com/bbs/topic/582922'; } instance bbsWindow2 of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'NG_Forums_GonnaDoIt'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 16 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 16 { _root.themeMusic.stop(); } frame 16 { stop(); _parent._parent.url_txt.text = 'http://www.newgrounds.com/bbs/topic/2204524'; } instance bbsWindow2 of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'NG_Forums_Halp'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 17 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 17 { _root.themeMusic.stop(); } frame 17 { stop(); _parent._parent.url_txt.text = 'http://www.newgrounds.com/portal/view/300491'; } instance flaWindow of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'NG_Falsch_SpamADay'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 18 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 18 { _root.themeMusic.stop(); } frame 18 { stop(); _parent._parent.url_txt.text = 'http://www.newgrounds.com/portal/view/306201'; } instance flaWindow of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'NG_Falsch_WinEXP'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 19 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 19 { _root.themeMusic.stop(); } frame 19 { stop(); _parent._parent.url_txt.text = 'http://www.newgrounds.com/portal/view/504917'; } instance flaWindow of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'NG_Falsch_AdoozyTut'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 20 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 20 { _root.themeMusic.stop(); } frame 20 { stop(); _parent._parent.url_txt.text = 'http://www.newgrounds.com/portal/view/58212'; } instance flaWindow of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'NG_Falsch_WaterLOL'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 21 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 21 { _root.themeMusic.stop(); } frame 21 { stop(); _parent._parent.url_txt.text = 'http://www.newgrounds.com/portal/view/300491'; } instance flaWindow of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'NG_Falsch_Banana'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 22 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 22 { _root.themeMusic.stop(); } frame 22 { stop(); _parent._parent.url_txt.text = 'http://www.newgrounds.com/portal/view/300491'; } instance flaWindow of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'NG_Falsch_Blank'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 23 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 23 { _root.themeMusic.stop(); } frame 23 { stop(); _parent._parent.url_txt.text = 'http://www.thevalueofpi.com'; } frame 24 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 24 { _root.themeMusic.stop(); } frame 24 { stop(); _parent._parent.url_txt.text = 'http://youfail.net'; } frame 25 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 25 { _root.themeMusic.stop(); } frame 25 { stop(); _parent._parent.url_txt.text = 'error'; } frame 26 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 26 { _root.themeMusic.stop(); } frame 26 { stop(); _parent._parent.url_txt.text = 'http://www.newgrounds.com/downloads'; } instance flaWindow of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'NG_Downloads'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 27 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 27 { _root.themeMusic.stop(); } frame 27 { stop(); _parent._parent.url_txt.text = 'http://www.poogle.com'; } frame 28 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 28 { _root.themeMusic.stop(); } frame 28 { stop(); _parent._parent.url_txt.text = 'http://www.poogle.com/search/archon68+is+amazing'; numResults = 4; poogleSearch.onRelease = function () { if (search_txt.text != '' && search_txt.text != ' ' && search_txt.text != ' ') { gotoAndStop(27 + Math.ceil(Math.random() * numResults)); } }; } instance poogleSearch of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = 'Poogle Search'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 29 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 29 { _root.themeMusic.stop(); } frame 29 { stop(); _parent._parent.url_txt.text = 'http://www.poogle.com/search/'; } frame 30 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 30 { _root.themeMusic.stop(); } frame 30 { stop(); _parent._parent.url_txt.text = 'http://www.poogle.com/search/'; } frame 31 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 31 { _root.themeMusic.stop(); } frame 31 { stop(); _parent._parent.url_txt.text = 'http://www.poogle.com/search'; } frame 32 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 32 { _root.themeMusic.stop(); } frame 32 { stop(); _parent._parent.url_txt.text = 'http://www.ruinscape.com'; } instance flaWindow of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'RuinScape_Home'; hLineScrollSize = 30; hPageScrollSize = 50; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 15; vPageScrollSize = 40; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 33 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 33 { stop(); _parent._parent.url_txt.text = 'http://www.ruinscape.com/member'; } frame 34 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 34 { stop(); _parent._parent.url_txt.text = 'http://www.ruinscape.com/freeuser'; } frame 35 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 35 { stop(); _parent._parent.url_txt.text = 'http://www.twatter.com/home'; } frame 36 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 36 { stop(); _parent._parent.url_txt.text = 'http://www.twatter.com/join'; } frame 37 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 37 { stop(); _parent._parent.url_txt.text = 'http://www.twatter.com/profile'; } frame 38 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 38 { stop(); _parent._parent.url_txt.text = 'http://www.twatter.com/manwhohasnolife'; } frame 39 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 39 { stop(); _parent._parent.url_txt.text = 'http://www.twatter.com/lizzie023'; } frame 40 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 40 { stop(); _parent._parent.url_txt.text = 'http://www.apple.com'; } frame 41 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 41 { stop(); _parent._parent.url_txt.text = 'http://www.footbook.com'; } frame 42 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 42 { stop(); _parent._parent.url_txt.text = 'http://www.footbook.com/adamsapple'; } frame 43 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 43 { stop(); _parent._parent.url_txt.text = 'http://www.footbook.com/joshpeddington'; } frame 44 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 44 { stop(); _parent._parent.url_txt.text = 'http://www.footbook.com/taluscalcaneus'; } frame 45 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 45 { stop(); _parent._parent.url_txt.text = 'http://www.tuts-.com'; } frame 46 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 46 { stop(); _parent._parent.url_txt.text = 'http://www.kinderhumor.com'; } frame 47 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 48 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 49 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } frame 50 { _root.backSite = _root.forwardSite; _root.forwardSite = _currentframe; } } // unknown tag 88 length 83 movieClip 780 { } button 787 { on (press) { gotoAndStop(2); } } button 789 { on (press) { gotoAndStop(1); } } movieClip 790 { frame 1 { stop(); _parent.disabled_mc._visible = false; } frame 2 { stop(); _parent.disabled_mc._visible = true; _parent.notify_mc.play(); _root.InternetNotifyText = 'Windows has ****ed on **per Ultra Safe Censor*ng.'; } } button 801 { on (release) { _parent.play(); } } movieClip 802 { frame 1 { notify_txt.text = _root.InternetNotifyText; } } movieClip 803 { frame 1 { stop(); } frame 10 { stop(); } frame 20 { gotoAndStop(1); } } movieClip 804 { } movieClip 805 InternetAppendage { frame 1 { function gotoSite() { userInput = url_txt.text; userInput = userInput.toLowerCase(); siteMC = pr_internet.sites_mc; ++curSite; switch (userInput) { case 'www.newgrounds.com': siteMC.gotoAndStop(newgrounds_home); break; case 'http://www.newgrounds.com': siteMC.gotoAndStop(newgrounds_home); break; case 'newgrounds.com': siteMC.gotoAndStop(newgrounds_home); break; case 'newgrounds': siteMC.gotoAndStop(newgrounds_home); break; case 'ng.com': siteMC.gotoAndStop(newgrounds_home); break; case 'www.newgrounds.com/bbs': siteMC.gotoAndStop(newgrounds_bbs); break; case 'newgrounds.com/bbs': siteMC.gotoAndStop(newgrounds_bbs); break; case 'www.smouch.net/lol': siteMC.gotoAndStop(rickRoll); break; case 'smouch.net/lol': siteMC.gotoAndStop(rickRoll); break; case 'http://smouch.net/lol': siteMC.gotoAndStop(rickRoll); break; case 'http://www.thevalueofpi.com': siteMC.gotoAndStop(pi); break; case 'www.thevalueofpi.com': siteMC.gotoAndStop(pi); break; case 'thevalueofpi.com': siteMC.gotoAndStop(pi); break; case 'http://www.youfail.net': siteMC.gotoAndStop(failure); break; case 'www.youfail.net': siteMC.gotoAndStop(failure); break; case 'youfail.net': siteMC.gotoAndStop(failure); break; case 'http://chucknorrisisgonnakillyou.com': siteMC.gotoAndStop(chuckNorris); break; case 'http://www.chucknorrisisgonnakillyou.com': siteMC.gotoAndStop(chuckNorris); break; case 'chucknorrisisgonnakillyou.com': siteMC.gotoAndStop(chuckNorris); break; case 'www.chucknorrisisgonnakillyou.com': siteMC.gotoAndStop(chuckNorris); break; case 'http://chucknorris.com': siteMC.gotoAndStop(chuckNorris); break; case 'chucknorris.com': siteMC.gotoAndStop(chuckNorris); break; case 'www.chucknorris.com': siteMC.gotoAndStop(chuckNorris); break; case 'http://www.poogle.com': siteMC.gotoAndStop(poogle); break; case 'www.poogle.com': siteMC.gotoAndStop(poogle); break; case 'poogle.com': siteMC.gotoAndStop(poogle); break; case 'poogle': siteMC.gotoAndStop(poogle); break; case 'www.ruinscape.com': siteMC.gotoAndStop(ruinscape); break; case 'http://www.ruinscape.com': siteMC.gotoAndStop(ruinscape); break; case 'ruinscape.com': siteMC.gotoAndStop(ruinscape); break; case 'runescape.com': siteMC.gotoAndStop(ruinscape); break; case 'http://www.twatter.com': siteMC.gotoAndStop(twatter); break; case 'www.twatter.com': siteMC.gotoAndStop(twatter); break; case 'twatter.com': siteMC.gotoAndStop(twatter); break; case 'twatter': siteMC.gotoAndStop(twatter); break; case 'http://www.apple.com': siteMC.gotoAndStop(apple); break; case 'www.apple.com': siteMC.gotoAndStop(apple); break; case 'apple.com': siteMC.gotoAndStop(apple); break; case 'http://www.footbook.com': siteMC.gotoAndStop(footbook); break; case 'www.footbook.com': siteMC.gotoAndStop(footbook); break; case 'footbook.com': siteMC.gotoAndStop(footbook); break; case 'http://www.kinderhumor.com': siteMC.gotoAndStop(kinder); break; case 'www.kinderhumor.com': siteMC.gotoAndStop(kinder); break; case 'kinderhumor.com': siteMC.gotoAndStop(kinder); break; default: siteMC.gotoAndStop(broken); } } frame.useHandCursor = false; _root.backSite = 1; _root.fwdSite = 1; welcome = 1; chuckNorris = 5; rickRoll = 6; newgrounds_home = 7; newgrounds_bbs = 8; pi = 23; failure = 24; broken = 25; poogle = 27; ruinscape = 32; twatter = 35; apple = 40; footbook = 41; kinder = 46; enterListener = new Object(); enterListener.onKeyDown = function () { var v1 = Selection.getFocus(); v1 = v1.substr(19); if (Key.isDown(13) && v1 == 'url_txt') { gotoSite(); } }; Key.addListener(enterListener); } instance of movieClip 164 { onClipEvent (enterFrame) { this.useHandCursor = false; this.onPress = function () {}; } } instance of movieClip 164 { onClipEvent (enterFrame) { this.useHandCursor = false; this.onPress = function () {}; } } instance of movieClip 164 { onClipEvent (enterFrame) { this.useHandCursor = false; this.onPress = function () {}; } } instance of movieClip 164 { onClipEvent (enterFrame) { this.useHandCursor = false; this.onPress = function () {}; } } instance xBut of movieClip 201 { onClipEvent (load) { this._parent._alpha = 100; this._parent._xscale = 100; this._parent._yscale = 100; alphaMin = 0; XSCALE = 0; YSCALE = 0; } onClipEvent (enterFrame) { if (this._parent._alpha < 0) { --_root.numAppendages; this._parent.removeMovieClip(); } this._parent._alpha -= alphaMin; this._parent._xscale -= XSCALE; this._parent._yscale -= YSCALE; this.onRollOver = function () { this.gotoAndStop(2); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; this.onRollOut = this.onReleaseOutside; this.onRelease = function () { this.gotoAndStop(1); alphaMin = 15; YSCALE = 2.5; XSCALE = 2.5; _root.themeMusic.stop(); }; } } } movieClip 807 { } movieClip 809 { } movieClip 811 { } movieClip 814 { } button 817 { on (press) { spawnInternet(); _parent._parent.play(); } } button 818 { on (press) { spawnDumpster(); _parent._parent.play(); } } button 819 { on (press) { spawnJibberish(); _parent._parent.play(); } } button 820 { on (press) { spawnChat(); _parent._parent.play(); } } button 821 { on (press) { spawnFalsch(); _parent._parent.play(); } } button 822 { on (press) { play(); spawnAwesome(); _parent._parent.play(); } } button 823 { on (press) { play(); spawnNotepad(''); _parent._parent.play(); } } button 824 { on (press) { var winArray = new Array({'name': 'Destiny\'s Betrayal', 'url': 'http://www.newgrounds.com/audio/download/249574'}, {'name': '8-Bit RickRoll', 'url': 'http://www.newgrounds.com/audio/download/147116'}, {'name': 'Windows Vista Symphony', 'url': 'http://www.newgrounds.com/audio/download/211978'}, {'name': 'Heavy Heart', 'url': 'http://www.newgrounds.com/audio/download/257415'}, {'name': 'Piano_Force_{Flux}', 'url': 'http://www.newgrounds.com/audio/download/253568'}, {'name': 'Reasoner- Living Transparent', 'url': 'http://www.newgrounds.com/audio/download/268376'}); play(); spawnMediaPlayer(winArray); _parent._parent.play(); } } movieClip 836 { } movieClip 839 { } movieClip 842 { } movieClip 844 { } movieClip 847 { } movieClip 849 { } movieClip 851 { } movieClip 854 { } movieClip 857 { } movieClip 859 { } // unknown tag 88 length 66 movieClip 863 { } movieClip 869 { } movieClip 870 { frame 1 { option1.useHandCursor = false; option2.useHandCursor = false; option3.useHandCursor = false; option4.useHandCursor = false; option5.useHandCursor = false; option6.useHandCursor = false; option7.useHandCursor = false; option8.useHandCursor = false; option9.useHandCursor = false; } } movieClip 871 { frame 1 { stop(); _parent.allPrograms_txt.text = 'All Programs'; _parent.arrow_mc.gotoAndStop(1); _parent.allPrograms_btn.onRelease = function () { gotoAndStop(2); }; } frame 2 { _parent.allPrograms_txt.text = 'Back'; _parent.arrow_mc.gotoAndStop(2); _parent.allPrograms_btn.onRelease = function () { gotoAndStop(1); }; var pList = prList; var Programs = new Array('Adoozy Falsch CS4 Poofes...', 'Awesome Ball', 'Windows Dumpster', 'Welcome Center', 'Control Panel', 'Internet Appendage', 'Pedosoft Stalkchat', 'Microhard Jibberish', 'Notepad', 'NoTron Virus', 'WD Media Player'); Programs.sort(); var m = 0; while (m < Programs.length) { pList.addItem(Programs[m]); ++m; } var winArray = new Array({'name': 'Destiny\'s Betrayal', 'url': 'http://www.newgrounds.com/audio/download/249574'}, {'name': '8-Bit RickRoll', 'url': 'http://www.newgrounds.com/audio/download/147116'}, {'name': 'Windows Vista Symphony', 'url': 'http://www.newgrounds.com/audio/download/211978'}, {'name': 'Heavy Heart', 'url': 'http://www.newgrounds.com/audio/download/257415'}, {'name': 'Piano_Force_{Flux}', 'url': 'http://www.newgrounds.com/audio/download/253568'}, {'name': 'Reasoner- Living Transparent', 'url': 'http://www.newgrounds.com/audio/download/268376'}); var listHandler = new Object(); listHandler.change = function (evt) { switch (evt.target.selectedItem.label) { case 'Adoozy Falsch CS4 Poofes...': spawnFalsch(); _parent.play(); break; case 'Awesome Ball': spawnAwesome(); _parent.play(); break; case 'Windows Dumpster': spawnDumpster(); _parent.play(); break; case 'Welcome Center': spawnWelcome(); _parent.play(); break; case 'Internet Appendage': spawnInternet(); _parent.play(); break; case 'Pedosoft Stalkchat': spawnChat(); _parent.play(); break; case 'Microhard Jibberish': spawnJibberish(); _parent.play(); break; case 'Control Panel': spawnControlPanel(); _parent.play(); break; case 'Notepad': spawnNotepad(''); _parent.play(); break; case 'NoTron Virus': spawnVirus(); _parent.play(); break; case 'WD Media Player': spawnMediaPlayer(winArray); _parent.play(); break; default: trace('unhandled event: ' + evt.target.selectedItem.data); } }; pList.addEventListener('change', listHandler); } instance prList of movieClip 353 List { onClipEvent (construct) { multipleSelection = false; rowHeight = 20; } } } movieClip 924 { frame 1 { stop(); } } movieClip 937 { frame 1 { stop(); } } movieClip 939 StartMenu { frame 1 { stop(); } frame 1 { stop(); } instance of movieClip 809 { onClipEvent (load) { this._visible = false; } } frame 8 { allPrograms_btn.useHandCursor = false; } frame 8 { removeMC.onDragOver = function () { play(); }; removeMC.onRollOver = removeMC.onDragOver; removeMC.useHandCursor = false; invisible.useHandCursor = false; } frame 8 { function fadeIcon(frame) { iconSet.gotoAndStop(frame); iconSet._alpha = 0; iconSet.fade(100, 5, false); } stop(); computer.onRollOver = function () { fadeIcon(2); }; computer.onRelease = function () { spawnExplorer(2); play(); }; documents.onRollOver = function () { fadeIcon(3); }; documents.onRelease = function () { spawnExplorer(7); play(); }; pictures.onRollOver = function () { fadeIcon(4); }; pictures.onRelease = function () { spawnExplorer(9); play(); }; recentItems.onRollOver = function () { fadeIcon(5); }; recentItems.onRelease = function () { var v1 = mx.controls.Menu.createMenu(); v1.show(326, 303); v1.addMenuItem({'label': 'No Recent Items', 'instanceName': 'none'}); }; games.onRollOver = function () { fadeIcon(6); }; games.onRelease = function () { spawnExplorer(10); }; virusProtection.onRollOver = function () { fadeIcon(7); }; virusProtection.onRelease = function () { spawnVirus(); }; controlPanel.onRollOver = function () { fadeIcon(8); }; controlPanel.onRelease = function () { spawnControlPanel(); play(); }; helpAndSupport.onRollOver = function () { fadeIcon(9); }; helpAndSupport.onRelease = function () { spawnWelcome(); }; windowsUpdate.onRollOver = function () { fadeIcon(10); }; windowsUpdate.onRelease = function () { createError('Windows Doors just came out... why would you need an update?', 'OK', null, false, 'Cancel', null); }; windowsUpdate.onRollOut = function () { fadeIcon(1); }; helpAndSupport.onRollOut = windowsUpdate.onRollOut; controlPanel.onRollOut = windowsUpdate.onRollOut; PLACEHOLDER.onRollOut = windowsUpdate.onRollOut; games.onRollOut = windowsUpdate.onRollOut; recentItems.onRollOut = windowsUpdate.onRollOut; pictures.onRollOut = windowsUpdate.onRollOut; documents.onRollOut = windowsUpdate.onRollOut; computer.onRollOut = windowsUpdate.onRollOut; arrowBut.onRelease = function () { var v1 = mx.controls.Menu.createMenu(); v1.show(325, 513); v1.addMenuItem({'label': 'No Secrets Here', 'instanceName': 'nothing'}); v1.addMenuItem({'label': 'Go Away', 'instanceName': 'nothin'}); }; logoffBut.onRelease = function () { logOff(); }; } frame 15 { removeMovieClip(_root.start_menu); } } movieClip 942 twatterMyIcon { } movieClip 945 shopping_icon { } movieClip 946 MultiLineCell { #initclip Object.registerClass('MultiLineCell', MultiLineCell); #endinitclip } movieClip 947 { } movieClip 948 { } movieClip 950 { } // unknown tag 88 length 197 movieClip 955 { } movieClip 959 { } movieClip 962 { } movieClip 964 { } movieClip 967 { } movieClip 975 { } movieClip 979 { } movieClip 980 { } movieClip 981 { } movieClip 985 { } movieClip 987 { } movieClip 989 { } movieClip 993 game_avoider { frame 1 { stop(); var nowPlaying = false; start.onRollOver = function () { nowPlaying = true; }; exit.onRollOver = function () { nowPlaying = false; nextFrame(); }; onEnterFrame = function () { if (nowPlaying) { wall._visible = true; exit._visible = true; exit.onRelease = function () { nowPlaying = false; }; wall.onRelease = exit.onRelease; wall.onPress = exit.onRelease; wall.onDragOver = exit.onRelease; wall.onRollOver = exit.onRelease; } else { wall._visible = false; exit._visible = false; } }; } frame 4 { var hauntedMP3 = new Sound(); hauntedMP3.attachSound('haunted'); hauntedMP3.start(); hauntedMP3.onSoundComplete = function () { hauntedMP3.start(); }; } frame 4 { stop(); var nowPlaying = false; start.onRollOver = function () { nowPlaying = true; }; exit.onRollOver = function () { nowPlaying = false; nextFrame(); }; onEnterFrame = function () { if (nowPlaying) { frWall._visible = true; wall._visible = true; exit._visible = true; exit.onRelease = function () { nowPlaying = false; }; wall.onRelease = exit.onRelease; wall.onPress = exit.onRelease; wall.onDragOver = exit.onRelease; wall.onRollOver = exit.onRelease; frWall.setMask(flashlight); } else { frWall._visible = false; wall._visible = false; exit._visible = false; flashlight._visible = false; } flashlight._x = _xmouse; flashlight._y = _ymouse; }; } frame 6 { hauntedMP3.stop(); } frame 6 { stop(); var nowPlaying = false; start.onRollOver = function () { nowPlaying = true; }; exit.onRollOver = function () { nowPlaying = false; nextFrame(); }; onEnterFrame = function () { if (nowPlaying) { wall._visible = true; exit._visible = true; exit.onRelease = function () { nowPlaying = false; }; wall.onRelease = exit.onRelease; wall.onPress = exit.onRelease; wall.onDragOver = exit.onRelease; wall.onRollOver = exit.onRelease; } else { wall._visible = false; exit._visible = false; } }; } frame 7 { stop(); var nowPlaying = false; start.onRollOver = function () { nowPlaying = true; }; exit.onRollOver = function () { nowPlaying = false; nextFrame(); }; onEnterFrame = function () { if (nowPlaying) { wall._visible = true; exit._visible = true; exit.onRelease = function () { nowPlaying = false; }; wall.onRelease = exit.onRelease; wall.onPress = exit.onRelease; wall.onDragOver = exit.onRelease; wall.onRollOver = exit.onRelease; } else { wall._visible = false; exit._visible = false; } }; } frame 8 { stop(); } } movieClip 1010 RuinScape_Home { frame 1 { memberFrame = 33; freeFrame = 34; free_btn.onRelease = function () { _parent._parent.gotoAndStop(freeFrame); }; members_btn.onRelease = function () { _parent._parent.gotoAndStop(memberFrame); }; } } button 1021 { on (press) { this.startDrag(); this.bringToFront(); } on (release) { this.stopDrag(); } } movieClip 1024 TreeDataProvider { #initclip Object.registerClass('TreeDataProvider', mx.controls.treeclasses.TreeDataProvider); #endinitclip } movieClip 1026 TreeDisclosureClosed { } movieClip 1028 TreeDisclosureOpen { } movieClip 1030 TreeFolderClosed { } movieClip 1032 TreeFolderOpen { } movieClip 1034 TreeNodeIcon { } movieClip 1035 TreeAssets { } movieClip 1036 TreeRow { #initclip Object.registerClass('TreeRow', mx.controls.treeclasses.TreeRow); #endinitclip frame 1 { stop(); } } movieClip 1037 Tree { #initclip Object.registerClass('Tree', mx.controls.Tree); #endinitclip frame 1 { stop(); } instance of movieClip 353 List { onClipEvent (initialize) { multipleSelection = false; rowHeight = 20; } } } movieClip 1043 { } button 1051 { on (release) { gotoAndStop(_root.forwardSiteExp); } } button 1052 { on (release) { gotoAndStop(_root.backSiteExp); } } movieClip 1055 { } movieClip 1057 { } movieClip 1059 { } movieClip 1061 { } movieClip 1063 { } movieClip 1065 { } movieClip 1073 { } movieClip 1078 { } movieClip 1082 { } button 1086 { on (release) { gotoAndStop(1); } } movieClip 1088 { } movieClip 1093 { } movieClip 1096 { } movieClip 1100 { } movieClip 1103 { } button 1107 { on (release) { gotoAndStop(2); } } movieClip 1117 { } button 1121 { on (release) { gotoAndStop(3); } } movieClip 1133 { } movieClip 1142 { } movieClip 1145 { } movieClip 1147 { } movieClip 1154 { } movieClip 1158 { } button 1163 { on (release) { gotoAndStop(9); } } movieClip 1166 { } movieClip 1168 { } button 1169 { on (release) { gotoAndStop(14); } } button 1170 { on (release) { gotoAndStop(16); } } movieClip 1174 { } button 1175 { on (release) { gotoAndStop(15); } } button 1176 { on (release) { gotoAndStop(13); } } button 1180 { on (release) { gotoAndStop(16); } } button 1181 { on (release) { gotoAndStop(14); } } button 1185 { on (release) { gotoAndStop(13); } } button 1186 { on (release) { gotoAndStop(15); } } movieClip 1188 WinExplorer { frame 1 { stop(); } frame 1 { _root.backSiteExp = _root.forwardSiteExp; _root.forwardSiteExp = _currentframe; } frame 1 { stop(); frame.useHandCursor = false; fileTree.setStyle('folderClosedIcon', 'mini_folder'); fileTree.setStyle('folderOpenIcon', 'mini_folder'); fileTree.setStyle('defaultLeafIcon', 'mini_text'); var explorerDP = new XML(); explorerDP.addTreeNode('Desktop'); explorerDP.addTreeNode('Computer'); var ComputerNode = explorerDP.getTreeNodeAt(1); ComputerNode.addTreeNode('Local Disk (C:)'); var C_DriveNode = ComputerNode.getTreeNodeAt(0); C_DriveNode.addTreeNode('Documents'); C_DriveNode.addTreeNode('WINDOWS'); var DocumentsNode = C_DriveNode.getTreeNodeAt(0); DocumentsNode.addTreeNode('Pictures'); var PicturesNode = DocumentsNode.getTreeNodeAt(0); DocumentsNode.addTreeNode('Games'); DocumentsNode.addTreeNode('Music'); DocumentsNode.addTreeNode(_root.user_name + '\'s Folder'); var UserNode = DocumentsNode.getTreeNodeAt(3); ComputerNode.addTreeNode('Red Ray Disk (E:)'); ComputerNode.addTreeNode('DVD/CD-RW Drive (F:)'); setIcons = function () { fileTree.setIcon(fileTree.getTreeNodeAt(0), 'mini_desktop'); fileTree.setIcon(fileTree.getTreeNodeAt(1), 'mini_computer'); var v1 = fileTree.getTreeNodeAt(1); fileTree.setIcon(v1.getTreeNodeAt(0), 'mini_vistadrive'); fileTree.setIcon(v1.getTreeNodeAt(1), 'mini_drive'); fileTree.setIcon(v1.getTreeNodeAt(2), 'mini_cddrive'); fileTree.setIcon(v1.getTreeNodeAt(3), 'mini_cddrive'); var v3 = v1.getTreeNodeAt(0); fileTree.setIcon(v3.getTreeNodeAt(0), 'mini_documents'); var v2 = v3.getTreeNodeAt(0); fileTree.setIcon(v2.getTreeNodeAt(0), 'mini_pictures'); fileTree.setIcon(v2.getTreeNodeAt(1), 'mini_videos'); fileTree.setIcon(v2.getTreeNodeAt(2), 'mini_music'); var v4 = v2.getTreeNodeAt(0); }; fileTree.dataProvider = explorerDP; setIcons(); var fileListener = new Object(); fileListener.change = function (evt) { var v2 = evt.target.selectedNode.attributes.label; switch (v2) { case 'Desktop': gotoAndStop(1); break; case 'Computer': gotoAndStop(2); break; case 'Local Disk (C:)': gotoAndStop(3); break; case 'omf': gotoAndStop(4); break; case 'DVD-RAM Drive (E:)': gotoAndStop(5); break; case 'DVD/CD-RW Drive (F:)': gotoAndStop(6); break; case 'Documents': gotoAndStop(7); break; case 'WINDOWS': gotoAndStop(8); break; case 'Pictures': gotoAndStop(9); break; case 'Games': gotoAndStop(10); break; case 'Music': gotoAndStop(11); break; case _root.user_name + '\'s Folder': gotoAndStop(12); } }; fileTree.addEventListener('change', fileListener); fileTree.hScrollPolicy = 'on'; fileTree.maxHPosition = 50; } frame 1 { computer_btn.onRelease = function () { gotoAndStop(2); }; } instance xBut of movieClip 201 { onClipEvent (load) { this._parent._alpha = 100; this._parent._xscale = 100; this._parent._yscale = 100; alphaMin = 0; XSCALE = 0; YSCALE = 0; } onClipEvent (enterFrame) { if (this._parent._alpha < 0) { --_root.numExps; this._parent.removeMovieClip(); } this._parent._alpha -= alphaMin; this._parent._xscale -= XSCALE; this._parent._yscale -= YSCALE; this.onRollOver = function () { this.gotoAndStop(2); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; this.onRollOut = this.onReleaseOutside; this.onRelease = function () { this.gotoAndStop(1); alphaMin = 15; YSCALE = 2.5; XSCALE = 2.5; }; } } instance fileTree of movieClip 1037 Tree { onClipEvent (construct) { multipleSelection = false; rowHeight = 20; } } frame 2 { _root.backSiteExp = _root.forwardSiteExp; _root.forwardSiteExp = _currentframe; } frame 2 { cDrive_btn.onRelease = function () { gotoAndStop(3); }; dDrive_btn.onRelease = function () { gotoAndStop(4); }; eDrive_btn.onRelease = function () { createError('You can\'t play Red Ray disks in Windows! Try inserting an XBox game instead.', 'OK', null, true, 'OK', null); }; fDrive_btn.onRelease = function () { gotoAndStop(6); }; } frame 3 { _root.backSiteExp = _root.forwardSiteExp; _root.forwardSiteExp = _currentframe; } frame 3 { docs_btn.onRelease = function () { gotoAndStop(7); }; movies_btn.onRelease = function () { gotoAndStop(10); }; music_btn.onRelease = function () { gotoAndStop(11); }; pics_btn.onRelease = function () { gotoAndStop(9); }; win_btn.onRelease = function () { gotoAndStop(8); }; } frame 4 { _root.backSiteExp = _root.forwardSiteExp; _root.forwardSiteExp = _currentframe; } frame 5 { _root.backSiteExp = _root.forwardSiteExp; _root.forwardSiteExp = _currentframe; } frame 6 { _root.backSiteExp = _root.forwardSiteExp; _root.forwardSiteExp = _currentframe; } frame 7 { _root.backSiteExp = _root.forwardSiteExp; _root.forwardSiteExp = _currentframe; } frame 7 { userFolder.text = _root.user_name + '\'s Folder'; var work = 'IN PRISON... You spend the majority of your time in an 8x10 cell.\nAT WORK... You spend most of your time in a 6x8 cubicle.\n\nIN PRISON... You get three meals a day.\nAT WORK... You only get a break for 1 meal and you have to pay for it.\n\nIN PRISON... You get time off for good behavior.\nAT WORK... You get rewarded for good behavior with more work.\n\nIN PRISON... A guard locks and unlocks all the doors for you.\nAT WORK... You must carry around a security card and unlock and open all the doors yourself.\n\nIN PRISON... You can watch TV and play games.\nAT WORK... You get fired for watching TV and playing games.\n\nIN PRISON... You get your own toilet.\nAT WORK... You have to share.\n\nIN PRISON... They allow your family and friends to visit.\nAT WORK... You cannot even speak to your family and friends.\n\nIN PRISON... All expenses are paid by tax payers with no work required.\nAT WORK... You get to pay all the expenses to go to work and then they deduct taxes from your salary to pay for prisoners.'; var elevator = 'What to do on an elevator: \n\n1. Make race car noises when anyone gets on or off.\n2. Blow your nose and offer to show the contents of your Kleenex to other passengers.\n3. Grimace painfully while smacking your forehead and muttering: "Shut up, all of you just shut UP!"\n4. Whistle the first seven notes of "It\'s a Small World" incessantly.\n5. Sell Girl Scout cookies.\n6. On a long ride, sway side to side at the natural frequency of the elevator.\n7. Shave.\n8. Crack open your briefcase or purse, and while peering inside ask: "Got enough air in there?"\n9. Offer name tags to everyone getting on the elevator. Wear yours upside-down.\n10. Stand silent and motionless in the corner, facing the wall, without getting off.\n11. When arriving at your floor, grunt and strain to yank the doors open, then act embarrassed when they open by themselves.\n12. Lean over to another passenger and whisper: "Noogie patrol coming!"\n13. Greet everyone getting on the elevator with a warm handshake and ask them to call you Admiral.\n14. One word: Flatulence!\n15. On the highest floor, hold the door open and demand that it stay open until you hear the penny you dropped down the shaft go "plink" at the bottom.\n16. Do Tai Chi exercises.\n17. Stare, grinning, at another passenger for a while, and then announce: "I\'ve got new socks on!"\n18. When at least 8 people have boarded, moan from the back: "Oh, not now, damn motion sickness!"\n19. Give religious tracts to each passenger.\n20. Meow occasionally.\n21. Bet the other passengers you can fit a quarter in your nose.\n22. Frown and mutter "gotta go, gotta go" then sigh and say "oops!"\n23. Show other passengers a wound and ask if it looks infected.\n24. Sing "Mary had a little lamb" while continually pushing buttons.\n25. Holler "Chutes away!" whenever the elevator descends.\n26. Walk on with a cooler that says "human head" on the side.\n27. Stare at another passenger for a while, then announce "You\'re one of THEM!" and move to the far corner of the elevator.\n28. Burp, and then say "mmmm...tasty!"\n29. Leave a box between the doors.\n30. Ask each passenger getting on if you can push the button for them.\n31. Wear a puppet on your hand and talk to other passengers "through" it.\n32. Start a sing-along.\n33. When the elevator is silent, look around and ask "is that your beeper?"\n34. Play the harmonica.\n35. Shadow box.\n36. Say "Ding!" at each floor.\n37. Lean against the button panel.\n38. Say "I wonder what all these do" and push the red buttons.\n39. Listen to the elevator walls with a stethoscope.\n40. Draw a little square on the floor with chalk and announce to the other passengers that this is your "personal space."\n41. Bring a chair along.\n42. Take a bite of a sandwich and ask another passenger: "Wanna see wha in muh mouf?"\n43. Blow spit bubbles.\n44. Pull your gum out of your mouth in long strings.\n45. Announce in a demonic voice: "I must find a more suitable host body."\n46. Carry a blanket and clutch it protectively.\n47. Make explosion noises when anyone presses a button.\n48. Wear "X-Ray Specs" and leer suggestively at other passengers.\n49. Stare at your thumb and say "I think it\'s getting larger.'; var vistaJokes = 'Vista_Error: 001 Vista loaded - Warning your computer is now in danger\n\nVista_Error: 002 No Error - Check again in 10 seconds\n\nVista_Error: 003 Dynamic linking error - Your mistake is now in every file\n\nVista_Error: 004 Erroneous error - Nothing is wrong (just testing)\n\nVista_Error: 005 Multitasking attempted - System confused\n\nVista_Error: 006 Kelvin error: Type Mismatch - phone Kevlar\n\nVista_Error: 007 System price error - Inadequate money spent on hardware\n\nVista_Error: 008 Broken window. Path not found - phone Glazier\n\nVista_Error: 009 Horrible bug encountered - Press F13 for more help\n\nVista_Error: 00A Invalid property assignment. Promotional literature overflow - Mailbox full\n\nVista_Error: 00B Inadequate disk space - Free at least 50GB\n\nVista_Error: 00C Memory hog error - More RAM needed. More! More! More!\n\nVista_Error: 00D Window closed - Do not look outside\n\nVista_Error: 00E Unexplained error - Please tell us how this happened\n\nVista_Error: 010 Reserved for future mistakes by our developers\n\nVista_Error: 013 Unexpected error - Huh ?\n\nVista_Error: 014 Keyboard locked - Try anything you can think of.\n\nVista_Error: 018 Unrecoverable error - System has been destroyed. Buy a new one. Old windows licence is not valid anymore.\n\nVista_Error: 019 User error - Not our fault. Is Not! Is Not!\n\nVista_Error: 01A Operating system overwritten - Please reinstall all your software. We are terribly sorry.\n\nVista_Error: 01B Illegal error - You are not allowed to get this error. Next time you will get a penalty for that.\n\nVista_Error: 01C Uncertainty error - Uncertainty may be inadequate.\n\nVista_Error: 01D System crash - We are unable to figure out our own code.\n\nVista_Error: 012 Virus error - A virus has been activated in a dos-box. The virus, however, requires Windows. All tasks will be closed automatically and the virus will be reactivated.\n\nVista_Error: 01E Timing error - Please wait. And wait. And wait. And wait.\n\nVista_Error: 01F Reserved for future mistakes of our developers.\n\nVista_Error: 020 Error recording error codes - Remaining errors will be lost.\n\nVista_Error: 079 Mouse not found - A mouse driver has not been installed. Please click the left mouse button to continue.\n\nVista_Error: 103 Error buffer overflow - Too many errors encountered. Next error will not be displayed or recorded.\n\nVista_Error: 678 This will end your Windows session. Do you want to play another game?\n\nVista_Error: 683 Time out error - Operator fell asleep while waiting for the system to complete boot procedure.\n\nVista_Error: 815 Insufficient Memory - Only 5,000 Gigawatts available'; but1_btn.onRelease = function () { spawnNotepad(work); }; but2_btn.onRelease = function () { spawnNotepad(elevator); }; but3_btn.onRelease = function () { spawnNotepad(vistaJokes); }; but4_btn.onRelease = function () { gotoAndStop(12); }; } frame 8 { _root.backSiteExp = _root.forwardSiteExp; _root.forwardSiteExp = _currentframe; } frame 9 { _root.backSiteExp = _root.forwardSiteExp; _root.forwardSiteExp = _currentframe; stop(); frame.useHandCursor = false; fileTree.setStyle('folderClosedIcon', 'mini_folder'); fileTree.setStyle('folderOpenIcon', 'mini_folder'); fileTree.setStyle('defaultLeafIcon', 'mini_text'); var explorerDP = new XML(); explorerDP.addTreeNode('Desktop'); explorerDP.addTreeNode('Computer'); var ComputerNode = explorerDP.getTreeNodeAt(1); ComputerNode.addTreeNode('Local Disk (C:)'); var C_DriveNode = ComputerNode.getTreeNodeAt(0); C_DriveNode.addTreeNode('Documents'); C_DriveNode.addTreeNode('WINDOWS'); var DocumentsNode = C_DriveNode.getTreeNodeAt(0); DocumentsNode.addTreeNode('Pictures'); var PicturesNode = DocumentsNode.getTreeNodeAt(0); DocumentsNode.addTreeNode('Games'); DocumentsNode.addTreeNode('Music'); DocumentsNode.addTreeNode(_root.user_name + '\'s Folder'); var UserNode = DocumentsNode.getTreeNodeAt(3); ComputerNode.addTreeNode('Red Ray Disk (E:)'); ComputerNode.addTreeNode('DVD/CD-RW Drive (F:)'); setIcons = function () { fileTree.setIcon(fileTree.getTreeNodeAt(0), 'mini_desktop'); fileTree.setIcon(fileTree.getTreeNodeAt(1), 'mini_computer'); var v1 = fileTree.getTreeNodeAt(1); fileTree.setIcon(v1.getTreeNodeAt(0), 'mini_vistadrive'); fileTree.setIcon(v1.getTreeNodeAt(1), 'mini_drive'); fileTree.setIcon(v1.getTreeNodeAt(2), 'mini_cddrive'); fileTree.setIcon(v1.getTreeNodeAt(3), 'mini_cddrive'); var v3 = v1.getTreeNodeAt(0); fileTree.setIcon(v3.getTreeNodeAt(0), 'mini_documents'); var v2 = v3.getTreeNodeAt(0); fileTree.setIcon(v2.getTreeNodeAt(0), 'mini_pictures'); fileTree.setIcon(v2.getTreeNodeAt(1), 'mini_videos'); fileTree.setIcon(v2.getTreeNodeAt(2), 'mini_music'); var v4 = v2.getTreeNodeAt(0); }; fileTree.dataProvider = explorerDP; setIcons(); var fileListener = new Object(); fileListener.change = function (evt) { var v2 = evt.target.selectedNode.attributes.label; switch (v2) { case 'Desktop': gotoAndStop(1); break; case 'Computer': gotoAndStop(2); break; case 'Local Disk (C:)': gotoAndStop(3); break; case 'omf': gotoAndStop(4); break; case 'DVD-RAM Drive (E:)': gotoAndStop(5); break; case 'DVD/CD-RW Drive (F:)': gotoAndStop(6); break; case 'Documents': gotoAndStop(7); break; case 'WINDOWS': gotoAndStop(8); break; case 'Pictures': gotoAndStop(9); break; case 'Games': gotoAndStop(10); break; case 'Music': gotoAndStop(11); break; case _root.user_name + '\'s Folder': gotoAndStop(12); } }; fileTree.addEventListener('change', fileListener); fileTree.hScrollPolicy = 'on'; fileTree.maxHPosition = 50; } frame 9 { but1_btn.onRelease = function () { gotoAndStop(14); }; but2_btn.onRelease = function () { gotoAndStop(15); }; but3_btn.onRelease = function () { gotoAndStop(16); }; but4_btn.onRelease = function () { gotoAndStop(13); }; } frame 10 { _root.backSiteExp = _root.forwardSiteExp; _root.forwardSiteExp = _currentframe; } frame 10 { but1_btn.onRelease = function () { spawnMovie('button', 'game_button'); }; but2_btn.onRelease = function () { spawnMovie('mouse avoider', 'game_avoider'); }; but3_btn.onRelease = function () { gotoAndStop(16); }; but4_btn.onRelease = function () { gotoAndStop(13); }; } frame 11 { _root.backSiteExp = _root.forwardSiteExp; _root.forwardSiteExp = _currentframe; } frame 11 { var chimes = new Array({'name': 'Chimes', 'linkage': 'chimes'}); var cIdiot = new Array({'name': 'Canadian Idiot', 'url': 'http://hem.bredband.net/jsundblom3/canadian_idiot.mp3'}); var winArray = new Array({'name': 'Destiny\'s Betrayal', 'url': 'http://www.newgrounds.com/audio/download/249574'}, {'name': '8-Bit RickRoll', 'url': 'http://www.newgrounds.com/audio/download/147116'}, {'name': 'Windows Vista Symphony', 'url': 'http://www.newgrounds.com/audio/download/211978'}); but1_btn.onRelease = function () { spawnMediaPlayer(cIdiot); }; but2_btn.onRelease = function () { spawnMediaPlayer(chimes); }; but3_btn.onRelease = function () { spawnMediaPlayer(winArray); }; } frame 12 { _root.backSiteExp = _root.forwardSiteExp; _root.forwardSiteExp = _currentframe; } frame 12 { destination_field.text = 'Computer\\C:\\Documents\\' + _root.user_name + '\'s Folder\\'; } frame 13 { _root.backSiteExp = _root.forwardSiteExp; _root.forwardSiteExp = _currentframe; } frame 13 { stop(); } frame 14 { _root.backSiteExp = _root.forwardSiteExp; _root.forwardSiteExp = _currentframe; } frame 14 { stop(); } frame 15 { _root.backSiteExp = _root.forwardSiteExp; _root.forwardSiteExp = _currentframe; } frame 15 { stop(); } frame 16 { _root.backSiteExp = _root.forwardSiteExp; _root.forwardSiteExp = _currentframe; } frame 16 { stop(); } } movieClip 1192 { } movieClip 1214 { frame 1 { stop(); } } movieClip 1229 { frame 1 { stop(); } } movieClip 1232 { } movieClip 1235 { } movieClip 1236 { frame 1 { onEnterFrame = function () { playHead._x = playMain._width; }; } } movieClip 1244 { frame 1 { stop(); } } button 1258 { on (release) { _root.tray.push({'mc': this._name, 'title': title_txt.text}); this._visible = false; } } movieClip 1261 { } movieClip 1263 { } movieClip 1264 { } movieClip 1265 { frame 1 { function changeBars() { if (_parent.playingMedia == true) { var i = 0; while (i <= numBars) { var randomNumNum = Math.random(); (eval('bar' + i))._height = (eval('bar' + i))._height * randomNumNum + (Math.random() * 400 - 100) * (1 - randomNumNum); randColor = Math.floor(Math.random() * colors.length); colorTo(colors[randColor], (eval('bar' + i)).barColor); ++i; } } } var numBars = 12; var colors = new Array('0xFF0000', '0x990000', '0x880000', '0x770000', '0x660000', '0x550000', '0x440000', '0x330000', '0x220000', '0x110000'); var changeBarInterval = setInterval(changeBars, 250); colorTo = function (theHex, theMc) { colorful = new Color(theMc); colorful.setRGB(theHex); }; } } movieClip 1269 MediaPlayer { frame 1 { function loadSong(listID) { var v1 = playlist_arr[listID].linkage; trace(v1 + ' = SongLinkage'); var v2 = playlist_arr[listID].url; trace(v2 + ' = SongURL'); var v4 = playlist_arr[listID].varName; trace(v4 + ' = SongVar'); song.stop(); song = new Sound(); if (v1 != undefined) { song.attachSound(v1); trace('Loaded from Library'); } else { if (v2 != undefined) { song.loadSound(v2); trace('Loaded from website.'); } else { createError('An error has occured while loading your song.', 'OK', null, false, 'OK', null); } } song.setVolume(100); curPosition = 0; resetTimer(); } function populatePlaylist() { var v1 = 0; while (v1 < playlist_arr.length) { playlist_txt.text += playlist_arr[v1].name + '\n'; ++v1; } } function startup() { loadSong(curSong); populatePlaylist(); resetTimer(); } function nextSong() { song.stop(); playingMedia = false; if (curSong == playlist_arr.length - 1) { curSong = 0; } else { ++curSong; } loadSong(curSong); curPosition = 0; trace(curSong); trace(playlist_arr[curSong].name); resetTimer(); } function prevSong() { song.stop(); playingMedia = false; if (curSong == 0) { curSong = playlist_arr.length - 1; } else { --curSong; } loadSong(curSong); curPosition = 0; trace(curSong); trace(playlist_arr[curSong].name); resetTimer(); } function addSeconds() { if (playingMedia) { ++seconds; } } function resetTimer() { seconds = 0; minutes = 0; } var playingMedia = false; var song = new Sound(); var curPosition = 0; var repeat = true; var loaded = false; var seconds = 0; var secZero = ''; var minutes = 0; var minZero = ''; var curSong = 0; var myTimer = setInterval(addSeconds, 1000); song.stop(); onEnterFrame = function () { if (playlist_arr != undefined && !loaded) { startup(); trace('startup'); loaded = true; } songName_txt.text = 'Current Song is "' + playlist_arr[curSong].name + '"'; if (seconds == 60) { ++minutes; seconds = 0; } if (seconds < 10) { secZero = '0'; } else { secZero = ''; } if (minutes < 10) { minZero = '0'; } else { minZero = ''; } songPosition_txt.text = minZero + minutes + ':' + secZero + seconds; if (playingMedia) { playPause.gotoAndStop(2); } else { playPause.gotoAndStop(1); } playPause.playBut.onRelease = function () { playingMedia = true; song.start(curPosition); trace('Started'); }; playPause.pauseBut.onRelease = function () { playingMedia = false; trace(song.position); curPosition = song.position / 1000; trace(curPosition); song.stop(); }; song.onSoundComplete = function () { curPosition = 0; song.stop(); if (repeat) { song.start(curPosition); playingMedia = true; } else { playingMedia = false; } resetTimer(); }; playMarker.playMain._width = (song.position / song.duration) * 752; songPlayed = song.position; if (repeat) { repeatBut.gotoAndStop(2); } else { repeatBut.gotoAndStop(1); } repeatBut.toToggle.onRelease = function () { repeat = true; }; repeatBut.toNormal.onRelease = function () { repeat = false; }; }; nextSong_btn.onRelease = function () { nextSong(); }; prevSong_btn.onRelease = function () { prevSong(); }; } instance of movieClip 1244 { onClipEvent (load) { this._parent._alpha = 100; this._parent._xscale = 100; this._parent._yscale = 100; alphaMin = 0; XSCALE = 0; YSCALE = 0; } onClipEvent (enterFrame) { if (this._parent._alpha < 0) { --_root.numPlayers; this._parent.removeMovieClip(); } this._parent._alpha -= alphaMin; this._parent._xscale -= XSCALE; this._parent._yscale -= YSCALE; this.onRollOver = function () { this.gotoAndStop(2); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; this.onRollOut = this.onReleaseOutside; this.onRelease = function () { this.gotoAndStop(1); alphaMin = 25; YSCALE = 2.5; XSCALE = 2.5; }; } } } movieClip 1272 mini_music { } movieClip 1275 mini_videos { } movieClip 1278 mini_image { } movieClip 1281 mini_song { } movieClip 1284 mini_desktop { } movieClip 1287 mini_documents { } movieClip 1290 mini_pictures { } movieClip 1293 mini_games { } movieClip 1296 mini_vistadrive { } movieClip 1299 mini_controlpanel { } movieClip 1302 mini_folder { } movieClip 1305 mini_cddrive { } movieClip 1308 mini_drive { } movieClip 1311 mini_user { } movieClip 1314 mini_text { } movieClip 1317 mini_computer { } movieClip 1326 { frame 1 { var features = features; features.addItem('Fading Windows'); features.addItem('More Websites'); features.addItem('NG Radio App'); features.addItem('Windows Explorer'); features.addItem('A Cool Author'); features.addItem('Silly, Pointless, and Random Programs'); features.addItem('Balls that are awesome'); features.addItem('More Programs'); features.addItem('NG Parody'); features.addItem('Customizable Desktop'); features.addItem('Font Viewer'); features.addItem('You Can Apply Filters to the Game'); features.addItem('The Annoying Paperclip Guy'); features.addItem('Pretty Start Menu'); features.addItem('Dynamic Windows'); features.addItem('Multiple Windows Open at Once'); features.addItem('Cool Vista Style'); features.addItem('The Vista Theme'); features.addItem('It\'s not really Windows'); features.addItem('Editable Desktop Icons'); features.addItem('Movable Desktop Icons'); features.addItem('A Hilarious Chatbot!'); features.addItem('Screensaver'); features.addItem('Cool Installation Screen'); features.addItem('Login/User System'); features.addItem('Made in Flash CS4 (Ugh, I hate it)'); features.addItem('Made with love!'); features.addItem('Made with hate!'); features.addItem('This game is shaken, not stirred'); features.addItem('Easy-to-Read fonts!'); features.addItem('The Stage is 800x600'); features.addItem('This is an illusion!'); features.addItem('Errors.'); features.addItem('Errors.'); features.addItem('Errors. Lots and lots and lots of errors.'); features.addItem('Homer Simpson approves this game'); features.sortItemsBy('label', 'ASC'); } instance features of movieClip 353 List { onClipEvent (construct) { multipleSelection = false; rowHeight = 20; } } } button 1336 { on (press) { this.startDrag(); this.bringToFront(); } on (release) { this.stopDrag(); } } movieClip 1339 WelcomeCenter { frame 1 { xBut.useHandCursor = false; maxBut.useHandCursor = false; minBut.useHandCursor = false; } frame 1 { WelcomeFrame.useHandCursor = false; } instance xBut of movieClip 201 { onClipEvent (load) { this._parent._alpha = 100; this._parent._xscale = 100; this._parent._yscale = 100; alphaMin = 0; XSCALE = 0; YSCALE = 0; } onClipEvent (enterFrame) { if (this._parent._alpha < 0) { --_root.numWelcome; this._parent.removeMovieClip(); } this._parent._alpha -= alphaMin; this._parent._xscale -= XSCALE; this._parent._yscale -= YSCALE; this.onRollOver = function () { this.gotoAndStop(2); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; this.onRollOut = this.onReleaseOutside; this.onRelease = function () { this.gotoAndStop(1); alphaMin = 15; YSCALE = 2.5; XSCALE = 2.5; }; } } } movieClip 1348 { frame 1 { stop(); } } movieClip 1352 mc_error { instance of movieClip 1348 { onClipEvent (load) { this._parent._alpha = 100; this._parent._xscale = 100; this._parent._yscale = 100; alphaMin = 0; XSCALE = 0; YSCALE = 0; } onClipEvent (enterFrame) { if (this._parent._alpha < 0) { --_root.numWindows; this._parent.removeMovieClip(); } this._parent._alpha -= alphaMin; this._parent._xscale -= XSCALE; this._parent._yscale -= YSCALE; this.onRollOver = function () { this.gotoAndStop(2); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; this.onRollOut = this.onReleaseOutside; this.onPress = function () { this.gotoAndStop(3); }; this.onRelease = function () { this.gotoAndStop(1); alphaMin = 15; YSCALE = 2.5; XSCALE = 2.5; }; } } instance of movieClip 201 { onClipEvent (load) { this._parent._alpha = 100; this._parent._xscale = 100; this._parent._yscale = 100; alphaMin = 0; XSCALE = 0; YSCALE = 0; } onClipEvent (enterFrame) { if (this._parent._alpha < 0) { --_root.numWindows; this._parent.removeMovieClip(); } this._parent._alpha -= alphaMin; this._parent._xscale -= XSCALE; this._parent._yscale -= YSCALE; this.onRollOver = function () { this.gotoAndStop(2); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; this.onRollOut = this.onReleaseOutside; this.onRelease = function () { this.gotoAndStop(1); alphaMin = 15; YSCALE = 2.5; XSCALE = 2.5; }; } } } button 1355 { on (press) { this.startDrag(); this.bringToFront(); } on (release) { this.stopDrag(); } } movieClip 1363 StepDownArrowDisabled { } movieClip 1365 StepThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 1366 StepDownArrowDown { } movieClip 1367 StepDownArrowOver { } movieClip 1368 StepDownArrowUp { } movieClip 1370 StepUpArrowDisabled { } movieClip 1371 StepUpArrowDown { } movieClip 1372 StepUpArrowOver { } movieClip 1373 StepUpArrowUp { } movieClip 1375 StepTrack { } movieClip 1376 NumericStepperAssets { } movieClip 1377 NumericStepper { #initclip Object.registerClass('NumericStepper', mx.controls.NumericStepper); #endinitclip frame 1 { stop(); } instance of movieClip 285 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 356 TextInput { onClipEvent (initialize) { editable = true; password = false; text = ''; maxChars = null; restrict = 'null'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 1385 { } movieClip 1389 { } movieClip 1393 { } movieClip 1397 { } movieClip 1401 { } movieClip 1407 CheckFalseDisabled { } movieClip 1409 CheckThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 1411 CheckFalseDown { } movieClip 1412 CheckFalseOver { } movieClip 1414 CheckFalseUp { } movieClip 1416 CheckTrueDisabled { } movieClip 1417 CheckTrueDown { } movieClip 1418 CheckTrueOver { } movieClip 1419 CheckTrueUp { } movieClip 1420 CheckBoxAssets { #initclip mx.controls.CheckBox.prototype.adjustFocusRect = function () { var v4 = this._parent.focus_mc; var v2 = this.iconName; var v3 = this.getStyle('themeColor'); if (v3 == undefined) { v3 = 8453965; } var v8 = v2._width + 4; var v5 = v2._height + 4; v4.setSize(v8, v5, 0, 100, v3); var v7 = v2._x; var v6 = v2._y; v4.move(this.x - 2 + v7, this.y + v6 - 2); }; #endinitclip frame 1 { } } movieClip 1421 CheckBox { #initclip Object.registerClass('CheckBox', mx.controls.CheckBox); #endinitclip frame 1 { stop(); } instance of movieClip 289 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 1442 ComboBase { #initclip mx.controls.listclasses.DataSelector.Initialize((Object(mx.controls.ComboBase)).prototype); Object.registerClass('ComboBase', mx.controls.ComboBase); #endinitclip frame 1 { stop(); } instance of movieClip 285 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 356 TextInput { onClipEvent (initialize) { editable = true; password = false; text = ''; maxChars = null; restrict = 'null'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 1445 { } movieClip 1447 ComboDownArrowUp { } movieClip 1448 ComboDownArrowDisabled { #initclip Object.registerClass('ComboDownArrowDisabled', mx.controls.SimpleButton); #endinitclip } movieClip 1450 ComboThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 1451 ComboDownArrowDown { } movieClip 1452 ComboDownArrowOver { } movieClip 1453 ComboAssets { #initclip mx.controls.ComboBox.prototype.downArrowUpName = 'ComboDownArrowUp'; mx.controls.ComboBox.prototype.downArrowDownName = 'ComboDownArrowDown'; mx.controls.ComboBox.prototype.downArrowOverName = 'ComboDownArrowOver'; mx.controls.ComboBox.prototype.downArrowDisabledName = 'ComboDownArrowDisabled'; mx.controls.ComboBox.prototype.wrapDownArrowButton = false; mx.controls.ComboBox.prototype.dropDownBorderStyle = 'solid'; mx.controls.ComboBox.prototype.adjustFocusRect = function () { var v2 = this.getStyle('themeColor'); if (v2 == undefined) { v2 = 8453965; } var v3 = this._parent.focus_mc; v3.setSize(this.width + 4, this.height + 4, {'bl': 0, 'tl': 0, 'tr': 5, 'br': 5}, 100, v2); v3.move(this.x - 2, this.y - 2); }; #endinitclip frame 1 { } } movieClip 1454 ComboBox { #initclip Object.registerClass('ComboBox', mx.controls.ComboBox); #endinitclip frame 1 { stop(); } instance of movieClip 353 List { onClipEvent (initialize) { multipleSelection = false; rowHeight = 20; } } } movieClip 1483 { } movieClip 1485 { } movieClip 1486 { frame 1 { this.ratio = Math.round(dragger._x * 100 / line._width); dragger.onPress = function () { this.startDrag(true, 0, 0, line._width, 0); this.onEnterFrame = function () { ratio = Math.round(this._x * 100 / line._width); }; }; dragger.onReleaseOutside = function () { stopDrag(); }; dragger.onRelease = dragger.onReleaseOutside; onEnterFrame = function () {}; setRatio = function (newRatio) { dragger._x = newRatio * line._width / 100; ratio = Math.round(dragger._x * 100 / line._width); }; dragger.useHandCursor = false; } } movieClip 1492 { frame 1 { stop(); movement = 10; scaling.value = _root.customBG._xscale; vista.onPress = function () { _root.desktop_BG.gotoAndStop(1); _root.desktop_BG._visible = true; }; xp.onPress = function () { _root.desktop_BG.gotoAndStop(4); _root.desktop_BG._visible = true; }; mac.onPress = function () { _root.desktop_BG.gotoAndStop(2); _root.desktop_BG._visible = true; }; space.onPress = function () { _root.desktop_BG.gotoAndStop(3); _root.desktop_BG._visible = true; }; loadIt.onRelease = function () { _root.desktop_BG._visible = false; _root.customBG.loadMovie(bgURL.text); _root.customBG._x = 0; _root.customBG._y = 0; _root.customBG._yscale = 100; _root.customBG._xscale = 100; }; xPlus.onRelease = function () { _root.customBG._x += movement; }; xMinus.onRelease = function () { _root.customBG._x -= movement; }; yPlus.onRelease = function () { _root.customBG._y += movement; }; yMinus.onRelease = function () { _root.customBG._y -= movement; }; onEnterFrame = function () { _root.customBG._yscale = scaling.value; _root.customBG._xscale = _root.customBG._yscale; }; vista.useHandCursor = false; space.useHandCursor = false; mac.useHandCursor = false; xp.useHandCursor = false; } instance bgURL of movieClip 356 TextInput { onClipEvent (construct) { editable = true; password = false; text = ''; maxChars = 0; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance loadIt of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = 'Load it!'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance scaling of movieClip 1377 NumericStepper { onClipEvent (construct) { maximum = 1000; minimum = 1; stepSize = 10; value = 100; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance xPlus of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = 'X+'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance xMinus of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = 'X-'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance yPlus of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = 'Y+'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance yMinus of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = 'Y-'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 2 { rootFilters = new Array(null, null, null, null, null, null, null, null); onEnterFrame = function () { _root.filters = rootFilters; if (grayscale_cb.value == true) { rootFilters[0] = _root.Grayscale_Filter; } else { if (grayscale_cb.value == false) { rootFilters[0] = null; } } if (blur_cb.value == true) { rootFilters[1] = _root.Blur_Filter; } else { if (blur_cb.value == false) { rootFilters[1] = null; } } if (emboss_cb.value == true) { rootFilters[2] = _root.Emboss_Filter; } else { if (emboss_cb.value == false) { rootFilters[2] = null; } } if (sharpen_cb.value == true) { rootFilters[3] = _root.Sharpen_Filter; } else { if (sharpen_cb.value == false) { rootFilters[3] = null; } } if (negative_cb.value == true) { rootFilters[4] = _root.Negative_Filter; } else { if (negative_cb.value == false) { rootFilters[4] = null; } } if (drugs_cb.value == true) { rootFilters[5] = _root.Drugs_Filter; } else { if (drugs_cb.value == false) { rootFilters[5] = null; } } if (double_cb.value == true) { rootFilters[6] = _root.Double_Filter; } else { if (grayscale_cb.value == false) { rootFilters[6] = null; } } if (edges_cb.value == true) { rootFilters[7] = _root.EdgeDetection_Filter; } else { if (edges_cb.value == false) { rootFilters[7] = null; } } if (supercontrast_cb.value == true) { _root.blendMode = 14; } else { if (supercontrast_cb.value == false) { _root.blendMode = 1; } } }; } instance grayscale_cb of movieClip 1421 CheckBox { onClipEvent (construct) { label = ''; labelPlacement = 'right'; selected = false; } } instance blur_cb of movieClip 1421 CheckBox { onClipEvent (construct) { label = ''; labelPlacement = 'right'; selected = false; } } instance emboss_cb of movieClip 1421 CheckBox { onClipEvent (construct) { label = ''; labelPlacement = 'right'; selected = false; } } instance sharpen_cb of movieClip 1421 CheckBox { onClipEvent (construct) { label = ''; labelPlacement = 'right'; selected = false; } } instance negative_cb of movieClip 1421 CheckBox { onClipEvent (construct) { label = ''; labelPlacement = 'right'; selected = false; } } instance drugs_cb of movieClip 1421 CheckBox { onClipEvent (construct) { label = ''; labelPlacement = 'right'; selected = false; } } instance double_cb of movieClip 1421 CheckBox { onClipEvent (construct) { label = ''; labelPlacement = 'right'; selected = false; } } instance edges_cb of movieClip 1421 CheckBox { onClipEvent (construct) { label = ''; labelPlacement = 'right'; selected = false; } } instance supercontrast_cb of movieClip 1421 CheckBox { onClipEvent (construct) { label = ''; labelPlacement = 'right'; selected = false; } } frame 3 { user_fonts = TextField.getFontList(); user_fonts.sort(); fontBox.dataProvider = user_fonts; userFont = new TextFormat(); onEnterFrame = function () { userFont.font = fontBox.value; fontPreview.setTextFormat(userFont); }; } instance fontBox of movieClip 1454 ComboBox { onClipEvent (construct) { editable = false; rowCount = 5; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 4 { var sound1 = new Sound(); sound1.attachSound('chimes'); soundBut1.onRelease = function () { sound1.start(0, 0); }; var sound2 = new Sound(); sound2.attachSound('chord'); soundBut2.onRelease = function () { sound2.start(0, 0); }; var sound3 = new Sound(); sound3.attachSound('ding'); soundBut3.onRelease = function () { sound3.start(0, 0); }; var sound4 = new Sound(); sound4.attachSound('notify'); soundBut4.onRelease = function () { sound4.start(0, 0); }; var sound5 = new Sound(); sound5.attachSound('Vista_MailBeep'); soundBut5.onRelease = function () { sound5.start(0, 0); }; var sound6 = new Sound(); sound6.attachSound('Vista_SecurityBand'); soundBut6.onRelease = function () { sound6.start(0, 0); }; var sound7 = new Sound(); sound7.attachSound('Vista_SystemAsterisk'); soundBut7.onRelease = function () { sound7.start(0, 0); }; var sound8 = new Sound(); sound8.attachSound('Vista_SystemExit'); soundBut8.onRelease = function () { sound8.start(0, 0); }; var sound9 = new Sound(); sound9.attachSound('Vista_SystemHand'); soundBut9.onRelease = function () { sound9.start(0, 0); }; var sound10 = new Sound(); sound10.attachSound('Vista_WindowsLogon'); soundBut10.onRelease = function () { sound10.start(0, 0); }; } frame 5 { stop(); showSide.value = _root.sidebar._visible; opacitySlider.setRatio(_root.sidebar.bg._alpha); onEnterFrame = function () { _root.sidebar.bg._alpha = opacitySlider.ratio; _root.sidebar._visible = showSide.value; }; } instance showSide of movieClip 1421 CheckBox { onClipEvent (construct) { label = ''; labelPlacement = 'right'; selected = true; } } } button 1495 { on (release) { program.gotoAndStop(1); } } button 1496 { on (release) { program.gotoAndStop(2); } } button 1497 { on (release) { program.gotoAndStop(3); } } button 1498 { on (release) { program.gotoAndStop(4); } } button 1499 { on (release) { program.gotoAndStop(5); } } movieClip 1509 ControlPanel { frame 1 { xBut.useHandCursor = false; minBut.useHandCursor = false; maxBut.useHandCursor = false; frame.useHandCursor = false; } frame 1 { nav1.useHandCursor = false; nav2.useHandCursor = false; nav3.useHandCursor = false; nav4.useHandCursor = false; nav5.useHandCursor = false; nav6.useHandCursor = false; nav7.useHandCursor = false; } instance xBut of movieClip 201 { onClipEvent (load) { this._parent._alpha = 100; this._parent._xscale = 100; this._parent._yscale = 100; alphaMin = 0; XSCALE = 0; YSCALE = 0; } onClipEvent (enterFrame) { if (this._parent._alpha < 0) { --_root.numPanels; this._parent.removeMovieClip(); } this._parent._alpha -= alphaMin; this._parent._xscale -= XSCALE; this._parent._yscale -= YSCALE; this.onRollOver = function () { this.gotoAndStop(2); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; this.onRollOut = this.onReleaseOutside; this.onRelease = function () { this.gotoAndStop(1); alphaMin = 15; YSCALE = 2.5; XSCALE = 2.5; }; } } } button 1529 { on (release) { notepad_mc.gotoAndStop(2); } } button 1530 { on (release) { ie_mc.gotoAndStop(2); } } // unknown tag 88 length 63 button 1535 { on (release) { typeText_txt.text = ''; gotoAndStop(1); } } movieClip 1536 { frame 1 { stop(); } instance of movieClip 669 UIScrollBar { onClipEvent (construct) { _targetInstanceName = 'typeText_txt'; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 1544 { } button 1547 { on (release) { gotoAndStop(2); } } button 1551 { on (release) { gotoAndStop(3); } } button 1553 { on (release) { gotoAndStop(1); } } button 1555 { on (release) { gotoAndStop(3); } } movieClip 1561 { } button 1563 { on (press) { start2000.play(); } } movieClip 1582 { frame 1 { stop(); } frame 2 { stop(); b6.onRelease = function () { _parent.gotoAndStop(2); }; b5.onRelease = b6.onRelease; b4.onRelease = b6.onRelease; b3.onRelease = b6.onRelease; b2.onRelease = b6.onRelease; b1.onRelease = b6.onRelease; } frame 3 { gotoAndStop(1); } } movieClip 1585 { frame 1 { stop(); } } movieClip 1587 { frame 1 { stop(); } } button 1588 { on (release) { gotoAndStop(1); } } movieClip 1589 { frame 1 { stop(); } } movieClip 1592 { frame 1 { time = new Date(); var minutes = time.getMinutes(); var hours = time.getHours(); if (hours < 12) { ampm = 'AM'; } else { ampm = 'PM'; } while (hours > 12) { hours -= 12; } if (hours < 10) { hours = '0' + hours; } if (minutes < 10) { minutes = '0' + minutes; } clock_txt.text = hours + ':' + minutes + ' ' + ampm; } frame 2 { gotoAndPlay(1); } } movieClip 1593 { } movieClip 1605 NG_Falsch_WinEXP { } movieClip 1611 { } movieClip 1613 { } movieClip 1615 { } movieClip 1617 { } movieClip 1619 { } // unknown tag 88 length 84 movieClip 1624 { } movieClip 1649 { } movieClip 1656 { } movieClip 1659 { } movieClip 1661 { } movieClip 1663 { } movieClip 1667 { } movieClip 1672 { } movieClip 1674 { } movieClip 1675 { } movieClip 1687 NG_Falsch_AdoozyTut { } movieClip 1693 { } movieClip 1695 { } movieClip 1697 { } movieClip 1699 { } movieClip 1701 { } movieClip 1703 { } movieClip 1705 { } movieClip 1707 { } movieClip 1709 { } movieClip 1711 { } movieClip 1712 { instance of movieClip 1693 { onClipEvent (enterFrame) { this.onPress = function () { startDrag(this, false, -226.6, -131.2, 223.3, 123.8); }; this.onReleaseOutside = function () { this.stopDrag(); }; this.onRelease = this.onReleaseOutside; } } instance of movieClip 1695 { onClipEvent (enterFrame) { this.onPress = function () { startDrag(this, false, -226.6, -131.2, 223.3, 123.8); }; this.onReleaseOutside = function () { this.stopDrag(); }; this.onRelease = this.onReleaseOutside; } } instance of movieClip 1697 { onClipEvent (enterFrame) { this.onPress = function () { startDrag(this, false, -226.6, -131.2, 223.3, 123.8); }; this.onReleaseOutside = function () { this.stopDrag(); }; this.onRelease = this.onReleaseOutside; } } instance of movieClip 1699 { onClipEvent (enterFrame) { this.onPress = function () { startDrag(this, false, -226.6, -131.2, 223.3, 123.8); }; this.onReleaseOutside = function () { this.stopDrag(); }; this.onRelease = this.onReleaseOutside; } } instance of movieClip 1701 { onClipEvent (enterFrame) { this.onPress = function () { startDrag(this, false, -226.6, -131.2, 223.3, 123.8); }; this.onReleaseOutside = function () { this.stopDrag(); }; this.onRelease = this.onReleaseOutside; } } instance of movieClip 1703 { onClipEvent (enterFrame) { this.onPress = function () { startDrag(this, false, -226.6, -131.2, 223.3, 123.8); }; this.onReleaseOutside = function () { this.stopDrag(); }; this.onRelease = this.onReleaseOutside; } } instance of movieClip 1705 { onClipEvent (enterFrame) { this.onPress = function () { startDrag(this, false, -226.6, -131.2, 223.3, 123.8); }; this.onReleaseOutside = function () { this.stopDrag(); }; this.onRelease = this.onReleaseOutside; } } instance of movieClip 1707 { onClipEvent (enterFrame) { this.onPress = function () { startDrag(this, false, -226.6, -131.2, 223.3, 123.8); }; this.onReleaseOutside = function () { this.stopDrag(); }; this.onRelease = this.onReleaseOutside; } } instance of movieClip 1709 { onClipEvent (enterFrame) { this.onPress = function () { startDrag(this, false, -226.6, -131.2, 223.3, 123.8); }; this.onReleaseOutside = function () { this.stopDrag(); }; this.onRelease = this.onReleaseOutside; } } instance of movieClip 1711 { onClipEvent (enterFrame) { this.onPress = function () { startDrag(this, false, -226.6, -131.2, 223.3, 123.8); }; this.onReleaseOutside = function () { this.stopDrag(); }; this.onRelease = this.onReleaseOutside; } } instance of movieClip 1695 { onClipEvent (enterFrame) { this.onPress = function () { startDrag(this, false, -226.6, -131.2, 223.3, 123.8); }; this.onReleaseOutside = function () { this.stopDrag(); }; this.onRelease = this.onReleaseOutside; } } instance of movieClip 1697 { onClipEvent (enterFrame) { this.onPress = function () { startDrag(this, false, -226.6, -131.2, 223.3, 123.8); }; this.onReleaseOutside = function () { this.stopDrag(); }; this.onRelease = this.onReleaseOutside; } } instance of movieClip 1699 { onClipEvent (enterFrame) { this.onPress = function () { startDrag(this, false, -226.6, -131.2, 223.3, 123.8); }; this.onReleaseOutside = function () { this.stopDrag(); }; this.onRelease = this.onReleaseOutside; } } } movieClip 1723 NG_Falsch_Banana { } movieClip 1728 { } button 1772 { on (release) { gotoAndPlay(1); } } movieClip 1774 { frame 50 { stop(); } } movieClip 1785 NG_Falsch_WaterLOL { } movieClip 1789 { } movieClip 1791 { } movieClip 1803 NG_Falsch_SpamADay { } movieClip 1813 { } movieClip 1815 NG_Submission { } button 1823 { on (press) { this.startDrag(); this.bringToFront(); } on (release) { this.stopDrag(); } } movieClip 1846 { frame 1 { stop(); } } button 1856 { on (release) { _root.tray.push({'mc': this._name, 'title': title_txt.text}); this._visible = false; } } movieClip 1857 AdoozyFalsch { frame 74 { stop(); frame.useHandCursor = false; frame_mc.useHandCursor = false; stagePane.hPosition = 750; stagePane.vPosition = 530; zoomBox.addItem({'data': 25, 'label': '25%'}); zoomBox.addItem({'data': 50, 'label': '50%'}); zoomBox.addItem({'data': 75, 'label': '75%'}); zoomBox.addItem({'data': 100, 'label': '100%'}); zoomBox.addItem({'data': 200, 'label': '200%'}); zoomBox.addItem({'data': 400, 'label': '400%'}); zoomBox.editable = true; zoomBox.selectedIndex = 3; blendBox.addItem({'data': 1, 'label': 'Normal'}); blendBox.addItem({'data': 2, 'label': 'Layer'}); blendBox.addItem({'data': 6, 'label': 'Darken'}); blendBox.addItem({'data': 3, 'label': 'Multiply'}); blendBox.addItem({'data': 5, 'label': 'Lighten'}); blendBox.addItem({'data': 4, 'label': 'Screen'}); blendBox.addItem({'data': 13, 'label': 'Overlay'}); blendBox.addItem({'data': 14, 'label': 'Hard Light'}); blendBox.addItem({'data': 8, 'label': 'Add'}); blendBox.addItem({'data': 9, 'label': 'Subtract'}); blendBox.addItem({'data': 7, 'label': 'Difference'}); blendBox.addItem({'data': 10, 'label': 'Invert'}); blendBox.addItem({'data': 11, 'label': 'Alpha'}); blendBox.addItem({'data': 12, 'label': 'Erase'}); var PropertiesFormat = new TextFormat(); PropertiesFormat.color = 5275079; PropertiesFormat.size = 11; PropertiesFormat.font = '_sans'; PropertiesFormat.underline = true; prop_xPos.setTextFormat(PropertiesFormat); prop_yPos.setTextFormat(PropertiesFormat); prop_width.setTextFormat(PropertiesFormat); prop_height.setTextFormat(PropertiesFormat); prop_alpha.setTextFormat(PropertiesFormat); prop_xPos.maxChars = 3; prop_xPos.restrict = '0-9'; prop_yPos.maxChars = 3; prop_yPos.restrict = '0-9'; prop_width.maxChars = 5; prop_width.restrict = '0-9'; prop_height.maxChars = 5; prop_height.restrict = '0-9'; prop_alpha.maxChars = 3; prop_alpha.restrict = '0-9'; count = 0; onEnterFrame = function () { var v3 = zoomBox.value; var v4 = v3.substr(0, v3.length - 1); stagePane.content.whiteStage._yscale = v4; stagePane.content.whiteStage._xscale = stagePane.content.whiteStage._yscale; stagePane.hPosition = stagePane.content._xscale * stagePane.content.width / 2; stagePane.vPosition = stagePane.content._yscale * stagePane.content.height / 2; ++count; if (count >= 300) { count = 0; createError('The application Adoozy Falsch CS4 has unexpectedly quit. That\'ll teach you to buy bugged sofware.', 'Continue', null, false, 'OK', null); removeMovieClip(this); --_root.numFalsches; } }; } instance of movieClip 164 { onClipEvent (enterFrame) { this.useHandCursor = false; this.onPress = function () {}; } } instance of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'Falsch_Timeline'; hLineScrollSize = 5; hPageScrollSize = 20; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 5; vPageScrollSize = 20; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance stagePane of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'FalschStage'; hLineScrollSize = 5; hPageScrollSize = 20; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 5; vPageScrollSize = 20; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance zoomBox of movieClip 1454 ComboBox { onClipEvent (construct) { editable = false; rowCount = 5; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance filterPane of movieClip 438 ScrollPane { onClipEvent (construct) { contentPath = 'Falsch_filters'; hLineScrollSize = 5; hPageScrollSize = 20; hScrollPolicy = 'auto'; scrollDrag = false; vLineScrollSize = 5; vPageScrollSize = 20; vScrollPolicy = 'auto'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance blendBox of movieClip 1454 ComboBox { onClipEvent (construct) { editable = false; rowCount = 5; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance prop_order of movieClip 1377 NumericStepper { onClipEvent (construct) { maximum = 10; minimum = 0; stepSize = 1; value = 0; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 1846 { onClipEvent (load) { this._parent._alpha = 100; this._parent._xscale = 100; this._parent._yscale = 100; alphaMin = 0; XSCALE = 0; YSCALE = 0; } onClipEvent (enterFrame) { if (this._parent._alpha < 0) { --_root.numFalsches; this._parent.removeMovieClip(); } this._parent._alpha -= alphaMin; this._parent._xscale -= XSCALE; this._parent._yscale -= YSCALE; this.onRollOver = function () { this.gotoAndStop(2); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; this.onRollOut = this.onReleaseOutside; this.onRelease = function () { this.gotoAndStop(1); alphaMin = 15; YSCALE = 2.5; XSCALE = 2.5; }; } } } movieClip 1877 { } button 1878 { on (release) { _root.desktop_BG.gotoAndStop(6); } } button 1879 { on (release) { _root.desktop_BG.gotoAndStop(5); } } movieClip 1880 NG_Downloads { } button 1883 { on (release) { _parent._parent.gotoAndStop(9); } } button 1884 { on (release) { _parent._parent.gotoAndStop(10); } } button 1885 { on (release) { _parent._parent.gotoAndStop(11); } } button 1886 { on (release) { _parent._parent.gotoAndStop(12); } } button 1887 { on (release) { _parent._parent.gotoAndStop(13); } } button 1888 { on (release) { _parent._parent.gotoAndStop(14); } } button 1889 { on (release) { _parent._parent.gotoAndStop(15); } } button 1890 { on (release) { _parent._parent.gotoAndStop(16); } } movieClip 1949 NG_forums { } movieClip 1950 grabber_favorites { instance favorites_list of movieClip 353 List { onClipEvent (construct) { multipleSelection = false; rowHeight = 20; } } } movieClip 1951 grabber_history { frame 1 { history_list.dataProvider = _root.history_dp; } instance history_list of movieClip 353 List { onClipEvent (construct) { multipleSelection = false; rowHeight = 20; } } } movieClip 1968 { frame 1 { function submitReply() { var v1 = new LoadVars(); v1.custid = custid.text; var botReply = new XML(); v1.botid = 'aff82087be37536d'; v1.input = user.text; v1.sendAndLoad('http://www.pandorabots.com/pandora/talk-xml', botReply); reply.text = 'Awaiting reply....'; replyText += '<br><b>You: </b>' + user.text; user.text = ''; botReply.onLoad = function (success) { if (success) { custid.text = botReply.firstChild.attributes.custid; myLocal_so.data.name = custid.text; replyText += '<br><b>Archon68: </b>' + botReply.firstChild.firstChild.nextSibling.firstChild.nodeValue; reply.htmlText = replyText; reply.scroll = reply.textHeight; replyScroll.scrollPosition = reply.maxscroll - 1; } }; } onLoad = function () { replyText = ''; }; onEnterFrame = function () {}; Selection.setFocus(user); myLocal_so = sharedobject.getLocal('custid'); custid.text = myLocal_so.data.name; defaultText = new Array('<b>Archon68: </b>My name is Archon68. Don\'t insult me or I\'ll whack you with a wrench.', '<b>Archon68: </b>This is Archon68. How may I hurt you?', '<b>Archon68: </b>Hey! It\'s Archon68. What are you typing at?', '<b>Archon68: </b>Archon68 here. Whazzup?', '<b>Archon68: </b>Hello. I\'m Archon68.', '<b>Archon68: </b>Why you come on my yard and kick my dog? WHY?'); var RandomNum = Math.floor(Math.random() * defaultText.length); var defaultResponse = defaultText[RandomNum]; replyText = defaultResponse; reply.htmlText = replyText; reply.scroll = reply.textHeight; replyScroll.scrollPosition = reply.maxscroll - 1; var enterListenerChat = new Object(); enterListenerChat.onKeyDown = function () { var v1 = Selection.getFocus(); v1 = v1.substr(19); if (Key.isDown(13)) { submitReply(); } }; Key.addListener(enterListenerChat); submit_btn.onRelease = function () { if (user.text != '') { submitReply(); } }; } instance replyScroll of movieClip 669 UIScrollBar { onClipEvent (construct) { _targetInstanceName = 'reply'; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 1971 PedoStalk { frame 1 { frame.useHandCursor = false; } instance xBut of movieClip 201 { onClipEvent (load) { this._parent._alpha = 100; this._parent._xscale = 100; this._parent._yscale = 100; alphaMin = 0; XSCALE = 0; YSCALE = 0; } onClipEvent (enterFrame) { if (this._parent._alpha < 0) { --_root.numStalkers; this._parent.removeMovieClip(); } this._parent._alpha -= alphaMin; this._parent._xscale -= XSCALE; this._parent._yscale -= YSCALE; this.onRollOver = function () { this.gotoAndStop(2); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; this.onRollOut = this.onReleaseOutside; this.onRelease = function () { this.gotoAndStop(1); alphaMin = 15; YSCALE = 2.5; XSCALE = 2.5; }; } } } movieClip 1974 Falsch_Timeline { } movieClip 1976 { } movieClip 1978 { } movieClip 1980 { } movieClip 1982 { } movieClip 1984 { } movieClip 1986 { } movieClip 1989 { } movieClip 1992 { } movieClip 1993 { frame 1 { function SetFilters() { if (blur_checkBox.value == true) { ObjectBlur.blurX = blur_blurX.text; ObjectBlur.blurY = blur_blurY.text; ObjectBlur.quality = 10; } else { if (blur_checkBox.value == false) { ObjectBlur.blurX = 0; ObjectBlur.blurY = 0; ObjectBlur.quality = 10; } } ObjectGlow.alpha = glow_checkBox.value; ObjectGlow.blurX = glow_blurX.text; ObjectGlow.blurY = glow_blurY.text; ObjectGlow.color = glow_color.text; ObjectGlow.inner = glow_inner.value; ObjectGlow.strength = 1; ObjectShadow.alpha = dropShadow_checkBox.value; ObjectShadow.distance = shadow_distance.text; ObjectShadow.blurX = shadow_blurX.text; ObjectShadow.blurY = shadow_blurY.text; ObjectShadow.angle = shadow_angle.text; ObjectShadow.inner = shadow_inner.value; selectedObj.filters = [ObjectBlur, ObjectGlow, ObjectShadow]; } function GetFilters() {} function SetPropertiesPanel() { prop_xPos.text = selectedObj._x; prop_yPos.text = selectedObj._y; prop_width.text = selectedObj._width; prop_height.text = selectedObj._height; prop_alpha.text = selectedObj._alpha; prop_xscale.text = selectedObj._xscale; prop_yscale.text = selectedObj._yscale; prop_order.value = selectedObj.getDepth(); } function GetBlendMode() { BlendObj = new String(selectedObj.blendMode); if (BlendObj == 'normal') { return 1; } else { if (BlendObj == 'layer') { return 2; } else { if (BlendObj == 'multiply') { return 3; } else { if (BlendObj == 'screen') { return 4; } else { if (BlendObj == 'lighten') { return 5; } else { if (BlendObj == 'darken') { return 6; } else { if (BlendObj == 'difference') { return 7; } else { if (BlendObj == 'add') { return 8; } else { if (BlendObj == 'subtract') { return 9; } else { if (BlendObj == 'invert') { return 10; } else { if (BlendObj == 'alpha') { return 11; } else { if (BlendObj == 'erase') { return 12; } else { if (BlendObj == 'overlay') { return 13; } else { if (BlendObj == 'hardlight') { return 14; } } } } } } } } } } } } } } } function SetBlendMode() { var v1 = GetBlendMode(); prop_blendMode.selectedIndex = v1; } var ObjectBlur = new flash.filters.BlurFilter(); var ObjectGlow = new flash.filters.GlowFilter(); var ObjectShadow = new flash.filters.DropShadowFilter(); selectedObj = new MovieClip(); selectedObj.filters = [ObjectBlur, ObjectGlow, ObjectShadow]; selectedFilters = new Array(selectedObj.filters); BoundingBox._visible = false; BoundingBoxCircle._visible = false; selectionCross._visible = false; stage_mc.useHandCursor = false; prop_xPos = _parent._parent._parent.prop_xPos; prop_yPos = _parent._parent._parent.prop_yPos; prop_width = _parent._parent._parent.prop_width; prop_height = _parent._parent._parent.prop_height; prop_alpha = _parent._parent._parent.prop_alpha; prop_xscale = _parent._parent._parent.prop_xscale; prop_yscale = _parent._parent._parent.prop_yscale; prop_blendMode = _parent._parent._parent.blendBox; prop_order = _parent._parent._parent.prop_order; blur_checkBox = _parent._parent._parent.filterPane.content.blur_checkBox; blur_blurX = _parent._parent._parent.filterPane.content.blur_blurX; blur_blurY = _parent._parent._parent.filterPane.content.blur_blurY; dropShadow_checkBox = _parent._parent._parent.filterPane.content.dropShadow_checkBox; shadow_distance = _parent._parent._parent.filterPane.content.shadow_distance; shadow_angle = _parent._parent._parent.filterPane.content.shadow_angle; shadow_blurX = _parent._parent._parent.filterPane.content.shadow_blurX; shadow_blurY = _parent._parent._parent.filterPane.content.shadow_blurY; dropShadow_inner = _parent._parent._parent.filterPane.content.dropShadow_inner; glow_checkBox = _parent._parent._parent.filterPane.content.glow_checkBox; glow_color = _parent._parent._parent.filterPane.content.glow_color; glow_blurX = _parent._parent._parent.filterPane.content.glow_blurX; glow_blurY = _parent._parent._parent.filterPane.content.glow_blurY; glow_inner = _parent._parent._parent.filterPane.content.glow_inner; blur_checkBox.value = false; blur_blurX.text = 10; blur_blurY.text = 10; dropShadow_checkBox.value = false; shadow_distance.text = 5; shadow_angle.text = 45; shadow_blurX.text = 5; shadow_blurY.text = 5; dropShadow_inner.value = false; glow_checkBox.value = false; glow_color.text = 0; glow_blurX.text = 5; glow_blurY.text = 5; glow_inner.value = false; blendModeObject = new Object(); depthObject = new Object(); onEnterFrame = function () { function GiveProperties(MovieClip_mc) { MovieClip_mc.onPress = function () { Selection.setFocus(null); selectedObj = MovieClip_mc; selectedObj.startDrag(); BoundingBox._visible = true; BoundingBoxCircle._visible = true; selectionCross._visible = true; SetPropertiesPanel(); selectedObj.filters = [ObjectBlur, ObjectGlow, ObjectShadow]; GetFilters(); SetBlendMode(); }; } BoundingBox._x = selectedObj._x - selectedObj._width / 2; BoundingBox._y = selectedObj._y - selectedObj._height / 2; BoundingBox._width = selectedObj._width + 1; BoundingBox._height = selectedObj._height + 1; BoundingBoxCircle._x = selectedObj._x; BoundingBoxCircle._y = selectedObj._y; selectionCross._x = selectedObj._x - selectedObj._width / 2 + 1; selectionCross._y = selectedObj._y - selectedObj._height / 2; GiveProperties(pentagon); GiveProperties(rectangle1); GiveProperties(rectangle2); GiveProperties(hello); SetFilters(); SetBlendMode(); stage_mc.onPress = function () { selectedObj = null; BoundingBox._visible = false; BoundingBoxCircle._visible = false; selectionCross._visible = false; }; onMouseMove = function () { updateAfterEvent(); }; selectedObj.onPress = function () { selectedObj.startDrag(); SetPropertiesPanel(); }; selectedObj.onKillFocus = function () { selectedObj.stopDrag(); SetPropertiesPanel(); }; selectedObj.onReleaseOutside = selectedObj.onKillFocus; selectedObj.onRelease = selectedObj.onKillFocus; prop_xPos.onChanged = function () { selectedObj._x = prop_xPos.text; }; prop_yPos.onChanged = function () { selectedObj._y = prop_yPos.text; }; prop_width.onChanged = function () { selectedObj._width = prop_width.text; }; prop_height.onChanged = function () { selectedObj._height = prop_height.text; }; prop_alpha.onChanged = function () { selectedObj._alpha = prop_alpha.text; }; depthObject.change = function (evtObject) { selectedObj.swapDepths(prop_order.value); }; prop_order.addEventListener('change', depthObject); blendModeObject.close = function (evtObject) { selectedObj.blendMode = prop_blendMode.value; }; prop_blendMode.addEventListener('close', blendModeObject); if (Key.isDown(38) && !Key.isDown(16)) { selectedObj._y -= 1; SetPropertiesPanel(); } else { if (Key.isDown(38) && Key.isDown(16)) { selectedObj._y -= 5; SetPropertiesPanel(); } } if (Key.isDown(40) && !Key.isDown(16)) { selectedObj._y += 1; SetPropertiesPanel(); } else { if (Key.isDown(40) && Key.isDown(16)) { selectedObj._y += 5; SetPropertiesPanel(); } } if (Key.isDown(37) && !Key.isDown(16)) { selectedObj._x -= 1; SetPropertiesPanel(); } else { if (Key.isDown(37) && Key.isDown(16)) { selectedObj._x -= 5; SetPropertiesPanel(); } } if (Key.isDown(39) && !Key.isDown(16)) { selectedObj._x += 1; SetPropertiesPanel(); } else { if (Key.isDown(39) && Key.isDown(16)) { selectedObj._x += 5; SetPropertiesPanel(); } } }; } } movieClip 1994 FalschStage { } movieClip 2017 Falsch_filters { instance glow_checkBox of movieClip 1421 CheckBox { onClipEvent (construct) { label = ''; labelPlacement = 'right'; selected = false; } } instance dropShadow_checkBox of movieClip 1421 CheckBox { onClipEvent (construct) { label = ''; labelPlacement = 'right'; selected = false; } } instance blur_checkBox of movieClip 1421 CheckBox { onClipEvent (construct) { label = ''; labelPlacement = 'right'; selected = false; } } instance glow_inner of movieClip 1421 CheckBox { onClipEvent (construct) { label = ''; labelPlacement = 'right'; selected = false; } } instance dropShadow_inner of movieClip 1421 CheckBox { onClipEvent (construct) { label = ''; labelPlacement = 'right'; selected = false; } } } movieClip 2021 { } movieClip 2025 { } movieClip 2028 { } movieClip 2029 { } movieClip 2030 screensaver { } // unknown tag 88 length 143 movieClip 2079 NG_BBS { frame 1 { stop(); } } button 2082 { on (press) { this.startDrag(); } on (release) { this.stopDrag(); } } movieClip 2089 { } movieClip 2096 { } movieClip 2101 { } // unknown tag 88 length 96 movieClip 2126 { frame 645 { stop(); var alert = new Sound(); alert.attachSound('Vista_SystemExclamation'); alert.start(0, 0); _parent.gotoAndStop(3); } } movieClip 2129 { } // unknown tag 88 length 78 movieClip 2147 { frame 1 { function spawnBar() { if (_parent._currentframe == 4) { var depth = barNum; ++barNum; attachMovie('MonitorObj', 'MonitorObj_' + barNum, depth); (eval('MonitorObj_' + barNum))._x = 190; (eval('MonitorObj_' + barNum))._y = 114; (eval('MonitorObj_' + barNum))._height = 30 + Math.random() * 210; (eval('MonitorObj_' + barNum)).onEnterFrame = function () { this._x -= 0.5; if (this._x < -190) { loadMovie('', this); } }; } } barNum = 0; var barInterval = setInterval(spawnBar, 500); _parent.onUnload = function () { clearInterval(barInterval); }; } } movieClip 2167 { } movieClip 2170 { frame 1 { stop(); if (_root.installed) { gotoAndStop(4); } agreement.setStyle('backgroundColor', '0x252525'); agreement.setStyle('color', '0xFFFFFF'); agreement_txt = 'License Agreement\n\nThis is a legal agreement between you, the end user, and NOTRON SOFTWARE INCORPORATED. By opening this software you are agreeing to be bound by the terms of this agreement. If you do not agree to the terms of this agreement, you will most likely be killed or maimed by one of our highly trained assassins.\n\nCONFIDENTIAL INFORMATION\nThis is an untested work, created from 4:00 PM to 5:23 PM on June 22, 2009. NoTron Software Inc. owns all rights to this work and intends to violently assault anyone who attempts to steal, reproduce, or use it. NoTron Sofware Incorporated reserves the right to steal your computer. Notron Sofware Incorporated also reserves its rights under the copyright laws to protect this work by any means necessary. Those having access to this work may not copy it, use it, or disclose the information contained in it. Unauthorized use will result in death.\n\n1)\tGrant of License. NoTron Software grants to you the right to look at one copy of the enclosed NoTron Virus Theft Program (the SOFTWARE) on a single terminal connected to a single computer (i.e. with a single CPU). You may not network the SOFTWARE or otherwise use it on more than one computer or computer terminal at the same time.\n\n2)\tCOPYRIGHT. The SOFTWARE is owned by NOTRON SOFTWARE and is protected by no copyright laws. Therefore, you must treat the SOFTWARE like Hitler would treat a Jew, meaning you must beat it and torture it, without fully killing it until you\'ve sucked out its insides. \n\n3\tOTHER RESTRICTIONS. If you lay a single finger on this product, a NoTron Sofware Representative will come to your house and murder you.\n\nLIMITED WARRANTY\n\nNOTRON SOFWARE warrants that the SOFTWARE will not perform as expected, starting on the day of receipt. NOTRON SOFWARE will disclaim ownership of any working products recieved by you, the user.\nNO LIABILITY FOR CONSEQUENTIAL DAMAGES. IN NO EVENT SHALL NOTRON SOFWARE OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGE WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR THE LOSS OF INCOME, LOSS OF IMPORTANT FILES, INSTALLATION OF FAULTY PRODUCTS YOU DID NOT WISH FOR, OR OTHER PECUNIARY LOSS).\n\nThis agreement also applies to any Update, improvement, and enhancement to the program now and in the future, whether provided by diskettes, CD-ROM, or via E-mail or modem File Transfers.'; agreement.text = agreement_txt; accept_btn.onRelease = function () { gotoAndStop(2); }; decline_btn.onRelease = function () { createError('You cannot do that. It is not allowed.', 'Yes, Master.', null, false, 'OK', null); }; } instance agreement of movieClip 759 TextArea { onClipEvent (construct) { editable = true; html = false; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } instance accept_btn of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = 'Accept'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance decline_btn of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = 'Decline'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 2129 { onClipEvent (load) { botY = 107.5; topY = -137.5; leftX = -21.6; rightX = 228; } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { this._x = Math.random() * (rightX + leftX); this._y = Math.random() * ((botY - topY) / 2); } this.onPress = function () { createError('Haha. We lied. You just transferred $20,000,000 into our bank account!', 'OK', null, false, 'OK', null); }; } } frame 3 { finish_btn.onPress = function () { _root.installed = true; gotoAndStop(4); }; } frame 4 { reinstall_btn.onPress = function () { _root.installed = false; clearInterval(monitor.barInterval); gotoAndStop(1); }; } } movieClip 2173 NotronVirus { frame 1 { frame.useHandCursor = false; } frame 1 { invisible.useHandCursor = false; } instance of movieClip 201 { onClipEvent (load) { this._parent._alpha = 100; this._parent._xscale = 100; this._parent._yscale = 100; alphaMin = 0; XSCALE = 0; YSCALE = 0; } onClipEvent (enterFrame) { if (this._parent._alpha < 0) { --_root.numVirus; this._parent.removeMovieClip(); } this._parent._alpha -= alphaMin; this._parent._xscale -= XSCALE; this._parent._yscale -= YSCALE; this.onRollOver = function () { this.gotoAndStop(2); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; this.onRollOut = this.onReleaseOutside; this.onRelease = function () { clearInterval(program.monitor.barInterval); this.gotoAndStop(1); alphaMin = 15; YSCALE = 2.5; XSCALE = 2.5; }; } } } movieClip 2180 Notepad { frame 1 { frame.useHandCursor = false; } instance of movieClip 201 { onClipEvent (load) { function exit() { alphaMin = 15; YSCALE = 2.5; XSCALE = 2.5; } function doNotSave() { createError('Error saving file: Please insert memory card into slot A.', 'OK', exit, false, 'OK', null); } this._parent._alpha = 100; this._parent._xscale = 100; this._parent._yscale = 100; alphaMin = 0; XSCALE = 0; YSCALE = 0; } onClipEvent (enterFrame) { if (this._parent._alpha < 0) { --_root.numNotes; this._parent.removeMovieClip(); } this._parent._alpha -= alphaMin; this._parent._xscale -= XSCALE; this._parent._yscale -= YSCALE; this.onRollOver = function () { this.gotoAndStop(2); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; this.onRollOut = this.onReleaseOutside; this.onRelease = function () { this.gotoAndStop(1); createError('Are you sure you want to exit without saving?', 'No', doNotSave, true, 'Yes', exit); }; } } instance of movieClip 669 UIScrollBar { onClipEvent (construct) { _targetInstanceName = 'inputBox'; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } button 2183 { on (press) { this.startDrag(); this.bringToFront(); } on (release) { this.stopDrag(); } } movieClip 2189 Label { #initclip Object.registerClass('Label', mx.controls.Label); #endinitclip frame 1 { stop(); } } button 2192 { on (press) { if (physics) { startDrag(this, false, 28, 28, 300, 271); dragging = true; } } on (release) { stopDrag(); dragging = false; nextFrame(); } on (releaseOutside) { stopDrag(); dragging = false; } } movieClip 2205 { frame 1 { stop(); } frame 15 { gotoAndStop(1); } } movieClip 2206 AwesomeBall { frame 1 { frame.useHandCursor = false; topY = 28; bottomY = 268; leftX = 28; rightX = 300; physics = new Boolean(false); speedX = 5; speedY = -5; onEnterFrame = function () { ball.physics = physics_cb.value; dragit_txt._visible = physics_cb.value; if (ball.physics == false) { ball._x += speedX; ball._y += speedY; if (ball._x >= rightX || ball._x <= leftX) { speedX = -speedX; } if (ball._y <= topY || ball._y >= bottomY) { speedY = -speedY; } } }; } instance xBut of movieClip 201 { onClipEvent (load) { this._parent._alpha = 100; this._parent._xscale = 100; this._parent._yscale = 100; alphaMin = 0; XSCALE = 0; YSCALE = 0; } onClipEvent (enterFrame) { if (this._parent._alpha < 0) { --_root.numBalls; this._parent.removeMovieClip(); } this._parent._alpha -= alphaMin; this._parent._xscale -= XSCALE; this._parent._yscale -= YSCALE; this.onRollOver = function () { this.gotoAndStop(2); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; this.onRollOut = this.onReleaseOutside; this.onRelease = function () { this.gotoAndStop(1); alphaMin = 15; YSCALE = 2.5; XSCALE = 2.5; }; } } instance physics_cb of movieClip 1421 CheckBox { onClipEvent (construct) { label = 'Physics?'; labelPlacement = 'right'; selected = false; } } instance dragit_txt of movieClip 2189 Label { onClipEvent (construct) { autoSize = 'none'; html = false; text = 'You can drag the ball with physics enabled.'; visible = true; minHeight = 0; minWidth = 0; } } instance ball of movieClip 2205 { onClipEvent (load) { var vel = {'x': 0, 'y': 0}; var pos = {'x': _x, 'y': _y}; var old = {'x': _x, 'y': _y}; var radius = this._width / 2; var movie = {'width': 329.9, 'height': 300}; var dragging = false; physics = true; } onClipEvent (enterFrame) { if (!dragging) { if (physics) { vel.y += _root.ballGravity; pos.x += vel.x; pos.y += vel.y; if (pos.y + radius > movie.height) { pos.y = movie.height - radius; vel.y *= -_root.ballRestitution; vel.x *= _root.ballFriction; } if (pos.x + radius > movie.width) { pos.x = movie.width - radius; vel.x *= -_root.ballRestitution; } if (pos.x < radius) { pos.x = radius; vel.x *= -_root.ballRestitution; } if (pos.y < radius) { pos.y = radius; vel.y *= -_root.ballRestitution; } _x = pos.x; _y = pos.y; } else { old.x = pos.x; old.y = pos.y; pos.x = _x; pos.y = _y; vel.x = (pos.x - old.x) / 2; vel.y = (pos.y - old.y) / 2; } } else { old.x = pos.x; old.y = pos.y; pos.x = _x; pos.y = _y; vel.x = (pos.x - old.x) / 2; vel.y = (pos.y - old.y) / 2; } } } } movieClip 2214 { } movieClip 2216 { } movieClip 2218 { } movieClip 2220 { } movieClip 2240 { frame 1 { stop(); } frame 10 { stop(); } frame 10 { clippyDrag.useHandCursor = false; clippyDrag.onPress = function () { clippyMC._parent.startDrag(false, -295.65, -155, 295.65, 175); }; clippyDrag.onReleaseOutside = function () { clippyMC._parent.stopDrag(); }; clippyDrag.onRelease = clippyDrag.onReleaseOutside; } frame 11 { btnLabel.text = 'YES'; _parent.page.userText.html = true; var helpArray = new Array('It looks like you\'re trying to write a suicide note! Want some help?', 'Try using longer words to sound sophisticated yet troubled.', 'Insult them and sound like it\'s their fault.', 'Sign it with your online alias so you sound crazy. It\'ll make them feel sorry for you.', 'Now print it out, put it in your pocket, and shoot yourself!', 'Congratz. You committed suicide!'); var addArray = new Array('', 'I am going to eat some <font color="#0000FF"><u><a href="http://en.wikipedia.org/wiki/Lopadotemachoselachogaleokranioleipsanodrimhypotrimmatosilphioparaomelitokatakechymenokichlepikossyphophattoperisteralektryonoptekephalliokigklopeleiolagoiosiraiobaphetraganopterygon">Lopadotemachoselachogaleokranioleipsanodrimhypotrimmatosilphioparaomelitokatakechymenokichlepikossyphophattoperisteralektryonoptekephalliokigklopeleiolagoiosiraiobaphetraganopterygon.</a></u></font>', '\n If you had never given birth to me I wouldn\'t be doing this! It\'s all your fault! Goodbye forever.', '\n \n ' + _root.user_name, '', ''); var curItem = new Number(0); onEnterFrame = function () { but_btn.onRelease = function () { btnLabel.text = 'NEXT'; if (curItem < helpArray.length) { helpBox.text = helpArray[curItem + 1]; _parent.page.userText.htmlText += addArray[curItem + 1]; } curItem += 1; }; if (curItem == helpArray.length - 1) { but_btn._visible = false; btnLabel.text = ''; } }; } frame 12 { btnLabel.text = 'YES'; _parent.page.userText.html = true; var helpArray = new Array('It looks like you\'re trying to write a ransom letter! Want some help?', 'Try using some tough language. You\'ll get paid more.', 'Now tell them how much you want.', 'Tell them who to make the check out to.', 'Now give them an impossible location and time to meet you.', 'Now take the money and kill their little friend anyway!'); var addArray = new Array('', 'I\'m going to beat your daughter senseless if you don\'t pay this ransom. First we\'ll cut off her fingers, one by one. Then her toes. We\'ll dig out her eyes with her own fingers, then stuff them down her throat. ', 'Bring me Six Billion Dollars.', 'Make the check out to ' + _root.user_name + '.', 'Bring it to the exact center of the Grand Canyon on 12:01:03 AM on Christmas Day.', '\n \n Your Personal Kidnapper'); var curItem = new Number(0); onEnterFrame = function () { but_btn.onRelease = function () { btnLabel.text = 'NEXT'; if (curItem < helpArray.length) { helpBox.text = helpArray[curItem + 1]; _parent.page.userText.htmlText += addArray[curItem + 1]; } curItem += 1; }; if (curItem == helpArray.length - 1) { but_btn._visible = false; btnLabel.text = ''; } }; } } movieClip 2242 MenuBarItem { #initclip Object.registerClass('MenuBarItem', mx.controls.menuclasses.MenuBarItem); #endinitclip } movieClip 2243 ActivatorSkin { #initclip Object.registerClass('ActivatorSkin', mx.skins.halo.ActivatorSkin); #endinitclip } movieClip 2245 MenuBranchDisabled { } movieClip 2247 MenuBranchEnabled { } movieClip 2249 MenuCheckDisabled { } movieClip 2251 MenuCheckEnabled { } movieClip 2253 MenuRadioDisabled { } movieClip 2255 MenuRadioEnabled { } movieClip 2257 MenuSeparator { } movieClip 2258 MenuAssets { } movieClip 2259 MenuRow { #initclip Object.registerClass('MenuRow', mx.controls.menuclasses.MenuRow); #endinitclip frame 1 { stop(); } } movieClip 2260 MenuDataProvider { #initclip Object.registerClass('MenuDataProvider', mx.controls.menuclasses.MenuDataProvider); #endinitclip frame 1 { stop(); } } movieClip 2261 Menu { #initclip Object.registerClass('Menu', mx.controls.Menu); #endinitclip frame 1 { stop(); } } movieClip 2263 MenuBarBackLeft { } movieClip 2265 MenuBarBackMiddle { } movieClip 2267 MenuBarBackRight { } movieClip 2268 MenuBarAssets { } movieClip 2269 MenuBar { #initclip Object.registerClass('MenuBar', mx.controls.MenuBar); #endinitclip frame 1 { stop(); } instance of movieClip 2261 Menu { onClipEvent (initialize) { rowHeight = 20; } } } movieClip 2275 JibberishPage { frame 1 { inv.useHandCursor = false; userType = page.userText; var typeLength = userType.length; var overTen = false; var passTen = false; var overNum = false; var passNum = false; onEnterFrame = function () { typeLength = userType.length; if (typeLength == 10 && passTen == false) { overTen == true; clippy.gotoAndPlay(2); passTen == true; } if (typeLength > 25 && passNum == false) { overNum = true; } if (overNum == true) { passNum = true; clippy.gotoAndStop(Math.round(Math.random() + 11)); overNum = false; } }; } instance menuBar of movieClip 2269 MenuBar { onClipEvent (construct) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 2276 Jibberish { frame 1 { frame.useHandCursor = false; } instance xBut of movieClip 201 { onClipEvent (load) { this._parent._alpha = 100; this._parent._xscale = 100; this._parent._yscale = 100; alphaMin = 0; XSCALE = 0; YSCALE = 0; } onClipEvent (enterFrame) { if (this._parent._alpha < 0) { --_root.numJibs; this._parent.removeMovieClip(); } this._parent._alpha -= alphaMin; this._parent._xscale -= XSCALE; this._parent._yscale -= YSCALE; this.onRollOver = function () { this.gotoAndStop(2); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; this.onRollOut = this.onReleaseOutside; this.onRelease = function () { this.gotoAndStop(1); alphaMin = 15; YSCALE = 2.5; XSCALE = 2.5; }; } } } // unknown tag 88 length 143 button 2351 { on (release) { _parent._parent.gotoAndStop(6); } } movieClip 2354 NG_Forums_Fight { } movieClip 2372 NG_Forums_New User { } // unknown tag 88 length 144 movieClip 2411 NG_Forums_Halp { } movieClip 2439 NG_Forums_GonnaDoIt { } button 2462 { on (release) { _parent._parent.gotoAndStop(6); } } movieClip 2463 NG_Forums_XOXOXOXO { } movieClip 2518 NG_Forums_Photoshop { } movieClip 2562 NG_Forums_Dumped { } button 2603 { on (release) { _parent._parent.gotoAndStop(6); } } movieClip 2604 NG_Forums_NG NEWS { } movieClip 2606 NukeSim { } button 2608 { on (press) { this.startDrag(); this.bringToFront(); } on (release) { this.stopDrag(); } } movieClip 2615 { } // unknown tag 88 length 70 movieClip 2623 { } movieClip 2624 { frame 55 { stop(); } } movieClip 2626 { } movieClip 2627 winDumpster { frame 1 { frame.useHandCursor = false; } instance xBut of movieClip 201 { onClipEvent (load) { this._parent._alpha = 100; this._parent._xscale = 100; this._parent._yscale = 100; alphaMin = 0; XSCALE = 0; YSCALE = 0; } onClipEvent (enterFrame) { if (this._parent._alpha < 0) { --_root.numDumps; this._parent.removeMovieClip(); } this._parent._alpha -= alphaMin; this._parent._xscale -= XSCALE; this._parent._yscale -= YSCALE; this.onRollOver = function () { this.gotoAndStop(2); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; this.onRollOut = this.onReleaseOutside; this.onRelease = function () { this.gotoAndStop(1); alphaMin = 15; YSCALE = 2.5; XSCALE = 2.5; }; } } } movieClip 2631 Chuck_Norris_Site { frame 1 { var chuckFactsBox = chuckFacts; chuckFactsBox.addItem('If you have five dollars and Chuck Norris has five dollars, Chuck Norris has more money than you.'); chuckFactsBox.addItem('There is no \'ctrl\' button on Chuck Norris\'s computer. Chuck Norris is always in control.'); chuckFactsBox.addItem('Apple pays Chuck Norris 99 cents every time he listens to a song.'); chuckFactsBox.addItem('Chuck Norris can sneeze with his eyes open.'); chuckFactsBox.addItem('Chuck Norris can eat just one Lay\'s potato chip.'); chuckFactsBox.addItem('Chuck Norris is suing Myspace for taking the name of what he calls everything around you.'); chuckFactsBox.addItem('Chuck Norris destroyed the periodic table, because he only recognizes the element of surprise.'); chuckFactsBox.addItem('Chuck Norris can kill two stones with one bird.'); chuckFactsBox.addItem('When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.'); chuckFactsBox.addItem('Chuck Norris doesn\'t read books. He stares them down until he gets the information he wants.'); chuckFactsBox.addItem('There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.'); chuckFactsBox.addItem('Outer space exists because it\'s afraid to be on the same planet with Chuck Norris.'); chuckFactsBox.addItem('Chuck Norris does not sleep. He waits.'); chuckFactsBox.addItem('Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.'); chuckFactsBox.addItem('Chuck Norris is the reason why Waldo is hiding.'); chuckFactsBox.addItem('Chuck Norris counted to infinity - twice.'); chuckFactsBox.addItem('There is no chin behind Chuck Norris’ beard. There is only another fist.'); chuckFactsBox.addItem('When Chuck Norris does a pushup, he isn’t lifting himself up, he’s pushing the Earth down.'); chuckFactsBox.addItem('Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.'); chuckFactsBox.addItem('Chuck Norris’ hand is the only hand that can beat a Royal Flush.'); chuckFactsBox.addItem('Chuck Norris can lead a horse to water AND make it drink.'); chuckFactsBox.addItem('Chuck Norris doesn’t wear a watch, HE decides what time it is.'); chuckFactsBox.addItem('Chuck Norris can slam a revolving door.'); chuckFactsBox.addItem('Chuck Norris does not get frostbite. Chuck Norris bites frost.'); chuckFactsBox.addItem('Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.'); chuckFactsBox.addItem('Contrary to popular belief, America is not a democracy, it is a Chucktatorship.'); chuckFactsBox.addItem('Nobody doesn\'t like Sara Lee. Except Chuck Norris.'); chuckFactsBox.addItem('Chuck Norris doesn\'t throw up if he drinks too much. Chuck Norris throws down!'); chuckFactsBox.addItem('Chuck Norris has 12 moons. One of those moons is the Earth.'); chuckFactsBox.addItem('Chuck Norris grinds his coffee with his teeth and boils the water with his own rage.'); chuckFactsBox.addItem('Chuck Norris ordered a Big Mac at Burger King, and got one.'); chuckFactsBox.addItem('If you Google search \'Chuck Norris getting his ass kicked\' you will generate zero results. It just doesn\'t happen.'); chuckFactsBox.addItem('Chuck Norris can drink an entire gallon of milk in thirty-seven seconds.'); chuckFactsBox.addItem('Chuck Norris doesn\'t bowl strikes, he just knocks down one pin and the other nine faint.'); chuckFactsBox.addItem('It takes Chuck Norris 20 minutes to watch 60 Minutes.'); chuckFactsBox.addItem('Chuck Norris has a deep and abiding respect for human life... unless it gets in his way.'); chuckFactsBox.addItem('The Bermuda Triangle used to be the Bermuda Square, until Chuck Norris Roundhouse kicked one of the corners off.'); chuckFactsBox.addItem('There are no weapons of mass destruction in Iraq, Chuck Norris lives in Oklahoma.'); chuckFactsBox.addItem('Chuck Norris doesn\'t believe in Germany.'); chuckFactsBox.addItem('When Chuck Norris is in a crowded area, he doesn\'t walk around people. He walks through them.'); chuckFactsBox.addItem('Chuck Norris once ate an entire bottle of sleeping pills. They made him blink.'); chuckFactsBox.addItem('Chuck Norris can touch MC Hammer.'); chuckFactsBox.addItem('Chuck Norris played Russian Roulette with a fully loaded gun and won.'); chuckFactsBox.addItem('It takes 14 puppeteers to make Chuck Norris smile, but only 2 to make him destroy an orphanage.'); } instance chuckFacts of movieClip 353 List { onClipEvent (construct) { multipleSelection = false; rowHeight = 20; } } } movieClip 2647 { } movieClip 2650 error_mc { frame 1 { errorSound = new Sound(); errorSound.attachSound('notify'); errorSound.start(0, 0); frame.useHandCursor = false; inv.useHandCursor = false; } } movieClip 2651 MonitorObj { } button 2653 { on (press) { this.startDrag(); } on (release) { this.stopDrag(); } } movieClip 2654 { } movieClip 2656 swfMovie { frame 1 { frame.useHandCursor = false; } instance of movieClip 201 { onClipEvent (load) { this._parent._alpha = 100; this._parent._xscale = 100; this._parent._yscale = 100; alphaMin = 0; XSCALE = 0; YSCALE = 0; } onClipEvent (enterFrame) { if (this._parent._alpha < 0) { --_root.numSWFs; this._parent.removeMovieClip(); } this._parent._alpha -= alphaMin; this._parent._xscale -= XSCALE; this._parent._yscale -= YSCALE; this.onRollOver = function () { this.gotoAndStop(2); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; this.onRollOut = this.onReleaseOutside; this.onRelease = function () { this.gotoAndStop(1); alphaMin = 15; YSCALE = 2.5; XSCALE = 2.5; }; } } } movieClip 2659 { } movieClip 2660 { } movieClip 2668 { } movieClip 2675 game_button { frame 1 { numClicks = 0; arcade_btn.onRelease = function () { ++numClicks; }; arcade_btn.tabEnabled = false; onEnterFrame = function () { if (numClicks > 20 && numClicks < 100) { info_txt.text = ''; } if (numClicks > 100 && numClicks < 120) { info_txt.text = 'Seriously. Stop clicking. There\'s no reward'; } if (numClicks > 120 && numClicks < 150) { info_txt.text = 'What are you getting out of this? Go play the rest of the game!'; } if (numClicks > 120 && numClicks < 150) { info_txt.text = 'I give up. Keep clicking.'; } if (numClicks > 150) { info_txt.text = '...'; } }; } } movieClip 2677 Modal { #initclip mx.skins.SkinElement.registerElement('Modal'); #endinitclip frame 1 { } } movieClip 2679 TitleLeft { } movieClip 2681 TitleMiddle { } movieClip 2683 TitleRight { } movieClip 2684 TitleBackground { #initclip _global.mx.skins.TitleBackground = function () { this.constructObject(); }; _global.mx.skins.TitleBackground.prototype = new mx.skins.CustomBorder(); _global.mx.skins.TitleBackground.prototype.className = 'TitleBackground'; _global.mx.skins.TitleBackground.symbolName = 'TitleBackground'; _global.mx.skins.TitleBackground.symbolOwner = _global.mx.skins.TitleBackground; _global.mx.skins.TitleBackground.prototype.leftSkin = 'TitleLeft'; _global.mx.skins.TitleBackground.prototype.middleSkin = 'TitleMiddle'; _global.mx.skins.TitleBackground.prototype.rightSkin = 'TitleRight'; _global.mx.skins.SkinElement.registerElement('TitleBackground', _global.mx.skins.TitleBackground); _global.mx.skins.SkinElement.registerElement('TitleLeft'); _global.mx.skins.SkinElement.registerElement('TitleMiddle'); _global.mx.skins.SkinElement.registerElement('TitleRight'); _global.mx.skins.TitleBackground.prototype.init = function () { super.init(); }; #endinitclip frame 1 { } } movieClip 2686 CloseButtonDisabled { } movieClip 2688 CloseButtonDown { } movieClip 2690 CloseButtonOver { } movieClip 2692 CloseButtonUp { } movieClip 2693 WindowAssets { #initclip mx.containers.Window.prototype.titleStyleDeclaration = 'windowStyles'; #endinitclip frame 1 { } } movieClip 2694 Window { #initclip Object.registerClass('Window', mx.containers.Window); #endinitclip frame 1 { stop(); } instance boundingBox_mc of movieClip 244 BoundingBox { } instance of movieClip 285 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 2697 SimpleTabBox { #initclip Object.registerClass('SimpleTabBox', com.gskinner.controls.SimpleTabBox); #endinitclip frame 2 { stop(); } } movieClip 2700 SimpleBackground { #initclip Object.registerClass('SimpleBackground', com.gskinner.controls.SimpleBackground); #endinitclip frame 2 { stop(); } } movieClip 2703 SimpleTab { #initclip Object.registerClass('SimpleTab', com.gskinner.controls.SimpleTab); #endinitclip frame 1 { not_set_yet.globalToLocal(); } } movieClip 2706 { } movieClip 2708 VideoPlayer { #initclip Object.registerClass('VideoPlayer', mx.video.VideoPlayer); #endinitclip } movieClip 2711 Icon { } movieClip 2712 FLVPlayback { #initclip Object.registerClass('FLVPlayback', mx.video.FLVPlayback); #endinitclip frame 1 { stop(); } } frame 1 { function getMySite() { getURL('http://www.archon68.newgrounds.com', '_blank'); } MENU = new ContextMenu(); MENU.hideBuiltInItems(); MENU.builtInItems.forward_back = true; MadeByMe = new ContextMenuItem('Made by Archon68', getMySite); MadeByMe.separatorBefore = true; MadeByMe.enabled = false; ForNG = new ContextMenuItem('For Newgrounds Only', getMySite); ForNG.enabled = false; MENU.customItems.push(MadeByMe); MENU.customItems.push(ForNG); _root.menu = MENU; } frame 1 { _global.destroyWindows = function () { var v8 = 0; while (v8 < _root.numPanels) { removeMovieClip(_root['panel' + v8]); ++v8; } var v7 = 0; while (v7 < _root.numAppendages) { removeMovieClip(_root['appendage' + v7]); ++v7; } var v6 = 0; while (v6 < _root.numFalsches) { removeMovieClip(_root['falsch' + v6]); ++v6; } var v5 = 0; while (v5 < _root.numStalkers) { removeMovieClip(_root['stalk' + v5]); ++v5; } var v4 = 0; while (v4 < _root.numBalls) { removeMovieClip(_root['awesome' + v4]); ++v4; } var v2 = 0; while (v2 < _root.numJibs) { removeMovieClip(_root['jib' + v2]); ++v2; } var v3 = 0; while (v3 < _root.numExps) { removeMovieClip(_root['winExp' + v3]); ++v3; } v3 = 0; while (v3 < _root.numWelcome) { removeMovieClip(_root['welcome' + v3]); ++v3; } v3 = 0; while (v3 < _root.numDumpsters) { removeMovieClip(_root['winDump' + v2]); ++v2; } v3 = 0; while (v3 < _root.numNotepads) { removeMovieClip(_root['note' + v3]); ++v3; } v3 = 0; while (v3 < _root.numPlayers) { removeMovieClip(_root['mediaPlayer' + v3]); ++v3; } v3 = 0; while (v3 < _root.numVirus) { removeMovieClip(_root['nVirus' + v3]); ++v3; } }; _global.hideIcons = function () { icon_Dumpster._visible = false; icon_WelcomeCenter._visible = false; icon_ControlPanel._visible = false; icon_InternetAppendage._visible = false; icon_AdoozyFalsch._visible = false; icon_AwesomeBall._visible = false; icon_Jibberish._visible = false; icon_Stalkchat._visible = false; icon_Computer._visible = false; icon_Notepad._visible = false; icon_NoTron._visible = false; icon_mediaPlayer._visible = false; icon_Documents._visible = false; icon_Pictures._visible = false; icon_Games._visible = false; }; _global.showIcons = function () { icon_Dumpster._visible = true; icon_WelcomeCenter._visible = true; icon_ControlPanel._visible = true; icon_InternetAppendage._visible = true; icon_AdoozyFalsch._visible = true; icon_AwesomeBall._visible = true; icon_Jibberish._visible = true; icon_Stalkchat._visible = true; icon_Computer._visible = true; icon_Notepad._visible = true; icon_NoTron._visible = true; icon_mediaPlayer._visible = true; icon_Documents._visible = true; icon_Pictures._visible = true; icon_Games._visible = true; }; _global.resetIcons = function () { icon_Dumpster._x = dumpsterX; icon_Dumpster._y = dumpsterY; icon_WelcomeCenter._x = welcomeX; icon_WelcomeCenter._y = welcomeY; icon_ControlPanel._x = controlX; icon_ControlPanel._y = controlY; icon_Computer._x = computerX; icon_Computer._y = computerY; icon_InternetAppendage._x = InternetAppendageX; icon_InternetAppendage._y = InternetAppendageY; icon_AdoozyFalsch._x = falschX; icon_AdoozyFalsch._y = falschY; icon_AwesomeBall._x = ballX; icon_AwesomeBall._y = ballY; icon_Jibberish._x = jibX; icon_Jibberish._y = jibY; icon_Stalkchat._x = stalkerX; icon_Stalkchat._y = stalkerY; icon_Notepad._x = noteX; icon_Notepad._y = noteY; icon_NoTron._x = virusX; icon_NoTron._y = virusY; icon_mediaPlayer._x = mediaX; icon_mediaPlayer._y = mediaY; icon_Documents._x = docX; icon_Documents._y = docY; icon_Pictures._x = picX; icon_Pictures._y = picY; icon_Games._x = gameX; icon_Games._y = gameY; showIcons(); }; MovieClip.prototype.bringToFront = function () { this.swapDepths(_root.numWindows - 1); }; } frame 1 { dumpsterX = new Number(); dumpsterY = new Number(); welcomeX = new Number(); welcomeY = new Number(); controlX = new Number(); controlY = new Number(); computerX = new Number(); computerY = new Number(); InternetAppendageX = new Number(); InternetAppendageY = new Number(); falschX = new Number(); falschY = new Number(); ballX = new Number(); ballY = new Number(); jibX = new Number(); jibY = new Number(); stalkerX = new Number(); stalkerY = new Number(); webcamX = new Number(); webcamY = new Number(); noteX = new Number(); noteY = new Number(); virusX = new Number(); virusY = new Number(); } frame 1 { _global.spawnWelcome = function () { if (_root.numWelcome <= 0) { _root.attachMovie('welcomeCenter', 'welcome' + _root.numWelcome, _root.numWindows); _root['welcome' + _root.numWelcome]._x = 400 + _root.numWelcome * 3; _root['welcome' + _root.numWelcome]._y = 290 + _root.numWelcome * 3; ++_root.numWelcome; ++_root.numWindows; } else { if (_root.numWelcome > 0 && _root.numWelcome < 4) { _root.welcome0.duplicateMovieClip('welcome' + _root.numWelcome, _root.numWindows); _root['welcome' + _root.numWelcome]._x = 400 + _root.numWelcome * 4; _root['welcome' + _root.numWelcome]._y = 290 + _root.numWelcome * 4; ++_root.numWelcome; ++_root.numWindows; } } }; _global.spawnControlPanel = function () { if (_root.numPanels <= 0) { _root.attachMovie('ControlPanel', 'panel' + _root.numPanels, _root.numWindows); _root['panel' + _root.numPanels]._x = 400 + _root.numPanels * 3; _root['panel' + _root.numPanels]._y = 290 + _root.numPanels * 3; ++_root.numPanels; ++_root.numWindows; } else { if (_root.numPanels > 0 && _root.numPanels < 4) { _root.panel0.duplicateMovieClip('panel' + _root.numPanels, _root.numWindows); _root['panel' + _root.numPanels]._x = 400 + _root.numPanels * 4; _root['panel' + _root.numPanels]._y = 290 + _root.numPanels * 4; ++_root.numPanels; ++_root.numWindows; } } }; _global.spawnInternet = function () { if (_root.numAppendages <= 0) { _root.attachMovie('InternetAppendage', 'appendage' + _root.numAppendages, _root.numWindows); _root['appendage' + _root.numAppendages]._x = 400 + _root.numAppendages * 3; _root['appendage' + _root.numAppendages]._y = 290 + _root.numAppendages * 3; ++_root.numAppendages; ++_root.numWindows; } else { if (_root.numAppendages > 0 && _root.numAppendages < 4) { _root.appendage0.duplicateMovieClip('appendage' + _root.numAppendages, _root.numWindows); _root['appendage' + _root.numAppendages]._x = 400 + _root.numAppendages * 4; _root['appendage' + _root.numAppendages]._y = 290 + _root.numAppendages * 4; ++_root.numAppendages; ++_root.numWindows; } } }; _global.spawnFalsch = function () { if (_root.numFalsches <= 0) { _root.attachMovie('AdoozyFalsch', 'falsch' + _root.numFalsches, _root.numWindows); _root['falsch' + _root.numFalsches]._x = 400 + _root.numFalsches * 3; _root['falsch' + _root.numFalsches]._y = 300 + _root.numFalsches * 3; ++_root.numFalsches; ++_root.numWindows; } else { if (_root.numFalsches > 0 && _root.numFalsches < 2) { _root.falsch0.duplicateMovieClip('falsch' + _root.numFalsches, _root.numWindows); _root['falsch' + _root.numFalsches]._x = 400 + _root.numFalsches * 4; _root['falsch' + _root.numFalsches]._y = 300 + _root.numFalsches * 4; ++_root.numFalsches; ++_root.numWindows; } } }; _global.spawnChat = function () { if (_root.numStalkers <= 0) { _root.attachMovie('PedoStalk', 'stalk' + _root.numStalkers, _root.numWindows); _root['stalk' + _root.numStalkers]._x = 400 + _root.numStalkers * 3; _root['stalk' + _root.numStalkers]._y = 300 + _root.numStalkers * 3; ++_root.numStalkers; ++_root.numWindows; } else { if (_root.numStalkers > 0 && _root.numStalkers < 2) { _root.stalk0.duplicateMovieClip('stalk' + _root.numStalkers, _root.numWindows); _root['stalk' + _root.numStalkers]._x = 400 + _root.numStalkers * 4; _root['stalk' + _root.numStalkers]._y = 300 + _root.numStalkers * 4; ++_root.numStalkers; ++_root.numWindows; } } }; _global.spawnAwesome = function () { if (_root.numBalls <= 0) { _root.attachMovie('AwesomeBall', 'awesome' + _root.numBalls, _root.numWindows); _root['awesome' + _root.numBalls]._x = 400 + _root.numBalls * 3 - 150; _root['awesome' + _root.numBalls]._y = 290 + _root.numBalls * 3 - 200; ++_root.numBalls; ++_root.numWindows; } else { if (_root.numBalls > 0 && _root.numBalls < 4) { _root.awesome0.duplicateMovieClip('awesome' + _root.numBalls, _root.numWindows); _root['awesome' + _root.numBalls]._x = 400 + _root.numBalls * 4; _root['awesome' + _root.numBalls]._y = 290 + _root.numBalls * 4; ++_root.numBalls; ++_root.numWindows; } } }; _global.spawnJibberish = function () { if (_root.numJibs <= 0) { _root.attachMovie('Jibberish', 'jib' + _root.numJibs, _root.numWindows); _root['jib' + _root.numJibs]._x = 400 + _root.numJibs * 3; _root['jib' + _root.numJibs]._y = 290 + _root.numJibs * 3; ++_root.numJibs; ++_root.numWindows; } else { if (_root.numJibs > 0 && _root.numJibs < 1) { _root.jib0.duplicateMovieClip('jib' + _root.numJibs, _root.numWindows); _root['jib' + _root.numJibs]._x = 400 + _root.numJibs * 4; _root['jib' + _root.numJibs]._y = 290 + _root.numJibs * 4; ++_root.numJibs; ++_root.numWindows; } } }; _global.spawnExplorer = function (destination) { if (_root.numExps <= 0) { _root.attachMovie('WinExplorer', 'winExp' + _root.numExps, _root.numWindows); _root['winExp' + _root.numExps]._x = 400 + _root.numExps * 3; _root['winExp' + _root.numExps]._y = 290 + _root.numExps * 3; _root['winExp' + _root.numExps].gotoAndStop(destination); ++_root.numExps; ++_root.numWindows; } else { if (_root.numExps > 0 && _root.numExps < 1) { _root.winExp0.duplicateMovieClip('winExp' + _root.numExps, _root.numWindows); _root['winExp' + _root.numExps]._x = 400 + _root.numExps * 4; _root['winExp' + _root.numExps]._y = 290 + _root.numExps * 4; _root['winExp' + _root.numExps].gotoAndStop(destination); ++_root.numExps; ++_root.numWindows; } } }; _global.spawnDumpster = function () { if (_root.numDumps <= 0) { _root.attachMovie('WinDumpster', 'winDump' + _root.numDumps, _root.numWindows); _root['winDump' + _root.numDumps]._x = 400 + _root.numDumps * 3; _root['winDump' + _root.numDumps]._y = 290 + _root.numDumps * 3; ++_root.numDumps; ++_root.numWindows; } else { if (_root.numDumps > 0 && _root.numDumps < 1) { _root.winDump0.duplicateMovieClip('winDump' + _root.numDumps, _root.numWindows); _root['winDump' + _root.numDumps]._x = 400 + _root.numDumps * 4; _root['winDump' + _root.numDumps]._y = 290 + _root.numDumps * 4; ++_root.numDumps; ++_root.numWindows; } } }; _global.spawnNotepad = function (fileText) { if (_root.numNotes <= 0) { _root.attachMovie('Notepad', 'note' + _root.numNotes, _root.numWindows); _root['note' + _root.numNotes]._x = 400 + _root.numNotes * 3; _root['note' + _root.numNotes]._y = 290 + _root.numNotes * 3; if (fileText != undefined) { _root['note' + _root.numNotes].inputBox.text = fileText; } ++_root.numNotes; ++_root.numWindows; } else { if (_root.numNotes > 0 && _root.numNotes < 3) { _root.note0.duplicateMovieClip('note' + _root.numNotes, _root.numWindows); _root['note' + _root.numNotes]._x = 400 + _root.numNotes * 4; _root['note' + _root.numNotes]._y = 290 + _root.numNotes * 4; if (fileText != undefined) { _root['note' + _root.numNotes].inputBox.text = fileText; } ++_root.numNotes; ++_root.numWindows; } } }; _global.spawnMediaPlayer = function (playlistArray) { if (_root.numPlayers <= 0) { _root.attachMovie('MediaPlayer', 'mediaPlayer' + _root.numPlayers, _root.numWindows); _root['mediaPlayer' + _root.numPlayers]._x = 400 + _root.numPlayers * 3; _root['mediaPlayer' + _root.numPlayers]._y = 290 + _root.numPlayers * 3; if (playlistArray != undefined) { _root['mediaPlayer' + _root.numPlayers].playlist_arr = playlistArray; } ++_root.numPlayers; ++_root.numWindows; } else { if (_root.numPlayers > 0 && _root.numPlayers < 3) { _root.mediaPlayer0.duplicateMovieClip('mediaPlayer' + _root.numPlayers, _root.numWindows); _root['mediaPlayer' + _root.numPlayers]._x = 400 + _root.numPlayers * 4; _root['mediaPlayer' + _root.numPlayers]._y = 290 + _root.numPlayers * 4; if (playlistArray != undefined) { _root['mediaPlayer' + _root.numPlayers].playlist_arr = playlistArray; } ++_root.numPlayers; ++_root.numWindows; } } }; _global.spawnVirus = function () { if (_root.numVirus <= 0) { _root.attachMovie('NotronVirus', 'nVirus' + _root.numVirus, _root.numWindows); _root['nVirus' + _root.numVirus]._x = 400 + _root.numVirus * 3; _root['nVirus' + _root.numVirus]._y = 290 + _root.numVirus * 3; ++_root.numVirus; ++_root.numWindows; } else { if (_root.numVirus > 0 && _root.numVirus < 1) { _root.nVirus0.duplicateMovieClip('nVirus' + _root.numVirus, _root.numWindows); _root['nVirus' + _root.numVirus]._x = 400 + _root.numVirus * 4; _root['nVirus' + _root.numVirus]._y = 290 + _root.numVirus * 4; ++_root.numVirus; ++_root.numWindows; } } }; _global.spawnMovie = function (prTitle, mLinkage) { if (_root.numSWFs <= 0) { _root.attachMovie('swfMovie', 'movie' + _root.numSWFs, _root.numWindows); _root['movie' + _root.numSWFs]._x = 400 + _root.numSWFs * 3; _root['movie' + _root.numSWFs]._y = 290 + _root.numSWFs * 3; _root['movie' + _root.numSWFs].title_txt.text = prTitle; _root['movie' + _root.numSWFs].clipLoader.attachMovie(mLinkage, 'movFile', 0); ++_root.numSWFs; ++_root.numWindows; } else { if (_root.numSWFs > 0 && _root.numSWFs < 1) { _root.movie0.duplicateMovieClip('movie' + _root.numSWFs, _root.numWindows); _root['movie' + _root.numSWFs]._x = 400 + _root.numSWFs * 4; _root['movie' + _root.numSWFs]._y = 290 + _root.numSWFs * 4; _root['movie' + _root.numSWFs].clipLoader.attachMovie(mLinkage, 'movFile', 0); ++_root.numSWFs; ++_root.numWindows; } } }; } frame 1 { MovieClip.prototype.centerWindow = function () { this._x = Stage.width / 2; this._y = Stage.height / 2 - 10; }; } frame 1 { _global.style.setStyle('themeColor', '0xC5E7F6'); _global.style.setStyle('fontFamily', 'Segoe UI'); _global.styles.Button = new mx.styles.CSSStyleDeclaration(); _global.styles.Button.setStyle('themeColor', '0x00CBFF'); } frame 1 { UserStats = SharedObject.getLocal('userInfo'); user_name = new String(); user_password = new String(); _global.setStats = function () { if (UserStats.data.s_username != undefined) { user_name = UserStats.data.s_username; } else { user_name = 'User'; } trace(user_name); if (UserStats.data.s_password != undefined) { user_password = UserStats.data.s_password; } else { user_password = ''; } trace(user_password); }; setStats(); } frame 1 { _root.start_button.useHandCursor = false; } frame 1 { stop(); onLoad = function () { Blur_Filter = new flash.filters.BlurFilter(5, 5, 10); Negative_Filter = new flash.filters.ColorMatrixFilter([-1, 0, 0, 0, 255, 0, -1, 0, 0, 255, 0, 0, -1, 0, 255, 0, 0, 0, 1, 0]); Grayscale_Filter = new flash.filters.ColorMatrixFilter([0.3086, 0.6094000000000001, 0.082, 0, 0, 0.3086, 0.6094000000000001, 0.082, 0, 0, 0.3086, 0.6094000000000001, 0.082, 0, 0, 0, 0, 0, 1, 0]); Sharpen_Filter = new flash.filters.ConvolutionFilter(3, 3, [0, -1, 0, -1, 5, -1, 0, -1, 0]); Emboss_Filter = new flash.filters.ConvolutionFilter(3, 3, [-2, -1, 0, -1, 1, 1, 0, 1, 2]); EdgeDetection_Filter = new flash.filters.ConvolutionFilter(3, 3, [0, 1, 0, 1, -4, 1, 0, 1, 0]); Double_Filter = new flash.filters.ConvolutionFilter(4, 4, [30, 4, 5, -60, -40, 4, 40, -4, 0, -50, -3, 3, 3, 1, 0, 1]); Contrast = 0.3; Scale = Contrast * 11; Offset = 63.5 - Contrast * 698.5; Contrast_Array = [Scale, 0, 0, 0, Offset, 0, scale, 0, 0, Offset, 0, 0, Scale, 0, Offset, 0, 0, 0, 1, 0]; Drugs_Filter = new flash.filters.ColorMatrixFilter(Contrast_Array); _root.blendMode = 0; numWindows = 0; numWebcams = 0; numWelcome = 0; numPanels = 0; numAppendages = 0; numFalsches = 0; numStalkers = 0; numHelpers = 0; numBalls = 0; numJibs = 0; numExps = 0; numDumps = 0; numNotes = 0; numPlayers = 0; numVirus = 0; numSWFs = 0; ballGravity = 1; ballRestitution = 0.6; ballFriction = 0.9; installed = false; InternetNotifyText = 'Default'; history_dp = new Array('1', '2', '3'); favorites_dp = new Array('-2', '-1', '0'); user_username = 'Administrator'; user_icon = 'default'; mouseTime = 0; screensaver = 0; }; onEnterFrame = function () { ++mouseTime; if (mouseTime == 2000) { _root.attachMovie('screensaver', 'screensaver_mc', numWindows); _root.enabled = false; } }; onMouseMove = function () { mouseTime = 0; removeMovieClip('screensaver_mc'); _root.enabled = true; }; onMouseDown = function () { mouseTime = 0; removeMovieClip('screensaver_mc'); _root.enabled = true; updateAfterEvent(); }; var keyListen = new Object(); keyListen.onKeyDown = function () { mouseTime = 0; removeMovieClip('screensaver_mc'); _root.enabled = true; }; Key.addListener(keyListen); _global.fadeIn = function (movieClip) { var v1 = movieClip.alpha(); }; MovieClip.prototype.fade = function (newAlpha, speed, zeroAlpha) { if (zeroAlpha == true) { this._alpha = 0; } this.currentAlpha = this._alpha; this.onEnterFrame = function () { if (this.currentAlpha > newAlpha) { this._alpha -= speed; } else { if (this.currentAlpha < newAlpha) { this._alpha += speed; } } if (Math.abs(Math.round(newAlpha - this._alpha)) <= speed) { this._alpha = newAlpha; delete this.onEnterFrame; } }; }; } button 2726 { on (release) { _parent.gotoAndStop(2); } } movieClip 2730 { } movieClip 2733 { } button 2738 { on (release) { NewgroundsAPI.loadNewgrounds(); } } button 2743 { on (release) { NewgroundsAPI.loadNewgrounds(); } } movieClip 2744 { } movieClip 2745 { 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 2746 { frame 1 { PlayGame_mc._visible = false; loaded = _root.getBytesLoaded(); total = _root.getBytesTotal(); if (loaded == total) { PlayGame_mc._visible = true; } NewgroundsAPI.connectMovie(9174); } frame 2 { gotoAndPlay(1); } } movieClip 2753 { } movieClip 2760 { } movieClip 2763 { } movieClip 2766 { } movieClip 2793 { frame 865 { stop(); } } movieClip 2811 { frame 1 { stop(); var number = 0; onEnterFrame = function () { ++number; if (number >= 170) { gotoAndStop(2); } }; _parent.nextBut.enabled = false; } frame 2 { stop(); var number = 0; onEnterFrame = function () { ++number; if (number >= 170) { gotoAndStop(3); } }; } frame 3 { stop(); var number = 0; onEnterFrame = function () { ++number; if (number >= 170) { gotoAndStop(4); } }; } frame 4 { stop(); var number = 0; onEnterFrame = function () { ++number; if (number >= 170) { gotoAndStop(5); } }; } frame 5 { stop(); var number = 0; onEnterFrame = function () { ++number; if (number >= 170) { gotoAndStop(6); } }; } frame 6 { _parent.nextBut.enabled = true; _parent.nextBut.onRelease = function () { _parent.gotoAndStop(6); }; } } movieClip 2817 { frame 1 { frame.useHandCursor = false; } frame 1 { stop(); nextBut.onRelease = function () { gotoAndStop(2); }; skipBut.onRelease = function () { _parent.gotoAndStop(3); }; if (_root.UserStats.data.s_username == undefined || _root.UserStats.data.s_password == undefined) { skipStatus.text = 'No save data. Not safe to skip.'; skipStatus.textColor = '0xFF0000'; skipStatusIcon.gotoAndStop(1); } else { if (_root.UserStats.data.s_username != undefined && _root.UserStats.data.s_password != undefined) { skipStatus.text = 'Save data found. OK to skip.'; skipStatus.textColor = '0x009900'; skipStatusIcon.gotoAndStop(2); } } } instance nextBut of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = 'Next'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance skipBut of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = 'Skip'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 2 { reg1 = '40092'; reg2 = '1230J'; reg3 = '84021'; reg4 = 'MB201'; errorMSG = 'There is an error in your product key.'; key4.maxChars = 5; key3.maxChars = 5; key2.maxChars = 5; key1.maxChars = 5; ChangeListener = new Object(); key4.restrict = '0-9 A-Z'; key3.restrict = '0-9 A-Z'; key2.restrict = '0-9 A-Z'; key1.restrict = '0-9 A-Z'; nextBut.onRelease = function () { if (key1.text == reg1 && key2.text == reg2 && key3.text == reg3 && key4.text == reg4) { gotoAndStop(3); } else { error_txt.text = errorMSG; } }; var aListener = new Object(); aListener.change = function (aEvent) { if (key1.length >= 5) { Selection.setFocus(key2); } }; key1.addEventListener('change', aListener); var bListener = new Object(); bListener.change = function (bEvent) { if (key2.length >= 5) { Selection.setFocus(key3); } }; key2.addEventListener('change', bListener); var cListener = new Object(); cListener.change = function (cEvent) { if (key3.length >= 5) { Selection.setFocus(key4); } }; key3.addEventListener('change', cListener); skipBut.onRelease = function () { _parent.gotoAndStop(3); }; } instance key1 of movieClip 356 TextInput { onClipEvent (construct) { editable = true; password = false; text = ''; maxChars = 0; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance key2 of movieClip 356 TextInput { onClipEvent (construct) { editable = true; password = false; text = ''; maxChars = 0; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance key3 of movieClip 356 TextInput { onClipEvent (construct) { editable = true; password = false; text = ''; maxChars = 0; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance key4 of movieClip 356 TextInput { onClipEvent (construct) { editable = true; password = false; text = ''; maxChars = 0; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 3 { nextBut.onRelease = function () { _root.UserStats.data.s_username = username_txt.text; _root.UserStats.data.s_password = password_txt.text; _root.UserStats.data.s_email = email_txt.text; _root.UserStats.data.s_latitude = latitude_txt.text; _root.UserStats.data.s_longitude = longitude_txt.text; _root.UserStats.data.s_gender = gender_cb.value; _root.UserStats.data.s_creditcardnum = creditcard_txt.text; _root.UserStats.data.s_donation = donation_cb.value; _root.UserStats.flush(); setStats(); gotoAndStop(4); }; defaultBut.onRelease = function () { username_txt.text = 'User'; password_txt.text = ''; email_txt.text = 'someone@somesite.com'; latitude_txt.text = '-52.916'; longitude_txt.text = '73.579'; gender.selectedIndex = 0; creditcard_txt.text = '000000000000'; donation_cb.selectedIndex = 3; }; if (_root.UserStats.data.s_username == undefined) { loadBut.enabled = false; } loadBut.onRelease = function () { username_txt.text = _root.UserStats.data.s_username; password_txt.text = _root.UserStats.data.s_password; email_txt.text = _root.UserStats.data.s_email; latitude_txt.text = _root.UserStats.data.s_latitude; longitude_txt.text = _root.UserStats.data.s_longitude; gender.selectedIndex = _root.UserStats.data.s_gender; creditcard_txt.text = _root.UserStats.data.s_creditcardnum; donation_cb.selectedIndex = _root.UserStats.data.s_donation; }; skipBut.onRelease = function () { _parent.gotoAndStop(3); }; } instance username_txt of movieClip 356 TextInput { onClipEvent (construct) { editable = true; password = false; text = ''; maxChars = 0; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance password_txt of movieClip 356 TextInput { onClipEvent (construct) { editable = true; password = false; text = ''; maxChars = 0; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance email_txt of movieClip 356 TextInput { onClipEvent (construct) { editable = true; password = false; text = ''; maxChars = 0; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance latitude_txt of movieClip 356 TextInput { onClipEvent (construct) { editable = true; password = false; text = ''; maxChars = 0; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance longitude_txt of movieClip 356 TextInput { onClipEvent (construct) { editable = true; password = false; text = ''; maxChars = 0; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance creditcard_txt of movieClip 356 TextInput { onClipEvent (construct) { editable = true; password = false; text = ''; maxChars = 0; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance gender_cb of movieClip 1454 ComboBox { onClipEvent (construct) { editable = false; labels = []; labels[0] = 'Male'; labels[1] = 'Female'; labels[2] = 'Yes'; rowCount = 5; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance donation_cb of movieClip 1454 ComboBox { onClipEvent (construct) { editable = false; labels = []; labels[0] = '$1,000'; labels[1] = '$5,000'; labels[2] = '$10,000'; labels[3] = '$15,000'; rowCount = 5; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance loadBut of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = 'Load'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance defaultBut of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = 'Default'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 4 { driveBox.resizableColumns = false; driveBox.addColumn(' '); (driveBox.getColumnAt(0)).width = 51; driveBox.addColumn('Name'); (driveBox.getColumnAt(1)).width = 220; driveBox.addColumn('Total Size'); (driveBox.getColumnAt(2)).width = 70; driveBox.addColumn('Free Space'); (driveBox.getColumnAt(3)).width = 90; var slot1 = {}; slot1. = ' '; slot1.Name = 'Yo Momma'; slot1.Total Size = '> Uranus'; slot1.Free Space = 'None'; var slot2 = {}; slot2. = ' '; slot2.Name = 'Yo Odder Momma'; slot2.Total Size = '1 Yottabyte'; slot2.Free Space = 'None'; var slotArray = new Array(slot1, slot2); driveBox.dataProvider = [slot1, slot2]; nextBut.onRelease = function () { gotoAndStop(5); }; skipBut.onRelease = function () { _parent.gotoAndStop(3); }; } instance driveBox of movieClip 357 DataGrid { onClipEvent (construct) { editable = false; multipleSelection = false; rowHeight = 40; } } frame 5 { skipBut.onRelease = function () { _parent.gotoAndStop(3); }; } frame 6 { nextBut.onRelease = function () { _parent.gotoAndStop(3); }; skipBut.onRelease = function () { _parent.gotoAndStop(3); }; } } movieClip 2820 { frame 30 { stop(); } } movieClip 2836 { } movieClip 2841 { } movieClip 2842 { frame 1 { stop(); } frame 3 { logon_username.text = _root.user_name; var pword = _root.user_password; hintBubble._alpha = 0; submit_btn.onRelease = function () { if (pword_txt.text == pword) { _root.gotoAndStop(2); } else { error_msg.text = 'Login Failed. Password is incorrect'; } }; helpBut.onRelease = function () { hintBubble.fade(100, 5, false); hintBubble.hint_txt.text = pword; }; } instance pword_txt of movieClip 356 TextInput { onClipEvent (construct) { editable = true; password = true; text = ''; maxChars = 0; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 234 __Packages.mx.core.UIObject { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.UIObject) { var v1 = function () { super(); this.constructObject(); }; mx.core.UIObject = v1; mx.core.UIObject extends MovieClip; var v2 = v1.prototype; v2.__get__width = function () { return this._width; }; v2.__get__height = function () { return this._height; }; v2.__get__left = function () { return this._x; }; v2.__get__x = function () { return this._x; }; v2.__get__top = function () { return this._y; }; v2.__get__y = function () { return this._y; }; v2.__get__right = function () { return this._parent.width - (this._x + this.__get__width()); }; v2.__get__bottom = function () { return this._parent.height - (this._y + this.__get__height()); }; v2.getMinHeight = function (Void) { return this._minHeight; }; v2.setMinHeight = function (h) { this._minHeight = h; }; v2.__get__minHeight = function () { return this.getMinHeight(); }; v2.__set__minHeight = function (h) { this.setMinHeight(h); return this.__get__minHeight(); }; v2.getMinWidth = function (Void) { return this._minWidth; }; v2.setMinWidth = function (w) { this._minWidth = w; }; v2.__get__minWidth = function () { return this.getMinWidth(); }; v2.__set__minWidth = function (w) { this.setMinWidth(w); return this.__get__minWidth(); }; v2.setVisible = function (x, noEvent) { if (x != this._visible) { this._visible = x; if (noEvent != true) { this.dispatchEvent({'type': x ? 'reveal' : 'hide'}); } } }; v2.__get__visible = function () { return this._visible; }; v2.__set__visible = function (x) { this.setVisible(x, false); return this.__get__visible(); }; v2.__get__scaleX = function () { return this._xscale; }; v2.__set__scaleX = function (x) { this._xscale = x; return this.__get__scaleX(); }; v2.__get__scaleY = function () { return this._yscale; }; v2.__set__scaleY = function (y) { this._yscale = y; return this.__get__scaleY(); }; v2.doLater = function (obj, fn) { if (this.methodTable == undefined) { this.methodTable = new Array(); } this.methodTable.push({'obj': obj, 'fn': fn}); this.onEnterFrame = this.doLaterDispatcher; }; v2.doLaterDispatcher = function (Void) { delete this.onEnterFrame; if (this.invalidateFlag) { this.redraw(); } var v3 = this.methodTable; this.methodTable = new Array(); if (v3.length > 0) { var v2; v2 = v3.shift(); while (v2 != undefined) { v2.obj[v2.fn](); } } }; v2.cancelAllDoLaters = function (Void) { delete this.onEnterFrame; this.methodTable = new Array(); }; v2.invalidate = function (Void) { this.invalidateFlag = true; this.onEnterFrame = this.doLaterDispatcher; }; v2.invalidateStyle = function (Void) { this.invalidate(); }; v2.redraw = function (bAlways) { if (this.invalidateFlag || bAlways) { this.invalidateFlag = false; var v2; for (v2 in this.tfList) { this.tfList[v2].draw(); } this.draw(); this.dispatchEvent({'type': 'draw'}); } }; v2.draw = function (Void) {}; v2.move = function (x, y, noEvent) { var v3 = this._x; var v2 = this._y; this._x = x; this._y = y; if (noEvent != true) { this.dispatchEvent({'type': 'move', 'oldX': v3, 'oldY': v2}); } }; v2.setSize = function (w, h, noEvent) { var v3 = this.__width; var v2 = this.__height; this.__width = w; this.__height = h; this.size(); if (noEvent != true) { this.dispatchEvent({'type': 'resize', 'oldWidth': v3, 'oldHeight': v2}); } }; v2.size = function (Void) { this._width = this.__width; this._height = this.__height; }; v2.drawRect = function (x1, y1, x2, y2) { this.moveTo(x1, y1); this.lineTo(x2, y1); this.lineTo(x2, y2); this.lineTo(x1, y2); this.lineTo(x1, y1); }; v2.createLabel = function (name, depth, text) { this.createTextField(name, depth, 0, 0, 0, 0); var v2 = this[name]; v2._color = mx.core.UIObject.textColorList; v2._visible = false; v2.__text = text; if (this.tfList == undefined) { this.tfList = new Object(); } this.tfList[name] = v2; v2.invalidateStyle(); this.invalidate(); v2.styleName = this; return v2; }; v2.createObject = function (linkageName, id, depth, initobj) { return this.attachMovie(linkageName, id, depth, initobj); }; v2.createClassObject = function (className, id, depth, initobj) { var v3 = className.symbolName == undefined; if (v3) { Object.registerClass(className.symbolOwner.symbolName, className); } var v4 = mx.core.UIObject(this.createObject(className.symbolOwner.symbolName, id, depth, initobj)); if (v3) { Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner); } return v4; }; v2.createEmptyObject = function (id, depth) { return this.createClassObject(mx.core.UIObject, id, depth); }; v2.destroyObject = function (id) { var v2 = this[id]; if (v2.getDepth() < 0) { var v4 = this.buildDepthTable(); var v5 = this.findNextAvailableDepth(0, v4, 'up'); var v3 = v5; v2.swapDepths(v3); } v2.removeMovieClip(); delete this[id]; }; v2.getSkinIDName = function (tag) { return this.idNames[tag]; }; v2.setSkin = function (tag, linkageName, initObj) { if (_global.skinRegistry[linkageName] == undefined) { mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement); } return this.createObject(linkageName, this.getSkinIDName(tag), tag, initObj); }; v2.createSkin = function (tag) { var v2 = this.getSkinIDName(tag); this.createEmptyObject(v2, tag); return this[v2]; }; v2.createChildren = function (Void) {}; v2._createChildren = function (Void) { this.createChildren(); this.childrenCreated = true; }; v2.constructObject = function (Void) { if (this._name == undefined) { return undefined; } this.init(); this._createChildren(); this.createAccessibilityImplementation(); this._endInit(); if (this.validateNow) { this.redraw(true); } else { this.invalidate(); } }; v2.initFromClipParameters = function (Void) { var v4 = false; var v2; for (v2 in this.clipParameters) { if (this.hasOwnProperty(v2)) { v4 = true; this['def_' + v2] = this[v2]; delete this[v2]; } } if (v4) { for (v2 in this.clipParameters) { var v3 = this['def_' + v2]; if (v3 != undefined) { this[v2] = v3; } } } }; v2.init = function (Void) { this.__width = this._width; this.__height = this._height; if (this.initProperties == undefined) { this.initFromClipParameters(); } else { this.initProperties(); } if (_global.cascadingStyles == true) { this.stylecache = new Object(); } }; v2.getClassStyleDeclaration = function (Void) { var v4 = this; var v3 = this.className; while (v3 != undefined) { if (this.ignoreClassStyleDeclaration[v3] == undefined) { if (_global.styles[v3] != undefined) { return _global.styles[v3]; } } v4 = v4.__proto__; v3 = v4.className; } }; v2.setColor = function (color) {}; v2.__getTextFormat = function (tf, bAll) { var v8 = this.stylecache.tf; if (v8 != undefined) { var v3; for (v3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) { if (tf[v3] == undefined) { tf[v3] = v8[v3]; } } } return false; } var v6 = false; for (v3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) { if (tf[v3] == undefined) { var v5 = this._tf[v3]; if (v5 != undefined) { tf[v3] = v5; } else { if (v3 == 'font' && this.fontFamily != undefined) { tf[v3] = this.fontFamily; } else { if (v3 == 'size' && this.fontSize != undefined) { tf[v3] = this.fontSize; } else { if (v3 == 'color' && this.color != undefined) { tf[v3] = this.color; } else { if (v3 == 'leftMargin' && this.marginLeft != undefined) { tf[v3] = this.marginLeft; } else { if (v3 == 'rightMargin' && this.marginRight != undefined) { tf[v3] = this.marginRight; } else { if (v3 == 'italic' && this.fontStyle != undefined) { tf[v3] = this.fontStyle == v3; } else { if (v3 == 'bold' && this.fontWeight != undefined) { tf[v3] = this.fontWeight == v3; } else { if (v3 == 'align' && this.textAlign != undefined) { tf[v3] = this.textAlign; } else { if (v3 == 'indent' && this.textIndent != undefined) { tf[v3] = this.textIndent; } else { if (v3 == 'underline' && this.textDecoration != undefined) { tf[v3] = this.textDecoration == v3; } else { if (v3 == 'embedFonts' && this.embedFonts != undefined) { tf[v3] = this.embedFonts; } else { v6 = true; } } } } } } } } } } } } } } } if (v6) { var v9 = this.styleName; if (v9 != undefined) { if (typeof v9 != 'string') { v6 = v9.__getTextFormat(tf, true, this); } else { if (_global.styles[v9] != undefined) { v6 = _global.styles[v9].__getTextFormat(tf, true, this); } } } } if (v6) { var v10 = this.getClassStyleDeclaration(); if (v10 != undefined) { v6 = v10.__getTextFormat(tf, true, this); } } if (v6) { if (_global.cascadingStyles) { if (this._parent != undefined) { v6 = this._parent.__getTextFormat(tf, false); } } } if (v6) { v6 = _global.style.__getTextFormat(tf, true, this); } return v6; }; v2._getTextFormat = function (Void) { var v2 = this.stylecache.tf; if (v2 != undefined) { return v2; } v2 = new TextFormat(); this.__getTextFormat(v2, true); this.stylecache.tf = v2; if (this.enabled == false) { var v3 = this.getStyle('disabledColor'); v2.color = v3; } return v2; }; v2.getStyleName = function (Void) { var v2 = this.styleName; if (v2 != undefined) { if (typeof v2 != 'string') { return v2.getStyleName(); } else { return v2; } } if (this._parent != undefined) { return this._parent.getStyleName(); } else { return undefined; } }; v2.getStyle = function (styleProp) { var v3; ++_global.getStyleCounter; if (this[styleProp] != undefined) { return this[styleProp]; } var v6 = this.styleName; if (v6 != undefined) { if (typeof v6 != 'string') { v3 = v6.getStyle(styleProp); } else { var v7 = _global.styles[v6]; v3 = v7.getStyle(styleProp); } } if (v3 != undefined) { return v3; } v7 = this.getClassStyleDeclaration(); if (v7 != undefined) { v3 = v7[styleProp]; } if (v3 != undefined) { return v3; } if (_global.cascadingStyles) { if (mx.styles.StyleManager.isInheritingStyle(styleProp) || mx.styles.StyleManager.isColorStyle(styleProp)) { var v5 = this.stylecache; if (v5 != undefined) { if (v5[styleProp] != undefined) { return v5[styleProp]; } } if (this._parent != undefined) { v3 = this._parent.getStyle(styleProp); } else { v3 = _global.style[styleProp]; } if (v5 != undefined) { v5[styleProp] = v3; } return v3; } } if (v3 == undefined) { v3 = _global.style[styleProp]; } return v3; }; v1.mergeClipParameters = function (o, p) { for (var v3 in p) { o[v3] = p[v3]; } return true; }; v1.symbolName = 'UIObject'; v1.symbolOwner = mx.core.UIObject; v1.version = '2.0.2.127'; v1.textColorList = {'color': 1, 'disabledColor': 1}; v2.invalidateFlag = false; v2.lineWidth = 1; v2.lineColor = 0; v2.tabEnabled = false; v2.clipParameters = {'visible': 1, 'minHeight': 1, 'minWidth': 1, 'maxHeight': 1, 'maxWidth': 1, 'preferredHeight': 1, 'preferredWidth': 1}; v2.addProperty('bottom', v2.__get__bottom, function () {}); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('left', v2.__get__left, function () {}); v2.addProperty('minHeight', v2.__get__minHeight, v2.__set__minHeight); v2.addProperty('minWidth', v2.__get__minWidth, v2.__set__minWidth); v2.addProperty('right', v2.__get__right, function () {}); v2.addProperty('scaleX', v2.__get__scaleX, v2.__set__scaleX); v2.addProperty('scaleY', v2.__get__scaleY, v2.__set__scaleY); v2.addProperty('top', v2.__get__top, function () {}); v2.addProperty('visible', v2.__get__visible, v2.__set__visible); v2.addProperty('width', v2.__get__width, function () {}); v2.addProperty('x', v2.__get__x, function () {}); v2.addProperty('y', v2.__get__y, function () {}); ASSetPropFlags(mx.core.UIObject.prototype, null, 1); } #endinitclip } movieClip 358 __Packages.mx.skins.SkinElement { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.SkinElement) { var v1 = function () { super(); }; mx.skins.SkinElement = v1; mx.skins.SkinElement extends MovieClip; var v2 = v1.prototype; v1.registerElement = function (name, className) { Object.registerClass(name, (className == undefined) ? mx.skins.SkinElement : className); _global.skinRegistry[name] = true; }; v2.__set__visible = function (visible) { this._visible = visible; }; v2.move = function (x, y) { this._x = x; this._y = y; }; v2.setSize = function (w, h) { this._width = w; this._height = h; }; ASSetPropFlags(mx.skins.SkinElement.prototype, null, 1); } #endinitclip } movieClip 359 __Packages.mx.styles.CSSTextStyles { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSTextStyles) { var v1 = function () {}; mx.styles.CSSTextStyles = v1; var v2 = v1.prototype; v1.addTextStyles = function (o, bColor) { o.addProperty('textAlign', function () { return this._tf.align; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.align = x; }); o.addProperty('fontWeight', function () { return (this._tf.bold != undefined) ? (this._tf.bold ? 'bold' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.bold = x == 'bold'; }); if (bColor) { o.addProperty('color', function () { return this._tf.color; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.color = x; }); } o.addProperty('fontFamily', function () { return this._tf.font; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.font = x; }); o.addProperty('textIndent', function () { return this._tf.indent; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.indent = x; }); o.addProperty('fontStyle', function () { return (this._tf.italic != undefined) ? (this._tf.italic ? 'italic' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.italic = x == 'italic'; }); o.addProperty('marginLeft', function () { return this._tf.leftMargin; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.leftMargin = x; }); o.addProperty('marginRight', function () { return this._tf.rightMargin; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.rightMargin = x; }); o.addProperty('fontSize', function () { return this._tf.size; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.size = x; }); o.addProperty('textDecoration', function () { return (this._tf.underline != undefined) ? (this._tf.underline ? 'underline' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.underline = x == 'underline'; }); o.addProperty('embedFonts', function () { return this._tf.embedFonts; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.embedFonts = x; }); }; ASSetPropFlags(mx.styles.CSSTextStyles.prototype, null, 1); } #endinitclip } movieClip 361 __Packages.mx.styles.CSSStyleDeclaration { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSStyleDeclaration) { var v1 = function () {}; mx.styles.CSSStyleDeclaration = v1; var v2 = v1.prototype; v2.__getTextFormat = function (tf, bAll) { var v5 = false; if (this._tf != undefined) { var v2; for (v2 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v2]) { if (tf[v2] == undefined) { var v3 = this._tf[v2]; if (v3 != undefined) { tf[v2] = v3; } else { v5 = true; } } } } return v5; } v5 = true; return v5; }; v2.getStyle = function (styleProp) { var v2 = this[styleProp]; var v3 = mx.styles.StyleManager.getColorName(v2); return (v3 == undefined) ? v2 : v3; }; v1.classConstruct = function () { mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true); return true; }; v1.classConstructed = mx.styles.CSSStyleDeclaration.classConstruct(); v1.CSSTextStylesDependency = mx.styles.CSSTextStyles; ASSetPropFlags(mx.styles.CSSStyleDeclaration.prototype, null, 1); } #endinitclip } movieClip 360 __Packages.mx.styles.StyleManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.StyleManager) { var v1 = function () {}; mx.styles.StyleManager = v1; var v2 = v1.prototype; v1.registerInheritingStyle = function (styleName) { mx.styles.StyleManager.inheritingStyles[styleName] = true; }; v1.isInheritingStyle = function (styleName) { return mx.styles.StyleManager.inheritingStyles[styleName] == true; }; v1.registerColorStyle = function (styleName) { mx.styles.StyleManager.colorStyles[styleName] = true; }; v1.isColorStyle = function (styleName) { return mx.styles.StyleManager.colorStyles[styleName] == true; }; v1.registerColorName = function (colorName, colorValue) { mx.styles.StyleManager.colorNames[colorName] = colorValue; }; v1.isColorName = function (colorName) { return mx.styles.StyleManager.colorNames[colorName] != undefined; }; v1.getColorName = function (colorName) { return mx.styles.StyleManager.colorNames[colorName]; }; v1.inheritingStyles = {'color': true, 'direction': true, 'fontFamily': true, 'fontSize': true, 'fontStyle': true, 'fontWeight': true, 'textAlign': true, 'textIndent': true}; v1.colorStyles = {'barColor': true, 'trackColor': true, 'borderColor': true, 'buttonColor': true, 'color': true, 'dateHeaderColor': true, 'dateRollOverColor': true, 'disabledColor': true, 'fillColor': true, 'highlightColor': true, 'scrollTrackColor': true, 'selectedDateColor': true, 'shadowColor': true, 'strokeColor': true, 'symbolBackgroundColor': true, 'symbolBackgroundDisabledColor': true, 'symbolBackgroundPressedColor': true, 'symbolColor': true, 'symbolDisabledColor': true, 'themeColor': true, 'todayIndicatorColor': true, 'shadowCapColor': true, 'borderCapColor': true, 'focusColor': true}; v1.colorNames = {'black': 0, 'white': 16777215, 'red': 16711680, 'green': 65280, 'blue': 255, 'magenta': 16711935, 'yellow': 16776960, 'cyan': 65535, 'haloGreen': 8453965, 'haloBlue': 2881013, 'haloOrange': 16761344}; v1.TextFormatStyleProps = {'font': true, 'size': true, 'color': true, 'leftMargin': false, 'rightMargin': false, 'italic': true, 'bold': true, 'align': true, 'indent': true, 'underline': false, 'embedFonts': false}; v1.TextStyleMap = {'textAlign': true, 'fontWeight': true, 'color': true, 'fontFamily': true, 'textIndent': true, 'fontStyle': true, 'lineHeight': true, 'marginLeft': true, 'marginRight': true, 'fontSize': true, 'textDecoration': true, 'embedFonts': true}; ASSetPropFlags(mx.styles.StyleManager.prototype, null, 1); } #endinitclip } movieClip 235 __Packages.mx.core.UIComponent { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.UIComponent) { var v1 = function () { super(); }; mx.core.UIComponent = v1; mx.core.UIComponent extends mx.core.UIObject; var v2 = v1.prototype; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.setVisible = function (x, noEvent) { super.setVisible(x, noEvent); }; v2.enabledChanged = function (id, oldValue, newValue) { this.setEnabled(newValue); this.invalidate(); delete this.stylecache.tf; return newValue; }; v2.setEnabled = function (enabled) { this.invalidate(); }; v2.getFocus = function () { var selFocus = Selection.getFocus(); return (selFocus === null) ? null : eval(selFocus); }; v2.setFocus = function () { Selection.setFocus(this); }; v2.getFocusManager = function () { var v2 = this; while (v2 != undefined) { if (v2.focusManager != undefined) { return v2.focusManager; } v2 = v2._parent; } return undefined; }; v2.onKillFocus = function (newFocus) { this.removeEventListener('keyDown', this); this.removeEventListener('keyUp', this); this.dispatchEvent({'type': 'focusOut'}); this.drawFocus(false); }; v2.onSetFocus = function (oldFocus) { this.addEventListener('keyDown', this); this.addEventListener('keyUp', this); this.dispatchEvent({'type': 'focusIn'}); if ((this.getFocusManager()).bDrawFocus != false) { this.drawFocus(true); } }; v2.findFocusInChildren = function (o) { if (o.focusTextField != undefined) { return o.focusTextField; } if (o.tabEnabled == true) { return o; } return undefined; }; v2.findFocusFromObject = function (o) { if (o.tabEnabled != true) { if (o._parent == undefined) { return undefined; } if (o._parent.tabEnabled == true) { o = o._parent; return o; } if (o._parent.tabChildren) { o = this.findFocusInChildren(o._parent); return o; } o = this.findFocusFromObject(o._parent); } return o; }; v2.pressFocus = function () { var v3 = this.findFocusFromObject(this); var v2 = this.getFocus(); if (v3 != v2) { v2.drawFocus(false); if ((this.getFocusManager()).bDrawFocus != false) { v3.drawFocus(true); } } }; v2.releaseFocus = function () { var v2 = this.findFocusFromObject(this); if (v2 != this.getFocus()) { v2.setFocus(); } }; v2.isParent = function (o) { while (o != undefined) { if (o == this) { return true; } o = o._parent; } return false; }; v2.size = function () {}; v2.init = function () { super.init(); this._xscale = 100; this._yscale = 100; this._focusrect = _global.useFocusRect == false; this.watch('enabled', this.enabledChanged); if (this.enabled == false) { this.setEnabled(false); } }; v2.dispatchValueChangedEvent = function (value) { this.dispatchEvent({'type': 'valueChanged', 'value': value}); }; v1.symbolName = 'UIComponent'; v1.symbolOwner = mx.core.UIComponent; v1.version = '2.0.2.127'; v1.kStretch = 5000; v2.focusEnabled = true; v2.tabEnabled = true; v2.origBorderStyles = {'themeColor': 16711680}; v2.clipParameters = {}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.core.UIComponent.prototype, null, 1); } #endinitclip } movieClip 236 __Packages.mx.core.View { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.View) { var v1 = function () { super(); }; mx.core.View = v1; mx.core.View extends mx.core.UIComponent; var v2 = v1.prototype; v2.init = function () { super.init(); this.tabChildren = true; this.tabEnabled = false; this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; v2.size = function () { this.border_mc.move(0, 0); this.border_mc.setSize(this.__get__width(), this.__get__height()); this.doLayout(); }; v2.draw = function () { this.size(); }; v2.__get__numChildren = function () { var v3 = mx.core.View.childNameBase; var v2 = 0; while (!false) { if (this[v3 + v2] == undefined) { return v2; } ++v2; } return -1; }; v2.__get__tabIndex = function () { return this.tabEnabled ? this.__tabIndex : undefined; }; v2.__set__tabIndex = function (n) { this.__tabIndex = n; return this.__get__tabIndex(); }; v2.addLayoutObject = function (object) {}; v2.createChild = function (className, instanceName, initProps) { if (this.depth == undefined) { this.depth = 1; } var v2; if (typeof className == 'string') { v2 = this.createObject(className, instanceName, this.depth++, initProps); } else { v2 = this.createClassObject(className, instanceName, this.depth++, initProps); } if (v2 == undefined) { v2 = this.loadExternal(className, this._loadExternalClass, instanceName, this.depth++, initProps); this.addLayoutObject(v2); return v2; } this[mx.core.View.childNameBase + this.__get__numChildren()] = v2; v2._complete = true; this.childLoaded(v2); this.addLayoutObject(v2); return v2; }; v2.getChildAt = function (childIndex) { return this[mx.core.View.childNameBase + childIndex]; }; v2.destroyChildAt = function (childIndex) { if (!(childIndex >= 0 && childIndex < this.__get__numChildren())) { return undefined; } var v4 = mx.core.View.childNameBase + childIndex; var v6 = this.__get__numChildren(); var v3; for (v3 in this) { if (v3 == v4) { v4 = ''; this.destroyObject(v3); break; } } var v2 = Number(childIndex); while (v2 < v6 - 1) { this[mx.core.View.childNameBase + v2] = this[mx.core.View.childNameBase + (v2 + 1)]; ++v2; } delete this[mx.core.View.childNameBase + (v6 - 1)]; --this.depth; }; v2.initLayout = function () { if (!this.hasBeenLayedOut) { this.doLayout(); } }; v2.doLayout = function () { this.hasBeenLayedOut = true; }; v2.createChildren = function () { if (this.border_mc == undefined) { this.border_mc = this.createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {'styleName': this}); } this.doLater(this, 'initLayout'); }; v2.convertToUIObject = function (obj) {}; v2.childLoaded = function (obj) { this.convertToUIObject(obj); }; v1.extension = function () { mx.core.ExternalContent.enableExternalContent(); }; v1.symbolName = 'View'; v1.symbolOwner = mx.core.View; v1.version = '2.0.2.127'; v2.className = 'View'; v1.childNameBase = '_child'; v2.hasBeenLayedOut = false; v2._loadExternalClass = 'UIComponent'; v2.addProperty('numChildren', v2.__get__numChildren, function () {}); v2.addProperty('tabIndex', v2.__get__tabIndex, v2.__set__tabIndex); ASSetPropFlags(mx.core.View.prototype, null, 1); } #endinitclip } movieClip 362 __Packages.mx.skins.Border { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.Border) { var v1 = function () { super(); }; mx.skins.Border = v1; mx.skins.Border extends mx.core.UIObject; var v2 = v1.prototype; v2.init = function (Void) { super.init(); }; v1.symbolName = 'Border'; v1.symbolOwner = mx.skins.Border; v2.className = 'Border'; v2.tagBorder = 0; v2.idNames = new Array('border_mc'); ASSetPropFlags(mx.skins.Border.prototype, null, 1); } #endinitclip } movieClip 363 __Packages.mx.skins.RectBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.RectBorder) { var v1 = function () { super(); }; mx.skins.RectBorder = v1; mx.skins.RectBorder extends mx.skins.Border; var v2 = v1.prototype; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.init = function (Void) { super.init(); }; v2.draw = function (Void) { this.size(); }; v2.getBorderMetrics = function (Void) { var v2 = this.offset; if (this.__borderMetrics == undefined) { this.__borderMetrics = {'left': v2, 'top': v2, 'right': v2, 'bottom': v2}; return this.__borderMetrics; } this.__borderMetrics.left = v2; this.__borderMetrics.top = v2; this.__borderMetrics.right = v2; this.__borderMetrics.bottom = v2; return this.__borderMetrics; }; v2.__get__borderMetrics = function () { return this.getBorderMetrics(); }; v2.drawBorder = function (Void) {}; v2.size = function (Void) { this.drawBorder(); }; v2.setColor = function (Void) { this.drawBorder(); }; v1.symbolName = 'RectBorder'; v1.symbolOwner = mx.skins.RectBorder; v1.version = '2.0.2.127'; v2.className = 'RectBorder'; v2.borderStyleName = 'borderStyle'; v2.borderColorName = 'borderColor'; v2.shadowColorName = 'shadowColor'; v2.highlightColorName = 'highlightColor'; v2.buttonColorName = 'buttonColor'; v2.backgroundColorName = 'backgroundColor'; v2.addProperty('borderMetrics', v2.__get__borderMetrics, function () {}); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.skins.RectBorder.prototype, null, 1); } #endinitclip } movieClip 364 __Packages.mx.managers.DepthManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.DepthManager) { var v1 = function () { MovieClip.prototype.createClassChildAtDepth = this.createClassChildAtDepth; MovieClip.prototype.createChildAtDepth = this.createChildAtDepth; MovieClip.prototype.setDepthTo = this.setDepthTo; MovieClip.prototype.setDepthAbove = this.setDepthAbove; MovieClip.prototype.setDepthBelow = this.setDepthBelow; MovieClip.prototype.findNextAvailableDepth = this.findNextAvailableDepth; MovieClip.prototype.shuffleDepths = this.shuffleDepths; MovieClip.prototype.getDepthByFlag = this.getDepthByFlag; MovieClip.prototype.buildDepthTable = this.buildDepthTable; _global.ASSetPropFlags(MovieClip.prototype, 'createClassChildAtDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'createChildAtDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthTo', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthAbove', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthBelow', 1); _global.ASSetPropFlags(MovieClip.prototype, 'findNextAvailableDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'shuffleDepths', 1); _global.ASSetPropFlags(MovieClip.prototype, 'getDepthByFlag', 1); _global.ASSetPropFlags(MovieClip.prototype, 'buildDepthTable', 1); }; mx.managers.DepthManager = v1; var v2 = v1.prototype; v1.sortFunction = function (a, b) { if (a.getDepth() > b.getDepth()) { return 1; } return -1; }; v1.test = function (depth) { if (depth == mx.managers.DepthManager.reservedDepth) { return false; } else { return true; } }; v1.createClassObjectAtDepth = function (className, depthSpace, initObj) { var v1; switch (depthSpace) { case mx.managers.DepthManager.kCursor: v1 = mx.managers.DepthManager.holder.createClassChildAtDepth(className, mx.managers.DepthManager.kTopmost, initObj); return v1; case mx.managers.DepthManager.kTooltip: v1 = mx.managers.DepthManager.holder.createClassChildAtDepth(className, mx.managers.DepthManager.kTop, initObj); return v1; } return v1; }; v1.createObjectAtDepth = function (linkageName, depthSpace, initObj) { var v1; switch (depthSpace) { case mx.managers.DepthManager.kCursor: v1 = mx.managers.DepthManager.holder.createChildAtDepth(linkageName, mx.managers.DepthManager.kTopmost, initObj); return v1; case mx.managers.DepthManager.kTooltip: v1 = mx.managers.DepthManager.holder.createChildAtDepth(linkageName, mx.managers.DepthManager.kTop, initObj); return v1; } return v1; }; v2.createClassChildAtDepth = function (className, depthFlag, initObj) { if (this._childCounter == undefined) { this._childCounter = 0; } var v3 = this.buildDepthTable(); var v2 = this.getDepthByFlag(depthFlag, v3); var v5 = 'down'; if (depthFlag == mx.managers.DepthManager.kBottom) { v5 = 'up'; } var v6; if (v3[v2] != undefined) { v6 = v2; v2 = this.findNextAvailableDepth(v2, v3, v5); } var v4 = this.createClassObject(className, 'depthChild' + this._childCounter++, v2, initObj); if (v6 != undefined) { v3[v2] = v4; this.shuffleDepths(v4, v6, v3, v5); } if (depthFlag == mx.managers.DepthManager.kTopmost) { v4._topmost = true; } return v4; }; v2.createChildAtDepth = function (linkageName, depthFlag, initObj) { if (this._childCounter == undefined) { this._childCounter = 0; } var v3 = this.buildDepthTable(); var v2 = this.getDepthByFlag(depthFlag, v3); var v5 = 'down'; if (depthFlag == mx.managers.DepthManager.kBottom) { v5 = 'up'; } var v6; if (v3[v2] != undefined) { v6 = v2; v2 = this.findNextAvailableDepth(v2, v3, v5); } var v4 = this.createObject(linkageName, 'depthChild' + this._childCounter++, v2, initObj); if (v6 != undefined) { v3[v2] = v4; this.shuffleDepths(v4, v6, v3, v5); } if (depthFlag == mx.managers.DepthManager.kTopmost) { v4._topmost = true; } return v4; }; v2.setDepthTo = function (depthFlag) { var v2 = this._parent.buildDepthTable(); var v3 = this._parent.getDepthByFlag(depthFlag, v2); if (v2[v3] != undefined) { this.shuffleDepths(MovieClip(this), v3, v2, undefined); } else { this.swapDepths(v3); } if (depthFlag == mx.managers.DepthManager.kTopmost) { this._topmost = true; } else { delete this._topmost; } }; v2.setDepthAbove = function (targetInstance) { if (targetInstance._parent != this._parent) { return undefined; } var v2 = targetInstance.getDepth() + 1; var v3 = this._parent.buildDepthTable(); if (v3[v2] != undefined && this.getDepth() < v2) { v2 -= 1; } if (v2 > mx.managers.DepthManager.highestDepth) { v2 = mx.managers.DepthManager.highestDepth; } if (v2 == mx.managers.DepthManager.highestDepth) { this._parent.shuffleDepths(this, v2, v3, 'down'); } else { if (v3[v2] != undefined) { this._parent.shuffleDepths(this, v2, v3, undefined); } else { this.swapDepths(v2); } } }; v2.setDepthBelow = function (targetInstance) { if (targetInstance._parent != this._parent) { return undefined; } var v6 = targetInstance.getDepth() - 1; var v3 = this._parent.buildDepthTable(); if (v3[v6] != undefined && this.getDepth() > v6) { v6 += 1; } var v4 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; var v5; for (v5 in v3) { var v2 = v3[v5]; if (v2._parent != undefined) { v4 = Math.min(v4, v2.getDepth()); } } if (v6 < v4) { v6 = v4; } if (v6 == v4) { this._parent.shuffleDepths(this, v6, v3, 'up'); } else { if (v3[v6] != undefined) { this._parent.shuffleDepths(this, v6, v3, undefined); } else { this.swapDepths(v6); } } }; v2.findNextAvailableDepth = function (targetDepth, depthTable, direction) { var v5 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; if (targetDepth < v5) { targetDepth = v5; } if (depthTable[targetDepth] == undefined) { return targetDepth; } var v1 = targetDepth; var v2 = targetDepth; if (direction == 'down') { while (depthTable[v2] != undefined) { --v2; } return v2; } while (depthTable[v1] != undefined) { ++v1; } return v1; }; v2.shuffleDepths = function (subject, targetDepth, depthTable, direction) { var v9 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; var v8 = v9; var v5; for (v5 in depthTable) { var v7 = depthTable[v5]; if (v7._parent != undefined) { v9 = Math.min(v9, v7.getDepth()); } } if (direction == undefined) { if (subject.getDepth() > targetDepth) { direction = 'up'; } else { direction = 'down'; } } var v1 = new Array(); for (v5 in depthTable) { v7 = depthTable[v5]; if (v7._parent != undefined) { v1.push(v7); } } v1.sort(mx.managers.DepthManager.sortFunction); if (direction == 'up') { var v3; var v11; while (v1.length > 0) { v3 = v1.pop(); if (v3 == subject) { break; } } while (v1.length > 0) { v11 = subject.getDepth(); v3 = v1.pop(); var v4 = v3.getDepth(); if (v11 > v4 + 1) { if (v4 >= 0) { subject.swapDepths(v4 + 1); } else { if (v11 > v8 && v4 < v8) { subject.swapDepths(v8); } } } subject.swapDepths(v3); if (v4 == targetDepth) { break; } } } else { if (direction == 'down') { var v3; while (v1.length > 0) { v3 = v1.shift(); if (v3 == subject) { break; } } while (v1.length > 0) { var v11 = v3.getDepth(); v3 = v1.shift(); var v4 = v3.getDepth(); if (v11 < v4 - 1 && v4 > 0) { subject.swapDepths(v4 - 1); } subject.swapDepths(v3); if (v4 == targetDepth) { break; } } } } }; v2.getDepthByFlag = function (depthFlag, depthTable) { var v2 = 0; if (depthFlag == mx.managers.DepthManager.kTop || depthFlag == mx.managers.DepthManager.kNotopmost) { var v5 = 0; var v7 = false; var v8; for (v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { if (!v9._topmost) { v2 = Math.max(v2, v9.getDepth()); } else { if (!v7) { v5 = v9.getDepth(); v7 = true; } else { v5 = Math.min(v5, v9.getDepth()); } } } } } v2 += 20; if (v7) { if (v2 >= v5) { v2 = v5 - 1; } } } else { if (depthFlag == mx.managers.DepthManager.kBottom) { for (var v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { v2 = Math.min(v2, v9.getDepth()); } } } v2 -= 20; } else { if (depthFlag == mx.managers.DepthManager.kTopmost) { for (var v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { v2 = Math.max(v2, v9.getDepth()); } } } v2 += 100; } } } if (v2 >= mx.managers.DepthManager.highestDepth) { v2 = mx.managers.DepthManager.highestDepth; } var v6 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; for (v9 in depthTable) { var v4 = depthTable[v9]; if (v4._parent != undefined) { v6 = Math.min(v6, v4.getDepth()); } } if (v2 <= v6) { v2 = v6; } return v2; }; v2.buildDepthTable = function (Void) { var v5 = new Array(); var v4; for (v4 in this) { var v2 = this[v4]; var v3 = typeof v2; if (v3 == 'movieclip' || v3 == 'object' && v2.__getTextFormat != undefined) { if (v2._parent == this) { v5[v2.getDepth()] = v2; } } } return v5; }; v1.reservedDepth = 1048575; v1.highestDepth = 1048574; v1.lowestDepth = -16383; v1.numberOfAuthortimeLayers = 383; v1.kCursor = 101; v1.kTooltip = 102; v1.kTop = 201; v1.kBottom = 202; v1.kTopmost = 203; v1.kNotopmost = 204; v1.holder = _root.createEmptyMovieClip('reserved', mx.managers.DepthManager.reservedDepth); v1.__depthManager = new mx.managers.DepthManager(); ASSetPropFlags(mx.managers.DepthManager.prototype, null, 1); } #endinitclip } movieClip 366 __Packages.mx.core.ExternalContent { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ExternalContent) { var v1 = function () {}; mx.core.ExternalContent = v1; var v2 = v1.prototype; v2.loadExternal = function (url, placeholderClassName, instanceName, depth, initProps) { var v2; v2 = this.createObject(placeholderClassName, instanceName, depth, initProps); this[mx.core.View.childNameBase + this.numChildren] = v2; if (this.prepList == undefined) { this.prepList = new Object(); } this.prepList[instanceName] = {'obj': v2, 'url': url, 'complete': false, 'initProps': initProps}; this.prepareToLoadMovie(v2); return v2; }; v2.prepareToLoadMovie = function (obj) { obj.unloadMovie(); this.doLater(this, 'waitForUnload'); }; v2.waitForUnload = function () { var v3; for (v3 in this.prepList) { var v2 = this.prepList[v3]; if (v2.obj.getBytesTotal() == 0) { if (this.loadList == undefined) { this.loadList = new Object(); } this.loadList[v3] = v2; v2.obj.loadMovie(v2.url); delete this.prepList[v3]; this.doLater(this, 'checkLoadProgress'); } else { this.doLater(this, 'waitForUnload'); } } }; v2.checkLoadProgress = function () { var v8 = false; var v3; for (v3 in this.loadList) { var v2 = this.loadList[v3]; v2.loaded = v2.obj.getBytesLoaded(); v2.total = v2.obj.getBytesTotal(); if (v2.total > 0) { v2.obj._visible = false; this.dispatchEvent({'type': 'progress', 'target': v2.obj, 'current': v2.loaded, 'total': v2.total}); if (v2.loaded == v2.total) { if (this.loadedList == undefined) { this.loadedList = new Object(); } this.loadedList[v3] = v2; delete this.loadList[v3]; this.doLater(this, 'contentLoaded'); } } else { if (v2.total == -1) { if (v2.failedOnce != undefined) { ++v2.failedOnce; if (v2.failedOnce > 3) { this.dispatchEvent({'type': 'complete', 'target': v2.obj, 'current': v2.loaded, 'total': v2.total}); delete this.loadList[v3]; false; } } else { v2.failedOnce = 0; } } } v8 = true; } if (v8) { this.doLater(this, 'checkLoadProgress'); } }; v2.contentLoaded = function () { var v4; for (v4 in this.loadedList) { var v2 = this.loadedList[v4]; v2.obj._visible = true; v2.obj._complete = true; var v3; for (v3 in v2.initProps) { v2.obj[v3] = v2.initProps[v3]; } this.childLoaded(v2.obj); this.dispatchEvent({'type': 'complete', 'target': v2.obj, 'current': v2.loaded, 'total': v2.total}); delete this.loadedList[v4]; false; } }; v2.convertToUIObject = function (obj) { if (obj.setSize == undefined) { var v2 = mx.core.UIObject.prototype; obj.addProperty('width', v2.__get__width, null); obj.addProperty('height', v2.__get__height, null); obj.addProperty('left', v2.__get__left, null); obj.addProperty('x', v2.__get__x, null); obj.addProperty('top', v2.__get__top, null); obj.addProperty('y', v2.__get__y, null); obj.addProperty('right', v2.__get__right, null); obj.addProperty('bottom', v2.__get__bottom, null); obj.addProperty('visible', v2.__get__visible, v2.__set__visible); obj.move = mx.core.UIObject.prototype.move; obj.setSize = mx.core.UIObject.prototype.setSize; obj.size = mx.core.UIObject.prototype.size; mx.events.UIEventDispatcher.initialize(obj); } }; v1.enableExternalContent = function () {}; v1.classConstruct = function () { var v1 = mx.core.View.prototype; var v2 = mx.core.ExternalContent.prototype; v1.loadExternal = v2.loadExternal; v1.prepareToLoadMovie = v2.prepareToLoadMovie; v1.waitForUnload = v2.waitForUnload; v1.checkLoadProgress = v2.checkLoadProgress; v1.contentLoaded = v2.contentLoaded; v1.convertToUIObject = v2.convertToUIObject; return true; }; v1.classConstructed = mx.core.ExternalContent.classConstruct(); v1.ViewDependency = mx.core.View; ASSetPropFlags(mx.core.ExternalContent.prototype, null, 1); } #endinitclip } movieClip 238 __Packages.mx.events.EventDispatcher { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.events) { _global.mx.events = new Object(); } if (!_global.mx.events.EventDispatcher) { var v1 = function () {}; mx.events.EventDispatcher = v1; var v2 = v1.prototype; v1._removeEventListener = function (queue, event, handler) { if (queue != undefined) { var v4 = queue.length; var v1; v1 = 0; while (v1 < v4) { var v2 = queue[v1]; if (v2 == handler) { queue.splice(v1, 1); return undefined; } ++v1; } } }; v1.initialize = function (object) { if (mx.events.EventDispatcher._fEventDispatcher == undefined) { mx.events.EventDispatcher._fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = mx.events.EventDispatcher._fEventDispatcher.addEventListener; object.removeEventListener = mx.events.EventDispatcher._fEventDispatcher.removeEventListener; object.dispatchEvent = mx.events.EventDispatcher._fEventDispatcher.dispatchEvent; object.dispatchQueue = mx.events.EventDispatcher._fEventDispatcher.dispatchQueue; }; v2.dispatchQueue = function (queueObj, eventObj) { var v7 = '__q_' + eventObj.type; var v4 = queueObj[v7]; if (v4 != undefined) { var v5; for (v5 in v4) { var v1 = v4[v5]; var v3 = typeof v1; if (v3 == 'object' || v3 == 'movieclip') { if (v1.handleEvent != undefined) { v1.handleEvent(eventObj); } if (v1[eventObj.type] != undefined) { if (mx.events.EventDispatcher.exceptions[eventObj.type] == undefined) { v1[eventObj.type](eventObj); } } } else { v1.apply(queueObj, [eventObj]); } } } }; v2.dispatchEvent = function (eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + 'Handler'](eventObj); this.dispatchQueue(this, eventObj); }; v2.addEventListener = function (event, handler) { var v3 = '__q_' + event; if (this[v3] == undefined) { this[v3] = new Array(); } _global.ASSetPropFlags(this, v3, 1); mx.events.EventDispatcher._removeEventListener(this[v3], event, handler); this[v3].push(handler); }; v2.removeEventListener = function (event, handler) { var v2 = '__q_' + event; mx.events.EventDispatcher._removeEventListener(this[v2], event, handler); }; v1._fEventDispatcher = undefined; v1.exceptions = {'move': 1, 'draw': 1, 'load': 1}; ASSetPropFlags(mx.events.EventDispatcher.prototype, null, 1); } #endinitclip } movieClip 365 __Packages.mx.events.UIEventDispatcher { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.events) { _global.mx.events = new Object(); } if (!_global.mx.events.UIEventDispatcher) { var v1 = function () { super(); }; mx.events.UIEventDispatcher = v1; mx.events.UIEventDispatcher extends mx.events.EventDispatcher; var v2 = v1.prototype; v1.addKeyEvents = function (obj) { if (obj.keyHandler == undefined) { obj.keyHandler = new Object(); var v1 = obj.keyHandler; v1.owner = obj; v1.onKeyDown = mx.events.UIEventDispatcher._fEventDispatcher.onKeyDown; v1.onKeyUp = mx.events.UIEventDispatcher._fEventDispatcher.onKeyUp; } Key.addListener(obj.keyHandler); }; v1.removeKeyEvents = function (obj) { Key.removeListener(obj.keyHandler); }; v1.addLoadEvents = function (obj) { if (obj.onLoad == undefined) { obj.onLoad = mx.events.UIEventDispatcher._fEventDispatcher.onLoad; obj.onUnload = mx.events.UIEventDispatcher._fEventDispatcher.onUnload; if (obj.getBytesTotal() == obj.getBytesLoaded()) { obj.doLater(obj, 'onLoad'); } } }; v1.removeLoadEvents = function (obj) { delete obj.onLoad; delete obj.onUnload; }; v1.initialize = function (obj) { if (mx.events.UIEventDispatcher._fEventDispatcher == undefined) { mx.events.UIEventDispatcher._fEventDispatcher = new mx.events.UIEventDispatcher(); } obj.addEventListener = mx.events.UIEventDispatcher._fEventDispatcher.__addEventListener; obj.__origAddEventListener = mx.events.UIEventDispatcher._fEventDispatcher.addEventListener; obj.removeEventListener = mx.events.UIEventDispatcher._fEventDispatcher.removeEventListener; obj.dispatchEvent = mx.events.UIEventDispatcher._fEventDispatcher.dispatchEvent; obj.dispatchQueue = mx.events.UIEventDispatcher._fEventDispatcher.dispatchQueue; }; v2.dispatchEvent = function (eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + 'Handler'](eventObj); this.dispatchQueue(mx.events.EventDispatcher, eventObj); this.dispatchQueue(this, eventObj); }; v2.onKeyDown = function (Void) { this.owner.dispatchEvent({'type': 'keyDown', 'code': Key.getCode(), 'ascii': Key.getAscii(), 'shiftKey': Key.isDown(16), 'ctrlKey': Key.isDown(17)}); }; v2.onKeyUp = function (Void) { this.owner.dispatchEvent({'type': 'keyUp', 'code': Key.getCode(), 'ascii': Key.getAscii(), 'shiftKey': Key.isDown(16), 'ctrlKey': Key.isDown(17)}); }; v2.onLoad = function (Void) { if (this.__sentLoadEvent != true) { this.dispatchEvent({'type': 'load'}); } this.__sentLoadEvent = true; }; v2.onUnload = function (Void) { this.dispatchEvent({'type': 'unload'}); }; v2.__addEventListener = function (event, handler) { this.__origAddEventListener(event, handler); var v3 = mx.events.UIEventDispatcher.lowLevelEvents; for (var v5 in v3) { if (mx.events.UIEventDispatcher[v5][event] != undefined) { var v2 = v3[v5][0]; mx.events.UIEventDispatcher[v2](this); } } }; v2.removeEventListener = function (event, handler) { var v6 = '__q_' + event; mx.events.EventDispatcher._removeEventListener(this[v6], event, handler); if (this[v6].length == 0) { var v2 = mx.events.UIEventDispatcher.lowLevelEvents; for (var v5 in v2) { if (mx.events.UIEventDispatcher[v5][event] != undefined) { var v3 = v2[v5][1]; mx.events.UIEventDispatcher[v2[v5][1]](this); } } } }; v1.keyEvents = {'keyDown': 1, 'keyUp': 1}; v1.loadEvents = {'load': 1, 'unload': 1}; v1.lowLevelEvents = {'keyEvents': ['addKeyEvents', 'removeKeyEvents'], 'loadEvents': ['addLoadEvents', 'removeLoadEvents']}; v1._fEventDispatcher = undefined; ASSetPropFlags(mx.events.UIEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 237 __Packages.mx.core.ScrollView { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ScrollView) { var v1 = function () { super(); }; mx.core.ScrollView = v1; mx.core.ScrollView extends mx.core.View; var v2 = v1.prototype; v2.getHScrollPolicy = function (Void) { return this.__hScrollPolicy; }; v2.setHScrollPolicy = function (policy) { this.__hScrollPolicy = policy.toLowerCase(); if (this.__width == undefined) { return undefined; } this.setScrollProperties(this.numberOfCols, this.columnWidth, this.rowC, this.rowH, this.heightPadding, this.widthPadding); }; v2.__get__hScrollPolicy = function () { return this.getHScrollPolicy(); }; v2.__set__hScrollPolicy = function (policy) { this.setHScrollPolicy(policy); return this.__get__hScrollPolicy(); }; v2.getVScrollPolicy = function (Void) { return this.__vScrollPolicy; }; v2.setVScrollPolicy = function (policy) { this.__vScrollPolicy = policy.toLowerCase(); if (this.__width == undefined) { return undefined; } this.setScrollProperties(this.numberOfCols, this.columnWidth, this.rowC, this.rowH, this.heightPadding, this.widthPadding); }; v2.__get__vScrollPolicy = function () { return this.getVScrollPolicy(); }; v2.__set__vScrollPolicy = function (policy) { this.setVScrollPolicy(policy); return this.__get__vScrollPolicy(); }; v2.__get__hPosition = function () { return this.getHPosition(); }; v2.__set__hPosition = function (pos) { this.setHPosition(pos); return this.__get__hPosition(); }; v2.getHPosition = function (Void) { return this.__hPosition; }; v2.setHPosition = function (pos) { this.hScroller.__set__scrollPosition(pos); this.__hPosition = pos; }; v2.__get__vPosition = function () { return this.getVPosition(); }; v2.__set__vPosition = function (pos) { this.setVPosition(pos); return this.__get__vPosition(); }; v2.getVPosition = function (Void) { return this.__vPosition; }; v2.setVPosition = function (pos) { this.vScroller.__set__scrollPosition(pos); this.__vPosition = pos; }; v2.__get__maxVPosition = function () { var v2 = this.vScroller.maxPos; return (v2 == undefined) ? 0 : v2; }; v2.__get__maxHPosition = function () { return this.getMaxHPosition(); }; v2.__set__maxHPosition = function (pos) { this.setMaxHPosition(pos); return this.__get__maxHPosition(); }; v2.getMaxHPosition = function (Void) { if (this.__maxHPosition != undefined) { return this.__maxHPosition; } var v2 = this.hScroller.maxPos; return (v2 == undefined) ? 0 : v2; }; v2.setMaxHPosition = function (pos) { this.__maxHPosition = pos; }; v2.setScrollProperties = function (colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) { var v3 = this.getViewMetrics(); if (hPadding == undefined) { hPadding = 0; } if (wPadding == undefined) { wPadding = 0; } this.propsInited = true; delete this.scrollAreaChanged; this.heightPadding = hPadding; this.widthPadding = wPadding; if (colWidth == 0) { colWidth = 1; } if (rwHeight == 0) { rwHeight = 1; } var v4 = Math.ceil((this.__width - v3.left - v3.right - this.widthPadding) / colWidth); if (this.__hScrollPolicy == 'on' || v4 < colCount && this.__hScrollPolicy == 'auto') { if (this.hScroller == undefined || this.specialHScrollCase) { delete this.specialHScrollCase; this.hScroller = mx.controls.scrollClasses.ScrollBar(this.createObject('HScrollBar', 'hSB', 1001)); this.hScroller.__set__lineScrollSize(20); this.hScroller.scrollHandler = this.scrollProxy; this.hScroller.__set__scrollPosition(this.__hPosition); this.scrollAreaChanged = true; } if (this.numberOfCols != colCount || this.columnWidth != colWidth || this.viewableColumns != v4 || this.scrollAreaChanged) { this.hScroller.setScrollProperties(v4, 0, colCount - v4); this.viewableColumns = v4; this.numberOfCols = colCount; this.columnWidth = colWidth; } } else { if ((this.__hScrollPolicy == 'auto' || this.__hScrollPolicy == 'off') && this.hScroller != undefined) { this.hScroller.removeMovieClip(); delete this.hScroller; this.scrollAreaChanged = true; } } if (this.heightPadding == undefined) { this.heightPadding = 0; } var v5 = Math.ceil((this.__height - v3.top - v3.bottom - this.heightPadding) / rwHeight); var v8 = (this.__height - v3.top - v3.bottom) % rwHeight != 0; if (this.__vScrollPolicy == 'on' || v5 < rwCount + v8 && this.__vScrollPolicy == 'auto') { if (this.vScroller == undefined) { this.vScroller = mx.controls.scrollClasses.ScrollBar(this.createObject('VScrollBar', 'vSB', 1002)); this.vScroller.scrollHandler = this.scrollProxy; this.vScroller.__set__scrollPosition(this.__vPosition); this.scrollAreaChanged = true; this.rowH = 0; } if (this.rowC != rwCount || this.rowH != rwHeight || this.viewableRows + v8 != v5 + this.oldRndUp || this.scrollAreaChanged) { this.vScroller.setScrollProperties(v5, 0, rwCount - v5 + v8); this.viewableRows = v5; this.rowC = rwCount; this.rowH = rwHeight; this.oldRndUp = v8; } } else { if ((this.__vScrollPolicy == 'auto' || this.__vScrollPolicy == 'off') && this.vScroller != undefined) { this.vScroller.removeMovieClip(); delete this.vScroller; this.scrollAreaChanged = true; } } this.numberOfCols = colCount; this.columnWidth = colWidth; if (this.scrollAreaChanged) { this.doLayout(); var v2 = this.__viewMetrics; var v12 = (this.owner != undefined) ? this.owner : this; v12.layoutContent(v2.left, v2.top, this.columnWidth * this.numberOfCols - v2.left - v2.right, this.rowC * this.rowH, this.__width - v2.left - v2.right, this.__height - v2.top - v2.bottom); } if (!this.enabled) { this.setEnabled(false); } }; v2.getViewMetrics = function (Void) { var v2 = this.__viewMetrics; var v3 = this.border_mc.__get__borderMetrics(); v2.left = v3.left; v2.right = v3.right; if (this.vScroller != undefined) { v2.right += this.vScroller.minWidth; } v2.top = v3.top; if (this.hScroller == undefined && (this.__hScrollPolicy == 'on' || this.__hScrollPolicy == true)) { this.hScroller = mx.controls.scrollClasses.ScrollBar(this.createObject('FHScrollBar', 'hSB', 1001)); this.specialHScrollCase = true; } v2.bottom = v3.bottom; if (this.hScroller != undefined) { v2.bottom += this.hScroller.minHeight; } return v2; }; v2.doLayout = function (Void) { var v10 = this.__get__width(); var v8 = this.__get__height(); delete this.invLayout; this.__viewMetrics = this.getViewMetrics(); var v3 = this.__viewMetrics; var v2 = v3.left; var v9 = v3.right; var v5 = v3.top; var v11 = v3.bottom; var v7 = this.hScroller; var v6 = this.vScroller; v7.setSize(v10 - v2 - v9, v7.minHeight + 0); v7.move(v2, v8 - v11); v6.setSize(v6.minWidth + 0, v8 - v5 - v11); v6.move(v10 - v9, v5); var v4 = this.mask_mc; v4._width = v10 - v2 - v9; v4._height = v8 - v5 - v11; v4._x = v2; v4._y = v5; }; v2.createChild = function (id, name, props) { var v2 = super.createChild(id, name, props); return v2; }; v2.init = function (Void) { super.init(); this.__viewMetrics = new Object(); if (_global.__SVMouseWheelManager == undefined) { _global.__SVMouseWheelManager = new Object(); var v4 = _global.__SVMouseWheelManager; v4.onMouseWheel = this.__onMouseWheel; Mouse.addListener(v4); } }; v2.__onMouseWheel = function (delta, scrollTarget) { var v4 = scrollTarget; var v1; while (v4 != undefined) { if (v4 instanceof mx.core.ScrollView) { v1 = v4; false; } v4 = v4._parent; } if (v1 != undefined) { v4 = delta <= 0 ? 1 : -1; var v2 = v1.vScroller.lineScrollSize; if (v2 == undefined) { v2 = 0; } v2 = Math.max(Math.abs(delta), v2); var v3 = v1.vPosition + v2 * v4; v1.vPosition = Math.max(0, Math.min(v3, v1.maxVPosition)); v1.dispatchEvent({'type': 'scroll', 'direction': 'vertical', 'position': v1.vPosition}); } }; v2.createChildren = function (Void) { super.createChildren(); if (this.mask_mc == undefined) { this.mask_mc = this.createObject('BoundingBox', 'mask_mc', this.MASK_DEPTH); } this.mask_mc._visible = false; }; v2.invalidate = function (Void) { super.invalidate(); }; v2.draw = function (Void) { this.size(); }; v2.size = function (Void) { super.size(); }; v2.scrollProxy = function (docObj) { this._parent.onScroll(docObj); }; v2.onScroll = function (docObj) { var v3 = docObj.target; var v2 = v3.scrollPosition; if (v3 == this.vScroller) { var v4 = 'vertical'; var v5 = '__vPosition'; } else { var v4 = 'horizontal'; var v5 = '__hPosition'; } this[v5] = v2; this.dispatchEvent({'type': 'scroll', 'direction': v4, 'position': v2}); }; v2.setEnabled = function (v) { this.hScroller.enabled = v; this.vScroller.enabled = this.hScroller.enabled; }; v2.childLoaded = function (obj) { super.childLoaded(obj); obj.setMask(this.mask_mc); }; v1.symbolName = 'ScrollView'; v1.symbolOwner = mx.core.ScrollView; v1.version = '2.0.2.127'; v2.className = 'ScrollView'; v2.__vScrollPolicy = 'auto'; v2.__hScrollPolicy = 'off'; v2.__vPosition = 0; v2.__hPosition = 0; v2.numberOfCols = 0; v2.rowC = 0; v2.columnWidth = 1; v2.rowH = 0; v2.heightPadding = 0; v2.widthPadding = 0; v2.MASK_DEPTH = 10000; v2.addProperty('hPosition', v2.__get__hPosition, v2.__set__hPosition); v2.addProperty('hScrollPolicy', v2.__get__hScrollPolicy, v2.__set__hScrollPolicy); v2.addProperty('maxHPosition', v2.__get__maxHPosition, v2.__set__maxHPosition); v2.addProperty('maxVPosition', v2.__get__maxVPosition, function () {}); v2.addProperty('vPosition', v2.__get__vPosition, v2.__set__vPosition); v2.addProperty('vScrollPolicy', v2.__get__vScrollPolicy, v2.__set__vScrollPolicy); ASSetPropFlags(mx.core.ScrollView.prototype, null, 1); } #endinitclip } movieClip 370 __Packages.mx.controls.scrollClasses.ScrollBar { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.scrollClasses) { _global.mx.controls.scrollClasses = new Object(); } if (!_global.mx.controls.scrollClasses.ScrollBar) { var v1 = function () { super(); }; mx.controls.scrollClasses.ScrollBar = v1; mx.controls.scrollClasses.ScrollBar extends mx.core.UIComponent; var v2 = v1.prototype; v2.__get__scrollPosition = function () { return this._scrollPosition; }; v2.__set__scrollPosition = function (pos) { this._scrollPosition = pos; if (this.isScrolling != true) { pos = Math.min(pos, this.maxPos); pos = Math.max(pos, this.minPos); var v3 = (pos - this.minPos) * (this.scrollTrack_mc.height - this.scrollThumb_mc._height) / (this.maxPos - this.minPos) + this.scrollTrack_mc.top; this.scrollThumb_mc.move(0, v3); } return this.__get__scrollPosition(); }; v2.__get__pageScrollSize = function () { return this.largeScroll; }; v2.__set__pageScrollSize = function (lScroll) { this.largeScroll = lScroll; return this.__get__pageScrollSize(); }; v2.__set__lineScrollSize = function (sScroll) { this.smallScroll = sScroll; return this.__get__lineScrollSize(); }; v2.__get__lineScrollSize = function () { return this.smallScroll; }; v2.__get__virtualHeight = function () { return this.__height; }; v2.init = function (Void) { super.init(); this._scrollPosition = 0; this.tabEnabled = false; this.focusEnabled = false; this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; v2.createChildren = function (Void) { if (this.scrollTrack_mc == undefined) { this.setSkin(mx.controls.scrollClasses.ScrollBar.skinIDTrack, this.scrollTrackName); } this.scrollTrack_mc.visible = false; var v3 = new Object(); v3.enabled = false; v3.preset = mx.controls.SimpleButton.falseDisabled; v3.initProperties = 0; v3.autoRepeat = true; v3.tabEnabled = false; var v2; if (this.upArrow_mc == undefined) { v2 = this.createButton(this.upArrowName, 'upArrow_mc', mx.controls.scrollClasses.ScrollBar.skinIDUpArrow, v3); } v2.buttonDownHandler = this.onUpArrow; v2.clickHandler = this.onScrollChanged; this._minHeight = v2.height; this._minWidth = v2.width; if (this.downArrow_mc == undefined) { v2 = this.createButton(this.downArrowName, 'downArrow_mc', mx.controls.scrollClasses.ScrollBar.skinIDDownArrow, v3); } v2.buttonDownHandler = this.onDownArrow; v2.clickHandler = this.onScrollChanged; this._minHeight += v2.height; }; v2.createButton = function (linkageName, id, skinID, o) { if (skinID == mx.controls.scrollClasses.ScrollBar.skinIDUpArrow) { o.falseUpSkin = this.upArrowUpName; o.falseDownSkin = this.upArrowDownName; o.falseOverSkin = this.upArrowOverName; var v3 = this.createObject(linkageName, id, skinID, o); this[id].visible = false; this[id].useHandCursor = false; return v3; } o.falseUpSkin = this.downArrowUpName; o.falseDownSkin = this.downArrowDownName; o.falseOverSkin = this.downArrowOverName; var v3 = this.createObject(linkageName, id, skinID, o); this[id].visible = false; this[id].useHandCursor = false; return v3; }; v2.createThumb = function (Void) { var v2 = new Object(); v2.validateNow = true; v2.tabEnabled = false; v2.leftSkin = this.thumbTopName; v2.middleSkin = this.thumbMiddleName; v2.rightSkin = this.thumbBottomName; v2.gripSkin = this.thumbGripName; this.createClassObject(mx.controls.scrollClasses.ScrollThumb, 'scrollThumb_mc', mx.controls.scrollClasses.ScrollBar.skinIDThumb, v2); }; v2.setScrollProperties = function (pSize, mnPos, mxPos, ls) { var v4; var v2 = this.scrollTrack_mc; this.pageSize = pSize; this.largeScroll = (ls != undefined && ls > 0) ? ls : pSize; this.minPos = Math.max(mnPos, 0); this.maxPos = Math.max(mxPos, 0); this._scrollPosition = Math.max(this.minPos, this._scrollPosition); this._scrollPosition = Math.min(this.maxPos, this._scrollPosition); if (this.maxPos - this.minPos > 0 && this.enabled) { var v5 = this._scrollPosition; if (!this.initializing) { this.upArrow_mc.enabled = true; this.downArrow_mc.enabled = true; } v2.onDragOver = this.startTrackScroller; v2.onPress = v2.onDragOver; v2.onRelease = this.releaseScrolling; v2.stopScrolling = this.stopScrolling; v2.onDragOut = v2.stopScrolling; v2.onReleaseOutside = this.releaseScrolling; v2.useHandCursor = false; if (this.scrollThumb_mc == undefined) { this.createThumb(); } var v3 = this.scrollThumb_mc; if (this.scrollTrackOverName.length > 0) { v2.onRollOver = this.trackOver; v2.onRollOut = this.trackOut; } v4 = (this.pageSize / (this.maxPos - this.minPos + this.pageSize)) * v2.height; if (v4 < v3.minHeight) { if (v2.height < v3.minHeight) { v3.__set__visible(false); } else { v4 = v3.minHeight; v3.__set__visible(true); v3.setSize(this._minWidth, v3.minHeight + 0); } } else { v3.__set__visible(true); v3.setSize(this._minWidth, v4); } v3.setRange(this.upArrow_mc.__get__height() + 0, this.__get__virtualHeight() - this.downArrow_mc.__get__height() - v3.__get__height(), this.minPos, this.maxPos); v5 = Math.min(v5, this.maxPos); this.__set__scrollPosition(Math.max(v5, this.minPos)); } else { this.scrollThumb_mc.__set__visible(false); if (!this.initializing) { this.upArrow_mc.enabled = false; this.downArrow_mc.enabled = false; } delete v2.onPress; delete v2.onDragOver; delete v2.onRelease; delete v2.onDragOut; delete v2.onRollOver; delete v2.onRollOut; delete v2.onReleaseOutside; } if (this.initializing) { this.scrollThumb_mc.__set__visible(false); } }; v2.setEnabled = function (enabledFlag) { super.setEnabled(enabledFlag); this.setScrollProperties(this.pageSize, this.minPos, this.maxPos, this.largeScroll); }; v2.draw = function (Void) { if (this.initializing) { this.initializing = false; this.scrollTrack_mc.visible = true; this.upArrow_mc.__set__visible(true); this.downArrow_mc.__set__visible(true); } this.size(); }; v2.size = function (Void) { if (this._height == 1) { return undefined; } if (this.upArrow_mc == undefined) { return undefined; } var v3 = this.upArrow_mc.__get__height(); var v2 = this.downArrow_mc.__get__height(); this.upArrow_mc.move(0, 0); var v4 = this.scrollTrack_mc; v4._y = v3; v4._height = this.__get__virtualHeight() - v3 - v2; this.downArrow_mc.move(0, this.__get__virtualHeight() - v2); this.setScrollProperties(this.pageSize, this.minPos, this.maxPos, this.largeScroll); }; v2.dispatchScrollEvent = function (detail) { this.dispatchEvent({'type': 'scroll', 'detail': detail}); }; v2.isScrollBarKey = function (k) { if (k == 36) { if (this.__get__scrollPosition() != 0) { this.__set__scrollPosition(0); this.dispatchScrollEvent(this.minMode); } return true; return false; } if (k == 35) { if (this.__get__scrollPosition() < this.maxPos) { this.__set__scrollPosition(this.maxPos); this.dispatchScrollEvent(this.maxMode); } return true; } return false; }; v2.scrollIt = function (inc, mode) { var v3 = this.smallScroll; if (inc != 'Line') { v3 = (this.largeScroll == 0) ? this.pageSize : this.largeScroll; } var v2 = this._scrollPosition + mode * v3; if (v2 > this.maxPos) { v2 = this.maxPos; } else { if (v2 < this.minPos) { v2 = this.minPos; } } if (this.__get__scrollPosition() != v2) { this.__set__scrollPosition(v2); var v4 = mode < 0 ? this.minusMode : this.plusMode; this.dispatchScrollEvent(inc + v4); } }; v2.startTrackScroller = function (Void) { this._parent.pressFocus(); if (this._parent.scrollTrackDownName.length > 0) { if (this._parent.scrollTrackDown_mc == undefined) { this._parent.setSkin(mx.controls.scrollClasses.ScrollBar.skinIDTrackDown, this.scrollTrackDownName); } else { this._parent.scrollTrackDown_mc.visible = true; } } this._parent.trackScroller(); this._parent.scrolling = setInterval(this._parent, 'scrollInterval', this.getStyle('repeatDelay'), 'Page', -1); }; v2.scrollInterval = function (inc, mode) { clearInterval(this.scrolling); if (inc == 'Page') { this.trackScroller(); } else { this.scrollIt(inc, mode); } this.scrolling = setInterval(this, 'scrollInterval', this.getStyle('repeatInterval'), inc, mode); }; v2.trackScroller = function (Void) { if (this.scrollThumb_mc._y + this.scrollThumb_mc.__get__height() < this._ymouse) { this.scrollIt('Page', 1); } else { if (this.scrollThumb_mc._y > this._ymouse) { this.scrollIt('Page', -1); } } }; v2.dispatchScrollChangedEvent = function (Void) { this.dispatchEvent({'type': 'scrollChanged'}); }; v2.stopScrolling = function (Void) { clearInterval(this._parent.scrolling); this._parent.scrollTrackDown_mc.visible = false; }; v2.releaseScrolling = function (Void) { this._parent.releaseFocus(); this.stopScrolling(); this._parent.dispatchScrollChangedEvent(); }; v2.trackOver = function (Void) { if (this._parent.scrollTrackOverName.length > 0) { if (this._parent.scrollTrackOver_mc == undefined) { this._parent.setSkin(mx.controls.scrollClasses.ScrollBar.skinIDTrackOver, this.scrollTrackOverName); } else { this._parent.scrollTrackOver_mc.visible = true; } } }; v2.trackOut = function (Void) { this._parent.scrollTrackOver_mc.visible = false; }; v2.onUpArrow = function (Void) { this._parent.scrollIt('Line', -1); }; v2.onDownArrow = function (Void) { this._parent.scrollIt('Line', 1); }; v2.onScrollChanged = function (Void) { this._parent.dispatchScrollChangedEvent(); }; v1.symbolOwner = mx.core.UIComponent; v2.className = 'ScrollBar'; v2.minPos = 0; v2.maxPos = 0; v2.pageSize = 0; v2.largeScroll = 0; v2.smallScroll = 1; v2._scrollPosition = 0; v2.scrollTrackName = 'ScrollTrack'; v2.scrollTrackOverName = ''; v2.scrollTrackDownName = ''; v2.upArrowName = 'BtnUpArrow'; v2.upArrowUpName = 'ScrollUpArrowUp'; v2.upArrowOverName = 'ScrollUpArrowOver'; v2.upArrowDownName = 'ScrollUpArrowDown'; v2.downArrowName = 'BtnDownArrow'; v2.downArrowUpName = 'ScrollDownArrowUp'; v2.downArrowOverName = 'ScrollDownArrowOver'; v2.downArrowDownName = 'ScrollDownArrowDown'; v2.thumbTopName = 'ScrollThumbTopUp'; v2.thumbMiddleName = 'ScrollThumbMiddleUp'; v2.thumbBottomName = 'ScrollThumbBottomUp'; v2.thumbGripName = 'ScrollThumbGripUp'; v1.skinIDTrack = 0; v1.skinIDTrackOver = 1; v1.skinIDTrackDown = 2; v1.skinIDUpArrow = 3; v1.skinIDDownArrow = 4; v1.skinIDThumb = 5; v2.idNames = new Array('scrollTrack_mc', 'scrollTrackOver_mc', 'scrollTrackDown_mc', 'upArrow_mc', 'downArrow_mc'); v2.clipParameters = {'minPos': 1, 'maxPos': 1, 'pageSize': 1, 'scrollPosition': 1, 'lineScrollSize': 1, 'pageScrollSize': 1, 'visible': 1, 'enabled': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters); v2.initializing = true; v2.addProperty('lineScrollSize', v2.__get__lineScrollSize, v2.__set__lineScrollSize); v2.addProperty('pageScrollSize', v2.__get__pageScrollSize, v2.__set__pageScrollSize); v2.addProperty('scrollPosition', v2.__get__scrollPosition, v2.__set__scrollPosition); v2.addProperty('virtualHeight', v2.__get__virtualHeight, function () {}); ASSetPropFlags(mx.controls.scrollClasses.ScrollBar.prototype, null, 1); } #endinitclip } movieClip 368 __Packages.mx.skins.CustomBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.CustomBorder) { var v1 = function () { super(); }; mx.skins.CustomBorder = v1; mx.skins.CustomBorder extends mx.skins.Border; var v2 = v1.prototype; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.init = function (Void) { super.init(); }; v2.createChildren = function (Void) {}; v2.draw = function (Void) { if (this.l_mc == undefined) { var v2 = this.setSkin(mx.skins.CustomBorder.tagL, this.leftSkin); if (this.horizontal) { this.minHeight = this.l_mc._height; this.minWidth = this.l_mc._width; } else { this.minHeight = this.l_mc._height; this.minWidth = this.l_mc._width; } } if (this.m_mc == undefined) { this.setSkin(mx.skins.CustomBorder.tagM, this.middleSkin); if (this.horizontal) { this.minHeight = this.m_mc._height; this.minWidth += this.m_mc._width; } else { this.minHeight += this.m_mc._height; this.minWidth = this.m_mc._width; } } if (this.r_mc == undefined) { this.setSkin(mx.skins.CustomBorder.tagR, this.rightSkin); if (this.horizontal) { this.minHeight = this.r_mc._height; this.minWidth += this.r_mc._width; } else { this.minHeight += this.r_mc._height; this.minWidth = this.r_mc._width; } } this.size(); }; v2.size = function (Void) { this.l_mc.move(0, 0); if (this.horizontal) { this.r_mc.move(this.__get__width() - this.r_mc.width, 0); this.m_mc.move(this.l_mc.width, 0); this.m_mc.setSize(this.r_mc.x - this.m_mc.x, this.m_mc.height); } else { this.r_mc.move(0, this.__get__height() - this.r_mc.height, 0); this.m_mc.move(0, this.l_mc.height); this.m_mc.setSize(this.m_mc.width, this.r_mc.y - this.m_mc.y); } }; v1.symbolName = 'CustomBorder'; v1.symbolOwner = mx.skins.CustomBorder; v1.version = '2.0.2.127'; v2.className = 'CustomBorder'; v1.tagL = 0; v1.tagM = 1; v1.tagR = 2; v2.idNames = new Array('l_mc', 'm_mc', 'r_mc'); v2.leftSkin = 'F3PieceLeft'; v2.middleSkin = 'F3PieceMiddle'; v2.rightSkin = 'F3PieceRight'; v2.horizontal = true; v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.skins.CustomBorder.prototype, null, 1); } #endinitclip } movieClip 369 __Packages.mx.controls.scrollClasses.ScrollThumb { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.scrollClasses) { _global.mx.controls.scrollClasses = new Object(); } if (!_global.mx.controls.scrollClasses.ScrollThumb) { var v1 = function () { super(); }; mx.controls.scrollClasses.ScrollThumb = v1; mx.controls.scrollClasses.ScrollThumb extends mx.skins.CustomBorder; var v2 = v1.prototype; v2.createChildren = function (Void) { super.createChildren(); this.useHandCursor = false; }; v2.setRange = function (_ymin, _ymax, _datamin, _datamax) { this.ymin = _ymin; this.ymax = _ymax; this.datamin = _datamin; this.datamax = _datamax; }; v2.dragThumb = function (Void) { this.scrollMove = this._ymouse - this.lastY; this.scrollMove += this._y; if (this.scrollMove < this.ymin) { this.scrollMove = this.ymin; } else { if (this.scrollMove > this.ymax) { this.scrollMove = this.ymax; } } this._parent.isScrolling = true; this._y = this.scrollMove; var v2 = Math.round((this.datamax - this.datamin) * (this._y - this.ymin) / (this.ymax - this.ymin)) + this.datamin; this._parent.scrollPosition = v2; this._parent.dispatchScrollEvent('ThumbTrack'); updateAfterEvent(); }; v2.stopDragThumb = function (Void) { this._parent.isScrolling = false; this._parent.dispatchScrollEvent('ThumbPosition'); this._parent.dispatchScrollChangedEvent(); delete this.onMouseMove; }; v2.onPress = function (Void) { this._parent.pressFocus(); this.lastY = this._ymouse; this.onMouseMove = this.dragThumb; super.onPress(); }; v2.onRelease = function (Void) { this._parent.releaseFocus(); this.stopDragThumb(); super.onRelease(); }; v2.onReleaseOutside = function (Void) { this._parent.releaseFocus(); this.stopDragThumb(); super.onReleaseOutside(); }; v2.draw = function () { super.draw(); if (this.grip_mc == undefined) { this.setSkin(3, this.gripSkin); } }; v2.size = function () { super.size(); this.grip_mc.move((this.__get__width() - this.grip_mc.width) / 2, (this.__get__height() - this.grip_mc.height) / 2); }; v1.symbolOwner = mx.skins.CustomBorder.symbolOwner; v2.className = 'ScrollThumb'; v2.btnOffset = 0; v2.horizontal = false; v2.idNames = new Array('l_mc', 'm_mc', 'r_mc', 'grip_mc'); ASSetPropFlags(mx.controls.scrollClasses.ScrollThumb.prototype, null, 1); } #endinitclip } movieClip 367 __Packages.mx.controls.SimpleButton { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.SimpleButton) { var v1 = function () { super(); }; mx.controls.SimpleButton = v1; mx.controls.SimpleButton extends mx.core.UIComponent; var v2 = v1.prototype; v2.init = function (Void) { super.init(); if (this.preset == undefined) { this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; } this.useHandCursor = false; }; v2.createChildren = function (Void) { if (this.preset != undefined) { var v2 = this[this.idNames[this.preset]]; this[this.refNames[this.preset]] = v2; this.skinName = v2; if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } this.initializing = false; } else { if (this.__state == true) { this.setStateVar(true); } else { if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } } } }; v2.setIcon = function (tag, linkageName) { return this.setSkin(tag + 8, linkageName); }; v2.changeIcon = function (tag, linkageName) { this.linkLength = linkageName.length; var v2 = this.stateNames[tag] + 'Icon'; this[v2] = linkageName; this[this.idNames[tag + 8]] = v2; this.setStateVar(this.getState()); }; v2.changeSkin = function (tag, linkageName) { var v2 = this.stateNames[tag] + 'Skin'; this[v2] = linkageName; this[this.idNames[tag]] = v2; this.setStateVar(this.getState()); }; v2.viewIcon = function (varName) { var v4 = varName + 'Icon'; var v3 = this[v4]; if (typeof v3 == 'string') { var v5 = v3; if (this.__emphasized) { if (this[v3 + 'Emphasized'].length > 0) { v3 += 'Emphasized'; } } if (this[v3].length == 0) { return undefined; } v3 = this.setIcon(this.tagMap[v5], this[v3]); if (v3 == undefined && _global.isLivePreview) { v3 = this.setIcon(0, 'ButtonIcon'); } this[v4] = v3; } this.iconName._visible = false; this.iconName = v3; this.iconName._visible = true; }; v2.removeIcons = function () { var v3 = 0; while (v3 < 2) { var v2 = 8; while (v2 < 16) { this.destroyObject(this.idNames[v2]); this[this.stateNames[v2 - 8] + 'Icon'] = ''; ++v2; } ++v3; } this.refresh(); }; v2.setSkin = function (tag, linkageName, initobj) { if (initobj == undefined) { var v3 = super.setSkin(tag, linkageName, {'styleName': this}); this.calcSize(tag, v3); return v3; } var v3 = super.setSkin(tag, linkageName, initobj); this.calcSize(tag, v3); return v3; }; v2.calcSize = function (Void) { this.__width = this._width; this.__height = this._height; }; v2.viewSkin = function (varName, initObj) { var v3 = varName + 'Skin'; var v2 = this[v3]; if (typeof v2 == 'string') { var v4 = v2; if (this.__emphasized) { if (this[v2 + 'Emphasized'].length > 0) { v2 += 'Emphasized'; } } if (this[v2].length == 0) { return undefined; } v2 = this.setSkin(this.tagMap[v4], this[v2], (initObj != undefined) ? initObj : {'styleName': this}); this[v3] = v2; } this.skinName._visible = false; this.skinName = v2; this.skinName._visible = true; }; v2.showEmphasized = function (e) { if (e && !this.__emphatic) { if (mx.controls.SimpleButton.emphasizedStyleDeclaration != undefined) { this.__emphaticStyleName = this.styleName; this.styleName = mx.controls.SimpleButton.emphasizedStyleDeclaration; } this.__emphatic = true; } else { if (this.__emphatic) { this.styleName = this.__emphaticStyleName; } this.__emphatic = false; } }; v2.refresh = function (Void) { var v2 = this.getState(); if (this.enabled == false) { this.viewIcon('disabled'); this.viewSkin('disabled'); } else { this.viewSkin(this.phase); this.viewIcon(this.phase); } this.setView(this.phase == 'down'); this.iconName.enabled = this.enabled; }; v2.setView = function (offset) { if (this.iconName == undefined) { return undefined; } var v2 = offset ? this.btnOffset : 0; this.iconName._x = (this.__width - this.iconName._width) / 2 + v2; this.iconName._y = (this.__height - this.iconName._height) / 2 + v2; }; v2.setStateVar = function (state) { if (state) { if (this.trueOverSkin.length == 0) { this.rolloverSkin = this.tus; } else { this.rolloverSkin = this.trs; } if (this.trueOverIcon.length == 0) { this.rolloverIcon = this.tui; } else { this.rolloverIcon = this.tri; } this.upSkin = this.tus; this.downSkin = this.tds; this.disabledSkin = this.dts; this.upIcon = this.tui; this.downIcon = this.tdi; this.disabledIcon = this.dti; } else { if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } else { this.rolloverSkin = this.frs; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } else { this.rolloverIcon = this.fri; } this.upSkin = this.fus; this.downSkin = this.fds; this.disabledSkin = this.dfs; this.upIcon = this.fui; this.downIcon = this.fdi; this.disabledIcon = this.dfi; } this.__state = state; }; v2.setState = function (state) { if (state != this.__state) { this.setStateVar(state); this.invalidate(); } }; v2.size = function (Void) { this.refresh(); }; v2.draw = function (Void) { if (this.initializing) { this.initializing = false; this.skinName.visible = true; this.iconName.visible = true; } this.size(); }; v2.getState = function (Void) { return this.__state; }; v2.setToggle = function (val) { this.__toggle = val; if (this.__toggle == false) { this.setState(false); } }; v2.getToggle = function (Void) { return this.__toggle; }; v2.__set__toggle = function (val) { this.setToggle(val); return this.__get__toggle(); }; v2.__get__toggle = function () { return this.getToggle(); }; v2.__set__value = function (val) { this.setSelected(val); return this.__get__value(); }; v2.__get__value = function () { return this.getSelected(); }; v2.__set__selected = function (val) { this.setSelected(val); return this.__get__selected(); }; v2.__get__selected = function () { return this.getSelected(); }; v2.setSelected = function (val) { if (this.__toggle) { this.setState(val); } else { this.setState(this.initializing ? val : this.__state); } }; v2.getSelected = function () { return this.__state; }; v2.setEnabled = function (val) { if (this.enabled != val) { super.setEnabled(val); this.invalidate(); } }; v2.onPress = function (Void) { this.pressFocus(); this.phase = 'down'; this.refresh(); this.dispatchEvent({'type': 'buttonDown'}); if (this.autoRepeat) { this.interval = setInterval(this, 'onPressDelay', this.getStyle('repeatDelay')); } }; v2.onPressDelay = function (Void) { this.dispatchEvent({'type': 'buttonDown'}); if (this.autoRepeat) { clearInterval(this.interval); this.interval = setInterval(this, 'onPressRepeat', this.getStyle('repeatInterval')); } }; v2.onPressRepeat = function (Void) { this.dispatchEvent({'type': 'buttonDown'}); updateAfterEvent(); }; v2.onRelease = function (Void) { this.releaseFocus(); this.phase = 'rollover'; if (this.interval != undefined) { clearInterval(this.interval); delete this.interval; } if (this.getToggle()) { this.setState(!this.getState()); } else { this.refresh(); } this.dispatchEvent({'type': 'click'}); }; v2.onDragOut = function (Void) { this.phase = 'up'; this.refresh(); this.dispatchEvent({'type': 'buttonDragOut'}); }; v2.onDragOver = function (Void) { if (this.phase != 'up') { this.onPress(); return undefined; } else { this.phase = 'down'; this.refresh(); } }; v2.onReleaseOutside = function (Void) { this.releaseFocus(); this.phase = 'up'; if (this.interval != undefined) { clearInterval(this.interval); delete this.interval; } }; v2.onRollOver = function (Void) { this.phase = 'rollover'; this.refresh(); }; v2.onRollOut = function (Void) { this.phase = 'up'; this.refresh(); }; v2.getLabel = function (Void) { return this.fui.text; }; v2.setLabel = function (val) { if (typeof this.fui == 'string') { this.createLabel('fui', 8, val); this.fui.styleName = this; } else { this.fui.text = val; } var v4 = this.fui._getTextFormat(); var v2 = v4.getTextExtent2(val); this.fui._width = v2.width + 5; this.fui._height = v2.height + 5; this.iconName = this.fui; this.setView(this.__state); }; v2.__get__emphasized = function () { return this.__emphasized; }; v2.__set__emphasized = function (val) { this.__emphasized = val; var v2 = 0; while (v2 < 8) { this[this.idNames[v2]] = this.stateNames[v2] + 'Skin'; if (typeof this[this.idNames[v2 + 8]] == 'movieclip') { this[this.idNames[v2 + 8]] = this.stateNames[v2] + 'Icon'; } ++v2; } this.showEmphasized(this.__emphasized); this.setStateVar(this.__state); this.invalidateStyle(); return this.__get__emphasized(); }; v2.keyDown = function (e) { if (e.code == 32) { this.onPress(); } }; v2.keyUp = function (e) { if (e.code == 32) { this.onRelease(); } }; v2.onKillFocus = function (newFocus) { super.onKillFocus(); if (this.phase != 'up') { this.phase = 'up'; this.refresh(); } }; v1.symbolName = 'SimpleButton'; v1.symbolOwner = mx.controls.SimpleButton; v1.version = '2.0.2.127'; v2.className = 'SimpleButton'; v2.style3dInset = 4; v2.btnOffset = 1; v2.__toggle = false; v2.__state = false; v2.__emphasized = false; v2.__emphatic = false; v1.falseUp = 0; v1.falseDown = 1; v1.falseOver = 2; v1.falseDisabled = 3; v1.trueUp = 4; v1.trueDown = 5; v1.trueOver = 6; v1.trueDisabled = 7; v2.falseUpSkin = 'SimpleButtonUp'; v2.falseDownSkin = 'SimpleButtonIn'; v2.falseOverSkin = ''; v2.falseDisabledSkin = 'SimpleButtonUp'; v2.trueUpSkin = 'SimpleButtonIn'; v2.trueDownSkin = ''; v2.trueOverSkin = ''; v2.trueDisabledSkin = 'SimpleButtonIn'; v2.falseUpIcon = ''; v2.falseDownIcon = ''; v2.falseOverIcon = ''; v2.falseDisabledIcon = ''; v2.trueUpIcon = ''; v2.trueDownIcon = ''; v2.trueOverIcon = ''; v2.trueDisabledIcon = ''; v2.phase = 'up'; v2.fui = 'falseUpIcon'; v2.fus = 'falseUpSkin'; v2.fdi = 'falseDownIcon'; v2.fds = 'falseDownSkin'; v2.frs = 'falseOverSkin'; v2.fri = 'falseOverIcon'; v2.dfi = 'falseDisabledIcon'; v2.dfs = 'falseDisabledSkin'; v2.tui = 'trueUpIcon'; v2.tus = 'trueUpSkin'; v2.tdi = 'trueDownIcon'; v2.tds = 'trueDownSkin'; v2.trs = 'trueOverSkin'; v2.tri = 'trueOverIcon'; v2.dts = 'trueDisabledSkin'; v2.dti = 'trueDisabledIcon'; v2.rolloverSkin = mx.controls.SimpleButton.prototype.frs; v2.rolloverIcon = mx.controls.SimpleButton.prototype.fri; v2.upSkin = mx.controls.SimpleButton.prototype.fus; v2.downSkin = mx.controls.SimpleButton.prototype.fds; v2.disabledSkin = mx.controls.SimpleButton.prototype.dfs; v2.upIcon = mx.controls.SimpleButton.prototype.fui; v2.downIcon = mx.controls.SimpleButton.prototype.fdi; v2.disabledIcon = mx.controls.SimpleButton.prototype.dfi; v2.initializing = true; v2.idNames = ['fus', 'fds', 'frs', 'dfs', 'tus', 'tds', 'trs', 'dts', 'fui', 'fdi', 'fri', 'dfi', 'tui', 'tdi', 'tri', 'dti']; v2.stateNames = ['falseUp', 'falseDown', 'falseOver', 'falseDisabled', 'trueUp', 'trueDown', 'trueOver', 'trueDisabled']; v2.refNames = ['upSkin', 'downSkin', 'rolloverSkin', 'disabledSkin']; v2.tagMap = {'falseUpSkin': 0, 'falseDownSkin': 1, 'falseOverSkin': 2, 'falseDisabledSkin': 3, 'trueUpSkin': 4, 'trueDownSkin': 5, 'trueOverSkin': 6, 'trueDisabledSkin': 7, 'falseUpIcon': 0, 'falseDownIcon': 1, 'falseOverIcon': 2, 'falseDisabledIcon': 3, 'trueUpIcon': 4, 'trueDownIcon': 5, 'trueOverIcon': 6, 'trueDisabledIcon': 7}; v2.addProperty('emphasized', v2.__get__emphasized, v2.__set__emphasized); v2.addProperty('selected', v2.__get__selected, v2.__set__selected); v2.addProperty('toggle', v2.__get__toggle, v2.__set__toggle); v2.addProperty('value', v2.__get__value, v2.__set__value); ASSetPropFlags(mx.controls.SimpleButton.prototype, null, 1); } #endinitclip } movieClip 233 __Packages.mx.controls.listclasses.DataSelector { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.listclasses) { _global.mx.controls.listclasses = new Object(); } if (!_global.mx.controls.listclasses.DataSelector) { var v1 = function () { super(); }; mx.controls.listclasses.DataSelector = v1; mx.controls.listclasses.DataSelector extends Object; var v2 = v1.prototype; v1.Initialize = function (obj) { var v3 = mx.controls.listclasses.DataSelector.mixinProps; var v4 = v3.length; obj = obj.prototype; var v1 = 0; while (v1 < v4) { obj[v3[v1]] = mx.controls.listclasses.DataSelector.mixins[v3[v1]]; ++v1; } mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'dataProvider', true); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'length', false); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'value', false); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'selectedIndex', true); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'selectedIndices', true); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'selectedItems', false); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'selectedItem', true); return true; }; v2.createProp = function (obj, propName, setter) { var p = (propName.charAt(0)).toUpperCase() + propName.substr(1); var v2 = null; var v3 = function (Void) { return this['get' + p](); }; if (setter) { v2 = function (val) { this['set' + p](val); }; } obj.addProperty(propName, v3, v2); }; v2.setDataProvider = function (dP) { if (this.__vPosition != 0) { this.setVPosition(0); } this.clearSelected(); this.__dataProvider.removeEventListener(this); this.__dataProvider = dP; dP.addEventListener('modelChanged', this); dP.addView(this); this.modelChanged({'eventName': 'updateAll'}); }; v2.getDataProvider = function (Void) { return this.__dataProvider; }; v2.addItemAt = function (index, label, data) { if (index < 0 || !this.enabled) { return undefined; } var v2 = this.__dataProvider; if (v2 == undefined) { this.__dataProvider = new Array(); v2 = this.__dataProvider; v2.addEventListener('modelChanged', this); index = 0; } if (typeof label == 'object' || typeof v2.getItemAt(0) == 'string') { v2.addItemAt(index, label); } else { v2.addItemAt(index, {'label': label, 'data': data}); } }; v2.addItem = function (label, data) { this.addItemAt(this.__dataProvider.length, label, data); }; v2.removeItemAt = function (index) { return this.__dataProvider.removeItemAt(index); }; v2.removeAll = function (Void) { this.__dataProvider.removeAll(); }; v2.replaceItemAt = function (index, newLabel, newData) { if (typeof newLabel == 'object') { this.__dataProvider.replaceItemAt(index, newLabel); } else { this.__dataProvider.replaceItemAt(index, {'label': newLabel, 'data': newData}); } }; v2.sortItemsBy = function (fieldName, order) { this.lastSelID = this.__dataProvider.getItemID(this.lastSelected); this.__dataProvider.sortItemsBy(fieldName, order); }; v2.sortItems = function (compareFunc, order) { this.lastSelID = this.__dataProvider.getItemID(this.lastSelected); this.__dataProvider.sortItems(compareFunc, order); }; v2.getLength = function (Void) { return this.__dataProvider.length; }; v2.getItemAt = function (index) { return this.__dataProvider.getItemAt(index); }; v2.modelChanged = function (eventObj) { var v3 = eventObj.firstItem; var v6 = eventObj.lastItem; var v7 = eventObj.eventName; if (v7 == undefined) { v7 = eventObj.event; v3 = eventObj.firstRow; v6 = eventObj.lastRow; if (v7 == 'addRows') { eventObj.eventName = 'addItems'; v7 = 'addItems'; } else { if (v7 == 'deleteRows') { eventObj.eventName = 'removeItems'; v7 = 'removeItems'; } else { if (v7 == 'updateRows') { eventObj.eventName = 'updateItems'; v7 = 'updateItems'; } } } } if (v7 == 'addItems') { for (var v2 in this.selected) { var v5 = this.selected[v2]; if (v5 != undefined && v5 >= v3) { this.selected[v2] += v6 - v3 + 1; } } } else { if (v7 == 'removeItems') { if (this.__dataProvider.length == 0) { delete this.selected; } else { var v9 = eventObj.removedIDs; var v10 = v9.length; var v2 = 0; while (v2 < v10) { var v4 = v9[v2]; if (this.selected[v4] != undefined) { delete this.selected[v4]; } ++v2; } for (v2 in this.selected) { if (this.selected[v2] >= v3) { this.selected[v2] -= v6 - v3 + 1; } } } } else { if (v7 == 'sort') { if (typeof this.__dataProvider.getItemAt(0) != 'object') { delete this.selected; } else { var v10 = this.__dataProvider.length; var v2 = 0; while (v2 < v10) { if (this.isSelected(v2)) { var v4 = this.__dataProvider.getItemID(v2); if (v4 == this.lastSelID) { this.lastSelected = v2; } this.selected[v4] = v2; } ++v2; } } } else { if (v7 == 'filterModel') { this.setVPosition(0); } } } } this.invUpdateControl = true; this.invalidate(); }; v2.getValue = function (Void) { var v2 = this.getSelectedItem(); if (typeof v2 != 'object') { return v2; } return (v2.data == undefined) ? v2.label : v2.data; }; v2.getSelectedIndex = function (Void) { for (var v3 in this.selected) { var v2 = this.selected[v3]; if (v2 != undefined) { return v2; } } }; v2.setSelectedIndex = function (index) { if (index >= 0 && index < this.__dataProvider.length && this.enabled) { delete this.selected; this.selectItem(index, true); this.lastSelected = index; this.invUpdateControl = true; this.invalidate(); } else { if (index == undefined) { this.clearSelected(); } } }; v2.getSelectedIndices = function (Void) { var v2 = new Array(); for (var v3 in this.selected) { v2.push(this.selected[v3]); } v2.reverse(); return v2.length > 0 ? v2 : undefined; }; v2.setSelectedIndices = function (indexArray) { if (this.multipleSelection != true) { return undefined; } delete this.selected; var v3 = 0; while (v3 < indexArray.length) { var v2 = indexArray[v3]; if (v2 >= 0 && v2 < this.__dataProvider.length) { this.selectItem(v2, true); } ++v3; } this.invUpdateControl = true; this.updateControl(); }; v2.getSelectedItems = function (Void) { var v3 = this.getSelectedIndices(); var v4 = new Array(); var v2 = 0; while (v2 < v3.length) { v4.push(this.getItemAt(v3[v2])); ++v2; } return v4.length > 0 ? v4 : undefined; }; v2.getSelectedItem = function (Void) { return this.__dataProvider.getItemAt(this.getSelectedIndex()); }; v2.selectItem = function (index, selectedFlag) { if (this.selected == undefined) { this.selected = new Object(); } var v2 = this.__dataProvider.getItemID(index); if (v2 == undefined) { return undefined; } if (selectedFlag && !this.isSelected(index)) { this.selected[v2] = index; } else { if (!selectedFlag) { delete this.selected[v2]; } } }; v2.isSelected = function (index) { var v2 = this.__dataProvider.getItemID(index); if (v2 == undefined) { return false; } return this.selected[v2] != undefined; }; v2.clearSelected = function (transition) { var v3 = 0; for (var v4 in this.selected) { var v2 = this.selected[v4]; if (v2 != undefined && this.__vPosition <= v2 && v2 < this.__vPosition + this.__rowCount) { this.rows[v2 - this.__vPosition].drawRow(this.rows[v2 - this.__vPosition].item, 'normal', transition && v3 % 3 == 0); } ++v3; } delete this.selected; }; v1.mixins = new mx.controls.listclasses.DataSelector(); v1.mixinProps = ['setDataProvider', 'getDataProvider', 'addItem', 'addItemAt', 'removeAll', 'removeItemAt', 'replaceItemAt', 'sortItemsBy', 'sortItems', 'getLength', 'getItemAt', 'modelChanged', 'calcPreferredWidthFromData', 'calcPreferredHeightFromData', 'getValue', 'getSelectedIndex', 'getSelectedItem', 'getSelectedIndices', 'getSelectedItems', 'selectItem', 'isSelected', 'clearSelected', 'setSelectedIndex', 'setSelectedIndices']; ASSetPropFlags(mx.controls.listclasses.DataSelector.prototype, null, 1); } #endinitclip } movieClip 239 __Packages.mx.controls.listclasses.DataProvider { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.listclasses) { _global.mx.controls.listclasses = new Object(); } if (!_global.mx.controls.listclasses.DataProvider) { var v1 = function (obj) { super(); }; mx.controls.listclasses.DataProvider = v1; mx.controls.listclasses.DataProvider extends Object; var v2 = v1.prototype; v1.Initialize = function (obj) { var v4 = mx.controls.listclasses.DataProvider.mixinProps; var v6 = v4.length; obj = obj.prototype; var v3 = 0; while (v3 < v6) { obj[v4[v3]] = mx.controls.listclasses.DataProvider.mixins[v4[v3]]; _global.ASSetPropFlags(obj, v4[v3], 1); ++v3; } mx.events.EventDispatcher.initialize(obj); _global.ASSetPropFlags(obj, 'addEventListener', 1); _global.ASSetPropFlags(obj, 'removeEventListener', 1); _global.ASSetPropFlags(obj, 'dispatchEvent', 1); _global.ASSetPropFlags(obj, 'dispatchQueue', 1); Object.prototype.LargestID = 0; Object.prototype.getID = function () { if (this.__ID__ == undefined) { this.__ID__ = Object.prototype.LargestID++; _global.ASSetPropFlags(this, '__ID__', 1); } return this.__ID__; }; _global.ASSetPropFlags(Object.prototype, 'LargestID', 1); _global.ASSetPropFlags(Object.prototype, 'getID', 1); return true; }; v2.addItemAt = function (index, value) { if (index < this.length) { this.splice(index, 0, value); } else { if (index > this.length) { trace('Cannot add an item past the end of the DataProvider'); return undefined; } } this[index] = value; this.updateViews('addItems', index, index); }; v2.addItem = function (value) { this.addItemAt(this.length, value); }; v2.addItemsAt = function (index, newItems) { index = Math.min(this.length, index); newItems.unshift(index, 0); this.splice.apply(this, newItems); newItems.splice(0, 2); this.updateViews('addItems', index, index + newItems.length - 1); }; v2.removeItemsAt = function (index, len) { var v3 = new Array(); var v2 = 0; while (v2 < len) { v3.push(this.getItemID(index + v2)); ++v2; } var v6 = this.splice(index, len); this.dispatchEvent({'type': 'modelChanged', 'eventName': 'removeItems', 'firstItem': index, 'lastItem': index + len - 1, 'removedItems': v6, 'removedIDs': v3}); }; v2.removeItemAt = function (index) { var v2 = this[index]; this.removeItemsAt(index, 1); return v2; }; v2.removeAll = function (Void) { this.splice(0); this.updateViews('removeItems', 0, this.length - 1); }; v2.replaceItemAt = function (index, itemObj) { if (index < 0 || index >= this.length) { return undefined; } var v3 = this.getItemID(index); this[index] = itemObj; this[index].__ID__ = v3; this.updateViews('updateItems', index, index); }; v2.getItemAt = function (index) { return this[index]; }; v2.getItemID = function (index) { var v2 = this[index]; if (typeof v2 != 'object' && v2 != undefined) { return index; } else { return v2.getID(); } }; v2.sortItemsBy = function (fieldName, order) { if (typeof order == 'string') { this.sortOn(fieldName); if (order.toUpperCase() == 'DESC') { this.reverse(); } } else { this.sortOn(fieldName, order); } this.updateViews('sort'); }; v2.sortItems = function (compareFunc, optionFlags) { this.sort(compareFunc, optionFlags); this.updateViews('sort'); }; v2.editField = function (index, fieldName, newData) { this[index][fieldName] = newData; this.dispatchEvent({'type': 'modelChanged', 'eventName': 'updateField', 'firstItem': index, 'lastItem': index, 'fieldName': fieldName}); }; v2.getEditingData = function (index, fieldName) { return this[index][fieldName]; }; v2.updateViews = function (event, first, last) { this.dispatchEvent({'type': 'modelChanged', 'eventName': event, 'firstItem': first, 'lastItem': last}); }; v1.mixinProps = ['addView', 'addItem', 'addItemAt', 'removeAll', 'removeItemAt', 'replaceItemAt', 'getItemAt', 'getItemID', 'sortItemsBy', 'sortItems', 'updateViews', 'addItemsAt', 'removeItemsAt', 'getEditingData', 'editField']; v1.evtDipatcher = mx.events.EventDispatcher; v1.mixins = new mx.controls.listclasses.DataProvider(); ASSetPropFlags(mx.controls.listclasses.DataProvider.prototype, null, 1); } #endinitclip } movieClip 240 __Packages.mx.controls.listclasses.ScrollSelectList { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.listclasses) { _global.mx.controls.listclasses = new Object(); } if (!_global.mx.controls.listclasses.ScrollSelectList) { var v1 = function () { super(); }; mx.controls.listclasses.ScrollSelectList = v1; mx.controls.listclasses.ScrollSelectList extends mx.core.ScrollView; var v2 = v1.prototype; v2.layoutContent = function (x, y, w, h) { delete this.invLayoutContent; var v4 = Math.ceil(h / this.__rowHeight); this.roundUp = h % this.__rowHeight != 0; var v12 = v4 - this.__rowCount; if (v12 < 0) { var v3 = v4; while (v3 < this.__rowCount) { this.rows[v3].removeMovieClip(); delete this.rows[v3]; ++v3; } this.topRowZ += v12; } else { if (v12 > 0) { if (this.rows == undefined) { this.rows = new Array(); } var v3 = this.__rowCount; while (v3 < v4) { this.rows[v3] = this.listContent.createObject(this.__rowRenderer, 'listRow' + this.topRowZ++, this.topRowZ, {'owner': this, 'styleName': this, 'rowIndex': v3}); var v2 = this.rows[v3]; v2._x = x; v2._y = Math.round(v3 * this.__rowHeight + y); v2.setSize(w, this.__rowHeight); v2.drawRow(this.__dataProvider.getItemAt(this.__vPosition + v3), this.getStateAt(this.__vPosition + v3)); v2.lastY = v2._y; ++v3; } } } if (w != this.tW) { var v11 = v12 > 0 ? this.__rowCount : v4; v3 = 0; while (v3 < v11) { this.rows[v3].setSize(w, this.__rowHeight); ++v3; } } if (this.layoutX != x || this.layoutY != y) { v3 = 0; while (v3 < v4) { this.rows[v3]._x = x; this.rows[v3]._y = Math.round(v3 * this.__rowHeight + y); ++v3; } } this.__rowCount = v4; this.layoutX = x; this.layoutY = y; this.tW = w; this.tH = h; }; v2.getRowHeight = function (Void) { return this.__rowHeight; }; v2.setRowHeight = function (v) { this.__rowHeight = v; this.invRowHeight = true; this.invalidate(); }; v2.__get__rowHeight = function () { return this.getRowHeight(); }; v2.__set__rowHeight = function (w) { this.setRowHeight(w); return this.__get__rowHeight(); }; v2.setRowCount = function (v) { this.__rowCount = v; }; v2.getRowCount = function (Void) { if (this.__rowCount != 0) { var v2 = this.__rowCount; return v2; } var v2 = Math.ceil(this.__height / this.__rowHeight); return v2; }; v2.__get__rowCount = function () { return this.getRowCount(); }; v2.__set__rowCount = function (w) { this.setRowCount(w); return this.__get__rowCount(); }; v2.setEnabled = function (v) { super.setEnabled(v); this.invUpdateControl = true; this.invalidate(); }; v2.setCellRenderer = function (cR) { this.__cellRenderer = cR; var v2 = 0; while (v2 < this.rows.length) { this.rows[v2].setCellRenderer(true); ++v2; } this.invUpdateControl = true; this.invalidate(); }; v2.__set__cellRenderer = function (cR) { this.setCellRenderer(cR); return this.__get__cellRenderer(); }; v2.__get__cellRenderer = function () { return this.__cellRenderer; }; v2.__set__labelField = function (field) { this.setLabelField(field); return this.__get__labelField(); }; v2.setLabelField = function (field) { this.__labelField = field; this.invUpdateControl = true; this.invalidate(); }; v2.__get__labelField = function () { return this.__labelField; }; v2.__set__labelFunction = function (func) { this.setLabelFunction(func); return this.__get__labelFunction(); }; v2.setLabelFunction = function (func) { this.__labelFunction = func; this.invUpdateControl = true; this.invalidate(); }; v2.__get__labelFunction = function () { return this.__labelFunction; }; v2.__set__iconField = function (field) { this.setIconField(field); return this.__get__iconField(); }; v2.setIconField = function (field) { this.__iconField = field; this.invUpdateControl = true; this.invalidate(); }; v2.__get__iconField = function () { return this.__iconField; }; v2.__set__iconFunction = function (func) { this.setIconFunction(func); return this.__get__iconFunction(); }; v2.setIconFunction = function (func) { this.__iconFunction = func; this.invUpdateControl = true; this.invalidate(); }; v2.__get__iconFunction = function () { return this.__iconFunction; }; v2.setVPosition = function (pos) { if (pos < 0) { return undefined; } if (pos > 0 && pos > this.getLength() - this.__rowCount + this.roundUp) { return undefined; } var v8 = pos - this.__vPosition; if (v8 == 0) { return undefined; } this.__vPosition = pos; var v10 = v8 > 0; v8 = Math.abs(v8); if (v8 >= this.__rowCount) { this.updateControl(); } else { var v4 = new Array(); var v9 = this.__rowCount - v8; var v12 = v8 * this.__rowHeight; var v11 = v9 * this.__rowHeight; var v6 = v10 ? 1 : -1; var v3 = 0; while (v3 < this.__rowCount) { if (v3 < v8 && v10 || v3 >= v9 && !v10) { this.rows[v3]._y += Math.round(v6 * v11); var v5 = v3 + v6 * v9; var v7 = this.__vPosition + v5; v4[v5] = this.rows[v3]; v4[v5].rowIndex = v5; v4[v5].drawRow(this.__dataProvider.getItemAt(v7), this.getStateAt(v7), false); } else { this.rows[v3]._y -= Math.round(v6 * v12); var v5 = v3 - v6 * v8; v4[v5] = this.rows[v3]; v4[v5].rowIndex = v5; } ++v3; } this.rows = v4; v3 = 0; while (v3 < this.__rowCount) { this.rows[v3].swapDepths(this.baseRowZ + v3); ++v3; } } this.lastPosition = pos; super.setVPosition(pos); }; v2.setPropertiesAt = function (index, obj) { var v2 = this.__dataProvider.getItemID(index); if (v2 == undefined) { return undefined; } if (this.propertyTable == undefined) { this.propertyTable = new Object(); } this.propertyTable[v2] = obj; this.rows[index - this.__vPosition].drawRow(this.__dataProvider.getItemAt(index), this.getStateAt(index)); }; v2.getPropertiesAt = function (index) { var v2 = this.__dataProvider.getItemID(index); if (v2 == undefined) { return undefined; } return this.propertyTable[v2]; }; v2.getPropertiesOf = function (obj) { var v2 = obj.getID(); if (v2 == undefined) { return undefined; } return this.propertyTable[v2]; }; v2.getStyle = function (styleProp) { var v2 = super.getStyle(styleProp); var v3 = mx.styles.StyleManager.colorNames[v2]; if (v3 != undefined) { v2 = v3; } return v2; }; v2.updateControl = function (Void) { var v2 = 0; while (v2 < this.__rowCount) { this.rows[v2].drawRow(this.__dataProvider.getItemAt(v2 + this.__vPosition), this.getStateAt(v2 + this.__vPosition)); ++v2; } delete this.invUpdateControl; }; v2.getStateAt = function (index) { return this.isSelected(index) ? 'selected' : 'normal'; }; v2.selectRow = function (rowIndex, transition, allowChangeEvent) { if (!this.selectable) { return undefined; } var v3 = this.__vPosition + rowIndex; var v8 = this.__dataProvider.getItemAt(v3); var v5 = this.rows[rowIndex]; if (v8 == undefined) { return undefined; } if (transition == undefined) { transition = true; } if (allowChangeEvent == undefined) { allowChangeEvent = this.wasKeySelected; } this.changeFlag = true; if (!this.multipleSelection && !Key.isDown(17) || !Key.isDown(16) && !Key.isDown(17)) { this.clearSelected(transition); this.selectItem(v3, true); this.lastSelected = v3; v5.drawRow(v5.item, this.getStateAt(v3), transition); } else { if (Key.isDown(16) && this.multipleSelection) { if (this.lastSelected == undefined) { this.lastSelected = v3; } var v4 = this.lastSelected < v3 ? 1 : -1; this.clearSelected(false); var v2 = this.lastSelected; while (v2 != v3) { this.selectItem(v2, true); if (v2 >= this.__vPosition && v2 < this.__vPosition + this.__rowCount) { this.rows[v2 - this.__vPosition].drawRow(this.rows[v2 - this.__vPosition].item, 'selected', false); } v2 += v4; } this.selectItem(v3, true); v5.drawRow(v5.item, 'selected', transition); } else { if (Key.isDown(17)) { var v7 = this.isSelected(v3); if (!this.multipleSelection || this.wasKeySelected) { this.clearSelected(transition); } if (!(!this.multipleSelection && v7)) { this.selectItem(v3, !v7); var v9 = !v7 ? 'selected' : 'normal'; v5.drawRow(v5.item, v9, transition); } this.lastSelected = v3; } } } if (allowChangeEvent) { this.dispatchEvent({'type': 'change'}); } delete this.wasKeySelected; }; v2.dragScroll = function (Void) { clearInterval(this.dragScrolling); if (this._ymouse < 0) { this.setVPosition(this.__vPosition - 1); this.selectRow(0, false); var v2 = Math.min(-this._ymouse - 30, 0); this.scrollInterval = 0.593 * v2 * v2 + 1 + this.minScrollInterval; this.dragScrolling = setInterval(this, 'dragScroll', this.scrollInterval); this.dispatchEvent({'type': 'scroll', 'direction': 'vertical', 'position': this.__vPosition}); } else { if (this._ymouse > this.__height) { var v3 = this.__vPosition; this.setVPosition(this.__vPosition + 1); if (v3 != this.__vPosition) { this.selectRow(this.__rowCount - 1 - this.roundUp, false); } var v2 = Math.min(this._ymouse - this.__height - 30, 0); this.scrollInterval = 0.593 * v2 * v2 + 1 + this.minScrollInterval; this.dragScrolling = setInterval(this, 'dragScroll', this.scrollInterval); this.dispatchEvent({'type': 'scroll', 'direction': 'vertical', 'position': this.__vPosition}); } else { this.dragScrolling = setInterval(this, 'dragScroll', 15); } } updateAfterEvent(); }; v2.__onMouseUp = function (Void) { clearInterval(this.dragScrolling); delete this.dragScrolling; delete this.dragScrolling; delete this.isPressed; delete this.onMouseUp; if (!this.selectable) { return undefined; } if (this.changeFlag) { this.dispatchEvent({'type': 'change'}); } delete this.changeFlag; }; v2.moveSelBy = function (incr) { if (!this.selectable) { this.setVPosition(this.__vPosition + incr); return undefined; } var v3 = this.getSelectedIndex(); if (v3 == undefined) { v3 = -1; } var v2 = v3 + incr; v2 = Math.max(0, v2); v2 = Math.min(this.getLength() - 1, v2); if (v2 == v3) { return undefined; } if (v3 < this.__vPosition || v3 >= this.__vPosition + this.__rowCount) { this.setVPosition(v3); } if (v2 >= this.__vPosition + this.__rowCount - this.roundUp || v2 < this.__vPosition) { this.setVPosition(this.__vPosition + incr); } this.wasKeySelected = true; this.selectRow(v2 - this.__vPosition, false); }; v2.keyDown = function (e) { if (this.selectable) { if (this.findInputText()) { return undefined; } } if (e.code == 40) { this.moveSelBy(1); } else { if (e.code == 38) { this.moveSelBy(-1); } else { if (e.code == 34) { if (this.selectable) { var v3 = this.getSelectedIndex(); if (v3 == undefined) { v3 = 0; } this.setVPosition(v3); } this.moveSelBy(this.__rowCount - 1 - this.roundUp); } else { if (e.code == 33) { if (this.selectable) { var v3 = this.getSelectedIndex(); if (v3 == undefined) { v3 = 0; } this.setVPosition(v3); } this.moveSelBy(1 - this.__rowCount + this.roundUp); } else { if (e.code == 36) { this.moveSelBy(-this.__dataProvider.length); } else { if (e.code == 35) { this.moveSelBy(this.__dataProvider.length); } } } } } } }; v2.findInputText = function (Void) { var v2 = Key.getAscii(); if (v2 >= 33 && v2 <= 126) { this.findString(String.fromCharCode(v2)); return true; } }; v2.findString = function (str) { if (this.__dataProvider.length == 0) { return undefined; } var v4 = this.getSelectedIndex(); if (v4 == undefined) { v4 = 0; } var v6 = 0; var v3 = v4 + 1; while (v3 != v4) { var v2 = this.__dataProvider.getItemAt(v3); if (v2 instanceof XMLNode) { v2 = v2.attributes[this.__labelField]; } else { if (typeof v2 != 'string') { v2 = String(v2[this.__labelField]); } } v2 = v2.substring(0, str.length); if (str == v2 || str.toUpperCase() == v2.toUpperCase()) { v6 = v3 - v4; break; } if (v3 >= this.getLength() - 1) { v3 = -1; } ++v3; } if (v6 != 0) { this.moveSelBy(v6); } }; v2.onRowPress = function (rowIndex) { if (!this.enabled) { return undefined; } this.isPressed = true; this.dragScrolling = setInterval(this, 'dragScroll', 15); this.onMouseUp = this.__onMouseUp; if (!this.selectable) { return undefined; } this.selectRow(rowIndex); }; v2.onRowRelease = function (rowIndex) {}; v2.onRowRollOver = function (rowIndex) { if (!this.enabled) { return undefined; } var v2 = this.rows[rowIndex].item; if (this.getStyle('useRollOver') && v2 != undefined) { this.rows[rowIndex].drawRow(v2, 'highlighted', false); } this.dispatchEvent({'type': 'itemRollOver', 'index': rowIndex + this.__vPosition}); }; v2.onRowRollOut = function (rowIndex) { if (!this.enabled) { return undefined; } if (this.getStyle('useRollOver')) { this.rows[rowIndex].drawRow(this.rows[rowIndex].item, this.getStateAt(rowIndex + this.__vPosition), false); } this.dispatchEvent({'type': 'itemRollOut', 'index': rowIndex + this.__vPosition}); }; v2.onRowDragOver = function (rowIndex) { if (!this.enabled || this.isPressed != true || !this.selectable) { return undefined; } if (this.dropEnabled) { } else { if (this.dragScrolling) { this.selectRow(rowIndex, false); } else { this.onMouseUp = this.__onMouseUp; this.onRowPress(rowIndex); } } }; v2.onRowDragOut = function (rowIndex) { if (!this.enabled) { return undefined; } if (this.dragEnabled) { } else { this.onRowRollOut(rowIndex); } }; v2.init = function (Void) { super.init(); this.tabEnabled = true; this.tabChildren = false; if (this.__dataProvider == undefined) { this.__dataProvider = new Array(); this.__dataProvider.addEventListener('modelChanged', this); } this.topRowZ = 10; this.baseRowZ = 10; }; v2.createChildren = function (Void) { super.createChildren(); this.listContent = this.createEmptyMovieClip('content_mc', this.CONTENTDEPTH); this.invLayoutContent = true; this.invalidate(); }; v2.draw = function (Void) { if (this.invRowHeight) { delete this.invRowHeight; this.__rowCount = 0; this.listContent.removeMovieClip(); this.listContent = this.createEmptyMovieClip('content_mc', this.CONTENTDEPTH); } if (this.invUpdateControl) { this.updateControl(); } this.border_mc.draw(); }; v2.invalidateStyle = function (propName) { if (this.isRowStyle[propName]) { this.invUpdateControl = true; this.invalidate(); } else { var v3 = 0; while (v3 < this.__rowCount) { this.rows[v3].invalidateStyle(propName); ++v3; } } super.invalidateStyle(propName); }; v1.mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.listclasses.ScrollSelectList); v1.mixIt2 = mx.controls.listclasses.DataProvider.Initialize(Array); v2.CONTENTDEPTH = 100; v2.__hPosition = 0; v2.__rowRenderer = 'SelectableRow'; v2.__rowHeight = 22; v2.__rowCount = 0; v2.__labelField = 'label'; v2.minScrollInterval = 30; v2.dropEnabled = false; v2.dragEnabled = false; v2.className = 'ScrollSelectList'; v2.isRowStyle = {'styleName': true, 'backgroundColor': true, 'selectionColor': true, 'rollOverColor': true, 'selectionDisabledColor': true, 'backgroundDisabledColor': true, 'textColor': true, 'textSelectedColor': true, 'textRollOverColor': true, 'textDisabledColor': true, 'alternatingRowColors': true, 'defaultIcon': true}; v2.roundUp = 0; v2.selectable = true; v2.multipleSelection = false; v2.addProperty('cellRenderer', v2.__get__cellRenderer, v2.__set__cellRenderer); v2.addProperty('iconField', v2.__get__iconField, v2.__set__iconField); v2.addProperty('iconFunction', v2.__get__iconFunction, v2.__set__iconFunction); v2.addProperty('labelField', v2.__get__labelField, v2.__set__labelField); v2.addProperty('labelFunction', v2.__get__labelFunction, v2.__set__labelFunction); v2.addProperty('rowCount', v2.__get__rowCount, v2.__set__rowCount); v2.addProperty('rowHeight', v2.__get__rowHeight, v2.__set__rowHeight); ASSetPropFlags(mx.controls.listclasses.ScrollSelectList.prototype, null, 1); } #endinitclip } movieClip 241 __Packages.mx.controls.List { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.List) { var v1 = function () { super(); }; mx.controls.List = v1; mx.controls.List extends mx.controls.listclasses.ScrollSelectList; var v2 = v1.prototype; v2.setEnabled = function (v) { super.setEnabled(v); this.border_mc.backgroundColorName = v ? 'backgroundColor' : 'backgroundDisabledColor'; this.border_mc.invalidate(); }; v2.__get__labels = function () { return this.__labels; }; v2.__set__labels = function (lbls) { this.__labels = lbls; this.setDataProvider(lbls); return this.__get__labels(); }; v2.setVPosition = function (pos) { pos = Math.min(this.__dataProvider.length - this.__get__rowCount() + this.roundUp, pos); pos = Math.max(0, pos); super.setVPosition(pos); }; v2.setHPosition = function (pos) { pos = Math.max(Math.min(this.__maxHPosition, pos), 0); super.setHPosition(pos); this.hScroll(pos); }; v2.setMaxHPosition = function (pos) { this.__maxHPosition = pos; this.invScrollProps = true; this.invalidate(); }; v2.setHScrollPolicy = function (policy) { if (policy.toLowerCase() == 'auto' && !this.autoHScrollAble) { return undefined; } super.setHScrollPolicy(policy); if (policy == 'off') { this.setHPosition(0); this.setVPosition(Math.min(this.__dataProvider.length - this.__get__rowCount() + this.roundUp, this.__vPosition)); } }; v2.setRowCount = function (rC) { if (isNaN(rC)) { return undefined; } var v2 = this.getViewMetrics(); this.setSize(this.__width, this.__rowHeight * rC + v2.top + v2.bottom); }; v2.layoutContent = function (x, y, tW, tH, dW, dH) { this.totalWidth = tW; this.totalHeight = tH; this.displayWidth = dW; var v4 = (this.__hScrollPolicy == 'on' || this.__hScrollPolicy == 'auto') ? Math.max(tW, dW) : dW; super.layoutContent(x, y, v4, dH); }; v2.modelChanged = function (eventObj) { super.modelChanged(eventObj); var v3 = eventObj.eventName; if (v3 == 'addItems' || v3 == 'removeItems' || v3 == 'updateAll' || v3 == 'filterModel') { this.invScrollProps = true; this.invalidate('invScrollProps'); } }; v2.onScroll = function (eventObj) { var v3 = eventObj.target; if (v3 == this.vScroller) { this.setVPosition(v3.scrollPosition); } else { this.hScroll(v3.scrollPosition); } super.onScroll(eventObj); }; v2.hScroll = function (pos) { this.__hPosition = pos; this.listContent._x = -pos; }; v2.init = function (Void) { super.init(); if ((this.__get__labels()).length > 0) { var v6 = new Array(); var v3 = 0; while (v3 < (this.__get__labels()).length) { v6.addItem({'label': (this.__get__labels())[v3], 'data': this.data[v3]}); ++v3; } this.setDataProvider(v6); } this.__maxHPosition = 0; }; v2.createChildren = function (Void) { super.createChildren(); this.listContent.setMask(MovieClip(this.mask_mc)); this.border_mc.move(0, 0); this.border_mc.setSize(this.__width, this.__height); }; v2.getRowCount = function (Void) { var v2 = this.getViewMetrics(); return (this.__rowCount == 0) ? Math.ceil((this.__height - v2.top - v2.bottom) / this.__rowHeight) : this.__rowCount; }; v2.size = function (Void) { super.size(); this.configureScrolling(); var v3 = this.getViewMetrics(); this.layoutContent(v3.left, v3.top, this.__width + this.__maxHPosition, this.totalHeight, this.__width - v3.left - v3.right, this.__height - v3.top - v3.bottom); }; v2.draw = function (Void) { if (this.invRowHeight) { this.invScrollProps = true; super.draw(); this.listContent.setMask(MovieClip(this.mask_mc)); this.invLayoutContent = true; } if (this.invScrollProps) { this.configureScrolling(); delete this.invScrollProps; } if (this.invLayoutContent) { var v3 = this.getViewMetrics(); this.layoutContent(v3.left, v3.top, this.__width + this.__maxHPosition, this.totalHeight, this.__width - v3.left - v3.right, this.__height - v3.top - v3.bottom); } super.draw(); }; v2.configureScrolling = function (Void) { var v2 = this.__dataProvider.length; if (this.__vPosition > Math.max(0, v2 - this.getRowCount() + this.roundUp)) { this.setVPosition(Math.max(0, Math.min(v2 - this.getRowCount() + this.roundUp, this.__vPosition))); } var v3 = this.getViewMetrics(); var v4 = (this.__hScrollPolicy != 'off') ? this.__maxHPosition + this.__width - v3.left - v3.right : this.__width - v3.left - v3.right; if (v2 == undefined) { v2 = 0; } this.setScrollProperties(v4, 1, v2, this.__rowHeight); if (this.oldVWidth != v4) { this.invLayoutContent = true; } this.oldVWidth = v4; }; v1.symbolOwner = mx.controls.List; v1.symbolName = 'List'; v2.className = 'List'; v1.version = '2.0.2.127'; v2.clipParameters = {'rowHeight': 1, 'enabled': 1, 'visible': 1, 'labels': 1}; v2.scrollDepth = 1; v2.__vScrollPolicy = 'on'; v2.autoHScrollAble = false; v2.addProperty('labels', v2.__get__labels, v2.__set__labels); ASSetPropFlags(mx.controls.List.prototype, null, 1); } #endinitclip } movieClip 242 __Packages.mx.controls.DataGrid { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.DataGrid) { var v1 = function () { super(); }; mx.controls.DataGrid = v1; mx.controls.DataGrid extends mx.controls.List; var v2 = v1.prototype; v2.init = function () { super.init(); this.invInitHeaders = true; this.columns = new Array(); }; v2.layoutContent = function (x, y, tW, tH, dW, dH) { var v3 = this.__rowCount; if (this.__showHeaders) { y += this.__headerHeight; dH -= this.__headerHeight; } super.layoutContent(x, y, tW, tH, dW, dH); if (tW != this.totColW) { this.drawHeaderBG(); } if (this.__rowCount > v3) { this.invDrawCols = true; this.invalidate(); } }; v2.setRowCount = function (rC) { if (isNaN(rC)) { return undefined; } var v2 = this.getViewMetrics(); this.setSize(this.__width, this.__rowHeight * rC + v2.top + v2.bottom + this.__headerHeight * this.__showHeaders); }; v2.setRowHeight = function (rH) { this.__rowHeight = rH; if (this.hasDrawn) { super.setRowHeight(rH); } }; v2.setHScrollPolicy = function (policy) { super.setHScrollPolicy(policy); this.invCheckCols = true; this.invalidate(); }; v2.setEnabled = function (v) { if (v == this.enabled) { return undefined; } super.setEnabled(v); if (this.__showHeaders) { this.enableHeader(v); } if (this.cellEditor._visible == true) { this.disposeEditor(); } this.invDrawCols = true; this.invalidate(); }; v2.modelChanged = function (eventObj) { if (eventObj.eventName == 'updateField') { var v3 = eventObj.firstItem; var v5 = this.__dataProvider.getItemAt(v3); this.rows[v3 - this.__vPosition].drawRow(v5, this.getStateAt(v3)); return undefined; } else { if (eventObj.eventName == 'schemaLoaded') { this.removeAllColumns(); } } if (this.columns.length == 0) { this.generateCols(); } super.modelChanged(eventObj); }; v2.configureScrolling = function (Void) { var v3 = this.getViewMetrics(); var v4 = (this.__hScrollPolicy != 'off') ? this.__maxHPosition + this.__width - v3.left - v3.right : this.__width - v3.left - v3.right; var v2 = this.__dataProvider.length; if (v2 == undefined) { v2 = 0; } if (this.__vPosition > Math.max(0, v2 - this.getRowCount() + this.roundUp)) { this.setVPosition(Math.max(0, Math.min(v2 - this.getRowCount() + this.roundUp, this.__vPosition))); } this.setScrollProperties(v4, 1, v2, this.__rowHeight, this.__headerHeight * this.__showHeaders); if (this.oldVWidth != v4) { this.invLayoutContent = true; } this.oldVWidth = v4; }; v2.setVPosition = function (pos) { if (this.cellEditor != undefined) { this.disposeEditor(); } super.setVPosition(pos); }; v2.size = function (Void) { if (this.hasDrawn != true) { this.border_mc.setSize(this.__width, this.__height); return undefined; } if (this.cellEditor != undefined) { this.disposeEditor(); } if (this.__hScrollPolicy != 'off') { var v5 = 0; var v6 = this.columns.length; var v3 = 0; while (v3 < v6) { v5 += this.columns[v3].__width; ++v3; } var v8 = this.getViewMetrics(); var v9 = this.__width - v8.left - v8.right; this.setMaxHPosition(Math.max(v5 - v9, 0)); var v7 = v9 - v5; if (v7 > 0) { this.columns[v6 - 1].__width += v7; } this.setHPosition(Math.min(this.getMaxHPosition(), this.getHPosition())); } super.size(); if (this.__hScrollPolicy == 'off') { var v10 = new Array(); v6 = this.columns.length; if (this.oldWidth == undefined) { this.oldWidth = this.displayWidth; } var v4 = 0; v3 = 0; while (v3 < v6) { this.columns[v3].__width = this.displayWidth * this.columns[v3].__width / this.oldWidth; v4 += this.columns[v3].__width; ++v3; } if (v4 != this.displayWidth) { this.columns[this.columns.length - 1].__width += this.displayWidth - v4; } this.numberOfCols = this.displayWidth; this.totColW = this.numberOfCols; } this.oldWidth = this.displayWidth; this.drawColumns(); this.drawHeaderBG(); this.invalidate(); }; v2.draw = function () { if (this.invRowHeight) { super.draw(); this.invInitHeaders = true; this.invDrawCols = true; delete this.cellEditor; } if (this.invInitHeaders) { this.initHeaders(); this.invLayoutContent = true; } super.draw(); if (this.invSpaceColsEqually) { delete this.invSpaceColsEqually; this.spaceColumnsEqually(); } if (this.invColChange) { delete this.invColChange; if (this.hasDrawn) { this.initHeaders(); this.initRows(); this.invDrawCols = true; this.updateControl(); this.invCheckCols = true; } } if (this.invCheckCols) { if (this.totColW != this.displayWidth) { this.resizeColumn(this.columns.length - 1, this.columns[this.columns.length - 1].__width); } delete this.invCheckCols; } if (this.invDrawCols) { this.drawColumns(); } this.hasDrawn = true; }; v2.editField = function (index, colName, data) { this.__dataProvider.editField(index, colName, data); }; v2.__get__columnNames = function () { return this.getColumnNames(); }; v2.__set__columnNames = function (w) { this.setColumnNames(w); return this.__get__columnNames(); }; v2.setColumnNames = function (tmpArray) { var v2 = 0; while (v2 < tmpArray.length) { this.addColumn(tmpArray[v2]); ++v2; } }; v2.getColumnNames = function (Void) { var v3 = new Array(); var v2 = 0; while (v2 < this.columns.length) { v3[v2] = this.columns[v2].columnName; ++v2; } return v3; }; v2.addColumnAt = function (index, newCol) { if (index < this.columns.length) { this.columns.splice(index, 0, 'tmp'); } var v4 = newCol; if (!(v4 instanceof mx.controls.gridclasses.DataGridColumn)) { v4 = new mx.controls.gridclasses.DataGridColumn(v4); } this.columns[index] = v4; v4.colNum = index; var v2 = index + 1; while (v2 < this.columns.length) { ++this.columns[v2].colNum; ++v2; } v4.parentGrid = this; this.totColW += v4.width; this.invColChange = true; this.invalidate(); return newCol; }; v2.addColumn = function (newCol) { return this.addColumnAt(this.columns.length, newCol); }; v2.removeColumnAt = function (index) { var v4 = this.columns[index]; this.columns.splice(index, 1); this.totColW -= v4.width; var v2 = index; while (v2 < this.columns.length) { --this.columns[v2].colNum; ++v2; } this.invColChange = true; this.invalidate(); return v4; }; v2.removeAllColumns = function (Void) { this.totColW = 0; this.columns = new Array(); this.invColChange = true; this.invalidate(); }; v2.getColumnAt = function (index) { return this.columns[index]; }; v2.getColumnIndex = function (name) { var v2 = 0; while (v2 < this.columns.length) { if (this.columns[v2].columnName == name) { return v2; } ++v2; } }; v2.__get__columnCount = function () { return this.columns.length; }; v2.spaceColumnsEqually = function (Void) { if (this.displayWidth == undefined) { var v4 = this.getViewMetrics(); this.displayWidth = this.__width - v4.left - v4.right; } var v3 = Math.ceil(this.totalWidth / this.columns.length); var v2 = 0; while (v2 < this.columns.length) { this.columns[v2].__width = v3; ++v2; } this.totColW = this.totalWidth; this.invDrawCols = true; this.invalidate(); }; v2.generateCols = function (Void) { if (this.columns.length == 0) { var v3 = this.__dataProvider.getColumnNames(); if (v3 == undefined) { var v4 = this.__dataProvider.getItemAt(0); for (var v2 in v4) { if (v2 != '__ID__') { this.addColumn(v2); } } } else { var v2 = 0; while (v2 < v3.length) { this.addColumn(v3[v2]); ++v2; } } this.invSpaceColsEqually = true; this.invColChange = true; this.invCheckCols = true; this.invalidate(); } }; v2.resizeColumn = function (col, w) { if (this.__hScrollPolicy == 'on' || this.__hScrollPolicy == 'auto') { this.columns[col].__width = w; var v11 = 0; var v5 = this.columns.length; var v2 = 0; while (v2 < v5) { v11 += this.columns[v2].__width; ++v2; } this.setMaxHPosition(Math.max(v11 - this.displayWidth, 0)); var v12 = this.displayWidth - v11; if (v12 > 0) { this.columns[v5 - 1].__width += v12; } this.setHPosition(Math.min(this.getMaxHPosition(), this.getHPosition())); this.invDrawCols = true; this.invalidate(); return undefined; } var v10 = 0; v2 = 0; while (v2 < col) { v10 += this.columns[v2].__width; ++v2; } var v8 = this.displayWidth + 2 - v10 - this.columns[col].__width; var v6 = this.displayWidth + 2 - v10 - w; this.columns[col].__width = w; v5 = this.columns.length; v2 = col + 1; while (v2 < v5) { if (!this.columns[v2].resizable) { v6 -= this.columns[v2].__width; v8 -= this.columns[v2].__width; } ++v2; } var v9 = 0; v2 = col + 1; while (v2 < v5) { if (this.columns[v2].resizable) { this.columns[v2].__width = this.columns[v2].width * v6 / v8; v9 += this.columns[v2].__width; } ++v2; } var v3 = 0; var v7 = false; v2 = v5 - 1; while (v2 >= 0) { if (this.columns[v2].resizable) { if (!v7) { this.columns[v2].__width += v6 - v9; v7 = true; } if (v3 > 0) { this.columns[v2].__width -= v3; v3 = 0; } if (this.columns[v2].__width < this.minColWidth) { v3 += this.minColWidth - this.columns[v2].__width; this.columns[v2].__width = this.minColWidth; } } --v2; } this.invDrawCols = true; this.invalidate(); }; v2.drawColumns = function (Void) { delete this.invDrawCols; this.lines_mc = this.listContent.createEmptyMovieClip('lines_mc', this.LINEDEPTH); var v4 = this.lines_mc; var v9 = 0.75; var v5 = 1; var v15 = this.__get__height() - 1; var v12 = this.getStyle('vGridLineColor'); var v14 = this.columns.length; this.placeSortArrow(); var v7 = 0; while (v7 < v14) { var v6 = this.columns[v7]; var v13 = this.enabled ? 'backgroundColor' : 'backgroundDisabledColor'; var v10 = v6.getStyle(v13); v9 += v6.__width; v4.moveTo(v5, 1); v4.lineStyle(0, v12, 0); var v11 = Math.floor(v9); v4.lineTo(v11, 1); if (v7 < this.columns.length - 1 && this.getStyle('vGridLines')) { v4.lineStyle(0, v12, 100); } v4.lineTo(v11, this.__get__height()); v4.lineStyle(0, v12, 0); v4.lineTo(v5, this.__get__height()); v4.lineTo(v5, 1); if (this.__showHeaders) { var v3 = this.headerCells[v7]; v3._x = v5 + 2; v3.hO._x = v5; v3.setSize(v6.__width - 5, Math.min(this.__headerHeight, v3.getPreferredHeight())); v3.hO._width = v6.__width - 2; v3.hO._height = this.__headerHeight; v3._y = (this.__headerHeight - v3._height) / 2; this.header_mc['sep' + v7]._x = v9 - 2; this.listContent.disableHeader._width = this.totalWidth; } var v2 = 0; while (v2 < this.__rowCount) { if (v7 == 0) { this.rows[v2].colBG.clear(); } var v8 = v6.__width; this.rows[v2].drawCell(v7, v5, v8, v10); ++v2; } v5 = v9; ++v7; } if (this.getStyle('hGridLines')) { this.lines_mc.lineStyle(0, this.getStyle('hGridLineColor')); v7 = 1; while (v7 < this.__rowCount) { this.lines_mc.moveTo(4, this.rows[v7]._y); this.lines_mc.lineTo(this.totalWidth, this.rows[v7]._y); ++v7; } } }; v2.initRows = function (Void) { var v2 = 0; while (v2 < this.__rowCount) { this.rows[v2].createCells(); ++v2; } }; v2.onRowPress = function (rowIndex) { super.onRowPress(rowIndex); if (!this.enabled) { return undefined; } var v11 = this.columns.length; var v6 = this.rows[rowIndex]; var v3 = 0; while (v3 < v11) { var v5 = this.columns[v3]; var v4 = v6._xmouse - v6.cells[v3]._x; if (v4 >= 0 && v4 < v5.__width) { this.dispatchEvent({'type': 'cellPress', 'columnIndex': v3, 'view': this, 'itemIndex': rowIndex + this.__vPosition}); return undefined; } ++v3; } }; v2.__get__showHeaders = function () { return this.getShowHeaders(); }; v2.__set__showHeaders = function (w) { this.setShowHeaders(w); return this.__get__showHeaders(); }; v2.setShowHeaders = function (b) { this.__showHeaders = b; this.invInitHeaders = true; this.invDrawCols = true; this.invalidate(); }; v2.getShowHeaders = function () { return this.__showHeaders; }; v2.__get__headerHeight = function () { return this.getHeaderHeight(); }; v2.__set__headerHeight = function (w) { this.setHeaderHeight(w); return this.__get__headerHeight(); }; v2.setHeaderHeight = function (h) { this.__headerHeight = h; this.invInitHeaders = true; this.invDrawCols = true; this.invalidate(); }; v2.getHeaderHeight = function (Void) { return this.__headerHeight; }; v2.initHeaders = function (Void) { delete this.invInitHeaders; if (this.__showHeaders) { this.header_mc = this.listContent.createClassObject(mx.core.UIObject, 'header_mc', this.HEADERDEPTH, {'styleName': this}); this.headerCells = new Array(); var v2 = 0; while (v2 < this.columns.length) { var v6 = this.columns[v2]; var v4; var v7 = v6.__headerRenderer; if (v7 == undefined) { this.headerCells[v2] = this.header_mc.createLabel('fHeaderCell' + v2, this.HEADERCELLDEPTH + v2); v4 = this.headerCells[v2]; v4.selectable = false; v4.setStyle('styleName', v6); } else { if (typeof v7 == 'string') { this.headerCells[v2] = this.header_mc.createObject(v7, 'fHeaderCell' + v2, this.HEADERCELLDEPTH + v2, {'styleName': v6}); v4 = this.headerCells[v2]; } else { this.headerCells[v2] = this.header_mc.createClassObject(v7, 'fHeaderCell' + v2, this.HEADERCELLDEPTH + v2, {'styleName': v6}); v4 = this.headerCells[v2]; } } v4.setValue(v6.__get__headerText()); v6.headerCell = v4; var v3 = this.header_mc.attachMovie('DataHeaderOverlay', 'hO' + v2, this.HEADEROVERLAYDEPTH + v2); v4.hO = v3; v3.cell = v4; v3.column = v6; v4.column = v3.column; v3.asc = false; v4.asc = v3.asc; v3.owner = this; v4.owner = v3.owner; v3._alpha = 0; if (v3.column.sortable && v3.onPress == undefined) { v3.useHandCursor = false; v3.onRollOver = this.headerRollOver; v3.onRollOut = this.headerRollOut; v3.onPress = this.headerPress; v3.onRelease = this.headerRelease; v3.onReleaseOutside = this.headerUp; v3.headerUp = this.headerUp; } if (v2 < this.columns.length - 1) { var v5 = this.header_mc.attachMovie('DataHeaderSeperator', 'sep' + v2, this.SEPARATORDEPTH + v2); v5._height = this.__headerHeight; if (v6.resizable && this.resizableColumns) { v5.useHandCursor = false; v5.col = v2; v5.owner = this; v5.onRollOver = this.showStretcher; v5.onPress = this.startSizing; v5.onReleaseOutside = this.stopSizing; v5.onRelease = v5.onReleaseOutside; v5.onRollOut = this.hideStretcher; } } ++v2; } this.drawHeaderBG(); } else { this.header_mc.removeMovieClip(); } }; v2.invalidateHeaderStyle = function (Void) { var v4 = this.columns.length; var v3 = 0; while (v3 < v4) { var v2 = this.headerCells[v3]; if (v2.stylecache != undefined) { delete v2.stylecache.tf; } delete v2.enabledColor; v2.invalidateStyle(); v2.draw(); ++v3; } }; v2.drawHeaderBG = function (Void) { var v2 = this.header_mc; v2.clear(); var v5 = this.getStyle('headerColor'); var v3 = this.__viewMetrics; var v4 = Math.max(this.totalWidth, this.displayWidth + 3); v2.moveTo(v3.left, v3.top); var v7 = {'matrixType': 'box', 'x': 0, 'y': 0, 'w': v4, 'h': this.__headerHeight + 1, 'r': 1.570796326794897}; var v8 = [v5, v5, 16777215]; var v9 = [0, 60, 255]; var v6 = [100, 100, 100]; v2.beginGradientFill('linear', v8, v6, v9, v7); v2.lineStyle(0, 0, 0); v2.lineTo(v4, v3.top); v2.lineTo(v4, this.__headerHeight + 1); v2.lineStyle(0, 0, 100); v2.lineTo(v3.left, this.__headerHeight + 1); v2.lineStyle(0, 0, 0); v2.endFill(); }; v2.enableHeader = function (v) { if (v) { this.listContent.disableHeader.removeMovieClip(); } else { var v2 = this.listContent.attachMovie('DataHeaderOverlay', 'disableHeader', this.DISABLEDHEADERDEPTH); v2._width = this.totalWidth; v2._height = this.__headerHeight; var v3 = new Color(v2); v3.setRGB(this.getStyle('backgroundDisabledColor')); v2._alpha = 60; } }; v2.placeSortArrow = function (Void) { this.sortArrow.removeMovieClip(); if (this.sortIndex == undefined) { return undefined; } if (this.columns[this.sortIndex].__width - this.headerCells[this.sortIndex].getPreferredWidth() <= 20) { return undefined; } this.sortArrow = this.header_mc.createObject('DataSortArrow', 'sortArrow', this.SORTARROWDEPTH); var v3 = this.layoutX; var v2 = 0; while (v2 <= this.sortIndex) { v3 += this.columns[v2].__width; ++v2; } var v4 = this.sortDirection == 'ASC'; this.sortArrow._yscale = v4 ? -100 : 100; this.sortArrow._x = v3 - this.sortArrow._width - 8; this.sortArrow._y = (this.__headerHeight - this.sortArrow._height) / 2 + v4 * this.sortArrow._height; }; v2.headerRollOver = function (Void) { var v2 = this.owner; if (!v2.enabled || v2.cellEditor != undefined || !v2.sortableColumns || !this.column.sortable) { return undefined; } var v3 = new Color(this); v3.setRGB(v2.getStyle('rollOverColor')); this._alpha = 50; }; v2.headerRollOut = function (Void) { this._alpha = 0; }; v2.headerPress = function (Void) { var v2 = this.owner; if (!this.column.sortable || !v2.sortableColumns || !v2.enabled) { return undefined; } this.cell._x += 1; this.cell._y += 1; var v3 = new Color(this); v3.setRGB(v2.getStyle('selectionColor')); this._alpha = 100; }; v2.headerUp = function (Void) { if (!this.column.sortable || !this.owner.sortableColumns || !this.owner.enabled) { return undefined; } this._alpha = 0; this.cell._x -= 1; this.cell._y -= 1; }; v2.headerRelease = function (Void) { var v2 = this.owner; var v3 = this.column; if (!v3.sortable || !v2.sortableColumns || !v2.enabled) { return undefined; } this.headerUp(); this.asc = !this.asc; var v4 = this.asc ? 'ASC' : 'DESC'; v2.sortIndex = v2.getColumnIndex(v3.columnName); v2.sortDirection = v4; v2.placeSortArrow(); if (v3.sortOnHeaderRelease) { v2.sortItemsBy(v3.columnName, v4); } v2.dispatchEvent({'type': 'headerRelease', 'view': v2, 'columnIndex': v2.getColumnIndex(v3.columnName)}); v2.dontEdit = true; }; v2.isStretchable = function (col) { var v2 = true; if (!this.resizableColumns) { v2 = false; return v2; } if (!this.columns[col].resizable) { v2 = false; return v2; } if (col == this.columns.length - 2 && !this.columns[col + 1].resizable) { v2 = false; } return v2; }; v2.showStretcher = function (Void) { var v2 = this.owner; if (!v2.isStretchable(this.col) || !v2.enabled || v2.cellEditor != undefined) { return undefined; } Mouse.hide(); if (v2.stretcher == undefined) { v2.attachMovie('cursorStretch', 'stretcher', v2.STRETCHERDEPTH); } v2.stretcher._x = v2._xmouse; v2.stretcher._y = v2._ymouse; v2.stretcher._visible = true; v2.onMouseMove = function () { this.stretcher._x = this._xmouse; this.stretcher._y = this._ymouse; updateAfterEvent(); }; }; v2.startSizing = function (Void) { var v2 = this.owner; if (!v2.isStretchable(this.col) || !v2.enabled) { return undefined; } v2.pressFocus(); v2.attachMovie('DataStretchBar', 'stretchBar', 999); v2.stretchBar._height = v2.height; v2.stretchBar._x = v2._xmouse; this.oldX = v2.stretchBar._x; v2.colX = this.oldX - v2.columns[this.col].width; v2.onMouseMove = function () { this.stretcher._x = this._xmouse; this.stretcher._y = this._ymouse; this.stretchBar._x = Math.max(this._xmouse, this.colX + this.minColWidth); if (this.__hScrollPolicy == 'off') { this.stretchBar._x = Math.min(this.stretchBar._x, this.displayWidth - this.minColWidth); } updateAfterEvent(); }; }; v2.stopSizing = function (Void) { var v2 = this.owner; var v3 = this.col; if (!v2.isStretchable(v3) || !v2.enabled) { return undefined; } v2.stretchBar._visible = false; this.onRollOut(); var v4 = v2.stretchBar._x - this.oldX; v2.resizeColumn(v3, v2.columns[v3].width + v4); v2.dispatchEvent({'type': 'columnStretch', 'columnIndex': v3}); }; v2.hideStretcher = function (Void) { this.owner.stretcher._visible = false; delete this.owner.onMouseMove; Mouse.show(); }; v2.__set__focusedCell = function (obj) { this.setFocusedCell(obj); return this.__get__focusedCell(); }; v2.__get__focusedCell = function () { return this.__focusedCell; }; v2.setFocusedCell = function (coord, broadCast) { if (!this.enabled || !this.editable) { return undefined; } if (coord == undefined && this.cellEditor != undefined) { this.disposeEditor(); return undefined; } var v2 = coord.itemIndex; var v5 = coord.columnIndex; if (v2 == undefined) { v2 = 0; } if (v5 == undefined) { v5 = 0; } var v9 = this.columns[v5].columnName; if (this.__vPosition > v2) { this.setVPosition(v2); } else { var v11 = v2 - this.__vPosition - this.__rowCount + this.roundUp + 1; if (v11 > 0) { this.setVPosition(this.__vPosition + v11); } } var v10 = this.columns[v5]; var v8 = this.rows[v2 - this.__vPosition]; var v3 = v8.cells[v5]; if (v3._x > this.__hPosition + this.displayWidth || v3._x < this.__hPosition) { this.setHPosition(v3._x); } var v4 = this.__dataProvider.getEditingData(v2, v9); if (v4 == undefined) { v4 = (this.__dataProvider.getItemAt(v2))[v9]; } if (v4 == undefined) { v4 = ' '; } if (v3.isCellEditor != true) { if (this.cellEditor == undefined) { this.cellEditor = this.listContent.createClassObject(mx.controls.TextInput, 'editor_mc', this.EDITORDEPTH, {'styleName': v10, 'listOwner': this}); } this.cellEditor.backgroundColor = 16777215; this.cellEditor._visible = true; this.cellEditor.setSize(v10.__width, this.__rowHeight + 2); this.cellEditor._x = v3._x - 1; this.cellEditor.text = v4; this.editorMask = this.listContent.attachMovie('BoundingBox', 'editorMask', 60001, {'_alpha': 0}); this.cellEditor.setMask(this.editorMask); this.editorMask._width = this.cellEditor.width; this.editorMask._height = this.cellEditor.height; this.cellEditor._y = v8._y - 1; this.editorMask._y = this.cellEditor._y; this.editorMask._x = this.cellEditor._x - this.editorMask._width; this.editTween = new mx.effects.Tween(this, this.cellEditor._x - this.editorMask._width, this.cellEditor._x, 150); } else { this.cellEditor = v3; this.cellEditor.setValue(v4, this.__dataProvider.getItemAt(v2)); } var v6 = this.getFocusManager(); v6.setFocus(this.cellEditor); v6.defaultPushButtonEnabled = false; if (v3.isCellEditor != true) { this.cellEditor.hPosition = 0; this.cellEditor.redraw(); Selection.setSelection(0, this.cellEditor.length); } this.__focusedCell = coord; if (this.__tabHandlerCache == undefined) { this.__tabHandlerCache = v6.tabHandler; v6.tabHandler = this.tabHandler; } v6.activeGrid = this; this.cellEditor.addEventListener('keyDown', this.editorKeyDown); if (broadCast) { this.dispatchEvent({'type': 'cellFocusIn', 'itemIndex': v2, 'columnIndex': v5}); } }; v2.onMouseDown = function (Void) { if (this.cellEditor._visible && !this.cellEditor.hitTest(_root._xmouse, _root._ymouse)) { this.editCell(); } if (this.vScroller.hitTest(_root._xmouse, _root._ymouse) || this.hScroller.hitTest(_root._xmouse, _root._ymouse) || this.header_mc.hitTest(_root._xmouse, _root._ymouse)) { this.dontEdit = true; } }; v2.editorKeyDown = function (Void) { if (Key.isDown(27)) { this.listOwner.disposeEditor(); } else { if (Key.isDown(13) && Key.getCode() != 229) { this.listOwner.editCell(); this.listOwner.findNextEnterCell(); } } }; v2.tabHandler = function (Void) { var v3 = -1; var v4 = -1; var v2 = this.activeGrid; if (v2.__focusedCell != undefined) { v3 = v2.__focusedCell.itemIndex; v4 = v2.__focusedCell.columnIndex; } v2.editCell(); v2.findNextCell(v3, v4); }; v2.findNextEnterCell = function (Void) { var v3 = Key.isDown(16) ? -1 : 1; var v2 = this.__focusedCell.itemIndex + v3; if (v2 < this.getLength() && v2 >= 0) { this.__focusedCell.itemIndex = v2; } this.setFocusedCell(this.__focusedCell, true); }; v2.findNextCell = function (index, colIndex) { if (index == undefined) { colIndex = -1; index = colIndex; } var v5 = false; var v4 = Key.isDown(16) ? -1 : 1; while (!v5) { colIndex += v4; if (colIndex >= this.columns.length || colIndex < 0) { colIndex = colIndex < 0 ? this.columns.length : 0; index += v4; if (index >= this.getLength() || index < 0) { if ((this.getFocusManager()).activeGrid != undefined) { this.disposeEditor(); } this.dontEdit = true; Selection.setFocus(this); delete this.dontEdit; (this.getFocusManager()).tabHandler(); return undefined; } } if (this.columns[colIndex].editable) { v5 = true; if (this.__tabHandlerCache != undefined) { this.disposeEditor(); } this.setFocusedCell({'itemIndex': index, 'columnIndex': colIndex}, true); } } }; v2.onSetFocus = function (Void) { super.onSetFocus(); if (this.editable && this.dontEdit != true) { if (this.__focusedCell == undefined) { this.__focusedCell = {'itemIndex': 0, 'columnIndex': 0}; } if (this.columns[this.__focusedCell.columnIndex].editable == true) { this.setFocusedCell(this.__focusedCell, true); } else { this.findNextCell(this.__focusedCell.itemIndex, this.__focusedCell.columnIndex); } } delete this.dontEdit; }; v2.onTweenUpdate = function (val) { this.editorMask._x = val; }; v2.onTweenEnd = function (val) { this.editorMask._x = val; this.cellEditor.setMask(undefined); this.editorMask.removeMovieClip(); }; v2.disposeEditor = function (Void) { this.cellEditor.removeEventListener('keyDown', this.editorKeyDown); this.dispatchEvent({'type': 'cellFocusOut', 'itemIndex': this.__focusedCell.itemIndex, 'columnIndex': this.__focusedCell.columnIndex}); if (this.cellEditor.isCellEditor != true) { this.cellEditor._visible = false; } var v3 = this.getFocusManager(); if (this.__tabHandlerCache != undefined) { v3.tabHandler = this.__tabHandlerCache; delete this.__tabHandlerCache; } v3.defaultPushButtonEnabled = true; if (this.border_mc.hitTest(_root._xmouse, _root._ymouse) && !this.vScroller.hitTest(_root._xmouse, _root._ymouse) && !this.hScroller.hitTest(_root._xmouse, _root._ymouse)) { this.dontEdit = true; this.releaseFocus(); delete this.dontEdit; } delete this.cellEditor; delete v3.activeGrid; }; v2.editCell = function () { var v3 = this.__focusedCell.itemIndex; var v4 = this.columns[this.__focusedCell.columnIndex].columnName; var v2 = this.__dataProvider.getEditingData(v3, v4); if (v2 == undefined) { v2 = (this.__dataProvider.getItemAt(v3))[v4]; } var v5 = this.cellEditor.isCellEditor ? this.cellEditor.getValue() : this.cellEditor.text; if (v2 != v5) { this.editField(v3, v4, v5); this.dispatchEvent({'type': 'cellEdit', 'itemIndex': v3, 'columnIndex': this.__focusedCell.columnIndex, 'oldValue': v2}); } this.disposeEditor(); }; v2.invalidateStyle = function (propName) { if (propName == 'headerColor' || propName == 'styleName') { this.drawHeaderBG(); } if (propName == 'hGridLines' || propName == 'hGridLineColor' || propName == 'vGridLines' || propName == 'vGridLineColor' || propName == 'styleName' || propName == 'backgroundColor') { this.invDrawCols = true; this.invalidate(); } if (mx.styles.StyleManager.TextStyleMap[propName] != undefined) { super.changeTextStyleInChildren(propName); } if (propName == 'styleName' || propName == 'headerStyle') { this.invalidateHeaderStyle(); } super.invalidateStyle(propName); }; v2.notifyStyleChangeInChildren = function (sheetName, styleProp, newValue) { if (styleProp == 'headerStyle') { this.invalidateHeaderStyle(); } if (sheetName != undefined) { var v4 = 0; while (v4 < this.columns.length) { if (sheetName == this.columns[v4].styleName) { this.invalidateStyle(styleProp); var v3 = 0; while (v3 < this.rows.length) { this.rows[v3].notifyStyleChangeInChildren(sheetName, styleProp, newValue); ++v3; } } ++v4; } } super.notifyStyleChangeInChildren(sheetName, styleProp, newValue); }; v1.symbolOwner = mx.controls.DataGrid; v1.symbolName = 'DataGrid'; v1.version = '2.0.2.127'; v2.className = 'DataGrid'; v2.selectable = true; v2.resizableColumns = true; v2.__showHeaders = true; v2.sortableColumns = true; v2.autoHScrollAble = true; v2.editable = false; v2.minColWidth = 20; v2.totColW = 0; v2.__rowRenderer = 'DataGridRow'; v2.__headerHeight = 20; v2.hasDrawn = false; v2.minScrollInterval = 60; v2.HEADERDEPTH = 5001; v2.LINEDEPTH = 5000; v2.SORTARROWDEPTH = 5500; v2.EDITORDEPTH = 5002; v2.DISABLEDHEADERDEPTH = 5003; v2.HEADERCELLDEPTH = 4500; v2.HEADEROVERLAYDEPTH = 4000; v2.SEPARATORDEPTH = 5000; v2.STRETCHERDEPTH = 1000; v2.addProperty('columnCount', v2.__get__columnCount, function () {}); v2.addProperty('columnNames', v2.__get__columnNames, v2.__set__columnNames); v2.addProperty('focusedCell', v2.__get__focusedCell, v2.__set__focusedCell); v2.addProperty('headerHeight', v2.__get__headerHeight, v2.__set__headerHeight); v2.addProperty('showHeaders', v2.__get__showHeaders, v2.__set__showHeaders); ASSetPropFlags(mx.controls.DataGrid.prototype, null, 1); } #endinitclip } movieClip 371 __Packages.mx.effects.Tween { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.effects) { _global.mx.effects = new Object(); } if (!_global.mx.effects.Tween) { var v1 = function (listenerObj, init, end, dur) { super(); if (listenerObj == undefined) { return undefined; } if (typeof init != 'number') { this.arrayMode = true; } this.listener = listenerObj; this.initVal = init; this.endVal = end; if (dur != undefined) { this.duration = dur; } this.startTime = getTimer(); if (this.duration == 0) { this.endTween(); } else { mx.effects.Tween.AddTween(this); } }; mx.effects.Tween = v1; mx.effects.Tween extends Object; var v2 = v1.prototype; v1.AddTween = function (tween) { tween.ID = mx.effects.Tween.ActiveTweens.length; mx.effects.Tween.ActiveTweens.push(tween); if (mx.effects.Tween.IntervalToken == undefined) { mx.effects.Tween.Dispatcher.DispatchTweens = mx.effects.Tween.DispatchTweens; mx.effects.Tween.IntervalToken = setInterval(mx.effects.Tween.Dispatcher, 'DispatchTweens', mx.effects.Tween.Interval); } }; v1.RemoveTweenAt = function (index) { var v2 = mx.effects.Tween.ActiveTweens; if (index >= v2.length || index < 0 || index == undefined) { return undefined; } v2.splice(index, 1); var v4 = v2.length; var v1 = index; while (v1 < v4) { --v2[v1].ID; ++v1; } if (v4 == 0) { clearInterval(mx.effects.Tween.IntervalToken); delete mx.effects.Tween.IntervalToken; } }; v1.DispatchTweens = function (Void) { var v2 = mx.effects.Tween.ActiveTweens; var v3 = v2.length; var v1 = 0; while (v1 < v3) { v2[v1].doInterval(); ++v1; } updateAfterEvent(); }; v2.doInterval = function () { var v2 = getTimer() - this.startTime; var v3 = this.getCurVal(v2); if (v2 >= this.duration) { this.endTween(); } else { if (this.updateFunc != undefined) { this.listener[this.updateFunc](v3); } else { this.listener.onTweenUpdate(v3); } } }; v2.getCurVal = function (curTime) { if (this.arrayMode) { var v3 = new Array(); var v2 = 0; while (v2 < this.initVal.length) { v3[v2] = this.easingEquation(curTime, this.initVal[v2], this.endVal[v2] - this.initVal[v2], this.duration); ++v2; } return v3; } else { return this.easingEquation(curTime, this.initVal, this.endVal - this.initVal, this.duration); } }; v2.endTween = function () { if (this.endFunc != undefined) { this.listener[this.endFunc](this.endVal); } else { this.listener.onTweenEnd(this.endVal); } mx.effects.Tween.RemoveTweenAt(this.ID); }; v2.setTweenHandlers = function (update, end) { this.updateFunc = update; this.endFunc = end; }; v2.easingEquation = function (t, b, c, d) { return (c / 2) * (Math.sin(Math.PI * (t / d - 0.5)) + 1) + b; }; v1.ActiveTweens = new Array(); v1.Interval = 10; v1.Dispatcher = new Object(); v2.duration = 3000; ASSetPropFlags(mx.effects.Tween.prototype, null, 1); } #endinitclip } movieClip 372 __Packages.mx.controls.gridclasses.DataGridColumn { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.gridclasses) { _global.mx.controls.gridclasses = new Object(); } if (!_global.mx.controls.gridclasses.DataGridColumn) { var v1 = function (colName) { super(); this.columnName = colName; this.__set__headerText(colName); }; mx.controls.gridclasses.DataGridColumn = v1; mx.controls.gridclasses.DataGridColumn extends mx.styles.CSSStyleDeclaration; var v2 = v1.prototype; v2.__get__width = function () { return this.__width; }; v2.__set__width = function (w) { delete this.parentGrid.invSpaceColsEqually; if (this.parentGrid != undefined && this.parentGrid.hasDrawn) { var v2 = this.resizable; this.resizable = false; this.parentGrid.resizeColumn(this.colNum, w); this.resizable = v2; } else { this.__width = w; } return this.__get__width(); }; v2.__set__headerText = function (h) { this.__header = h; this.headerCell.setValue(h); return this.__get__headerText(); }; v2.__get__headerText = function () { return (this.__header == undefined) ? this.columnName : this.__header; }; v2.__set__cellRenderer = function (cR) { this.__cellRenderer = cR; this.parentGrid.invColChange = true; this.parentGrid.invalidate(); return this.__get__cellRenderer(); }; v2.__get__cellRenderer = function () { return this.__cellRenderer; }; v2.__set__headerRenderer = function (hS) { this.__headerRenderer = hS; this.parentGrid.invInitHeaders = true; this.parentGrid.invalidate(); return this.__get__headerRenderer(); }; v2.__get__headerRenderer = function () { return this.__headerRenderer; }; v2.__set__labelFunction = function (f) { this.__labelFunction = f; this.parentGrid.invUpdateControl = true; this.parentGrid.invalidate(); return this.__get__labelFunction(); }; v2.__get__labelFunction = function () { return this.__labelFunction; }; v2.getStyle = function (prop) { var v3 = this[prop]; if (v3 == undefined) { if (this.styleName != undefined) { if (this.styleName instanceof mx.styles.CSSStyleDeclaration) { v3 = this.styleName.getStyle(prop); } else { v3 = _global.styles[this.styleName].getStyle(prop); } } if ((v3 == undefined || v3 == _global.style[prop] || v3 == _global.styles[this.parentGrid.className][prop]) && prop != 'backgroundColor') { v3 = this.parentGrid.getStyle(prop); } } return v3; }; v2.__getTextFormat = function (tf, bAll, fieldInst) { var v4; if (this.parentGrid.header_mc[fieldInst._name] != undefined) { v4 = (this.getStyle('headerStyle')).__getTextFormat(tf, bAll, fieldInst); if (v4 != false) { v4 = (this.parentGrid.getStyle('headerStyle')).__getTextFormat(tf, bAll, fieldInst); } if (v4 == false) { return v4; } } if (this.styleName != undefined) { var v8 = (typeof this.styleName == 'string') ? _global.styles[this.styleName] : this.styleName; v4 = v8.__getTextFormat(tf, bAll); if (!v4) { return v4; } } v4 = super.__getTextFormat(tf, bAll, fieldInst); if (v4) { return this.parentGrid.__getTextFormat(tf, bAll); } else { return v4; } }; v2.editable = true; v2.sortable = true; v2.resizable = true; v2.sortOnHeaderRelease = true; v2.__width = 50; v2.addProperty('cellRenderer', v2.__get__cellRenderer, v2.__set__cellRenderer); v2.addProperty('headerRenderer', v2.__get__headerRenderer, v2.__set__headerRenderer); v2.addProperty('headerText', v2.__get__headerText, v2.__set__headerText); v2.addProperty('labelFunction', v2.__get__labelFunction, v2.__set__labelFunction); v2.addProperty('width', v2.__get__width, v2.__set__width); ASSetPropFlags(mx.controls.gridclasses.DataGridColumn.prototype, null, 1); } #endinitclip } movieClip 373 __Packages.mx.controls.listclasses.SelectableRow { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.listclasses) { _global.mx.controls.listclasses = new Object(); } if (!_global.mx.controls.listclasses.SelectableRow) { var v1 = function () { super(); }; mx.controls.listclasses.SelectableRow = v1; mx.controls.listclasses.SelectableRow extends mx.core.UIComponent; var v2 = v1.prototype; v2.setValue = function (itmObj, state) { var v6 = this.__height; var v2 = this.cell; var v5 = this.owner; var v8 = this.itemToString(itmObj); if (v2.getValue() != v8) { v2.setValue(v8, itmObj, state); } var v4 = (v5.getPropertiesAt(this.rowIndex + v5.__vPosition)).icon; if (v4 == undefined) { v4 = v5.__iconFunction(itmObj); if (v4 == undefined) { v4 = itmObj[v5.__iconField]; if (v4 == undefined) { v4 = v5.getStyle('defaultIcon'); } } } var v3 = this.icon_mc; if (v4 != undefined && itmObj != undefined) { v3 = this.createObject(v4, 'icon_mc', 20); v3._x = 2; v3._y = (v6 - v3._height) / 2; v2._x = 4 + v3._width; } else { v3.removeMovieClip(); v2._x = 2; } var v9 = (v3 == undefined) ? 0 : v3._width; v2.setSize(this.__width - v9, Math.min(v6, v2.getPreferredHeight())); v2._y = (v6 - v2._height) / 2; }; v2.size = function (Void) { var v3 = this.backGround; var v2 = this.cell; var v4 = this.__height; var v5 = this.__width; var v6 = (this.icon_mc == undefined) ? 0 : this.icon_mc._width; v2.setSize(v5 - v6, Math.min(v4, v2.getPreferredHeight())); v2._y = (v4 - v2._height) / 2; this.icon_mc._y = (v4 - this.icon_mc._height) / 2; v3._x = 0; v3._width = v5; v3._height = v4; this.drawRowFill(v3, this.normalColor); this.drawRowFill(this.highlight, this.highlightColor); }; v2.setCellRenderer = function (forceSizing) { var v3 = this.owner.__cellRenderer; var v4; if (this.cell != undefined) { v4 = this.cell._x; this.cell.removeMovieClip(); this.cell.removeTextField(); } var v2; if (v3 == undefined) { this.cell = this.createLabel('cll', 0, {'styleName': this}); v2 = this.cell; v2.styleName = this.owner; v2.selectable = false; v2.tabEnabled = false; v2.background = false; v2.border = false; } else { if (typeof v3 == 'string') { this.cell = this.createObject(v3, 'cll', 0, {'styleName': this}); v2 = this.cell; } else { this.cell = this.createClassObject(v3, 'cll', 0, {'styleName': this}); v2 = this.cell; } } v2.owner = this; v2.listOwner = this.owner; v2.getCellIndex = this.getCellIndex; v2.getDataLabel = this.getDataLabel; if (v4 != undefined) { v2._x = v4; } if (forceSizing) { this.size(); } }; v2.getCellIndex = function (Void) { return {'columnIndex': 0, 'itemIndex': this.owner.rowIndex + this.listOwner.__vPosition}; }; v2.getDataLabel = function () { return this.listOwner.labelField; }; v2.init = function (Void) { super.init(); this.tabEnabled = false; }; v2.createChildren = function (Void) { this.setCellRenderer(false); this.setupBG(); this.setState(this.state, false); }; v2.drawRow = function (itmObj, state, transition) { this.item = itmObj; this.setState(state, transition); this.setValue(itmObj, state, transition); }; v2.itemToString = function (itmObj) { if (itmObj == undefined) { return ' '; } var v2 = this.owner.__labelFunction(itmObj); if (v2 == undefined) { v2 = itmObj instanceof XMLNode ? itmObj.attributes[this.owner.__labelField] : itmObj[this.owner.__labelField]; if (v2 == undefined) { v2 = ' '; if (typeof itmObj == 'object') { for (var v4 in itmObj) { if (v4 != '__ID__') { v2 = itmObj[v4] + ', ' + v2; } } v2 = v2.substring(0, v2.length - 2); return v2; } v2 = itmObj; } } return v2; }; v2.setupBG = function (Void) { this.backGround = this.createEmptyMovieClip('bG_mc', mx.controls.listclasses.SelectableRow.LOWEST_DEPTH); var v2 = this.backGround; this.drawRowFill(v2, this.normalColor); this.highlight = this.createEmptyMovieClip('tran_mc', mx.controls.listclasses.SelectableRow.LOWEST_DEPTH + 10); v2.owner = this; v2.grandOwner = this.owner; v2.onPress = this.bGOnPress; v2.onRelease = this.bGOnRelease; v2.onRollOver = this.bGOnRollOver; v2.onRollOut = this.bGOnRollOut; v2.onDragOver = this.bGOnDragOver; v2.onDragOut = this.bGOnDragOut; v2.useHandCursor = false; v2.trackAsMenu = true; v2.drawRect = this.drawRect; this.highlight.drawRect = this.drawRect; }; v2.drawRowFill = function (mc, newClr) { mc.clear(); mc.beginFill(newClr); mc.drawRect(1, 0, this.__width, this.__height); mc.endFill(); mc._width = this.__width; mc._height = this.__height; }; v2.setState = function (newState, transition) { var v2 = this.highlight; var v9 = this.backGround; var v4 = this.__height; var v3 = this.owner; if (!v3.enabled) { if (newState == 'selected' || this.state == 'selected') { this.highlightColor = v3.getStyle('selectionDisabledColor'); this.drawRowFill(v2, this.highlightColor); v2._visible = true; v2._y = 0; v2._height = v4; } else { v2._visible = false; this.normalColor = v3.getStyle('backgroundDisabledColor'); this.drawRowFill(v9, this.normalColor); } this.cell.__enabled = false; this.cell.setColor(v3.getStyle('disabledColor')); } else { this.cell.__enabled = true; if (transition && (newState == this.state || newState == 'highlighted' && this.state == 'selected')) { this.isChangedToSelected = true; return undefined; } var v6 = v3.getStyle('selectionDuration'); var v7 = 0; if (this.isChangedToSelected && newState == 'selected') { transition = false; } var v8 = transition && v6 != 0; if (newState == 'normal') { v7 = v3.getStyle('color'); this.normalColor = this.getNormalColor(); this.drawRowFill(v9, this.normalColor); if (v8) { v6 /= 2; v2._height = v4; v2._width = this.__width; v2._y = 0; this.bGTween = new mx.effects.Tween(this, v4 + 2, v4 * 0.2, v6, 5); } else { v2._visible = false; } delete this.isChangedToSelected; } else { this.highlightColor = v3.getStyle((newState == 'highlighted') ? 'rollOverColor' : 'selectionColor'); this.drawRowFill(v2, this.highlightColor); v2._visible = true; v7 = v3.getStyle((newState == 'highlighted') ? 'textRollOverColor' : 'textSelectedColor'); if (v8) { v2._height = v4 * 0.5; v2._y = (v4 - v2._height) / 2; this.bGTween = new mx.effects.Tween(this, v2._height, v4 + 2, v6, 5); var v10 = v3.getStyle('selectionEasing'); if (v10 != undefined) { this.bGTween.easingEquation = v10; } } else { v2._y = 0; v2._height = v4; } } this.cell.setColor(v7); } this.state = newState; }; v2.onTweenUpdate = function (val) { this.highlight._height = val; this.highlight._y = (this.__height - val) / 2; }; v2.onTweenEnd = function (val) { this.onTweenUpdate(val); this.highlight._visible = this.state != 'normal'; }; v2.getNormalColor = function (Void) { var v3; var v2 = this.owner; if (!this.owner.enabled) { v3 = v2.getStyle('backgroundDisabledColor'); return v3; } var v5 = this.rowIndex + v2.__vPosition; if (this.rowIndex == undefined) { v3 = (v2.getPropertiesOf(this.item)).backgroundColor; } else { v3 = (v2.getPropertiesAt(v5)).backgroundColor; } if (v3 == undefined) { var v4 = v2.getStyle('alternatingRowColors'); if (v4 == undefined) { v3 = v2.getStyle('backgroundColor'); return v3; } v3 = v4[v5 % v4.length]; } return v3; }; v2.invalidateStyle = function (propName) { this.cell.invalidateStyle(propName); super.invalidateStyle(propName); }; v2.bGOnPress = function (Void) { this.grandOwner.pressFocus(); this.grandOwner.onRowPress(this.owner.rowIndex); }; v2.bGOnRelease = function (Void) { this.grandOwner.releaseFocus(); this.grandOwner.onRowRelease(this.owner.rowIndex); }; v2.bGOnRollOver = function (Void) { this.grandOwner.onRowRollOver(this.owner.rowIndex); }; v2.bGOnRollOut = function (Void) { this.grandOwner.onRowRollOut(this.owner.rowIndex); }; v2.bGOnDragOver = function (Void) { this.grandOwner.onRowDragOver(this.owner.rowIndex); }; v2.bGOnDragOut = function (Void) { this.grandOwner.onRowDragOut(this.owner.rowIndex); }; v1.LOWEST_DEPTH = -16384; v2.state = 'normal'; v2.disabledColor = 15263976; v2.normalColor = 16777215; ASSetPropFlags(mx.controls.listclasses.SelectableRow.prototype, null, 1); } #endinitclip } movieClip 374 __Packages.mx.controls.gridclasses.DataGridRow { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.gridclasses) { _global.mx.controls.gridclasses = new Object(); } if (!_global.mx.controls.gridclasses.DataGridRow) { var v1 = function () { super(); }; mx.controls.gridclasses.DataGridRow = v1; mx.controls.gridclasses.DataGridRow extends mx.controls.listclasses.SelectableRow; var v2 = v1.prototype; v2.createChildren = function (Void) { this.setupBG(); this.colBG = this.createEmptyMovieClip('colbG_mc', mx.controls.listclasses.SelectableRow.LOWEST_DEPTH + 1); }; v2.init = function (Void) { super.init(); this.cells = new Array(); }; v2.size = function (Void) { if (this.cells.length != this.owner.columns.length) { this.createCells(); } super.size(); }; v2.createCells = function (Void) { this.clearCells(); this.backGround.onRelease = this.startEditCell; var v7 = this.owner.columns.length; var v2 = 0; while (v2 < v7) { var v4 = this.owner.columns[v2]; var v5 = v4.__cellRenderer; if (v5 != undefined) { if (typeof v5 == 'string') { this.cells[v2] = this.createObject(v5, 'fCell' + v2, 2 + v2, {'styleName': v4}); var v3 = this.cells[v2]; } else { this.cells[v2] = this.createClassObject(v5, 'fCell' + v2, 2 + v2, {'styleName': v4}); var v3 = this.cells[v2]; } } else { this.cells[v2] = this.createLabel('fCell' + v2, 2 + v2); var v3 = this.cells[v2]; v3.styleName = v4; v3.selectable = false; v3.backGround = false; v3.border = false; v3._visible = false; v3.getPreferredHeight = this.cellGetPreferredHeight; } v3.listOwner = this.owner; v3.columnIndex = v2; v3.owner = this; v3.getCellIndex = this.getCellIndex; v3.getDataLabel = this.getDataLabel; ++v2; } }; v2.cellGetPreferredHeight = function () { var v3 = this.text; this.text = '^g_p'; this.draw(); var v2 = this.textHeight + 4; this.text = v3; return v2; }; v2.getCellIndex = function (Void) { return {'columnIndex': this.columnIndex, 'itemIndex': this.owner.rowIndex + this.listOwner.__vPosition}; }; v2.getDataLabel = function () { return this.listOwner.columns[this.columnIndex].columnName; }; v2.clearCells = function () { var v2 = 0; while (v2 < this.cells.length) { this.cells[v2].removeTextField(); this.cells[v2].removeMovieClip(); ++v2; } this.cells.splice(0); }; v2.setValue = function (itmObj, state, transition) { var v7 = this.owner.columns; var v8 = v7.length; var v3 = 0; while (v3 < v8) { var v6 = this.cells[v3]; var v4 = v7[v3]; var v2 = v4.__labelFunction(itmObj); if (v2 == undefined) { v2 = itmObj instanceof XMLNode ? itmObj.attributes[v4.columnName] : itmObj[v4.columnName]; } if (v2 == undefined) { v2 = ' '; } v6.setValue(v2, itmObj, state); ++v3; } }; v2.drawCell = function (cellNum, xPos, w, bgCol) { var v2 = this.cells[cellNum]; v2._x = xPos; v2._visible = true; v2.setSize(w - 2, Math.min(this.__height, v2.getPreferredHeight())); v2._y = (this.__height - v2.height) / 2; if (bgCol != undefined) { var v3 = Math.floor(xPos - 2); var v4 = Math.floor(v3 + w); this.colBG.moveTo(v3, 0); this.colBG.beginFill(bgCol); this.colBG.lineStyle(0, 0, 0); this.colBG.lineTo(v4, 0); this.colBG.lineTo(v4, this.__height); this.colBG.lineTo(v3, this.__height); this.colBG.endFill(); } }; v2.setState = function (newState, transition) { var v6 = this.owner.columns; var v4 = v6.length; if (newState != 'normal' || !this.owner.enabled) { var v5; if (!this.owner.enabled) { v5 = this.owner.getStyle('disabledColor'); } else { if (newState == 'highlighted') { v5 = this.owner.getStyle('textRollOverColor'); } else { if (newState == 'selected') { v5 = this.owner.getStyle('textSelectedColor'); } } } var v3 = 0; while (v3 < v4) { this.cells[v3].setColor(v5); this.cells[v3].__enabled = this.owner.enabled; ++v3; } } else { var v3 = 0; while (v3 < v4) { this.cells[v3].setColor(v6[v3].getStyle('color')); this.cells[v3].__enabled = this.owner.enabled; ++v3; } } super.setState(newState, transition); }; v2.startEditCell = function () { var v2 = this.grandOwner; v2.dontEdit = true; v2.releaseFocus(); delete v2.dontEdit; if (v2.enabled && v2.editable && this.owner.item != undefined) { var v9 = this.owner.cells.length; var v3 = 0; while (v3 < v9) { var v5 = v2.columns[v3]; if (v5.editable) { var v4 = this.owner._xmouse - this.owner.cells[v3]._x; if (v4 >= 0 && v4 < v5.__width) { var v6 = this.owner.rowIndex + v2.__vPosition; v2.setFocusedCell({'itemIndex': v6, 'columnIndex': v3}, true); if (this.wasPressed != true) { this.onPress(); v2.onMouseUp(); } delete this.wasPressed; clearInterval(v2.dragScrolling); delete v2.onMouseUp; return undefined; } } ++v3; } } }; v2.bGOnPress = function (Void) { this.wasPressed = true; this.grandOwner.pressFocus(); this.grandOwner.onRowPress(this.owner.rowIndex); }; v2.notifyStyleChangeInChildren = function (sheetName, styleProp, newValue) { var v6 = this.owner.columns; var v4 = this.cells.length; var v3 = 0; while (v3 < v4) { var v2 = this.cells[v3]; if (v2.stylecache != undefined) { delete v2.stylecache.tf; } delete v2.enabledColor; v2.invalidateStyle(styleProp); ++v3; } }; ASSetPropFlags(mx.controls.gridclasses.DataGridRow.prototype, null, 1); } #endinitclip } movieClip 375 __Packages.mx.controls.TextInput { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.TextInput) { var v1 = function () { super(); }; mx.controls.TextInput = v1; mx.controls.TextInput extends mx.core.UIComponent; var v2 = v1.prototype; v2.addEventListener = function (event, handler) { if (event == 'enter') { this.addEnterEvents(); } super.addEventListener(event, handler); }; v2.enterOnKeyDown = function () { if (Key.getAscii() == 13) { this.owner.dispatchEvent({'type': 'enter'}); } }; v2.addEnterEvents = function () { if (this.enterListener == undefined) { this.enterListener = new Object(); this.enterListener.owner = this; this.enterListener.onKeyDown = this.enterOnKeyDown; } }; v2.init = function (Void) { super.init(); this.label.styleName = this; this.tabChildren = true; this.tabEnabled = false; this.focusTextField = this.label; this._color = mx.core.UIObject.textColorList; this.label.onSetFocus = function () { this._parent.onSetFocus(); }; this.label.onKillFocus = function (n) { this._parent.onKillFocus(n); }; this.label.drawFocus = function (b) { this._parent.drawFocus(b); }; this.label.onChanged = this.onLabelChanged; }; v2.setFocus = function () { Selection.setFocus(this.label); }; v2.onLabelChanged = function (Void) { this._parent.dispatchEvent({'type': 'change'}); this._parent.dispatchValueChangedEvent(this.__get__text()); }; v2.createChildren = function (Void) { super.createChildren(); if (this.border_mc == undefined) { this.createClassObject(_global.styles.rectBorderClass, 'border_mc', 0, {'styleName': this}); } this.border_mc.swapDepths(this.label); this.label.autoSize = 'none'; }; v2.__get__html = function () { return this.getHtml(); }; v2.__set__html = function (value) { this.setHtml(value); return this.__get__html(); }; v2.getHtml = function () { return this.label.html; }; v2.setHtml = function (value) { if (value != this.label.html) { this.label.html = value; } }; v2.__get__text = function () { return this.getText(); }; v2.__set__text = function (t) { this.setText(t); return this.__get__text(); }; v2.getText = function () { if (this.initializing) { return this.initText; } if (this.label.html == true) { return this.label.htmlText; } return this.label.text; }; v2.setText = function (t) { if (this.initializing) { this.initText = t; } else { var v2 = this.label; if (v2.html == true) { v2.htmlText = t; } else { v2.text = t; } } this.dispatchValueChangedEvent(t); }; v2.size = function (Void) { this.border_mc.setSize(this.__get__width(), this.__get__height()); var v2 = this.border_mc.__get__borderMetrics(); var v6 = v2.left + v2.right; var v3 = v2.top + v2.bottom; var v5 = v2.left; var v4 = v2.top; this.tfx = v5; this.tfy = v4; this.tfw = this.__get__width() - v6; this.tfh = this.__get__height() - v3; this.label.move(this.tfx, this.tfy); this.label.setSize(this.tfw, this.tfh + 1); }; v2.setEnabled = function (enable) { this.label.type = (this.__editable == true || enable == false) ? 'input' : 'dynamic'; this.label.selectable = enable; var v2 = this.getStyle(enable ? 'color' : 'disabledColor'); if (v2 == undefined) { v2 = enable ? 0 : 8947848; } this.setColor(v2); }; v2.setColor = function (col) { this.label.textColor = col; }; v2.onKillFocus = function (newFocus) { if (this.enterListener != undefined) { Key.removeListener(this.enterListener); } if (this.bind != undefined) { this.updateModel(this.__get__text()); } super.onKillFocus(newFocus); }; v2.onSetFocus = function (oldFocus) { var f = Selection.getFocus(); var o = eval(f); if (o != this.label) { Selection.setFocus(this.label); return undefined; } if (this.enterListener != undefined) { Key.addListener(this.enterListener); } super.onSetFocus(oldFocus); }; v2.draw = function (Void) { var v2 = this.label; var v4 = this.getText(); if (this.initializing) { this.initializing = false; delete this.initText; } var v3 = this._getTextFormat(); v2.embedFonts = v3.embedFonts == true; if (v3 != undefined) { v2.setTextFormat(v3); v2.setNewTextFormat(v3); } v2.multiline = false; v2.wordWrap = false; if (v2.html == true) { v2.setTextFormat(v3); v2.htmlText = v4; } else { v2.text = v4; } v2.type = (this.__editable == true || this.enabled == false) ? 'input' : 'dynamic'; this.size(); }; v2.setEditable = function (s) { this.__editable = s; this.label.type = s ? 'input' : 'dynamic'; }; v2.__get__maxChars = function () { return this.label.maxChars; }; v2.__set__maxChars = function (w) { this.label.maxChars = w; return this.__get__maxChars(); }; v2.__get__length = function () { return this.label.length; }; v2.__get__restrict = function () { return this.label.restrict; }; v2.__set__restrict = function (w) { this.label.restrict = (w == '') ? null : w; return this.__get__restrict(); }; v2.__get__hPosition = function () { return this.label.hscroll; }; v2.__set__hPosition = function (w) { this.label.hscroll = w; return this.__get__hPosition(); }; v2.__get__maxHPosition = function () { return this.label.maxhscroll; }; v2.__get__editable = function () { return this.__editable; }; v2.__set__editable = function (w) { this.setEditable(w); return this.__get__editable(); }; v2.__get__password = function () { return this.label.password; }; v2.__set__password = function (w) { this.label.password = w; return this.__get__password(); }; v2.__get__tabIndex = function () { return this.label.tabIndex; }; v2.__set__tabIndex = function (w) { this.label.tabIndex = w; return this.__get__tabIndex(); }; v2.__set___accProps = function (val) { this.label._accProps = val; return this.__get___accProps(); }; v2.__get___accProps = function () { return this.label._accProps; }; v1.symbolName = 'TextInput'; v1.symbolOwner = mx.controls.TextInput; v1.version = '2.0.2.127'; v2.className = 'TextInput'; v2.initializing = true; v2.clipParameters = {'text': 1, 'editable': 1, 'password': 1, 'maxChars': 1, 'restrict': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters); v2._maxWidth = mx.core.UIComponent.kStretch; v2.__editable = true; v2.initText = ''; v2.addProperty('_accProps', v2.__get___accProps, v2.__set___accProps); v2.addProperty('editable', v2.__get__editable, v2.__set__editable); v2.addProperty('hPosition', v2.__get__hPosition, v2.__set__hPosition); v2.addProperty('html', v2.__get__html, v2.__set__html); v2.addProperty('length', v2.__get__length, function () {}); v2.addProperty('maxChars', v2.__get__maxChars, v2.__set__maxChars); v2.addProperty('maxHPosition', v2.__get__maxHPosition, function () {}); v2.addProperty('password', v2.__get__password, v2.__set__password); v2.addProperty('restrict', v2.__get__restrict, v2.__set__restrict); v2.addProperty('tabIndex', v2.__get__tabIndex, v2.__set__tabIndex); v2.addProperty('text', v2.__get__text, v2.__set__text); ASSetPropFlags(mx.controls.TextInput.prototype, null, 1); } #endinitclip } movieClip 1022 __Packages.mx.controls.treeclasses.TreeDataProvider { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.treeclasses) { _global.mx.controls.treeclasses = new Object(); } if (!_global.mx.controls.treeclasses.TreeDataProvider) { var v1 = function () { super(); }; mx.controls.treeclasses.TreeDataProvider = v1; mx.controls.treeclasses.TreeDataProvider extends Object; var v2 = v1.prototype; v1.Initialize = function (obj) { obj = obj.prototype; if (obj.addTreeNode != undefined) { return false; } var v4 = mx.controls.treeclasses.TreeDataProvider.mixinProps; var v5 = v4.length; var v2 = 0; while (v2 < v5) { obj[v4[v2]] = mx.controls.treeclasses.TreeDataProvider.mixins[v4[v2]]; _global.ASSetPropFlags(obj, v4[v2], 1); ++v2; } mx.events.EventDispatcher.initialize(obj); _global.ASSetPropFlags(obj, 'addEventListener', 1); _global.ASSetPropFlags(obj, 'removeEventListener', 1); _global.ASSetPropFlags(obj, 'dispatchEvent', 1); _global.ASSetPropFlags(obj, 'dispatchQueue', 1); _global.ASSetPropFlags(obj, 'createEvent', 1); return true; }; v2.createProp = function (obj, propName, setter) { var p = (propName.charAt(0)).toUpperCase() + propName.substr(1); var v2 = null; var v3 = function (Void) { return this['get' + p](); }; if (setter) { v2 = function (val) { this['set' + p](val); }; } obj.addProperty(propName, v3, v2); }; v1.convertToNode = function (tag, arg, data) { if (typeof arg == 'string') { var v2 = mx.controls.treeclasses.TreeDataProvider.blankXML.createElement(tag); v2.attributes.label = arg; if (data != undefined) { v2.attributes.data = data; } return v2; } else { if (arg instanceof XML) { return arg.firstChild.cloneNode(true); } else { if (arg instanceof XMLNode) { return arg; } else { if (typeof arg == 'object') { var v2 = mx.controls.treeclasses.TreeDataProvider.blankXML.createElement(tag); for (var v3 in arg) { v2.attributes[v3] = arg[v3]; } if (data != undefined) { v2.attributes.data = data; } return v2; } } } } }; v2.addTreeNode = function (arg, data) { return this.addTreeNodeAt(this.childNodes.length, arg, data); }; v2.addTreeNodeAt = function (index, arg, data) { if (index > this.childNodes.length) { return undefined; } var v2; if (arg instanceof XMLNode) { v2 = arg.removeTreeNode(); } else { v2 = mx.controls.treeclasses.TreeDataProvider.convertToNode('node', arg, data); } if (index >= this.childNodes.length) { this.appendChild(v2); this.updateViews({'eventName': 'addNode', 'node': v2, 'parentNode': this, 'index': index}); return v2; } this.insertBefore(v2, this.childNodes[index]); this.updateViews({'eventName': 'addNode', 'node': v2, 'parentNode': this, 'index': index}); return v2; }; v2.getTreeNodeAt = function (index) { return this.childNodes[index]; }; v2.removeTreeNodeAt = function (index) { var v2 = this.childNodes[index]; v2.removeNode(); this.updateViews({'eventName': 'removeNode', 'node': v2, 'parentNode': this, 'index': index}); return v2; }; v2.removeTreeNode = function () { var v4 = this.parentNode; var v7; var v3 = 0; var v2 = this.parentNode.firstChild; while (v2 != undefined) { if (v2 == this) { v7 = v3; break; } ++v3; v2 = v2.nextSibling; } if (v7 != undefined) { var v5 = this.getRootNode(); this.removeNode(); v4.updateViews({'eventName': 'removeNode', 'node': this, 'parentNode': v4, 'index': v7}); } return this; }; v2.removeAll = function () { while (this.childNodes.length > 0) { this.removeTreeNodeAt(this.childNodes.length - 1); } var v2 = this.getRootNode(); this.updateViews({'eventName': 'updateTree'}); }; v2.getRootNode = function () { var v2 = this; for (;;) { if (!(v2.parentNode != undefined && v2.isTreeRoot == undefined)) break; v2 = v2.parentNode; } return v2; }; v2.updateViews = function (eventObj) { var v2 = this; eventObj.target = this; eventObj.type = 'modelChanged'; while (v2 != undefined) { if (v2.isTreeRoot || v2.parentNode == undefined) { v2.dispatchEvent(eventObj); } v2 = v2.parentNode; } }; v1.mixinProps = ['addTreeNode', 'addTreeNodeAt', 'getTreeNodeAt', 'removeTreeNodeAt', 'getRootNode', 'getDepth', 'removeAll', 'removeTreeNode', 'updateViews']; v1.evtDipatcher = mx.events.EventDispatcher; v1.mixins = new mx.controls.treeclasses.TreeDataProvider(); v1.blankXML = new XML(); v1.largestID = 0; ASSetPropFlags(mx.controls.treeclasses.TreeDataProvider.prototype, null, 1); } #endinitclip } movieClip 2270 __Packages.mx.controls.menuclasses.MenuDataProvider { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.menuclasses) { _global.mx.controls.menuclasses = new Object(); } if (!_global.mx.controls.menuclasses.MenuDataProvider) { var v1 = function () { super(); }; mx.controls.menuclasses.MenuDataProvider = v1; mx.controls.menuclasses.MenuDataProvider extends Object; var v2 = v1.prototype; v1.Initialize = function (obj) { obj = obj.prototype; var v3 = mx.controls.menuclasses.MenuDataProvider.mixinProps; var v5 = v3.length; var v2 = 0; while (v2 < v5) { obj[v3[v2]] = mx.controls.menuclasses.MenuDataProvider.mixins[v3[v2]]; _global.ASSetPropFlags(obj, v3[v2], 1); ++v2; } return true; }; v2.addMenuItem = function (arg) { return this.addTreeNode(mx.controls.treeclasses.TreeDataProvider.convertToNode('menuitem', arg)); }; v2.addMenuItemAt = function (index, arg) { return this.addTreeNodeAt(index, mx.controls.treeclasses.TreeDataProvider.convertToNode('menuitem', arg)); }; v2.removeMenuItem = function (Void) { return this.removeTreeNode(); }; v2.removeMenuItemAt = function (index) { return (this.getTreeNodeAt(index)).removeTreeNode(); }; v2.getMenuItemAt = function (index) { return this.getTreeNodeAt(index); }; v2.indexOf = function (item) { var v2 = 0; while (v2 < this.childNodes.length) { if (this.childNodes[v2] == item) { return v2; } ++v2; } return undefined; }; v1.mixinProps = ['addMenuItem', 'addMenuItemAt', 'getMenuItemAt', 'removeMenuItem', 'removeMenuItemAt', 'normalize', 'indexOf']; v1.mixins = new mx.controls.menuclasses.MenuDataProvider(); ASSetPropFlags(mx.controls.menuclasses.MenuDataProvider.prototype, null, 1); } #endinitclip } movieClip 2271 __Packages.mx.controls.Menu { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.Menu) { var v1 = function () { super(); }; mx.controls.Menu = v1; mx.controls.Menu extends mx.controls.listclasses.ScrollSelectList; var v2 = v1.prototype; v1.createMenu = function (parent, mdp, initObj) { if (parent == undefined) { parent = _root; } var pt = new Object(); pt.x = parent._root._xmouse; pt.y = parent._root._ymouse; parent._root.localToGlobal(pt); if (mdp == undefined) { mdp = new XML(); } var v3 = mx.managers.PopUpManager.createPopUp(parent, mx.controls.Menu, false, initObj, true); if (v3 == undefined) { trace('Failed to create a new menu, probably because there is no Menu in the Library'); return v3; } v3.isPressed = true; v3.mouseDownOutsideHandler = function (event) { if (!this.isMouseOverMenu() && !this.__activator.hitTest(pt.x, pt.y)) { this.hideAllMenus(); } }; v3.dataProvider = mdp; return v3; }; v1.isItemEnabled = function (itm) { var v1 = itm.attributes.enabled; return (v1 == undefined || v1 == true || v1.toLowerCase() == 'true') && itm.attributes.type.toLowerCase() != 'separator'; }; v1.isItemSelected = function (itm) { var v1 = itm.attributes.selected; return v1 == true || v1.toLowerCase() == 'true'; }; v2.init = function (Void) { super.init(); this.__set__visible(false); }; v2.createChildren = function (Void) { super.createChildren(); this.listContent.setMask(MovieClip(this.mask_mc)); this.mask_mc.removeMovieClip(); this.border_mc.move(0, 0); this.border_mc.borderStyle = 'menuBorder'; }; v2.propagateToSubMenus = function (prop, value) { for (var v5 in this.__menuCache) { var v2 = this.__menuCache[v5]; if (v2 != this) { v2['set' + prop](value); } } }; v2.setLabelField = function (lbl) { super.setLabelField(lbl); this.propagateToSubMenus('LabelField', lbl); }; v2.setLabelFunction = function (lbl) { super.setLabelFunction(lbl); this.propagateToSubMenus('LabelFunction', lbl); }; v2.setCellRenderer = function (cR) { super.setCellRenderer(cR); this.propagateToSubMenus('CellRenderer', cR); }; v2.setRowHeight = function (v) { super.setRowHeight(v); this.propagateToSubMenus('RowHeight', v); }; v2.setIconField = function (v) { super.setIconField(v); this.propagateToSubMenus('IconField', v); }; v2.setIconFunction = function (v) { super.setIconFunction(v); this.propagateToSubMenus('IconFunction', v); }; v2.size = function (Void) { super.size(); var v3 = this.getViewMetrics(); this.layoutContent(v3.left, v3.top, this.__width - v3.left - v3.right, this.__height - v3.top - v3.bottom); }; v2.draw = function (Void) { if (this.invRowHeight) { super.draw(); this.listContent.setMask(MovieClip(this.mask_mc)); this.invUpdateSize = true; } super.draw(); if (this.invUpdateSize) { this.updateSize(); } }; v2.onSetFocus = function () { super.onSetFocus(); (this.getFocusManager()).defaultPushButtonEnabled = false; }; v2.setDataProvider = function (dP) { if (typeof dP == 'string') { dP = (new XML(dP)).firstChild; } this.__menuDataProvider.removeEventListener('modelChanged', this); this.__menuDataProvider = dP; if (!(this.__menuDataProvider instanceof XML)) { this.__menuDataProvider.isTreeRoot = true; } this.__menuDataProvider.addEventListener('modelChanged', this); this.modelChanged({'eventName': 'updateTree'}); }; v2.getDataProvider = function () { return this.__menuDataProvider; }; v2.addMenuItem = function (arg) { return this.__menuDataProvider.addMenuItem(arg); }; v2.addMenuItemAt = function (index, arg) { return this.__menuDataProvider.addMenuItemAt(index, arg); }; v2.removeMenuItemAt = function (index) { var v2 = this.getMenuItemAt(index); if (v2 != undefined && v2 != null) { v2.removeMenuItem(); } return v2; }; v2.removeMenuItem = function (item) { return this.removeMenuItemAt(this.indexOf(item)); }; v2.removeAll = function (Void) { return this.__menuDataProvider.removeAll(); }; v2.getMenuItemAt = function (index) { return this.__menuDataProvider.getMenuItemAt(index); }; v2.setMenuItemSelected = function (item, select) { if (item.attributes.type == 'radio') { var v3 = this.getRootMenu(); this.groupName = item.attributes.groupName; v3[this.groupName].setGroupSelection(item); return undefined; } if (select != item.attributes.selected) { item.attributes.selected = select; item.updateViews({'eventName': 'selectionChanged', 'node': item}); } }; v2.setMenuItemEnabled = function (item, enable) { if (enable != item.attributes.enabled) { item.attributes.enabled = enable; item.updateViews({'eventName': 'enabledChanged', 'node': item}); } }; v2.indexOf = function (item) { return this.__menuDataProvider.indexOf(item); }; v2.show = function (x, y) { if (!this.__get__visible()) { var v2 = this.getRootMenu(); v2.dispatchEvent({'type': 'menuShow', 'menuBar': this.__menuBar, 'menu': this, 'menuItem': this.__menuDataProvider}); if (x != undefined) { this._x = x; if (y != undefined) { this._y = y; } } if (this != v2) { var v5 = this._x + this._width - Stage.width; if (v5 > 0) { this._x -= v5; if (this._x < 0) { this._x = 0; } } } this.popupMask = this.attachMovie('BoundingBox', 'pMask_mc', 6000); this.setMask(this.popupMask); var v3 = this.__get__width(); if (v3 < 50) { v3 = 100; } this.popupMask._width = v3; this.popupMask._height = this.height; this.popupMask._x = -this.popupMask._width; this.popupMask._y = -this.popupMask._height; var v4 = this.getStyle('popupDuration'); if (this.wasJustCreated && v4 < 200) { v4 = 200; delete this.wasJustCreated; } this.popupTween = new mx.effects.Tween(this, [this.popupMask._x, this.popupMask._y], [0, 0], v4); this.__set__visible(true); this.isPressed = true; if (!this.__menuBar && v2 == this) { Selection.setFocus(this); } } }; v2.onTweenUpdate = function (val) { this.popupMask._width = this.width; this.popupMask._x = val[0]; this.popupMask._y = val[1]; }; v2.onTweenEnd = function (val) { this.popupMask._x = val[0]; this.popupMask._y = val[1]; this.setMask(undefined); this.popupMask.removeMovieClip(); }; v2.hide = function (Void) { if (this.__get__visible()) { for (var v2 in this.__activeChildren) { this.__activeChildren[v2].hide(); } this.__lastRowRolledOver = undefined; this.clearSelected(); if (this.anchorRow != undefined) { this.anchorRow.highlight._visible = false; } this.__set__visible(false); this.isPressed = false; this.__wasVisible = false; var v3 = this.getRootMenu(); v3.dispatchEvent({'type': 'menuHide', 'menuBar': this.__menuBar, 'menu': this, 'menuItem': this.__menuDataProvider}); } }; v2.onKillFocus = function () { super.onKillFocus(); (this.getFocusManager()).defaultPushButtonEnabled = true; if (this.supposedToLoseFocus == undefined) { this.hideAllMenus(); } delete this.supposedToLoseFocus; }; v2.modelChanged = function (eventObj) { var v4 = eventObj.eventName; if (v4 == 'updateTree') { this.__dataProvider.removeAll(); this.__dataProvider.addItemsAt(0, this.__menuDataProvider.childNodes); this.invUpdateSize = true; this.invalidate(); super.modelChanged({'eventName': 'updateAll'}); this.deinstallAllItems(); this.installItem(this.__menuDataProvider); if (this.__menuCache == undefined) { this.__menuCache = new Object(); } this.__menuCache[this.__menuDataProvider.getID()] = this; } else { if (v4 == 'addNode' || v4 == 'removeNode') { var v5 = eventObj.node; var v7 = eventObj.parentNode; var v8 = this.__menuCache[v7.getID()]; if (v4 == 'removeNode') { this.deleteDependentSubMenus(v5); v8.removeItemAt(eventObj.index); this.deinstallItem(v5); } else { v8.addItemAt(eventObj.index, v5); this.installItem(v5); } v8.invUpdateSize = true; v8.invalidate(); var v6 = this.__menuCache[v7.parentNode.getID()]; v6.invUpdateControl = true; v6.invalidate(); } else { if (v4 == 'selectionChanged' || v4 == 'enabledChanged') { var v8 = this.__menuCache[eventObj.node.parentNode.getID()]; v8.invUpdateControl = true; v8.invalidate(); } else { super.modelChanged(eventObj); } } } }; v2.updateSize = function () { delete this.invUpdateSize; var v2 = this.calcHeight(); if (this.getLength() != this.__rowCount) { this.setSize(0, v2); } this.setSize(this.calcWidth(), v2); }; v2.calcWidth = function () { var v4 = -1; var v3; var v2 = 0; while (v2 < this.rows.length) { v3 = this.rows[v2].getIdealWidth(); if (v3 > v4) { v4 = v3; } ++v2; } var v5 = this.getStyle('textIndent'); if (v5 == undefined) { v5 = 0; } return v4 + v5; }; v2.calcHeight = function () { var v2 = this.getViewMetrics(); return this.__dataProvider.length * this.__rowHeight + v2.top + v2.bottom; }; v2.invalidateStyle = function (propName) { super.invalidateStyle(propName); for (var v4 in this.__activeChildren) { this.__activeChildren[v4].invalidateStyle(propName); } }; v2.notifyStyleChangeInChildren = function (sheetName, styleProp, newValue) { super.notifyStyleChangeInChildren(sheetName, styleProp, newValue); for (var v6 in this.__activeChildren) { this.__activeChildren[v6].notifyStyleChangeInChildren(sheetName, styleProp, newValue); } }; v2.deleteDependentSubMenus = function (menuItem) { var v2 = menuItem.childNodes; for (var v3 in v2) { this.deleteDependentSubMenus(v2[v3]); } var v4 = this.__menuCache[menuItem.getID()]; if (v4 != undefined) { v4.hide(); delete this.__menuCache[menuItem.getID()]; } }; v2.installItem = function (item) { if (item.attributes.instanceName != undefined) { var v6 = item.attributes.instanceName; if (this[v6] != undefined) { trace('WARNING: Duplicate menu item instanceNames - ' + v6); } if (this.__namedItems == undefined) { this.__namedItems = new Object(); } this.__namedItems[v6] = item; this[v6] = item; } if (item.attributes.type == 'radio' && item.attributes.groupName != undefined) { var v5 = item.attributes.groupName; var v2 = this[v5]; if (v2 == undefined) { v2 = new Object(); v2.name = v5; v2._rootMenu = this; v2._members = new Object(); v2._memberCount = 0; v2.getGroupSelection = this.getGroupSelection; v2.setGroupSelection = this.setGroupSelection; v2.addProperty('selection', v2.getGroupSelection, v2.setGroupSelection); if (this.__radioGroups == undefined) { this.__radioGroups = new Object(); } this.__radioGroups[v5] = v2; this[v5] = v2; } v2._members[item.getID()] = item; ++v2._memberCount; if (mx.controls.Menu.isItemSelected(item)) { v2.selection = item; } } var v3 = item.childNodes; for (var v7 in v3) { this.installItem(v3[v7]); } }; v2.deinstallItem = function (item) { var v2 = item.childNodes; for (var v5 in v2) { this.deinstallItem(v2[v5]); } if (item.attributes.instanceName != undefined) { var v7 = item.attributes.instanceName; delete this[v7]; delete this.__namedItems[v7]; } if (item.attributes.type == 'radio' && item.attributes.groupName != undefined) { var v6 = item.attributes.groupName; var v3 = this[v6]; if (v3 == undefined) { return undefined; } delete v3._members[item.getID()]; --v3._memberCount; if (v3._memberCount == 0) { delete this[v6]; delete this.__radioGroups[v6]; } else { if (v3.selection == item) { delete v3._selection; } } } }; v2.deinstallAllItems = function (Void) { for (var v2 in this.__namedItems) { delete this[v2]; } delete this.__namedItems; for (v2 in this.__radioGroups) { delete this[v2]; } delete this.__radioGroups; }; v2.getGroupSelection = function () { return this._selection; }; v2.setGroupSelection = function (item) { this._selection = item; for (var v4 in this._members) { var v2 = this._members[v4]; v2.attributes.selected = v2 == item; } item.updateViews({'eventName': 'selectionChanged', 'node': item}); }; v2.onRowRelease = function (rowIndex) { if (!this.enabled || !this.selectable || !this.__get__visible()) { return undefined; } var v5 = this.rows[rowIndex]; var v2 = v5.item; if (v2 != undefined && mx.controls.Menu.isItemEnabled(v2)) { var v10 = v2.attributes.type; var v4 = !v2.hasChildNodes() && v10 != 'separator'; if (v4) { this.hideAllMenus(); } var v6; var v3 = this.getRootMenu(); if (v10 == 'check' || v10 == 'radio') { this.setMenuItemSelected(v2, !mx.controls.Menu.isItemSelected(v2)); } if (v4) { v3.dispatchEvent({'type': 'change', 'menuBar': this.__menuBar, 'menu': v3, 'menuItem': v2, 'groupName': v2.attributes.groupName}); } } }; v2.onRowPress = function (rowIndex) { var v3 = this.rows[rowIndex].item; if (mx.controls.Menu.isItemEnabled(v3) && !v3.hasChildNodes()) { super.onRowPress(rowIndex); } }; v2.onRowRollOut = function (rowIndex) { if (!this.enabled || !this.selectable || !this.__get__visible()) { return undefined; } super.onRowRollOut(rowIndex); var v4 = this.rows[rowIndex].item; if (v4 != undefined) { var v5 = this.getRootMenu(); v5.dispatchEvent({'type': 'rollOut', 'menuBar': this.__menuBar, 'menu': this, 'menuItem': v4}); } var v3 = this.__activeChildren[v4.getID()]; if (v4.hasChildNodes() > 0) { if (v3.isOpening || v3.isOpening == undefined) { this.cancelMenuDelay(); v3.isOpening = false; } if (v3.visible) { this.rows[rowIndex].drawRow(v4, 'selected', false); } } else { if (v3.isClosing || v3.isClosing == undefined) { this.cancelMenuDelay(); v3.isClosing = false; } } this.setTimeOut(this.__closeDelay, v4.getID()); }; v2.onRowRollOver = function (rowIndex) { if (!this.enabled || !this.selectable || !this.__get__visible()) { return undefined; } var v2 = this.rows[rowIndex]; var v8 = v2.item; var v6 = v8.getID(); var v4 = this.__activeChildren[this.__anchor]; var v5 = this.__activeChildren[v6]; this.clearSelected(); this.clearTimeOut(); this.__lastRowRolledOver = rowIndex; if (this.anchorRow != undefined) { this.anchorRow.drawRow(this.anchorRow.item, 'normal', false); delete this.anchorRow; } if (this.__parentMenu) { var v3 = this.__parentMenu.rows[this.__anchorIndex]; v3.drawRow(v3.item, 'selected', false); this.__parentMenu.anchorRow = v3; } if (v5.__activeChildren[v5.__anchor].visible) { v5.__activeChildren[v5.__anchor].hide(); } if (v4.visible && this.__anchor != v6) { v4.isClosing = true; this.setMenuDelay(this.__closeDelay, 'closeSubMenu', {'id': this.__anchor}); } if (v8 != undefined && mx.controls.Menu.isItemEnabled(v8)) { var v7 = this.getRootMenu(); v7.dispatchEvent({'type': 'rollOver', 'menuBar': this.__menuBar, 'menu': this, 'menuItem': v8}); if (v8.hasChildNodes() > 0) { this.anchorRow = v2; v2.drawRow(v8, 'selected', false); if (!v5.visible) { v5.isOpening = true; this.setMenuDelay(this.__openDelay, 'openSubMenu', {'item': v8, 'rowIndex': rowIndex}); } } else { v2.drawRow(v8, 'highlighted', false); } } }; v2.onRowDragOver = function (rowIndex) { var v4 = this.__dataProvider.getItemAt(rowIndex + this.__vPosition); if (mx.controls.Menu.isItemEnabled(v4)) { super.onRowDragOver(rowIndex); this.onRowRollOver(rowIndex); } }; v2.__onMouseUp = function () { clearInterval(this.dragScrolling); delete this.dragScrolling; delete this.isPressed; if (!this.selectable) { return undefined; } if (this.__wasVisible) { this.hide(); } this.__wasVisible = false; }; v2.setMenuDelay = function (delay, request, args) { if (this.__timer == null) { this.__timer = setInterval(this, 'callMenuDelay', delay, request, args); } else { this.__delayQueue.push({'delay': delay, 'request': request, 'args': args}); } }; v2.callMenuDelay = function (request, args) { this[request](args); this.clearMenuDelay(); }; v2.clearMenuDelay = function (Void) { clearInterval(this.__timer); this.__timer = null; this.runDelayQueue(); }; v2.cancelMenuDelay = function (Void) { var v2 = this.__delayQueue.pop(); this.clearMenuDelay(); }; v2.runDelayQueue = function (Void) { if (this.__delayQueue.length == 0) { return undefined; } var v2 = this.__delayQueue.shift(); var v4 = v2.delay; var v5 = v2.request; var v3 = v2.args; this.setMenuDelay(v4, v5, v3); }; v2.setTimeOut = function (delay, id) { this.clearTimeOut(); this.__timeOut = setInterval(this, 'callTimeOut', delay, id); }; v2.clearTimeOut = function (Void) { clearInterval(this.__timeOut); this.__timeOut = null; }; v2.callTimeOut = function (Void) { var v2 = this.__activeChildren[this.__anchor]; this.clearTimeOut(); if (!this.isMouseOverMenu() && v2) { var v3 = v2.__anchorIndex; var v5 = this.__dataProvider.getItemAt(v3 + this.__vPosition); var v4 = this.rows[v3]; v4.drawRow(v5, 'normal', false); v2.hide(); this.__delayQueue.length = 0; } }; v2.openSubMenu = function (o) { var v3 = this.getRootMenu(); var v5 = this.rows[o.rowIndex]; var v7 = o.item; this.__anchor = v7.getID(); var v6 = this.__anchor; var v2 = v3.__menuCache[v6]; if (v2 == undefined) { v2 = mx.managers.PopUpManager.createPopUp(v3, mx.controls.Menu, false, {'__parentMenu': this, '__anchorIndex': o.rowIndex, 'styleName': v3}, true); v2.labelField = v3.__labelField; v2.labelFunction = v3.__labelFunction; v2.iconField = v3.__iconField; v2.iconFunction = v3.__iconFunction; v2.wasJustCreated = true; v2.cellRenderer = v3.__cellRenderer; v2.rowHeight = v3.__rowHeight; if (v3.__menuCache == undefined) { v3.__menuCache = new Object(); v3.__menuCache[v3.__menuDataProvider.getID()] = v3; } if (this.__activeChildren == undefined) { this.__activeChildren = new Object(); } v3.__menuCache[v6] = v2; this.__activeChildren[v6] = v2; v2.__dataProvider.addItemsAt(0, v7.childNodes); v2.invUpdateSize = true; v2.invalidate(); } v2.__menuBar = this.__menuBar; var v4 = {'x': 0, 'y': 0}; v5.localToGlobal(v4); v5._root.globalToLocal(v4); v2.focusManager.lastFocus = undefined; v2.show(v4.x + v5.__width, v4.y); this.focusManager.lastFocus = undefined; v2.isOpening = false; }; v2.closeSubMenu = function (o) { var v2 = this.__activeChildren[o.id]; v2.hide(); v2.isClosing = false; }; v2.moveSelBy = function (incr) { var v3 = this.getSelectedIndex(); if (v3 == undefined) { v3 = -1; } var v2 = v3 + incr; if (v2 > this.__dataProvider.length - 1) { v2 = 0; } else { if (v2 < 0) { v2 = this.__dataProvider.length - 1; } } this.wasKeySelected = true; this.selectRow(v2 - this.__vPosition, false, false); var v4 = this.__dataProvider.getItemAt(v2 + this.__vPosition); if (v4.attributes.type == 'separator') { this.moveSelBy(incr); } }; v2.keyDown = function (e) { if (this.__lastRowRolledOver != undefined) { this.selectedIndex = this.__lastRowRolledOver; this.__lastRowRolledOver = undefined; } var v2 = this.selectedItem; if (Key.isDown(38)) { var v4 = this.getRootMenu(); var v3 = v4.__menuCache[v2.getID()]; if (v2.hasChildNodes() && v3.visible) { this.supposedToLoseFocus = true; Selection.setFocus(v3); v3.selectedIndex = v3.rows.length - 1; } else { this.moveSelBy(-1); } } if (Key.isDown(40)) { v4 = this.getRootMenu(); v3 = v4.__menuCache[v2.getID()]; if (v2.hasChildNodes() && v3.visible) { this.supposedToLoseFocus = true; Selection.setFocus(v3); v3.selectedIndex = 0; } else { this.moveSelBy(1); } } if (Key.isDown(39)) { if (mx.controls.Menu.isItemEnabled(v2) && v2.hasChildNodes()) { this.openSubMenu({'item': v2, 'rowIndex': this.selectedIndex}); v4 = this.getRootMenu(); v3 = v4.__menuCache[v2.getID()]; this.supposedToLoseFocus = true; Selection.setFocus(v3); v3.selectedIndex = 0; } else { if (this.__menuBar) { this.supposedToLoseFocus = true; Selection.setFocus(this.__menuBar); this.__menuBar.keyDown(e); } } } if (Key.isDown(37)) { if (this.__parentMenu) { this.supposedToLoseFocus = true; this.hide(); Selection.setFocus(this.__parentMenu); } else { if (this.__menuBar) { this.supposedToLoseFocus = true; Selection.setFocus(this.__menuBar); this.__menuBar.keyDown(e); } } } if (Key.isDown(13) || Key.isDown(32)) { if (mx.controls.Menu.isItemEnabled(v2) && v2.hasChildNodes()) { this.openSubMenu({'item': v2, 'rowIndex': this.selectedIndex}); v4 = this.getRootMenu(); v3 = v4.__menuCache[v2.getID()]; this.supposedToLoseFocus = true; Selection.setFocus(v3); v3.selectedIndex = 0; } else { this.onRowRelease(this.selectedIndex); } } if (Key.isDown(27) || Key.isDown(9)) { this.hideAllMenus(); } }; v2.hideAllMenus = function (Void) { (this.getRootMenu()).hide(); }; v2.isMouseOverMenu = function (Void) { var v4 = new Object(); v4.x = _root._xmouse; v4.y = _root._ymouse; _root.localToGlobal(v4); if (this.border_mc.hitTest(v4.x, v4.y)) { return true; } var v5 = this.getRootMenu(); for (var v6 in v5.__menuCache) { var v3 = v5.__menuCache[v6]; if (v3.visible && v3.border_mc.hitTest(v4.x, v4.y)) { return true; } } return false; }; v2.getRootMenu = function (Void) { var v2 = this; while (v2.__parentMenu != undefined) { v2 = v2.__parentMenu; } return v2; }; v1.symbolName = 'Menu'; v1.symbolOwner = mx.controls.Menu; v2.className = 'Menu'; v1.version = '2.0.2.127'; v1.mixit = mx.controls.treeclasses.TreeDataProvider.Initialize(XMLNode); v1.mixit2 = mx.controls.menuclasses.MenuDataProvider.Initialize(XMLNode); v2.__hScrollPolicy = 'off'; v2.__vScrollPolicy = 'off'; v2.__rowRenderer = 'MenuRow'; v2.__rowHeight = 19; v2.__wasVisible = false; v2.__enabled = true; v2.__openDelay = 250; v2.__closeDelay = 250; v2.__delayQueue = new Array(); v2.__iconField = 'icon'; ASSetPropFlags(mx.controls.Menu.prototype, null, 1); } #endinitclip } movieClip 1455 __Packages.mx.managers.PopUpManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.PopUpManager) { var v1 = function () {}; mx.managers.PopUpManager = v1; var v2 = v1.prototype; v1.createModalWindow = function (parent, o, broadcastOutsideEvents) { var v2 = parent.createChildAtDepth('Modal', mx.managers.DepthManager.kTopmost); v2.setDepthBelow(o); o.modalID = v2._name; v2._alpha = _global.style.modalTransparency; v2.tabEnabled = false; if (broadcastOutsideEvents) { v2.onPress = mx.managers.PopUpManager.mixins.onPress; } else { v2.onPress = mx.managers.PopUpManager.mixins.nullFunction; } v2.onRelease = mx.managers.PopUpManager.mixins.nullFunction; v2.resize = mx.managers.PopUpManager.mixins.resize; mx.managers.SystemManager.init(); mx.managers.SystemManager.addEventListener('resize', v2); v2.resize(); v2.useHandCursor = false; v2.popUp = o; o.modalWindow = v2; o.deletePopUp = mx.managers.PopUpManager.mixins.deletePopUp; o.setVisible = mx.managers.PopUpManager.mixins.setVisible; o.getVisible = mx.managers.PopUpManager.mixins.getVisible; o.addProperty('visible', o.getVisible, o.setVisible); }; v1.createPopUp = function (parent, className, modal, initobj, broadcastOutsideEvents) { if (mx.managers.PopUpManager.mixins == undefined) { mx.managers.PopUpManager.mixins = new mx.managers.PopUpManager(); } if (broadcastOutsideEvents == undefined) { broadcastOutsideEvents = false; } var v5 = parent._root; if (v5 == undefined) { v5 = _root; } while (parent != v5) { parent = parent._parent; } initobj.popUp = true; var v4 = parent.createClassChildAtDepth(className, (broadcastOutsideEvents || modal) ? mx.managers.DepthManager.kTopmost : mx.managers.DepthManager.kTop, initobj); var v2 = _root; var v6 = v2.focusManager != undefined; while (v2._parent != undefined) { v2 = v2._parent._root; if (v2.focusManager != undefined) { v6 = true; break; } } if (v6) { v4.createObject('FocusManager', 'focusManager', -1); if (v4._visible == false) { mx.managers.SystemManager.deactivate(v4); } } if (modal) { mx.managers.PopUpManager.createModalWindow(parent, v4, broadcastOutsideEvents); return v4; } if (broadcastOutsideEvents) { v4.mouseListener = new Object(); v4.mouseListener.owner = v4; v4.mouseListener.onMouseDown = mx.managers.PopUpManager.mixins.onMouseDown; Mouse.addListener(v4.mouseListener); } v4.deletePopUp = mx.managers.PopUpManager.mixins.deletePopUp; return v4; }; v2.onPress = function (Void) { var v3 = this.popUp._root; if (v3 == undefined) { v3 = _root; } if (this.popUp.hitTest(v3._xmouse, v3._ymouse, false)) { return undefined; } this.popUp.dispatchEvent({'type': 'mouseDownOutside'}); }; v2.nullFunction = function (Void) {}; v2.resize = function (Void) { var v2 = mx.managers.SystemManager.__get__screen(); this.setSize(v2.width, v2.height); this.move(v2.x, v2.y); }; v2.deletePopUp = function (Void) { if (this.modalWindow != undefined) { this._parent.destroyObject(this.modalWindow._name); } this._parent.destroyObject(this._name); }; v2.setVisible = function (v, noEvent) { super.setVisible(v, noEvent); this.modalWindow._visible = v; }; v2.getVisible = function (Void) { return this._visible; }; v2.onMouseDown = function (Void) { var v3 = this.owner._root; if (v3 == undefined) { v3 = _root; } var v4 = new Object(); v4.x = v3._xmouse; v4.y = v3._ymouse; v3.localToGlobal(v4); if (this.owner.hitTest(v4.x, v4.y, false)) { } else { this.owner.mouseDownOutsideHandler(this.owner); } }; v1.version = '2.0.2.127'; v1.mixins = undefined; ASSetPropFlags(mx.managers.PopUpManager.prototype, null, 1); } #endinitclip } movieClip 379 __Packages.mx.managers.SystemManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.SystemManager) { var v1 = function () {}; mx.managers.SystemManager = v1; var v2 = v1.prototype; v1.init = function (Void) { if (mx.managers.SystemManager._initialized == false) { mx.managers.SystemManager._initialized = true; mx.events.EventDispatcher.initialize(mx.managers.SystemManager); Mouse.addListener(mx.managers.SystemManager); Stage.addListener(mx.managers.SystemManager); mx.managers.SystemManager._xAddEventListener = mx.managers.SystemManager.addEventListener; mx.managers.SystemManager.addEventListener = mx.managers.SystemManager.__addEventListener; mx.managers.SystemManager._xRemoveEventListener = mx.managers.SystemManager.removeEventListener; mx.managers.SystemManager.removeEventListener = mx.managers.SystemManager.__removeEventListener; } }; v1.addFocusManager = function (f) { mx.managers.SystemManager.form = f; f.focusManager.activate(); }; v1.removeFocusManager = function (f) {}; v1.onMouseDown = function (Void) { var v1 = mx.managers.SystemManager.form; v1.focusManager._onMouseDown(); }; v1.onResize = function (Void) { var v7 = Stage.width; var v6 = Stage.height; var v9 = _global.origWidth; var v8 = _global.origHeight; var v3 = Stage.align; var v5 = (v9 - v7) / 2; var v4 = (v8 - v6) / 2; if (v3 == 'T') { v4 = 0; } else { if (v3 == 'B') { v4 = v8 - v6; } else { if (v3 == 'L') { v5 = 0; } else { if (v3 == 'R') { v5 = v9 - v7; } else { if (v3 == 'LT') { v4 = 0; v5 = 0; } else { if (v3 == 'TR') { v4 = 0; v5 = v9 - v7; } else { if (v3 == 'LB') { v4 = v8 - v6; v5 = 0; } else { if (v3 == 'RB') { v4 = v8 - v6; v5 = v9 - v7; } } } } } } } } if (mx.managers.SystemManager.__screen == undefined) { mx.managers.SystemManager.__screen = new Object(); } mx.managers.SystemManager.__screen.x = v5; mx.managers.SystemManager.__screen.y = v4; mx.managers.SystemManager.__screen.width = v7; mx.managers.SystemManager.__screen.height = v6; _root.focusManager.relocate(); mx.managers.SystemManager.dispatchEvent({'type': 'resize'}); }; v1.__get__screen = function () { mx.managers.SystemManager.init(); if (mx.managers.SystemManager.__screen == undefined) { mx.managers.SystemManager.onResize(); } return mx.managers.SystemManager.__screen; }; v1._initialized = false; v1.idleFrames = 0; v1.isMouseDown = false; v1.forms = new Array(); v1.addProperty('screen', v1.__get__screen, function () {}); ASSetPropFlags(mx.managers.SystemManager.prototype, null, 1); } #endinitclip } movieClip 2965 __Packages.MultiLineCell { #initclip if (!_global.MultiLineCell) { var v1 = function () { super(); }; _global.MultiLineCell = v1; _global.MultiLineCell extends mx.core.UIComponent; var v2 = v1.prototype; v2.createChildren = function () { this.multiLineLabel = this.createLabel('multiLineLabel', this.startDepth); var v2 = this.multiLineLabel; v2.styleName = this.listOwner; v2.selectable = false; v2.tabEnabled = false; v2.background = false; v2.border = false; v2.multiline = true; v2.wordWrap = true; }; v2.size = function () { var v2 = this.multiLineLabel; v2.setSize(this.__width, this.__height); }; v2.getPreferredHeight = function () { return this.owner.__height - MultiLineCell.PREFERRED_HEIGHT_OFFSET; }; v2.setValue = function (suggestedValue, item, selected) { if (item == undefined) { this.multiLineLabel.text._visible = false; } this.multiLineLabel.text = suggestedValue; }; v1.PREFERRED_HEIGHT_OFFSET = 4; v1.PREFERRED_WIDTH = 100; v2.startDepth = 1; ASSetPropFlags(_global.MultiLineCell.prototype, null, 1); } #endinitclip } movieClip 2966 __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 } movieClip 376 __Packages.mx.skins.ColoredSkinElement { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.ColoredSkinElement) { var v1 = function () {}; mx.skins.ColoredSkinElement = v1; var v2 = v1.prototype; v2.setColor = function (c) { if (c != undefined) { var v2 = new Color(this); v2.setRGB(c); } }; v2.draw = function (Void) { this.setColor(this.getStyle(this._color)); this.onEnterFrame = undefined; }; v2.invalidateStyle = function (Void) { this.onEnterFrame = this.draw; }; v1.setColorStyle = function (p, colorStyle) { if (p._color == undefined) { p._color = colorStyle; } p.setColor = mx.skins.ColoredSkinElement.mixins.setColor; p.invalidateStyle = mx.skins.ColoredSkinElement.mixins.invalidateStyle; p.draw = mx.skins.ColoredSkinElement.mixins.draw; p.setColor(p.getStyle(colorStyle)); }; v1.mixins = new mx.skins.ColoredSkinElement(); ASSetPropFlags(mx.skins.ColoredSkinElement.prototype, null, 1); } #endinitclip } movieClip 377 __Packages.mx.core.ext.UIObjectExtensions { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ext) { _global.mx.core.ext = new Object(); } if (!_global.mx.core.ext.UIObjectExtensions) { var v1 = function () {}; mx.core.ext.UIObjectExtensions = v1; var v2 = v1.prototype; v1.addGeometry = function (tf, ui) { tf.addProperty('width', ui.__get__width, null); tf.addProperty('height', ui.__get__height, null); tf.addProperty('left', ui.__get__left, null); tf.addProperty('x', ui.__get__x, null); tf.addProperty('top', ui.__get__top, null); tf.addProperty('y', ui.__get__y, null); tf.addProperty('right', ui.__get__right, null); tf.addProperty('bottom', ui.__get__bottom, null); tf.addProperty('visible', ui.__get__visible, ui.__set__visible); }; v1.Extensions = function () { if (mx.core.ext.UIObjectExtensions.bExtended == true) { return true; } mx.core.ext.UIObjectExtensions.bExtended = true; var v6 = mx.core.UIObject.prototype; var v9 = mx.skins.SkinElement.prototype; mx.core.ext.UIObjectExtensions.addGeometry(v9, v6); mx.events.UIEventDispatcher.initialize(v6); var v13 = mx.skins.ColoredSkinElement; mx.styles.CSSTextStyles.addTextStyles(v6); var v5 = MovieClip.prototype; v5.getTopLevel = v6.getTopLevel; v5.createLabel = v6.createLabel; v5.createObject = v6.createObject; v5.createClassObject = v6.createClassObject; v5.createEmptyObject = v6.createEmptyObject; v5.destroyObject = v6.destroyObject; _global.ASSetPropFlags(v5, 'getTopLevel', 1); _global.ASSetPropFlags(v5, 'createLabel', 1); _global.ASSetPropFlags(v5, 'createObject', 1); _global.ASSetPropFlags(v5, 'createClassObject', 1); _global.ASSetPropFlags(v5, 'createEmptyObject', 1); _global.ASSetPropFlags(v5, 'destroyObject', 1); v5.__getTextFormat = v6.__getTextFormat; v5._getTextFormat = v6._getTextFormat; v5.getStyleName = v6.getStyleName; v5.getStyle = v6.getStyle; _global.ASSetPropFlags(v5, '__getTextFormat', 1); _global.ASSetPropFlags(v5, '_getTextFormat', 1); _global.ASSetPropFlags(v5, 'getStyleName', 1); _global.ASSetPropFlags(v5, 'getStyle', 1); var v7 = TextField.prototype; mx.core.ext.UIObjectExtensions.addGeometry(v7, v6); v7.addProperty('enabled', function () { return this.__enabled; }, function (x) { this.__enabled = x; this.invalidateStyle(); }); v7.move = v9.move; v7.setSize = v9.setSize; v7.invalidateStyle = function () { this.invalidateFlag = true; }; v7.draw = function () { if (this.invalidateFlag) { this.invalidateFlag = false; var v2 = this._getTextFormat(); this.setTextFormat(v2); this.setNewTextFormat(v2); this.embedFonts = v2.embedFonts == true; if (this.__text != undefined) { if (this.text == '') { this.text = this.__text; } delete this.__text; } this._visible = true; } }; v7.setColor = function (color) { this.textColor = color; }; v7.getStyle = v5.getStyle; v7.__getTextFormat = v6.__getTextFormat; v7.setValue = function (v) { this.text = v; }; v7.getValue = function () { return this.text; }; v7.addProperty('value', function () { return this.getValue(); }, function (v) { this.setValue(v); }); v7._getTextFormat = function () { var v2 = this.stylecache.tf; if (v2 != undefined) { return v2; } v2 = new TextFormat(); this.__getTextFormat(v2); this.stylecache.tf = v2; if (this.__enabled == false) { if (this.enabledColor == undefined) { var v4 = this.getTextFormat(); this.enabledColor = v4.color; } var v3 = this.getStyle('disabledColor'); v2.color = v3; return v2; } if (this.enabledColor != undefined) { if (v2.color == undefined) { v2.color = this.enabledColor; } } return v2; }; v7.getPreferredWidth = function () { this.draw(); return this.textWidth + 4; }; v7.getPreferredHeight = function () { this.draw(); return this.textHeight + 4; }; TextFormat.prototype.getTextExtent2 = function (s) { var v3 = _root._getTextExtent; if (v3 == undefined) { _root.createTextField('_getTextExtent', -2, 0, 0, 1000, 100); v3 = _root._getTextExtent; v3._visible = false; } _root._getTextExtent.text = s; var v4 = this.align; this.align = 'left'; _root._getTextExtent.setTextFormat(this); this.align = v4; return {'width': v3.textWidth, 'height': v3.textHeight}; }; if (_global.style == undefined) { _global.style = new mx.styles.CSSStyleDeclaration(); _global.cascadingStyles = true; _global.styles = new Object(); _global.skinRegistry = new Object(); if (_global._origWidth == undefined) { _global.origWidth = Stage.width; _global.origHeight = Stage.height; } } var v4 = _root; while (v4._parent != undefined) { v4 = v4._parent; } v4.addProperty('width', function () { return Stage.width; }, null); v4.addProperty('height', function () { return Stage.height; }, null); _global.ASSetPropFlags(v4, 'width', 1); _global.ASSetPropFlags(v4, 'height', 1); return true; }; v1.bExtended = false; v1.UIObjectExtended = mx.core.ext.UIObjectExtensions.Extensions(); v1.UIObjectDependency = mx.core.UIObject; v1.SkinElementDependency = mx.skins.SkinElement; v1.CSSTextStylesDependency = mx.styles.CSSTextStyles; v1.UIEventDispatcherDependency = mx.events.UIEventDispatcher; ASSetPropFlags(mx.core.ext.UIObjectExtensions.prototype, null, 1); } #endinitclip } movieClip 378 __Packages.mx.skins.halo.Defaults { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.Defaults) { var v1 = function () {}; mx.skins.halo.Defaults = v1; var v2 = v1.prototype; v1.setThemeDefaults = function () { var v2 = _global.style; v2.themeColor = 8453965; v2.disabledColor = 8684164; v2.modalTransparency = 0; v2.filled = true; v2.stroked = true; v2.strokeWidth = 1; v2.strokeColor = 0; v2.fillColor = 16777215; v2.repeatInterval = 35; v2.repeatDelay = 500; v2.fontFamily = '_sans'; v2.fontSize = 12; v2.selectionColor = 13500353; v2.rollOverColor = 14942166; v2.useRollOver = true; v2.backgroundDisabledColor = 14540253; v2.selectionDisabledColor = 14540253; v2.selectionDuration = 200; v2.openDuration = 250; v2.borderStyle = 'inset'; v2.color = 734012; v2.textSelectedColor = 24371; v2.textRollOverColor = 2831164; v2.textDisabledColor = 16777215; v2.vGridLines = true; v2.hGridLines = false; v2.vGridLineColor = 6710886; v2.hGridLineColor = 6710886; v2.headerColor = 15395562; v2.indentation = 17; v2.folderOpenIcon = 'TreeFolderOpen'; v2.folderClosedIcon = 'TreeFolderClosed'; v2.defaultLeafIcon = 'TreeNodeIcon'; v2.disclosureOpenIcon = 'TreeDisclosureOpen'; v2.disclosureClosedIcon = 'TreeDisclosureClosed'; v2.popupDuration = 150; v2.todayColor = 6710886; _global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.ScrollSelectList; v2.backgroundColor = 16777215; v2.borderColor = 13290186; v2.borderStyle = 'inset'; _global.styles.ComboBox = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.ComboBox; v2.borderStyle = 'inset'; _global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.NumericStepper; v2.textAlign = 'center'; _global.styles.RectBorder = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.RectBorder; v2.borderColor = 14015965; v2.buttonColor = 7305079; v2.shadowColor = 15658734; v2.highlightColor = 12897484; v2.shadowCapColor = 14015965; v2.borderCapColor = 9542041; var v4 = new Object(); v4.borderColor = 16711680; v4.buttonColor = 16711680; v4.shadowColor = 16711680; v4.highlightColor = 16711680; v4.shadowCapColor = 16711680; v4.borderCapColor = 16711680; mx.core.UIComponent.prototype.origBorderStyles = v4; var v3; _global.styles.TextInput = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.TextInput; v3.backgroundColor = 16777215; v3.borderStyle = 'inset'; _global.styles.TextArea = _global.styles.TextInput; _global.styles.Window = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Window; v3.borderStyle = 'default'; _global.styles.windowStyles = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.windowStyles; v3.fontWeight = 'bold'; _global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.dataGridStyles; v3.fontWeight = 'bold'; _global.styles.Alert = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Alert; v3.borderStyle = 'alert'; _global.styles.ScrollView = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.ScrollView; v3.borderStyle = 'inset'; _global.styles.View = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.View; v3.borderStyle = 'none'; _global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.ProgressBar; v3.color = 11187123; v3.fontWeight = 'bold'; _global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.AccordionHeader; v3.fontWeight = 'bold'; v3.fontSize = '11'; _global.styles.Accordion = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Accordion; v3.borderStyle = 'solid'; v3.backgroundColor = 16777215; v3.borderColor = 9081738; v3.headerHeight = 22; v3.marginBottom = -1; v3.marginTop = -1; v3.marginRight = -1; v3.marginLeft = -1; v3.verticalGap = -1; _global.styles.DateChooser = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.DateChooser; v3.borderColor = 9542041; v3.headerColor = 16777215; _global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.CalendarLayout; v3.fontSize = 10; v3.textAlign = 'right'; v3.color = 2831164; _global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.WeekDayStyle; v3.fontWeight = 'bold'; v3.fontSize = 11; v3.textAlign = 'center'; v3.color = 2831164; _global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.TodayStyle; v3.color = 16777215; _global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.HeaderDateText; v3.fontSize = 12; v3.fontWeight = 'bold'; v3.textAlign = 'center'; }; v2.drawRoundRect = function (x, y, w, h, r, c, alpha, rot, gradient, ratios) { if (typeof r == 'object') { var v18 = r.br; var v16 = r.bl; var v15 = r.tl; var v10 = r.tr; } else { var v10 = r; var v15 = v10; var v16 = v15; var v18 = v16; } if (typeof c == 'object') { if (typeof alpha != 'object') { var v9 = [alpha, alpha]; } else { var v9 = alpha; } if (ratios == undefined) { ratios = [0, 255]; } var v14 = h * 0.7; if (typeof rot != 'object') { var v11 = {'matrixType': 'box', 'x': -v14, 'y': v14, 'w': w * 2, 'h': h * 4, 'r': rot * 0.0174532925199433}; } else { var v11 = rot; } if (gradient == 'radial') { this.beginGradientFill('radial', c, v9, ratios, v11); } else { this.beginGradientFill('linear', c, v9, ratios, v11); } } else { if (c != undefined) { this.beginFill(c, alpha); } } r = v18; var v13 = r - r * Math.SQRT1_2; var v12 = r - r * 0.414213562373095; this.moveTo(x + w, y + h - r); this.lineTo(x + w, y + h - r); this.curveTo(x + w, y + h - v12, x + w - v13, y + h - v13); this.curveTo(x + w - v12, y + h, x + w - r, y + h); r = v16; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x + r, y + h); this.curveTo(x + v12, y + h, x + v13, y + h - v13); this.curveTo(x, y + h - v12, x, y + h - r); r = v15; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x, y + r); this.curveTo(x, y + v12, x + v13, y + v13); this.curveTo(x + v12, y, x + r, y); r = v10; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x + w - r, y); this.curveTo(x + w - v12, y, x + w - v13, y + v13); this.curveTo(x + w, y + v12, x + w, y + r); this.lineTo(x + w, y + h - r); if (c != undefined) { this.endFill(); } }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); mx.skins.halo.Defaults.setThemeDefaults(); mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return true; }; v1.classConstructed = mx.skins.halo.Defaults.classConstruct(); v1.CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; v1.UIObjectDependency = mx.core.UIObject; ASSetPropFlags(mx.skins.halo.Defaults.prototype, null, 1); } #endinitclip } movieClip 380 __Packages.mx.managers.FocusManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.FocusManager) { var v1 = function () { super(); }; mx.managers.FocusManager = v1; var v2 = new mx.core.UIComponent(); mx.managers.FocusManager.prototype = v2; v2.__get__defaultPushButton = function () { return this.__defaultPushButton; }; v2.__set__defaultPushButton = function (x) { if (x != this.__defaultPushButton) { this.__defaultPushButton.__set__emphasized(false); this.__defaultPushButton = x; this.defPushButton = x; x.__set__emphasized(true); } return this.__get__defaultPushButton(); }; v2.getMaxTabIndex = function (o) { var v3 = 0; var v6; for (v6 in o) { var v2 = o[v6]; if (v2._parent == o) { if (v2.tabIndex != undefined) { if (v2.tabIndex > v3) { v3 = v2.tabIndex; } } if (v2.tabChildren == true) { var v4 = this.getMaxTabIndex(v2); if (v4 > v3) { v3 = v4; } } } } return v3; }; v2.getNextTabIndex = function (Void) { return this.getMaxTabIndex(this.form) + 1; }; v2.__get__nextTabIndex = function () { return this.getNextTabIndex(); }; v2.relocate = function (Void) { var v2 = mx.managers.SystemManager.__get__screen(); this.move(v2.x - 1, v2.y - 1); }; v2.init = function (Void) { super.init(); this.tabEnabled = false; this._height = 1; this._width = 1; this._y = -1; this._x = -1; this._alpha = 0; this._parent.focusManager = this; this._parent.tabChildren = true; this._parent.tabEnabled = false; this.form = this._parent; this._parent.addEventListener('hide', this); this._parent.addEventListener('reveal', this); mx.managers.SystemManager.init(); mx.managers.SystemManager.addFocusManager(this.form); this.tabCapture.tabIndex = 0; this.watch('enabled', this.enabledChanged); Selection.addListener(this); this.lastMouse = new Object(); _global.ASSetPropFlags(this._parent, 'focusManager', 1); _global.ASSetPropFlags(this._parent, 'tabChildren', 1); _global.ASSetPropFlags(this._parent, 'tabEnabled', 1); }; v2.enabledChanged = function (id, oldValue, newValue) { this._visible = newValue; return newValue; }; v2.activate = function (Void) { Key.addListener(this); this._visible = true; this.activated = this._visible; if (this.lastFocus != undefined) { this.bNeedFocus = true; if (!mx.managers.SystemManager.isMouseDown) { this.doLater(this, 'restoreFocus'); } } }; v2.deactivate = function (Void) { Key.removeListener(this); this._visible = false; this.activated = this._visible; var v2 = this.getSelectionFocus(); var v3 = this.getActualFocus(v2); if (this.isOurFocus(v3)) { this.lastSelFocus = v2; this.lastFocus = v3; } this.cancelAllDoLaters(); }; v2.isOurFocus = function (o) { if (o.focusManager == this) { return true; } while (o != undefined) { if (o.focusManager != undefined) { return false; } if (o._parent == this._parent) { return true; } o = o._parent; } return false; }; v2.onSetFocus = function (o, n) { if (n == null) { if (this.activated) { this.bNeedFocus = true; } } else { var v2 = this.getFocus(); if (this.isOurFocus(v2)) { this.bNeedFocus = false; this.lastFocus = v2; this.lastSelFocus = n; } } }; v2.restoreFocus = function (Void) { var v2 = this.lastSelFocus.hscroll; if (v2 != undefined) { var v5 = this.lastSelFocus.scroll; var v4 = this.lastSelFocus.background; } this.lastFocus.setFocus(); var v3 = Selection; Selection.setSelection(v3.lastBeginIndex, v3.lastEndIndex); if (v2 != undefined) { this.lastSelFocus.scroll = v5; this.lastSelFocus.hscroll = v2; this.lastSelFocus.background = v4; } }; v2.onUnload = function (Void) { mx.managers.SystemManager.removeFocusManager(this.form); }; v2.setFocus = function (o) { if (o == null) { Selection.setFocus(null); } else { if (o.setFocus == undefined) { Selection.setFocus(o); } else { o.setFocus(); } } }; v2.getActualFocus = function (o) { var v1 = o._parent; while (v1 != undefined) { if (v1.focusTextField != undefined) { while (v1.focusTextField != undefined) { o = v1; v1 = v1._parent; if (v1 == undefined) { return undefined; } if (v1.focusTextField == undefined) { return o; } } } if (v1.tabEnabled != true) { return o; } o = v1; v1 = o._parent; } return undefined; }; v2.getSelectionFocus = function () { var m = Selection.getFocus(); var o = eval(m); return o; }; v2.getFocus = function (Void) { var v2 = this.getSelectionFocus(); return this.getActualFocus(v2); }; v2.walkTree = function (p, index, groupName, dir, lookup, firstChild) { var v5 = true; var v11; for (v11 in p) { var v2 = p[v11]; if (v2._parent == p && v2.enabled != false && v2._visible != false && (v2.tabEnabled == true || v2.tabEnabled != false && (v2.onPress != undefined || v2.onRelease != undefined || v2.onReleaseOutside != undefined || v2.onDragOut != undefined || v2.onDragOver != undefined || v2.onRollOver != undefined || v2.onRollOut != undefined || v2 instanceof TextField))) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; if (v2 != this._lastTarget) { if ((v2.groupName != undefined || groupName != undefined) && v2.groupName == groupName) { continue; } if (v2 instanceof TextField && v2.selectable == false) { continue; } if (v5 || v2.groupName != undefined && v2.groupName == this._firstNode.groupName && v2.selected == true) { if (firstChild) { this._firstNode = v2; firstChild = false; } } if (this._nextIsNext == true) { if (v2.groupName != undefined && v2.groupName == this._nextNode.groupName && v2.selected == true || this._nextNode == undefined && (v2.groupName == undefined || v2.groupName != undefined && v2.groupName != groupName)) { this._nextNode = v2; } } if (v2.groupName == undefined || groupName != v2.groupName) { if (this._lastx.groupName != undefined && v2.groupName == this._lastx.groupName && this._lastx.selected == true) { } else { this._lastx = v2; } } } else { this._prevNode = this._lastx; this._needPrev = false; this._nextIsNext = true; } if (v2.tabIndex != undefined) { if (v2.tabIndex == index) { if (this._foundList[v2._name] == undefined) { if (this._needPrev) { this._prevObj = v2; this._needPrev = false; } this._nextObj = v2; } } if (dir && v2.tabIndex > index) { if (this._nextObj == undefined || this._nextObj.tabIndex > v2.tabIndex && (v2.groupName == undefined || this._nextObj.groupName == undefined || v2.groupName != this._nextObj.groupName) || this._nextObj.groupName != undefined && this._nextObj.groupName == v2.groupName && this._nextObj.selected != true && (v2.selected == true || this._nextObj.tabIndex > v2.tabIndex)) { this._nextObj = v2; } } else { if (!dir && v2.tabIndex < index) { if (this._prevObj == undefined || this._prevObj.tabIndex < v2.tabIndex && (v2.groupName == undefined || this._prevObj.groupName == undefined || v2.groupName != this._prevObj.groupName) || this._prevObj.groupName != undefined && this._prevObj.groupName == v2.groupName && this._prevObj.selected != true && (v2.selected == true || this._prevObj.tabIndex < v2.tabIndex)) { this._prevObj = v2; } } } if (this._firstObj == undefined || v2.tabIndex < this._firstObj.tabIndex && (v2.groupName == undefined || this._firstObj.groupName == undefined || v2.groupName != this._firstObj.groupName) || this._firstObj.groupName != undefined && this._firstObj.groupName == v2.groupName && this._firstObj.selected != true && (v2.selected == true || v2.tabIndex < this._firstObj.tabIndex)) { this._firstObj = v2; } if (this._lastObj == undefined || v2.tabIndex > this._lastObj.tabIndex && (v2.groupName == undefined || this._lastObj.groupName == undefined || v2.groupName != this._lastObj.groupName) || this._lastObj.groupName != undefined && this._lastObj.groupName == v2.groupName && this._lastObj.selected != true && (v2.selected == true || v2.tabIndex > this._lastObj.tabIndex)) { this._lastObj = v2; } } if (v2.tabChildren) { this.getTabCandidateFromChildren(v2, index, groupName, dir, v5 && firstChild); } v5 = false; } else { if (v2._parent == p && v2.tabChildren == true && v2._visible != false) { if (v2 == this._lastTarget) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; if (this._prevNode == undefined) { var v3 = this._lastx; var v7 = false; while (v3 != undefined) { if (v3 == v2) { v7 = true; break; } v3 = v3._parent; } if (v7 == false) { this._prevNode = this._lastx; } } this._needPrev = false; if (this._nextNode == undefined) { this._nextIsNext = true; } } else { if (!(v2.focusManager != undefined && v2.focusManager._parent == v2)) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; this.getTabCandidateFromChildren(v2, index, groupName, dir, v5 && firstChild); } } v5 = false; } } } this._lastNode = this._lastx; if (lookup) { if (p._parent != undefined) { if (p != this._parent) { if (this._prevNode == undefined && dir) { this._needPrev = true; } else { if (this._nextNode == undefined && !dir) { this._nextIsNext = false; } } this._lastTarget = this._lastTarget._parent; this.getTabCandidate(p._parent, index, groupName, dir, true); } } } }; v2.getTabCandidate = function (o, index, groupName, dir, firstChild) { var v2; var v3 = true; if (o == this._parent) { v2 = o; v3 = false; } else { v2 = o._parent; if (v2 == undefined) { v2 = o; v3 = false; } } this.walkTree(v2, index, groupName, dir, v3, firstChild); }; v2.getTabCandidateFromChildren = function (o, index, groupName, dir, firstChild) { this.walkTree(o, index, groupName, dir, false, firstChild); }; v2.getFocusManagerFromObject = function (o) { while (o != undefined) { if (o.focusManager != undefined) { return o.focusManager; } o = o._parent; } return undefined; }; v2.tabHandler = function (Void) { this.bDrawFocus = true; var v5 = this.getSelectionFocus(); var v4 = this.getActualFocus(v5); if (v4 != v5) { v5 = v4; } if (this.getFocusManagerFromObject(v5) != this) { v5 == undefined; } if (v5 == undefined) { v5 = this.form; } else { if (v5.tabIndex != undefined) { if (this._foundList != undefined || this._foundList.tabIndex != v5.tabIndex) { this._foundList = new Object(); this._foundList.tabIndex = v5.tabIndex; } this._foundList[v5._name] = v5; } } var v3 = Key.isDown(16) != true; this._searchKey = getTimer(); this._needPrev = true; this._nextIsNext = false; this._lastx = undefined; this._firstNode = undefined; this._lastNode = undefined; this._nextNode = undefined; this._prevNode = undefined; this._firstObj = undefined; this._lastObj = undefined; this._nextObj = undefined; this._prevObj = undefined; this._lastTarget = v5; var v6 = v5; this.getTabCandidate(v6, (v5.tabIndex == undefined) ? 0 : v5.tabIndex, v5.groupName, v3, true); var v2; if (v3) { if (this._nextObj != undefined) { v2 = this._nextObj; } else { v2 = this._firstObj; } } else { if (this._prevObj != undefined) { v2 = this._prevObj; } else { v2 = this._lastObj; } } if (v2.tabIndex != v5.tabIndex) { this._foundList = new Object(); this._foundList.tabIndex = v2.tabIndex; this._foundList[v2._name] = v2; } else { if (this._foundList == undefined) { this._foundList = new Object(); this._foundList.tabIndex = v2.tabIndex; } this._foundList[v2._name] = v2; } if (v2 == undefined) { if (v3 == false) { if (this._nextNode != undefined) { v2 = this._nextNode; } else { v2 = this._firstNode; } } else { if (this._prevNode == undefined || v5 == this.form) { v2 = this._lastNode; } else { v2 = this._prevNode; } } } if (v2 == undefined) { return undefined; } this.lastTabFocus = v2; this.setFocus(v2); if (v2.emphasized != undefined) { if (this.defPushButton != undefined) { v5 = this.defPushButton; this.defPushButton = v2; v5.emphasized = false; v2.emphasized = true; } } else { if (this.defPushButton != undefined && this.defPushButton != this.__defaultPushButton) { v5 = this.defPushButton; this.defPushButton = this.__defaultPushButton; v5.emphasized = false; this.__defaultPushButton.__set__emphasized(true); } } }; v2.onKeyDown = function (Void) { mx.managers.SystemManager.idleFrames = 0; if (this.defaultPushButtonEnabled) { if (Key.getCode() == 13) { if (this.__get__defaultPushButton() != undefined) { this.doLater(this, 'sendDefaultPushButtonEvent'); } } } }; v2.sendDefaultPushButtonEvent = function (Void) { this.defPushButton.dispatchEvent({'type': 'click'}); }; v2.getMousedComponentFromChildren = function (x, y, o) { for (var v7 in o) { var v2 = o[v7]; if (v2._visible && v2.enabled && v2._parent == o && v2._searchKey != this._searchKey) { v2._searchKey = this._searchKey; if (v2.hitTest(x, y, true)) { if (v2.onPress != undefined || v2.onRelease != undefined) { return v2; } var v3 = this.getMousedComponentFromChildren(x, y, v2); if (v3 != undefined) { return v3; } return v2; } } } return undefined; }; v2.mouseActivate = function (Void) { if (!this.bNeedFocus) { return undefined; } this._searchKey = getTimer(); var v2 = this.getMousedComponentFromChildren(this.lastMouse.x, this.lastMouse.y, this.form); if (v2 instanceof mx.core.UIComponent) { return undefined; } v2 = this.findFocusFromObject(v2); if (v2 == this.lastFocus) { return undefined; } if (v2 == undefined) { this.doLater(this, 'restoreFocus'); return undefined; } var v3 = v2.hscroll; if (v3 != undefined) { var v6 = v2.scroll; var v5 = v2.background; } this.setFocus(v2); var v4 = Selection; Selection.setSelection(v4.lastBeginIndex, v4.lastEndIndex); if (v3 != undefined) { v2.scroll = v6; v2.hscroll = v3; v2.background = v5; } }; v2._onMouseDown = function (Void) { this.bDrawFocus = false; if (this.lastFocus != undefined) { this.lastFocus.drawFocus(false); } mx.managers.SystemManager.idleFrames = 0; var v3 = Selection; v3.lastBeginIndex = Selection.getBeginIndex(); v3.lastEndIndex = Selection.getEndIndex(); this.lastMouse.x = _root._xmouse; this.lastMouse.y = _root._ymouse; _root.localToGlobal(this.lastMouse); }; v2.onMouseUp = function (Void) { if (this._visible) { this.doLater(this, 'mouseActivate'); } }; v2.handleEvent = function (e) { if (e.type == 'reveal') { mx.managers.SystemManager.activate(this.form); } else { mx.managers.SystemManager.deactivate(this.form); } }; v1.enableFocusManagement = function () { if (!mx.managers.FocusManager.initialized) { mx.managers.FocusManager.initialized = true; Object.registerClass('FocusManager', mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, 'focusManager', mx.managers.DepthManager.highestDepth--); } } }; v1.symbolName = 'FocusManager'; v1.symbolOwner = mx.managers.FocusManager; v1.version = '2.0.2.127'; v2.className = 'FocusManager'; v2.bNeedFocus = false; v2.bDrawFocus = false; v2.defaultPushButtonEnabled = true; v2.activated = true; v1.initialized = false; v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; v2.addProperty('defaultPushButton', v2.__get__defaultPushButton, v2.__set__defaultPushButton); v2.addProperty('nextTabIndex', v2.__get__nextTabIndex, function () {}); ASSetPropFlags(mx.managers.FocusManager.prototype, null, 1); } #endinitclip } movieClip 381 __Packages.mx.skins.halo.FocusRect { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.FocusRect) { var v1 = function () { super(); this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; mx.skins.halo.FocusRect = v1; var v2 = new mx.skins.SkinElement(); mx.skins.halo.FocusRect.prototype = v2; v2.draw = function (o) { o.adjustFocusRect(); }; v2.setSize = function (w, h, r, a, rectCol) { this._yscale = 100; this._xscale = 100; this.clear(); if (typeof r == 'object') { r.br = r.br > 2 ? r.br - 2 : 0; r.bl = r.bl > 2 ? r.bl - 2 : 0; r.tr = r.tr > 2 ? r.tr - 2 : 0; r.tl = r.tl > 2 ? r.tl - 2 : 0; this.beginFill(rectCol, a * 0.3); this.drawRoundRect(0, 0, w, h, r); this.drawRoundRect(2, 2, w - 4, h - 4, r); this.endFill(); r.br = r.br > 1 ? r.br + 1 : 0; r.bl = r.bl > 1 ? r.bl + 1 : 0; r.tr = r.tr > 1 ? r.tr + 1 : 0; r.tl = r.tl > 1 ? r.tl + 1 : 0; this.beginFill(rectCol, a * 0.3); this.drawRoundRect(1, 1, w - 2, h - 2, r); r.br = r.br > 1 ? r.br - 1 : 0; r.bl = r.bl > 1 ? r.bl - 1 : 0; r.tr = r.tr > 1 ? r.tr - 1 : 0; r.tl = r.tl > 1 ? r.tl - 1 : 0; this.drawRoundRect(2, 2, w - 4, h - 4, r); this.endFill(); } else { var v5; if (r != 0) { v5 = r - 2; } else { v5 = 0; } this.beginFill(rectCol, a * 0.3); this.drawRoundRect(0, 0, w, h, r); this.drawRoundRect(2, 2, w - 4, h - 4, v5); this.endFill(); this.beginFill(rectCol, a * 0.3); if (r != 0) { v5 = r - 2; r -= 1; } else { v5 = 0; r = 0; } this.drawRoundRect(1, 1, w - 2, h - 2, r); this.drawRoundRect(2, 2, w - 4, h - 4, v5); this.endFill(); } }; v2.handleEvent = function (e) { if (e.type == 'unload') { this._visible = true; } else { if (e.type == 'resize') { e.target.adjustFocusRect(); } else { if (e.type == 'move') { e.target.adjustFocusRect(); } } } }; v1.classConstruct = function () { mx.core.UIComponent.prototype.drawFocus = function (focused) { var v2 = this._parent.focus_mc; if (!focused) { v2._visible = false; this.removeEventListener('unload', v2); this.removeEventListener('move', v2); this.removeEventListener('resize', v2); } else { if (v2 == undefined) { v2 = this._parent.createChildAtDepth('FocusRect', mx.managers.DepthManager.kTop); v2.tabEnabled = false; this._parent.focus_mc = v2; } else { v2._visible = true; } v2.draw(this); if (v2.getDepth() < this.getDepth()) { v2.setDepthAbove(this); } this.addEventListener('unload', v2); this.addEventListener('move', v2); this.addEventListener('resize', v2); } }; mx.core.UIComponent.prototype.adjustFocusRect = function () { var v2 = this.getStyle('themeColor'); if (v2 == undefined) { v2 = 8453965; } var v3 = this._parent.focus_mc; v3.setSize(this.width + 4, this.height + 4, 0, 100, v2); v3.move(this.x - 2, this.y - 2); }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect; mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return true; }; v1.classConstructed = mx.skins.halo.FocusRect.classConstruct(); v1.DefaultsDependency = mx.skins.halo.Defaults; v1.UIComponentDependency = mx.core.UIComponent; ASSetPropFlags(mx.skins.halo.FocusRect.prototype, null, 1); } #endinitclip } movieClip 382 __Packages.mx.managers.OverlappedWindows { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.OverlappedWindows) { var v1 = function () {}; mx.managers.OverlappedWindows = v1; var v2 = v1.prototype; v1.checkIdle = function (Void) { if (mx.managers.SystemManager.idleFrames > 10) { mx.managers.SystemManager.dispatchEvent({'type': 'idle'}); } else { ++mx.managers.SystemManager.idleFrames; } }; v1.__addEventListener = function (e, o, l) { if (e == 'idle') { if (mx.managers.SystemManager.interval == undefined) { mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100); } } mx.managers.SystemManager._xAddEventListener(e, o, l); }; v1.__removeEventListener = function (e, o, l) { if (e == 'idle') { if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) { clearInterval(mx.managers.SystemManager.interval); } } else { mx.managers.SystemManager._xRemoveEventListener(e, o, l); } }; v1.onMouseDown = function (Void) { mx.managers.SystemManager.idleFrames = 0; mx.managers.SystemManager.isMouseDown = true; var v5 = _root; var v3; var v8 = _root._xmouse; var v7 = _root._ymouse; if (mx.managers.SystemManager.form.modalWindow == undefined) { if (mx.managers.SystemManager.forms.length > 1) { var v6 = mx.managers.SystemManager.forms.length; var v4; v4 = 0; while (v4 < v6) { var v2 = mx.managers.SystemManager.forms[v4]; if (v2._visible) { if (v2.hitTest(v8, v7)) { if (v3 == undefined) { v3 = v2.getDepth(); v5 = v2; } else { if (v3 < v2.getDepth()) { v3 = v2.getDepth(); v5 = v2; } } } } ++v4; } if (v5 != mx.managers.SystemManager.form) { mx.managers.SystemManager.activate(v5); } } } var v9 = mx.managers.SystemManager.form; v9.focusManager._onMouseDown(); }; v1.onMouseMove = function (Void) { mx.managers.SystemManager.idleFrames = 0; }; v1.onMouseUp = function (Void) { mx.managers.SystemManager.isMouseDown = false; mx.managers.SystemManager.idleFrames = 0; }; v1.activate = function (f) { if (mx.managers.SystemManager.form != undefined) { if (mx.managers.SystemManager.form != f && mx.managers.SystemManager.forms.length > 1) { var v1 = mx.managers.SystemManager.form; v1.focusManager.deactivate(); } } mx.managers.SystemManager.form = f; f.focusManager.activate(); }; v1.deactivate = function (f) { if (mx.managers.SystemManager.form != undefined) { if (mx.managers.SystemManager.form == f && mx.managers.SystemManager.forms.length > 1) { var v5 = mx.managers.SystemManager.form; v5.focusManager.deactivate(); var v3 = mx.managers.SystemManager.forms.length; var v1; var v2; v1 = 0; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1] == f) { v1 += 1; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1]._visible == true) { v2 = mx.managers.SystemManager.forms[v1]; } ++v1; } mx.managers.SystemManager.form = v2; break; } else { if (mx.managers.SystemManager.forms[v1]._visible == true) { v2 = mx.managers.SystemManager.forms[v1]; } } ++v1; } v5 = mx.managers.SystemManager.form; v5.focusManager.activate(); } } }; v1.addFocusManager = function (f) { mx.managers.SystemManager.forms.push(f); mx.managers.SystemManager.activate(f); }; v1.removeFocusManager = function (f) { var v3 = mx.managers.SystemManager.forms.length; var v1; v1 = 0; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1] == f) { if (mx.managers.SystemManager.form == f) { mx.managers.SystemManager.deactivate(f); } mx.managers.SystemManager.forms.splice(v1, 1); return undefined; } ++v1; } }; v1.enableOverlappedWindows = function () { if (!mx.managers.OverlappedWindows.initialized) { mx.managers.OverlappedWindows.initialized = true; mx.managers.SystemManager.checkIdle = mx.managers.OverlappedWindows.checkIdle; mx.managers.SystemManager.__addEventListener = mx.managers.OverlappedWindows.__addEventListener; mx.managers.SystemManager.__removeEventListener = mx.managers.OverlappedWindows.__removeEventListener; mx.managers.SystemManager.onMouseDown = mx.managers.OverlappedWindows.onMouseDown; mx.managers.SystemManager.onMouseMove = mx.managers.OverlappedWindows.onMouseMove; mx.managers.SystemManager.onMouseUp = mx.managers.OverlappedWindows.onMouseUp; mx.managers.SystemManager.activate = mx.managers.OverlappedWindows.activate; mx.managers.SystemManager.deactivate = mx.managers.OverlappedWindows.deactivate; mx.managers.SystemManager.addFocusManager = mx.managers.OverlappedWindows.addFocusManager; mx.managers.SystemManager.removeFocusManager = mx.managers.OverlappedWindows.removeFocusManager; } }; v1.initialized = false; v1.SystemManagerDependency = mx.managers.SystemManager; ASSetPropFlags(mx.managers.OverlappedWindows.prototype, null, 1); } #endinitclip } movieClip 383 __Packages.mx.styles.CSSSetStyle { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSSetStyle) { var v1 = function () {}; mx.styles.CSSSetStyle = v1; var v2 = v1.prototype; v2._setStyle = function (styleProp, newValue) { this[styleProp] = newValue; if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) { if (styleProp == 'color') { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } } _level0.changeTextStyleInChildren(styleProp); return undefined; } if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } if (styleProp == 'themeColor') { var v7 = mx.styles.StyleManager.colorNames.haloBlue; var v6 = mx.styles.StyleManager.colorNames.haloGreen; var v8 = mx.styles.StyleManager.colorNames.haloOrange; var v4 = {}; v4[v7] = 12188666; v4[v6] = 13500353; v4[v8] = 16766319; var v5 = {}; v5[v7] = 13958653; v5[v6] = 14942166; v5[v8] = 16772787; var v9 = v4[newValue]; var v10 = v5[newValue]; if (v9 == undefined) { v9 = newValue; } if (v10 == undefined) { v10 = newValue; } this.setStyle('selectionColor', v9); this.setStyle('rollOverColor', v10); } _level0.changeColorStyleInChildren(this.styleName, styleProp, newValue); } else { if (styleProp == 'backgroundColor' && isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } _level0.notifyStyleChangeInChildren(this.styleName, styleProp, newValue); } }; v2.changeTextStyleInChildren = function (styleProp) { var v4 = getTimer(); var v5; for (v5 in this) { var v2 = this[v5]; if (v2._parent == this) { if (v2.searchKey != v4) { if (v2.stylecache != undefined) { delete v2.stylecache.tf; delete v2.stylecache[styleProp]; } v2.invalidateStyle(styleProp); v2.changeTextStyleInChildren(styleProp); v2.searchKey = v4; } } } }; v2.changeColorStyleInChildren = function (sheetName, colorStyle, newValue) { var v6 = getTimer(); var v7; for (v7 in this) { var v2 = this[v7]; if (v2._parent == this) { if (v2.searchKey != v6) { if (v2.getStyleName() == sheetName || sheetName == undefined || sheetName == '_global') { if (v2.stylecache != undefined) { delete v2.stylecache[colorStyle]; } if (typeof v2._color == 'string') { if (v2._color == colorStyle) { var v4 = v2.getStyle(colorStyle); if (colorStyle == 'color') { if (this.stylecache.tf.color != undefined) { this.stylecache.tf.color = v4; } } v2.setColor(v4); } } else { if (v2._color[colorStyle] != undefined) { if (typeof v2 != 'movieclip') { v2._parent.invalidateStyle(); } else { v2.invalidateStyle(colorStyle); } } } } v2.changeColorStyleInChildren(sheetName, colorStyle, newValue); v2.searchKey = v6; } } } }; v2.notifyStyleChangeInChildren = function (sheetName, styleProp, newValue) { var v5 = getTimer(); var v6; for (v6 in this) { var v2 = this[v6]; if (v2._parent == this) { if (v2.searchKey != v5) { if (v2.styleName == sheetName || v2.styleName != undefined && typeof v2.styleName == 'movieclip' || sheetName == undefined) { if (v2.stylecache != undefined) { delete v2.stylecache[styleProp]; delete v2.stylecache.tf; } delete v2.enabledColor; v2.invalidateStyle(styleProp); } v2.notifyStyleChangeInChildren(sheetName, styleProp, newValue); v2.searchKey = v5; } } } }; v2.setStyle = function (styleProp, newValue) { if (this.stylecache != undefined) { delete this.stylecache[styleProp]; delete this.stylecache.tf; } this[styleProp] = newValue; if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } if (styleProp == 'themeColor') { var v10 = mx.styles.StyleManager.colorNames.haloBlue; var v9 = mx.styles.StyleManager.colorNames.haloGreen; var v11 = mx.styles.StyleManager.colorNames.haloOrange; var v6 = {}; v6[v10] = 12188666; v6[v9] = 13500353; v6[v11] = 16766319; var v7 = {}; v7[v10] = 13958653; v7[v9] = 14942166; v7[v11] = 16772787; var v12 = v6[newValue]; var v13 = v7[newValue]; if (v12 == undefined) { v12 = newValue; } if (v13 == undefined) { v13 = newValue; } this.setStyle('selectionColor', v12); this.setStyle('rollOverColor', v13); } if (typeof this._color == 'string') { if (this._color == styleProp) { if (styleProp == 'color') { if (this.stylecache.tf.color != undefined) { this.stylecache.tf.color = newValue; } } this.setColor(newValue); } } else { if (this._color[styleProp] != undefined) { this.invalidateStyle(styleProp); } } this.changeColorStyleInChildren(undefined, styleProp, newValue); } else { if (styleProp == 'backgroundColor' && isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } this.invalidateStyle(styleProp); } if (mx.styles.StyleManager.isInheritingStyle(styleProp) || styleProp == 'styleName') { var v8; var v5 = newValue; if (styleProp == 'styleName') { v8 = (typeof newValue == 'string') ? _global.styles[newValue] : v5; v5 = v8.themeColor; if (v5 != undefined) { v8.selectionColor = v5; v8.rollOverColor = v8.selectionColor; } } this.notifyStyleChangeInChildren(undefined, styleProp, newValue); } }; v1.enableRunTimeCSS = function () {}; v1.classConstruct = function () { var v2 = MovieClip.prototype; var v3 = mx.styles.CSSSetStyle.prototype; mx.styles.CSSStyleDeclaration.prototype.setStyle = v3._setStyle; v2.changeTextStyleInChildren = v3.changeTextStyleInChildren; v2.changeColorStyleInChildren = v3.changeColorStyleInChildren; v2.notifyStyleChangeInChildren = v3.notifyStyleChangeInChildren; v2.setStyle = v3.setStyle; _global.ASSetPropFlags(v2, 'changeTextStyleInChildren', 1); _global.ASSetPropFlags(v2, 'changeColorStyleInChildren', 1); _global.ASSetPropFlags(v2, 'notifyStyleChangeInChildren', 1); _global.ASSetPropFlags(v2, 'setStyle', 1); var v4 = TextField.prototype; v4.setStyle = v2.setStyle; v4.changeTextStyleInChildren = v3.changeTextStyleInChildren; return true; }; v1.classConstructed = mx.styles.CSSSetStyle.classConstruct(); v1.CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; ASSetPropFlags(mx.styles.CSSSetStyle.prototype, null, 1); } #endinitclip } movieClip 384 __Packages.mx.core.ext.UIComponentExtensions { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ext) { _global.mx.core.ext = new Object(); } if (!_global.mx.core.ext.UIComponentExtensions) { var v1 = function () {}; mx.core.ext.UIComponentExtensions = v1; var v2 = v1.prototype; v1.Extensions = function () { if (mx.core.ext.UIComponentExtensions.bExtended == true) { return true; } mx.core.ext.UIComponentExtensions.bExtended = true; TextField.prototype.setFocus = function () { Selection.setFocus(this); }; TextField.prototype.onSetFocus = function (oldFocus) { if (this.tabEnabled != false) { if ((this.getFocusManager()).bDrawFocus) { this.drawFocus(true); } } }; TextField.prototype.onKillFocus = function (oldFocus) { if (this.tabEnabled != false) { this.drawFocus(false); } }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager; mx.managers.OverlappedWindows.enableOverlappedWindows(); mx.styles.CSSSetStyle.enableRunTimeCSS(); mx.managers.FocusManager.enableFocusManagement(); }; v1.bExtended = false; v1.UIComponentExtended = mx.core.ext.UIComponentExtensions.Extensions(); v1.UIComponentDependency = mx.core.UIComponent; v1.FocusManagerDependency = mx.managers.FocusManager; v1.OverlappedWindowsDependency = mx.managers.OverlappedWindows; ASSetPropFlags(mx.core.ext.UIComponentExtensions.prototype, null, 1); } #endinitclip } movieClip 385 __Packages.mx.controls.HScrollBar { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.HScrollBar) { var v1 = function () { super(); }; mx.controls.HScrollBar = v1; var v2 = new mx.controls.scrollClasses.ScrollBar(); mx.controls.HScrollBar.prototype = v2; v2.getMinWidth = function (Void) { return this._minHeight; }; v2.getMinHeight = function (Void) { return this._minWidth; }; v2.init = function (Void) { super.init(); this._xscale = -100; this._rotation = -90; }; v2.__get__virtualHeight = function () { return this.__width; }; v2.isScrollBarKey = function (k) { if (k == 37) { this.scrollIt('Line', -1); return true; return super.isScrollBarKey(k); } if (k == 39) { this.scrollIt('Line', 1); return true; } return super.isScrollBarKey(k); }; v1.symbolName = 'HScrollBar'; v1.symbolOwner = mx.core.UIComponent; v1.version = '2.0.2.127'; v2.className = 'HScrollBar'; v2.minusMode = 'Left'; v2.plusMode = 'Right'; v2.minMode = 'AtLeft'; v2.maxMode = 'AtRight'; v2.addProperty('virtualHeight', v2.__get__virtualHeight, function () {}); ASSetPropFlags(mx.controls.HScrollBar.prototype, null, 1); } #endinitclip } movieClip 386 __Packages.mx.controls.Button { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.Button) { var v1 = function () { super(); }; mx.controls.Button = v1; var v2 = new mx.controls.SimpleButton(); mx.controls.Button.prototype = v2; v2.init = function (Void) { super.init(); }; v2.draw = function () { if (this.initializing) { this.labelPath.visible = true; } super.draw(); if (this.initIcon != undefined) { this._setIcon(this.initIcon); } delete this.initIcon; }; v2.onRelease = function (Void) { super.onRelease(); }; v2.createChildren = function (Void) { super.createChildren(); }; v2.setSkin = function (tag, linkageName, initobj) { return super.setSkin(tag, linkageName, initobj); }; v2.viewSkin = function (varName) { var v3 = this.getState() ? 'true' : 'false'; v3 += this.enabled ? this.phase : 'disabled'; super.viewSkin(varName, {'styleName': this, 'borderStyle': v3}); }; v2.invalidateStyle = function (c) { this.labelPath.invalidateStyle(c); super.invalidateStyle(c); }; v2.setColor = function (c) { var v2 = 0; while (v2 < 8) { this[this.idNames[v2]].redraw(true); ++v2; } }; v2.setEnabled = function (enable) { this.labelPath.enabled = enable; super.setEnabled(enable); }; v2.calcSize = function (tag, ref) { if (this.__width == undefined || this.__height == undefined) { return undefined; } if (tag < 7) { ref.setSize(this.__width, this.__height, true); } }; v2.size = function (Void) { this.setState(this.getState()); this.setHitArea(this.__width, this.__height); var v3 = 0; while (v3 < 8) { var v4 = this.idNames[v3]; if (typeof this[v4] == 'movieclip') { this[v4].setSize(this.__width, this.__height, true); } ++v3; } super.size(); }; v2.__set__labelPlacement = function (val) { this.__labelPlacement = val; this.invalidate(); return this.__get__labelPlacement(); }; v2.__get__labelPlacement = function () { return this.__labelPlacement; }; v2.getLabelPlacement = function (Void) { return this.__labelPlacement; }; v2.setLabelPlacement = function (val) { this.__labelPlacement = val; this.invalidate(); }; v2.getBtnOffset = function (Void) { if (this.getState()) { var v2 = this.btnOffset; return v2; } if (this.phase == 'down') { v2 = this.btnOffset; return v2; } v2 = 0; return v2; }; v2.setView = function (offset) { var v16 = offset ? this.btnOffset : 0; var v12 = this.getLabelPlacement(); var v7 = 0; var v6 = 0; var v9 = 0; var v8 = 0; var v5 = 0; var v4 = 0; var v3 = this.labelPath; var v2 = this.iconName; var v15 = v3.textWidth; var v14 = v3.textHeight; var v10 = this.__width - this.borderW - this.borderW; var v11 = this.__height - this.borderW - this.borderW; if (v2 != undefined) { v7 = v2._width; v6 = v2._height; } if (v12 == 'left' || v12 == 'right') { if (v3 != undefined) { v9 = Math.min(v10 - v7, v15 + 5); v3._width = v9; v8 = Math.min(v11, v14 + 5); v3._height = v8; } if (v12 == 'right') { v5 = v7; if (this.centerContent) { v5 += (v10 - v9 - v7) / 2; } v2._x = v5 - v7; } else { v5 = v10 - v9 - v7; if (this.centerContent) { v5 /= 2; } v2._x = v5 + v9; } v4 = 0; v2._y = v4; if (this.centerContent) { v2._y = (v11 - v6) / 2; v4 = (v11 - v8) / 2; } if (!this.centerContent) { v2._y += Math.max(0, (v8 - v6) / 2); } } else { if (v3 != undefined) { v9 = Math.min(v10, v15 + 5); v3._width = v9; v8 = Math.min(v11 - v6, v14 + 5); v3._height = v8; } v5 = (v10 - v9) / 2; v2._x = (v10 - v7) / 2; if (v12 == 'top') { v4 = v11 - v8 - v6; if (this.centerContent) { v4 /= 2; } v2._y = v4 + v8; } else { v4 = v6; if (this.centerContent) { v4 += (v11 - v8 - v6) / 2; } v2._y = v4 - v6; } } var v13 = this.borderW + v16; v3._x = v5 + v13; v3._y = v4 + v13; v2._x += v13; v2._y += v13; }; v2.__set__label = function (lbl) { this.setLabel(lbl); return this.__get__label(); }; v2.setLabel = function (label) { if (label == '') { this.labelPath.removeTextField(); this.refresh(); return undefined; } if (this.labelPath == undefined) { var v2 = this.createLabel('labelPath', 200, label); v2._width = v2.textWidth + 5; v2._height = v2.textHeight + 5; if (this.initializing) { v2.visible = false; } } else { delete this.labelPath.__text; this.labelPath.text = label; this.refresh(); } }; v2.getLabel = function (Void) { return (this.labelPath.__text != undefined) ? this.labelPath.__text : this.labelPath.text; }; v2.__get__label = function () { return this.getLabel(); }; v2._getIcon = function (Void) { return this._iconLinkageName; }; v2.__get__icon = function () { if (this.initializing) { return this.initIcon; } return this._iconLinkageName; }; v2._setIcon = function (linkage) { if (this.initializing) { if (linkage == '') { return undefined; } this.initIcon = linkage; } else { if (linkage == '') { this.removeIcons(); return undefined; } super.changeIcon(0, linkage); super.changeIcon(1, linkage); super.changeIcon(3, linkage); super.changeIcon(4, linkage); super.changeIcon(5, linkage); this._iconLinkageName = linkage; this.refresh(); } }; v2.__set__icon = function (linkage) { this._setIcon(linkage); return this.__get__icon(); }; v2.setHitArea = function (w, h) { if (this.hitArea_mc == undefined) { this.createEmptyObject('hitArea_mc', 100); } var v2 = this.hitArea_mc; v2.clear(); v2.beginFill(16711680); v2.drawRect(0, 0, w, h); v2.endFill(); v2.setVisible(false); }; v1.symbolName = 'Button'; v1.symbolOwner = mx.controls.Button; v2.className = 'Button'; v1.version = '2.0.2.127'; v2.btnOffset = 0; v2._color = 'buttonColor'; v2.__label = 'default value'; v2.__labelPlacement = 'right'; v2.falseUpSkin = 'ButtonSkin'; v2.falseDownSkin = 'ButtonSkin'; v2.falseOverSkin = 'ButtonSkin'; v2.falseDisabledSkin = 'ButtonSkin'; v2.trueUpSkin = 'ButtonSkin'; v2.trueDownSkin = 'ButtonSkin'; v2.trueOverSkin = 'ButtonSkin'; v2.trueDisabledSkin = 'ButtonSkin'; v2.falseUpIcon = ''; v2.falseDownIcon = ''; v2.falseOverIcon = ''; v2.falseDisabledIcon = ''; v2.trueUpIcon = ''; v2.trueDownIcon = ''; v2.trueOverIcon = ''; v2.trueDisabledIcon = ''; v2.clipParameters = {'labelPlacement': 1, 'icon': 1, 'toggle': 1, 'selected': 1, 'label': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters); v2.centerContent = true; v2.borderW = 1; v2.addProperty('icon', v2.__get__icon, v2.__set__icon); v2.addProperty('label', v2.__get__label, v2.__set__label); v2.addProperty('labelPlacement', v2.__get__labelPlacement, v2.__set__labelPlacement); ASSetPropFlags(mx.controls.Button.prototype, null, 1); } #endinitclip } movieClip 387 __Packages.mx.skins.halo.RectBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.RectBorder) { var v1 = function () { super(); }; mx.skins.halo.RectBorder = v1; var v2 = new mx.skins.RectBorder(); mx.skins.halo.RectBorder.prototype = v2; v2.init = function (Void) { this.borderWidths.default = 3; super.init(); }; v2.getBorderMetrics = function (Void) { if (this.offset == undefined) { var v3 = this.getStyle(this.borderStyleName); this.offset = this.borderWidths[v3]; } if (this.getStyle(this.borderStyleName) == 'default' || this.getStyle(this.borderStyleName) == 'alert') { this.__borderMetrics = {'left': 3, 'top': 1, 'right': 3, 'bottom': 3}; return this.__borderMetrics; } return super.getBorderMetrics(); }; v2.drawBorder = function (Void) { var v6 = _global.styles[this.className]; if (v6 == undefined) { v6 = _global.styles.RectBorder; } var v5 = this.getStyle(this.borderStyleName); var v7 = this.getStyle(this.borderColorName); if (v7 == undefined) { v7 = v6[this.borderColorName]; } var v8 = this.getStyle(this.backgroundColorName); if (v8 == undefined) { v8 = v6[this.backgroundColorName]; } var v16 = this.getStyle('backgroundImage'); if (v5 != 'none') { var v14 = this.getStyle(this.shadowColorName); if (v14 == undefined) { v14 = v6[this.shadowColorName]; } var v13 = this.getStyle(this.highlightColorName); if (v13 == undefined) { v13 = v6[this.highlightColorName]; } var v12 = this.getStyle(this.buttonColorName); if (v12 == undefined) { v12 = v6[this.buttonColorName]; } var v11 = this.getStyle(this.borderCapColorName); if (v11 == undefined) { v11 = v6[this.borderCapColorName]; } var v10 = this.getStyle(this.shadowCapColorName); if (v10 == undefined) { v10 = v6[this.shadowCapColorName]; } } this.offset = this.borderWidths[v5]; var v9 = this.offset; var v3 = this.__get__width(); var v4 = this.__get__height(); this.clear(); this._color = undefined; if (v5 == 'none') { } else { if (v5 == 'inset') { this._color = this.colorList; this.draw3dBorder(v11, v12, v7, v13, v14, v10); } else { if (v5 == 'outset') { this._color = this.colorList; this.draw3dBorder(v11, v7, v12, v14, v13, v10); } else { if (v5 == 'alert') { var v15 = this.getStyle('themeColor'); this.drawRoundRect(0, 5, v3, v4 - 5, 5, 6184542, 10); this.drawRoundRect(1, 4, v3 - 2, v4 - 5, 4, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, 3, v15, 50); this.drawRoundRect(3, 1, v3 - 6, v4 - 4, 2, 16777215, 100); } else { if (v5 == 'default') { this.drawRoundRect(0, 5, v3, v4 - 5, {'tl': 5, 'tr': 5, 'br': 0, 'bl': 0}, 6184542, 10); this.drawRoundRect(1, 4, v3 - 2, v4 - 5, {'tl': 4, 'tr': 4, 'br': 0, 'bl': 0}, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, {'tl': 3, 'tr': 3, 'br': 0, 'bl': 0}, [12897484, 11844796], 100, 0, 'radial'); this.drawRoundRect(3, 1, v3 - 6, v4 - 4, {'tl': 2, 'tr': 2, 'br': 0, 'bl': 0}, 16777215, 100); } else { if (v5 == 'dropDown') { this.drawRoundRect(0, 0, v3 + 1, v4, {'tl': 4, 'tr': 0, 'br': 0, 'bl': 4}, [13290186, 7895160], 100, -10, 'linear'); this.drawRoundRect(1, 1, v3 - 1, v4 - 2, {'tl': 3, 'tr': 0, 'br': 0, 'bl': 3}, 16777215, 100); } else { if (v5 == 'menuBorder') { var v15 = this.getStyle('themeColor'); this.drawRoundRect(4, 4, v3 - 2, v4 - 3, 0, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(4, 4, v3 - 1, v4 - 2, 0, 6184542, 10); this.drawRoundRect(0, 0, v3 + 1, v4, 0, [0, 14342874], 100, 250, 'linear'); this.drawRoundRect(0, 0, v3 + 1, v4, 0, v15, 50); this.drawRoundRect(2, 2, v3 - 3, v4 - 4, 0, 16777215, 100); } else { if (v5 == 'comboNonEdit') { } else { this.beginFill(v7); this.drawRect(0, 0, v3, v4); this.drawRect(1, 1, v3 - 1, v4 - 1); this.endFill(); this._color = this.borderColorName; } } } } } } } } if (v8 != undefined) { this.beginFill(v8); this.drawRect(v9, v9, this.__get__width() - v9, this.__get__height() - v9); this.endFill(); } }; v2.draw3dBorder = function (c1, c2, c3, c4, c5, c6) { var v3 = this.__get__width(); var v2 = this.__get__height(); this.beginFill(c1); this.drawRect(0, 0, v3, v2); this.drawRect(1, 0, v3 - 1, v2); this.endFill(); this.beginFill(c2); this.drawRect(1, 0, v3 - 1, 1); this.endFill(); this.beginFill(c3); this.drawRect(1, v2 - 1, v3 - 1, v2); this.endFill(); this.beginFill(c4); this.drawRect(1, 1, v3 - 1, 2); this.endFill(); this.beginFill(c5); this.drawRect(1, v2 - 2, v3 - 1, v2 - 1); this.endFill(); this.beginFill(c6); this.drawRect(1, 2, v3 - 1, v2 - 2); this.drawRect(2, 2, v3 - 2, v2 - 2); this.endFill(); }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); _global.styles.rectBorderClass = mx.skins.halo.RectBorder; _global.skinRegistry.RectBorder = true; return true; }; v1.symbolName = 'RectBorder'; v1.symbolOwner = mx.skins.halo.RectBorder; v1.version = '2.0.2.127'; v2.borderCapColorName = 'borderCapColor'; v2.shadowCapColorName = 'shadowCapColor'; v2.colorList = {'highlightColor': 0, 'borderColor': 0, 'buttonColor': 0, 'shadowColor': 0, 'borderCapColor': 0, 'shadowCapColor': 0}; v2.borderWidths = {'none': 0, 'solid': 1, 'inset': 2, 'outset': 2, 'alert': 3, 'dropDown': 2, 'menuBorder': 2, 'comboNonEdit': 2}; v1.classConstructed = mx.skins.halo.RectBorder.classConstruct(); v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; ASSetPropFlags(mx.skins.halo.RectBorder.prototype, null, 1); } #endinitclip } movieClip 388 __Packages.mx.skins.halo.ButtonSkin { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.ButtonSkin) { var v1 = function () { super(); }; mx.skins.halo.ButtonSkin = v1; var v2 = new mx.skins.RectBorder(); mx.skins.halo.ButtonSkin.prototype = v2; v2.init = function () { super.init(); }; v2.size = function () { this.drawHaloRect(this.__get__width(), this.__get__height()); }; v2.drawHaloRect = function (w, h) { var v6 = this.getStyle('borderStyle'); var v4 = this.getStyle('themeColor'); var v5 = this._parent.emphasized; this.clear(); switch (v6) { case 'falseup': if (v5) { this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 75); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 75); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); } else { this.drawRoundRect(0, 0, w, h, 5, 9542041, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, 'radial'); this.drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, 'radial'); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100); } break; case 'falsedown': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, v4, 20); break; case 'falserollover': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 50); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 50); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case 'falsedisabled': this.drawRoundRect(0, 0, w, h, 5, 13159628, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); this.drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); break; case 'trueup': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 10066329, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16250871, 100); break; case 'truedown': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 10066329, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, v4, 20); break; case 'truerollover': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 50); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 40); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case 'truedisabled': this.drawRoundRect(0, 0, w, h, 5, 13159628, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); this.drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); } }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); _global.skinRegistry.ButtonSkin = true; return true; }; v1.symbolName = 'ButtonSkin'; v1.symbolOwner = mx.skins.halo.ButtonSkin; v2.className = 'ButtonSkin'; v2.backgroundColorName = 'buttonColor'; v1.classConstructed = mx.skins.halo.ButtonSkin.classConstruct(); v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; ASSetPropFlags(mx.skins.halo.ButtonSkin.prototype, null, 1); } #endinitclip } movieClip 389 __Packages.mx.controls.VScrollBar { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.VScrollBar) { var v1 = function () { super(); }; mx.controls.VScrollBar = v1; var v2 = new mx.controls.scrollClasses.ScrollBar(); mx.controls.VScrollBar.prototype = v2; v2.init = function (Void) { super.init(); }; v2.isScrollBarKey = function (k) { if (k == 38) { this.scrollIt('Line', -1); return true; return super.isScrollBarKey(k); } if (k == 40) { this.scrollIt('Line', 1); return true; return super.isScrollBarKey(k); } if (k == 33) { this.scrollIt('Page', -1); return true; return super.isScrollBarKey(k); } if (k == 34) { this.scrollIt('Page', 1); return true; } return super.isScrollBarKey(k); }; v1.symbolName = 'VScrollBar'; v1.symbolOwner = mx.core.UIComponent; v1.version = '2.0.2.127'; v2.className = 'VScrollBar'; v2.minusMode = 'Up'; v2.plusMode = 'Down'; v2.minMode = 'AtTop'; v2.maxMode = 'AtBottom'; ASSetPropFlags(mx.controls.VScrollBar.prototype, null, 1); } #endinitclip } movieClip 437 __Packages.mx.containers.ScrollPane { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.containers) { _global.mx.containers = new Object(); } if (!_global.mx.containers.ScrollPane) { var v1 = function () { super(); }; mx.containers.ScrollPane = v1; var v2 = new mx.core.ScrollView(); mx.containers.ScrollPane.prototype = v2; v2.getBytesTotal = function () { return this._total; }; v2.getBytesLoaded = function () { return this._loaded; }; v2.__set__contentPath = function (scrollableContent) { if (!this.initializing) { if (scrollableContent == undefined) { this.destroyChildAt(0); } else { if (this[mx.core.View.childNameBase + 0] != undefined) { this.destroyChildAt(0); } this.createChild(scrollableContent, 'spContentHolder'); } } this.__scrollContent = scrollableContent; return this.__get__contentPath(); }; v2.__get__contentPath = function () { return this.__scrollContent; }; v2.__get__content = function () { return this.spContentHolder; }; v2.setHPosition = function (position) { if (position <= this.hScroller.maxPos && position >= this.hScroller.minPos) { super.setHPosition(position); this.spContentHolder._x = -position; } }; v2.setVPosition = function (position) { if (position <= this.vScroller.maxPos && position >= this.vScroller.minPos) { super.setVPosition(position); this.spContentHolder._y = -position; } }; v2.__get__vLineScrollSize = function () { return this.__vLineScrollSize; }; v2.__set__vLineScrollSize = function (vLineSize) { this.__vLineScrollSize = vLineSize; this.vScroller.__set__lineScrollSize(vLineSize); return this.__get__vLineScrollSize(); }; v2.__get__hLineScrollSize = function () { return this.__hLineScrollSize; }; v2.__set__hLineScrollSize = function (hLineSize) { this.__hLineScrollSize = hLineSize; this.hScroller.__set__lineScrollSize(hLineSize); return this.__get__hLineScrollSize(); }; v2.__get__vPageScrollSize = function () { return this.__vPageScrollSize; }; v2.__set__vPageScrollSize = function (vPageSize) { this.__vPageScrollSize = vPageSize; this.vScroller.__set__pageScrollSize(vPageSize); return this.__get__vPageScrollSize(); }; v2.__get__hPageScrollSize = function () { return this.__hPageScrollSize; }; v2.__set__hPageScrollSize = function (hPageSize) { this.__hPageScrollSize = hPageSize; this.hScroller.__set__pageScrollSize(hPageSize); return this.__get__hPageScrollSize(); }; v2.__set__hScrollPolicy = function (policy) { this.__hScrollPolicy = policy.toLowerCase(); this.setScrollProperties(this.spContentHolder._width, 1, this.spContentHolder._height, 1); return this.__get__hScrollPolicy(); }; v2.__set__vScrollPolicy = function (policy) { this.__vScrollPolicy = policy.toLowerCase(); this.setScrollProperties(this.spContentHolder._width, 1, this.spContentHolder._height, 1); return this.__get__vScrollPolicy(); }; v2.__get__scrollDrag = function () { return this.__scrollDrag; }; v2.__set__scrollDrag = function (s) { this.__scrollDrag = s; if (this.__scrollDrag) { this.spContentHolder.useHandCursor = true; this.spContentHolder.onPress = function () { this._parent.startDragLoop(); }; this.spContentHolder.tabEnabled = false; this.spContentHolder.onReleaseOutside = function () { delete this.onMouseMove; }; this.spContentHolder.onRelease = this.spContentHolder.onReleaseOutside; this.__scrollDrag = true; } else { delete this.spContentHolder.onPress; this.spContentHolder.tabEnabled = false; this.spContentHolder.tabChildren = true; this.spContentHolder.useHandCursor = false; this.__scrollDrag = false; } return this.__get__scrollDrag(); }; v2.init = function (Void) { super.init(); this.tabEnabled = true; this.keyDown = this._onKeyDown; }; v2.createChildren = function (Void) { super.createChildren(); this.mask_mc._visible = false; this.initializing = false; if (this.__scrollContent != undefined && this.__scrollContent != '') { this.__set__contentPath(this.__scrollContent); } }; v2.size = function (Void) { super.size(); this.setScrollProperties(this.spContentHolder._width, 1, this.spContentHolder._height, 1); this.hPosition = Math.min(this.hPosition, this.__get__maxHPosition()); this.vPosition = Math.min(this.vPosition, this.__get__maxVPosition()); }; v2.setScrollProperties = function (columnCount, columnWidth, rowCount, rowHeight) { super.setScrollProperties(columnCount, columnWidth, rowCount, rowHeight); this.hScroller.__set__lineScrollSize(this.__hLineScrollSize); this.hScroller.__set__pageScrollSize(this.__hPageScrollSize); this.vScroller.__set__lineScrollSize(this.__vLineScrollSize); this.vScroller.__set__pageScrollSize(this.__vPageScrollSize); }; v2.onScroll = function (scrollEvent) { this.spContentHolder._x = -this.__hPosition; this.spContentHolder._y = -this.__vPosition; super.onScroll(scrollEvent); }; v2.childLoaded = function (obj) { super.childLoaded(obj); this.onComplete(); }; v2.onComplete = function (Void) { this.setScrollProperties(this.spContentHolder._width, 1, this.spContentHolder._height, 1); this.hPosition = 0; this.vPosition = 0; this.__set__scrollDrag(this.__scrollDrag); this.invalidate(); }; v2.startDragLoop = function (Void) { this.spContentHolder.lastX = this.spContentHolder._xmouse; this.spContentHolder.lastY = this.spContentHolder._ymouse; this.spContentHolder.onMouseMove = function () { var v5 = this.lastX - this._xmouse; var v4 = this.lastY - this._ymouse; v5 += this._parent.hPosition; v4 += this._parent.vPosition; var v3 = this._parent.getViewMetrics(); var v7 = this._parent.__height - v3.top - v3.bottom; var v6 = this._parent.__width - v3.left - v3.right; this._parent.__hPosition = Math.max(0, Math.min(v5, this._width - v6)); this._parent.__vPosition = Math.max(0, Math.min(v4, this._height - v7)); this._parent.hScroller.scrollPosition = this._parent.__hPosition; this._x = -this._parent.hPosition; this._parent.vScroller.scrollPosition = this._parent.__vPosition; this._y = -this._parent.vPosition; super.dispatchEvent({'type': 'scroll'}); }; }; v2.dispatchEvent = function (o) { o.target = this; this._total = o.total; this._loaded = o.current; super.dispatchEvent(o); }; v2.refreshPane = function (Void) { this.__set__contentPath(this.__scrollContent); }; v2._onKeyDown = function (e) { if (this.hScroller != undefined && this.__hPosition <= this.hScroller.maxPos && this.__hPosition >= this.hScroller.minPos) { if (e.code == 37) { this.hPosition -= this.hLineScrollSize; } else { if (e.code == 39) { this.hPosition += this.hLineScrollSize; } } } if (this.vScroller != undefined && this.__vPosition <= this.vScroller.maxPos && this.__vPosition >= this.vScroller.minPos) { if (e.code == 33) { this.vPosition -= this.vPageScrollSize; } else { if (e.code == 34) { this.vPosition += this.vPageScrollSize; } } if (e.code == 40) { this.vPosition += this.vLineScrollSize; } else { if (e.code == 38) { this.vPosition -= this.vLineScrollSize; } } } if (e.code == 36) { this.vPosition = this.vScroller.minPos; } else { if (e.code == 35) { this.vPosition = this.vScroller.maxPos; } } }; v1.symbolName = 'ScrollPane'; v1.symbolOwner = mx.containers.ScrollPane; v2.className = 'ScrollPane'; v1.version = '2.0.2.127'; v2.__hScrollPolicy = 'auto'; v2.__scrollDrag = false; v2.__vLineScrollSize = 5; v2.__hLineScrollSize = 5; v2.__vPageScrollSize = 20; v2.__hPageScrollSize = 20; v2.clipParameters = {'contentPath': 1, 'scrollDrag': 1, 'hScrollPolicy': 1, 'vScrollPolicy': 1, 'vLineScrollSize': 1, 'hLineScrollSize': 1, 'vPageScrollSize': 1, 'hPageScrollSize': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.containers.ScrollPane.prototype.clipParameters, mx.core.ScrollView.prototype.clipParameters); v2.initializing = true; v2.addProperty('content', v2.__get__content, function () {}); v2.addProperty('contentPath', v2.__get__contentPath, v2.__set__contentPath); v2.addProperty('hLineScrollSize', v2.__get__hLineScrollSize, v2.__set__hLineScrollSize); v2.addProperty('hPageScrollSize', v2.__get__hPageScrollSize, v2.__set__hPageScrollSize); v2.addProperty('hScrollPolicy', function () {}, v2.__set__hScrollPolicy); v2.addProperty('scrollDrag', v2.__get__scrollDrag, v2.__set__scrollDrag); v2.addProperty('vLineScrollSize', v2.__get__vLineScrollSize, v2.__set__vLineScrollSize); v2.addProperty('vPageScrollSize', v2.__get__vPageScrollSize, v2.__set__vPageScrollSize); v2.addProperty('vScrollPolicy', function () {}, v2.__set__vScrollPolicy); ASSetPropFlags(mx.containers.ScrollPane.prototype, null, 1); } #endinitclip } movieClip 668 __Packages.mx.controls.UIScrollBar { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.UIScrollBar) { var v1 = function () { super(); }; mx.controls.UIScrollBar = v1; var v2 = new mx.controls.scrollClasses.ScrollBar(); mx.controls.UIScrollBar.prototype = v2; v2.init = function (Void) { super.init(); this.textField.owner = this; this.__set__horizontal(this.wasHorizontal); if (this.__get__horizontal()) { (this.textField != undefined) ? super.setSize(this.textField._width, 16) : super.setSize(this.__width, this.__height); } else { (this.textField != undefined) ? super.setSize(16, this.textField._height) : super.setSize(this.__width, this.__height); } if (this.__get__horizontal()) { var v3 = this.__width; this.__height = this.__width; this.width = v3; this.__width = 16; } this.textField.onScroller = function () { this.hPosition = this.hscroll; this.vPosition = this.scroll - 1; }; if (this.__get___targetInstanceName() != undefined) { this.setScrollTarget(this.__get___targetInstanceName()); (this.__get___targetInstanceName()).addListener(this); } }; v2.__get___targetInstanceName = function () { return this.textField; }; v2.__get__height = function () { if (this.wasHorizontal) { return this.__width; } else { return this.__height; } }; v2.__get__width = function () { if (this.wasHorizontal) { return this.__height; } else { return this.__width; } }; v2.size = function (Void) { super.size(); this.onTextChanged(); }; v2.draw = function () { super.draw(); }; v2.__set___targetInstanceName = function (t) { if (t == undefined) { this.textField.removeListener(this); delete this.textField[this.__get__horizontal() ? 'hScroller' : 'vScroller']; if (this.textField.hScroller != undefined && this.textField.vScroller != undefined) { this.textField.unwatch('text'); this.textField.unwatch('htmltext'); } } var v3 = this._parent[t]; this.textField = this._parent[t]; this.onTextChanged(); return this.__get___targetInstanceName(); }; v2.setSize = function (w, h) { if (this.__get__horizontal()) { super.setSize(h, w); } else { super.setSize(w, h); } }; v2.onTextChanged = function (Void) { if (this.textField == undefined) { return undefined; } clearInterval(this.synchScroll); if (this.__get__horizontal()) { var v2 = this.textField.hscroll; this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll); this.__set__scrollPosition(Math.min(v2, this.textField.maxhscroll)); } else { var v2 = this.textField.scroll; var v3 = this.textField.bottomScroll - this.textField.scroll; this.setScrollProperties(v3, 1, this.textField.maxscroll); this.__set__scrollPosition(Math.min(v2, this.textField.maxscroll)); } }; v2.__get__horizontal = function () { return this.wasHorizontal; }; v2.__set__horizontal = function (v) { this.wasHorizontal = v; if (v and this.initializing) { if (this._rotation == 90) { return undefined; } this._xscale = -100; this._rotation = -90; } if (!this.initializing) { if (v) { if (this._rotation == 0) { this._rotation = -90; this._xscale = -100; } } else { if (this._rotation == -90) { this._rotation = 0; this._xscale = 100; } } } return this.__get__horizontal(); }; v2.callback = function (prop, oldval, newval) { clearInterval(this.hScroller.synchScroll); clearInterval(this.vScroller.synchScroll); this.hScroller.synchScroll = setInterval(this.hScroller, 'onTextChanged', 50); this.vScroller.synchScroll = setInterval(this.vScroller, 'onTextChanged', 50); return newval; }; v2.setScrollTarget = function (tF) { if (tF == undefined) { this.textField.removeListener(this); delete this.textField[this.__get__horizontal() ? 'hScroller' : 'vScroller']; if (this.textField.hScroller != undefined && this.textField.vScroller != undefined) { this.textField.unwatch('text'); this.textField.unwatch('htmltext'); } } this.textField = undefined; if (!(tF instanceof TextField)) { return undefined; } this.textField = tF; if (this.__get__horizontal()) { this.textField.hScroller = this; this.textField.hScroller.lineScrollSize = 5; } else { this.textField.vScroller = this; this.textField.vScroller.lineScrollSize = 1; } this.onTextChanged(); this.onChanged = function (Void) { this.onTextChanged(); }; this.onScroller = function (Void) { if (!this.isScrolling) { if (!this.horizontal) { this.scrollPosition = this.textField.scroll; } else { this.scrollPosition = this.textField.hscroll; } } }; this.textField.addListener(this); this.textField.watch('text', this.callback); this.textField.watch('htmlText', this.callback); }; v2.scrollHandler = function (Void) { if (this.__get__horizontal()) { var v2 = this.textField.background; this.textField.hscroll = this.scrollPosition; this.textField.background = v2; } else { this.textField.scroll = this.scrollPosition; } }; v2.setEnabled = function (enable) { super.setEnabled(enable); if (enable) { this.textField.addListener(this); } else { this.textField.removeListener(); } }; v2.dispatchScrollEvent = function (detail) { this.dispatchEvent({'type': 'scroll'}); }; v1.symbolName = 'UIScrollBar'; v1.symbolOwner = mx.controls.UIScrollBar; v2.className = 'UIScrollBar'; v2.clipParameters = {'_targetInstanceName': 1, 'horizontal': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.UIScrollBar.prototype.clipParameters); v1.version = '2.0.2.127'; v2.addProperty('_targetInstanceName', v2.__get___targetInstanceName, v2.__set___targetInstanceName); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('horizontal', v2.__get__horizontal, v2.__set__horizontal); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.controls.UIScrollBar.prototype, null, 1); } #endinitclip } movieClip 757 __Packages.mx.controls.TextArea { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.TextArea) { var v1 = function () { super(); }; mx.controls.TextArea = v1; var v2 = new mx.core.ScrollView(); mx.controls.TextArea.prototype = v2; v2.__get__maxChars = function () { return this.label.maxChars; }; v2.__set__maxChars = function (x) { this.label.maxChars = x; return this.__get__maxChars(); }; v2.__get__length = function () { return this.label.length; }; v2.__get__restrict = function () { return this.label.restrict; }; v2.__set__restrict = function (s) { this.label.restrict = (s == '') ? null : s; return this.__get__restrict(); }; v2.__get__wordWrap = function () { return this.label.wordWrap; }; v2.__set__wordWrap = function (s) { this.label.wordWrap = s; this.invalidate(); return this.__get__wordWrap(); }; v2.__get__editable = function () { return this.__editable; }; v2.__set__editable = function (x) { this.__editable = x; this.label.type = x ? 'input' : 'dynamic'; return this.__get__editable(); }; v2.__get__password = function () { return this.label.password; }; v2.__set__password = function (s) { this.label.password = s; return this.__get__password(); }; v2.__get__html = function () { return this.getHtml(); }; v2.__set__html = function (value) { this.setHtml(value); return this.__get__html(); }; v2.getHtml = function () { return this.label.html; }; v2.setHtml = function (value) { if (value != this.label.html) { this.label.html = value; } }; v2.__get__text = function () { return this.getText(); }; v2.__set__text = function (t) { this.setText(t); return this.__get__text(); }; v2.getText = function () { if (this.initializing) { return this.initText; } var v2 = this.label; if (v2.html == true) { return v2.htmlText; } return v2.text; }; v2.setText = function (t) { if (this.initializing) { this.initText = t; } else { var v2 = this.label; if (v2.html == true) { v2.htmlText = t; } else { v2.text = t; } this.invalidate(); } this.dispatchValueChangedEvent(t); }; v2.__get__hPosition = function () { return this.getHPosition(); }; v2.__set__hPosition = function (pos) { this.setHPosition(pos); this.label.hscroll = pos; this.label.background = false; return this.__get__hPosition(); }; v2.__get__vPosition = function () { return this.getVPosition(); }; v2.__set__vPosition = function (pos) { this.setVPosition(pos); this.label.scroll = pos + 1; this.label.background = false; return this.__get__vPosition(); }; v2.__get__maxVPosition = function () { var v2 = this.label.maxscroll - 1; return (v2 == undefined) ? 0 : v2; }; v2.__get__maxHPosition = function () { var v2 = this.label.maxhscroll; return (v2 == undefined) ? 0 : v2; }; v2.init = function (Void) { super.init(); this.label.styleName = this; this._color = mx.core.UIObject.textColorList; this.focusTextField = this.label; this.label.owner = this; this.label.onSetFocus = function (x) { this._parent.onSetFocus(x); }; this.label.onKillFocus = function (x) { this._parent.onKillFocus(x); }; this.label.drawFocus = function (b) { this._parent.drawFocus(b); }; this.label.onChanged = function () { this.owner.adjustScrollBars(); this.owner.dispatchEvent({'type': 'change'}); this.owner.dispatchValueChangedEvent(this.owner.text); }; this.label.onScroller = function () { this.owner.hPosition = this.hscroll; this.owner.vPosition = this.scroll - 1; }; if (this.__get__text() == undefined) { this.__set__text(''); } }; v2.createChildren = function (Void) { super.createChildren(); this.label.autoSize = 'none'; }; v2.layoutContent = function (x, y, totalW, totalH, displayW, displayH) { var v2 = this.label; if (this.tfx != x || this.tfy != y || this.tfw != displayW || this.tfh != displayH) { this.tfx = x; this.tfy = y; this.tfw = displayW; this.tfh = displayH; v2.move(this.tfx, this.tfy); v2.setSize(this.tfw, this.tfh); this.doLater(this, 'adjustScrollBars'); } }; v2.scrollChanged = function (Void) { var v2 = Selection; if (v2.lastBeginIndex != undefined) { this.restoreSelection(); } this.label.background = false; }; v2.onScroll = function (docObj) { var v3 = this.label; super.onScroll(docObj); v3.hscroll = this.__get__hPosition() + 0; v3.scroll = this.__get__vPosition() + 1; this._vpos = v3.scroll; this._hpos = v3.hscroll; v3.background = false; if (this.hookedV != true) { this.vScroller.addEventListener('scrollChanged', this); this.hookedV = true; } if (this.hookedH != true) { this.hScroller.addEventListener('scrollChanged', this); this.hookedH = true; } }; v2.size = function (Void) { var v3 = this.getViewMetrics(); var v7 = v3.left + v3.right; var v4 = v3.top + v3.bottom; var v6 = v3.left; var v5 = v3.top; this.tfx = v6; this.tfy = v5; this.tfw = this.__get__width() - v7; this.tfh = this.__get__height() - v4; super.size(); this.label.move(this.tfx, this.tfy); this.label.setSize(this.tfw, this.tfh); if (this.__get__height() <= 40) { this.hScrollPolicy = 'off'; this.vScrollPolicy = 'off'; } this.doLater(this, 'adjustScrollBars'); }; v2.setEnabled = function (enable) { this.vScroller.enabled = enable; this.hScroller.enabled = enable; this.label.type = (this.__get__editable() == false || enable == false) ? 'dynamic' : 'input'; this.label.selectable = enable; var v3 = this.getStyle(enable ? 'color' : 'disabledColor'); if (v3 == undefined) { v3 = enable ? 0 : 8947848; } this.setColor(v3); }; v2.setColor = function (col) { this.label.textColor = col; }; v2.setFocus = function (Void) { Selection.setFocus(this.label); }; v2.onSetFocus = function (x) { var f = Selection.getFocus(); var o = eval(f); if (o != this.label) { Selection.setFocus(this.label); return undefined; } (this.getFocusManager()).defaultPushButtonEnabled = false; this.addEventListener('keyDown', this); super.onSetFocus(x); }; v2.onKillFocus = function (x) { (this.getFocusManager()).defaultPushButtonEnabled = true; this.removeEventListener('keyDown', this); super.onKillFocus(x); }; v2.restoreSelection = function (x) { var v2 = Selection; Selection.setSelection(v2.lastBeginIndex, v2.lastEndIndex); this.label.scroll = this._vpos; this.label.hscroll = this._hpos; }; v2.getLineOffsets = function (Void) { var v16 = this._getTextFormat(); var v18 = v16.getTextExtent2(this.label.text); var v5 = _root._getTextExtent; v5.setNewTextFormat(v16); var v14 = this.label.wordWrap; var v9 = 0; var v7 = this.label._width - 2 - 2; var v12 = new Array(); var v17 = new String(this.label.text); var v15 = v17.split('\r'); var v11 = 0; while (v11 < v15.length) { v12.push(v9); var v4 = v15[v11]; v5.text = v4; var v13 = Math.ceil(v5.textWidth / v7); var v10 = Math.floor(v4.length / v13); var v3; for (;;) { if (!(v14 && v5.textWidth > v7)) break; v3 = v4.indexOf(' ', v10); var v6; if (v3 == -1) { v3 = v4.lastIndexOf(' '); if (v3 == -1) { v3 = v10; } } v6 = v4.substr(0, v3); v5.text = v6; if (v5.textWidth > v7) { while (v5.textWidth > v7) { var v8 = v3; v3 = v4.lastIndexOf(' ', v3 - 1); if (v3 == -1) { v3 = v8 - 1; } v6 = v4.substr(0, v3); v5.text = v6; } } else { if (v5.textWidth < v7) { var v8 = v3; while (v5.textWidth < v7) { v8 = v3; v3 = v4.indexOf(' ', v3 + 1); if (v3 == -1) { if (v4.indexOf(' ', 0) != -1) { break; } else { v3 = v8 + 1; } } v6 = v4.substr(0, v3); v5.text = v6; } v3 = v8; } } v9 += v3; v12.push(v9 + 1); v4 = v4.substr(v3); if (v4.charAt(0) == ' ') { v4 = v4.substr(1, v4.length - 1); v9 += 1; } v5.text = v4; } v9 += v4.length + 1; ++v11; } return v12; }; v2.keyDown = function (e) { var v5 = e.code; if (v5 == 34) { var v6 = this.label.bottomScroll - this.label.scroll + 1; var v3 = this.getLineOffsets(); var v2 = Math.min(this.label.bottomScroll + 1, this.label.maxscroll); if (v2 == this.label.maxscroll) { var v4 = this.label.length; Selection.setSelection(v4, v4); } else { this.label.scroll = v2; Selection.setSelection(v3[v2 - 1], v3[v2 - 1]); } } else { if (v5 == 33) { var v6 = this.label.bottomScroll - this.label.scroll + 1; var v3 = this.getLineOffsets(); var v2 = this.label.scroll - 1; if (v2 < 1) { Selection.setSelection(0, 0); } else { Selection.setSelection(v3[v2 - 1], v3[v2 - 1]); this.label.scroll = Math.max(v2 - v6, 1); } } } }; v2.draw = function (Void) { var v2 = this.label; var v4 = this.getText(); if (this.initializing) { this.initializing = false; delete this.initText; } var v3 = this._getTextFormat(); v2.embedFonts = v3.embedFonts == true; if (v3 != undefined) { v2.setTextFormat(v3); v2.setNewTextFormat(v3); } v2.multiline = true; v2.wordWrap = this.__get__wordWrap() == true; if (v2.html == true) { v2.setTextFormat(v3); v2.htmlText = v4; } else { v2.text = v4; } v2.type = (this.__get__editable() == true) ? 'input' : 'dynamic'; this.size(); v2.background = false; }; v2.adjustScrollBars = function () { var v2 = this.label; var v4 = v2.bottomScroll - v2.scroll + 1; var v3 = v4 + v2.maxscroll - 1; if (v3 < 1) { v3 = 1; } var v5 = 0; if (v2.textWidth + 5 > v2._width) { if (!v2.wordWrap) { v5 = v2._width + v2.maxhscroll; } } else { v2.hscroll = 0; v2.background = false; } if (v2.height / v4 != Math.round(v2.height / v4)) { --v3; } this.setScrollProperties(v5, 1, v3, v2.height / v4); }; v2.setScrollProperties = function (colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) { super.setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding); if (this.vScroller == undefined) { this.hookedV = false; } if (this.hScroller == undefined) { this.hookedH = false; } }; v2.__get__tabIndex = function () { return this.label.tabIndex; }; v2.__set__tabIndex = function (w) { this.label.tabIndex = w; return this.__get__tabIndex(); }; v2.__set___accProps = function (val) { this.label._accProps = val; return this.__get___accProps(); }; v2.__get___accProps = function () { return this.label._accProps; }; v2.__get__styleSheet = function () { return this.label.styleSheet; }; v2.__set__styleSheet = function (v) { this.label.styleSheet = v; return this.__get__styleSheet(); }; v1.symbolName = 'TextArea'; v1.symbolOwner = mx.controls.TextArea; v1.version = '2.0.2.127'; v2.className = 'TextArea'; v2.initializing = true; v2.clipParameters = {'text': 1, 'wordWrap': 1, 'editable': 1, 'maxChars': 1, 'restrict': 1, 'html': 1, 'password': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextArea.prototype.clipParameters, mx.core.ScrollView.prototype.clipParameters); v2.__vScrollPolicy = 'auto'; v2.__hScrollPolicy = 'auto'; v2.__editable = true; v2.addProperty('_accProps', v2.__get___accProps, v2.__set___accProps); v2.addProperty('editable', v2.__get__editable, v2.__set__editable); v2.addProperty('hPosition', v2.__get__hPosition, v2.__set__hPosition); v2.addProperty('html', v2.__get__html, v2.__set__html); v2.addProperty('length', v2.__get__length, function () {}); v2.addProperty('maxChars', v2.__get__maxChars, v2.__set__maxChars); v2.addProperty('maxHPosition', v2.__get__maxHPosition, function () {}); v2.addProperty('maxVPosition', v2.__get__maxVPosition, function () {}); v2.addProperty('password', v2.__get__password, v2.__set__password); v2.addProperty('restrict', v2.__get__restrict, v2.__set__restrict); v2.addProperty('styleSheet', v2.__get__styleSheet, v2.__set__styleSheet); v2.addProperty('tabIndex', v2.__get__tabIndex, v2.__set__tabIndex); v2.addProperty('text', v2.__get__text, v2.__set__text); v2.addProperty('vPosition', v2.__get__vPosition, v2.__set__vPosition); v2.addProperty('wordWrap', v2.__get__wordWrap, v2.__set__wordWrap); ASSetPropFlags(mx.controls.TextArea.prototype, null, 1); } #endinitclip } movieClip 1023 __Packages.mx.controls.Tree { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.Tree) { var v1 = function () { super(); }; mx.controls.Tree = v1; var v2 = new mx.controls.List(); mx.controls.Tree.prototype = v2; v2.setIcon = function (node, iconID, iconID2) { if (this.nodeIcons == undefined) { this.nodeIcons = new Object(); } if (iconID2 == undefined) { iconID2 = iconID; } this.nodeIcons[node.getID()] = {'iconID': iconID, 'iconID2': iconID2}; var v3 = this.nodeIcons[node.getID()]; this.invUpdateControl = true; this.invalidate(); }; v2.getIsBranch = function (node) { return node.hasChildNodes() || this.branchNodes[node.getID()] != undefined; }; v2.setIsBranch = function (node, branch) { if (this.branchNodes == undefined) { this.branchNodes = new Object(); } if (!branch) { delete this.branchNodes[node.getID()]; } else { this.branchNodes[node.getID()] = true; } if (this.isNodeVisible(node)) { this.invUpdateControl = true; this.invalidate(); } }; v2.getNodeDepth = function (node) { var v3 = 0; var v2 = node; for (;;) { if (!(v2.parentNode != undefined && v2 != this.treeDataProvider)) break; ++v3; v2 = v2.parentNode; } return v3; }; v2.getIsOpen = function (node) { return this.openNodes[node.getID()] == true; }; v2.setIsOpen = function (node, open, animate, fireEvent) { if (!this.getIsBranch(node) || this.getIsOpen(node) == open || this.isOpening) { return undefined; } if (open) { this.openNodes[node.getID()] = open; } if (this.isNodeVisible(node)) { this.nodeList = this.getDisplayList(node, !open); this.rowIndex = this.getDisplayIndex(node) + 1 - this.__vPosition; var v6 = Math.min(this.nodeList.length, this.__rowCount - this.rowIndex); var v13 = this.getStyle('openDuration'); if (animate && this.rowIndex < this.__rowCount && v6 > 0 && v6 < 20 && v13 != 0) { this.tween.endTween(); this.opening = open; this.isOpening = true; var v7 = v6 * this.__rowHeight; var v15 = this.rowIndex; while (v15 < this.__rowCount) { this.rows[v15].__lastY = this.rows[v15]._y; ++v15; } this.maskList = new Array(); this.rowList = new Array(); var v4 = this.__viewMetrics; var v12 = (this.__hScrollPolicy == 'on' || this.__hScrollPolicy == 'auto') ? this.__width + this.__maxHPosition : this.__width - v4.left - v4.right; v15 = 0; while (v15 < v6) { this.maskList[v15] = this.attachMovie('BoundingBox', 'openMask' + v15, 2001 + v15); var v3 = this.maskList[v15]; v3._width = this.__width - v4.left - v4.right; v3._x = v4.left; v3._height = v7; v3._y = this.rows[this.rowIndex]._y; this.rowList[v15] = this.listContent.createObject(this.__rowRenderer, 'treeRow' + this.topRowZ++, this.topRowZ, {'owner': this, 'styleName': this}); var v2 = this.rowList[v15]; v2._x = v4.left; v2.setSize(v12, this.__rowHeight); if (open) { v2.drawRow(this.nodeList[v15], 'normal'); v2._y = this.rows[this.rowIndex]._y - v7 + this.__rowHeight * v15; v2.setMask(v3); } else { var v5 = Math.max(this.__vPosition + this.__rowCount + v15 + this.nodeList.length - v6, this.rowIndex + this.nodeList.length); v2.drawRow(this.__dataProvider.getItemAt(v5), this.getStateAt(v5)); v2._y = this.rows[this.__rowCount - 1]._y + (v15 + 1) * this.__rowHeight; this.rows[this.rowIndex + v15].setMask(v3); } v2.__lastY = v2._y; ++v15; } v13 *= Math.max(v6 / 5, 1); if (fireEvent) { this.eventAfterTween = node; } this.tween = new mx.effects.Tween(this, 0, open ? v7 : -1 * v7, v13, 5); var v16 = this.getStyle('openEasing'); if (v16 != undefined) { this.tween.easingEquation = v16; } } else { this.isOpening = false; if (open) { this.addItemsAt(this.getDisplayIndex(node) + 1, this.nodeList); } else { this.__dataProvider.removeItemsAt(this.getDisplayIndex(node) + 1, this.nodeList.length); } this.invScrollProps = true; if (fireEvent) { this.eventPending = node; } this.invalidate(); } } if (!open) { this.openNodes[node.getID()] = open; } var v15 = this.getDisplayIndex(node); var v14 = this.rows[v15 - this.__vPosition]; v14.drawRow(v14.item, this.getStateAt(v15)); }; v2.onTweenUpdate = function (val) { var v2 = this.rowIndex; while (v2 < this.__rowCount) { this.rows[v2]._y = this.rows[v2].__lastY + val; ++v2; } v2 = 0; while (v2 < this.rowList.length) { this.rowList[v2]._y = this.rowList[v2].__lastY + val; ++v2; } }; v2.onTweenEnd = function (val) { var v2 = this.rowIndex; while (v2 < this.__rowCount) { this.rows[v2]._y = this.rows[v2].__lastY + val; delete this.rows[v2].__lastY; if (v2 >= this.__rowCount - this.rowList.length && this.opening) { this.rows[v2].removeMovieClip(); } ++v2; } v2 = 0; while (v2 < this.rowList.length) { this.rowList[v2]._y = this.rowList[v2].__lastY + val; if (this.opening) { this.rowList[v2].setMask(undefined); } else { this.rows[this.rowIndex + v2].removeMovieClip(); } this.maskList[v2].removeMovieClip(); ++v2; } this.isOpening = false; this.vScroller.__set__scrollPosition(this.__vPosition); if (this.opening) { var v4 = this.rowIndex + this.rowList.length; v2 = this.__rowCount - 1; while (v2 >= v4) { this.rows[v2] = this.rows[v2 - this.rowList.length]; this.rows[v2].rowIndex = v2; --v2; } v2 = this.rowIndex; while (v2 < v4) { this.rows[v2] = this.rowList[v2 - this.rowIndex]; this.rows[v2].rowIndex = v2; ++v2; } this.addItemsAt(this.rowIndex + this.__vPosition, this.nodeList); } else { var v3 = this.__rowCount - this.rowList.length; v2 = this.rowIndex; while (v2 < v3) { this.rows[v2] = this.rows[v2 + this.rowList.length]; this.rows[v2].rowIndex = v2; ++v2; } v2 = v3; while (v2 < this.__rowCount) { this.rows[v2] = this.rowList[v2 - v3]; this.rows[v2].rowIndex = v2; ++v2; } this.__dataProvider.removeItemsAt(this.rowIndex + this.__vPosition, this.nodeList.length); } if (this.eventAfterTween != undefined) { this.eventPending = this.eventAfterTween; this.invalidate(); delete this.eventAfterTween; } delete this.tween; delete this.invUpdateControl; }; v2.size = function (Void) { this.tween.endTween(); super.size(); }; v2.setVPosition = function (pos) { if (this.isOpening) { return undefined; } super.setVPosition(pos); }; v2.onScroll = function (evt) { if (this.isOpening) { return undefined; } super.onScroll(evt); }; v2.addItemsAt = function (index, arr) { var v4 = this.__dataProvider.slice(0, index); var v3 = this.__dataProvider.slice(index); this.__dataProvider = v4.concat(arr, v3); this.__dataProvider.addEventListener('modelChanged', this); this.modelChanged({'eventName': 'addItems', 'firstItem': index, 'lastItem': index + arr.length - 1}); }; v2.setDataProvider = function (dP) { if (this.treeDataProvider != undefined) { this.treeDataProvider.removeEventListener(this); } if (typeof dP == 'string') { dP = new XML(dP); } this.treeDataProvider = dP; this.treeDataProvider.isTreeRoot = true; this.setIsBranch(this.treeDataProvider, true); this.setIsOpen(this.treeDataProvider, true); this.setDisplayIndex(this.treeDataProvider, -1); this.treeDataProvider.addEventListener('modelChanged', this); this.modelChanged({'eventName': 'updateTree'}); }; v2.getDataProvider = function () { return this.treeDataProvider; }; v2.refresh = function () { this.updateControl(); }; v2.addTreeNode = function (label, data) { if (this.treeDataProvider == undefined) { this.setDataProvider(new XML()); } return this.treeDataProvider.addTreeNode(label, data); }; v2.addTreeNodeAt = function (index, label, data) { if (this.treeDataProvider == undefined) { this.setDataProvider(new XML()); } return this.treeDataProvider.addTreeNodeAt(index, label, data); }; v2.getTreeNodeAt = function (index) { return this.treeDataProvider.getTreeNodeAt(index); }; v2.removeTreeNodeAt = function (index) { return this.treeDataProvider.removeTreeNodeAt(index); }; v2.removeAll = function () { return this.treeDataProvider.removeAll(); }; v2.getNodeDisplayedAt = function (index) { return this.__dataProvider.getItemAt(index); }; v2.modelChanged = function (eventObj) { var v6 = eventObj.eventName; if (v6 == 'updateTree') { this.__dataProvider = this.getDisplayList(this.treeDataProvider); this.__dataProvider.addEventListener('modelChanged', this); super.modelChanged({'eventName': 'updateAll'}); } else { if (v6 == 'addNode') { var v8 = eventObj.node; if (this.isNodeVisible(v8)) { if (v8.nextSibling != undefined) { this.setDisplayIndex(v8, this.getDisplayIndex(v8.nextSibling)); } else { if (v8.previousSibling != undefined) { var v7 = this.getDisplayList(v8.previousSibling); if (v7.length > 0) { this.setDisplayIndex(v8, this.getDisplayIndex(v7.pop()) + 1); } else { this.setDisplayIndex(v8, this.getDisplayIndex(v8.previousSibling) + 1); } } else { this.setDisplayIndex(v8, this.getDisplayIndex(v8.parentNode) + 1); } } var v10 = this.getDisplayList(v8); v10.unshift(v8); this.addItemsAt(this.getDisplayIndex(v8), v10); } else { this.invUpdateControl = true; this.invalidate(); } } else { if (v6 == 'removeNode') { var v8 = eventObj.node; var v9 = this.getDisplayIndex(v8); if (v9 != undefined) { var v11 = this.getDisplayList(v8); this.__dataProvider.removeItemsAt(v9, v11.length + 1); } } else { if (v6 == 'addItems') { super.modelChanged(eventObj); var v5 = this.__dataProvider; var v3 = eventObj.firstItem; while (v3 < v5.length) { this.setDisplayIndex(v5[v3], v3); ++v3; } } else { if (v6 == 'removeItems') { var v5 = this.__dataProvider; var v3 = eventObj.firstItem; while (v3 < v5.length) { this.setDisplayIndex(v5[v3], v3); ++v3; } super.modelChanged(eventObj); } else { super.modelChanged(eventObj); } } } } } }; v2.isNodeVisible = function (node) { return this.getDisplayIndex(node) != undefined || this.getDisplayIndex(node.parentNode) != undefined && this.getIsOpen(node.parentNode); }; v2.getFirstVisibleNode = function () { return this.__dataProvider.getItemAt(this.__vPosition); }; v2.setFirstVisibleNode = function (node) { var v2 = this.getDisplayIndex(node); if (v2 == undefined) { return undefined; } this.setVPosition(v2); }; v2.__set__firstVisibleNode = function (node) { this.setFirstVisibleNode(node); return this.__get__firstVisibleNode(); }; v2.__get__firstVisibleNode = function () { return this.getFirstVisibleNode(); }; v2.__set__selectedNode = function (node) { var v2 = this.getDisplayIndex(node); if (v2 >= 0) { this.setSelectedIndex(v2); } return this.__get__selectedNode(); }; v2.__get__selectedNode = function () { return this.getSelectedItem(); }; v2.__set__selectedNodes = function (nodeArray) { var v5 = new Array(); var v3; var v2 = 0; while (v2 < nodeArray.length) { v3 = this.getDisplayIndex(nodeArray[v2]); if (v3 != undefined) { v5.push(v3); } ++v2; } this.setSelectedIndices(v5); return this.__get__selectedNodes(); }; v2.__get__selectedNodes = function () { return this.getSelectedItems(); }; v2.getDisplayList = function (node, removed) { var v5 = new Array(); if (!this.isNodeVisible(node) || !this.getIsOpen(node)) { return v5; } var v6 = this.getDisplayIndex(node); var v3 = new Array(); var v2 = node.firstChild; var v4 = v2 == undefined; while (!v4) { if (removed) { this.setDisplayIndex(v2, undefined); } else { this.setDisplayIndex(v2, ++v6); } v5.push(v2); if (v2.childNodes.length > 0 && this.getIsOpen(v2)) { if (v2.nextSibling != undefined) { v3.push(v2.nextSibling); } v2 = v2.firstChild; } else { if (v2.nextSibling != undefined) { v2 = v2.nextSibling; } else { if (v3.length == 0) { v4 = true; } else { v2 = v3.pop(); } } } } return v5; }; v2.getDisplayIndex = function (node) { return this.nodeIndices[node.getID()]; }; v2.setDisplayIndex = function (node, UID) { this.nodeIndices[node.getID()] = UID; }; v2.keyDown = function (e) { if (this.isOpening) { return undefined; } var v3 = this.__get__selectedNode(); if (e.ctrlKey) { super.keyDown(e); } else { if (e.code == 32) { if (this.getIsBranch(v3)) { var v6 = !this.getIsOpen(v3); this.setIsOpen(v3, v6, true, true); } } else { if (e.code == 37) { if (this.getIsOpen(v3)) { this.setIsOpen(v3, false, true, true); } else { this.__set__selectedNode(v3.parentNode); this.dispatchEvent({'type': 'change'}); var v5 = this.getDisplayIndex(this.__get__selectedNode()); if (v5 < this.__vPosition) { this.setVPosition(v5); } } } else { if (e.code == 39) { if (this.getIsBranch(v3)) { if (this.getIsOpen(v3)) { this.__set__selectedNode(v3.firstChild); this.dispatchEvent({'type': 'change'}); } else { this.setIsOpen(v3, true, true, true); } } } else { super.keyDown(e); } } } } }; v2.init = function () { super.init(); this.openNodes = new Object(); this.nodeIndices = new Object(); }; v2.invalidateStyle = function (propName) { if (this.isNewRowStyle[propName]) { this.invUpdateControl = true; this.invalidate(); } super.invalidateStyle(propName); }; v2.layoutContent = function (x, y, tW, tH, dW, dH) { var v5 = 0; var v6 = 0; var v3 = 0; while (v3 < this.rows.length) { var v4 = this.rows[v3].getDepth(); if (v4 > v5) { v5 = v4; v6 = v3; } ++v3; } var v7 = v5 + this.rows.length - v6; if (this.topRowZ < v7) { this.topRowZ = v7; } super.layoutContent(x, y, tW, tH, dW, dH); }; v2.draw = function (Void) { super.draw(); if (this.eventPending != undefined) { this.dispatchEvent({'type': this.getIsOpen(this.eventPending) ? 'nodeOpen' : 'nodeClose', 'node': this.eventPending}); delete this.eventPending; } }; v1.symbolName = 'Tree'; v1.symbolOwner = mx.controls.Tree; v2.className = 'Tree'; v1.version = '2.0.2.127'; v1.mixIt2 = mx.controls.treeclasses.TreeDataProvider.Initialize(XMLNode); v2.isNewRowStyle = {'depthColors': true, 'indentation': true, 'disclosureOpenIcon': true, 'disclosureClosedIcon': true, 'folderOpenIcon': true, 'folderClosedIcon': true, 'defaultLeafIcon': true}; v2.__rowRenderer = 'TreeRow'; v2.isOpening = false; v2.minScrollInterval = 50; v2.addProperty('firstVisibleNode', v2.__get__firstVisibleNode, v2.__set__firstVisibleNode); v2.addProperty('selectedNode', v2.__get__selectedNode, v2.__set__selectedNode); v2.addProperty('selectedNodes', v2.__get__selectedNodes, v2.__set__selectedNodes); ASSetPropFlags(mx.controls.Tree.prototype, null, 1); } #endinitclip } movieClip 1038 __Packages.mx.controls.treeclasses.TreeRow { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.treeclasses) { _global.mx.controls.treeclasses = new Object(); } if (!_global.mx.controls.treeclasses.TreeRow) { var v1 = function () { super(); }; mx.controls.treeclasses.TreeRow = v1; var v2 = new mx.controls.listclasses.SelectableRow(); mx.controls.treeclasses.TreeRow.prototype = v2; v2.setValue = function (item, state) { this.node = item; var v4 = this.owner.getIsBranch(this.node); super.setValue(this.node, state); if (this.node == undefined) { this.nodeIcon._visible = false; this.disclosure._visible = this.nodeIcon._visible; return undefined; } this.nodeIcon._visible = true; this.open = this.owner.getIsOpen(this.node); var v6 = (this.owner.getNodeDepth(this.node) - 1) * this.getStyle('indentation'); var v5 = this.owner.getStyle(this.open ? 'disclosureOpenIcon' : 'disclosureClosedIcon'); this.disclosure = this.createObject(v5, 'disclosure', 3); this.disclosure.onPress = this.disclosurePress; this.disclosure.useHandCursor = false; this.disclosure._visible = v4; this.disclosure._x = v6 + 4; var v3 = this.owner.nodeIcons[this.node.getID()][this.open ? 'iconID2' : 'iconID']; if (v3 == undefined) { v3 = this.owner.__iconFunction(this.node); } if (v4) { if (v3 == undefined) { v3 = this.owner.getStyle(this.open ? 'folderOpenIcon' : 'folderClosedIcon'); } } else { if (v3 == undefined) { v3 = this.node.attributes[this.owner.iconField]; } if (v3 == undefined) { v3 = this.owner.getStyle('defaultLeafIcon'); } } this.nodeIcon.removeMovieClip(); this.nodeIcon = this.createObject(v3, 'nodeIcon', 20); this.nodeIcon._x = this.disclosure._x + this.disclosure._width + 2; this.cell._x = this.nodeIcon._x + this.nodeIcon._width + 2; this.size(); }; v2.getNormalColor = function () { this.node = this.item; var v6 = super.getNormalColor(); var v7 = this.rowIndex + this.owner.__vPosition; var v5 = this.owner.getColorAt(v7); if (v5 == undefined) { var v4 = this.owner.getStyle('depthColors'); if (v4 == undefined) { return v6; return v5; } var v3 = this.owner.getNodeDepth(this.node); if (v3 == undefined) { v3 = 1; } v5 = v4[(v3 - 1) % v4.length]; } return v5; }; v2.createChildren = function () { super.createChildren(); if (this.disclosure == undefined) { this.createObject('Disclosure', 'disclosure', 3, {'_visible': false}); this.disclosure.onPress = this.disclosurePress; this.disclosure.useHandCursor = false; } }; v2.size = function () { super.size(); this.disclosure._y = (this.__height - this.disclosure._height) / 2; this.nodeIcon._y = (this.__get__height() - this.nodeIcon._height) / 2; this.cell.setSize(this.__width - this.cell._x, this.__height); }; v2.disclosurePress = function () { var v3 = this._parent; var v2 = v3.owner; if (v2.isOpening || !v2.enabled) { return undefined; } var v4 = v3.open ? 90 : 0; v3.open = !this._parent.open; v2.pressFocus(); v2.releaseFocus(); v2.setIsOpen(v3.node, v3.open, true, true); }; v2.indentAdjust = 3; ASSetPropFlags(mx.controls.treeclasses.TreeRow.prototype, null, 1); } #endinitclip } movieClip 1360 __Packages.mx.controls.NumericStepper { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.NumericStepper) { var v1 = function () { super(); }; mx.controls.NumericStepper = v1; var v2 = new mx.core.UIComponent(); mx.controls.NumericStepper.prototype = v2; v2.init = function () { super.init(); this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; this._visible = false; this.tabEnabled = false; this.tabChildren = true; }; v2.setVisible = function (x, noEvent) { super.setVisible(x, noEvent); if (this.initializing) { this.__visible = x; } }; v2.layoutControl = function () { this.nextButton_mc._x = this.__width - this.nextButton_mc.__width; this.nextButton_mc._y = 0; this.prevButton_mc._x = this.__width - this.prevButton_mc.__width; this.prevButton_mc._y = this.__height - this.prevButton_mc.__height; this.inputField.setSize(this.__width - this.nextButton_mc.__width, this.__height); this.StepTrack_mc._width = Math.max(this.nextButton_mc.__width, this.prevButton_mc.__width); this.StepTrack_mc._x = this.__width - this.StepTrack_mc._width; this.StepTrack_mc._height = this.__height - (this.nextButton_mc._height + this.prevButton_mc._height); this.StepTrack_mc._y = this.nextButton_mc.__height; }; v2.createChildren = function () { super.createChildren(); this.addAsset('nextButton_mc', this.skinIDUpArrow); this.addAsset('prevButton_mc', this.skinIDDownArrow); this.addAsset('inputField', this.skinIDInput); this.focusTextField = this.inputField.label; this.createObject('StepTrack', 'StepTrack_mc', 2); this.size(); }; v2.draw = function () { this.prevButton_mc.enabled = this.enabled; this.nextButton_mc.enabled = this.enabled; this.inputField.enabled = this.enabled; this.size(); this.initializing = false; this.__set__visible(this.__visible); }; v2.size = function () { var v2 = this.calcMinHeight(); var v3 = this.calcMinWidth(); if (this.__height < v2) { this.setSize(this.__width, v2); } if (this.__width < v3) { this.setSize(v3, this.__height); } this.layoutControl(); }; v2.calcMinHeight = function () { return 22; }; v2.calcMinWidth = function () { return 40; }; v2.addAsset = function (id, skinID) { var v2 = new Object(); v2.styleName = this; if (skinID == 10) { v2.falseUpSkin = this.upArrowUp; v2.falseOverSkin = this.upArrowOver; v2.falseDownSkin = this.upArrowDown; v2.falseDisabledSkin = this.upArrowDisabled; this.createClassObject(mx.controls.SimpleButton, id, skinID, v2); var v5 = this.nextButton_mc; v5.tabEnabled = false; v5.styleName = this; v5._x = this.__width - v5.__width; v5._y = 0; v5.owner = this; v5.autoRepeat = true; v5.clickHandler = function () { Selection.setSelection(0, 0); }; v5.buttonDownHandler = function () { this.owner.buttonPress(this); }; } else { if (skinID == 11) { v2.falseUpSkin = this.downArrowUp; v2.falseOverSkin = this.downArrowOver; v2.falseDownSkin = this.downArrowDown; v2.falseDisabledSkin = this.downArrowDisabled; this.createClassObject(mx.controls.SimpleButton, id, skinID, v2); var v3 = this.prevButton_mc; v3.tabEnabled = false; v3.styleName = this; v3._x = this.__width - v3.__width; v3._y = this.__height - v3.__height; v3.owner = this; v3.autoRepeat = true; v3.clickHandler = function () { Selection.setSelection(0, 0); }; v3.buttonDownHandler = function () { this.owner.buttonPress(this); }; } else { if (skinID == 9) { this.createClassObject(mx.controls.TextInput, id, skinID); var v4 = this.inputField; v4.styleName = this; v4.setSize(this.__width - this.nextButton_mc.__width, this.__height); v4.restrict = '0-9\\-\\.\\,'; v4.maxChars = this.__maxChars; v4.text = this.value; v4.onSetFocus = function () { this._parent.onSetFocus(); }; v4.onKillFocus = function () { this._parent.onKillFocus(); }; v4.drawFocus = function (b) { this._parent.drawFocus(b); }; v4.onKeyDown = function () { this._parent.onFieldKeyDown(); }; } } } }; v2.setFocus = function () { Selection.setFocus(this.inputField); }; v2.onKillFocus = function () { mx.managers.SystemManager.form.focusManager.defaultPushButtonEnabled = true; super.onKillFocus(); Key.removeListener(this.inputField); if (Number(this.inputField.text) != this.__get__value()) { var v3 = this.checkValidValue(Number(this.inputField.text)); this.inputField.text = v3; this.__set__value(v3); this.dispatchEvent({'type': 'change'}); } }; v2.onSetFocus = function () { super.onSetFocus(); Key.addListener(this.inputField); mx.managers.SystemManager.form.focusManager.defaultPushButtonEnabled = false; }; v2.onFieldKeyDown = function () { var v2 = this.__get__value(); switch (Key.getCode()) { case 40: var v3 = this.__get__value() - this.__get__stepSize(); this.__set__value(v3); if (v2 != this.__get__value()) { this.dispatchEvent({'type': 'change'}); } break; case 38: var v3 = this.__get__stepSize() + this.__get__value(); this.__set__value(v3); if (v2 != this.__get__value()) { this.dispatchEvent({'type': 'change'}); } break; case 36: this.inputField.text = this.minimum; this.__set__value(this.minimum); if (v2 != this.__get__value()) { this.dispatchEvent({'type': 'change'}); } break; case 35: this.inputField.text = this.maximum; this.__set__value(this.maximum); if (v2 != this.__get__value()) { this.dispatchEvent({'type': 'change'}); } break; case 13: this.__set__value(Number(this.inputField.text)); if (v2 == this.__get__value()) break; this.dispatchEvent({'type': 'change'}); } }; v2.__get__nextValue = function () { if (this.checkRange(this.__get__value() + this.__get__stepSize())) { this.__nextValue = this.__get__value() + this.__get__stepSize(); return this.__nextValue; } }; v2.__get__previousValue = function () { if (this.checkRange(this.__value - this.__get__stepSize())) { this.__previousValue = this.__get__value() - this.__get__stepSize(); return this.__previousValue; } }; v2.__set__maxChars = function (num) { this.__maxChars = num; this.inputField.maxChars = this.__maxChars; return this.__get__maxChars(); }; v2.__get__maxChars = function () { return this.__maxChars; }; v2.__get__value = function () { return this.__value; }; v2.__set__value = function (v) { var v2 = this.checkValidValue(v); if (v2 == this.__value) { return undefined; } this.__value = v2; this.inputField.text = this.__value; return this.__get__value(); }; v2.__get__minimum = function () { return this.__minimum; }; v2.__set__minimum = function (v) { this.__minimum = v; return this.__get__minimum(); }; v2.__get__maximum = function () { return this.__maximum; }; v2.__set__maximum = function (v) { this.__maximum = v; return this.__get__maximum(); }; v2.__get__stepSize = function () { return this.__stepSize; }; v2.__set__stepSize = function (v) { this.__stepSize = v; return this.__get__stepSize(); }; v2.onFocus = function () {}; v2.buttonPress = function (button) { var v2 = this.__get__value(); if (button._name == 'nextButton_mc') { this.value += this.stepSize; } else { this.value -= this.stepSize; } if (v2 != this.__get__value()) { this.dispatchEvent({'type': 'change'}); Selection.setSelection(0, 0); } }; v2.checkRange = function (v) { return v >= this.__get__minimum() and v <= this.__get__maximum(); }; v2.checkValidValue = function (val) { var v7 = val / this.__get__stepSize(); var v9 = Math.floor(v7); var v2 = this.__get__stepSize(); var v6 = this.__get__minimum(); var v5 = this.__get__maximum(); if (val > v6 and val < v5) { if (v7 - v9 == 0) { return val; } else { var v8 = Math.floor(val / v2); var v4 = v8 * v2; if (val - v4 >= v2 / 2 && v5 >= v4 + v2 && v6 <= v4 - v2 || val + v2 == v5 && v5 - v4 - v2 > 1.0e-014) { v4 += v2; } return v4; } } else { if (val >= v5) { return v5; } else { return v6; } } }; v2.onLabelChanged = function (o) { var v2 = this.checkValidValue(Number(o.__get__text())); o.__set__text(v2); this.__set__value(v2); }; v2.__get__tabIndex = function () { return this.inputField.tabIndex; }; v2.__set__tabIndex = function (w) { this.inputField.tabIndex = w; return this.__get__tabIndex(); }; v1.symbolName = 'NumericStepper'; v1.symbolOwner = mx.controls.NumericStepper; v1.version = '2.0.2.127'; v2.className = 'NumericStepper'; v2.upArrowUp = 'StepUpArrowUp'; v2.upArrowDown = 'StepUpArrowDown'; v2.upArrowOver = 'StepUpArrowOver'; v2.upArrowDisabled = 'StepUpArrowDisabled'; v2.downArrowUp = 'StepDownArrowUp'; v2.downArrowDown = 'StepDownArrowDown'; v2.downArrowOver = 'StepDownArrowOver'; v2.downArrowDisabled = 'StepDownArrowDisabled'; v2.skinIDUpArrow = 10; v2.skinIDDownArrow = 11; v2.skinIDInput = 9; v2.initializing = true; v2.__visible = true; v2.__minimum = 0; v2.__maximum = 10; v2.__stepSize = 1; v2.__value = 0; v2.__nextValue = 0; v2.__previousValue = 0; v2.clipParameters = {'minimum': 1, 'maximum': 1, 'stepSize': 1, 'value': 1, 'maxChars': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.NumericStepper.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters); v2.addProperty('maxChars', v2.__get__maxChars, v2.__set__maxChars); v2.addProperty('maximum', v2.__get__maximum, v2.__set__maximum); v2.addProperty('minimum', v2.__get__minimum, v2.__set__minimum); v2.addProperty('nextValue', v2.__get__nextValue, function () {}); v2.addProperty('previousValue', v2.__get__previousValue, function () {}); v2.addProperty('stepSize', v2.__get__stepSize, v2.__set__stepSize); v2.addProperty('tabIndex', v2.__get__tabIndex, v2.__set__tabIndex); v2.addProperty('value', v2.__get__value, v2.__set__value); ASSetPropFlags(mx.controls.NumericStepper.prototype, null, 1); } #endinitclip } movieClip 1405 __Packages.mx.controls.CheckBox { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.CheckBox) { var v1 = function () { super(); }; mx.controls.CheckBox = v1; var v2 = new mx.controls.Button(); mx.controls.CheckBox.prototype = v2; v2.onRelease = function () { super.onRelease(); }; v2.init = function () { super.init(); }; v2.size = function () { super.size(); }; v2.__get__emphasized = function () { return undefined; }; v2.calcPreferredHeight = function () { var v5 = this._getTextFormat(); var v3 = (v5.getTextExtent2(this.labelPath.text)).height; var v4 = this.iconName._height; var v2 = 0; if (this.__labelPlacement == 'left' || this.__labelPlacement == 'right') { v2 = Math.max(v3, v4); return Math.max(14, v2); } v2 = v3 + v4; return Math.max(14, v2); }; v2.__set__toggle = function (v) { return this.__get__toggle(); }; v2.__get__toggle = function () {}; v2.__set__icon = function (v) { return this.__get__icon(); }; v2.__get__icon = function () {}; v1.symbolName = 'CheckBox'; v1.symbolOwner = mx.controls.CheckBox; v1.version = '2.0.2.127'; v2.className = 'CheckBox'; v2.ignoreClassStyleDeclaration = {'Button': 1}; v2.btnOffset = 0; v2.__toggle = true; v2.__selected = false; v2.__labelPlacement = 'right'; v2.__label = 'CheckBox'; v2.falseUpSkin = ''; v2.falseDownSkin = ''; v2.falseOverSkin = ''; v2.falseDisabledSkin = ''; v2.trueUpSkin = ''; v2.trueDownSkin = ''; v2.trueOverSkin = ''; v2.trueDisabledSkin = ''; v2.falseUpIcon = 'CheckFalseUp'; v2.falseDownIcon = 'CheckFalseDown'; v2.falseOverIcon = 'CheckFalseOver'; v2.falseDisabledIcon = 'CheckFalseDisabled'; v2.trueUpIcon = 'CheckTrueUp'; v2.trueDownIcon = 'CheckTrueDown'; v2.trueOverIcon = 'CheckTrueOver'; v2.trueDisabledIcon = 'CheckTrueDisabled'; v2.clipParameters = {'label': 1, 'labelPlacement': 1, 'selected': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.CheckBox.prototype.clipParameters, mx.controls.Button.prototype.clipParameters); v2.centerContent = false; v2.borderW = 0; v2.addProperty('emphasized', v2.__get__emphasized, function () {}); v2.addProperty('icon', v2.__get__icon, v2.__set__icon); v2.addProperty('toggle', v2.__get__toggle, v2.__set__toggle); ASSetPropFlags(mx.controls.CheckBox.prototype, null, 1); } #endinitclip } movieClip 1440 __Packages.mx.controls.ComboBase { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.ComboBase) { var v1 = function () { super(); this.getValue = this._getValue; }; mx.controls.ComboBase = v1; var v2 = new mx.core.UIComponent(); mx.controls.ComboBase.prototype = v2; v2.init = function () { super.init(); this.tabEnabled = !this._editable; this.tabChildren = this._editable; this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; v2.createChildren = function () { var v3 = new Object(); v3.styleName = this; if (this.downArrow_mc == undefined) { v3.falseUpSkin = this.downArrowUpName; v3.falseOverSkin = this.downArrowOverName; v3.falseDownSkin = this.downArrowDownName; v3.falseDisabledSkin = this.downArrowDisabledName; v3.validateNow = true; v3.tabEnabled = false; this.createClassObject(mx.controls.SimpleButton, 'downArrow_mc', 19, v3); this.downArrow_mc.buttonDownHandler = this.onDownArrow; this.downArrow_mc.useHandCursor = false; this.downArrow_mc.onPressWas = this.downArrow_mc.onPress; this.downArrow_mc.onPress = function () { this.trackAsMenuWas = this.trackAsMenu; this.trackAsMenu = true; if (!this._editable) { this._parent.text_mc.trackAsMenu = this.trackAsMenu; } this.onPressWas(); }; this.downArrow_mc.onDragOutWas = this.downArrow_mc.onDragOut; this.downArrow_mc.onDragOut = function () { this.trackAsMenuWas = this.trackAsMenu; this.trackAsMenu = false; if (!this._editable) { this._parent.text_mc.trackAsMenu = this.trackAsMenu; } this.onDragOutWas(); }; this.downArrow_mc.onDragOverWas = this.downArrow_mc.onDragOver; this.downArrow_mc.onDragOver = function () { this.trackAsMenu = this.trackAsMenuWas; if (!this._editable) { this._parent.text_mc.trackAsMenu = this.trackAsMenu; } this.onDragOverWas(); }; } if (this.border_mc == undefined) { v3.tabEnabled = false; this.createClassObject(_global.styles.rectBorderClass, 'border_mc', 17, v3); this.border_mc.move(0, 0); this.__border = this.border_mc; } v3.borderStyle = 'none'; v3.readOnly = !this._editable; v3.tabEnabled = this._editable; if (this.text_mc == undefined) { this.createClassObject(mx.controls.TextInput, 'text_mc', 18, v3); this.text_mc.move(0, 0); this.text_mc.addEnterEvents(); this.text_mc.enterHandler = this._enterHandler; this.text_mc.changeHandler = this._changeHandler; this.text_mc.oldOnSetFocus = this.text_mc.onSetFocus; this.text_mc.onSetFocus = function () { this.oldOnSetFocus(); this._parent.onSetFocus(); }; this.text_mc.__set__restrict('^'); this.text_mc.oldOnKillFocus = this.text_mc.onKillFocus; this.text_mc.onKillFocus = function (n) { this.oldOnKillFocus(n); this._parent.onKillFocus(n); }; this.text_mc.drawFocus = function (b) { this._parent.drawFocus(b); }; delete this.text_mc.borderStyle; } this.focusTextField = this.text_mc; this.text_mc.owner = this; this.layoutChildren(this.__width, this.__height); }; v2.onKillFocus = function () { super.onKillFocus(); Key.removeListener(this.text_mc); (this.getFocusManager()).defaultPushButtonEnabled = true; }; v2.onSetFocus = function () { super.onSetFocus(); (this.getFocusManager()).defaultPushButtonEnabled = false; Key.addListener(this.text_mc); }; v2.setFocus = function () { if (this._editable) { Selection.setFocus(this.text_mc); } else { Selection.setFocus(this); } }; v2.setSize = function (w, h, noEvent) { super.setSize(w, (h == undefined) ? this.__get__height() : h, noEvent); }; v2.setEnabled = function (enabledFlag) { super.setEnabled(enabledFlag); this.downArrow_mc.enabled = enabledFlag; this.text_mc.enabled = enabledFlag; }; v2.setEditable = function (e) { this._editable = e; if (this.wrapDownArrowButton == false) { if (e) { this.border_mc.borderStyle = 'inset'; this.text_mc.borderStyle = 'inset'; mx.controls.ComboBase.symbolName = 'ComboBox'; this.invalidateStyle(); } else { this.border_mc.borderStyle = 'comboNonEdit'; this.text_mc.borderStyle = 'dropDown'; mx.controls.ComboBase.symbolName = 'DropDown'; this.invalidateStyle(); } } this.tabEnabled = !e; this.tabChildren = e; this.text_mc.tabEnabled = e; if (e) { delete this.text_mc.onPress; delete this.text_mc.onRelease; delete this.text_mc.onReleaseOutside; delete this.text_mc.onDragOut; delete this.text_mc.onDragOver; delete this.text_mc.onRollOver; delete this.text_mc.onRollOut; } else { this.text_mc.onPress = function () { this._parent.downArrow_mc.onPress(); }; this.text_mc.onRelease = function () { this._parent.downArrow_mc.onRelease(); }; this.text_mc.onReleaseOutside = function () { this._parent.downArrow_mc.onReleaseOutside(); }; this.text_mc.onDragOut = function () { this._parent.downArrow_mc.onDragOut(); }; this.text_mc.onDragOver = function () { this._parent.downArrow_mc.onDragOver(); }; this.text_mc.onRollOver = function () { this._parent.downArrow_mc.onRollOver(); }; this.text_mc.onRollOut = function () { this._parent.downArrow_mc.onRollOut(); }; this.text_mc.useHandCursor = false; } }; v2.__get__editable = function () { return this._editable; }; v2.__set__editable = function (e) { this.setEditable(e); return this.__get__editable(); }; v2._getValue = function () { return this._editable ? this.text_mc.getText() : this.DSgetValue(); }; v2.draw = function () { this.downArrow_mc.draw(); this.border_mc.draw(); }; v2.size = function () { this.layoutChildren(this.__width, this.__height); }; v2.setTheme = function (t) { this.downArrowUpName = t + 'downArrow' + 'Up_mc'; this.downArrowDownName = t + 'downArrow' + 'Down_mc'; this.downArrowDisabledName = t + 'downArrow' + 'Disabled_mc'; }; v2.__get__text = function () { return this.text_mc.getText(); }; v2.__set__text = function (t) { this.setText(t); return this.__get__text(); }; v2.setText = function (t) { this.text_mc.setText(t); }; v2.__get__textField = function () { return this.text_mc; }; v2.__get__restrict = function () { return this.text_mc.__get__restrict(); }; v2.__set__restrict = function (w) { this.text_mc.__set__restrict(w); return this.__get__restrict(); }; v2.invalidateStyle = function () { this.downArrow_mc.invalidateStyle(); this.text_mc.invalidateStyle(); this.border_mc.invalidateStyle(); }; v2.layoutChildren = function (w, h) { if (this.downArrow_mc == undefined) { return undefined; } if (this.wrapDownArrowButton) { var v2 = this.border_mc.__get__borderMetrics(); this.downArrow_mc._height = h - v2.top - v2.bottom; this.downArrow_mc._width = this.downArrow_mc._height; this.downArrow_mc.move(w - this.downArrow_mc._width - v2.right, v2.top); this.border_mc.setSize(w, h); this.text_mc.setSize(w - this.downArrow_mc._width, h); } else { this.downArrow_mc.move(w - this.downArrow_mc._width, 0); this.border_mc.setSize(w - this.downArrow_mc.width, h); this.text_mc.setSize(w - this.downArrow_mc._width, h); this.downArrow_mc._height = this.height; } }; v2._changeHandler = function (obj) {}; v2._enterHandler = function (obj) { var v2 = this._parent; obj.target = v2; v2.dispatchEvent(obj); }; v2.__get__tabIndex = function () { return this.text_mc.__get__tabIndex(); }; v2.__set__tabIndex = function (w) { this.text_mc.__set__tabIndex(w); return this.__get__tabIndex(); }; v1.mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.ComboBase); v1.symbolName = 'ComboBase'; v1.symbolOwner = mx.controls.ComboBase; v1.version = '2.0.2.127'; v2._editable = false; v2.downArrowUpName = 'ScrollDownArrowUp'; v2.downArrowDownName = 'ScrollDownArrowDown'; v2.downArrowOverName = 'ScrollDownArrowOver'; v2.downArrowDisabledName = 'ScrollDownArrowDisabled'; v2.wrapDownArrowButton = true; v2.DSgetValue = mx.controls.listclasses.DataSelector.prototype.getValue; v2.multipleSelection = false; v2.addProperty('editable', v2.__get__editable, v2.__set__editable); v2.addProperty('restrict', v2.__get__restrict, v2.__set__restrict); v2.addProperty('tabIndex', v2.__get__tabIndex, v2.__set__tabIndex); v2.addProperty('text', v2.__get__text, v2.__set__text); v2.addProperty('textField', v2.__get__textField, function () {}); ASSetPropFlags(mx.controls.ComboBase.prototype, null, 1); } #endinitclip } movieClip 1441 __Packages.mx.controls.ComboBox { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.ComboBox) { var v1 = function () { super(); }; mx.controls.ComboBox = v1; var v2 = new mx.controls.ComboBase(); mx.controls.ComboBox.prototype = v2; v2.init = function () { super.init(); }; v2.createChildren = function () { super.createChildren(); this.__set__editable(this.editable); if (this.__labels.length > 0) { var v6 = new Array(); var v3 = 0; while (v3 < (this.__get__labels()).length) { v6.addItem({'label': (this.__get__labels())[v3], 'data': this.data[v3]}); ++v3; } this.setDataProvider(v6); } this.__set__dropdownWidth((typeof this.__dropdownWidth == 'number') ? this.__dropdownWidth : this.__width); if (!this._editable) { this.selectedIndex = 0; } this.initializing = false; }; v2.onKillFocus = function (n) { if (this._showingDropdown && n != null) { this.displayDropdown(false); } super.onKillFocus(); }; v2.getDropdown = function () { if (this.initializing) { return undefined; } if (!this.hasDropdown()) { var v3 = new Object(); v3.styleName = this; if (this.dropdownBorderStyle != undefined) { v3.borderStyle = this.dropdownBorderStyle; } v3._visible = false; this.__dropdown = mx.managers.PopUpManager.createPopUp(this, mx.controls.List, false, v3, true); this.__dropdown.scroller.mask.removeMovieClip(); if (this.dataProvider == undefined) { this.dataProvider = new Array(); } this.__dropdown.setDataProvider(this.dataProvider); this.__dropdown.selectMultiple = false; this.__dropdown.rowCount = this.__rowCount; this.__dropdown.selectedIndex = this.selectedIndex; this.__dropdown.vScrollPolicy = 'auto'; this.__dropdown.labelField = this.__labelField; this.__dropdown.labelFunction = this.__labelFunction; this.__dropdown.owner = this; this.__dropdown.changeHandler = this._changeHandler; this.__dropdown.scrollHandler = this._scrollHandler; this.__dropdown.itemRollOverHandler = this._itemRollOverHandler; this.__dropdown.itemRollOutHandler = this._itemRollOutHandler; this.__dropdown.resizeHandler = this._resizeHandler; this.__dropdown.mouseDownOutsideHandler = function (eventObj) { var v3 = this.owner; var v4 = new Object(); v4.x = v3._root._xmouse; v4.y = v3._root._ymouse; v3._root.localToGlobal(v4); if (v3.hitTest(v4.x, v4.y, false)) { } else { if (!this.wrapDownArrowButton && this.owner.downArrow_mc.hitTest(_root._xmouse, _root._ymouse, false)) { } else { v3.displayDropdown(false); } } }; this.__dropdown.onTweenUpdate = function (v) { this._y = v; }; this.__dropdown.setSize(this.__dropdownWidth, this.__dropdown.height); this.createObject('BoundingBox', 'mask', 20); this.mask._y = this.border_mc.height; this.mask._width = this.__dropdownWidth; this.mask._height = this.__dropdown.height; this.mask._visible = false; this.__dropdown.setMask(this.mask); } return this.__dropdown; }; v2.setSize = function (w, h, noEvent) { super.setSize(w, h, noEvent); this.__dropdownWidth = w; this.__dropdown.rowHeight = h; this.__dropdown.setSize(this.__dropdownWidth, this.__dropdown.height); }; v2.setEditable = function (e) { super.setEditable(e); if (e) { this.text_mc.setText(''); } else { this.text_mc.setText(this.__get__selectedLabel()); } }; v2.__get__labels = function () { return this.__labels; }; v2.__set__labels = function (lbls) { this.__labels = lbls; this.setDataProvider(lbls); return this.__get__labels(); }; v2.getLabelField = function () { return this.__labelField; }; v2.__get__labelField = function () { return this.getLabelField(); }; v2.setLabelField = function (s) { this.__labelField = s; this.__dropdown.labelField = this.__labelField; this.text_mc.setText(this.__get__selectedLabel()); }; v2.__set__labelField = function (s) { this.setLabelField(s); return this.__get__labelField(); }; v2.getLabelFunction = function () { return this.__labelFunction; }; v2.__get__labelFunction = function () { return this.getLabelFunction(); }; v2.__set__labelFunction = function (f) { this.__labelFunction = f; this.__dropdown.labelFunction = this.__labelFunction; this.text_mc.setText(this.__get__selectedLabel()); return this.__get__labelFunction(); }; v2.setSelectedItem = function (v) { super.setSelectedItem(v); this.__dropdown.selectedItem = v; this.text_mc.setText(this.__get__selectedLabel()); }; v2.setSelectedIndex = function (v) { super.setSelectedIndex(v); this.__dropdown.selectedIndex = v; if (v != undefined) { this.text_mc.setText(this.__get__selectedLabel()); } this.dispatchValueChangedEvent(this.getValue()); }; v2.setRowCount = function (count) { if (isNaN(count)) { return undefined; } this.__rowCount = count; this.__dropdown.setRowCount(count); }; v2.__get__rowCount = function () { return Math.max(1, Math.min(this.length, this.__rowCount)); }; v2.__set__rowCount = function (v) { this.setRowCount(v); return this.__get__rowCount(); }; v2.setDropdownWidth = function (w) { this.__dropdownWidth = w; this.__dropdown.setSize(w, this.__dropdown.height); }; v2.__get__dropdownWidth = function () { return this.__dropdownWidth; }; v2.__set__dropdownWidth = function (v) { this.setDropdownWidth(v); return this.__get__dropdownWidth(); }; v2.__get__dropdown = function () { return this.getDropdown(); }; v2.setDataProvider = function (dp) { super.setDataProvider(dp); this.__dropdown.setDataProvider(dp); if (!this._editable) { this.selectedIndex = 0; } }; v2.open = function () { this.displayDropdown(true); }; v2.close = function () { this.displayDropdown(false); }; v2.__get__selectedLabel = function () { var v2 = this.selectedItem; if (v2 == undefined) { return ''; } else { if (this.__get__labelFunction() != undefined) { return (this.__get__labelFunction())(v2); } else { if (typeof v2 != 'object') { return v2; } else { if (v2[this.__get__labelField()] != undefined) { return v2[this.__get__labelField()]; } else { if (v2.label != undefined) { return v2.label; } else { var v3 = ' '; for (var v4 in v2) { if (v4 != '__ID__') { v3 = v2[v4] + ', ' + v3; } } v3 = v3.substring(0, v3.length - 3); return v3; } } } } } }; v2.hasDropdown = function () { return this.__dropdown != undefined && this.__dropdown.valueOf() != undefined; }; v2.tweenEndShow = function (value) { this._y = value; this.isPressed = true; this.owner.dispatchEvent({'type': 'open', 'target': this.owner}); }; v2.tweenEndHide = function (value) { this._y = value; this.__set__visible(false); this.owner.dispatchEvent({'type': 'close', 'target': this.owner}); }; v2.displayDropdown = function (show) { if (show == this._showingDropdown) { return undefined; } var v3 = new Object(); v3.x = 0; v3.y = this.height; this.localToGlobal(v3); if (show) { this.__selectedIndexOnDropdown = this.selectedIndex; this.__initialSelectedIndexOnDropdown = this.selectedIndex; this.getDropdown(); var v2 = this.__dropdown; v2.isPressed = true; v2.rowCount = this.rowCount; v2.visible = show; v2._parent.globalToLocal(v3); v2.onTweenEnd = this.tweenEndShow; var v5; var v8; if (v3.y + v2.height > Stage.height) { v5 = v3.y - this.__get__height(); v8 = v5 - v2.height; this.mask._y = -v2.height; } else { v5 = v3.y - v2.height; v8 = v3.y; this.mask._y = this.border_mc.height; } var v6 = v2.selectedIndex; if (v6 == undefined) { v6 = 0; } var v4 = v2.vPosition; v4 = v6 - 1; v4 = Math.min(Math.max(v4, 0), v2.length - v2.rowCount); v2.vPosition = v4; v2.move(v3.x, v5); v2.tween = new mx.effects.Tween(this.__dropdown, v5, v8, this.getStyle('openDuration')); } else { this.__dropdown._parent.globalToLocal(v3); delete this.__dropdown.dragScrolling; this.__dropdown.onTweenEnd = this.tweenEndHide; this.__dropdown.tween = new mx.effects.Tween(this.__dropdown, this.__dropdown._y, v3.y - this.__dropdown.height, this.getStyle('openDuration')); if (this.__initialSelectedIndexOnDropdown != this.selectedIndex) { this.dispatchChangeEvent(undefined, this.__initialSelectedIndexOnDropdown, this.selectedIndex); } } var v9 = this.getStyle('openEasing'); if (v9 != undefined) { this.__dropdown.tween.easingEquation = v9; } this._showingDropdown = show; }; v2.onDownArrow = function () { this._parent.displayDropdown(!this._parent._showingDropdown); }; v2.keyDown = function (e) { if (e.ctrlKey && e.code == 40) { this.displayDropdown(true); } else { if (e.ctrlKey && e.code == 38) { this.displayDropdown(false); this.dispatchChangeEvent(undefined, this.__selectedIndexOnDropdown, this.selectedIndex); } else { if (e.code == 27) { this.displayDropdown(false); } else { if (e.code == 13) { if (this._showingDropdown) { this.selectedIndex = this.__dropdown.selectedIndex; this.displayDropdown(false); } } else { if (!this._editable || e.code == 38 || e.code == 40 || e.code == 33 || e.code == 34) { this.selectedIndex = +this.selectedIndex; this.bInKeyDown = true; var v3 = this.__get__dropdown(); v3.keyDown(e); this.bInKeyDown = false; this.selectedIndex = this.__dropdown.selectedIndex; } } } } } }; v2.invalidateStyle = function (styleProp) { this.__dropdown.invalidateStyle(styleProp); super.invalidateStyle(styleProp); }; v2.changeTextStyleInChildren = function (styleProp) { if ((this.__get__dropdown()).stylecache != undefined) { delete (this.__get__dropdown()).stylecache[styleProp]; delete (this.__get__dropdown()).stylecache.tf; } this.__dropdown.changeTextStyleInChildren(styleProp); super.changeTextStyleInChildren(styleProp); }; v2.changeColorStyleInChildren = function (sheetName, styleProp, newValue) { if ((this.__get__dropdown()).stylecache != undefined) { delete (this.__get__dropdown()).stylecache[styleProp]; delete (this.__get__dropdown()).stylecache.tf; } this.__dropdown.changeColorStyleInChildren(sheetName, styleProp, newValue); super.changeColorStyleInChildren(sheetName, styleProp, newValue); }; v2.notifyStyleChangeInChildren = function (sheetName, styleProp, newValue) { if ((this.__get__dropdown()).stylecache != undefined) { delete (this.__get__dropdown()).stylecache[styleProp]; delete (this.__get__dropdown()).stylecache.tf; } this.__dropdown.notifyStyleChangeInChildren(sheetName, styleProp, newValue); super.notifyStyleChangeInChildren(sheetName, styleProp, newValue); }; v2.onUnload = function () { this.__dropdown.removeMovieClip(); }; v2._resizeHandler = function () { var v2 = this.owner; v2.mask._width = this.width; v2.mask._height = this.height; }; v2._changeHandler = function (obj) { var v2 = this.owner; var v3 = v2.selectedIndex; obj.target = v2; if (this == this.owner.text_mc) { v2.selectedIndex = undefined; v2.dispatchChangeEvent(obj, -1, -2); } else { v2.selectedIndex = this.selectedIndex; if (!v2._showingDropdown) { v2.dispatchChangeEvent(obj, v3, v2.selectedIndex); } else { if (!v2.bInKeyDown) { v2.displayDropdown(false); } } } }; v2._scrollHandler = function (obj) { var v2 = this.owner; obj.target = v2; v2.dispatchEvent(obj); }; v2._itemRollOverHandler = function (obj) { var v2 = this.owner; obj.target = v2; v2.dispatchEvent(obj); }; v2._itemRollOutHandler = function (obj) { var v2 = this.owner; obj.target = v2; v2.dispatchEvent(obj); }; v2.modelChanged = function (eventObj) { super.modelChanged(eventObj); if (0 == this.__dataProvider.length) { this.text_mc.setText(''); delete this.selected; } else { if (this.__dataProvider.length == eventObj.lastItem - eventObj.firstItem + 1 && eventObj.eventName == 'addItems') { this.selectedIndex = 0; } } }; v2.dispatchChangeEvent = function (obj, prevValue, newValue) { var v2; if (prevValue != newValue) { if (obj != undefined && obj.type == 'change') { v2 = obj; } else { v2 = {'type': 'change'}; } this.dispatchEvent(v2); } }; v1.symbolName = 'ComboBox'; v1.symbolOwner = mx.controls.ComboBox; v1.version = '2.0.2.127'; v2.clipParameters = {'labels': 1, 'data': 1, 'editable': 1, 'rowCount': 1, 'dropdownWidth': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ComboBox.prototype.clipParameters, mx.controls.ComboBase.prototype.clipParameters); v2.className = 'ComboBox'; v2._showingDropdown = false; v2.__rowCount = 5; v2.dropdownBorderStyle = undefined; v2.initializing = true; v2.__labelField = 'label'; v2.bInKeyDown = false; v2.addProperty('dropdown', v2.__get__dropdown, function () {}); v2.addProperty('dropdownWidth', v2.__get__dropdownWidth, v2.__set__dropdownWidth); v2.addProperty('labelField', v2.__get__labelField, v2.__set__labelField); v2.addProperty('labelFunction', v2.__get__labelFunction, v2.__set__labelFunction); v2.addProperty('labels', v2.__get__labels, v2.__set__labels); v2.addProperty('rowCount', v2.__get__rowCount, v2.__set__rowCount); v2.addProperty('selectedLabel', v2.__get__selectedLabel, function () {}); ASSetPropFlags(mx.controls.ComboBox.prototype, null, 1); } #endinitclip } movieClip 2187 __Packages.mx.controls.Label { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.Label) { var v1 = function () { super(); }; mx.controls.Label = v1; var v2 = new mx.core.UIObject(); mx.controls.Label.prototype = v2; v2.init = function (Void) { super.init(); this._yscale = 100; this._xscale = 100; this.labelField.selectable = false; this.labelField.styleName = this; this.tabEnabled = false; this.tabChildren = false; this.useHandCursor = false; this._color = mx.core.UIObject.textColorList; }; v2.__get__html = function () { return this.getHtml(); }; v2.__set__html = function (value) { this.setHtml(value); return this.__get__html(); }; v2.getHtml = function () { return this.labelField.html; }; v2.setHtml = function (value) { if (value != this.labelField.html) { this.labelField.html = value; } }; v2.__get__text = function () { return this.getText(); }; v2.__set__text = function (t) { this.setText(t); return this.__get__text(); }; v2.getText = function () { if (this.initializing) { return this.initText; } var v2 = this.labelField; if (v2.html == true) { return v2.htmlText; } return v2.text; }; v2.setText = function (t) { if (this.initializing) { this.initText = t; } else { var v2 = this.labelField; if (v2.html == true) { v2.htmlText = t; } else { v2.text = t; } this.adjustForAutoSize(); } }; v2.__get__autoSize = function () { return this.__autoSize; }; v2.__set__autoSize = function (v) { if (_global.isLivePreview == true) { v = 'none'; } this.__autoSize = v; if (!this.initializing) { this.draw(); } return this.__get__autoSize(); }; v2.draw = function (Void) { var v2 = this.labelField; if (this.initializing) { var v4 = this.__get__text(); this.initializing = false; this.setText(v4); delete this.initText; } if (v2.html) { v4 = v2.htmlText; } var v3 = this._getTextFormat(); v2.embedFonts = v3.embedFonts == true; if (v3 != undefined) { v2.setTextFormat(v3); v2.setNewTextFormat(v3); } if (v2.html) { v2.htmlText = v4; } this.adjustForAutoSize(); }; v2.adjustForAutoSize = function () { var v2 = this.labelField; var v3 = this.__autoSize; if (v3 != undefined && v3 != 'none') { v2._height = v2.textHeight + 3; var v4 = this.__width; this.setSize(v2.textWidth + 4, v2._height); if (v3 == 'right') { this._x += v4 - this.__width; } else { if (v3 == 'center') { this._x += (v4 - this.__width) / 2; } else { if (v3 == 'left') { this._x += 0; } } } } else { v2._x = 0; v2._width = this.__width; v2._height = this.__height; } }; v2.size = function (Void) { var v2 = this.labelField; v2._width = this.__width; v2._height = this.__height; }; v2.setEnabled = function (enable) { var v2 = this.getStyle(enable ? 'color' : 'disabledColor'); if (v2 == undefined) { v2 = enable ? 0 : 8947848; } this.setColor(v2); }; v2.setColor = function (col) { this.labelField.textColor = col; }; v2.__get__styleSheet = function () { return this.labelField.styleSheet; }; v2.__set__styleSheet = function (v) { this.labelField.styleSheet = v; return this.__get__styleSheet(); }; v1.symbolName = 'Label'; v1.symbolOwner = Object(mx.controls.Label); v2.className = 'Label'; v1.version = '2.0.2.127'; v2.initializing = true; v2.clipParameters = {'text': 1, 'html': 1, 'autoSize': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Label.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters); v2.addProperty('autoSize', v2.__get__autoSize, v2.__set__autoSize); v2.addProperty('html', v2.__get__html, v2.__set__html); v2.addProperty('styleSheet', v2.__get__styleSheet, v2.__set__styleSheet); v2.addProperty('text', v2.__get__text, v2.__set__text); ASSetPropFlags(mx.controls.Label.prototype, null, 1); } #endinitclip } movieClip 2241 __Packages.mx.controls.MenuBar { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.MenuBar) { var v1 = function () { super(); }; mx.controls.MenuBar = v1; var v2 = new mx.core.UIComponent(); mx.controls.MenuBar.prototype = v2; v2.init = function (Void) { super.init(); this.__menus = new Object(); this.__menuBarItems = new Array(); var v3 = 0; while (v3 < this.__labels.length) { this.addMenu(this.__labels[v3]); ++v3; } this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; v2.draw = function (Void) { super.draw(); if (this.invUpdateDisplay) { this.updateDisplay(this.invUpdateSize); } }; v2.handleEvent = function (event) { var v2 = event.type; if (v2 == 'menuHide') { if (event.menu.menuBarIndex == this.openMenuIndex) { this.__menuBarItems[this.openMenuIndex].setLabelBorder('none'); delete this.openMenuIndex; } } if (this.rebroadcastEvents[v2]) { event.target = this; this.dispatchEvent(event); } }; v2.onSetFocus = function () { super.onSetFocus(); (this.getFocusManager()).defaultPushButtonEnabled = false; }; v2.onKillFocus = function () { super.onKillFocus(); (this.getFocusManager()).defaultPushButtonEnabled = true; if (this.supposedToLoseFocus == undefined) { (this.getMenuAt(this.openMenuIndex)).hide(); } delete this.supposedToLoseFocus; }; v2.createChildren = function (Void) { super.createChildren(); if (this.background_mc == undefined) { this.createEmptyMovieClip('background_mc', 0); this.background_mc.createObject(this.menuBarBackLeftName, 'bckLeft', 1); this.background_mc.createObject(this.menuBarBackRightName, 'bckRight', 2); this.background_mc.createObject(this.menuBarBackMiddleName, 'bckCenter', 3); } if (!_global.isLivePreview) { var v4 = this.createObject('BoundingBox', 'mask_mc', 10); this.setMask(v4); } this.updateBackgroundDisplay(); }; v2.size = function (Void) { super.size(); this.updateDisplay(true); this.updateBackgroundDisplay(); }; v2.addMenu = function (arg1, arg2) { var v2 = this.__menuDataProvider.childNodes.length; if (v2 == undefined) { v2 = 0; } return this.addMenuAt(v2, arg1, arg2); }; v2.addMenuAt = function (index, arg1, arg2) { if (this.__menuDataProvider == undefined) { this.__menuDataProvider = new XML(); this.__menuDataProvider.addEventListener('modelChanged', this); } var v8; var v3; var v4 = arg1; if (arg2 != undefined) { if (arg2 instanceof XML) { v3 = this.__menuDataProvider.addMenuItemAt(index, arg1); var v2 = arg2.childNodes; while (v2.length != 0) { v3.addMenuItem(v2[0]); } v4 = undefined; } else { arg2.attributes.label = arg1; v4 = arg2; } } if (v4 != undefined) { v3 = this.__menuDataProvider.addMenuItemAt(index, v4); } return this.insertMenuBarItem(index, v3); }; v2.insertMenuBarItem = function (index, mdp) { var v2 = mx.controls.Menu.createMenu(this._parent._root, mdp, {'styleName': this, 'menuBarIndex': index}); this.__menus[mdp.getID()] = v2; v2.__menuBar = this; v2.addEventListener('menuHide', this); v2.addEventListener('rollOver', this); v2.addEventListener('rollOut', this); v2.addEventListener('menuShow', this); v2.addEventListener('change', this); v2.border_mc.borderStyle = 'menuBorder'; v2.labelField = this.labelField; v2.labelFunction = this.labelFunction; var v4 = this.labelFunction(mdp); if (v4 == undefined) { v4 = mdp.attributes[this.labelField]; } var v3 = this.createObject('MenuBarItem', 'mbItem' + this.topItemDepth++, this.topItemDepth, {'owner': this, '__initText': v4, 'styleName': this, '_visible': false}); v3.enabled = this.enabled; v3.setSize(v3.getPreferredWidth(), this.__height); v2.__activator = v3; this.__menuBarItems.splice(index, 0, v3); this.invUpdateDisplay = true; this.invalidate(); return v2; }; v2.getMenuAt = function (index) { return this.__menus[this.__menuDataProvider.childNodes[index].getID()]; }; v2.removeMenuAt = function (index) { var v2 = this.__menuDataProvider.removeMenuItemAt(index); var v3 = this.__menuBarItems[index]; this.__menuBarItems.splice(index, 1); v3.removeMovieClip(); var v5 = this.__menus[v2.getID()]; delete this.__menus[v2.getID()]; this.invUpdateDisplay = true; this.invalidate(); return v5; }; v2.setEnabled = function (b) { super.setEnabled(b); var v4 = this.__menuBarItems.length; this.enableByPass = true; var v3 = 0; while (v3 < v4) { this.__menuBarItems[v3].enabled = b; ++v3; } delete this.enableByPass; }; v2.setMenuEnabledAt = function (index, enable) { if (!this.enabled && this.enableByPass == undefined) { return undefined; } this.__menuBarItems[index].enabled = enable; }; v2.getMenuEnabledAt = function (index) { return this.__menuBarItems[index].enabled; }; v2.setDataProvider = function (dp) { this.removeAll(); this.__menuDataProvider = dp; dp.isTreeRoot = true; var v3 = dp.childNodes; var v4 = v3.length; var v2 = 0; while (v2 < v4) { this.insertMenuBarItem(v2, v3[v2]); ++v2; } }; v2.__get__dataProvider = function () { return this.__menuDataProvider; }; v2.__set__dataProvider = function (dp) { this.setDataProvider(dp); return this.__get__dataProvider(); }; v2.__get__labels = function () { return this.__labels; }; v2.__set__labels = function (lbls) { this.__labels = lbls; var v4 = this.__menuBarItems.length; var v3 = this.__labels.length; var v2 = 0; while (v2 < v4) { this.removeMenuAt(0); ++v2; } v2 = 0; while (v2 < v3) { this.addMenu(this.__labels[v2]); ++v2; } this.redraw(true); return this.__get__labels(); }; v2.invalidateStyle = function (propName) { super.invalidateStyle(propName); if (propName == 'fontFamily' || propName == 'fontSize' || propName == 'fontWeight' || propName == 'styleName') { this.invUpdateDisplay = true; this.invUpdateSize = true; this.invalidate(); } var v3 = 0; while (v3 < this.__menuBarItems.length) { (this.getMenuAt(v3)).invalidateStyle(propName); ++v3; } }; v2.changeColorStyleInChildren = function (sheet, styleProp, newValue) { super.changeColorStyleInChildren(sheet, styleProp, newValue); var v3 = 0; while (v3 < this.__menuBarItems.length) { (this.getMenuAt(v3)).changeColorStyleInChildren(sheet, styleProp, newValue); ++v3; } }; v2.notifyStyleChangeInChildren = function (sheet, styleProp, newValue) { super.notifyStyleChangeInChildren(sheet, styleProp, newValue); var v3 = 0; while (v3 < this.__menuBarItems.length) { (this.getMenuAt(v3)).notifyStyleChangeInChildren(sheet, styleProp, newValue); ++v3; } }; v2.updateDisplay = function (resize) { delete this.invUpdateDisplay; delete this.invUpdateSize; var v4 = this.__marginWidth; var v5 = 0; var v6 = this.__menuBarItems.length; var v3 = 0; while (v3 < v6) { var v2 = this.__menuBarItems[v3]; v2._visible = true; v2.menuBarIndex = v3; (this.getMenuAt(v3)).menuBarIndex = v3; if (resize) { v2.setSize(v2.getPreferredWidth(), this.__height); } v2._x = v4 + v5; v4 = v2._x; v5 = v2.__width; ++v3; } }; v2.updateBackgroundDisplay = function () { this.mask_mc._width = this.width; this.mask_mc._height = this.height; var v2 = this.background_mc; v2._height = this.__height; v2.bckLeft._x = 0; var v3 = v2.bckLeft._width; v2.bckCenter._width = this.__width - (v3 + v2.bckRight._width); v2.bckCenter._x = v3; v2.bckRight._x = v3 + v2.bckCenter._width; }; v2.showMenu = function (index) { this.openMenuIndex = index; var v3 = this.__menuBarItems[index]; var v6 = v3.dP; if (this.__menus[v6.getID()] == undefined) { var v2 = mx.controls.Menu.createMenu(this._parent._root, v6, {'styleName': this, 'menuBarIndex': index}); this.__menus[v6.getID()] = v2; v2.__menuBar = this; v2.addEventListener('menuHide', this); v2.addEventListener('rollOver', this); v2.addEventListener('rollOut', this); v2.addEventListener('menuShow', this); v2.addEventListener('change', this); v2.border_mc.borderStyle = 'menuBorder'; v2.labelField = this.labelField; v2.labelFunction = this.labelFunction; v2.__activator = v3; } var v4 = {'x': 0, 'y': 0}; v3.setLabelBorder('falsedown'); v3.localToGlobal(v4); var v5 = this.getMenuAt(index); v5._root.globalToLocal(v4); v5.focusManager.lastFocus = undefined; v5.show(v4.x, v4.y + (v3._height + 1)); }; v2.removeMenuBarItemAt = function (index) { var v2 = this.__menuBarItems[index]; var v3 = v2.__menu; if (v2 != undefined) { v3.removeMovieClip(); v2.removeMovieClip(); this.__menuBarItems.splice(index, 1); this.updateDisplay(false); } }; v2.removeAll = function () { while (this.__menuBarItems.length > 0) { var v2 = this.__menuBarItems[0]; var v3 = v2.__menu; v3.removeMovieClip(); v2.removeMovieClip(); this.__menuBarItems.splice(0, 1); } this.updateDisplay(false); }; v2.onItemRollOver = function (index) { var v3 = this.__menuBarItems[index]; if (this.openMenuIndex != undefined) { var v2 = this.openMenuIndex; if (v2 != index) { this.isDown = false; var v4 = this.__menuBarItems[v2]; this.onItemRelease(v2); v4.setLabelBorder('none'); this.showMenu(index); this.isDown = true; } } else { v3.setLabelBorder('falserollover'); this.isDown = false; } }; v2.onItemPress = function (index) { var v2 = this.__menuBarItems[index]; if (!this.isDown) { this.showMenu(index); this.isDown = true; } else { v2.setLabelBorder('falsedown'); this.isDown = false; } this.pressFocus(); }; v2.onItemRelease = function (index) { var v2 = this.__menuBarItems[index]; if (!this.isDown) { (this.getMenuAt(index)).hide(); v2.setLabelBorder('falserollover'); } this.releaseFocus(); }; v2.onItemRollOut = function (index) { if (this.openMenuIndex != index) { this.__menuBarItems[index].setLabelBorder('none'); } }; v2.onItemDragOver = function (index) { var v5 = this.__menuBarItems[index]; if (this.openMenuIndex != undefined) { var v2 = this.openMenuIndex; if (v2 != index) { this.isDown = false; var v3 = this.__menuBarItems[v2]; this.onItemRelease(v2); v3.setLabelBorder('none'); } } else { this.isDown = true; } this.onItemPress(index); }; v2.onItemDragOut = function (index) { this.onItemRollOut(index); }; v2.keyDown = function (e) { var v3 = this.__menuBarItems.length; var v8; if (e.code == 39 || e.code == 37) { if (this.openMenuIndex == undefined) { this.openMenuIndex = -1; } var v2 = this.openMenuIndex; var v5 = false; var v4 = 0; for (;;) { if (!(!v5 && v4 < v3)) break; ++v4; v2 = (e.code == 39) ? v2 + 1 : v2 - 1; if (v2 >= v3) { v2 = 0; } else { if (v2 < 0) { v2 = v3 - 1; } } if (this.__menuBarItems[v2].enabled) { v5 = true; } } if (v4 <= v3) { this.onItemRollOver(v2); } } if (Key.isDown(40)) { if (this.openMenuIndex != undefined) { var v7 = this.getMenuAt(this.openMenuIndex); v7.focusEnabled = true; v7.moveSelBy(1); this.supposedToLoseFocus = true; Selection.setFocus(v7); } } if (Key.isDown(13) || Key.isDown(27)) { (this.getMenuAt(this.openMenuIndex)).hide(); } }; v1.symbolName = 'MenuBar'; v1.symbolOwner = mx.controls.MenuBar; v1.version = '2.0.2.127'; v2.className = 'MenuBar'; v1._s_MenuIndex = 0; v2.topItemDepth = 200; v2.menuBarBackLeftName = 'MenuBarBackLeft'; v2.menuBarBackRightName = 'MenuBarBackRight'; v2.menuBarBackMiddleName = 'MenuBarBackMiddle'; v2.__backgroundWidth = 550; v2.__marginWidth = 10; v2.tabChildren = false; v2.labelField = 'label'; v2.clipParameters = {'enabled': 1, 'visible': 1, 'labels': 1, 'minWidth': 1, 'minHeight': 1}; v2.rebroadcastEvents = {'menuHide': 1, 'menuShow': 1, 'rollOver': 1, 'rollOut': 1, 'change': 1}; v2.addProperty('dataProvider', v2.__get__dataProvider, v2.__set__dataProvider); v2.addProperty('labels', v2.__get__labels, v2.__set__labels); ASSetPropFlags(mx.controls.MenuBar.prototype, null, 1); } #endinitclip } movieClip 2272 __Packages.mx.skins.halo.ActivatorSkin { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.ActivatorSkin) { var v1 = function () { super(); }; mx.skins.halo.ActivatorSkin = v1; var v2 = new mx.skins.RectBorder(); mx.skins.halo.ActivatorSkin.prototype = v2; v2.init = function () { super.init(); }; v2.size = function () { this.drawHaloRect(this.__get__width(), this.__get__height()); }; v2.drawHaloRect = function (w, h) { var v5 = this.getStyle('borderStyle'); var v4 = this.getStyle('themeColor'); this.clear(); switch (v5) { case 'none': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 0, 16777215, 0); break; case 'falsedown': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 0, 9542041, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 0, [3355443, 16579836], 100, -90, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 0, v4, 50); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 0, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 0, v4, 20); break; case 'falserollover': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 0, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 0, v4, 50); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 0, [3355443, 16777215], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 0, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 0, 16316664, 100); } }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); _global.skinRegistry.ActivatorSkin = true; return true; }; v1.symbolName = 'ActivatorSkin'; v1.symbolOwner = mx.skins.halo.ActivatorSkin; v2.className = 'ActivatorSkin'; v2.backgroundColorName = 'buttonColor'; v1.classConstructed = mx.skins.halo.ActivatorSkin.classConstruct(); v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; ASSetPropFlags(mx.skins.halo.ActivatorSkin.prototype, null, 1); } #endinitclip } movieClip 2273 __Packages.mx.controls.menuclasses.MenuBarItem { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.menuclasses) { _global.mx.controls.menuclasses = new Object(); } if (!_global.mx.controls.menuclasses.MenuBarItem) { var v1 = function () { super(); }; mx.controls.menuclasses.MenuBarItem = v1; var v2 = new mx.core.UIComponent(); mx.controls.menuclasses.MenuBarItem.prototype = v2; v2.createChildren = function (Void) { super.createChildren(); this.createLabel('cell', 20); this.cell.setValue(this.__initText); this.createClassObject(mx.skins.halo.ActivatorSkin, 'border_mc', 0, {'styleName': this.owner, 'borderStyle': 'none'}); this.useHandCursor = false; this.trackAsMenu = true; }; v2.size = function (Void) { super.size(); this.border_mc.setSize(this.__width, this.__height); this.cell.setSize(this.__width - this.__cellWidthBuffer, this.cell.getPreferredHeight()); this.cell._x = this.__cellWidthBuffer / 2; this.cell._y = (this.__height - this.cell._height) / 2; }; v2.getPreferredWidth = function (Void) { return this.cell.getPreferredWidth() + this.__cellWidthBuffer; }; v2.setLabelBorder = function (style) { this.border_mc.borderStyle = style; this.border_mc.draw(); }; v2.setEnabled = function (state) { this.cell.enabled = state; if (!this.enabled) { this.setLabelBorder('none'); } }; v2.onPress = function (Void) { this.owner.onItemPress(this.menuBarIndex); }; v2.onRelease = function (Void) { this.owner.onItemRelease(this.menuBarIndex); }; v2.onRollOver = function (Void) { this.owner.onItemRollOver(this.menuBarIndex); }; v2.onRollOut = function (Void) { this.owner.onItemRollOut(this.menuBarIndex); }; v2.onDragOver = function (Void) { this.owner.onItemDragOver(this.menuBarIndex); }; v2.onDragOut = function (Void) { this.owner.onItemDragOut(this.menuBarIndex); }; v2.__cellHeightBuffer = 3; v2.__cellWidthBuffer = 20; v2.__isDown = false; v2.__isClosing = false; ASSetPropFlags(mx.controls.menuclasses.MenuBarItem.prototype, null, 1); } #endinitclip } movieClip 2274 __Packages.mx.controls.menuclasses.MenuRow { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.menuclasses) { _global.mx.controls.menuclasses = new Object(); } if (!_global.mx.controls.menuclasses.MenuRow) { var v1 = function () { super(); }; mx.controls.menuclasses.MenuRow = v1; var v2 = new mx.controls.listclasses.SelectableRow(); mx.controls.menuclasses.MenuRow.prototype = v2; v2.setValue = function (itemObj, sel) { var v7 = this.cell; var v6 = this.itemToString(itemObj); if (v7.getValue() != v6) { v7.setValue(v6, itemObj, this.state); } var v8 = itemObj.hasChildNodes(); var v5 = mx.controls.Menu.isItemEnabled(itemObj); var v4 = itemObj.attributes.type; if (v4 == undefined) { v4 = 'normal'; } var v9 = mx.controls.Menu.isItemSelected(itemObj); var v3 = this.owner.__iconFunction(itemObj); if (v3 == undefined) { v3 = itemObj.attributes[this.owner.__iconField]; } if (v3 == undefined) { v3 = this.owner.getStyle('defaultIcon'); } if (this.icon_branch && (v8 != this.branch || v5 != this.isEnabled || this.type == 'separator')) { this.icon_branch.removeMovieClip(); delete this.icon_branch; } if (v9 != this.selected || v3 != this.iconID || v4 != this.type || v5 != this.isEnabled && v4 != 'normal') { this.icon_mc.removeMovieClip(); this.icon_sep.removeMovieClip(); delete this.icon_sep; delete this.icon_mc; } this.branch = v8; this.isEnabled = v5; this.type = v4; this.selected = v9; this.iconID = v3; this.cell.__enabled = this.isEnabled; this.cell.setColor(this.isEnabled ? this.owner.getStyle('color') : this.owner.getStyle('disabledColor')); if (sel == 'highlighted') { if (this.isEnabled) { this.cell.setColor(this.owner.getStyle('textRollOverColor')); } } else { if (sel == 'selected') { if (this.isEnabled) { this.cell.setColor(this.owner.getStyle('textSelectedColor')); } } } if (this.branch && this.icon_branch == undefined) { this.icon_branch = this.createObject('MenuBranch' + (this.isEnabled ? 'Enabled' : 'Disabled'), 'icon_branch', 20); } if (this.type == 'separator') { if (this.icon_sep == undefined) { var v10 = this.createObject('MenuSeparator', 'icon_sep', 21); } } else { if (this.icon_mc == undefined) { if (this.type != 'normal') { if (this.selected) { this.iconID = ((this.type == 'check') ? 'MenuCheck' : 'MenuRadio') + (this.isEnabled ? 'Enabled' : 'Disabled'); } else { this.iconID = undefined; } } if (this.iconID != undefined) { this.icon_mc = this.createObject(this.iconID, 'icon_mc', 21); } } } this.size(); }; v2.itemToString = function (itmObj) { if (itmObj.attributes.type == 'separator') { return ' '; } else { return super.itemToString(itmObj); } }; v2.size = function (Void) { super.size(); this.cell._x = this.lBuffer; this.cell.setSize(this.__width - this.rBuffer - this.lBuffer, Math.min(this.__height, this.cell.getPreferredHeight())); if (this.icon_branch) { this.icon_branch._x = this.__width - this.rBuffer / 2; this.icon_branch._y = (this.__height - this.icon_branch._height) / 2; } if (this.icon_sep) { this.icon_sep._x = 4; this.icon_sep._y = (this.__height - this.icon_sep._height) / 2; this.icon_sep._width = this.__width - 8; } else { if (this.icon_mc) { this.icon_mc._x = Math.max(0, (this.lBuffer - this.icon_mc._width) / 2); this.icon_mc._y = (this.__height - this.icon_mc._height) / 2; } } }; v2.getIdealWidth = function (Void) { this.cell.draw(); this.idealWidth = this.cell.getPreferredWidth() + 4 + this.lBuffer + this.rBuffer; return this.idealWidth; }; v2.isEnabled = true; v2.selected = false; v2.lBuffer = 18; v2.rBuffer = 15; ASSetPropFlags(mx.controls.menuclasses.MenuRow.prototype, null, 1); } #endinitclip } movieClip 2676 __Packages.mx.containers.Window { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.containers) { _global.mx.containers = new Object(); } if (!_global.mx.containers.Window) { var v1 = function () { super(); }; mx.containers.Window = v1; var v2 = new mx.core.ScrollView(); mx.containers.Window.prototype = v2; v2.__set__contentPath = function (scrollableContent) { if (!this.initializing) { if (scrollableContent == undefined) { this.destroyChildAt(0); } else { if (this[mx.core.View.childNameBase + 0] != undefined) { this.destroyChildAt(0); } this.createChild(scrollableContent, 'content', {'styleName': this}); } } this.__contentPath = scrollableContent; return this.__get__contentPath(); }; v2.__get__contentPath = function () { return this.__contentPath; }; v2.init = function (Void) { super.init(); this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; v2.delegateClick = function (obj) { this._parent.dispatchEvent({'type': 'click'}); }; v2.startDragging = function (Void) { if (this.modalWindow == undefined) { var v2 = this._parent.createChildAtDepth('BoundingBox', mx.managers.DepthManager.kTop, {'_visible': false}); this.swapDepths(v2); v2.removeMovieClip(); } this.regX = this._xmouse; this.regY = this._ymouse; this.onMouseMove = this.dragTracking; }; v2.stopDragging = function (Void) { delete this.onMouseMove; }; v2.dragTracking = function () { var v5 = this._parent._xmouse - this.regX; var v4 = this._parent._ymouse - this.regY; var v3 = 5; var v2 = mx.managers.SystemManager.__get__screen(); if (v5 < v2.x - this.regX + v3) { v5 = v2.x - this.regX + v3; } if (v5 > v2.width + v2.x - (this.regX + v3)) { v5 = v2.width + v2.x - (this.regX + v3); } if (v4 < v2.y - this.regY + v3) { v4 = v2.y - this.regY + v3; } if (v4 > v2.height + v2.y - (this.regY + v3)) { v4 = v2.height + v2.y - (this.regY + v3); } this.move(v5, v4); updateAfterEvent(); }; v2.createChildren = function (Void) { super.createChildren(); if (this.back_mc == undefined) { this.createClassObject(mx.core.UIObject, 'back_mc', 1); this.back_mc.createObject(this.skinTitleBackground, 'back_mc', 0); } this.back_mc.visible = false; this.depth = 3; var v6 = new Object(); this.back_mc.useHandCursor = false; this.back_mc.onPress = function () { if (this._parent.enabled) { this._parent.startDragging(); } }; this.back_mc.onRelease = function () { var v2 = this._parent; v2.stopDragging(); }; this.back_mc.onReleaseOutside = this.back_mc.onRelease; this.back_mc.onRollOut = this.back_mc.onRelease; this.back_mc.onDragOut = this.back_mc.onRelease; this.back_mc.tabEnabled = false; if (this.back_mc.title_mc == undefined) { this.back_mc.createLabel('title_mc', 1, this.__get__title()); var v4 = this.back_mc.title_mc; if (this.titleStyleDeclaration == undefined) { v4.fontSize = 10; v4.color = 16777215; v4.fontWeight = 'bold'; } else { v4.styleName = this.titleStyleDeclaration; } v4.invalidateStyle(); } else { this.back_mc.title_mc.text = this.title; } var v3 = new Object(); v3.falseUpSkin = this.skinCloseUp; v3.falseOverSkin = this.skinCloseOver; v3.falseDownSkin = this.skinCloseDown; v3.falseDisabledSkin = this.skinCloseDisabled; v3.tabEnabled = false; this.createClassObject(mx.controls.SimpleButton, 'button_mc', 2, v3); this.button_mc.clickHandler = this.delegateClick; this.button_mc.__set__visible(false); if (this.validateNow) { this.redraw(true); } else { this.invalidate(); } }; v2.__get__title = function () { return this._title; }; v2.__set__title = function (s) { this._title = s; this.back_mc.title_mc.text = s; if (!this.initializing) { this.draw(); } return this.__get__title(); }; v2.setEnabled = function (enable) { super.setEnabled(enable); this.button_mc.enabled = enable; this._child0.enabled = enable; }; v2.getComponentCount = function (Void) { return 1; }; v2.getComponentRect = function (container) { if (container == 1) { var v3 = this.border_mc.__get__borderMetrics(); var v2 = new Object(); v2.x = v3.left; v2.y = v3.top + this.back_mc.height; v2.width = this.__get__width() - v2.x - v3.right; v2.height = this.__get__height() - v2.y - v3.bottom; return v2; } return undefined; }; v2.draw = function (Void) { if (this.initializing) { this.initializing = false; if (this.__contentPath != undefined) { this.__set__contentPath(this.__contentPath); } this._child0.visible = true; this.border_mc.__set__visible(true); this.back_mc.visible = true; } this.size(); }; v2.getViewMetrics = function (Void) { var v3 = super.getViewMetrics(); v3.top += this.back_mc.height; return v3; }; v2.doLayout = function (Void) { super.doLayout(); var v3 = this.border_mc.__get__borderMetrics(); v3.right += (this.vScroller.__get__visible() == true) ? this.vScroller.__get__width() : 0; v3.bottom += (this.hScroller.__get__visible() == true) ? this.hScroller.__get__height() : 0; var v4 = v3.left; var v6 = v3.top; this.back_mc.move(v4, v6); this.back_mc.back_mc.setSize(this.__get__width() - v4 - v3.right, this.back_mc.height); this._child0.move(v4, v6 + this.back_mc.height); if (this._child0.size != mx.core.UIObject.prototype.size) { this._child0.setSize(this.__get__width() - v4 - v3.right, this.__get__height() - v6 - this.back_mc.height - v3.bottom); } this.button_mc.__set__visible(this.closeButton == true); this.button_mc.move(this.__get__width() - v4 - v4 - this.button_mc.__get__width(), (this.back_mc.height - this.button_mc.__get__height()) / 2 + v6); var v7 = this.back_mc.title_mc.textHeight; var v5 = (this.back_mc.height - v7 - 4) / 2; this.back_mc.title_mc.move(v5, v5 - 1); this.back_mc.title_mc.setSize(this.__get__width() - v5 - v5, v7 + 4); }; v2.createChild = function (id, name, props) { this.loadingChild = true; var v3 = super.createChild(id, name, props); this.loadingChild = false; return v3; }; v2.childLoaded = function (obj) { super.childLoaded(obj); if (this.loadingChild) { this.dispatchEvent({'type': 'complete', 'current': obj.getBytesLoaded(), 'total': obj.getBytesTotal()}); } }; v1.symbolName = 'Window'; v1.symbolOwner = mx.containers.Window; v1.version = '2.0.2.127'; v2.className = 'Window'; v1.skinIDBorder = 0; v1.skinIDTitleBackground = 1; v1.skinIDForm = 2; v2.idNames = new Array('border_mc', 'back_mc', 'content'); v2.skinTitleBackground = 'TitleBackground'; v2.skinCloseUp = 'CloseButtonUp'; v2.skinCloseOver = 'CloseButtonOver'; v2.skinCloseDown = 'CloseButtonDown'; v2.skinCloseDisabled = 'CloseButtonDisabled'; v2.clipParameters = {'title': 1, 'contentPath': 1, 'closeButton': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.containers.Window.prototype.clipParameters, mx.core.ScrollView.prototype.clipParameters); v2.initializing = true; v2.loadingChild = false; v2.addProperty('contentPath', v2.__get__contentPath, v2.__set__contentPath); v2.addProperty('title', v2.__get__title, v2.__set__title); ASSetPropFlags(mx.containers.Window.prototype, null, 1); } #endinitclip } movieClip 2695 __Packages.com.gskinner.controls.SimpleTabBox { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.gskinner) { _global.com.gskinner = new Object(); } if (!_global.com.gskinner.controls) { _global.com.gskinner.controls = new Object(); } if (!_global.com.gskinner.controls.SimpleTabBox) { var v1 = function () { super(); mx.events.EventDispatcher.initialize(this); this.sampleTab = this.attachMovie(this.__get__tabLinkage(), 'sampleTab', 1000, {'label': 'yS', '_visible': false}); this.doLaterMethods = {}; this.model = []; this.clipList = []; }; com.gskinner.controls.SimpleTabBox = v1; com.gskinner.controls.SimpleTabBox extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.init(); }; v2.init = function () { this.mask = this.createEmptyMovieClip('mask', 400); this.mask._visible = false; this.mask.beginFill(16750848); this.mask.moveTo(0, 0); this.mask.lineTo(100, 0); this.mask.lineTo(100, 100); this.mask.lineTo(0, 100); this.mask.lineTo(0, 0); this.mask.endFill(); this.cover = this.createEmptyMovieClip('cover', 401); this.cover._visible = false; this.cover.beginFill(16777215, 70); this.cover.moveTo(0, 0); this.cover.lineTo(100, 0); this.cover.lineTo(100, 100); this.cover.lineTo(0, 100); this.cover.lineTo(0, 0); this.cover.endFill(); this.cover.onRelease = function () {}; this.cover.useHandCursor = false; this.configUI(); }; v2.createChild = function (p_linkage, p_instance, p_props, p_initObj) { return this.createChildAt(this.__get__length(), p_linkage, p_instance, p_props, p_initObj); }; v2.createChildAt = function (p_index, p_linkage, p_instance, p_props, p_initObj) { ++this.nextDepth; p_index = Math.max(0, Math.min(this.__get__length(), p_index)); if (p_instance == undefined) { p_instance = 'instance' + this.nextDepth; } this.model.splice(p_index, 0, {'label': p_props.label, 'linkage': p_linkage}); if (!this.loaded) { return undefined; } var v2 = this.attachMovie(p_linkage, p_instance, this.nextDepth, {'_visible': false, '_x': 3, '_y': this.sampleTab.height + 3}); if (v2 == undefined) { v2 = this.createEmptyMovieClip(p_instance, this.nextDepth); v2._x = 3; v2._y = this.sampleTab._y + 3; v2._visible = false; } this.clipList.splice(p_index, 1, v2); this.doLater('draw'); return v2; }; v2.getChildAt = function (p_index) { return this.clipList[p_index]; }; v2.getTabAt = function (p_index) { if (!this.loaded) { return this.model[p_index]; } return this.tabList[p_index]; }; v2.getInstance = function (p_name) { var v3 = this.__get__length(); var v2 = 0; while (v2 < v3) { if (this.clipList[v2]._name == p_name) { return this.clipList[v2]; } ++v2; } return null; }; v2.getIndex = function (p_instance) { var v4 = this.__get__length(); var v2 = 0; while (v2 < v4) { if (p_instance instanceof String) { if (this.clipList[v2]._name == p_instance) { return v2; } } else { if (p_instance instanceof MovieClip) { if (this.clipList[v2] == p_instance) { return v2; } } } ++v2; } return -1; }; v2.removeInstance = function (p_instance) { var v2 = this.getIndex(p_instance); return this.removeChildAt(v2); }; v2.removeChildAt = function (p_index) { if (this.getChildAt(p_index) == undefined) { return false; } this.clipList[p_index].removeMovieClip(); this.clipList.splice(p_index, 1); this.tabList[p_index].removeMovieClip(); this.tabList.splice(p_index, 1); this.model.splice(p_index, 1); if (this.__get__selectedIndex() >= p_index) { this.__set__selectedIndex(this.__get__selectedIndex() - 1); } this.doLater('draw'); return true; }; v2.removeAll = function () { this.__set__dataProvider([]); while (this.tabList.length) { (this.tabList.pop()).removeMovieClip(); } while (this.clipList.length) { (this.clipList.pop()).removeMovieClip(); } this.model = []; this.__set__selectedIndex(-1); this.doLater('draw'); }; v2.setSize = function (p_width, p_height) { this.__width = p_width; this.__height = p_height; this.doLater('draw'); }; v2.move = function (p_x, p_y) { this._x = p_x; this._y = p_y; }; v2.__get__dataProvider = function () { return this.model; }; v2.__set__dataProvider = function (p_dp) { this._tmpModel = p_dp; while (this.clipList.length) { (this.clipList.pop()).removeMovieClip(); } this.clipList = []; var v5 = 300; var v4 = this._tmpModel.length; var v2 = 0; while (v2 < v4) { this.createChild(this._tmpModel[v2].linkage, this._tmpModel[v2].name, {'label': this._tmpModel[v2].label}); ++v2; } this.doLater('draw'); return this.__get__dataProvider(); }; v2.__get__length = function () { return this.model.length; }; v2.__get__numChildren = function () { return this.model.length; }; v2.__get__selectedIndex = function () { return (this._selected == -1) ? 0 : this._selected; }; v2.__set__selectedIndex = function (p_index) { if (this._selected == p_index) { return undefined; } this._selected = p_index; this.doLater('drawTabs'); return this.__get__selectedIndex(); }; v2.__get__tabLinkage = function () { return this._tabLinkage; }; v2.__set__tabLinkage = function (p_linkage) { this._tabLinkage = p_linkage; this.sampleTab = this.attachMovie(this.__get__tabLinkage(), 'sampleTab', 1000, {'label': 'yS', '_visible': false}); this.doLater('draw'); return this.__get__tabLinkage(); }; v2.__get__background = function () { return this._bgLinkage; }; v2.__set__background = function (p_linkage) { this._bgLinkage = p_linkage; this.bg.removeMovieClip(); this.bg = this.attachMovie(this._bgLinkage, 'bg', 200, {'_y': this.sampleTab.height}); this.doLater('draw'); return this.__get__background(); }; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.__get__enabled = function () { return this._enabled; }; v2.__set__enabled = function (p_enabled) { this._enabled = p_enabled; var v3 = this.__get__length(); var v2 = 0; while (v2 < v3) { if (this.loaded) { (this.getTabAt(v2)).enabled = this.enabled; } this.model[v2].enabled = this.enabled; ++v2; } var v4 = this.getTabIndex(this.currentTab); this.clipList[v4]._visible = this.enabled; return this.__get__enabled(); }; v2.click = function (p_evtObj) { var v2 = this.getTabIndex(p_evtObj.target); if (v2 == -1) { return undefined; } this.dispatchEvent({'type': 'click'}); this.__set__selectedIndex(v2); }; v2.change = function (p_evtObj) { var v2 = this.getTabIndex(p_evtObj.target); (this.__get__dataProvider())[v2].enabled = p_evtObj.target.enabled; (this.__get__dataProvider())[v2].label = p_evtObj.target.label; this.doLater('drawTabs'); }; v2.configUI = function () { this.model = []; var v3 = this._width; var v2 = this._height; this._yscale = 100; this._xscale = 100; if (this.__get__width() == undefined) { this.setSize(v3, v2); } this.destroyChildAt = this.removeChildAt; this.loaded = true; this.__set__background(this._bgLinkage); this.__set__dataProvider(this._tmpModel); }; v2.draw = function () { if (!this.loaded) { return undefined; } if (this.bg.setSize != undefined) { this.bg.setSize(this.__get__width(), this.__get__height() - this.bg._y); } else { this.bg._width = this.width; this.bg._height = this.__get__height() - this.bg._y; } this.cover._y = this.sampleTab._height + 3; this.mask._y = this.cover._y; this.cover._x = 3; this.mask._x = 3; var v4 = this.__get__width() - 6; var v3 = this.__get__height() - this.mask._y - 3; this.cover._width = v4; this.mask._width = this.cover._width; this.cover._height = v3; this.mask._height = this.cover._height; var v2 = 0; while (v2 < this.__get__length()) { if (this.clipList[v2].setSize == undefined) { } else { this.clipList[v2].setSize(this.__get__width() - 6, this.__get__height() - this.mask._y - 3); } ++v2; } this.drawTabs(); }; v2.drawTabs = function () { if (!this.loaded) { return undefined; } while (this.tabList.length) { (this.tabList.pop()).removeMovieClip(); } this.tabList = []; var v2; var v11 = this.__get__length(); var v3 = 0; while (v3 < v11) { var v4 = 199 - v3; var v5 = (v2 == undefined) ? 2 : v2._x + ((v2.width == undefined) ? v2._width : v2.width); v2 = this.attachMovie(this.__get__tabLinkage(), 'tab' + v3, v4, {'index': v3, 'label': this.model[v3].label, '_x': v5, '__enabled': this.model[v3].enabled != false, 'depth': v4}); if (v2._x + v2._width > this.__get__width()) { v2.removeMovieClip(); break; } v2.enabled = this._enabled; v2.addEventListener('click', this); v2.addEventListener('change', this); this.tabList.push(v2); ++v3; } this.selectTab(this.__get__selectedIndex()); }; v2.getTabIndex = function (p_tab) { var v3 = this.__get__length(); var v2 = 0; while (v2 < v3) { if (this.tabList[v2] == p_tab) { return v2; } ++v2; } return -1; }; v2.selectTab = function (p_index) { var v3 = this.getTabIndex(this.currentTab); this.clipList[v3]._visible = false; this.currentTab.swapDepths(this.currentTab.depth); this.currentTab.selected = false; this.currentTab.useHandCursor = true; this.currentTab = this.tabList[p_index]; var v2 = this.clipList[p_index]; v2._visible = true; this.cover._visible = this.model[p_index].enabled == false || this.__get__enabled() == false; v2.setMask(this.mask); this.currentTab.swapDepths(com.gskinner.controls.SimpleTabBox.SELECTED_DEPTH); this.currentTab.selected = true; this.currentTab.useHandCursor = false; }; v2.doLater = function (p_fn) { this.doLaterMethods[p_fn] = true; if (!this.doLaterIntervalID) { this.doLaterIntervalID = setInterval(this, 'doLaterDispatcher', 1); } }; v2.doLaterDispatcher = function () { for (var v2 in this.doLaterMethods) { this[v2](); delete this.doLaterMethods[v2]; } clearInterval(this.doLaterIntervalID); delete this.doLaterIntervalID; }; v1.CLASS_REF = com.gskinner.controls.SimpleTabBox; v1.LINKAGE_ID = 'SimpleTabBox'; v1.SELECTED_DEPTH = 201; v2.nextDepth = 300; v2._selected = -1; v2._tabLinkage = 'SimpleTab'; v2._bgLinkage = 'SimpleBackground'; v2.loaded = false; v2._enabled = true; v2.addProperty('background', v2.__get__background, v2.__set__background); v2.addProperty('dataProvider', v2.__get__dataProvider, v2.__set__dataProvider); v2.addProperty('enabled', v2.__get__enabled, v2.__set__enabled); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('length', v2.__get__length, function () {}); v2.addProperty('numChildren', v2.__get__numChildren, function () {}); v2.addProperty('selectedIndex', v2.__get__selectedIndex, v2.__set__selectedIndex); v2.addProperty('tabLinkage', v2.__get__tabLinkage, v2.__set__tabLinkage); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(com.gskinner.controls.SimpleTabBox.prototype, null, 1); } #endinitclip } movieClip 2698 __Packages.com.gskinner.controls.SimpleBackground { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.gskinner) { _global.com.gskinner = new Object(); } if (!_global.com.gskinner.controls) { _global.com.gskinner.controls = new Object(); } if (!_global.com.gskinner.controls.SimpleBackground) { var v1 = function () { super(); }; com.gskinner.controls.SimpleBackground = v1; com.gskinner.controls.SimpleBackground extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.configUI(); }; v2.setSize = function (p_width, p_height) { this.__width = p_width; this.__height = p_height; this.draw(); }; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.configUI = function () { if (this.__get__width() == undefined) { this.setSize(this._width, this._height); } this.gotoAndStop(2); this.loaded = true; this.draw(); }; v2.draw = function () { if (!this.loaded) { return undefined; } this.clear(); this.moveTo(0, 0); this.lineStyle(0, 10066329); this.beginFill(16777215); this.lineTo(this.__get__width(), 0); this.lineTo(this.__get__width(), this.__get__height()); this.lineTo(0, this.__get__height()); this.lineTo(0, 0); this.endFill(); this.lineStyle(0, 14540253); this.moveTo(2, 2); this.lineTo(this.__get__width() - 2, 2); this.lineTo(this.__get__width() - 2, this.__get__height() - 2); this.lineTo(2, this.__get__height() - 2); this.lineTo(2, 2); }; v1.CLASS_REF = com.gskinner.controls.SimpleBackground; v1.LINKAGE_ID = 'SimpleBackground'; v2.loaded = false; v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(com.gskinner.controls.SimpleBackground.prototype, null, 1); } #endinitclip } movieClip 2701 __Packages.com.gskinner.controls.SimpleTab { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.gskinner) { _global.com.gskinner = new Object(); } if (!_global.com.gskinner.controls) { _global.com.gskinner.controls = new Object(); } if (!_global.com.gskinner.controls.SimpleTab) { var v1 = function () { super(); mx.events.EventDispatcher.initialize(this); this.configUI(); }; com.gskinner.controls.SimpleTab = v1; com.gskinner.controls.SimpleTab extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () {}; v2.__get__width = function () { return this.__width; }; v2.__set__width = function (p_width) { this.__width = p_width; return this.__get__width(); }; v2.__get__enabled = function () { return this.__enabled; }; v2.__set__enabled = function (p_enabled) { if (this.__enabled == p_enabled) { return undefined; } this.__enabled = p_enabled; this.dispatchEvent({'type': 'change'}); this.draw(); return this.__get__enabled(); }; v2.__get__label = function () { return this._label; }; v2.__set__label = function (p_label) { this._label = p_label; this.labelFld.textColor = this.__get__enabled() ? 0 : 10066329; this.dispatchEvent({'type': 'change'}); return this.__get__label(); }; v2.__get__selected = function () { return this._selected; }; v2.__set__selected = function (p_selected) { this._selected = p_selected; this.draw(); return this.__get__selected(); }; v2.configUI = function () { this.labelFld._width = this.labelFld.textWidth + 5; this.labelFld._height = this.labelFld.textHeight + 2; this.__set__width(Math.ceil(this.labelFld._x + this.labelFld._width + 5)); this.draw(); }; v2.draw = function () { this.clear(); if (this.__get__enabled()) { this.beginFill(this.__get__selected() ? 16777215 : 15658734); this.labelFld.textColor = 0; } else { this.beginFill(14540253); this.labelFld.textColor = 10066329; } this.lineStyle(0, 10066329); this.moveTo(0, this.height); this.lineTo(0, 0); this.lineTo(this.__get__width() - 4, 0); this.lineTo(this.__get__width() + 8, this.height); this.lineStyle(0, 16777215); this.endFill(); }; v2.onRelease = function () { if (!this.__get__enabled()) { return undefined; } this.dispatchEvent({'type': 'click'}); }; v1.CLASS_REF = com.gskinner.controls.SimpleTab; v1.LINKAGE_ID = 'SimpleTab'; v2.height = 19; v2.__enabled = true; v2._selected = false; v2.addProperty('enabled', v2.__get__enabled, v2.__set__enabled); v2.addProperty('label', v2.__get__label, v2.__set__label); v2.addProperty('selected', v2.__get__selected, v2.__set__selected); v2.addProperty('width', v2.__get__width, v2.__set__width); ASSetPropFlags(com.gskinner.controls.SimpleTab.prototype, null, 1); } #endinitclip } movieClip 2704 __Packages.mx.video.FLVPlayback { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.FLVPlayback) { var v1 = function () { super(); mx.events.EventDispatcher.initialize(this); if (this._autoPlay == undefined) { this._autoPlay = true; } if (this._autoRewind == undefined) { this._autoRewind = true; } if (this._autoSize == undefined) { this._autoSize = false; } if (this._bufferTime == undefined) { this._bufferTime = 0.1; } if (this._contentPath == undefined) { this._contentPath = ''; } if (this._cuePoints == undefined) { this._cuePoints = null; } if (this._idleTimeout == undefined) { this._idleTimeout = mx.video.VideoPlayer.DEFAULT_IDLE_TIMEOUT_INTERVAL; } if (this._isLive == undefined) { this._isLive = false; } if (this._aspectRatio == undefined) { this._aspectRatio = true; } if (this._seekToPrevOffset == undefined) { this._seekToPrevOffset = mx.video.FLVPlayback.SEEK_TO_PREV_OFFSET_DEFAULT; } if (this._playheadUpdateInterval == undefined) { this._playheadUpdateInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_PROGRESS_INTERVAL; } if (this._progressInterval == undefined) { this._progressInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_TIME_INTERVAL; } if (this._totalTime == undefined) { this._totalTime = 0; } if (this._transform == undefined) { this._transform = null; } if (this._volume == undefined) { this._volume = 100; } if (this._skinAutoHide == undefined) { this._skinAutoHide = false; } if (this._bufferingBarHides == undefined) { this._bufferingBarHides = false; } this.__height = this._height; this._origHeight = this.__height; this.__width = this._width; this._origWidth = this.__width; this._scaleX = 100; this._scaleY = 100; this._xscale = 100; this._yscale = 100; this._preSeekTime = -1; this._firstStreamReady = false; this._firstStreamShown = false; this.createUIManager(); this._activeVP = 0; this._visibleVP = 0; this._topVP = 0; this._vp = new Array(); this._vpState = new Array(); this._cpMgr = new Array(); this.createVideoPlayer(0); this._vp[0].visible = false; this._vp[0].volume = 0; this.boundingBox_mc._visible = false; this.boundingBox_mc.unloadMovie(); delete this.boundingBox_mc; if (_global.isLivePreview) { this.createLivePreviewMovieClip(); this.setSize(this.__width, this.__height); } this._cpMgr[0].processCuePointsProperty(this._cuePoints); delete this._cuePoints; this._cuePoints = null; }; mx.video.FLVPlayback = v1; mx.video.FLVPlayback extends MovieClip; var v2 = v1.prototype; v2.setSize = function (w, h) { if (_global.isLivePreview) { if (this.preview_mc == undefined) { this.createLivePreviewMovieClip(); } this.preview_mc.box_mc._width = w; this.preview_mc.box_mc._height = h; if (this.preview_mc.box_mc._width < this.preview_mc.icon_mc._width || this.preview_mc.box_mc._height < this.preview_mc.icon_mc._height) { this.preview_mc.icon_mc._visible = false; } else { this.preview_mc.icon_mc._visible = true; this.preview_mc.icon_mc._x = (this.preview_mc.box_mc._width - this.preview_mc.icon_mc._width) / 2; this.preview_mc.icon_mc._y = (this.preview_mc.box_mc._height - this.preview_mc.icon_mc._height) / 2; } } if (w == this.__get__width() && h == this.__get__height()) { return undefined; } this.__width = w; this.__height = h; var v3 = 0; while (v3 < this._vp.length) { if (this._vp[v3] != undefined) { this._vp[v3].setSize(w, h); } ++v3; } this.dispatchEvent({'type': 'resize', 'x': this.__get__x(), 'y': this.__get__y(), 'width': w, 'height': h}); }; v2.setScale = function (xs, ys) { if (xs == this.__get__scaleX() && ys == this.__get__scaleY()) { return undefined; } this._scaleX = xs; this._scaleY = ys; var v2 = 0; while (v2 < this._vp.length) { if (this._vp[v2] != undefined) { this._vp[v2].setSize(this._origWidth * xs / 100, this._origHeight * ys / 100); } ++v2; } this.dispatchEvent({'type': 'resize', 'x': this.__get__x(), 'y': this.__get__y(), 'width': this.__get__width(), 'height': this.__get__height()}); }; v2.handleEvent = function (e) { var v3 = e.state; if (e.state != undefined && e.target._name == this._visibleVP && this.__get__scrubbing()) { v3 = mx.video.FLVPlayback.SEEKING; } if (e.type == 'metadataReceived') { this._cpMgr[e.target._name].processFLVCuePoints(e.info.cuePoints); this.dispatchEvent({'type': e.type, 'info': e.info, 'vp': e.target._name}); } else { if (e.type == 'cuePoint') { if (this._cpMgr[e.target._name].isFLVCuePointEnabled(e.info)) { this.dispatchEvent({'type': e.type, 'info': e.info, 'vp': e.target._name}); } } else { if (e.type == 'rewind') { this.dispatchEvent({'type': e.type, 'auto': true, 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); this._cpMgr[e.target._name].resetASCuePointIndex(e.playheadTime); } else { if (e.type == 'resize') { this.dispatchEvent({'type': e.type, 'x': this.__get__x(), 'y': this.__get__y(), 'width': this.__get__width(), 'height': this.__get__height(), 'auto': true, 'vp': e.target._name}); } else { if (e.type == 'playheadUpdate') { this.dispatchEvent({'type': e.type, 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); if (this._preSeekTime >= 0 && e.target.state != mx.video.FLVPlayback.SEEKING) { var v5 = this._preSeekTime; this._preSeekTime = -1; this._cpMgr[e.target._name].resetASCuePointIndex(e.playheadTime); this.dispatchEvent({'type': 'seek', 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); if (v5 < e.playheadTime) { this.dispatchEvent({'type': 'fastForward', 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); } else { if (v5 > e.playheadTime) { this.dispatchEvent({'type': 'rewind', 'auto': false, 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); } } } this._cpMgr[e.target._name].dispatchASCuePoints(); } else { if (e.type == 'stateChange') { var v4 = e.target._name; if (v4 == this._visibleVP && this.__get__scrubbing()) { return undefined; } if (e.state == mx.video.VideoPlayer.RESIZING) { return undefined; } if (this._vpState[v4].prevState == mx.video.FLVPlayback.LOADING && this._vpState[v4].autoPlay && e.state == mx.video.FLVPlayback.STOPPED) { return undefined; } this._vpState[v4].prevState = e.state; this.dispatchEvent({'type': e.type, 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); if (this._vp[e.target._name].state != v3) { return undefined; } switch (v3) { case mx.video.FLVPlayback.BUFFERING: this.dispatchEvent({'type': 'buffering', 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); break; case mx.video.FLVPlayback.PAUSED: this.dispatchEvent({'type': 'paused', 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); break; case mx.video.FLVPlayback.PLAYING: this.dispatchEvent({'type': 'playing', 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); break; case mx.video.FLVPlayback.STOPPED: this.dispatchEvent({'type': 'stopped', 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); } } else { if (e.type == 'progress') { this.dispatchEvent({'type': e.type, 'bytesLoaded': e.bytesLoaded, 'bytesTotal': e.bytesTotal, 'vp': e.target._name}); } else { if (e.type == 'ready') { var v4 = e.target._name; if (!this._firstStreamReady) { if (v4 == this._visibleVP) { this._firstStreamReady = true; if (this._uiMgr.__get__skinReady() && !this._firstStreamShown) { this._uiMgr.__set__visible(true); this.showFirstStream(); } } } else { if (this._firstStreamShown && v3 == mx.video.FLVPlayback.STOPPED && this._vpState[v4].autoPlay) { this._vp[v4].play(); } } this.dispatchEvent({'type': e.type, 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); } else { if (e.type == 'close' || e.type == 'complete') { this.dispatchEvent({'type': e.type, 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); } } } } } } } } } }; v2.load = function (contentPath, totalTime, isLive) { if (this._vp[this._activeVP] == undefined) { return undefined; } if (contentPath == null || contentPath == '') { return undefined; } this.__set__autoPlay(false); if (totalTime != undefined) { this.__set__totalTime(totalTime); } if (isLive != undefined) { this.__set__isLive(isLive); } this.__set__contentPath(contentPath); }; v2.play = function (contentPath, totalTime, isLive) { if (this._vp[this._activeVP] == undefined) { return undefined; } if (contentPath == undefined) { this._vp[this._activeVP].play(); } else { this.__set__autoPlay(true); if (totalTime != undefined) { this.__set__totalTime(totalTime); } if (isLive != undefined) { this.__set__isLive(isLive); } this.__set__contentPath(contentPath); } }; v2.pause = function () { if (this._vp[this._activeVP] == undefined) { return undefined; } this._vp[this._activeVP].pause(); }; v2.stop = function () { if (this._vp[this._activeVP] == undefined) { return undefined; } this._vp[this._activeVP].stop(); }; v2.seek = function (time) { if (this._vp[this._activeVP] == undefined) { return undefined; } this._preSeekTime = this.playheadTime; this._vp[this._activeVP].seek(time); }; v2.seekSeconds = function (time) { this.seek(time); }; v2.seekPercent = function (percent) { if (this._vp[this._activeVP] == undefined) { return undefined; } if (percent < 0 || percent > 100 || this._vp[this._activeVP].totalTime == null || this._vp[this._activeVP].totalTime <= 0) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } this.seek(this._vp[this._activeVP].totalTime * percent / 100); }; v2.__get__playheadPercentage = function () { if (this._vp[this._activeVP].totalTime == null || this._vp[this._activeVP].totalTime <= 0) { return undefined; } return (this._vp[this._activeVP].playheadTime / this._vp[this._activeVP].totalTime) * 100; }; v2.__set__playheadPercentage = function (percent) { this.seekPercent(percent); return this.__get__playheadPercentage(); }; v2.seekToNavCuePoint = function (timeNameOrCuePoint) { var v3; switch (typeof timeNameOrCuePoint) { case 'string': v3 = {'name': timeNameOrCuePoint}; break; case 'number': v3 = {'time': timeNameOrCuePoint}; break; case 'object': v3 = timeNameOrCuePoint; } if (v3.name == null || typeof v3.name != 'string') { this.seekToNextNavCuePoint(v3.time); return undefined; } if (isNaN(v3.time)) { v3.time = 0; } var v2 = this.findNearestCuePoint(timeNameOrCuePoint, mx.video.FLVPlayback.NAVIGATION); for (;;) { if (!(v2 != null && (v2.time < v3.time || !this.isFLVCuePointEnabled(v2)))) break; v2 = this.findNextCuePointWithName(v2); } if (v2 == null) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } this.seek(v2.time); }; v2.seekToNextNavCuePoint = function (time) { if (this._vp[this._activeVP] == undefined) { return undefined; } if (isNaN(time) || time < 0) { time = this._vp[this._activeVP].playheadTime + 0.001; } var v3; v3 = this.findNearestCuePoint(time, mx.video.FLVPlayback.NAVIGATION); if (v3 == null) { this.seek(this._vp[this._activeVP].totalTime); return undefined; } var v2 = v3.index; if (v3.time < time) { ++v2; } for (;;) { if (!(v2 < v3.array.length && !this.isFLVCuePointEnabled(v3.array[v2]))) break; ++v2; } if (v2 >= v3.array.length) { var v5 = this._vp[this._activeVP].totalTime; if (v3.array[v3.array.length - 1].time > v5) { v5 = v3.array[v3.array.length - 1]; } this.seek(v5); } else { this.seek(v3.array[v2].time); } }; v2.seekToPrevNavCuePoint = function (time) { if (this._vp[this._activeVP] == undefined) { return undefined; } if (isNaN(time) || time < 0) { time = this._vp[this._activeVP].playheadTime; } var v3 = this.findNearestCuePoint(time, mx.video.FLVPlayback.NAVIGATION); if (v3 == null) { this.seek(0); return undefined; } var v2 = v3.index; for (;;) { if (!(v2 >= 0 && (!this.isFLVCuePointEnabled(v3.array[v2]) || v3.array[v2].time >= time - this._seekToPrevOffset))) break; --v2; } if (v2 < 0) { this.seek(0); } else { this.seek(v3.array[v2].time); } }; v2.addASCuePoint = function (timeOrCuePoint, name, parameters) { return this._cpMgr[this._activeVP].addASCuePoint(timeOrCuePoint, name, parameters); }; v2.removeASCuePoint = function (timeNameOrCuePoint) { return this._cpMgr[this._activeVP].removeASCuePoint(timeNameOrCuePoint); }; v2.findCuePoint = function (timeNameOrCuePoint, type) { switch (type) { return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].allCuePoints, false, timeNameOrCuePoint); case 'event': return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].eventCuePoints, false, timeNameOrCuePoint); case 'navigation': return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].navCuePoints, false, timeNameOrCuePoint); case 'flv': return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].flvCuePoints, false, timeNameOrCuePoint); case 'actionscript': return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].asCuePoints, false, timeNameOrCuePoint); case 'all': } return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].allCuePoints, false, timeNameOrCuePoint); }; v2.findNearestCuePoint = function (timeNameOrCuePoint, type) { switch (type) { return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].allCuePoints, true, timeNameOrCuePoint); case 'event': return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].eventCuePoints, true, timeNameOrCuePoint); case 'navigation': return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].navCuePoints, true, timeNameOrCuePoint); case 'flv': return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].flvCuePoints, true, timeNameOrCuePoint); case 'actionscript': return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].asCuePoints, true, timeNameOrCuePoint); case 'all': } return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].allCuePoints, true, timeNameOrCuePoint); }; v2.findNextCuePointWithName = function (cuePoint) { return this._cpMgr[this._activeVP].getNextCuePointWithName(cuePoint); }; v2.setFLVCuePointEnabled = function (enabled, timeNameOrCuePoint) { return this._cpMgr[this._activeVP].setFLVCuePointEnabled(enabled, timeNameOrCuePoint); }; v2.isFLVCuePointEnabled = function (timeNameOrCuePoint) { return this._cpMgr[this._activeVP].isFLVCuePointEnabled(timeNameOrCuePoint); }; v2.getNextHighestDepth = function () { var v2 = super.getNextHighestDepth(); return v2 < 1000 ? 1000 : v2; }; v2.bringVideoPlayerToFront = function (index) { if (index == this._topVP || this._vp[index] == undefined) { return undefined; } this._vp[this._topVP].swapDepths(this._vp[index].getDepth()); this._topVP = index; }; v2.getVideoPlayer = function (index) { return this._vp[index]; }; v2.closeVideoPlayer = function (index) { if (this._vp[index] == undefined) { return undefined; } if (index == 0) { throw new mx.video.VideoError(mx.video.VideoError.DELETE_DEFAULT_PLAYER); } if (this._visibleVP == index) { this.__set__visibleVideoPlayerIndex(0); } if (this._activeVP == index) { this.__set__activeVideoPlayerIndex(0); } this._vp[index].close(); this._vp[index].unloadMovie(); delete this._vp[index]; this._vp[index] = undefined; }; v2.__get__activeVideoPlayerIndex = function () { return this._activeVP; }; v2.__set__activeVideoPlayerIndex = function (i) { if (this._activeVP == i) { return undefined; } if (this._vp[this._activeVP].onEnterFrame != undefined) { this.doContentPathConnect(); } this._activeVP = i; if (this._vp[this._activeVP] == undefined) { this.createVideoPlayer(this._activeVP); this._vp[this._activeVP].visible = false; this._vp[this._activeVP].volume = 0; } return this.__get__activeVideoPlayerIndex(); }; v2.__get__autoPlay = function () { if (this._vpState[this._activeVP] == undefined) { return this._autoPlay; } return this._vpState[this._activeVP].autoPlay; }; v2.__set__autoPlay = function (flag) { if (this._activeVP == 0 || this._activeVP == undefined) { this._autoPlay = flag; } this._vpState[this._activeVP].autoPlay = flag; return this.__get__autoPlay(); }; v2.__get__autoRewind = function () { if (this._vp[this._activeVP] == undefined) { return this._autoRewind; } return this._vp[this._activeVP].autoRewind; }; v2.__set__autoRewind = function (flag) { if (this._activeVP == 0 || this._activeVP == undefined) { this._autoRewind = flag; } this._vp[this._activeVP].autoRewind = flag; return this.__get__autoRewind(); }; v2.__get__autoSize = function () { if (this._vp[this._activeVP] == undefined) { return this._autoSize; } return this._vp[this._activeVP].autoSize; }; v2.__set__autoSize = function (flag) { if (this._activeVP == 0 || this._activeVP == undefined) { this._autoSize = flag; } this._vp[this._activeVP].autoSize = flag; return this.__get__autoSize(); }; v2.__get__bitrate = function () { return (this.__get__ncMgr()).getBitrate(); }; v2.__set__bitrate = function (b) { (this.__get__ncMgr()).setBitrate(b); return this.__get__bitrate(); }; v2.__get__buffering = function () { if (this._vp[this._activeVP] == undefined) { return false; } return this._vp[this._activeVP].state == mx.video.FLVPlayback.BUFFERING; }; v2.__get__bufferingBar = function () { if (this._uiMgr != null) { this._bufferingBar = this._uiMgr.getControl(mx.video.UIManager.BUFFERING_BAR); } return this._bufferingBar; }; v2.__set__bufferingBar = function (s) { this._bufferingBar = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.BUFFERING_BAR, s); } return this.__get__bufferingBar(); }; v2.__get__bufferingBarHidesAndDisablesOthers = function () { if (this._uiMgr != null) { this._bufferingBarHides = this._uiMgr.bufferingBarHidesAndDisablesOthers; } return this._bufferingBarHides; }; v2.__set__bufferingBarHidesAndDisablesOthers = function (b) { this._bufferingBarHides = b; if (this._uiMgr != null) { this._uiMgr.__set__bufferingBarHidesAndDisablesOthers(b); } return this.__get__bufferingBarHidesAndDisablesOthers(); }; v2.__get__backButton = function () { if (this._uiMgr != null) { this._backButton = this._uiMgr.getControl(mx.video.UIManager.BACK_BUTTON); } return this._backButton; }; v2.__set__backButton = function (s) { this._backButton = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.BACK_BUTTON, s); } return this.__get__backButton(); }; v2.__get__bufferTime = function () { if (this._vp[this._activeVP] == undefined) { return this._bufferTime; } return this._vp[this._activeVP].bufferTime; }; v2.__set__bufferTime = function (aTime) { if (this._activeVP == 0 || this._activeVP == undefined) { this._bufferTime = aTime; } this._vp[this._activeVP].bufferTime = aTime; return this.__get__bufferTime(); }; v2.__get__bytesLoaded = function () { return this._vp[this._activeVP].bytesLoaded; }; v2.__get__bytesTotal = function () { return this._vp[this._activeVP].bytesTotal; }; v2.__get__contentPath = function () { if (this._vp[this._activeVP] == undefined || this._vp[this._activeVP].onEnterFrame != undefined) { return this._contentPath; } return this._vp[this._activeVP].url; }; v2.__set__contentPath = function (url) { if (_global.isLivePreview) { return undefined; } if (this._vp[this._activeVP] == undefined) { if (url == this._contentPath) { return undefined; } this._contentPath = url; } else { if (this._vp[this._activeVP].url == url) { return undefined; } this._vpState[this._activeVP].minProgressPercent = undefined; if (this._vp[this._activeVP].onEnterFrame != undefined) { delete this._vp[this._activeVP].onEnterFrame; this._vp[this._activeVP].onEnterFrame = undefined; } this._cpMgr[this._activeVP].reset(); if (this._vpState[this._activeVP].autoPlay && this._firstStreamShown) { this._vp[this._activeVP].play(url, this._vpState[this._activeVP].isLive, this._vpState[this._activeVP].totalTime); } else { this._vp[this._activeVP].load(url, this._vpState[this._activeVP].isLive, this._vpState[this._activeVP].totalTime); } this._vpState[this._activeVP].isLiveSet = false; this._vpState[this._activeVP].totalTimeSet = false; } return this.__get__contentPath(); }; v2.__set__cuePoints = function (cp) { if (this._cuePoints != undefined) { return undefined; } this._cuePoints = cp; return this.__get__cuePoints(); }; v2.__get__forwardButton = function () { if (this._uiMgr != null) { this._forwardButton = this._uiMgr.getControl(mx.video.UIManager.FORWARD_BUTTON); } return this._forwardButton; }; v2.__set__forwardButton = function (s) { this._forwardButton = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.FORWARD_BUTTON, s); } return this.__get__forwardButton(); }; v2.__get__height = function () { if (_global.isLivePreview) { return this.__height; } if (this._vp[this._visibleVP] != undefined) { this.__height = this._vp[this._visibleVP].height; } return this.__height; }; v2.__set__height = function (h) { this.setSize(this.__get__width(), h); return this.__get__height(); }; v2.__get__idleTimeout = function () { if (this._vp[this._activeVP] == undefined) { return this._idleTimeout; } return this._vp[this._activeVP].idleTimeout; }; v2.__set__idleTimeout = function (aTime) { if (this._activeVP == 0 || this._activeVP == undefined) { this._idleTimeout = aTime; } this._vp[this._activeVP].idleTimeout = aTime; return this.__get__idleTimeout(); }; v2.__get__isRTMP = function () { if (_global.isLivePreview) { return true; } if (this._vp[this._activeVP] == undefined) { return undefined; } return this._vp[this._activeVP].isRTMP; }; v2.__get__isLive = function () { if (this._vp[this._activeVP] == undefined) { return this._isLive; } else { if (this._vpState[this._activeVP].isLiveSet) { return this._vpState[this._activeVP].isLive; } else { return this._vp[this._activeVP].isLive; } } }; v2.__set__isLive = function (flag) { if (this._activeVP == 0 || this._activeVP == undefined) { this._isLive = flag; } this._vpState[this._activeVP].isLive = flag; this._vpState[this._activeVP].isLiveSet = true; return this.__get__isLive(); }; v2.__get__maintainAspectRatio = function () { if (this._vp[this._activeVP] == undefined) { return this._aspectRatio; } return this._vp[this._activeVP].maintainAspectRatio; }; v2.__set__maintainAspectRatio = function (flag) { if (this._activeVP == 0 || this._activeVP == undefined) { this._aspectRatio = flag; } this._vp[this._activeVP].maintainAspectRatio = flag; return this.__get__maintainAspectRatio(); }; v2.__get__metadata = function () { if (this._vp[this._activeVP] == undefined) { return null; } return this._vp[this._activeVP].metadata; }; v2.__get__metadataLoaded = function () { if (this._vp[this._activeVP] == undefined) { return false; } return this._cpMgr[this._activeVP].metadataLoaded; }; v2.__get__muteButton = function () { if (this._uiMgr != null) { this._muteButton = this._uiMgr.getControl(mx.video.UIManager.MUTE_BUTTON); } return this._muteButton; }; v2.__set__muteButton = function (s) { this._muteButton = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.MUTE_BUTTON, s); } return this.__get__muteButton(); }; v2.__get__ncMgr = function () { if (this._vp[this._activeVP] == undefined) { return null; } return this._vp[this._activeVP].ncMgr; }; v2.__get__pauseButton = function () { if (this._uiMgr != null) { this._pauseButton = this._uiMgr.getControl(mx.video.UIManager.PAUSE_BUTTON); } return this._pauseButton; }; v2.__set__pauseButton = function (s) { this._pauseButton = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.PAUSE_BUTTON, s); } return this.__get__pauseButton(); }; v2.__get__paused = function () { if (this._vp[this._activeVP] == undefined) { return false; } return this._vp[this._activeVP].state == mx.video.FLVPlayback.PAUSED; }; v2.__get__playButton = function () { if (this._uiMgr != null) { this._playButton = this._uiMgr.getControl(mx.video.UIManager.PLAY_BUTTON); } return this._playButton; }; v2.__set__playButton = function (s) { this._playButton = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.PLAY_BUTTON, s); } return this.__get__playButton(); }; v2.__get__playheadTime = function () { if (this._vp[this._activeVP] == undefined) { return 0; } return this._vp[this._activeVP].playheadTime; }; v2.__set__playheadTime = function (position) { this.seek(position); return this.__get__playheadTime(); }; v2.__get__playheadUpdateInterval = function () { if (this._vp[this._activeVP] == undefined) { return this._playheadUpdateInterval; } return this._vp[this._activeVP].playheadUpdateInterval; }; v2.__set__playheadUpdateInterval = function (aTime) { if (this._activeVP == 0 || this._activeVP == undefined) { this._playheadUpdateInterval = aTime; } this._cpMgr[this._activeVP].playheadUpdateInterval = aTime; this._vp[this._activeVP].playheadUpdateInterval = aTime; return this.__get__playheadUpdateInterval(); }; v2.__get__playing = function () { if (this._vp[this._activeVP] == undefined) { return false; } return this._vp[this._activeVP].state == mx.video.FLVPlayback.PLAYING; }; v2.__get__playPauseButton = function () { if (this._uiMgr != null) { this._playPauseButton = this._uiMgr.getControl(mx.video.UIManager.PLAY_PAUSE_BUTTON); } return this._playPauseButton; }; v2.__set__playPauseButton = function (s) { this._playPauseButton = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.PLAY_PAUSE_BUTTON, s); } return this.__get__playPauseButton(); }; v2.__get__preferredHeight = function () { if (this._vp[this._activeVP] == undefined) { return 0; } return this._vp[this._activeVP].videoHeight; }; v2.__get__preferredWidth = function () { if (this._vp[this._activeVP] == undefined) { return 0; } return this._vp[this._activeVP].videoWidth; }; v2.__get__progressInterval = function () { if (this._vp[this._activeVP] == undefined) { return this._progressInterval; } return this._vp[this._activeVP].progressInterval; }; v2.__set__progressInterval = function (aTime) { if (this._activeVP == 0 || this._activeVP == undefined) { this._progressInterval = aTime; } this._vp[this._activeVP].progressInterval = aTime; return this.__get__progressInterval(); }; v2.__get__scaleX = function () { if (this._vp[this._visibleVP] != undefined) { this._scaleX = (this._vp[this._visibleVP].width / this._origWidth) * 100; } return this._scaleX; }; v2.__set__scaleX = function (xs) { this.setScale(xs, this.__get__scaleY()); return this.__get__scaleX(); }; v2.__get__scaleY = function () { if (this._vp[this._visibleVP] != undefined) { this._scaleY = (this._vp[this._visibleVP].height / this._origHeight) * 100; } return this._scaleY; }; v2.__set__scaleY = function (ys) { this.setScale(this.__get__scaleX(), ys); return this.__get__scaleY(); }; v2.__get__scrubbing = function () { var v2 = this.__get__seekBar(); if (v2 == undefined || v2.isDragging == undefined) { return false; } return v2.isDragging; }; v2.__get__seekBar = function () { if (this._uiMgr != null) { this._seekBar = this._uiMgr.getControl(mx.video.UIManager.SEEK_BAR); } return this._seekBar; }; v2.__set__seekBar = function (s) { this._seekBar = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.SEEK_BAR, s); } return this.__get__seekBar(); }; v2.__get__seekBarInterval = function () { if (this._uiMgr != null) { this._seekBarInterval = this._uiMgr.seekBarInterval; } return this._seekBarInterval; }; v2.__set__seekBarInterval = function (s) { this._seekBarInterval = s; if (this._uiMgr != null) { this._uiMgr.__set__seekBarInterval(this._seekBarInterval); } return this.__get__seekBarInterval(); }; v2.__get__seekBarScrubTolerance = function () { if (this._uiMgr != null) { this._seekBarScrubTolerance = this._uiMgr.seekBarScrubTolerance; } return this._seekBarScrubTolerance; }; v2.__set__seekBarScrubTolerance = function (s) { this._seekBarScrubTolerance = s; if (this._uiMgr != null) { this._uiMgr.__set__seekBarScrubTolerance(this._seekBarScrubTolerance); } return this.__get__seekBarScrubTolerance(); }; v2.__get__seekToPrevOffset = function () { return this._seekToPrevOffset; }; v2.__set__seekToPrevOffset = function (s) { this._seekToPrevOffset = s; return this.__get__seekToPrevOffset(); }; v2.__get__skin = function () { if (this._uiMgr != null) { this._skin = this._uiMgr.skin; } return this._skin; }; v2.__set__skin = function (s) { this._skin = s; if (this._uiMgr != null) { this._uiMgr.__set__skin(s); } return this.__get__skin(); }; v2.__get__skinAutoHide = function () { if (this._uiMgr != null) { this._skinAutoHide = this._uiMgr.skinAutoHide; } return this._skinAutoHide; }; v2.__set__skinAutoHide = function (b) { if (_global.isLivePreview) { return undefined; } this._skinAutoHide = b; if (this._uiMgr != null) { this._uiMgr.__set__skinAutoHide(b); } return this.__get__skinAutoHide(); }; v2.__get__transform = function () { return this._transform; }; v2.__set__transform = function (s) { this._transform = s; if (this._vp[this._activeVP] != undefined) { this._vp[this._activeVP].transform = this._transform; } return this.__get__transform(); }; v2.__get__state = function () { if (_global.isLivePreview) { return mx.video.FLVPlayback.STOPPED; } if (this._vp[this._activeVP] == undefined) { return mx.video.FLVPlayback.DISCONNECTED; } if (this._activeVP == this._visibleVP && this.__get__scrubbing()) { return mx.video.FLVPlayback.SEEKING; } var v3 = this._vp[this._activeVP].state; if (v3 == mx.video.VideoPlayer.RESIZING) { return mx.video.FLVPlayback.LOADING; } if (this._vpState[this._activeVP].prevState == mx.video.FLVPlayback.LOADING && this._vpState[this._activeVP].autoPlay && v3 == mx.video.FLVPlayback.STOPPED) { return mx.video.FLVPlayback.LOADING; } return v3; }; v2.__get__stateResponsive = function () { if (this._vp[this._activeVP] == undefined) { return false; } return this._vp[this._activeVP].stateResponsive; }; v2.__get__stopButton = function () { if (this._uiMgr != null) { this._stopButton = this._uiMgr.getControl(mx.video.UIManager.STOP_BUTTON); } return this._stopButton; }; v2.__set__stopButton = function (s) { this._stopButton = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.STOP_BUTTON, s); } return this.__get__stopButton(); }; v2.__get__stopped = function () { if (this._vp[this._activeVP] == undefined) { return false; } return this._vp[this._activeVP].state == mx.video.FLVPlayback.STOPPED; }; v2.__get__totalTime = function () { if (_global.isLivePreview) { return 1; } if (this._vp[this._activeVP] == undefined) { return this._totalTime; } else { if (this._vpState[this._activeVP].totalTimeSet) { return this._vpState[this._activeVP].totalTime; } else { return this._vp[this._activeVP].totalTime; } } }; v2.__set__totalTime = function (aTime) { if (this._activeVP == 0 || this._activeVP == undefined) { this._totalTime = aTime; } this._vpState[this._activeVP].totalTime = aTime; this._vpState[this._activeVP].totalTimeSet = true; return this.__get__totalTime(); }; v2.__get__version_1_0_2 = function () { return ''; }; v2.__set__version_1_0_2 = function (v) { return this.__get__version_1_0_2(); }; v2.__get__visible = function () { return this._visible; }; v2.__set__visible = function (v) { this._visible = v; return this.__get__visible(); }; v2.__get__visibleVideoPlayerIndex = function () { return this._visibleVP; }; v2.__set__visibleVideoPlayerIndex = function (i) { if (this._visibleVP == i) { return undefined; } var v3 = this._visibleVP; if (this._vp[i] == undefined) { this.createVideoPlayer(i); } var v5 = this._vp[i].height != this._vp[this._visibleVP].height || this._vp[i].width != this._vp[this._visibleVP].width; this._vp[this._visibleVP].visible = false; this._vp[this._visibleVP].volume = 0; this._visibleVP = i; if (this._firstStreamShown) { this._uiMgr.setupSkinAutoHide(); this._vp[this._visibleVP].visible = true; if (!this.__get__scrubbing()) { this._vp[this._visibleVP].volume = this._volume; } } else { if (this._vp[this._visibleVP].stateResponsive && this._vp[this._visibleVP].state != mx.video.FLVPlayback.DISCONNECTED && this._uiMgr.__get__skinReady()) { this._uiMgr.__set__visible(true); this._uiMgr.setupSkinAutoHide(); this._firstStreamReady = true; this.showFirstStream(); } } if (this._vp[v3].height != this._vp[this._visibleVP].height || this._vp[v3].width != this._vp[this._visibleVP].width) { this.dispatchEvent({'type': 'resize', 'x': this.__get__x(), 'y': this.__get__y(), 'width': this.__get__width(), 'height': this.__get__height(), 'auto': false, 'vp': this._visibleVP}); } this._uiMgr.handleEvent({'type': 'stateChange', 'state': this._vp[this._visibleVP].state, 'vp': this._visibleVP}); this._uiMgr.handleEvent({'type': 'playheadUpdate', 'playheadTime': this._vp[this._visibleVP].playheadTime, 'vp': this._visibleVP}); if (this._vp[this._visibleVP].isRTMP) { this._uiMgr.handleEvent({'type': 'ready', 'vp': this._visibleVP}); } else { this._uiMgr.handleEvent({'type': 'progress', 'bytesLoaded': this._vp[this._visibleVP].bytesLoaded, 'bytesTotal': this._vp[this._visibleVP].bytesTotal, 'vp': this._visibleVP}); } return this.__get__visibleVideoPlayerIndex(); }; v2.__get__volume = function () { return this._volume; }; v2.__set__volume = function (aVol) { if (this._volume == aVol) { return undefined; } this._volume = aVol; if (!this.__get__scrubbing()) { this._vp[this._visibleVP].volume = this._volume; } this.dispatchEvent({'type': 'volumeUpdate', 'volume': aVol}); return this.__get__volume(); }; v2.__get__volumeBar = function () { if (this._uiMgr != null) { this._volumeBar = this._uiMgr.getControl(mx.video.UIManager.VOLUME_BAR); } return this._volumeBar; }; v2.__set__volumeBar = function (s) { this._volumeBar = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.VOLUME_BAR, s); } return this.__get__volumeBar(); }; v2.__get__volumeBarInterval = function () { if (this._uiMgr != null) { this._volumeBarInterval = this._uiMgr.volumeBarInterval; } return this._volumeBarInterval; }; v2.__set__volumeBarInterval = function (s) { this._volumeBarInterval = s; if (this._uiMgr != null) { this._uiMgr.__set__volumeBarInterval(this._volumeBarInterval); } return this.__get__volumeBarInterval(); }; v2.__get__volumeBarScrubTolerance = function () { if (this._uiMgr != null) { this._volumeBarScrubTolerance = this._uiMgr.volumeBarScrubTolerance; } return this._volumeBarScrubTolerance; }; v2.__set__volumeBarScrubTolerance = function (s) { this._volumeBarScrubTolerance = s; if (this._uiMgr != null) { this._uiMgr.__set__volumeBarScrubTolerance(this._volumeBarScrubTolerance); } return this.__get__volumeBarScrubTolerance(); }; v2.__get__width = function () { if (_global.isLivePreview) { return this.__width; } if (this._vp[this._visibleVP] != undefined) { this.__width = this._vp[this._visibleVP].width; } return this.__width; }; v2.__set__width = function (w) { this.setSize(w, this.__get__height()); return this.__get__width(); }; v2.__get__x = function () { return this._x; }; v2.__set__x = function (xpos) { this._x = xpos; return this.__get__x(); }; v2.__get__y = function () { return this._y; }; v2.__set__y = function (ypos) { this._y = ypos; return this.__get__y(); }; v2.createVideoPlayer = function (index) { if (_global.isLivePreview) { return undefined; } var v4 = this.__get__width(); var v5 = this.__get__height(); this._vp[index] = mx.video.VideoPlayer(this.attachMovie('VideoPlayer', String(index), mx.video.FLVPlayback.VP_DEPTH_OFFSET + index)); this._vp[index].setSize(v4, v5); this._topVP = index; this._vp[index].autoRewind = this._autoRewind; this._vp[index].autoSize = this._autoSize; this._vp[index].bufferTime = this._bufferTime; this._vp[index].idleTimeout = this._idleTimeout; this._vp[index].maintainAspectRatio = this._aspectRatio; this._vp[index].playheadUpdateInterval = this._playheadUpdateInterval; this._vp[index].progressInterval = this._progressInterval; this._vp[index].transform = this._transform; this._vp[index].volume = this._volume; if (index == 0) { this._vpState[index] = {'id': index, 'isLive': this._isLive, 'isLiveSet': true, 'totalTime': this._totalTime, 'totalTimeSet': true, 'autoPlay': this._autoPlay}; if (this._contentPath != null && this._contentPath != undefined && this._contentPath != '') { this._vp[index].onEnterFrame = mx.utils.Delegate.create(this, this.doContentPathConnect); } } else { this._vpState[index] = {'id': index, 'isLive': false, 'isLiveSet': true, 'totalTime': 0, 'totalTimeSet': true, 'autoPlay': false}; } this._vp[index].addEventListener('resize', this); this._vp[index].addEventListener('close', this); this._vp[index].addEventListener('complete', this); this._vp[index].addEventListener('cuePoint', this); this._vp[index].addEventListener('playheadUpdate', this); this._vp[index].addEventListener('progress', this); this._vp[index].addEventListener('metadataReceived', this); this._vp[index].addEventListener('stateChange', this); this._vp[index].addEventListener('ready', this); this._vp[index].addEventListener('rewind', this); this._cpMgr[index] = new mx.video.CuePointManager(this, index); this._cpMgr[index].playheadUpdateInterval = this._playheadUpdateInterval; }; v2.createUIManager = function () { this._uiMgr = new mx.video.UIManager(this); this._uiMgr.__set__visible(false); if (this._backButton != null) { this._uiMgr.setControl(mx.video.UIManager.BACK_BUTTON, this._backButton); } if (this._bufferingBar != null) { this._uiMgr.setControl(mx.video.UIManager.BUFFERING_BAR, this._bufferingBar); } this._uiMgr.__set__bufferingBarHidesAndDisablesOthers(this._bufferingBarHides); if (this._forwardButton != null) { this._uiMgr.setControl(mx.video.UIManager.FORWARD_BUTTON, this._forwardButton); } if (this._pauseButton != null) { this._uiMgr.setControl(mx.video.UIManager.PAUSE_BUTTON, this._pauseButton); } if (this._playButton != null) { this._uiMgr.setControl(mx.video.UIManager.PLAY_BUTTON, this._playButton); } if (this._playPauseButton != null) { this._uiMgr.setControl(mx.video.UIManager.PLAY_PAUSE_BUTTON, this._playPauseButton); } if (this._stopButton != null) { this._uiMgr.setControl(mx.video.UIManager.STOP_BUTTON, this._stopButton); } if (this._seekBar != null) { this._uiMgr.setControl(mx.video.UIManager.SEEK_BAR, this._seekBar); } if (this._seekBarInterval != null) { this._uiMgr.__set__seekBarInterval(this._seekBarInterval); } if (this._seekBarScrubTolerance != null) { this._uiMgr.__set__seekBarScrubTolerance(this._seekBarScrubTolerance); } if (this._skin != null) { this._uiMgr.__set__skin(this._skin); } if (this._skinAutoHide != null) { this._uiMgr.__set__skinAutoHide(this._skinAutoHide); } if (this._muteButton != null) { this._uiMgr.setControl(mx.video.UIManager.MUTE_BUTTON, this._muteButton); } if (this._volumeBar != null) { this._uiMgr.setControl(mx.video.UIManager.VOLUME_BAR, this._volumeBar); } if (this._volumeBarInterval != null) { this._uiMgr.__set__volumeBarInterval(this._volumeBarInterval); } if (this._volumeBarScrubTolerance != null) { this._uiMgr.__set__volumeBarScrubTolerance(this._volumeBarScrubTolerance); } }; v2.createLivePreviewMovieClip = function () { this.preview_mc = this.createEmptyMovieClip('preview_mc', 10); this.preview_mc.createEmptyMovieClip('box_mc', 10); this.preview_mc.box_mc.beginFill(0); this.preview_mc.box_mc.moveTo(0, 0); this.preview_mc.box_mc.lineTo(0, 100); this.preview_mc.box_mc.lineTo(100, 100); this.preview_mc.box_mc.lineTo(100, 0); this.preview_mc.box_mc.lineTo(0, 0); this.preview_mc.box_mc.endFill(); this.preview_mc.attachMovie('Icon', 'icon_mc', 20); }; v2.doContentPathConnect = function () { delete this._vp[0].onEnterFrame; this._vp[0].onEnterFrame = undefined; if (_global.isLivePreview) { return undefined; } if (this._vpState[0].autoPlay && this._firstStreamShown) { this._vp[0].play(this._contentPath, this._isLive, this._totalTime); } else { this._vp[0].load(this._contentPath, this._isLive, this._totalTime); } this._vpState[0].isLiveSet = false; this._vpState[0].totalTimeSet = false; }; v2.showFirstStream = function () { this._firstStreamShown = true; this._vp[this._visibleVP].visible = true; if (!this.__get__scrubbing()) { this._vp[this._visibleVP].volume = this._volume; } var v2 = 0; while (v2 < this._vp.length) { if (this._vp[v2] != undefined && this._vp[v2].state == mx.video.FLVPlayback.STOPPED && this._vpState[v2].autoPlay) { this._vp[v2].play(); } ++v2; } }; v2._scrubStart = function () { var v2 = this.__get__playheadTime(); this._vp[this._visibleVP].volume = 0; this.dispatchEvent({'type': 'stateChange', 'state': mx.video.FLVPlayback.SEEKING, 'playheadTime': v2, 'vp': this._visibleVP}); this.dispatchEvent({'type': 'scrubStart', 'state': mx.video.FLVPlayback.SEEKING, 'playheadTime': v2}); }; v2._scrubFinish = function () { var v3 = this.__get__playheadTime(); var v2 = this.__get__state(); this._vp[this._visibleVP].volume = this._volume; if (v2 != mx.video.FLVPlayback.SEEKING) { this.dispatchEvent({'type': 'stateChange', 'state': v2, 'playheadTime': v3, 'vp': this._visibleVP}); } this.dispatchEvent({'type': 'scrubFinish', 'state': v2, 'playheadTime': v3}); }; v2.skinError = function (message) { if (this._firstStreamReady && !this._firstStreamShown) { this.showFirstStream(); } this.dispatchEvent({'type': 'skinError', 'message': message}); }; v2.skinLoaded = function () { if (this._firstStreamReady) { this._uiMgr.__set__visible(true); if (!this._firstStreamShown) { this.showFirstStream(); } } else { if (this._contentPath == null || this._contentPath == '') { this._uiMgr.__set__visible(true); } } this.dispatchEvent({'type': 'skinLoaded'}); }; v1.version = '1.0.2.8'; v1.shortVersion = '1.0.2'; v1.DISCONNECTED = 'disconnected'; v1.STOPPED = 'stopped'; v1.PLAYING = 'playing'; v1.PAUSED = 'paused'; v1.BUFFERING = 'buffering'; v1.LOADING = 'loading'; v1.CONNECTION_ERROR = 'connectionError'; v1.REWINDING = 'rewinding'; v1.SEEKING = 'seeking'; v1.ALL = 'all'; v1.EVENT = 'event'; v1.NAVIGATION = 'navigation'; v1.FLV = 'flv'; v1.ACTIONSCRIPT = 'actionscript'; v1.VP_DEPTH_OFFSET = 100; v1.SEEK_TO_PREV_OFFSET_DEFAULT = 1; v2.addProperty('activeVideoPlayerIndex', v2.__get__activeVideoPlayerIndex, v2.__set__activeVideoPlayerIndex); v2.addProperty('autoPlay', v2.__get__autoPlay, v2.__set__autoPlay); v2.addProperty('autoRewind', v2.__get__autoRewind, v2.__set__autoRewind); v2.addProperty('autoSize', v2.__get__autoSize, v2.__set__autoSize); v2.addProperty('backButton', v2.__get__backButton, v2.__set__backButton); v2.addProperty('bitrate', v2.__get__bitrate, v2.__set__bitrate); v2.addProperty('bufferTime', v2.__get__bufferTime, v2.__set__bufferTime); v2.addProperty('buffering', v2.__get__buffering, function () {}); v2.addProperty('bufferingBar', v2.__get__bufferingBar, v2.__set__bufferingBar); v2.addProperty('bufferingBarHidesAndDisablesOthers', v2.__get__bufferingBarHidesAndDisablesOthers, v2.__set__bufferingBarHidesAndDisablesOthers); v2.addProperty('bytesLoaded', v2.__get__bytesLoaded, function () {}); v2.addProperty('bytesTotal', v2.__get__bytesTotal, function () {}); v2.addProperty('contentPath', v2.__get__contentPath, v2.__set__contentPath); v2.addProperty('cuePoints', function () {}, v2.__set__cuePoints); v2.addProperty('forwardButton', v2.__get__forwardButton, v2.__set__forwardButton); v2.addProperty('height', v2.__get__height, v2.__set__height); v2.addProperty('idleTimeout', v2.__get__idleTimeout, v2.__set__idleTimeout); v2.addProperty('isLive', v2.__get__isLive, v2.__set__isLive); v2.addProperty('isRTMP', v2.__get__isRTMP, function () {}); v2.addProperty('maintainAspectRatio', v2.__get__maintainAspectRatio, v2.__set__maintainAspectRatio); v2.addProperty('metadata', v2.__get__metadata, function () {}); v2.addProperty('metadataLoaded', v2.__get__metadataLoaded, function () {}); v2.addProperty('muteButton', v2.__get__muteButton, v2.__set__muteButton); v2.addProperty('ncMgr', v2.__get__ncMgr, function () {}); v2.addProperty('pauseButton', v2.__get__pauseButton, v2.__set__pauseButton); v2.addProperty('paused', v2.__get__paused, function () {}); v2.addProperty('playButton', v2.__get__playButton, v2.__set__playButton); v2.addProperty('playPauseButton', v2.__get__playPauseButton, v2.__set__playPauseButton); v2.addProperty('playheadPercentage', v2.__get__playheadPercentage, v2.__set__playheadPercentage); v2.addProperty('playheadTime', v2.__get__playheadTime, v2.__set__playheadTime); v2.addProperty('playheadUpdateInterval', v2.__get__playheadUpdateInterval, v2.__set__playheadUpdateInterval); v2.addProperty('playing', v2.__get__playing, function () {}); v2.addProperty('preferredHeight', v2.__get__preferredHeight, function () {}); v2.addProperty('preferredWidth', v2.__get__preferredWidth, function () {}); v2.addProperty('progressInterval', v2.__get__progressInterval, v2.__set__progressInterval); v2.addProperty('scaleX', v2.__get__scaleX, v2.__set__scaleX); v2.addProperty('scaleY', v2.__get__scaleY, v2.__set__scaleY); v2.addProperty('scrubbing', v2.__get__scrubbing, function () {}); v2.addProperty('seekBar', v2.__get__seekBar, v2.__set__seekBar); v2.addProperty('seekBarInterval', v2.__get__seekBarInterval, v2.__set__seekBarInterval); v2.addProperty('seekBarScrubTolerance', v2.__get__seekBarScrubTolerance, v2.__set__seekBarScrubTolerance); v2.addProperty('seekToPrevOffset', v2.__get__seekToPrevOffset, v2.__set__seekToPrevOffset); v2.addProperty('skin', v2.__get__skin, v2.__set__skin); v2.addProperty('skinAutoHide', v2.__get__skinAutoHide, v2.__set__skinAutoHide); v2.addProperty('state', v2.__get__state, function () {}); v2.addProperty('stateResponsive', v2.__get__stateResponsive, function () {}); v2.addProperty('stopButton', v2.__get__stopButton, v2.__set__stopButton); v2.addProperty('stopped', v2.__get__stopped, function () {}); v2.addProperty('totalTime', v2.__get__totalTime, v2.__set__totalTime); v2.addProperty('transform', v2.__get__transform, v2.__set__transform); v2.addProperty('version_1_0_2', v2.__get__version_1_0_2, v2.__set__version_1_0_2); v2.addProperty('visible', v2.__get__visible, v2.__set__visible); v2.addProperty('visibleVideoPlayerIndex', v2.__get__visibleVideoPlayerIndex, v2.__set__visibleVideoPlayerIndex); v2.addProperty('volume', v2.__get__volume, v2.__set__volume); v2.addProperty('volumeBar', v2.__get__volumeBar, v2.__set__volumeBar); v2.addProperty('volumeBarInterval', v2.__get__volumeBarInterval, v2.__set__volumeBarInterval); v2.addProperty('volumeBarScrubTolerance', v2.__get__volumeBarScrubTolerance, v2.__set__volumeBarScrubTolerance); v2.addProperty('width', v2.__get__width, v2.__set__width); v2.addProperty('x', v2.__get__x, v2.__set__x); v2.addProperty('y', v2.__get__y, v2.__set__y); ASSetPropFlags(mx.video.FLVPlayback.prototype, null, 1); } #endinitclip } movieClip 2713 __Packages.mx.video.VideoPlayer { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.VideoPlayer) { var v1 = function () { super(); mx.events.EventDispatcher.initialize(this); this._state = mx.video.VideoPlayer.DISCONNECTED; this._cachedState = this._state; this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; this._cachedPlayheadTime = 0; this._metadata = null; this._startingPlay = false; this._invalidSeekTime = false; this._invalidSeekRecovery = false; this._currentPos = 0; this._atEnd = false; this._cmdQueue = new Array(); this._readyDispatched = false; this._autoResizeDone = false; this._lastUpdateTime = -1; this._sawSeekNotify = false; this._updateTimeIntervalID = 0; this._updateTimeInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_TIME_INTERVAL; this._updateProgressIntervalID = 0; this._updateProgressInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_PROGRESS_INTERVAL; this._idleTimeoutIntervalID = 0; this._idleTimeoutInterval = mx.video.VideoPlayer.DEFAULT_IDLE_TIMEOUT_INTERVAL; this._autoResizeIntervalID = 0; this._rtmpDoStopAtEndIntervalID = 0; this._rtmpDoSeekIntervalID = 0; this._httpDoSeekIntervalID = 0; this._httpDoSeekCount = 0; this._finishAutoResizeIntervalID = 0; this._delayedBufferingIntervalID = 0; this._delayedBufferingInterval = mx.video.VideoPlayer.HTTP_DELAYED_BUFFERING_INTERVAL; if (this._isLive == undefined) { this._isLive = false; } if (this._autoSize == undefined) { this._autoSize = false; } if (this._aspectRatio == undefined) { this._aspectRatio = true; } if (this._autoPlay == undefined) { this._autoPlay = true; } if (this._autoRewind == undefined) { this._autoRewind = true; } if (this._bufferTime == undefined) { this._bufferTime = 0.1; } if (this._volume == undefined) { this._volume = 100; } this._sound = new Sound(this); this._sound.setVolume(this._volume); this.__visible = true; this._hiddenForResize = false; this._hiddenForResizeMetadataDelay = 0; this._contentPath = ''; }; mx.video.VideoPlayer = v1; mx.video.VideoPlayer extends MovieClip; var v2 = v1.prototype; v2.setSize = function (w, h) { if (w == this._video._width && h == this._video._height || this._autoSize) { return undefined; } this._video._width = w; this._video._height = h; if (this._aspectRatio) { this.startAutoResize(); } }; v2.setScale = function (xs, ys) { if (xs == this._video._xscale && ys == this._video._yscale || this._autoSize) { return undefined; } this._video._xscale = xs; this._video._yscale = ys; if (this._aspectRatio) { this.startAutoResize(); } }; v2.play = function (url, isLive, totalTime) { if (url != null) { if (this._state == mx.video.VideoPlayer.EXEC_QUEUED_CMD) { this._state = this._cachedState; } else { if (!this.__get__stateResponsive() && this._state != mx.video.VideoPlayer.CONNECTION_ERROR) { this.queueCmd(mx.video.VideoPlayer.PLAY, url, isLive, totalTime); return undefined; } else { this.execQueuedCmds(); } } this._autoPlay = true; this._load(url, isLive, totalTime); return undefined; } if (!this.isXnOK()) { if (this._state == mx.video.VideoPlayer.CONNECTION_ERROR || this._ncMgr == null || this._ncMgr.getNetConnection() == null) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); } else { this.flushQueuedCmds(); this.queueCmd(mx.video.VideoPlayer.PLAY); this.setState(mx.video.VideoPlayer.LOADING); this._cachedState = mx.video.VideoPlayer.LOADING; this._ncMgr.reconnect(); return undefined; } } else { if (this._state == mx.video.VideoPlayer.EXEC_QUEUED_CMD) { this._state = this._cachedState; } else { if (!this.__get__stateResponsive()) { this.queueCmd(mx.video.VideoPlayer.PLAY); return undefined; } else { this.execQueuedCmds(); } } } if (this._ns == null) { this._createStream(); this._video.attachVideo(this._ns); this.attachAudio(this._ns); } switch (this._state) { case mx.video.VideoPlayer.BUFFERING: if (this._ncMgr.isRTMP()) { this._play(0); if (this._atEnd) { this._atEnd = false; this._currentPos = 0; this.setState(mx.video.VideoPlayer.REWINDING); } else { if (this._currentPos > 0) { this._seek(this._currentPos); this._currentPos = 0; } } } case mx.video.VideoPlayer.PLAYING: return undefined; case mx.video.VideoPlayer.STOPPED: if (this._ncMgr.isRTMP()) { if (this._isLive) { this._play(-1); this.setState(mx.video.VideoPlayer.BUFFERING); } else { this._play(0); if (this._atEnd) { this._atEnd = false; this._currentPos = 0; this._state = mx.video.VideoPlayer.BUFFERING; this.setState(mx.video.VideoPlayer.REWINDING); } else { if (this._currentPos > 0) { this._seek(this._currentPos); this._currentPos = 0; this.setState(mx.video.VideoPlayer.BUFFERING); } else { this.setState(mx.video.VideoPlayer.BUFFERING); } } } } else { this._pause(false); if (this._atEnd) { this._atEnd = false; this._seek(0); this._state = mx.video.VideoPlayer.BUFFERING; this.setState(mx.video.VideoPlayer.REWINDING); } else { if (this._bufferState == mx.video.VideoPlayer.BUFFER_EMPTY) { this.setState(mx.video.VideoPlayer.BUFFERING); } else { this.setState(mx.video.VideoPlayer.PLAYING); } } } break; case mx.video.VideoPlayer.PAUSED: this._pause(false); if (!this._ncMgr.isRTMP()) { if (this._bufferState == mx.video.VideoPlayer.BUFFER_EMPTY) { this.setState(mx.video.VideoPlayer.BUFFERING); } else { this.setState(mx.video.VideoPlayer.PLAYING); } } else { this.setState(mx.video.VideoPlayer.BUFFERING); } } }; v2.load = function (url, isLive, totalTime) { if (url == null) { throw new Error('null url sent to VideoPlayer.load'); } if (this._state == mx.video.VideoPlayer.EXEC_QUEUED_CMD) { this._state = this._cachedState; } else { if (!this.__get__stateResponsive() && this._state != mx.video.VideoPlayer.CONNECTION_ERROR) { this.queueCmd(mx.video.VideoPlayer.LOAD, url, isLive, totalTime); return undefined; } else { this.execQueuedCmds(); } } this._autoPlay = false; this._load(url, isLive, totalTime); }; v2._load = function (url, isLive, totalTime) { this._prevVideoWidth = this.videoWidth; if (this._prevVideoWidth == undefined) { this._prevVideoWidth = this._video.width; if (this._prevVideoWidth == undefined) { this._prevVideoWidth = 0; } } this._prevVideoHeight = this.videoHeight; if (this._prevVideoHeight == undefined) { this._prevVideoHeight = this._video.height; if (this._prevVideoHeight == undefined) { this._prevVideoHeight = 0; } } this._autoResizeDone = false; this._cachedPlayheadTime = 0; this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; this._metadata = null; this._startingPlay = false; this._invalidSeekTime = false; this._invalidSeekRecovery = false; this._isLive = (isLive == undefined) ? false : isLive; this._contentPath = url; this._currentPos = 0; this._streamLength = totalTime; this._atEnd = false; this._videoWidth = undefined; this._videoHeight = undefined; this._readyDispatched = false; this._lastUpdateTime = -1; this._sawSeekNotify = false; clearInterval(this._updateTimeIntervalID); this._updateTimeIntervalID = 0; clearInterval(this._updateProgressIntervalID); this._updateProgressIntervalID = 0; clearInterval(this._idleTimeoutIntervalID); this._idleTimeoutIntervalID = 0; clearInterval(this._autoResizeIntervalID); this._autoResizeIntervalID = 0; clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; clearInterval(this._rtmpDoSeekIntervalID); this._rtmpDoSeekIntervalID = 0; clearInterval(this._httpDoSeekIntervalID); this._httpDoSeekIntervalID = 0; clearInterval(this._finishAutoResizeIntervalID); this._finishAutoResizeIntervalID = 0; clearInterval(this._delayedBufferingIntervalID); this._delayedBufferingIntervalID = 0; this.closeNS(false); if (this._ncMgr == null) { this.createINCManager(); } var v2 = this._ncMgr.connectToURL(this._contentPath); this.setState(mx.video.VideoPlayer.LOADING); this._cachedState = mx.video.VideoPlayer.LOADING; if (v2) { this._createStream(); this._setUpStream(); } if (!this._ncMgr.isRTMP()) { clearInterval(this._updateProgressIntervalID); this._updateProgressIntervalID = setInterval(this, 'doUpdateProgress', this._updateProgressInterval); } }; v2.pause = function () { if (!this.isXnOK()) { if (this._state == mx.video.VideoPlayer.CONNECTION_ERROR || this._ncMgr == null || this._ncMgr.getNetConnection() == null) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); } else { return undefined; } } else { if (this._state == mx.video.VideoPlayer.EXEC_QUEUED_CMD) { this._state = this._cachedState; } else { if (!this.__get__stateResponsive()) { this.queueCmd(mx.video.VideoPlayer.PAUSE); return undefined; } else { this.execQueuedCmds(); } } } if (this._state == mx.video.VideoPlayer.PAUSED || this._state == mx.video.VideoPlayer.STOPPED || this._ns == null) { return undefined; } this._pause(true); this.setState(mx.video.VideoPlayer.PAUSED); }; v2.stop = function () { if (!this.isXnOK()) { if (this._state == mx.video.VideoPlayer.CONNECTION_ERROR || this._ncMgr == null || this._ncMgr.getNetConnection() == null) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); } else { return undefined; } } else { if (this._state == mx.video.VideoPlayer.EXEC_QUEUED_CMD) { this._state = this._cachedState; } else { if (!this.__get__stateResponsive()) { this.queueCmd(mx.video.VideoPlayer.STOP); return undefined; } else { this.execQueuedCmds(); } } } if (this._state == mx.video.VideoPlayer.STOPPED || this._ns == null) { return undefined; } if (this._ncMgr.isRTMP()) { if (this._autoRewind && !this._isLive) { this._currentPos = 0; this._play(0, 0); this._state = mx.video.VideoPlayer.STOPPED; this.setState(mx.video.VideoPlayer.REWINDING); } else { this.closeNS(true); this.setState(mx.video.VideoPlayer.STOPPED); } } else { this._pause(true); if (this._autoRewind) { this._seek(0); this._state = mx.video.VideoPlayer.STOPPED; this.setState(mx.video.VideoPlayer.REWINDING); } else { this.setState(mx.video.VideoPlayer.STOPPED); } } }; v2.seek = function (time) { if (this._invalidSeekTime) { return undefined; } if (isNaN(time) || time < 0) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } if (!this.isXnOK()) { if (this._state == mx.video.VideoPlayer.CONNECTION_ERROR || this._ncMgr == null || this._ncMgr.getNetConnection() == null) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); } else { this.flushQueuedCmds(); this.queueCmd(mx.video.VideoPlayer.SEEK, null, false, time); this.setState(mx.video.VideoPlayer.LOADING); this._cachedState = mx.video.VideoPlayer.LOADING; this._ncMgr.reconnect(); return undefined; } } else { if (this._state == mx.video.VideoPlayer.EXEC_QUEUED_CMD) { this._state = this._cachedState; } else { if (!this.__get__stateResponsive()) { this.queueCmd(mx.video.VideoPlayer.SEEK, null, false, time); return undefined; } else { this.execQueuedCmds(); } } } if (this._ns == null) { this._createStream(); this._video.attachVideo(this._ns); this.attachAudio(this._ns); } if (this._atEnd && time < this.__get__playheadTime()) { this._atEnd = false; } switch (this._state) { case mx.video.VideoPlayer.PLAYING: this._state = mx.video.VideoPlayer.BUFFERING; case mx.video.VideoPlayer.BUFFERING: case mx.video.VideoPlayer.PAUSED: this._seek(time); this.setState(mx.video.VideoPlayer.SEEKING); break; case mx.video.VideoPlayer.STOPPED: if (this._ncMgr.isRTMP()) { this._play(0); this._pause(true); } this._seek(time); this._state = mx.video.VideoPlayer.PAUSED; this.setState(mx.video.VideoPlayer.SEEKING); } }; v2.close = function () { this.closeNS(true); if (this._ncMgr != null && this._ncMgr.isRTMP()) { this._ncMgr.close(); } this.setState(mx.video.VideoPlayer.DISCONNECTED); this.dispatchEvent({'type': 'close', 'state': this._state, 'playheadTime': this.__get__playheadTime()}); }; v2.__get__x = function () { return this._x; }; v2.__set__x = function (xpos) { this._x = xpos; return this.__get__x(); }; v2.__get__y = function () { return this._y; }; v2.__set__y = function (ypos) { this._y = ypos; return this.__get__y(); }; v2.__get__scaleX = function () { return this._video._xscale; }; v2.__set__scaleX = function (xs) { this.setScale(xs, this.__get__scaleY()); return this.__get__scaleX(); }; v2.__get__scaleY = function () { return this._video._yscale; }; v2.__set__scaleY = function (ys) { this.setScale(this.__get__scaleX(), ys); return this.__get__scaleY(); }; v2.__get__width = function () { return this._video._width; }; v2.__set__width = function (w) { this.setSize(w, this._video._height); return this.__get__width(); }; v2.__get__height = function () { return this._video._height; }; v2.__set__height = function (h) { this.setSize(this._video._width, h); return this.__get__height(); }; v2.__get__videoWidth = function () { if (this._readyDispatched) { this._videoWidth = this._video.width; } return this._videoWidth; }; v2.__get__videoHeight = function () { if (this._readyDispatched) { this._videoHeight = this._video.height; } return this._videoHeight; }; v2.__get__visible = function () { if (!this._hiddenForResize) { this.__visible = this._visible; } return this.__visible; }; v2.__set__visible = function (v) { this.__visible = v; if (!this._hiddenForResize) { this._visible = this.__visible; } return this.__get__visible(); }; v2.__get__autoSize = function () { return this._autoSize; }; v2.__set__autoSize = function (flag) { if (this._autoSize != flag) { this._autoSize = flag; if (this._autoSize) { this.startAutoResize(); } } return this.__get__autoSize(); }; v2.__get__maintainAspectRatio = function () { return this._aspectRatio; }; v2.__set__maintainAspectRatio = function (flag) { if (this._aspectRatio != flag) { this._aspectRatio = flag; if (this._aspectRatio && !this._autoSize) { this.startAutoResize(); } } return this.__get__maintainAspectRatio(); }; v2.__get__autoRewind = function () { return this._autoRewind; }; v2.__set__autoRewind = function (flag) { this._autoRewind = flag; return this.__get__autoRewind(); }; v2.__get__playheadTime = function () { var v2 = (this._ns == null) ? this._currentPos : this._ns.time; if (this._metadata.audiodelay != undefined) { v2 -= this._metadata.audiodelay; if (v2 < 0) { v2 = 0; } } return v2; }; v2.__set__playheadTime = function (position) { this.seek(position); return this.__get__playheadTime(); }; v2.__get__url = function () { return this._contentPath; }; v2.__get__volume = function () { return this._volume; }; v2.__set__volume = function (aVol) { this._volume = aVol; if (!this._hiddenForResize) { this._sound.setVolume(this._volume); } return this.__get__volume(); }; v2.__get__transform = function () { return this._sound.getTransform(); }; v2.__set__transform = function (s) { this._sound.setTransform(s); return this.__get__transform(); }; v2.__get__isRTMP = function () { if (this._ncMgr == null) { return undefined; } return this._ncMgr.isRTMP(); }; v2.__get__isLive = function () { return this._isLive; }; v2.__get__state = function () { return this._state; }; v2.__get__stateResponsive = function () { switch (this._state) { return false; case mx.video.VideoPlayer.DISCONNECTED: case mx.video.VideoPlayer.STOPPED: case mx.video.VideoPlayer.PLAYING: case mx.video.VideoPlayer.PAUSED: case mx.video.VideoPlayer.BUFFERING: return true; } return false; }; v2.__get__bytesLoaded = function () { if (this._ns == null || this._ncMgr.isRTMP()) { return -1; } return this._ns.bytesLoaded; }; v2.__get__bytesTotal = function () { if (this._ns == null || this._ncMgr.isRTMP()) { return -1; } return this._ns.bytesTotal; }; v2.__get__totalTime = function () { return this._streamLength; }; v2.__get__bufferTime = function () { return this._bufferTime; }; v2.__set__bufferTime = function (aTime) { this._bufferTime = aTime; if (this._ns != null) { this._ns.setBufferTime(this._bufferTime); } return this.__get__bufferTime(); }; v2.__get__idleTimeout = function () { return this._idleTimeoutInterval; }; v2.__set__idleTimeout = function (aTime) { this._idleTimeoutInterval = aTime; if (this._idleTimeoutIntervalID > 0) { clearInterval(this._idleTimeoutIntervalID); this._idleTimeoutIntervalID = setInterval(this, 'doIdleTimeout', this._idleTimeoutInterval); } return this.__get__idleTimeout(); }; v2.__get__playheadUpdateInterval = function () { return this._updateTimeInterval; }; v2.__set__playheadUpdateInterval = function (aTime) { this._updateTimeInterval = aTime; if (this._updateTimeIntervalID > 0) { clearInterval(this._updateTimeIntervalID); this._updateTimeIntervalID = setInterval(this, 'doUpdateTime', this._updateTimeInterval); } return this.__get__playheadUpdateInterval(); }; v2.__get__progressInterval = function () { return this._updateProgressInterval; }; v2.__set__progressInterval = function (aTime) { this._updateProgressInterval = aTime; if (this._updateProgressIntervalID > 0) { clearInterval(this._updateProgressIntervalID); this._updateProgressIntervalID = setInterval(this, 'doUpdateProgress', this._updateProgressInterval); } return this.__get__progressInterval(); }; v2.__get__ncMgr = function () { if (this._ncMgr == null) { this.createINCManager(); } return this._ncMgr; }; v2.__get__metadata = function () { return this._metadata; }; v2.doUpdateTime = function () { var v2 = this.__get__playheadTime(); switch (this._state) { if (this._state !== mx.video.VideoPlayer.CONNECTION_ERROR) { } else { case mx.video.VideoPlayer.STOPPED: case mx.video.VideoPlayer.PAUSED: case mx.video.VideoPlayer.DISCONNECTED: clearInterval(this._updateTimeIntervalID); this._updateTimeIntervalID = 0; } } if (this._lastUpdateTime != v2) { this.dispatchEvent({'type': 'playheadUpdate', 'state': this._state, 'playheadTime': v2}); this._lastUpdateTime = v2; } }; v2.doUpdateProgress = function () { if (this._ns == null) { return undefined; } if (this._ns.bytesTotal >= 0) { this.dispatchEvent({'type': 'progress', 'bytesLoaded': this._ns.bytesLoaded, 'bytesTotal': this._ns.bytesTotal}); } if (this._state == mx.video.VideoPlayer.DISCONNECTED || this._state == mx.video.VideoPlayer.CONNECTION_ERROR || this._ns.bytesLoaded == this._ns.bytesTotal) { clearInterval(this._updateProgressIntervalID); this._updateProgressIntervalID = 0; } }; v2.rtmpOnStatus = function (info) { if (this._state == mx.video.VideoPlayer.CONNECTION_ERROR) { return undefined; } switch (info.code) { case 'NetStream.Play.Stop': if (this._startingPlay) { return undefined; } switch (this._state) { case mx.video.VideoPlayer.RESIZING: if (this._hiddenForResize) { this.finishAutoResize(); } break; break; case mx.video.VideoPlayer.LOADING: case mx.video.VideoPlayer.STOPPED: case mx.video.VideoPlayer.PAUSED: default: this._sawPlayStop = true; } break; case 'NetStream.Buffer.Empty': if (this._bufferState !== mx.video.VideoPlayer.BUFFER_FULL) { } else { if (this._sawPlayStop) { this.rtmpDoStopAtEnd(true); } else { if (this._state == mx.video.VideoPlayer.PLAYING) { this.setState(mx.video.VideoPlayer.BUFFERING); } } } this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; break; case 'NetStream.Buffer.Flush': if (this._sawSeekNotify && this._state == mx.video.VideoPlayer.SEEKING) { this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; this.setStateFromCachedState(); this.doUpdateTime(); } if (this._sawPlayStop && (this._bufferState == mx.video.VideoPlayer.BUFFER_EMPTY || this._bufferTime <= 0.1 && this._ns.bufferLength <= 0.1)) { this._cachedPlayheadTime = this.playheadTime; clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = setInterval(this, 'rtmpDoStopAtEnd', mx.video.VideoPlayer.RTMP_DO_STOP_AT_END_INTERVAL); } switch (this._bufferState) { case mx.video.VideoPlayer.BUFFER_EMPTY: if (!this._hiddenForResize) { if (this._state == mx.video.VideoPlayer.LOADING && this._cachedState == mx.video.VideoPlayer.PLAYING || this._state == mx.video.VideoPlayer.BUFFERING) { this.setState(mx.video.VideoPlayer.PLAYING); } else { if (this._cachedState == mx.video.VideoPlayer.BUFFERING) { this._cachedState = mx.video.VideoPlayer.PLAYING; } } } this._bufferState = mx.video.VideoPlayer.BUFFER_FLUSH; break; default: if (this._state == mx.video.VideoPlayer.BUFFERING) { this.setStateFromCachedState(); } } break; case 'NetStream.Buffer.Full': if (this._sawSeekNotify && this._state == mx.video.VideoPlayer.SEEKING) { this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; this.setStateFromCachedState(); this.doUpdateTime(); } switch (this._bufferState) { case mx.video.VideoPlayer.BUFFER_EMPTY: this._bufferState = mx.video.VideoPlayer.BUFFER_FULL; if (!this._hiddenForResize) { if (this._state == mx.video.VideoPlayer.LOADING && this._cachedState == mx.video.VideoPlayer.PLAYING || this._state == mx.video.VideoPlayer.BUFFERING) { this.setState(mx.video.VideoPlayer.PLAYING); } else { if (this._cachedState == mx.video.VideoPlayer.BUFFERING) { this._cachedState = mx.video.VideoPlayer.PLAYING; } } if (this._rtmpDoStopAtEndIntervalID != 0) { this._sawPlayStop = true; clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; } } break; case mx.video.VideoPlayer.BUFFER_FLUSH: this._bufferState = mx.video.VideoPlayer.BUFFER_FULL; if (this._rtmpDoStopAtEndIntervalID != 0) { this._sawPlayStop = true; clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; } } if (this._state == mx.video.VideoPlayer.BUFFERING) { this.setStateFromCachedState(); } break; case 'NetStream.Pause.Notify': if (this._state == mx.video.VideoPlayer.RESIZING && this._hiddenForResize) { this.finishAutoResize(); } break; case 'NetStream.Unpause.Notify': if (this._state == mx.video.VideoPlayer.PAUSED) { this._state = mx.video.VideoPlayer.PLAYING; this.setState(mx.video.VideoPlayer.BUFFERING); } else { this._cachedState = mx.video.VideoPlayer.PLAYING; } break; case 'NetStream.Play.Start': clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; if (this._startingPlay) { this._startingPlay = false; this._cachedPlayheadTime = this.playheadTime; } else { if (this._state == mx.video.VideoPlayer.PLAYING) { this.setState(mx.video.VideoPlayer.BUFFERING); } } break; case 'NetStream.Play.Reset': clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; if (this._state == mx.video.VideoPlayer.REWINDING) { clearInterval(this._rtmpDoSeekIntervalID); this._rtmpDoSeekIntervalID = 0; if (this.__get__playheadTime() == 0 || this.__get__playheadTime() < this._cachedPlayheadTime) { this.setStateFromCachedState(); } else { this._cachedPlayheadTime = this.playheadTime; this._rtmpDoSeekIntervalID = setInterval(this, 'rtmpDoSeek', mx.video.VideoPlayer.RTMP_DO_SEEK_INTERVAL); } } break; case 'NetStream.Seek.Notify': if (this.__get__playheadTime() != this._cachedPlayheadTime) { this.setStateFromCachedState(); this.doUpdateTime(); } else { this._sawSeekNotify = true; if (this._rtmpDoSeekIntervalID == 0) { this._rtmpDoSeekIntervalID = setInterval(this, 'rtmpDoSeek', mx.video.VideoPlayer.RTMP_DO_SEEK_INTERVAL); } } break; break; case 'Netstream.Play.UnpublishNotify': break; case 'Netstream.Play.PublishNotify': case 'NetStream.Play.StreamNotFound': this.closeNS(false); if (!this._ncMgr.connectAgain()) { this.setState(mx.video.VideoPlayer.CONNECTION_ERROR); } break; case 'NetStream.Play.Failed': case 'NetStream.Failed': case 'NetStream.Play.FileStructureInvalid': case 'NetStream.Play.NoSupportedTrackFound': this.setState(mx.video.VideoPlayer.CONNECTION_ERROR); } }; v2.httpOnStatus = function (info) { switch (info.code) { case 'NetStream.Play.Stop': clearInterval(this._delayedBufferingIntervalID); this._delayedBufferingIntervalID = 0; if (this._invalidSeekTime) { this._invalidSeekTime = false; this._invalidSeekRecovery = true; this.setState(this._cachedState); this.seek(this.__get__playheadTime()); } else { switch (this._state) { case mx.video.VideoPlayer.SEEKING: this.httpDoSeek(); case mx.video.VideoPlayer.PLAYING: case mx.video.VideoPlayer.BUFFERING: this.httpDoStopAtEnd(); } } break; case 'NetStream.Seek.InvalidTime': if (this._invalidSeekRecovery) { this._invalidSeekTime = false; this._invalidSeekRecovery = false; this.setState(this._cachedState); this.seek(0); } else { this._invalidSeekTime = true; } break; case 'NetStream.Buffer.Empty': this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; if (this._state == mx.video.VideoPlayer.PLAYING) { clearInterval(this._delayedBufferingIntervalID); this._delayedBufferingIntervalID = setInterval(this, 'doDelayedBuffering', this._delayedBufferingInterval); } break; case 'NetStream.Buffer.Full': case 'NetStream.Buffer.Flush': clearInterval(this._delayedBufferingIntervalID); this._delayedBufferingIntervalID = 0; this._bufferState = mx.video.VideoPlayer.BUFFER_FULL; if (!this._hiddenForResize) { if (this._state == mx.video.VideoPlayer.LOADING && this._cachedState == mx.video.VideoPlayer.PLAYING || this._state == mx.video.VideoPlayer.BUFFERING) { this.setState(mx.video.VideoPlayer.PLAYING); } else { if (this._cachedState == mx.video.VideoPlayer.BUFFERING) { this._cachedState = mx.video.VideoPlayer.PLAYING; } } } break; case 'NetStream.Seek.Notify': this._invalidSeekRecovery = false; switch (this._state) { if (this._state !== mx.video.VideoPlayer.REWINDING) { } else { case mx.video.VideoPlayer.SEEKING: if (this._httpDoSeekIntervalID == 0) { this._httpDoSeekCount = 0; this._httpDoSeekIntervalID = setInterval(this, 'httpDoSeek', mx.video.VideoPlayer.HTTP_DO_SEEK_INTERVAL); } } } break; case 'NetStream.Play.StreamNotFound': case 'NetStream.Play.FileStructureInvalid': case 'NetStream.Play.NoSupportedTrackFound': this.setState(mx.video.VideoPlayer.CONNECTION_ERROR); } }; v2.ncConnected = function () { if (this._ncMgr == null || this._ncMgr.getNetConnection() == null) { this.setState(mx.video.VideoPlayer.CONNECTION_ERROR); } else { if (this._ns == null) { this._createStream(); this._setUpStream(); } } }; v2.ncReconnected = function () { if (this._ncMgr == null || this._ncMgr.getNetConnection() == null) { this.setState(mx.video.VideoPlayer.CONNECTION_ERROR); } else { this._ns = null; this._state = mx.video.VideoPlayer.STOPPED; this.execQueuedCmds(); } }; v2.onMetaData = function (info) { if (this._metadata != null) { return undefined; } this._metadata = info; if (this._streamLength == null || this._streamLength <= 0) { this._streamLength = info.duration; } if (isNaN(this._videoWidth) || this._videoWidth <= 0) { this._videoWidth = info.width; } if (isNaN(this._videoHeight) || this._videoHeight <= 0) { this._videoHeight = info.height; } this.dispatchEvent({'type': 'metadataReceived', 'info': info}); }; v2.onCuePoint = function (info) { if (!this._hiddenForResize || !isNaN(this._hiddenRewindPlayheadTime) && this.__get__playheadTime() < this._hiddenRewindPlayheadTime) { this.dispatchEvent({'type': 'cuePoint', 'info': info}); } }; v2.setState = function (s) { if (s == this._state) { return undefined; } this._hiddenRewindPlayheadTime = undefined; this._cachedState = this._state; this._cachedPlayheadTime = this.playheadTime; this._state = s; var v2 = this._state; this.dispatchEvent({'type': 'stateChange', 'state': v2, 'playheadTime': this.__get__playheadTime()}); if (!this._readyDispatched) { switch (v2) { if (v2 !== mx.video.VideoPlayer.BUFFERING) { } else { case mx.video.VideoPlayer.STOPPED: case mx.video.VideoPlayer.PLAYING: case mx.video.VideoPlayer.PAUSED: this._readyDispatched = true; this.dispatchEvent({'type': 'ready', 'state': v2, 'playheadTime': this.__get__playheadTime()}); } } } if (this._cachedState !== mx.video.VideoPlayer.REWINDING) { } else { this.dispatchEvent({'type': 'rewind', 'state': v2, 'playheadTime': this.__get__playheadTime()}); if (this._ncMgr.isRTMP() && v2 == mx.video.VideoPlayer.STOPPED) { this.closeNS(); } } switch (v2) { case mx.video.VideoPlayer.STOPPED: case mx.video.VideoPlayer.PAUSED: if (this._ncMgr.isRTMP() && this._idleTimeoutIntervalID == 0) { this._idleTimeoutIntervalID = setInterval(this, 'doIdleTimeout', this._idleTimeoutInterval); } break; case mx.video.VideoPlayer.SEEKING: case mx.video.VideoPlayer.REWINDING: this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; case mx.video.VideoPlayer.PLAYING: case mx.video.VideoPlayer.BUFFERING: if (this._updateTimeIntervalID == 0) { this._updateTimeIntervalID = setInterval(this, 'doUpdateTime', this._updateTimeInterval); } case mx.video.VideoPlayer.LOADING: case mx.video.VideoPlayer.RESIZING: clearInterval(this._idleTimeoutIntervalID); this._idleTimeoutIntervalID = 0; } this.execQueuedCmds(); }; v2.setStateFromCachedState = function () { switch (this._cachedState) { case mx.video.VideoPlayer.PLAYING: case mx.video.VideoPlayer.PAUSED: this.setState(this._cachedState); break; case mx.video.VideoPlayer.BUFFERING: if (this._bufferState == mx.video.VideoPlayer.BUFFER_EMPTY) { this.setState(mx.video.VideoPlayer.BUFFERING); } else { this.setState(this._cachedState); } break; default: this.setState(mx.video.VideoPlayer.STOPPED); } }; v2.createINCManager = function () { if (this.ncMgrClassName == null) { this.ncMgrClassName = mx.video.VideoPlayer.DEFAULT_INCMANAGER; } var ncMgrConstructor = eval(this.ncMgrClassName); this._ncMgr = new ncMgrConstructor(); this._ncMgr.setVideoPlayer(this); }; v2.rtmpDoStopAtEnd = function (force) { if (this._rtmpDoStopAtEndIntervalID > 0) { switch (this._state) { if (this._state !== mx.video.VideoPlayer.CONNECTION_ERROR) { } else { case mx.video.VideoPlayer.DISCONNECTED: clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; return undefined; } } if (force || this._cachedPlayheadTime == this.__get__playheadTime()) { clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; } else { this._cachedPlayheadTime = this.playheadTime; return undefined; } } this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; this._atEnd = true; this.setState(mx.video.VideoPlayer.STOPPED); if (this._state != mx.video.VideoPlayer.STOPPED) { return undefined; } this.doUpdateTime(); if (this._state != mx.video.VideoPlayer.STOPPED) { return undefined; } this.dispatchEvent({'type': 'complete', 'state': this._state, 'playheadTime': this.__get__playheadTime()}); if (this._state != mx.video.VideoPlayer.STOPPED) { return undefined; } if (this._autoRewind && !this._isLive && this.__get__playheadTime() != 0) { this._atEnd = false; this._currentPos = 0; this._play(0, 0); this.setState(mx.video.VideoPlayer.REWINDING); } else { this.closeNS(); } }; v2.rtmpDoSeek = function () { if (this._state != mx.video.VideoPlayer.REWINDING && this._state != mx.video.VideoPlayer.SEEKING) { clearInterval(this._rtmpDoSeekIntervalID); this._rtmpDoSeekIntervalID = 0; this._sawSeekNotify = false; } else { if (this.__get__playheadTime() != this._cachedPlayheadTime) { clearInterval(this._rtmpDoSeekIntervalID); this._rtmpDoSeekIntervalID = 0; this._sawSeekNotify = false; this.setStateFromCachedState(); this.doUpdateTime(); } } }; v2.httpDoStopAtEnd = function () { this._atEnd = true; if (this._streamLength == null || this._streamLength <= 0) { this._streamLength = this._ns.time; } this._pause(true); this.setState(mx.video.VideoPlayer.STOPPED); if (this._state != mx.video.VideoPlayer.STOPPED) { return undefined; } this.doUpdateTime(); if (this._state != mx.video.VideoPlayer.STOPPED) { return undefined; } this.dispatchEvent({'type': 'complete', 'state': this._state, 'playheadTime': this.__get__playheadTime()}); if (this._state != mx.video.VideoPlayer.STOPPED) { return undefined; } if (this._autoRewind) { this._atEnd = false; this._pause(true); this._seek(0); this.setState(mx.video.VideoPlayer.REWINDING); } }; v2.httpDoSeek = function () { var v2 = this._state == mx.video.VideoPlayer.REWINDING || this._state == mx.video.VideoPlayer.SEEKING; if (v2 && this._httpDoSeekCount < mx.video.VideoPlayer.HTTP_DO_SEEK_MAX_COUNT && (this._cachedPlayheadTime == this.__get__playheadTime() || this._invalidSeekTime)) { ++this._httpDoSeekCount; return undefined; } this._httpDoSeekCount = 0; clearInterval(this._httpDoSeekIntervalID); this._httpDoSeekIntervalID = 0; if (!v2) { return undefined; } this.setStateFromCachedState(); if (this._invalidSeekTime) { this._invalidSeekTime = false; this._invalidSeekRecovery = true; this.seek(this.__get__playheadTime()); } else { this.doUpdateTime(); } }; v2.closeNS = function (updateCurrentPos) { if (this._ns != null && this._ns != undefined) { if (updateCurrentPos) { clearInterval(this._updateTimeIntervalID); this._updateTimeIntervalID = 0; this.doUpdateTime(); this._currentPos = this._ns.time; } delete this._ns.onStatus; this._ns.onStatus = null; this._ns.close(); this._ns = null; } }; v2.doDelayedBuffering = function () { switch (this._state) { case mx.video.VideoPlayer.LOADING: break; case mx.video.VideoPlayer.RESIZING: case mx.video.VideoPlayer.PLAYING: clearInterval(this._delayedBufferingIntervalID); this._delayedBufferingIntervalID = 0; this.setState(mx.video.VideoPlayer.BUFFERING); break; default: clearInterval(this._delayedBufferingIntervalID); this._delayedBufferingIntervalID = 0; } }; v2._pause = function (doPause) { clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; this._ns.pause(doPause); }; v2._play = function () { clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; this._startingPlay = true; switch (arguments.length) { case 0: this._ns.play(this._ncMgr.getStreamName(), this._isLive ? -1 : 0, -1); break; case 1: this._ns.play(this._ncMgr.getStreamName(), this._isLive ? -1 : arguments[0], -1); break; case 2: this._ns.play(this._ncMgr.getStreamName(), this._isLive ? -1 : arguments[0], arguments[1]); break; default: throw new Error('bad args to _play'); } }; v2._seek = function (time) { clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; if (this._metadata.audiodelay != undefined && time + this._metadata.audiodelay < this._streamLength) { time += this._metadata.audiodelay; } this._ns.seek(time); this._invalidSeekTime = false; this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; this._sawSeekNotify = false; }; v2.isXnOK = function () { if (this._state == mx.video.VideoPlayer.LOADING) { return true; } if (this._state == mx.video.VideoPlayer.CONNECTION_ERROR) { return false; } if (this._state != mx.video.VideoPlayer.DISCONNECTED) { if (this._ncMgr == null || this._ncMgr.getNetConnection() == null || !(this._ncMgr.getNetConnection()).isConnected) { this.setState(mx.video.VideoPlayer.DISCONNECTED); return false; } return true; } return false; }; v2.startAutoResize = function () { switch (this._state) { if (this._state !== mx.video.VideoPlayer.CONNECTION_ERROR) { } else { case mx.video.VideoPlayer.DISCONNECTED: return undefined; } } this._autoResizeDone = false; if (this.__get__stateResponsive() && this._videoWidth != undefined && this._videoHeight != undefined) { this.doAutoResize(); } else { clearInterval(this._autoResizeIntervalID); this._autoResizeIntervalID = setInterval(this, 'doAutoResize', mx.video.VideoPlayer.AUTO_RESIZE_INTERVAL); } }; v2.doAutoResize = function () { if (this._autoResizeIntervalID > 0) { switch (this._state) { case mx.video.VideoPlayer.RESIZING: break; case mx.video.VideoPlayer.LOADING: case mx.video.VideoPlayer.DISCONNECTED: case mx.video.VideoPlayer.CONNECTION_ERROR: clearInterval(this._autoResizeIntervalID); this._autoResizeIntervalID = 0; return undefined; default: if (this.__get__stateResponsive()) break; return undefined; } if (this._video.width != this._prevVideoWidth || this._video.height != this._prevVideoHeight || this._bufferState == mx.video.VideoPlayer.BUFFER_FULL || this._bufferState == mx.video.VideoPlayer.BUFFER_FLUSH || this._ns.time > mx.video.VideoPlayer.AUTO_RESIZE_PLAYHEAD_TIMEOUT) { if (this._hiddenForResize && this._metadata == null && this._hiddenForResizeMetadataDelay < mx.video.VideoPlayer.AUTO_RESIZE_METADATA_DELAY_MAX) { ++this._hiddenForResizeMetadataDelay; return undefined; } this._videoWidth = this._video.width; this._videoHeight = this._video.height; clearInterval(this._autoResizeIntervalID); this._autoResizeIntervalID = 0; } else { return undefined; } } if (!this._autoSize && !this._aspectRatio || this._autoResizeDone) { this.setState(this._cachedState); return undefined; } this._autoResizeDone = true; if (this._autoSize) { this._video._width = this._videoWidth; this._video._height = this._videoHeight; } else { if (this._aspectRatio) { var v3 = this._videoWidth * this.__get__height() / this._videoHeight; var v2 = this._videoHeight * this.__get__width() / this._videoWidth; if (v2 < this.__get__height()) { this._video._height = v2; } else { if (v3 < this.__get__width()) { this._video._width = v3; } } } } if (this._hiddenForResize) { this._hiddenRewindPlayheadTime = this.playheadTime; if (this._state == mx.video.VideoPlayer.LOADING) { this._cachedState = mx.video.VideoPlayer.PLAYING; } if (!this._ncMgr.isRTMP()) { this._pause(true); this._seek(0); clearInterval(this._finishAutoResizeIntervalID); this._finishAutoResizeIntervalID = setInterval(this, 'finishAutoResize', mx.video.VideoPlayer.FINISH_AUTO_RESIZE_INTERVAL); } else { if (!this._isLive) { this._currentPos = 0; this._play(0, 0); this.setState(mx.video.VideoPlayer.RESIZING); } else { if (this._autoPlay) { clearInterval(this._finishAutoResizeIntervalID); this._finishAutoResizeIntervalID = setInterval(this, 'finishAutoResize', mx.video.VideoPlayer.FINISH_AUTO_RESIZE_INTERVAL); } else { this.finishAutoResize(); } } } } else { this.dispatchEvent({'type': 'resize', 'x': this._x, 'y': this._y, 'width': this._width, 'height': this._height}); } }; v2.finishAutoResize = function () { clearInterval(this._finishAutoResizeIntervalID); this._finishAutoResizeIntervalID = 0; if (this.__get__stateResponsive()) { return undefined; } this._visible = this.__visible; this._sound.setVolume(this._volume); this._hiddenForResize = false; this.dispatchEvent({'type': 'resize', 'x': this._x, 'y': this._y, 'width': this._width, 'height': this._height}); if (this._autoPlay) { if (this._ncMgr.isRTMP()) { if (!this._isLive) { this._currentPos = 0; this._play(0); } if (this._state == mx.video.VideoPlayer.RESIZING) { this.setState(mx.video.VideoPlayer.LOADING); this._cachedState = mx.video.VideoPlayer.PLAYING; } } else { this._pause(false); this._cachedState = mx.video.VideoPlayer.PLAYING; } } else { this.setState(mx.video.VideoPlayer.STOPPED); } }; v2._createStream = function () { this._ns = new NetStream(this._ncMgr.getNetConnection()); this._ns.mc = this; if (this._ncMgr.isRTMP()) { this._ns.onStatus = function (info) { this.mc.rtmpOnStatus(info); }; } else { this._ns.onStatus = function (info) { this.mc.httpOnStatus(info); }; } this._ns.onMetaData = function (info) { this.mc.onMetaData(info); }; this._ns.onCuePoint = function (info) { this.mc.onCuePoint(info); }; this._ns.setBufferTime(this._bufferTime); }; v2._setUpStream = function () { this._video.attachVideo(this._ns); this.attachAudio(this._ns); if (!isNaN(this._ncMgr.getStreamLength()) && this._ncMgr.getStreamLength() >= 0) { this._streamLength = this._ncMgr.getStreamLength(); } if (!isNaN(this._ncMgr.getStreamWidth()) && this._ncMgr.getStreamWidth() >= 0) { this._videoWidth = this._ncMgr.getStreamWidth(); } else { this._videoWidth = undefined; } if (!isNaN(this._ncMgr.getStreamHeight()) && this._ncMgr.getStreamHeight() >= 0) { this._videoHeight = this._ncMgr.getStreamHeight(); } else { this._videoHeight = undefined; } if ((this._autoSize || this._aspectRatio) && this._videoWidth != undefined && this._videoHeight != undefined) { this._prevVideoWidth = undefined; this._prevVideoHeight = undefined; this.doAutoResize(); } if (!this._autoSize && !this._aspectRatio || this._videoWidth != undefined && this._videoHeight != undefined) { if (this._autoPlay) { if (!this._ncMgr.isRTMP()) { this._cachedState = mx.video.VideoPlayer.BUFFERING; this._play(); } else { if (this._isLive) { this._cachedState = mx.video.VideoPlayer.BUFFERING; this._play(-1); } else { this._cachedState = mx.video.VideoPlayer.BUFFERING; this._play(0); } } } else { this._cachedState = mx.video.VideoPlayer.STOPPED; if (this._ncMgr.isRTMP()) { this._play(0, 0); } else { this._play(); this._pause(true); this._seek(0); } } } else { if (!this._hiddenForResize) { this.__visible = this._visible; this._visible = false; this._volume = this._sound.getVolume(); this._sound.setVolume(0); this._hiddenForResize = true; } this._hiddenForResizeMetadataDelay = 0; this._play(0); if (this._currentPos > 0) { this._seek(this._currentPos); this._currentPos = 0; } } clearInterval(this._autoResizeIntervalID); this._autoResizeIntervalID = setInterval(this, 'doAutoResize', mx.video.VideoPlayer.AUTO_RESIZE_INTERVAL); }; v2.doIdleTimeout = function () { clearInterval(this._idleTimeoutIntervalID); this._idleTimeoutIntervalID = 0; this.close(); }; v2.flushQueuedCmds = function () { while (this._cmdQueue.length > 0) { this._cmdQueue.pop(); } }; v2.execQueuedCmds = function () { for (;;) { if (!(this._cmdQueue.length > 0 && (this.__get__stateResponsive() || this._state == mx.video.VideoPlayer.CONNECTION_ERROR) && (this._cmdQueue[0].url != null || this._state != mx.video.VideoPlayer.DISCONNECTED && this._state != mx.video.VideoPlayer.CONNECTION_ERROR))) break; var v2 = this._cmdQueue.shift(); this._cachedState = this._state; this._state = mx.video.VideoPlayer.EXEC_QUEUED_CMD; switch (v2.type) { case mx.video.VideoPlayer.PLAY: this.play(v2.url, v2.isLive, v2.time); break; case mx.video.VideoPlayer.LOAD: this.load(v2.url, v2.isLive, v2.time); break; case mx.video.VideoPlayer.PAUSE: this.pause(); break; case mx.video.VideoPlayer.STOP: this.stop(); break; case mx.video.VideoPlayer.SEEK: this.seek(v2.time); continue; } } }; v2.queueCmd = function (type, url, isLive, time) { this._cmdQueue.push({'type': type, 'url': url, 'isLive': isLive, 'time': time}); }; v1.version = '1.0.2.8'; v1.shortVersion = '1.0.2'; v1.DISCONNECTED = 'disconnected'; v1.STOPPED = 'stopped'; v1.PLAYING = 'playing'; v1.PAUSED = 'paused'; v1.BUFFERING = 'buffering'; v1.LOADING = 'loading'; v1.CONNECTION_ERROR = 'connectionError'; v1.REWINDING = 'rewinding'; v1.SEEKING = 'seeking'; v1.RESIZING = 'resizing'; v1.EXEC_QUEUED_CMD = 'execQueuedCmd'; v1.BUFFER_EMPTY = 'bufferEmpty'; v1.BUFFER_FULL = 'bufferFull'; v1.BUFFER_FLUSH = 'bufferFlush'; v1.DEFAULT_INCMANAGER = 'mx.video.NCManager'; v1.DEFAULT_UPDATE_TIME_INTERVAL = 250; v1.DEFAULT_UPDATE_PROGRESS_INTERVAL = 250; v1.DEFAULT_IDLE_TIMEOUT_INTERVAL = 300000; v1.AUTO_RESIZE_INTERVAL = 100; v1.AUTO_RESIZE_PLAYHEAD_TIMEOUT = 0.5; v1.AUTO_RESIZE_METADATA_DELAY_MAX = 5; v1.FINISH_AUTO_RESIZE_INTERVAL = 250; v1.RTMP_DO_STOP_AT_END_INTERVAL = 500; v1.RTMP_DO_SEEK_INTERVAL = 100; v1.HTTP_DO_SEEK_INTERVAL = 250; v1.HTTP_DO_SEEK_MAX_COUNT = 4; v1.CLOSE_NS_INTERVAL = 0.25; v1.HTTP_DELAYED_BUFFERING_INTERVAL = 100; v1.PLAY = 0; v1.LOAD = 1; v1.PAUSE = 2; v1.STOP = 3; v1.SEEK = 4; v2.addProperty('autoRewind', v2.__get__autoRewind, v2.__set__autoRewind); v2.addProperty('autoSize', v2.__get__autoSize, v2.__set__autoSize); v2.addProperty('bufferTime', v2.__get__bufferTime, v2.__set__bufferTime); v2.addProperty('bytesLoaded', v2.__get__bytesLoaded, function () {}); v2.addProperty('bytesTotal', v2.__get__bytesTotal, function () {}); v2.addProperty('height', v2.__get__height, v2.__set__height); v2.addProperty('idleTimeout', v2.__get__idleTimeout, v2.__set__idleTimeout); v2.addProperty('isLive', v2.__get__isLive, function () {}); v2.addProperty('isRTMP', v2.__get__isRTMP, function () {}); v2.addProperty('maintainAspectRatio', v2.__get__maintainAspectRatio, v2.__set__maintainAspectRatio); v2.addProperty('metadata', v2.__get__metadata, function () {}); v2.addProperty('ncMgr', v2.__get__ncMgr, function () {}); v2.addProperty('playheadTime', v2.__get__playheadTime, v2.__set__playheadTime); v2.addProperty('playheadUpdateInterval', v2.__get__playheadUpdateInterval, v2.__set__playheadUpdateInterval); v2.addProperty('progressInterval', v2.__get__progressInterval, v2.__set__progressInterval); v2.addProperty('scaleX', v2.__get__scaleX, v2.__set__scaleX); v2.addProperty('scaleY', v2.__get__scaleY, v2.__set__scaleY); v2.addProperty('state', v2.__get__state, function () {}); v2.addProperty('stateResponsive', v2.__get__stateResponsive, function () {}); v2.addProperty('totalTime', v2.__get__totalTime, function () {}); v2.addProperty('transform', v2.__get__transform, v2.__set__transform); v2.addProperty('url', v2.__get__url, function () {}); v2.addProperty('videoHeight', v2.__get__videoHeight, function () {}); v2.addProperty('videoWidth', v2.__get__videoWidth, function () {}); v2.addProperty('visible', v2.__get__visible, v2.__set__visible); v2.addProperty('volume', v2.__get__volume, v2.__set__volume); v2.addProperty('width', v2.__get__width, v2.__set__width); v2.addProperty('x', v2.__get__x, v2.__set__x); v2.addProperty('y', v2.__get__y, v2.__set__y); ASSetPropFlags(mx.video.VideoPlayer.prototype, null, 1); } #endinitclip } movieClip 2714 __Packages.mx.video.INCManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.INCManager) { _global.mx.video.INCManager = function () {}; } #endinitclip } movieClip 2715 __Packages.mx.video.VideoError { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.VideoError) { var v1 = function (errCode, msg) { super(); this._code = errCode; this.message = '' + errCode + ': ' + mx.video.VideoError.ERROR_MSG[errCode - mx.video.VideoError.BASE_ERROR_CODE] + ((msg == undefined) ? '' : ': ' + msg); this.name = 'VideoError'; }; mx.video.VideoError = v1; mx.video.VideoError extends Error; var v2 = v1.prototype; v2.__get__code = function () { return this._code; }; v1.version = '1.0.2.8'; v1.shortVersion = '1.0.2'; v1.BASE_ERROR_CODE = 1000; v1.NO_CONNECTION = 1000; v1.NO_CUE_POINT_MATCH = 1001; v1.ILLEGAL_CUE_POINT = 1002; v1.INVALID_SEEK = 1003; v1.INVALID_CONTENT_PATH = 1004; v1.INVALID_XML = 1005; v1.NO_BITRATE_MATCH = 1006; v1.DELETE_DEFAULT_PLAYER = 1007; v1.ERROR_MSG = ['Unable to make connection to server or to find FLV on server', 'No matching cue point found', 'Illegal cue point', 'Invalid seek', 'Invalid contentPath', 'Invalid xml', 'No bitrate match, must be no default flv', 'Cannot delete default VideoPlayer']; v2.addProperty('code', v2.__get__code, function () {}); ASSetPropFlags(mx.video.VideoError.prototype, null, 1); } #endinitclip } movieClip 2716 __Packages.mx.video.UIManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.UIManager) { var v1 = function (vc) { this._vc = vc; this._skin = undefined; this._skinAutoHide = false; this._skinReady = true; this.__visible = true; this._bufferingBarHides = false; this._controlsEnabled = true; this._lastScrubPos = 0; this._lastVolumePos = 0; this.cachedSoundLevel = this._vc.volume; this._isMuted = false; this.controls = new Array(); this.customClips = undefined; this.skin_mc = undefined; this.skinLoader = undefined; this.layout_mc = undefined; this.border_mc = undefined; this._seekBarIntervalID = 0; this._seekBarInterval = mx.video.UIManager.SEEK_BAR_INTERVAL_DEFAULT; this._seekBarScrubTolerance = mx.video.UIManager.SEEK_BAR_SCRUB_TOLERANCE_DEFAULT; this._volumeBarIntervalID = 0; this._volumeBarInterval = mx.video.UIManager.VOLUME_BAR_INTERVAL_DEFAULT; this._volumeBarScrubTolerance = mx.video.UIManager.VOLUME_BAR_SCRUB_TOLERANCE_DEFAULT; this._bufferingDelayIntervalID = 0; this._bufferingDelayInterval = mx.video.UIManager.BUFFERING_DELAY_INTERVAL_DEFAULT; this._bufferingOn = false; this._skinAutoHideIntervalID = 0; this._vc.addEventListener('metadataReceived', this); this._vc.addEventListener('playheadUpdate', this); this._vc.addEventListener('progress', this); this._vc.addEventListener('stateChange', this); this._vc.addEventListener('ready', this); this._vc.addEventListener('resize', this); this._vc.addEventListener('volumeUpdate', this); }; mx.video.UIManager = v1; var v2 = v1.prototype; v2.handleEvent = function (e) { if (e.vp != undefined && e.vp != this._vc.__get__visibleVideoPlayerIndex()) { return undefined; } var v9 = this._vc.__get__activeVideoPlayerIndex(); this._vc.__set__activeVideoPlayerIndex(this._vc.visibleVideoPlayerIndex); if (e.type == 'stateChange') { if (e.state == mx.video.FLVPlayback.BUFFERING) { if (!this._bufferingOn) { clearInterval(this._bufferingDelayIntervalID); this._bufferingDelayIntervalID = setInterval(this, 'doBufferingDelay', this._bufferingDelayInterval); } } else { clearInterval(this._bufferingDelayIntervalID); this._bufferingDelayIntervalID = 0; this._bufferingOn = false; } if (e.state == mx.video.FLVPlayback.LOADING) { this._progressPercent = (this._vc.getVideoPlayer(e.vp)).__get__isRTMP() ? 100 : 0; var v2 = mx.video.UIManager.SEEK_BAR; while (v2 <= mx.video.UIManager.VOLUME_BAR) { var v4 = this.controls[v2]; if (v4.progress_mc != undefined) { this.positionBar(v4, 'progress', this._progressPercent); } ++v2; } } v2 = 0; while (v2 < mx.video.UIManager.NUM_CONTROLS) { if (this.controls[v2] == undefined) { } else { this.setEnabledAndVisibleForState(v2, e.state); if (v2 < mx.video.UIManager.NUM_BUTTONS) { this.skinButtonControl(this.controls[v2]); } } ++v2; } } else { if (e.type == 'ready' || e.type == 'metadataReceived') { var v2 = 0; while (v2 < mx.video.UIManager.NUM_CONTROLS) { if (this.controls[v2] == undefined) { } else { this.setEnabledAndVisibleForState(v2, this._vc.__get__state()); if (v2 < mx.video.UIManager.NUM_BUTTONS) { this.skinButtonControl(this.controls[v2]); } } ++v2; } if ((this._vc.getVideoPlayer(e.vp)).__get__isRTMP()) { this._progressPercent = 100; v2 = mx.video.UIManager.SEEK_BAR; while (v2 <= mx.video.UIManager.VOLUME_BAR) { var v4 = this.controls[v2]; if (v4.progress_mc != undefined) { this.positionBar(v4, 'progress', this._progressPercent); } ++v2; } } } else { if (e.type == 'resize') { this.layoutSkin(); this.setupSkinAutoHide(); } else { if (e.type == 'volumeUpdate') { if (this._isMuted && e.volume > 0) { this._isMuted = false; this.setEnabledAndVisibleForState(mx.video.UIManager.MUTE_OFF_BUTTON, mx.video.FLVPlayback.PLAYING); this.skinButtonControl(this.controls[mx.video.UIManager.MUTE_OFF_BUTTON]); this.setEnabledAndVisibleForState(mx.video.UIManager.MUTE_ON_BUTTON, mx.video.FLVPlayback.PLAYING); this.skinButtonControl(this.controls[mx.video.UIManager.MUTE_ON_BUTTON]); } var v5 = this.controls[mx.video.UIManager.VOLUME_BAR]; v5.percentage = this._isMuted ? this.cachedSoundLevel : e.volume; if (v5.percentage < 0) { v5.percentage = 0; } else { if (v5.percentage > 100) { v5.percentage = 100; } } this.positionHandle(mx.video.UIManager.VOLUME_BAR); } else { if (e.type == 'playheadUpdate' && this.controls[mx.video.UIManager.SEEK_BAR] != undefined) { if (!this._vc.__get__isLive() && this._vc.__get__totalTime() > 0) { var v6 = (e.playheadTime / this._vc.__get__totalTime()) * 100; if (v6 < 0) { v6 = 0; } else { if (v6 > 100) { v6 = 100; } } var v10 = this.controls[mx.video.UIManager.SEEK_BAR]; v10.percentage = v6; this.positionHandle(mx.video.UIManager.SEEK_BAR); } } else { if (e.type == 'progress') { this._progressPercent = e.bytesTotal <= 0 ? 100 : (e.bytesLoaded / e.bytesTotal) * 100; var v7 = this._vc._vpState[e.vp].minProgressPercent; if (!isNaN(v7) && v7 > this._progressPercent) { this._progressPercent = v7; } if (this._vc.__get__totalTime() > 0) { var v8 = (this._vc.__get__playheadTime() / this._vc.__get__totalTime()) * 100; if (v8 > this._progressPercent) { this._progressPercent = v8; this._vc._vpState[e.vp].minProgressPercent = this._progressPercent; } } var v2 = mx.video.UIManager.SEEK_BAR; while (v2 <= mx.video.UIManager.VOLUME_BAR) { var v4 = this.controls[v2]; if (v4.progress_mc != undefined) { this.positionBar(v4, 'progress', this._progressPercent); } ++v2; } } } } } } } this._vc.__set__activeVideoPlayerIndex(v9); }; v2.__get__bufferingBarHidesAndDisablesOthers = function () { return this._bufferingBarHides; }; v2.__set__bufferingBarHidesAndDisablesOthers = function (b) { this._bufferingBarHides = b; return this.__get__bufferingBarHidesAndDisablesOthers(); }; v2.__get__controlsEnabled = function () { return this._controlsEnabled; }; v2.__set__controlsEnabled = function (flag) { if (this._controlsEnabled == flag) { return undefined; } this._controlsEnabled = flag; var v2 = 0; while (v2 < mx.video.UIManager.NUM_BUTTONS) { if (this.controls[v2] == undefined) { } else { this.controls[v2].releaseCapture(); this.controls[v2].enabled = this._controlsEnabled && this.controls[v2].myEnabled; this.skinButtonControl(this.controls[v2]); } ++v2; } return this.__get__controlsEnabled(); }; v2.__get__skin = function () { return this._skin; }; v2.__set__skin = function (s) { if (s == this._skin) { return undefined; } if (this._skin != undefined) { this.removeSkin(); } this._skin = s; this._skinReady = this._skin == null || this._skin == ''; if (!this._skinReady) { this.downloadSkin(); } return this.__get__skin(); }; v2.__get__skinAutoHide = function () { return this._skinAutoHide; }; v2.__set__skinAutoHide = function (b) { if (b == this._skinAutoHide) { return undefined; } this._skinAutoHide = b; this.setupSkinAutoHide(); return this.__get__skinAutoHide(); }; v2.__get__skinReady = function () { return this._skinReady; }; v2.__get__seekBarInterval = function () { return this._seekBarInterval; }; v2.__set__seekBarInterval = function (s) { if (this._seekBarInterval == s) { return undefined; } this._seekBarInterval = s; if (this._seekBarIntervalID > 0) { clearInterval(this._seekBarIntervalID); this._seekBarIntervalID = setInterval(this, 'seekBarListener', this._seekBarInterval, false); } return this.__get__seekBarInterval(); }; v2.__get__volumeBarInterval = function () { return this._volumeBarInterval; }; v2.__set__volumeBarInterval = function (s) { if (this._volumeBarInterval == s) { return undefined; } this._volumeBarInterval = s; if (this._volumeBarIntervalID > 0) { clearInterval(this._volumeBarIntervalID); this._volumeBarIntervalID = setInterval(this, 'volumeBarListener', this._volumeBarInterval, false); } return this.__get__volumeBarInterval(); }; v2.__get__bufferingDelayInterval = function () { return this._bufferingDelayInterval; }; v2.__set__bufferingDelayInterval = function (s) { if (this._bufferingDelayInterval == s) { return undefined; } this._bufferingDelayInterval = s; if (this._bufferingDelayIntervalID > 0) { clearInterval(this._bufferingDelayIntervalID); this._bufferingDelayIntervalID = setInterval(this, 'doBufferingDelay', this._bufferingDelayIntervalID); } return this.__get__bufferingDelayInterval(); }; v2.__get__volumeBarScrubTolerance = function () { return this._volumeBarScrubTolerance; }; v2.__set__volumeBarScrubTolerance = function (s) { this._volumeBarScrubTolerance = s; return this.__get__volumeBarScrubTolerance(); }; v2.__get__seekBarScrubTolerance = function () { return this._seekBarScrubTolerance; }; v2.__set__seekBarScrubTolerance = function (s) { this._seekBarScrubTolerance = s; return this.__get__seekBarScrubTolerance(); }; v2.__get__visible = function () { return this.__visible; }; v2.__set__visible = function (v) { if (this.__visible == v) { return undefined; } this.__visible = v; if (!this.__visible) { this.skin_mc._visible = false; } else { this.setupSkinAutoHide(); } return this.__get__visible(); }; v2.getControl = function (index) { return this.controls[index]; }; v2.setControl = function (index, s) { if (s == null) { s = undefined; } if (s == this.controls[index]) { return undefined; } switch (index) { case mx.video.UIManager.PAUSE_BUTTON: case mx.video.UIManager.PLAY_BUTTON: this.resetPlayPause(); break; case mx.video.UIManager.PLAY_PAUSE_BUTTON: if (s._parent != this.layout_mc) { this.resetPlayPause(); this.setControl(mx.video.UIManager.PAUSE_BUTTON, s.pause_mc); this.setControl(mx.video.UIManager.PLAY_BUTTON, s.play_mc); } break; case mx.video.UIManager.MUTE_BUTTON: if (s._parent != this.layout_mc) { this.setControl(mx.video.UIManager.MUTE_ON_BUTTON, s.on_mc); this.setControl(mx.video.UIManager.MUTE_OFF_BUTTON, s.off_mc); } } if (index >= mx.video.UIManager.NUM_BUTTONS) { this.controls[index] = s; switch (index) { case mx.video.UIManager.SEEK_BAR: this.addBarControl(mx.video.UIManager.SEEK_BAR); break; case mx.video.UIManager.VOLUME_BAR: this.addBarControl(mx.video.UIManager.VOLUME_BAR); this.controls[mx.video.UIManager.VOLUME_BAR].percentage = this._vc.volume; break; case mx.video.UIManager.BUFFERING_BAR: this.controls[mx.video.UIManager.BUFFERING_BAR].uiMgr = this; this.controls[mx.video.UIManager.BUFFERING_BAR].controlIndex = mx.video.UIManager.BUFFERING_BAR; if (this.controls[mx.video.UIManager.BUFFERING_BAR]._parent == this.skin_mc) { this.finishAddBufferingBar(); } else { this.controls[mx.video.UIManager.BUFFERING_BAR].onEnterFrame = function () { this.uiMgr.finishAddBufferingBar(); }; } } this.setEnabledAndVisibleForState(index, this._vc.__get__state()); } else { this.removeButtonControl(index); this.controls[index] = s; this.addButtonControl(index); } }; v2.resetPlayPause = function () { if (this.controls[mx.video.UIManager.PLAY_PAUSE_BUTTON] == undefined) { return undefined; } var v2 = mx.video.UIManager.PAUSE_BUTTON; while (v2 <= mx.video.UIManager.PLAY_BUTTON) { this.removeButtonControl(v2); ++v2; } this.controls[mx.video.UIManager.PLAY_PAUSE_BUTTON] = undefined; }; v2.addButtonControl = function (index) { var v3 = this.controls[index]; if (v3 == undefined) { return undefined; } var v5 = this._vc.__get__activeVideoPlayerIndex(); this._vc.__set__activeVideoPlayerIndex(this._vc.visibleVideoPlayerIndex); v3.id = index; v3.state = mx.video.UIManager.UP_STATE; v3.uiMgr = this; this.setEnabledAndVisibleForState(index, this._vc.__get__state()); v3.onRollOver = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.skinButtonControl(this); }; v3.onRollOut = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.skinButtonControl(this); }; if (index == mx.video.UIManager.SEEK_BAR_HANDLE || index == mx.video.UIManager.VOLUME_BAR_HANDLE) { v3.onPress = function () { if (_root.focusManager) { this._focusrect = false; Selection.setFocus(this); } this.state = mx.video.UIManager.DOWN_STATE; this.uiMgr.dispatchMessage(this); this.uiMgr.skinButtonControl(this); }; v3.onRelease = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.handleRelease(this.controlIndex); this.uiMgr.skinButtonControl(this); }; v3.onReleaseOutside = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.handleRelease(this.controlIndex); this.uiMgr.skinButtonControl(this); }; } else { v3.onPress = function () { if (_root.focusManager) { this._focusrect = false; Selection.setFocus(this); } this.state = mx.video.UIManager.DOWN_STATE; this.uiMgr.skinButtonControl(this); }; v3.onRelease = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.dispatchMessage(this); this.uiMgr.skinButtonControl(this); }; v3.onReleaseOutside = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.skinButtonControl(this); }; } if (v3._parent == this.skin_mc) { this.skinButtonControl(v3); } else { v3.onEnterFrame = function () { this.uiMgr.skinButtonControl(this); }; } this._vc.__set__activeVideoPlayerIndex(v5); }; v2.removeButtonControl = function (index) { if (this.controls[index] == undefined) { return undefined; } this.controls[index].uiMgr = undefined; this.controls[index].onRollOver = undefined; this.controls[index].onRollOut = undefined; this.controls[index].onPress = undefined; this.controls[index].onRelease = undefined; this.controls[index].onReleaseOutside = undefined; this.controls[index] = undefined; }; v2.downloadSkin = function () { if (this.skinLoader == undefined) { this.skinLoader = new MovieClipLoader(); this.skinLoader.addListener(this); } if (this.skin_mc == undefined) { this.skin_mc = this._vc.createEmptyMovieClip('skin_mc', this._vc.getNextHighestDepth()); } this.skin_mc._visible = false; this.skin_mc._x = Stage.width + 100; this.skin_mc._y = Stage.height + 100; this.skinLoader.loadClip(this._skin, this.skin_mc); }; v2.onLoadError = function (target_mc, errorCode) { this._skinReady = true; this._vc.skinError('Unable to load skin swf'); }; v2.onLoadInit = function () { try { this.skin_mc._visible = false; this.skin_mc._x = 0; this.skin_mc._y = 0; this.layout_mc = this.skin_mc.layout_mc; if (this.layout_mc == undefined) { throw new Error('No layout_mc'); } this.layout_mc._visible = false; this.customClips = new Array(); this.setCustomClips('bg'); if (this.layout_mc.playpause_mc != undefined) { this.setSkin(mx.video.UIManager.PLAY_PAUSE_BUTTON, this.layout_mc.playpause_mc); } else { this.setSkin(mx.video.UIManager.PAUSE_BUTTON, this.layout_mc.pause_mc); this.setSkin(mx.video.UIManager.PLAY_BUTTON, this.layout_mc.play_mc); } this.setSkin(mx.video.UIManager.STOP_BUTTON, this.layout_mc.stop_mc); this.setSkin(mx.video.UIManager.BACK_BUTTON, this.layout_mc.back_mc); this.setSkin(mx.video.UIManager.FORWARD_BUTTON, this.layout_mc.forward_mc); this.setSkin(mx.video.UIManager.MUTE_BUTTON, this.layout_mc.volumeMute_mc); this.setSkin(mx.video.UIManager.SEEK_BAR, this.layout_mc.seekBar_mc); this.setSkin(mx.video.UIManager.VOLUME_BAR, this.layout_mc.volumeBar_mc); this.setSkin(mx.video.UIManager.BUFFERING_BAR, this.layout_mc.bufferingBar_mc); this.setCustomClips('fg'); this.layoutSkin(); this.setupSkinAutoHide(); this.skin_mc._visible = this.__visible; this._skinReady = true; this._vc.skinLoaded(); var v4 = this._vc.__get__activeVideoPlayerIndex(); this._vc.__set__activeVideoPlayerIndex(this._vc.visibleVideoPlayerIndex); var v3 = this._vc.__get__state(); var v2 = 0; while (v2 < mx.video.UIManager.NUM_CONTROLS) { if (this.controls[v2] == undefined) { } else { this.setEnabledAndVisibleForState(v2, v3); if (v2 < mx.video.UIManager.NUM_BUTTONS) { this.skinButtonControl(this.controls[v2]); } } ++v2; } this._vc.__set__activeVideoPlayerIndex(v4); } catch (v0) { if (Error(v0) != null) { var err = Error(v0); this._vc.skinError(err.message); this.removeSkin(); } else { throw v0; } } }; v2.layoutSkin = function () { if (this.layout_mc == undefined) { return undefined; } var v3 = this.layout_mc.video_mc; if (v3 == undefined) { throw new Error('No layout_mc.video_mc'); } this.placeholderLeft = v3._x; this.placeholderRight = v3._x + v3._width; this.placeholderTop = v3._y; this.placeholderBottom = v3._y + v3._height; this.videoLeft = 0; this.videoRight = this._vc.width; this.videoTop = 0; this.videoBottom = this._vc.height; if (!isNaN(this.layout_mc.minWidth) && this.layout_mc.minWidth > 0 && this.layout_mc.minWidth > this.videoRight) { this.videoLeft -= (this.layout_mc.minWidth - this.videoRight) / 2; this.videoRight = this.layout_mc.minWidth + this.videoLeft; } if (!isNaN(this.layout_mc.minHeight) && this.layout_mc.minHeight > 0 && this.layout_mc.minHeight > this.videoBottom) { this.videoTop -= (this.layout_mc.minHeight - this.videoBottom) / 2; this.videoBottom = this.layout_mc.minHeight + this.videoTop; } var v2; v2 = 0; while (v2 < this.customClips.length) { this.layoutControl(this.customClips[v2]); ++v2; } v2 = 0; while (v2 < mx.video.UIManager.NUM_CONTROLS) { this.layoutControl(this.controls[v2]); ++v2; } }; v2.layoutControl = function (ctrl) { if (ctrl == undefined) { return undefined; } if (ctrl.skin.anchorRight) { if (ctrl.skin.anchorLeft) { ctrl._x = ctrl.skin._x - this.placeholderLeft + this.videoLeft; ctrl._width = ctrl.skin._x + ctrl.skin._width - this.placeholderRight + this.videoRight - ctrl._x; if (ctrl.origWidth != undefined) { ctrl.origWidth = undefined; } } else { ctrl._x = ctrl.skin._x - this.placeholderRight + this.videoRight; } } else { ctrl._x = ctrl.skin._x - this.placeholderLeft + this.videoLeft; } if (ctrl.skin.anchorTop) { if (ctrl.skin.anchorBottom) { ctrl._y = ctrl.skin._y - this.placeholderTop + this.videoTop; ctrl._height = ctrl.skin._y + ctrl.skin._height - this.placeholderBottom + this.videoBottom - ctrl._y; if (ctrl.origHeight != undefined) { ctrl.origHeight = undefined; } } else { ctrl._y = ctrl.skin._y - this.placeholderTop + this.videoTop; } } else { ctrl._y = ctrl.skin._y - this.placeholderBottom + this.videoBottom; } switch (ctrl.controlIndex) { case mx.video.UIManager.SEEK_BAR: case mx.video.UIManager.VOLUME_BAR: if (ctrl.progress_mc != undefined) { if (this._progressPercent == undefined) { this._progressPercent = this._vc.__get__isRTMP() ? 100 : 0; } this.positionBar(ctrl, 'progress', this._progressPercent); } this.positionHandle(ctrl.controlIndex); break; case mx.video.UIManager.BUFFERING_BAR: if (ctrl.fill_mc != undefined) { this.positionMaskedFill(ctrl, ctrl.fill_mc, 100); } } if (ctrl.layoutSelf != undefined) { ctrl.layoutSelf(); } }; v2.removeSkin = function () { if (this.skin_mc != undefined) { var v2 = 0; while (v2 < mx.video.UIManager.NUM_BUTTONS) { this.removeButtonControl(v2); ++v2; } v2 = mx.video.UIManager.NUM_BUTTONS; while (v2 < mx.video.UIManager.NUM_CONTROLS) { this.controls[v2] = undefined; ++v2; } this.skin_mc.unloadMovie(); this.layout_mc = undefined; this.border_mc = undefined; } }; v2.setCustomClips = function (prefix) { var v4 = 1; while (!false) { var v2 = this.layout_mc[prefix + v4++ + '_mc']; if (v2 == undefined) { break; } var v3 = v2.mc; if (v3 == undefined) { v3 = v2._parent._parent[v2._name]; } if (v3 == undefined) { throw new Error('Bad clip in skin: ' + v2); } v3.skin = v2; this.customClips.push(v3); if (prefix == 'bg' && v4 == 2) { this.border_mc = v3; } } }; v2.setSkin = function (index, s) { if (s == undefined) { return undefined; } var v2 = s.mc; if (v2 == undefined) { v2 = s._parent._parent[s._name]; } if (v2 == undefined) { throw new Error('Bad clip in skin: ' + s); } v2.skin = s; if (index < mx.video.UIManager.NUM_BUTTONS) { this.setupSkinStates(v2); } else { switch (index) { case mx.video.UIManager.PLAY_PAUSE_BUTTON: this.setupSkinStates(v2.play_mc); this.setupSkinStates(v2.pause_mc); break; case mx.video.UIManager.MUTE_BUTTON: this.setupSkinStates(v2.on_mc); this.setupSkinStates(v2.off_mc); break; case mx.video.UIManager.SEEK_BAR: case mx.video.UIManager.VOLUME_BAR: var v4 = (index == mx.video.UIManager.SEEK_BAR) ? 'seekBar' : 'volumeBar'; if (v2.handle_mc == undefined) { v2.handle_mc = v2.skin.handle_mc; if (v2.handle_mc == undefined) { v2.handle_mc = v2.skin._parent._parent[v4 + 'Handle_mc']; } } if (v2.progress_mc == undefined) { v2.progress_mc = v2.skin.progress_mc; if (v2.progress_mc == undefined) { v2.progress_mc = v2.skin._parent._parent[v4 + 'Progress_mc']; } } if (v2.fullness_mc == undefined) { v2.fullness_mc = v2.skin.fullness_mc; if (v2.fullness_mc == undefined) { v2.fullness_mc = v2.skin._parent._parent[v4 + 'Fullness_mc']; } } break; case mx.video.UIManager.BUFFERING_BAR: if (v2.fill_mc == undefined) { v2.fill_mc = v2.skin.fill_mc; if (v2.fill_mc == undefined) { v2.fill_mc = v2.skin._parent._parent.bufferingBarFill_mc; } } } } this.setControl(index, v2); }; v2.setupSkinStates = function (ctrl) { if (ctrl.up_mc == undefined) { ctrl.up_mc = ctrl; ctrl.over_mc = ctrl; ctrl.down_mc = ctrl; ctrl.disabled_mc = ctrl; } else { ctrl._x = 0; ctrl._y = 0; ctrl.up_mc._x = 0; ctrl.up_mc._y = 0; ctrl.up_mc._visible = true; if (ctrl.over_mc == undefined) { ctrl.over_mc = ctrl.up_mc; } else { ctrl.over_mc._x = 0; ctrl.over_mc._y = 0; ctrl.over_mc._visible = false; } if (ctrl.down_mc == undefined) { ctrl.down_mc = ctrl.up_mc; } else { ctrl.down_mc._x = 0; ctrl.down_mc._y = 0; ctrl.down_mc._visible = false; } if (ctrl.disabled_mc == undefined) { ctrl.disabled_mc_mc = ctrl.up_mc; } else { ctrl.disabled_mc._x = 0; ctrl.disabled_mc._y = 0; ctrl.disabled_mc._visible = false; } } }; v2.skinButtonControl = function (ctrl) { if (ctrl.onEnterFrame != undefined) { delete ctrl.onEnterFrame; ctrl.onEnterFrame = undefined; } if (ctrl.enabled) { switch (ctrl.state) { case mx.video.UIManager.UP_STATE: if (ctrl.up_mc == undefined) { ctrl.up_mc = ctrl.attachMovie(ctrl.upLinkageID, 'up_mc', ctrl.getNextHighestDepth()); } this.applySkinState(ctrl, ctrl.up_mc); break; case mx.video.UIManager.OVER_STATE: if (ctrl.over_mc == undefined) { if (ctrl.overLinkageID == undefined) { ctrl.over_mc = ctrl.up_mc; } else { ctrl.over_mc = ctrl.attachMovie(ctrl.overLinkageID, 'over_mc', ctrl.getNextHighestDepth()); } } this.applySkinState(ctrl, ctrl.over_mc); break; case mx.video.UIManager.DOWN_STATE: if (ctrl.down_mc == undefined) { if (ctrl.downLinkageID == undefined) { ctrl.down_mc = ctrl.up_mc; } else { ctrl.down_mc = ctrl.attachMovie(ctrl.downLinkageID, 'down_mc', ctrl.getNextHighestDepth()); } } this.applySkinState(ctrl, ctrl.down_mc); } } else { ctrl.state = mx.video.UIManager.UP_STATE; if (ctrl.disabled_mc == undefined) { if (ctrl.disabledLinkageID == undefined) { ctrl.disabled_mc = ctrl.up_mc; } else { ctrl.disabled_mc = ctrl.attachMovie(ctrl.disabledLinkageID, 'disabled_mc', ctrl.getNextHighestDepth()); } } this.applySkinState(ctrl, ctrl.disabled_mc); } if (ctrl.placeholder_mc != undefined) { ctrl.placeholder_mc.unloadMovie(); delete ctrl.placeholder_mc; ctrl.placeholder_mc = undefined; } }; v2.applySkinState = function (ctrl, state) { if (state != ctrl.currentState_mc) { if (state != undefined) { state._visible = true; } if (ctrl.currentState_mc != undefined) { ctrl.currentState_mc._visible = false; } ctrl.currentState_mc = state; } }; v2.addBarControl = function (controlIndex) { var v2 = this.controls[controlIndex]; v2.isDragging = false; v2.percentage = 0; v2.uiMgr = this; v2.controlIndex = controlIndex; if (v2._parent == this.skin_mc) { this.finishAddBarControl(controlIndex); } else { v2.onEnterFrame = function () { this.uiMgr.finishAddBarControl(this.controlIndex); }; } }; v2.finishAddBarControl = function (controlIndex) { var v2 = this.controls[controlIndex]; delete v2.onEnterFrame; v2.onEnterFrame = undefined; if (v2.addBarControl != undefined) { v2.addBarControl(); } this.calcBarMargins(v2, 'handle', true); this.calcBarMargins(v2, 'progress', false); this.calcBarMargins(v2.progress_mc, 'fill', false); this.calcBarMargins(v2.progress_mc, 'mask', false); this.calcBarMargins(v2, 'fullness', false); this.calcBarMargins(v2.fullness_mc, 'fill', false); this.calcBarMargins(v2.fullness_mc, 'mask', false); v2.origWidth = v2._width; v2.origHeight = v2._height; this.fixUpBar(v2, 'progress'); if (v2.progress_mc != undefined) { this.fixUpBar(v2, 'progressBarFill'); if (this._progressPercent == undefined) { this._progressPercent = this._vc.__get__isRTMP() ? 100 : 0; } this.positionBar(v2, 'progress', this._progressPercent); } this.fixUpBar(v2, 'fullness'); if (v2.fullness_mc != undefined) { this.fixUpBar(v2, 'fullnessBarFill'); } this.fixUpBar(v2, 'handle'); v2.handle_mc.controlIndex = controlIndex; switch (controlIndex) { case mx.video.UIManager.SEEK_BAR: this.setControl(mx.video.UIManager.SEEK_BAR_HANDLE, v2.handle_mc); break; case mx.video.UIManager.VOLUME_BAR: this.setControl(mx.video.UIManager.VOLUME_BAR_HANDLE, v2.handle_mc); } this.positionHandle(controlIndex); }; v2.fixUpBar = function (ctrl, type) { if (ctrl[type + 'LinkageID'] != undefined && ctrl[type + 'LinkageID'].length > 0) { var v1; if (ctrl[type + 'Below']) { v1 = -1; while (ctrl._parent.getInstanceAtDepth(v1) != undefined) { --v1; } } else { ctrl[type + 'Below'] = false; v1 = ctrl._parent.getNextHighestDepth(); } var v5 = (ctrl.controlIndex == mx.video.UIManager.SEEK_BAR) ? 'seekBar' : 'volumeBar'; var v4 = v5 + (type.substring(0, 1)).toUpperCase() + type.substring(1) + '_mc'; ctrl[type + '_mc'] = ctrl._parent.attachMovie(ctrl[type + 'LinkageID'], v4, v1); } }; v2.calcBarMargins = function (ctrl, type, symmetricMargins) { var v2 = ctrl[type + '_mc']; if (v2 == undefined) { return undefined; } if (ctrl[type + 'LeftMargin'] == undefined && v2._parent == ctrl._parent) { ctrl[type + 'LeftMargin'] = v2._x - ctrl._x; } if (ctrl[type + 'RightMargin'] == undefined) { if (symmetricMargins) { ctrl[type + 'RightMargin'] = ctrl[type + 'LeftMargin']; } else { if (v2._parent == ctrl._parent) { ctrl[type + 'RightMargin'] = ctrl._width - v2._width - v2._x + ctrl._x; } } } if (ctrl[type + 'TopMargin'] == undefined && v2._parent == ctrl._parent) { ctrl[type + 'TopMargin'] = v2._y - ctrl._y; } if (ctrl[type + 'BottomMargin'] == undefined) { if (symmetricMargins) { ctrl[type + 'BottomMargin'] = ctrl[type + 'TopMargin']; } else { if (v2._parent == ctrl._parent) { ctrl[type + 'BottomMargin'] = ctrl._height - v2._height - v2._y + ctrl._y; } } } if (ctrl[type + 'X'] == undefined) { if (v2._parent == ctrl._parent) { ctrl[type + 'X'] = v2._x - ctrl._x; } else { if (v2._parent == ctrl) { ctrl[type + 'X'] = v2._x; } } } if (ctrl[type + 'Y'] == undefined) { if (v2._parent == ctrl._parent) { ctrl[type + 'Y'] = v2._y - ctrl._y; } else { if (v2._parent == ctrl) { ctrl[type + 'Y'] = v2._y; } } } ctrl[type + 'XScale'] = v2._xscale; ctrl[type + 'YScale'] = v2._yscale; ctrl[type + 'Width'] = v2._width; ctrl[type + 'Height'] = v2._height; }; v2.finishAddBufferingBar = function () { var v2 = this.controls[mx.video.UIManager.BUFFERING_BAR]; delete v2.onEnterFrame; v2.onEnterFrame = undefined; this.calcBarMargins(v2, 'fill', true); this.fixUpBar(v2, 'fill'); if (v2.fill_mc != undefined) { this.positionMaskedFill(v2, v2.fill_mc, 100); } }; v2.positionMaskedFill = function (ctrl, fill, percent) { var v5 = fill._parent; var v3 = ctrl.mask_mc; if (v3 == undefined) { v3 = v5.createEmptyMovieClip(ctrl._name + 'Mask_mc', v5.getNextHighestDepth()); ctrl.mask_mc = v3; v3.beginFill(16777215); v3.lineTo(0, 0); v3.lineTo(1, 0); v3.lineTo(1, 1); v3.lineTo(0, 1); v3.lineTo(0, 0); v3.endFill(); fill.setMask(v3); v3._x = ctrl.fillX; v3._y = ctrl.fillY; v3._width = ctrl.fillWidth; v3._height = ctrl.fillHeight; v3._visible = false; this.calcBarMargins(ctrl, 'mask', true); } if (v5 == ctrl) { if (fill.slideReveal) { fill._x = ctrl.maskX - ctrl.fillWidth + ctrl.fillWidth * percent / 100; } else { v3._width = ctrl.fillWidth * percent / 100; } } else { if (v5 == ctrl._parent) { if (fill.slideReveal) { v3._x = ctrl._x + ctrl.maskLeftMargin; v3._y = ctrl._y + ctrl.maskTopMargin; v3._width = ctrl._width - ctrl.maskRightMargin - ctrl.maskLeftMargin; v3._height = ctrl._height - ctrl.maskTopMargin - ctrl.maskBottomMargin; fill._x = v3._x - ctrl.fillWidth + ctrl.maskWidth * percent / 100; fill._y = ctrl._y + ctrl.fillTopMargin; } else { fill._x = ctrl._x + ctrl.fillLeftMargin; fill._y = ctrl._y + ctrl.fillTopMargin; v3._x = fill._x; v3._y = fill._y; v3._width = (ctrl._width - ctrl.fillRightMargin - ctrl.fillLeftMargin) * percent / 100; v3._height = ctrl._height - ctrl.fillTopMargin - ctrl.fillBottomMargin; } } } }; v2.startHandleDrag = function (controlIndex) { var v2 = this.controls[controlIndex]; var v5 = v2.handle_mc; if (v2.startHandleDrag == undefined || !v2.startHandleDrag()) { var v3 = v2._y + v2.handleY; var v4 = (v2.origWidth == undefined) ? v2._width : v2.origWidth; v5.startDrag(false, v2._x + v2.handleLeftMargin, v3, v2._x + v4 - v2.handleRightMargin, v3); } v2.isDragging = true; }; v2.stopHandleDrag = function (controlIndex) { var v2 = this.controls[controlIndex]; var v3 = v2.handle_mc; if (v2.stopHandleDrag == undefined || !v2.stopHandleDrag()) { v3.stopDrag(); } v2.isDragging = false; }; v2.positionHandle = function (controlIndex) { var v2 = this.controls[controlIndex]; var v3 = v2.handle_mc; if (v3 == undefined) { return undefined; } if (v2.positionHandle != undefined && v2.positionHandle()) { return undefined; } var v4 = (v2.origWidth == undefined) ? v2._width : v2.origWidth; var v5 = v4 - v2.handleRightMargin - v2.handleLeftMargin; v3._x = v2._x + v2.handleLeftMargin + v5 * v2.percentage / 100; v3._y = v2._y + v2.handleY; if (v2.fullness_mc != undefined) { this.positionBar(v2, 'fullness', v2.percentage); } }; v2.positionBar = function (ctrl, type, percent) { if (ctrl.positionBar != undefined && ctrl.positionBar(type, percent)) { return undefined; } var v2 = ctrl[type + '_mc']; if (v2._parent == ctrl) { if (v2.fill_mc == undefined) { v2._xscale = ctrl[type + 'XScale'] * percent / 100; } else { this.positionMaskedFill(v2, v2.fill_mc, percent); } } else { v2._x = ctrl._x + ctrl[type + 'LeftMargin']; v2._y = ctrl._y + ctrl[type + 'Y']; if (v2.fill_mc == undefined) { v2._width = (ctrl._width - ctrl[type + 'LeftMargin'] - ctrl[type + 'RightMargin']) * percent / 100; } else { this.positionMaskedFill(v2, v2.fill_mc, percent); } } }; v2.calcPercentageFromHandle = function (controlIndex) { var v2 = this.controls[controlIndex]; var v5 = v2.handle_mc; if (v2.calcPercentageFromHandle == undefined || !v2.calcPercentageFromHandle()) { var v3 = (v2.origWidth == undefined) ? v2._width : v2.origWidth; var v6 = v3 - v2.handleRightMargin - v2.handleLeftMargin; var v4 = v5._x - (v2._x + v2.handleLeftMargin); v2.percentage = (v4 / v6) * 100; if (v2.fullness_mc != undefined) { this.positionBar(v2, 'fullness', v2.percentage); } } if (v2.percentage < 0) { v2.percentage = 0; } if (v2.percentage > 100) { v2.percentage = 100; } }; v2.handleRelease = function (controlIndex) { var v3 = this._vc.__get__activeVideoPlayerIndex(); this._vc.__set__activeVideoPlayerIndex(this._vc.visibleVideoPlayerIndex); if (controlIndex == mx.video.UIManager.SEEK_BAR) { this.seekBarListener(true); } else { if (controlIndex == mx.video.UIManager.VOLUME_BAR) { this.volumeBarListener(true); } } this.stopHandleDrag(controlIndex); this._vc.__set__activeVideoPlayerIndex(v3); if (controlIndex == mx.video.UIManager.SEEK_BAR) { this._vc._scrubFinish(); } }; v2.seekBarListener = function (finish) { var v3 = this._vc.__get__activeVideoPlayerIndex(); this._vc.__set__activeVideoPlayerIndex(this._vc.visibleVideoPlayerIndex); var v4 = this.controls[mx.video.UIManager.SEEK_BAR]; this.calcPercentageFromHandle(mx.video.UIManager.SEEK_BAR); var v2 = v4.percentage; if (finish) { clearInterval(this._seekBarIntervalID); this._seekBarIntervalID = 0; if (v2 != this._lastScrubPos) { this._vc.seekPercent(v2); } this._vc.addEventListener('playheadUpdate', this); if (this._playAfterScrub) { this._vc.play(); } } else { if ((this._vc.getVideoPlayer(this._vc.__get__visibleVideoPlayerIndex())).__get__state() == mx.video.VideoPlayer.SEEKING) { } else { if (this._seekBarScrubTolerance <= 0 || Math.abs(v2 - this._lastScrubPos) > this._seekBarScrubTolerance || v2 < this._seekBarScrubTolerance || v2 > 100 - this._seekBarScrubTolerance) { if (v2 != this._lastScrubPos) { this._lastScrubPos = v2; this._vc.seekPercent(v2); } } } } this._vc.__set__activeVideoPlayerIndex(v3); }; v2.volumeBarListener = function (finish) { var v3 = this.controls[mx.video.UIManager.VOLUME_BAR]; this.calcPercentageFromHandle(mx.video.UIManager.VOLUME_BAR); var v2 = v3.percentage; if (finish) { clearInterval(this._volumeBarIntervalID); this._volumeBarIntervalID = 0; this._vc.addEventListener('volumeUpdate', this); } if (finish || this._volumeBarScrubTolerance <= 0 || Math.abs(v2 - this._lastVolumePos) > this._volumeBarScrubTolerance || v2 < this._volumeBarScrubTolerance || v2 > 100 - this._volumeBarScrubTolerance) { if (v2 != this._lastVolumePos) { if (this._isMuted) { this.cachedSoundLevel = v2; } else { this._vc.__set__volume(v2); } this._lastVolumePos = v2; } } }; v2.doBufferingDelay = function () { clearInterval(this._bufferingDelayIntervalID); this._bufferingDelayIntervalID = 0; var v2 = this._vc.__get__activeVideoPlayerIndex(); this._vc.__set__activeVideoPlayerIndex(this._vc.visibleVideoPlayerIndex); if (this._vc.__get__state() == mx.video.FLVPlayback.BUFFERING) { this._bufferingOn = true; this.handleEvent({'type': 'stateChange', 'state': mx.video.FLVPlayback.BUFFERING, 'vp': this._vc.__get__visibleVideoPlayerIndex()}); } this._vc.__set__activeVideoPlayerIndex(v2); }; v2.dispatchMessage = function (ctrl) { if (ctrl.id == mx.video.UIManager.SEEK_BAR_HANDLE) { this._vc._scrubStart(); } var v2 = this._vc.__get__activeVideoPlayerIndex(); this._vc.__set__activeVideoPlayerIndex(this._vc.visibleVideoPlayerIndex); switch (ctrl.id) { case mx.video.UIManager.PAUSE_BUTTON: this._vc.pause(); break; case mx.video.UIManager.PLAY_BUTTON: this._vc.play(); break; case mx.video.UIManager.STOP_BUTTON: this._vc.stop(); break; case mx.video.UIManager.SEEK_BAR_HANDLE: this.calcPercentageFromHandle(mx.video.UIManager.SEEK_BAR); this._lastScrubPos = this.controls[mx.video.UIManager.SEEK_BAR].percentage; this._vc.removeEventListener('playheadUpdate', this); if (this._vc.__get__playing() || this._vc.__get__buffering()) { this._playAfterScrub = true; } else { if (this._vc.__get__state() != mx.video.VideoPlayer.SEEKING) { this._playAfterScrub = false; } } this._seekBarIntervalID = setInterval(this, 'seekBarListener', this._seekBarInterval, false); this.startHandleDrag(mx.video.UIManager.SEEK_BAR); this._vc.pause(); break; case mx.video.UIManager.VOLUME_BAR_HANDLE: this.calcPercentageFromHandle(mx.video.UIManager.VOLUME_BAR); this._lastVolumePos = this.controls[mx.video.UIManager.VOLUME_BAR].percentage; this._vc.removeEventListener('volumeUpdate', this); this._volumeBarIntervalID = setInterval(this, 'volumeBarListener', this._volumeBarInterval, false); this.startHandleDrag(mx.video.UIManager.VOLUME_BAR); break; case mx.video.UIManager.BACK_BUTTON: this._vc.seekToPrevNavCuePoint(); break; case mx.video.UIManager.FORWARD_BUTTON: this._vc.seekToNextNavCuePoint(); break; case mx.video.UIManager.MUTE_ON_BUTTON: case mx.video.UIManager.MUTE_OFF_BUTTON: if (!this._isMuted) { this._isMuted = true; this.cachedSoundLevel = this._vc.volume; this._vc.__set__volume(0); } else { this._isMuted = false; this._vc.__set__volume(this.cachedSoundLevel); } this.setEnabledAndVisibleForState(mx.video.UIManager.MUTE_OFF_BUTTON, mx.video.FLVPlayback.PLAYING); this.skinButtonControl(this.controls[mx.video.UIManager.MUTE_OFF_BUTTON]); this.setEnabledAndVisibleForState(mx.video.UIManager.MUTE_ON_BUTTON, mx.video.FLVPlayback.PLAYING); this.skinButtonControl(this.controls[mx.video.UIManager.MUTE_ON_BUTTON]); break; default: throw new Error('Unknown ButtonControl'); } this._vc.__set__activeVideoPlayerIndex(v2); }; v2.setEnabledAndVisibleForState = function (index, state) { var v5 = this._vc.__get__activeVideoPlayerIndex(); this._vc.__set__activeVideoPlayerIndex(this._vc.visibleVideoPlayerIndex); var v3 = state; if (v3 == mx.video.FLVPlayback.BUFFERING && !this._bufferingOn) { v3 = mx.video.FLVPlayback.PLAYING; } switch (index) { case mx.video.UIManager.VOLUME_BAR: case mx.video.UIManager.VOLUME_BAR_HANDLE: this.controls[index].myEnabled = true; this.controls[index].enabled = this._controlsEnabled; break; case mx.video.UIManager.MUTE_ON_BUTTON: this.controls[index].myEnabled = !this._isMuted; if (this.controls[mx.video.UIManager.MUTE_BUTTON] != undefined) { this.controls[index]._visible = this.controls[index].myEnabled; } break; case mx.video.UIManager.MUTE_OFF_BUTTON: this.controls[index].myEnabled = this._isMuted; if (this.controls[mx.video.UIManager.MUTE_BUTTON] != undefined) { this.controls[index]._visible = this.controls[index].myEnabled; } break; default: switch (v3) { case mx.video.FLVPlayback.LOADING: case mx.video.FLVPlayback.CONNECTION_ERROR: this.controls[index].myEnabled = false; break; case mx.video.FLVPlayback.DISCONNECTED: this.controls[index].myEnabled = this._vc.__get__contentPath() != undefined; break; break; case mx.video.FLVPlayback.SEEKING: default: this.controls[index].myEnabled = true; } } switch (index) { case mx.video.UIManager.SEEK_BAR: switch (v3) { case mx.video.FLVPlayback.STOPPED: case mx.video.FLVPlayback.PLAYING: case mx.video.FLVPlayback.PAUSED: case mx.video.FLVPlayback.REWINDING: case mx.video.FLVPlayback.SEEKING: this.controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING: this.controls[index].myEnabled = !this._bufferingBarHides || this.controls[mx.video.UIManager.BUFFERING_BAR] == undefined; break; default: this.controls[index].myEnabled = false; } if (this.controls[index].myEnabled) { this.controls[index].myEnabled = !isNaN(this._vc.__get__totalTime()) && this._vc.__get__totalTime() > 0; } this.controls[index].handle_mc.myEnabled = this.controls[index].myEnabled; this.controls[index].handle_mc.enabled = this.controls[index].handle_mc.myEnabled; this.controls[index].handle_mc._visible = this.controls[index].myEnabled; var v4 = !this._bufferingBarHides || this.controls[index].myEnabled || this.controls[mx.video.UIManager.BUFFERING_BAR] == undefined || !this.controls[mx.video.UIManager.BUFFERING_BAR]._visible; this.controls[index]._visible = v4; this.controls[index].progress_mc._visible = v4; this.controls[index].progress_mc.fill_mc._visible = v4; this.controls[index].fullness_mc._visible = v4; this.controls[index].fullness_mc.fill_mc._visible = v4; break; case mx.video.UIManager.BUFFERING_BAR: switch (v3) { case mx.video.FLVPlayback.STOPPED: case mx.video.FLVPlayback.PLAYING: case mx.video.FLVPlayback.PAUSED: case mx.video.FLVPlayback.REWINDING: case mx.video.FLVPlayback.SEEKING: this.controls[index].myEnabled = false; break; default: this.controls[index].myEnabled = true; } this.controls[index]._visible = this.controls[index].myEnabled; this.controls[index].fill_mc._visible = this.controls[index].myEnabled; break; case mx.video.UIManager.PAUSE_BUTTON: switch (v3) { case mx.video.FLVPlayback.DISCONNECTED: case mx.video.FLVPlayback.STOPPED: case mx.video.FLVPlayback.PAUSED: case mx.video.FLVPlayback.REWINDING: this.controls[index].myEnabled = false; break; case mx.video.FLVPlayback.PLAYING: this.controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING: this.controls[index].myEnabled = !this._bufferingBarHides || this.controls[mx.video.UIManager.BUFFERING_BAR] == undefined; } if (this.controls[mx.video.UIManager.PLAY_PAUSE_BUTTON] != undefined) { this.controls[index]._visible = this.controls[index].myEnabled; } break; case mx.video.UIManager.PLAY_BUTTON: switch (v3) { case mx.video.FLVPlayback.PLAYING: this.controls[index].myEnabled = false; break; case mx.video.FLVPlayback.STOPPED: case mx.video.FLVPlayback.PAUSED: this.controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING: this.controls[index].myEnabled = !this._bufferingBarHides || this.controls[mx.video.UIManager.BUFFERING_BAR] == undefined; } if (this.controls[mx.video.UIManager.PLAY_PAUSE_BUTTON] != undefined) { this.controls[index]._visible = !this.controls[mx.video.UIManager.PAUSE_BUTTON]._visible; } break; case mx.video.UIManager.STOP_BUTTON: switch (v3) { case mx.video.FLVPlayback.DISCONNECTED: case mx.video.FLVPlayback.STOPPED: this.controls[index].myEnabled = false; break; case mx.video.FLVPlayback.PAUSED: case mx.video.FLVPlayback.PLAYING: case mx.video.FLVPlayback.BUFFERING: this.controls[index].myEnabled = true; } break; case mx.video.UIManager.BACK_BUTTON: case mx.video.UIManager.FORWARD_BUTTON: if (v3 !== mx.video.FLVPlayback.BUFFERING) { } else { this.controls[index].myEnabled = !this._bufferingBarHides || this.controls[mx.video.UIManager.BUFFERING_BAR] == undefined; } } this.controls[index].enabled = this._controlsEnabled && this.controls[index].myEnabled; this._vc.__set__activeVideoPlayerIndex(v5); }; v2.setupSkinAutoHide = function () { if (this._skinAutoHide && this.skin_mc != undefined) { this.skinAutoHideHitTest(); if (this._skinAutoHideIntervalID == 0) { this._skinAutoHideIntervalID = setInterval(this, 'skinAutoHideHitTest', mx.video.UIManager.SKIN_AUTO_HIDE_INTERVAL); } } else { this.skin_mc._visible = this.__visible; clearInterval(this._skinAutoHideIntervalID); this._skinAutoHideIntervalID = 0; } }; v2.skinAutoHideHitTest = function () { if (!this.__visible) { this.skin_mc._visible = false; } else { var v4 = this._vc.getVideoPlayer(this._vc.__get__visibleVideoPlayerIndex()); var v3 = v4.hitTest(_root._xmouse, _root._ymouse, true); if (!v3 && this.border_mc != undefined) { v3 = this.border_mc.hitTest(_root._xmouse, _root._ymouse, true); } this.skin_mc._visible = v3; } }; v1.version = '1.0.2.8'; v1.shortVersion = '1.0.2'; v1.PAUSE_BUTTON = 0; v1.PLAY_BUTTON = 1; v1.STOP_BUTTON = 2; v1.SEEK_BAR_HANDLE = 3; v1.BACK_BUTTON = 4; v1.FORWARD_BUTTON = 5; v1.MUTE_ON_BUTTON = 6; v1.MUTE_OFF_BUTTON = 7; v1.VOLUME_BAR_HANDLE = 8; v1.NUM_BUTTONS = 9; v1.PLAY_PAUSE_BUTTON = 9; v1.MUTE_BUTTON = 10; v1.BUFFERING_BAR = 11; v1.SEEK_BAR = 12; v1.VOLUME_BAR = 13; v1.NUM_CONTROLS = 14; v1.UP_STATE = 0; v1.OVER_STATE = 1; v1.DOWN_STATE = 2; v1.SKIN_AUTO_HIDE_INTERVAL = 200; v1.VOLUME_BAR_INTERVAL_DEFAULT = 250; v1.VOLUME_BAR_SCRUB_TOLERANCE_DEFAULT = 0; v1.SEEK_BAR_INTERVAL_DEFAULT = 250; v1.SEEK_BAR_SCRUB_TOLERANCE_DEFAULT = 5; v1.BUFFERING_DELAY_INTERVAL_DEFAULT = 1000; v2.addProperty('bufferingBarHidesAndDisablesOthers', v2.__get__bufferingBarHidesAndDisablesOthers, v2.__set__bufferingBarHidesAndDisablesOthers); v2.addProperty('bufferingDelayInterval', v2.__get__bufferingDelayInterval, v2.__set__bufferingDelayInterval); v2.addProperty('controlsEnabled', v2.__get__controlsEnabled, v2.__set__controlsEnabled); v2.addProperty('seekBarInterval', v2.__get__seekBarInterval, v2.__set__seekBarInterval); v2.addProperty('seekBarScrubTolerance', v2.__get__seekBarScrubTolerance, v2.__set__seekBarScrubTolerance); v2.addProperty('skin', v2.__get__skin, v2.__set__skin); v2.addProperty('skinAutoHide', v2.__get__skinAutoHide, v2.__set__skinAutoHide); v2.addProperty('skinReady', v2.__get__skinReady, function () {}); v2.addProperty('visible', v2.__get__visible, v2.__set__visible); v2.addProperty('volumeBarInterval', v2.__get__volumeBarInterval, v2.__set__volumeBarInterval); v2.addProperty('volumeBarScrubTolerance', v2.__get__volumeBarScrubTolerance, v2.__set__volumeBarScrubTolerance); ASSetPropFlags(mx.video.UIManager.prototype, null, 1); } #endinitclip } movieClip 2717 __Packages.mx.utils.Delegate { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.utils) { _global.mx.utils = new Object(); } if (!_global.mx.utils.Delegate) { var v1 = function (f) { super(); this.func = f; }; mx.utils.Delegate = v1; mx.utils.Delegate extends Object; var v2 = v1.prototype; v1.create = function (obj, func) { var v2 = function () { var v2 = arguments.callee.target; var v3 = arguments.callee.func; return v3.apply(v2, arguments); }; v2.target = obj; v2.func = func; return v2; }; v2.createDelegate = function (obj) { return mx.utils.Delegate.create(obj, this.func); }; ASSetPropFlags(mx.utils.Delegate.prototype, null, 1); } #endinitclip } movieClip 2718 __Packages.mx.video.SMILManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.SMILManager) { var v1 = function (owner) { this._owner = owner; }; mx.video.SMILManager = v1; var v2 = v1.prototype; v2.connectXML = function (url) { this._url = this.fixURL(url); this.xml = new XML(); this.xml.onLoad = mx.utils.Delegate.create(this, this.xmlOnLoad); this.xml.load(this._url); return false; }; v2.fixURL = function (origURL) { if ((origURL.substr(0, 5)).toLowerCase() == 'http:' || (origURL.substr(0, 6)).toLowerCase() == 'https:') { var v2 = origURL.indexOf('?') >= 0 ? '&' : '?'; return origURL + v2 + 'FLVPlaybackVersion=' + mx.video.SMILManager.shortVersion; } return origURL; }; v2.xmlOnLoad = function (success) { try { if (!success) { this._owner.helperDone(this, false); } else { this.baseURLAttr = new Array(); this.videoTags = new Array(); var v2 = this.xml.firstChild; var v6 = false; while (v2 != null) { if (v2.nodeType == mx.video.SMILManager.ELEMENT_NODE) { v6 = true; if (v2.nodeName.toLowerCase() == 'smil') { break; } } v2 = v2.nextSibling; } if (!v6) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" No root node found; if url is for an flv it must have .flv extension and take no parameters'); } else { if (v2 == null) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" Root node not smil'); } } var v5 = false; var v4 = 0; while (v4 < v2.childNodes.length) { var v3 = v2.childNodes[v4]; if (v3.nodeType != mx.video.SMILManager.ELEMENT_NODE) { } else { if (v3.nodeName.toLowerCase() == 'head') { this.parseHead(v3); } else { if (v3.nodeName.toLowerCase() == 'body') { v5 = true; this.parseBody(v3); } else { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" Tag ' + v3.nodeName + ' not supported in ' + v2.nodeName + ' tag.'); } } } ++v4; } if (!v5) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" Tag body is required.'); } this._owner.helperDone(this, true); } } catch (v0) { if (Error(v0) != null) { var err = Error(v0); this._owner.helperDone(this, false); throw err; } else { throw v0; } } }; v2.parseHead = function (parentNode) { var v4 = false; var v3 = 0; while (v3 < parentNode.childNodes.length) { var v2 = parentNode.childNodes[v3]; if (v2.nodeType != mx.video.SMILManager.ELEMENT_NODE) { } else { if (v2.nodeName.toLowerCase() == 'meta') { for (var v6 in v2.attributes) { if (v6.toLowerCase() == 'base') { this.baseURLAttr.push(v2.attributes[v6]); } else { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" Attribute ' + v6 + ' not supported in ' + v2.nodeName + ' tag.'); } } } else { if (v2.nodeName.toLowerCase() == 'layout') { if (!v4) { this.parseLayout(v2); v4 = true; } else {} } else {} } } ++v3; } }; v2.parseLayout = function (parentNode) { var v3 = 0; while (v3 < parentNode.childNodes.length) { var v2 = parentNode.childNodes[v3]; if (v2.nodeType != mx.video.SMILManager.ELEMENT_NODE) { } else { if (v2.nodeName.toLowerCase() == 'root-layout') { for (var v5 in v2.attributes) { if (v5.toLowerCase() == 'width') { this.width = Number(v2.attributes[v5]); } else { if (v5.toLowerCase() == 'height') { this.height = Number(v2.attributes[v5]); } else {} } } if (isNaN(this.width) || this.width < 0 || isNaN(this.height) || this.height < 0) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" Tag ' + v2.nodeName + ' requires attributes id, width and height. Width and height must be numbers greater than or equal to 0.'); } this.width = Math.round(this.width); this.height = Math.round(this.height); return undefined; } else {} } ++v3; } }; v2.parseBody = function (parentNode) { var v6 = 0; var v3 = 0; while (v3 < parentNode.childNodes.length) { var v2 = parentNode.childNodes[v3]; if (v2.nodeType != mx.video.SMILManager.ELEMENT_NODE) { } else { if (++v6 > 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" Tag ' + parentNode.nodeName + ' is required to contain exactly one tag.'); } if (v2.nodeName.toLowerCase() == 'switch') { this.parseSwitch(v2); } else { if (v2.nodeName.toLowerCase() == 'video' || v2.nodeName.toLowerCase() == 'ref') { var v5 = this.parseVideo(v2); this.videoTags.push(v5); } else {} } } ++v3; } if (this.videoTags.length < 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" At least one video of ref tag is required.'); } }; v2.parseSwitch = function (parentNode) { var v3 = 0; while (v3 < parentNode.childNodes.length) { var v2 = parentNode.childNodes[v3]; if (v2.nodeType != mx.video.SMILManager.ELEMENT_NODE) { } else { if (v2.nodeName.toLowerCase() == 'video' || v2.nodeName.toLowerCase() == 'ref') { this.videoTags.push(this.parseVideo(v2)); } else {} } ++v3; } }; v2.parseVideo = function (node) { var v3 = new Object(); for (var v4 in node.attributes) { if (v4.toLowerCase() == 'src') { v3.src = node.attributes[v4]; } else { if (v4.toLowerCase() == 'system-bitrate') { v3.bitrate = Number(node.attributes[v4]); } else { if (v4.toLowerCase() == 'dur') { v3.dur = this.parseTime(node.attributes[v4]); } else {} } } } if (v3.src == undefined) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" Attribute src is required in ' + node.nodeName + ' tag.'); } return v3; }; v2.parseTime = function (timeStr) { var v4 = 0; var v3 = timeStr.split(':'); if (v3.length < 1 || v3.length > 3) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'Invalid dur value: ' + timeStr); } var v1 = 0; while (v1 < v3.length) { var v2 = Number(v3[v1]); if (isNaN(v2)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'Invalid dur value: ' + timeStr); } v4 *= 60; v4 += v2; ++v1; } return v4; }; v1.version = '1.0.2.8'; v1.shortVersion = '1.0.2'; v1.ELEMENT_NODE = 1; ASSetPropFlags(mx.video.SMILManager.prototype, null, 1); } #endinitclip } movieClip 2719 __Packages.mx.video.FPADManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.FPADManager) { var v1 = function (owner) { this._owner = owner; }; mx.video.FPADManager = v1; var v2 = v1.prototype; v2.connectXML = function (urlPrefix, uriParam, urlSuffix, uriParamParseResults) { this._uriParam = uriParam; this._parseResults = uriParamParseResults; this._url = urlPrefix + 'uri=' + this._parseResults.protocol; if (this._parseResults.serverName != undefined) { this._url += '/' + this._parseResults.serverName; } if (this._parseResults.portNumber != undefined) { this._url += ':' + this._parseResults.portNumber; } if (this._parseResults.wrappedURL != undefined) { this._url += '/?' + this._parseResults.wrappedURL; } this._url += '/' + this._parseResults.appName; this._url += urlSuffix; this.xml = new XML(); this.xml.onLoad = mx.utils.Delegate.create(this, this.xmlOnLoad); this.xml.load(this._url); return false; }; v2.xmlOnLoad = function (success) { try { if (!success) { this._owner.helperDone(this, false); } else { var v5 = this.xml.firstChild; var v8 = false; while (v5 != null) { if (v5.nodeType == mx.video.FPADManager.ELEMENT_NODE) { v8 = true; if (v5.nodeName.toLowerCase() == 'fpad') { break; } } v5 = v5.nextSibling; } if (!v8) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" No root node found; if url is for an flv it must have .flv extension and take no parameters'); } else { if (v5 == null) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" Root node not fpad'); } } var v7; var v6 = 0; while (v6 < v5.childNodes.length) { var v3 = v5.childNodes[v6]; if (v3.nodeType != mx.video.FPADManager.ELEMENT_NODE) { } else { if (v3.nodeName.toLowerCase() == 'proxy') { var v2 = 0; while (v2 < v3.childNodes.length) { var v4 = v3.childNodes[v2]; if (v4.nodeType == mx.video.FPADManager.TEXT_NODE) { v7 = this.trim(v4.nodeValue); break; } ++v2; } break; } } ++v6; } if (v7 == undefined || v7 == '') { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" fpad xml requires proxy tag.'); } this.rtmpURL = this._parseResults.protocol + '/' + v7 + '/?' + this._uriParam; this._owner.helperDone(this, true); } } catch (v0) { if (Error(v0) != null) { var err = Error(v0); this._owner.helperDone(this, false); throw err; } else { throw v0; } } }; v2.trim = function (str) { var v2 = 0; while (v2 < str.length) { var v1 = str.charAt(v2); if (v1 != ' ' && v1 != '\t' && v1 != '\r' && v1 != '\n') { break; } ++v2; } if (v2 >= str.length) { return ''; } var v4 = str.length - 1; while (v4 > v2) { v1 = str.charAt(v4); if (v1 != ' ' && v1 != '\t' && v1 != '\r' && v1 != '\n') { break; } --v4; } return str.slice(v2, v4 + 1); }; v1.version = '1.0.2.8'; v1.shortVersion = '1.0.2'; v1.ELEMENT_NODE = 1; v1.TEXT_NODE = 3; ASSetPropFlags(mx.video.FPADManager.prototype, null, 1); } #endinitclip } movieClip 2720 __Packages.mx.video.NCManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.NCManager) { var v1 = function () { this.initNCInfo(); this.initOtherInfo(); this._timeoutIntervalId = 0; this._tryNCIntervalId = 0; this._timeout = this.DEFAULT_TIMEOUT; this._nc = undefined; this._ncConnected = false; }; mx.video.NCManager = v1; var v2 = v1.prototype; _global.mx.video.NCManager implements _global.mx.video.INCManager; v2.initNCInfo = function () { this._isRTMP = undefined; this._serverName = undefined; this._wrappedURL = undefined; this._portNumber = undefined; this._appName = undefined; }; v2.initOtherInfo = function () { this._contentPath = undefined; this._streamName = undefined; this._streamLength = undefined; this._streamWidth = undefined; this._streamHeight = undefined; this._streams = undefined; this._autoSenseBW = false; this.fpadZone = undefined; this._payload = 0; this._connTypeCounter = 0; this.cleanConns(); }; v2.getTimeout = function () { return this._timeout; }; v2.setTimeout = function (t) { this._timeout = t; if (this._timeoutIntervalId != 0) { clearInterval(this._timeoutIntervalId); this._timeoutIntervalId = setInterval(this, '_onFCSConnectTimeOut', this._timeout); } }; v2.getBitrate = function () { return this._bitrate; }; v2.setBitrate = function (b) { if (this._isRTMP == undefined || !this._isRTMP) { this._bitrate = b; } }; v2.getVideoPlayer = function () { return this._owner; }; v2.setVideoPlayer = function (v) { this._owner = v; }; v2.getNetConnection = function () { return this._nc; }; v2.getStreamName = function () { return this._streamName; }; v2.isRTMP = function () { return this._isRTMP; }; v2.getStreamLength = function () { return this._streamLength; }; v2.getStreamWidth = function () { return this._streamWidth; }; v2.getStreamHeight = function () { return this._streamHeight; }; v2.connectToURL = function (url) { this.initOtherInfo(); this._contentPath = url; if (this._contentPath == null || this._contentPath == '') { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH); } var v2 = this.parseURL(this._contentPath); if (v2.streamName == undefined || v2.streamName == '') { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } if (v2.isRTMP) { var v4 = this.canReuseOldConnection(v2); this._isRTMP = true; this._protocol = v2.protocol; this._streamName = v2.streamName; this._serverName = v2.serverName; this._wrappedURL = v2.wrappedURL; this._portNumber = v2.portNumber; this._appName = v2.appName; if (this._appName == undefined || this._appName == '' || this._streamName == undefined || this._streamName == '') { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } this._autoSenseBW = this._streamName.indexOf(',') >= 0; return v4 || this.connectRTMP(); } else { var v3 = v2.streamName; if (v3.indexOf('?') < 0 && (v3.length < 4 || (v3.slice(-4)).toLowerCase() != '.txt') && (v3.length < 4 || (v3.slice(-4)).toLowerCase() != '.xml') && (v3.length < 5 || (v3.slice(-5)).toLowerCase() != '.smil')) { var v4 = this.canReuseOldConnection(v2); this._isRTMP = false; this._streamName = v3; return v4 || this.connectHTTP(); } if (v3.indexOf('/fms/fpad') >= 0) { try { return this.connectFPAD(v3); } catch (v0) { if (Error(v0) != null) { var err = Error(v0); this._smilMgr = new mx.video.SMILManager(this); return this._smilMgr.connectXML(v3); } throw v0; } } this._smilMgr = new mx.video.SMILManager(this); return this._smilMgr.connectXML(v3); } }; v2.connectAgain = function () { var v2 = this._appName.indexOf('/'); if (v2 < 0) { v2 = this._streamName.indexOf('/'); if (v2 >= 0) { this._appName += '/'; this._appName += this._streamName.slice(0, v2); this._streamName = this._streamName.slice(v2 + 1); } return false; } var v3 = this._appName.slice(v2 + 1); v3 += '/'; v3 += this._streamName; this._streamName = v3; this._appName = this._appName.slice(0, v2); this.close(); this._payload = 0; this._connTypeCounter = 0; this.cleanConns(); this.connectRTMP(); return true; }; v2.reconnect = function () { if (!this._isRTMP) { throw new Error('Cannot call reconnect on an http connection'); } this._nc.onStatus = function (info) { this.mc.reconnectOnStatus(this, info); }; this._nc.onBWDone = function () { this.mc.onReconnected(); }; this._nc.connect(this._ncUri, false); }; v2.onReconnected = function () { delete this._nc.onStatus; delete this._nc.onBWDone; this._ncConnected = true; this._owner.ncReconnected(); }; v2.close = function () { if (this._nc) { this._nc.close(); this._ncConnected = false; } }; v2.helperDone = function (helper, success) { if (!success) { this._nc = undefined; this._ncConnected = false; this._owner.ncConnected(); this._smilMgr = undefined; this._fpadMgr = undefined; return undefined; } var v2; var v4; if (helper == this._fpadMgr) { v4 = this._fpadMgr.rtmpURL; this._fpadMgr = undefined; v2 = this.parseURL(v4); this._isRTMP = v2.isRTMP; this._protocol = v2.protocol; this._serverName = v2.serverName; this._portNumber = v2.portNumber; this._wrappedURL = v2.wrappedURL; this._appName = v2.appName; this._streamName = v2.streamName; var v5 = this.fpadZone; this.fpadZone = -1; this.connectRTMP(); this.fpadZone = v5; return undefined; } if (helper != this._smilMgr) { return undefined; } this._streamWidth = this._smilMgr.width; this._streamHeight = this._smilMgr.height; v4 = this._smilMgr.baseURLAttr[0]; if (v4 != undefined && v4 != '') { if (v4.charAt(v4.length - 1) != '/') { v4 += '/'; } v2 = this.parseURL(v4); this._isRTMP = v2.isRTMP; this._streamName = v2.streamName; if (this._isRTMP) { this._protocol = v2.protocol; this._serverName = v2.serverName; this._portNumber = v2.portNumber; this._wrappedURL = v2.wrappedURL; this._appName = v2.appName; if (this._appName == undefined || this._appName == '') { this._smilMgr = undefined; throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'Base RTMP URL must include application name: ' + v4); } if (this._smilMgr.baseURLAttr.length > 1) { v2 = this.parseURL(this._smilMgr.baseURLAttr[1]); if (v2.serverName != undefined) { this.fallbackServerName = v2.serverName; } } } } this._streams = this._smilMgr.videoTags; this._smilMgr = undefined; var v3 = 0; while (v3 < this._streams.length) { v4 = this._streams[v3].src; v2 = this.parseURL(v4); if (this._isRTMP == undefined) { this._isRTMP = v2.isRTMP; if (this._isRTMP) { this._protocol = v2.protocol; if (this._streams.length > 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'Cannot switch between multiple absolute RTMP URLs, must use meta tag base attribute.'); } this._serverName = v2.serverName; this._portNumber = v2.portNumber; this._wrappedURL = v2.wrappedURL; this._appName = v2.appName; if (this._appName == undefined || this._appName == '') { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'Base RTMP URL must include application name: ' + v4); } } else { if (v2.streamName.indexOf('/fms/fpad') >= 0 && this._streams.length > 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'Cannot switch between multiple absolute fpad URLs, must use meta tag base attribute.'); } } } else { if (this._streamName != undefined && this._streamName != '' && !v2.isRelative && this._streams.length > 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'When using meta tag base attribute, cannot use absolute URLs for video or ref tag src attributes.'); } } this._streams[v3].parseResults = v2; ++v3; } this._autoSenseBW = this._streams.length > 1; if (!this._autoSenseBW) { if (this._streamName != undefined) { this._streamName += this._streams[0].parseResults.streamName; } else { this._streamName = this._streams[0].parseResults.streamName; } this._streamLength = this._streams[0].dur; } if (this._isRTMP) { this.connectRTMP(); } else { if (this._streamName != undefined && this._streamName.indexOf('/fms/fpad') >= 0) { this.connectFPAD(this._streamName); } else { if (this._autoSenseBW) { this.bitrateMatch(); } this.connectHTTP(); this._owner.ncConnected(); } } }; v2.bitrateMatch = function () { var v3; var v4 = this._bitrate; if (isNaN(v4)) { v4 = 0; } var v2 = 0; while (v2 < this._streams.length) { if (isNaN(this._streams[v2].bitrate) || v4 >= this._streams[v2].bitrate) { v3 = v2; break; } ++v2; } if (isNaN(v3)) { throw new mx.video.VideoError(mx.video.VideoError.NO_BITRATE_MATCH); } if (this._streamName != undefined) { this._streamName += this._streams[v3].src; } else { this._streamName = this._streams[v3].src; } if (this._isRTMP && (this._streamName.slice(-4)).toLowerCase() == '.flv') { this._streamName = this._streamName.slice(0, -4); } this._streamLength = this._streams[v3].dur; }; v2.parseURL = function (url) { var v2 = new Object(); var v3 = 0; var v4 = url.indexOf(':/', v3); if (v4 >= 0) { v4 += 2; v2.protocol = url.slice(v3, v4); v2.isRelative = false; } else { v2.isRelative = true; } if (v2.protocol != undefined && (v2.protocol == 'rtmp:/' || v2.protocol == 'rtmpt:/' || v2.protocol == 'rtmps:/' || v2.protocol == 'rtmpe:/' || v2.protocol == 'rtmpte:/')) { v2.isRTMP = true; v3 = v4; if (url.charAt(v3) == '/') { ++v3; var v7 = url.indexOf(':', v3); var v8 = url.indexOf('/', v3); if (v8 < 0) { if (v7 < 0) { v2.serverName = url.slice(v3); } else { v4 = v7; v2.portNumber = url.slice(v3, v4); v3 = v4 + 1; v2.serverName = url.slice(v3); } return v2; } if (v7 >= 0 && v7 < v8) { v4 = v7; v2.serverName = url.slice(v3, v4); v3 = v4 + 1; v4 = v8; v2.portNumber = url.slice(v3, v4); } else { v4 = v8; v2.serverName = url.slice(v3, v4); } v3 = v4 + 1; } if (url.charAt(v3) == '?') { var v9 = url.slice(v3 + 1); var v6 = this.parseURL(v9); if (v6.protocol == undefined || !v6.isRTMP) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } v2.wrappedURL = '?'; v2.wrappedURL += v6.protocol; if (v6.serverName != undefined) { v2.wrappedURL += '/'; v2.wrappedURL += v6.serverName; } if (v6.wrappedURL != undefined) { v2.wrappedURL += '/?'; v2.wrappedURL += v6.wrappedURL; } v2.appName = v6.appName; v2.streamName = v6.streamName; return v2; } v4 = url.indexOf('/', v3); if (v4 < 0) { v2.appName = url.slice(v3); return v2; } v2.appName = url.slice(v3, v4); v3 = v4 + 1; v4 = url.indexOf('/', v3); if (v4 < 0) { v2.streamName = url.slice(v3); if ((v2.streamName.slice(-4)).toLowerCase() == '.flv') { v2.streamName = v2.streamName.slice(0, -4); } return v2; } v2.appName += '/'; v2.appName += url.slice(v3, v4); v3 = v4 + 1; v2.streamName = url.slice(v3); if ((v2.streamName.slice(-4)).toLowerCase() == '.flv') { v2.streamName = v2.streamName.slice(0, -4); } return v2; } v2.isRTMP = false; v2.streamName = url; return v2; }; v2.canReuseOldConnection = function (parseResults) { if (this._nc == null || !this._ncConnected) { return false; } if (!parseResults.isRTMP) { if (!this._isRTMP) { return true; } this._owner.close(); this._nc = undefined; this._ncConnected = false; this.initNCInfo(); return false; } if (this._isRTMP) { if (parseResults.serverName == this._serverName && parseResults.appName == this._appName && parseResults.protocol == this._protocol && parseResults.portNumber == this._portNumber && parseResults.wrappedURL == this._wrappedURL) { return true; } this._owner.close(); this._nc = undefined; this._ncConnected = false; } this.initNCInfo(); return false; }; v2.connectHTTP = function () { this._nc = new NetConnection(); this._nc.connect(null); this._ncConnected = true; return true; }; v2.connectRTMP = function () { clearInterval(this._timeoutIntervalId); this._timeoutIntervalId = setInterval(this, '_onFCSConnectTimeOut', this._timeout); this._tryNC = new Array(); var v3 = (this._protocol == 'rtmp:/' || this._protocol == 'rtmpe:/') ? 2 : 1; var v2 = 0; while (v2 < v3) { this._tryNC[v2] = new NetConnection(); if (this.fpadZone != null) { this._tryNC[v2].fpadZone = this.fpadZone; } this._tryNC[v2].mc = this; this._tryNC[v2].pending = false; this._tryNC[v2].connIndex = v2; this._tryNC[v2].onBWDone = function (p_bw) { this.mc.onConnected(this, p_bw); }; this._tryNC[v2].onBWCheck = function () { return ++this.mc._payload; }; this._tryNC[v2].onStatus = function (info) { this.mc.connectOnStatus(this, info); }; ++v2; } this.nextConnect(); return false; }; v2.connectFPAD = function (url) { var v7; var v5; var v6; var v2 = url.indexOf('?'); while (v2 >= 0) { ++v2; var v4 = url.indexOf('&', v2); if ((url.substr(v2, 4)).toLowerCase() == 'uri=') { v7 = url.slice(0, v2); v2 += 4; if (v4 >= 0) { v5 = url.slice(v2, v4); v6 = url.slice(v4); } else { v5 = url.slice(v2); v6 = ''; } break; } else { v2 = v4; } } if (v2 < 0) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, 'fpad url must include uri parameter: ' + url); } var v8 = this.parseURL(v5); if (!v8.isRTMP) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, 'fpad url uri parameter must be rtmp url: ' + url); } this._fpadMgr = new mx.video.FPADManager(this); return this._fpadMgr.connectXML(v7, v5, v6, v8); }; v2.nextConnect = function () { clearInterval(this._tryNCIntervalId); this._tryNCIntervalId = 0; var v3; var v2; if (this._connTypeCounter == 0) { v3 = this._protocol; v2 = this._portNumber; } else { v2 = null; if (this._protocol == 'rtmp:/') { v3 = 'rtmpt:/'; } else { if (this._protocol == 'rtmpe:/') { v3 = 'rtmpte:/'; } else { this._tryNC.pop(); return undefined; } } } var v4 = v3 + ((this._serverName == undefined) ? '' : '/' + this._serverName + ((v2 == null) ? '' : ':' + v2) + '/') + ((this._wrappedURL == undefined) ? '' : this._wrappedURL + '/') + this._appName; this._tryNC[this._connTypeCounter].pending = true; this._tryNC[this._connTypeCounter].connect(v4, this._autoSenseBW); if (this._connTypeCounter < this._tryNC.length - 1) { ++this._connTypeCounter; this._tryNCIntervalId = setInterval(this, 'nextConnect', 1500); } }; v2.cleanConns = function () { clearInterval(this._tryNCIntervalId); this._tryNCIntervalId = 0; if (this._tryNC != undefined) { var v2 = 0; while (v2 < this._tryNC.length) { if (this._tryNC[v2] != undefined) { delete this._tryNC[v2].onStatus; if (this._tryNC[v2].pending) { this._tryNC[v2].onStatus = function (info) { this.mc.disconnectOnStatus(this, info); }; } else { delete this._tryNC[v2].onStatus; this._tryNC[v2].close(); } } delete this._tryNC[v2]; ++v2; } delete this._tryNC; } }; v2.tryFallBack = function () { if (this._serverName == this.fallbackServerName || this.fallbackServerName == undefined || this.fallbackServerName == null) { delete this._nc; this._nc = undefined; this._ncConnected = false; this._owner.ncConnected(); } else { this._connTypeCounter = 0; this.cleanConns(); this._serverName = this.fallbackServerName; this.connectRTMP(); } }; v2.onConnected = function (p_nc, p_bw) { clearInterval(this._timeoutIntervalId); this._timeoutIntervalId = 0; delete p_nc.onBWDone; delete p_nc.onBWCheck; delete p_nc.onStatus; this._nc = p_nc; this._ncUri = this._nc.uri; this._ncConnected = true; if (this._autoSenseBW) { this._bitrate = p_bw * 1024; if (this._streams != undefined) { this.bitrateMatch(); } else { var v3 = this._streamName.split(','); var v2 = 0; while (v2 < v3.length) { var v4 = mx.video.NCManager.stripFrontAndBackWhiteSpace(v3[v2]); if (v2 + 1 < v3.length) { if (p_bw <= Number(v3[v2 + 1])) { this._streamName = v4; break; } } else { this._streamName = v4; break; } v2 += 2; } if ((this._streamName.slice(-4)).toLowerCase() == '.flv') { this._streamName = this._streamName.slice(0, -4); } } } if (!this._owner.__get__isLive() && this._streamLength == undefined) { var v6 = new Object(); v6.mc = this; v6.onResult = function (length) { this.mc.getStreamLengthResult(length); }; this._nc.call('getStreamLength', v6, this._streamName); } else { this._owner.ncConnected(); } }; v2.connectOnStatus = function (target, info) { target.pending = false; if (info.code == 'NetConnection.Connect.Success') { this._nc = this._tryNC[target.connIndex]; this._tryNC[target.connIndex] = undefined; this.cleanConns(); } else { if (info.code == 'NetConnection.Connect.Rejected' && info.ex != null && info.ex.code == 302) { this._connTypeCounter = 0; this.cleanConns(); var v2 = this.parseURL(info.ex.redirect); if (v2.isRTMP) { this._protocol = v2.protocol; this._serverName = v2.serverName; this._wrappedURL = v2.wrappedURL; this._portNumber = v2.portNumber; this._appName = v2.appName; if (v2.streamName != null) { this._appName += '/' + v2.streamName; } this.connectRTMP(); } else { this.tryFallBack(); } } else { if ((info.code == 'NetConnection.Connect.Failed' || info.code == 'NetConnection.Connect.Rejected') && target.connIndex == this._tryNC.length - 1) { if (!this.connectAgain()) { this.tryFallBack(); } } else {} } } }; v2.reconnectOnStatus = function (target, info) { if (info.code == 'NetConnection.Connect.Failed' || info.code == 'NetConnection.Connect.Rejected') { delete this._nc; this._nc = undefined; this._ncConnected = false; this._owner.ncReconnected(); } }; v2.disconnectOnStatus = function (target, info) { if (info.code == 'NetConnection.Connect.Success') { delete target.onStatus; target.close(); } }; v2.getStreamLengthResult = function (length) { if (length > 0) { this._streamLength = length; } this._owner.ncConnected(); }; v2._onFCSConnectTimeOut = function () { this.cleanConns(); this._nc = undefined; this._ncConnected = false; if (!this.connectAgain()) { this._owner.ncConnected(); } }; v1.stripFrontAndBackWhiteSpace = function (p_str) { var v1; var v2 = p_str.length; var v4 = 0; var v5 = v2; v1 = 0; while (v1 < v2) { switch (p_str.charCodeAt(v1)) { if (p_str.charCodeAt(v1) !== 32) { } else { break; case 9: case 10: case 13: } default: v4 = v1; break; } ++v1; } v1 = v2; while (v1 >= 0) { switch (p_str.charCodeAt(v1)) { if (p_str.charCodeAt(v1) !== 32) { } else { break; case 9: case 10: case 13: } default: v5 = v1 + 1; break; } --v1; } if (v5 <= v4) { return ''; } return p_str.slice(v4, v5); }; v1.version = '1.0.2.8'; v1.shortVersion = '1.0.2'; v2.DEFAULT_TIMEOUT = 60000; ASSetPropFlags(mx.video.NCManager.prototype, null, 1); } #endinitclip } movieClip 2721 __Packages.mx.video.CuePointManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.CuePointManager) { var v1 = function (owner, id) { this._owner = owner; this._id = id; this.reset(); this._asCuePointTolerance = (this._owner.getVideoPlayer(this._id)).__get__playheadUpdateInterval() / 2000; this._linearSearchTolerance = mx.video.CuePointManager.DEFAULT_LINEAR_SEARCH_TOLERANCE; }; mx.video.CuePointManager = v1; var v2 = v1.prototype; v2.reset = function () { this._metadataLoaded = false; this.allCuePoints = null; this.asCuePoints = null; this._disabledCuePoints = null; this.flvCuePoints = null; this.navCuePoints = null; this.eventCuePoints = null; this._asCuePointIndex = 0; }; v2.__get__metadataLoaded = function () { return this._metadataLoaded; }; v2.__set__playheadUpdateInterval = function (aTime) { this._asCuePointTolerance = aTime / 2000; return this.__get__playheadUpdateInterval(); }; v2.__get__id = function () { return this._id; }; v2.addASCuePoint = function (timeOrCuePoint, name, parameters) { var v3; if (typeof timeOrCuePoint == 'object') { v3 = mx.video.CuePointManager.deepCopyObject(timeOrCuePoint); } else { v3 = {'time': timeOrCuePoint, 'name': name, 'parameters': mx.video.CuePointManager.deepCopyObject(parameters)}; } var v7 = isNaN(v3.time) || v3.time < 0; if (v7) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'time must be number'); } var v6 = v3.name == null; if (v6) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'name cannot be undefined or null'); } var v2; v3.type = 'actionscript'; if (this.asCuePoints == null || this.asCuePoints.length < 1) { v2 = 0; this.asCuePoints = new Array(); this.asCuePoints.push(v3); } else { v2 = this.getCuePointIndex(this.asCuePoints, true, v3.time); v2 = this.asCuePoints[v2].time > v3.time ? 0 : v2 + 1; this.asCuePoints.splice(v2, 0, v3); } if (this.allCuePoints == null || this.allCuePoints.length < 1) { v2 = 0; this.allCuePoints = new Array(); this.allCuePoints.push(v3); } else { v2 = this.getCuePointIndex(this.allCuePoints, true, v3.time); v2 = this.allCuePoints[v2].time > v3.time ? 0 : v2 + 1; this.allCuePoints.splice(v2, 0, v3); } var v5 = (this._owner.getVideoPlayer(this._id)).__get__playheadTime(); if (v5 > 0) { if (this._asCuePointIndex == v2) { if (v5 > this.asCuePoints[v2].time) { ++this._asCuePointIndex; } } else { if (this._asCuePointIndex > v2) { ++this._asCuePointIndex; } } var v4 = mx.video.CuePointManager.deepCopyObject(this.asCuePoints[v2]); v4.array = this.asCuePoints; v4.index = v2; return v4; } this._asCuePointIndex = 0; var v4 = mx.video.CuePointManager.deepCopyObject(this.asCuePoints[v2]); v4.array = this.asCuePoints; v4.index = v2; return v4; }; v2.removeASCuePoint = function (timeNameOrCuePoint) { if (this.asCuePoints == null || this.asCuePoints.length < 1) { return null; } var v2; switch (typeof timeNameOrCuePoint) { case 'string': v2 = {'name': timeNameOrCuePoint}; break; case 'number': v2 = {'time': timeNameOrCuePoint}; break; case 'object': v2 = timeNameOrCuePoint; } var v3 = this.getCuePointIndex(this.asCuePoints, false, v2.time, v2.name); if (v3 < 0) { return null; } v2 = this.asCuePoints[v3]; this.asCuePoints.splice(v3, 1); v3 = this.getCuePointIndex(this.allCuePoints, false, v2.time, v2.name); if (v3 > 0) { this.allCuePoints.splice(v3, 1); } if ((this._owner.getVideoPlayer(this._id)).__get__playheadTime() > 0) { if (this._asCuePointIndex > v3) { --this._asCuePointIndex; } return v2; } this._asCuePointIndex = 0; return v2; }; v2.setFLVCuePointEnabled = function (enabled, timeNameOrCuePoint) { var v4; switch (typeof timeNameOrCuePoint) { case 'string': v4 = {'name': timeNameOrCuePoint}; break; case 'number': v4 = {'time': timeNameOrCuePoint}; break; case 'object': v4 = timeNameOrCuePoint; } var v12 = isNaN(v4.time) || v4.time < 0; var v11 = v4.name == null; if (v12 && v11) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'time must be number and/or name must not be undefined or null'); } var v6 = 0; var v2; var v5; if (v12) { if (!this._metadataLoaded) { if (this._disabledCuePointsByNameOnly[v4.name] == null) { if (!enabled) { if (this._disabledCuePointsByNameOnly == null || this._disabledCuePointsByNameOnly.length < 0) { this._disabledCuePointsByNameOnly = new Object(); } this._disabledCuePointsByNameOnly[v4.name] = new Array(); } } else { if (enabled) { this._disabledCuePointsByNameOnly[v4.name] = undefined; } return -1; } this.removeCuePoints(this._disabledCuePoints, v4); return -1; } if (enabled) { v6 = this.removeCuePoints(this._disabledCuePoints, v4); } else { var v3; v2 = this.getCuePointIndex(this.flvCuePoints, true, -1, v4.name); while (v2 >= 0) { v3 = this.flvCuePoints[v2]; v5 = this.getCuePointIndex(this._disabledCuePoints, true, v3.time); if (v5 < 0 || this._disabledCuePoints[v5].time != v3.time) { this._disabledCuePoints = this.insertCuePoint(v5, this._disabledCuePoints, {'name': v3.name, 'time': v3.time}); v6 += 1; } v2 = this.getNextCuePointIndexWithName(v3.name, this.flvCuePoints, v2); } } return v6; } v2 = this.getCuePointIndex(this._disabledCuePoints, false, v4.time, v4.name); if (v2 < 0) { if (enabled) { if (!this._metadataLoaded) { v2 = this.getCuePointIndex(this._disabledCuePoints, false, v4.time); if (v2 < 0) { v5 = this.getCuePointIndex(this._disabledCuePointsByNameOnly[v4.name], true, v4.time); if (mx.video.CuePointManager.cuePointCompare(v4.time, null, this._disabledCuePointsByNameOnly[v4.name]) != 0) { this._disabledCuePointsByNameOnly[v4.name] = this.insertCuePoint(v5, this._disabledCuePointsByNameOnly[v4.name], v4); } } else { this._disabledCuePoints.splice(v2, 1); } } return this._metadataLoaded ? 0 : -1; } } else { if (enabled) { this._disabledCuePoints.splice(v2, 1); v6 = 1; } else { v6 = 0; } return this._metadataLoaded ? v6 : -1; } if (this._metadataLoaded) { v2 = this.getCuePointIndex(this.flvCuePoints, false, v4.time, v4.name); if (v2 < 0) { return 0; } if (v11) { v4.name = this.flvCuePoints[v2].name; } } v5 = this.getCuePointIndex(this._disabledCuePoints, true, v4.time); this._disabledCuePoints = this.insertCuePoint(v5, this._disabledCuePoints, v4); v6 = 1; return this._metadataLoaded ? v6 : -1; }; v2.removeCuePoints = function (cuePointArray, cuePoint) { var v2; var v4; var v5 = 0; v2 = this.getCuePointIndex(cuePointArray, true, -1, cuePoint.name); while (v2 >= 0) { v4 = cuePointArray[v2]; cuePointArray.splice(v2, 1); --v2; ++v5; v2 = this.getNextCuePointIndexWithName(v4.name, cuePointArray, v2); } return v5; }; v2.insertCuePoint = function (insertIndex, cuePointArray, cuePoint) { if (insertIndex < 0) { cuePointArray = new Array(); cuePointArray.push(cuePoint); return cuePointArray; } if (cuePointArray[insertIndex].time > cuePoint.time) { insertIndex = 0; } else { ++insertIndex; } cuePointArray.splice(insertIndex, 0, cuePoint); return cuePointArray; }; v2.isFLVCuePointEnabled = function (timeNameOrCuePoint) { if (!this._metadataLoaded) { return true; } var v3; switch (typeof timeNameOrCuePoint) { case 'string': v3 = {'name': timeNameOrCuePoint}; break; case 'number': v3 = {'time': timeNameOrCuePoint}; break; case 'object': v3 = timeNameOrCuePoint; } var v5 = isNaN(v3.time) || v3.time < 0; var v6 = v3.name == null; if (v5 && v6) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'time must be number and/or name must not be undefined or null'); } if (v5) { var v2 = this.getCuePointIndex(this.flvCuePoints, true, -1, v3.name); if (v2 < 0) { return true; } while (v2 >= 0) { if (this.getCuePointIndex(this._disabledCuePoints, false, this.flvCuePoints[v2].time, this.flvCuePoints[v2].name) < 0) { return true; } v2 = this.getNextCuePointIndexWithName(v3.name, this.flvCuePoints, v2); } return false; } return this.getCuePointIndex(this._disabledCuePoints, false, v3.time, v3.name) < 0; }; v2.dispatchASCuePoints = function () { var v5 = (this._owner.getVideoPlayer(this._id)).__get__playheadTime(); if ((this._owner.getVideoPlayer(this._id)).__get__stateResponsive() && this.asCuePoints != null) { for (;;) { if (!(this._asCuePointIndex < this.asCuePoints.length && this.asCuePoints[this._asCuePointIndex].time <= v5 + this._asCuePointTolerance)) break; this._owner.dispatchEvent({'type': 'cuePoint', 'info': mx.video.CuePointManager.deepCopyObject(this.asCuePoints[this._asCuePointIndex++]), 'vp': this._id}); } } }; v2.resetASCuePointIndex = function (time) { if (time <= 0 || this.asCuePoints == null) { this._asCuePointIndex = 0; return undefined; } var v2 = this.getCuePointIndex(this.asCuePoints, true, time); this._asCuePointIndex = this.asCuePoints[v2].time < time ? v2 + 1 : v2; }; v2.processFLVCuePoints = function (metadataCuePoints) { this._metadataLoaded = true; if (metadataCuePoints == null || metadataCuePoints.length < 1) { this.flvCuePoints = null; this.navCuePoints = null; this.eventCuePoints = null; return undefined; } this.flvCuePoints = metadataCuePoints; this.navCuePoints = new Array(); this.eventCuePoints = new Array(); var v5; var v6 = -1; var v2; var v4 = this._disabledCuePoints; var v3 = 0; this._disabledCuePoints = new Array(); var v9 = 0; v2 = this.flvCuePoints[v9++]; while (v2 != null) { if (v6 > 0 && v6 >= v2.time) { this.flvCuePoints = null; this.navCuePoints = null; this.eventCuePoints = null; this._disabledCuePoints = null; this._disabledCuePointsByNameOnly = null; throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'Unsorted cuePoint found after time: ' + v6); } v6 = v2.time; for (;;) { if (!(v3 < v4.length && mx.video.CuePointManager.cuePointCompare(v4[v3].time, null, v2) < 0)) break; ++v3; } if (this._disabledCuePointsByNameOnly[v2.name] != null || v3 < v4.length && mx.video.CuePointManager.cuePointCompare(v4[v3].time, v4[v3].name, v2) == 0) { this._disabledCuePoints.push({'time': v2.time, 'name': v2.name}); } if (v2.type == 'navigation') { this.navCuePoints.push(v2); } else { if (v2.type == 'event') { this.eventCuePoints.push(v2); } } if (this.allCuePoints == null || this.allCuePoints.length < 1) { this.allCuePoints = new Array(); this.allCuePoints.push(v2); } else { v5 = this.getCuePointIndex(this.allCuePoints, true, v2.time); v5 = this.allCuePoints[v5].time > v2.time ? 0 : v5 + 1; this.allCuePoints.splice(v5, 0, v2); } } delete this._disabledCuePointsByNameOnly; this._disabledCuePointsByNameOnly = null; }; v2.processCuePointsProperty = function (cuePoints) { if (cuePoints == null || cuePoints.length == 0) { return undefined; } var v4 = 0; var v8; var v6; var v7; var v5; var v9; var v2 = 0; while (v2 < cuePoints.length - 1) { switch (v4) { case 6: this.addOrDisable(v9, v5); v4 = 0; case 0: if (cuePoints[v2++] != 't') { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'unexpected cuePoint parameter format'); } if (isNaN(cuePoints[v2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'time must be number'); } v5 = new Object(); v5.time = cuePoints[v2] / 1000; ++v4; break; case 1: if (cuePoints[v2++] != 'n') { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'unexpected cuePoint parameter format'); } if (cuePoints[v2] == null) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'name cannot be null or undefined'); } v5.name = this.unescape(cuePoints[v2]); ++v4; break; case 2: if (cuePoints[v2++] != 't') { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'unexpected cuePoint parameter format'); } if (isNaN(cuePoints[v2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'type must be number'); } switch (cuePoints[v2]) { case 0: v5.type = 'event'; break; case 1: v5.type = 'navigation'; break; case 2: v5.type = 'actionscript'; break; default: throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'type must be 0, 1 or 2'); } ++v4; break; case 3: if (cuePoints[v2++] != 'd') { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'unexpected cuePoint parameter format'); } if (isNaN(cuePoints[v2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'disabled must be number'); } v9 = cuePoints[v2] != 0; ++v4; break; case 4: if (cuePoints[v2++] != 'p') { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'unexpected cuePoint parameter format'); } if (isNaN(cuePoints[v2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'num params must be number'); } v8 = cuePoints[v2]; ++v4; if (v8 == 0) { ++v4; } else { v5.parameters = new Object(); } break; case 5: v6 = cuePoints[v2++]; v7 = cuePoints[v2]; if (typeof v6 == 'string') { v6 = this.unescape(v6); } if (typeof v7 == 'string') { v7 = this.unescape(v7); } v5.parameters[v6] = v7; --v8; if (v8 == 0) { ++v4; } } ++v2; } if (v4 == 6) { this.addOrDisable(v9, v5); } else { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'unexpected end of cuePoint param string'); } }; v2.addOrDisable = function (disable, cuePoint) { if (disable) { if (cuePoint.type == 'actionscript') { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'Cannot disable actionscript cue points'); } this.setFLVCuePointEnabled(false, cuePoint); } else { if (cuePoint.type == 'actionscript') { this.addASCuePoint(cuePoint); } } }; v2.unescape = function (origStr) { var v3 = origStr; var v1 = 0; while (v1 < mx.video.CuePointManager.cuePointsReplace.length) { var v2 = v3.split(mx.video.CuePointManager.cuePointsReplace[v1++]); if (v2.length > 1) { v3 = v2.join(mx.video.CuePointManager.cuePointsReplace[v1]); } ++v1; } return v3; }; v2.getCuePointIndex = function (cuePointArray, closeIsOK, time, name, start, len) { if (cuePointArray == null || cuePointArray.length < 1) { return -1; } var v13 = isNaN(time) || time < 0; var v16 = name == null; if (v13 && v16) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'time must be number and/or name must not be undefined or null'); } if (start == null) { start = 0; } if (len == null) { len = cuePointArray.length; } if (!v16 && (closeIsOK || v13)) { var v8; var v2; if (v13) { v8 = start; } else { v8 = this.getCuePointIndex(cuePointArray, closeIsOK, time); } v2 = v8; while (v2 >= start) { if (cuePointArray[v2].name == name) { break; } --v2; } if (v2 >= start) { return v2; } v2 = v8 + 1; while (v2 < len) { if (cuePointArray[v2].name == name) { break; } ++v2; } if (v2 < len) { return v2; } return -1; } var v6; if (len <= this._linearSearchTolerance) { var v11 = start + len; var v3 = start; while (v3 < v11) { v6 = mx.video.CuePointManager.cuePointCompare(time, name, cuePointArray[v3]); if (v6 == 0) { return v3; } if (v6 < 0) { break; } ++v3; } if (closeIsOK) { if (v3 > 0) { return v3 - 1; } return 0; } return -1; } var v12 = Math.floor(len / 2); var v15 = start + v12; v6 = mx.video.CuePointManager.cuePointCompare(time, name, cuePointArray[v15]); if (v6 < 0) { return this.getCuePointIndex(cuePointArray, closeIsOK, time, name, start, v12); } if (v6 > 0) { return this.getCuePointIndex(cuePointArray, closeIsOK, time, name, v15 + 1, v12 - 1 + len % 2); } return v15; }; v2.getNextCuePointIndexWithName = function (name, array, index) { if (name == null) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'name cannot be undefined or null'); } if (array == null) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'cuePoint.array undefined'); } if (isNaN(index) || index < -1 || index >= array.length) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'cuePoint.index must be number between -1 and cuePoint.array.length'); } var v1; v1 = index + 1; while (v1 < array.length) { if (array[v1].name == name) { break; } ++v1; } if (v1 < array.length) { return v1; } return -1; }; v1.cuePointCompare = function (time, name, cuePoint) { var v1 = Math.round(time * 1000); var v2 = Math.round(cuePoint.time * 1000); if (v1 < v2) { return -1; } if (v1 > v2) { return 1; } if (name != null) { if (name == cuePoint.name) { return 0; } if (name < cuePoint.name) { return -1; } return 1; } return 0; }; v2.getCuePoint = function (cuePointArray, closeIsOK, timeNameOrCuePoint) { var v2; switch (typeof timeNameOrCuePoint) { case 'string': v2 = {'name': timeNameOrCuePoint}; break; case 'number': v2 = {'time': timeNameOrCuePoint}; break; case 'object': v2 = timeNameOrCuePoint; } var v3 = this.getCuePointIndex(cuePointArray, closeIsOK, v2.time, v2.name); if (v3 < 0) { return null; } v2 = mx.video.CuePointManager.deepCopyObject(cuePointArray[v3]); v2.array = cuePointArray; v2.index = v3; return v2; }; v2.getNextCuePointWithName = function (cuePoint) { if (cuePoint == null) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'cuePoint parameter undefined'); } if (isNaN(cuePoint.time) || cuePoint.time < 0) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'time must be number'); } var v3 = this.getNextCuePointIndexWithName(cuePoint.name, cuePoint.array, cuePoint.index); if (v3 < 0) { return null; } var v4 = mx.video.CuePointManager.deepCopyObject(cuePoint.array[v3]); v4.array = cuePoint.array; v4.index = v3; return v4; }; v1.deepCopyObject = function (obj, recurseLevel) { if (obj == null || typeof obj != 'object') { return obj; } if (recurseLevel == null) { recurseLevel = 0; } var v2 = new Object(); for (var v4 in obj) { if (recurseLevel == 0 && (v4 == 'array' || v4 == 'index')) { } else { if (typeof obj[v4] == 'object') { v2[v4] = mx.video.CuePointManager.deepCopyObject(obj[v4], recurseLevel + 1); } else { v2[v4] = obj[v4]; } } } return v2; }; v1.DEFAULT_LINEAR_SEARCH_TOLERANCE = 50; v1.cuePointsReplace = ['&quot;', '"', '&#39;', '\'', '&#44;', ',', '&amp;', '&']; v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('metadataLoaded', v2.__get__metadataLoaded, function () {}); v2.addProperty('playheadUpdateInterval', function () {}, v2.__set__playheadUpdateInterval); ASSetPropFlags(mx.video.CuePointManager.prototype, null, 1); } #endinitclip } frame 2 { themeMusic = new Sound(); themeMusic.attachSound('rs_theme'); } frame 2 { numErrors = 0; _global.createError = function (notice, labelOne, oneFunct, twoBut, labelTwo, twoFunct) { _root.attachMovie('error_mc', 'error0', _root.numWindows); ++_root.numWindows; _root.error0.errorText.text = notice; _root.error0.oneButton.onRelease = function () { error0.removeMovieClip(); ++numErrors; oneFunct.apply(null); }; _root.error0.oneLabel.text = labelOne; _root.error0.twoButton._visible = twoBut; _root.error0.twoLabel._visible = twoBut; _root.error0.twoLabel.text = labelTwo; _root.error0.twoButton.onRelease = function () { error0.removeMovieClip(); ++numErrors; twoFunct.apply(null); }; _root.error0._x = 400; _root.error0._y = 300; ++numErrors; }; } frame 2 { MENU.hideBuiltInItems(); DesktopMenu = new ContextMenu(); DesktopMenu.hideBuiltInItems(); doNothing = function () {}; MadeByMe1 = new ContextMenuItem('Made by Archon68', doNothing); MadeByMe1.separatorBefore = true; MadeByMe1.enabled = false; doNothing2 = function () {}; ForNG1 = new ContextMenuItem('For Newgrounds Only', doNothing2); ForNG1.enabled = false; DesktopMenu.customItems.push(MadeByMe1); DesktopMenu.customItems.push(ForNG1); Hide_Icons = new ContextMenuItem('Hide Desktop Icons', hideIcons); Hide_Icons.separatorBefore = true; Show_Icons = new ContextMenuItem('Show Desktop Icons', showIcons); Reset_Icons = new ContextMenuItem('Reset Icons', resetIcons); Properties = new ContextMenuItem('Properties...', spawnControlPanel); Properties.separatorBefore = true; DesktopMenu.customItems.push(Hide_Icons); DesktopMenu.customItems.push(Show_Icons); DesktopMenu.customItems.push(Reset_Icons); DesktopMenu.customItems.push(Properties); desktop_BG.menu = DesktopMenu; } frame 2 { dumpsterX = icon_Dumpster._x; dumpsterY = icon_Dumpster._y; welcomeX = icon_WelcomeCenter._x; welcomeY = icon_WelcomeCenter._y; controlX = icon_ControlPanel._x; controlY = icon_ControlPanel._y; computerX = icon_Computer._x; computerY = icon_Computer._y; InternetAppendageX = icon_InternetAppendage._x; InternetAppendageY = icon_InternetAppendage._y; falschX = icon_AdoozyFalsch._x; falschY = icon_AdoozyFalsch._y; ballX = icon_AwesomeBall._x; ballY = icon_AwesomeBall._y; jibX = icon_Jibberish._x; jibY = icon_Jibberish._y; stalkerX = icon_Stalkchat._x; stalkerY = icon_Stalkchat._y; noteX = icon_Notepad._x; noteY = icon_Notepad._y; virusX = icon_NoTron._x; virusY = icon_NoTron._y; mediaX = icon_mediaPlayer._x; mediaY = icon_mediaPlayer._y; docX = icon_Documents._x; docY = icon_Documents._y; picX = icon_Pictures._x; picY = icon_Pictures._y; gameX = icon_Games._x; gameY = icon_Games._y; } frame 2 { start_button.onPress = function () { if (start_menu._currentframe == undefined) { _root.attachMovie('StartMenu', 'start_menu', _root.numWindows); start_menu._x = 206.4; start_menu._y = 267.9; } else { if (start_menu._currentframe >= 10) { start_menu.removeMovieClip(); } } }; start_button.onRelease = function () { start_menu.play(); }; } frame 2 { var tray = new Array(); onEnterFrame = function () { obj1 = tray[0]; obj2 = tray[1]; obj3 = tray[2]; obj4 = tray[3]; item1.label_txt.text = obj1.title; if (obj1.mc == undefined) { item1._visible = false; } else { item1._visible = true; } item2.label_txt.text = obj2.title; if (obj2.mc == undefined) { item2._visible = false; } else { item2._visible = true; } item3.label_txt.text = obj3.title; if (obj3.mc == undefined) { item3._visible = false; } else { item3._visible = true; } item4.label_txt.text = obj4.title; if (obj4.mc == undefined) { item4._visible = false; } else { item4._visible = true; } item1.but_btn.onRelease = function () { var i = 0; while (i < tray.length) { if (tray[i].mc == obj1.mc) { (eval(tray[i].mc))._visible = true; trace(i); trace(tray[0].mc + ' ' + tray[1].mc + ' ' + tray[2].mc); tray.splice(i, 1); } ++i; } }; item2.but_btn.onRelease = function () { var i = 0; while (i < tray.length) { if (tray[i].mc == obj2.mc) { (eval(tray[i].mc))._visible = true; trace(i); trace(tray[0].mc + ' ' + tray[1].mc + ' ' + tray[2].mc); tray.splice(i, 1); } ++i; } }; item3.but_btn.onRelease = function () { var i = 0; while (i < tray.length) { if (tray[i].mc == obj3.mc) { (eval(tray[i].mc))._visible = true; trace(i); trace(tray[0].mc + ' ' + tray[1].mc + ' ' + tray[2].mc); tray.splice(i, 1); } ++i; } }; item4.but_btn.onRelease = function () { var i = 0; while (i < tray.length) { if (tray[i].mc == obj4.mc) { (eval(tray[i].mc))._visible = true; trace(i); trace(tray[0].mc + ' ' + tray[1].mc + ' ' + tray[2].mc); tray.splice(i, 1); } ++i; } }; }; } movieClip 2846 { } movieClip 2847 { } movieClip 2857 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 2861 { } movieClip 2869 { frame 1 { firstTime = true; if (firstTime == false) { gotoAndStop(6); } else { if (firstTime == true) { gotoAndStop(2); } } } frame 2 { firstTime = false; } frame 7 { gotoAndStop(2); } } movieClip 2871 { frame 1 { this.ratio = 0; dragger.onPress = function () { _parent.userControl = true; this.startDrag(true, 0, 0, line._width, 0); this.onEnterFrame = function () { ratio = Math.round(this._x * 100 / line._width); }; }; dragger.onReleaseOutside = function () { stopDrag(); }; dragger.onRelease = dragger.onReleaseOutside; onEnterFrame = function () { value_txt.text = ratio; }; dragger.useHandCursor = false; } } movieClip 2874 { frame 1 { stop(); } } movieClip 2876 { } movieClip 2877 { frame 1 { tab01.gotoAndStop(1); tab02.gotoAndStop(2); tab03.gotoAndStop(2); } frame 1 { stop(); tab01.onRelease = function () { gotoAndStop(1); }; tab02.onRelease = function () { gotoAndStop(2); }; tab03.onRelease = function () { gotoAndStop(3); }; } instance favorites_list of movieClip 353 List { onClipEvent (construct) { multipleSelection = false; rowHeight = 20; } } frame 2 { tab01.gotoAndStop(2); tab02.gotoAndStop(1); tab03.gotoAndStop(2); } frame 2 { stop(); tab01.onRelease = function () { gotoAndStop(1); }; tab02.onRelease = function () { gotoAndStop(2); }; tab03.onRelease = function () { gotoAndStop(3); }; } instance history_list of movieClip 353 List { onClipEvent (construct) { multipleSelection = false; rowHeight = 20; } } frame 3 { tab01.gotoAndStop(2); tab02.gotoAndStop(2); tab03.gotoAndStop(1); } frame 3 { stop(); tab01.onRelease = function () { gotoAndStop(1); }; tab02.onRelease = function () { gotoAndStop(2); }; tab03.onRelease = function () { gotoAndStop(3); }; } instance help_text of movieClip 759 TextArea { onClipEvent (construct) { editable = false; html = true; text = '<b>Help</b><br>Enter a # to play a song.<br><br>Click randomize to play a random song.'; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } } // unknown tag 88 length 251 movieClip 2884 { frame 1 { stop(); } } movieClip 2885 { frame 1 { favorites_dp = new Array(); history_dp = new Array(); currentTab = 1; oldTab = 1; tab = new Object(); onLoad = function () { SoundPlaying = false; CurrentSong = 193370; RandomNum = Math.ceil(Math.random() * 275000); userControl = false; }; onEnterFrame = function () { if (song_txt.text == '') { Download_btn.enabled = false; HelpMe.enabled = false; } else { Download_btn.enabled = true; HelpMe.enabled = true; } if (userControl == true) { SoundName.setVolume(volumeSlider.ratio); } else { if (userControl == false) { SoundName.setVolume(100); } } currentTab = tabBox._currentframe; if (currentTab != oldTab) { tabBox.favorites_list.dataProvider = favorites_dp; tabBox.history_list.dataProvider = history_dp; oldTab = currentTab; } tab.change = function (eventObj) { CurrentSong = eventObj.target.value; PlaySong(CurrentSong); song_txt.text = CurrentSong; }; tabBox.favorites_list.addEventListener('change', tab); tabBox.history_list.addEventListener('change', tab); }; PlaySong = function (songID) { SoundPlaying = true; CurrentSong = songID; SoundName.loadSound('http://www.newgrounds.com/audio/download/' + CurrentSong, true); SoundName.start(); AddFav.enabled = true; fav_icon.gotoAndStop(1); history_dp.push(CurrentSong); tabBox.history_list.dataProvider = history_dp; }; SoundName = new Sound(this); PlayBut.onPress = function () { PlaySong(song_txt.text); }; StopBut.onPress = function () { SoundPlaying = false; SoundName.stop(); }; Randomize.onPress = function () { RandomNum = Math.ceil(Math.random() * 208631); PlaySong(RandomNum); CurrentSong.start(0, 0); song_txt.text = RandomNum; }; Download_btn.onRelease = function () { getURL('http://www.newgrounds.com/audio/download/' + song_txt.text, '_blank'); }; AddFav.onRelease = function () { favorites_dp.push(CurrentSong); tabBox.favorites_list.dataProvider = favorites_dp; AddFav.enabled = false; fav_icon.gotoAndStop(2); }; SoundName.onSoundComplete = function () { var v1 = Math.ceil(Math.random() * 238631); SoundName.loadSound('http://www.newgrounds.com/audio/download/' + v1, true); SoundName.start(); song_txt.text = v1; CurrentSong = v1; trace('song complete'); }; HelpMe.onRelease = function () { getURL('http://www.newgrounds.com/audio/listen/' + CurrentSong, '_blank'); }; } instance song_txt of movieClip 356 TextInput { onClipEvent (construct) { editable = true; password = false; text = ''; maxChars = 6; restrict = '0-9'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance StopBut of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = ''; labelPlacement = 'top'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Randomize of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = 'Randomize!'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance AddFav of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = ''; labelPlacement = 'top'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance PlayBut of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = ''; labelPlacement = 'top'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance HelpMe of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = 'Go to Page'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Download_btn of movieClip 289 Button { onClipEvent (construct) { icon = ''; label = 'Get Song!'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 2889 { frame 1 { function traceRate() { fps_txt.text = framerate; framerate = 0; } var framerate = 0; onEnterFrame = function () { ++framerate; }; frameInterval = setInterval(traceRate, 1000); } } movieClip 2892 { } movieClip 2895 { frame 1 { forBut.onRelease = function () { _root.sidebar.bg.nextFrame(); }; backBut.onRelease = function () { _root.sidebar.bg.prevFrame(); }; qBut.onRelease = function () { spawnControlPanel(); _root['panel' + (_root.numPanels - 1)].gotoAndStop(5); }; } } movieClip 2896 { } movieClip 2897 { } movieClip 2905 { } movieClip 2906 { frame 1 { icon_btn.useHandCursor = false; icon_btn.onPress = function () { currentTime = getTimer(); if (currentTime - oldTime < 500) { spawnWelcome(); } else {} oldTime = currentTime; icon_btn._parent.startDrag(); }; icon_btn.onReleaseOutside = function () { icon_btn._parent.stopDrag(); }; icon_btn.onDragOut = icon_btn.onReleaseOutside; icon_btn.onRelease = icon_btn.onReleaseOutside; } } movieClip 2910 { } movieClip 2911 { frame 1 { icon_btn.useHandCursor = false; icon_btn.onPress = function () { currentTime = getTimer(); if (currentTime - oldTime < 500) { spawnControlPanel(); } else {} oldTime = currentTime; icon_btn._parent.startDrag(); }; icon_btn.onReleaseOutside = function () { icon_btn._parent.stopDrag(); }; icon_btn.onDragOut = icon_btn.onReleaseOutside; icon_btn.onRelease = icon_btn.onReleaseOutside; } } movieClip 2913 { frame 1 { icon_btn.useHandCursor = false; icon_btn.onPress = function () { currentTime = getTimer(); if (currentTime - oldTime < 500) { spawnInternet(); } else {} oldTime = currentTime; icon_btn._parent.startDrag(); }; icon_btn.onReleaseOutside = function () { icon_btn._parent.stopDrag(); }; icon_btn.onDragOut = icon_btn.onReleaseOutside; icon_btn.onRelease = icon_btn.onReleaseOutside; } } movieClip 2917 { } movieClip 2918 { frame 1 { icon_btn.useHandCursor = false; icon_btn.onPress = function () { currentTime = getTimer(); if (currentTime - oldTime < 500) { spawnFalsch(); } else {} oldTime = currentTime; icon_btn._parent.startDrag(); }; icon_btn.onReleaseOutside = function () { icon_btn._parent.stopDrag(); }; icon_btn.onDragOut = icon_btn.onReleaseOutside; icon_btn.onRelease = icon_btn.onReleaseOutside; } } movieClip 2920 { frame 1 { icon_btn.useHandCursor = false; icon_btn.onPress = function () { currentTime = getTimer(); if (currentTime - oldTime < 500) { spawnChat(); } else {} oldTime = currentTime; icon_btn._parent.startDrag(); }; icon_btn.onReleaseOutside = function () { icon_btn._parent.stopDrag(); }; icon_btn.onDragOut = icon_btn.onReleaseOutside; icon_btn.onRelease = icon_btn.onReleaseOutside; } } movieClip 2923 { frame 1 { icon_btn.useHandCursor = false; icon_btn.onPress = function () { currentTime = getTimer(); if (currentTime - oldTime < 500) { spawnAwesome(); } else {} oldTime = currentTime; icon_btn._parent.startDrag(); }; icon_btn.onReleaseOutside = function () { icon_btn._parent.stopDrag(); }; icon_btn.onRelease = icon_btn.onReleaseOutside; } } movieClip 2925 { frame 1 { icon_btn.useHandCursor = false; icon_btn.onPress = function () { currentTime = getTimer(); if (currentTime - oldTime < 500) { spawnJibberish(); } else {} oldTime = currentTime; icon_btn._parent.startDrag(); }; icon_btn.onReleaseOutside = function () { icon_btn._parent.stopDrag(); }; icon_btn.onDragOut = icon_btn.onReleaseOutside; icon_btn.onRelease = icon_btn.onReleaseOutside; } } movieClip 2927 { frame 1 { icon_btn.useHandCursor = false; icon_btn.onPress = function () { currentTime = getTimer(); if (currentTime - oldTime < 500) { spawnDumpster(); } else {} oldTime = currentTime; icon_btn._parent.startDrag(); }; icon_btn.onReleaseOutside = function () { icon_btn._parent.stopDrag(); }; icon_btn.onDragOut = icon_btn.onReleaseOutside; icon_btn.onRelease = icon_btn.onReleaseOutside; } } movieClip 2929 { frame 1 { icon_btn.useHandCursor = false; icon_btn.onPress = function () { currentTime = getTimer(); if (currentTime - oldTime < 500) { spawnExplorer(2); } else {} oldTime = currentTime; icon_btn._parent.startDrag(); }; icon_btn.onReleaseOutside = function () { icon_btn._parent.stopDrag(); }; icon_btn.onDragOut = icon_btn.onReleaseOutside; icon_btn.onRelease = icon_btn.onReleaseOutside; } } movieClip 2932 { frame 1 { icon_btn.useHandCursor = false; icon_btn.onPress = function () { currentTime = getTimer(); if (currentTime - oldTime < 500) { spawnNotepad(); } else {} oldTime = currentTime; icon_btn._parent.startDrag(); }; icon_btn.onReleaseOutside = function () { icon_btn._parent.stopDrag(); }; icon_btn.onDragOut = icon_btn.onReleaseOutside; icon_btn.onRelease = icon_btn.onReleaseOutside; } } movieClip 2936 { frame 1 { icon_btn.useHandCursor = false; icon_btn.onPress = function () { currentTime = getTimer(); if (currentTime - oldTime < 500) { spawnVirus(); } else {} oldTime = currentTime; icon_btn._parent.startDrag(); }; icon_btn.onReleaseOutside = function () { icon_btn._parent.stopDrag(); }; icon_btn.onDragOut = icon_btn.onReleaseOutside; icon_btn.onRelease = icon_btn.onReleaseOutside; } } movieClip 2938 { frame 1 { var winArray = new Array({'name': 'Destiny\'s Betrayal', 'url': 'http://www.newgrounds.com/audio/download/249574'}, {'name': '8-Bit RickRoll', 'url': 'http://www.newgrounds.com/audio/download/147116'}, {'name': 'Windows Vista Symphony', 'url': 'http://www.newgrounds.com/audio/download/211978'}, {'name': 'Heavy Heart', 'url': 'http://www.newgrounds.com/audio/download/257415'}, {'name': 'Piano_Force_{Flux}', 'url': 'http://www.newgrounds.com/audio/download/253568'}, {'name': 'Reasoner- Living Transparent', 'url': 'http://www.newgrounds.com/audio/download/268376'}); icon_btn.useHandCursor = false; icon_btn.onPress = function () { currentTime = getTimer(); if (currentTime - oldTime < 500) { spawnMediaPlayer(winArray); } else {} oldTime = currentTime; icon_btn._parent.startDrag(); }; icon_btn.onReleaseOutside = function () { icon_btn._parent.stopDrag(); }; icon_btn.onDragOut = icon_btn.onReleaseOutside; icon_btn.onRelease = icon_btn.onReleaseOutside; } } movieClip 2940 { frame 1 { icon_btn.useHandCursor = false; icon_btn.onPress = function () { currentTime = getTimer(); if (currentTime - oldTime < 500) { spawnExplorer(7); } else {} oldTime = currentTime; icon_btn._parent.startDrag(); }; icon_btn.onReleaseOutside = function () { icon_btn._parent.stopDrag(); }; icon_btn.onDragOut = icon_btn.onReleaseOutside; icon_btn.onRelease = icon_btn.onReleaseOutside; } } movieClip 2942 { frame 1 { icon_btn.useHandCursor = false; icon_btn.onPress = function () { currentTime = getTimer(); if (currentTime - oldTime < 500) { spawnExplorer(9); } else {} oldTime = currentTime; icon_btn._parent.startDrag(); }; icon_btn.onReleaseOutside = function () { icon_btn._parent.stopDrag(); }; icon_btn.onDragOut = icon_btn.onReleaseOutside; icon_btn.onRelease = icon_btn.onReleaseOutside; } } movieClip 2944 { frame 1 { icon_btn.useHandCursor = false; icon_btn.onPress = function () { currentTime = getTimer(); if (currentTime - oldTime < 500) { spawnExplorer(10); } else {} oldTime = currentTime; icon_btn._parent.startDrag(); }; icon_btn.onReleaseOutside = function () { icon_btn._parent.stopDrag(); }; icon_btn.onDragOut = icon_btn.onReleaseOutside; icon_btn.onRelease = icon_btn.onReleaseOutside; } } movieClip 2947 { } movieClip 2964 { frame 1 { stop(); } }




http://swfchan.com/35/172304/info.shtml
Created: 17/10 -2018 15:27:01 Last modified: 17/10 -2018 15:27:01 Server time: 22/12 -2024 19:19:19