╨╧рб▒с>■  ■                                                                                                                                                                                                                                                                                                                                                                                                                                               Root Entry        ■5Є┤ж▄H╖▓┬ZE<ГkА[д┼#╩}@ Contents            ╬уHP 1 1235869980    ГИХS 4 1235872763         ${¤                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ■   ■   ~А¤   Root Entry        ■5Є┤ж▄H╖▓┬ZE<Гk░~bЩ╠#╩@ Contents            XуHP 1 1235869980     ТЦS 4 1235872763         $        ¤   ¤   ■   ■    ■     !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVW■   YZ[\]^_`abcdefghijklmnopqrstuvwxyzє                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Ї■                                               S 3 1235872763            ╞                                     ■     !"#$■                                                                                                                                                                                                                                                                                                                                                                                 CPicPage   CPicLayer   CPicFrame   CPicSprite  ■ оr ■  ■ empty ■ Ж<component metaDataFetched='true' schemaUrl='' schemaOperation='' sceneRootLabel='Scene 1' oldCopiedComponentPath='2.2'> </component> АА&   ?   ■ ╓, ■  ■ АА  ■ Layer 1    O O АА  CPicPage   CPicLayer   CPicFrame   CPicShapeАААrr 88▐^]^  DDD ╫xЄїї ч 0ёЄчЎЎїЎч0V№Є ч її0ъ  0к╝∙╝ лШ╝∙╝▒жШШШ##Ш## ∙# ∙∙∙$$∙$$#$ ###ШШ#Шa#Шл╝╝$Шж▒ ╝╝$╝$╝$╝∙╝∙╝$╝∙АААА&   ?   ■ Ri ■  ■ АА  ■  flash0.ai    Щ3╠ АА  CPicTextАА (▓HГ? ■  ■ BROWSE Ё Gotham Light     BROWSE ■  buttonText ■  ■  1|2|3|4|5АА&   ?   ■ Р_ ■  ■ АА  ■  flash0.ai    O O ААchemaUrl='' schemaOperation='' sceneRootLabel='Scene 1' oldCopiedComponentPath='2'> </component> АА  CPicPage   CPicLayer   CPicFrame   CPicSprite8,ь   d  ■ l= ■  ■  browseBtn ■ Д<component metaDataFetched='true' schemaUrl='' schemaOperation='' sceneRootLabel='Scene 1' oldCopiedComponentPath='2'> </component> АА&   ?   ■ сJ ■  уI/* Uploadify v2.1.0 Release Date: August 24, 2009 Copyright (c) 2009 Ronnie Garcia, Travis Nickels Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ import flash.external.ExternalInterface; import flash.net.*; import flash.events.*; import flash.display.*; import com.adobe.serialization.json.JSON; // Align the stage to the top left and don't scale it stage.align = StageAlign.TOP_LEFT; stage.scaleMode = StageScaleMode.NO_SCALE; // Create all the variables var param:Object = LoaderInfo(this.root.loaderInfo).parameters; var fileRefSingle:FileReference = new FileReference(); var fileRefMulti:FileReferenceList = new FileReferenceList(); var fileRefListener:Object = new Object(); var fileQueue:Array = new Array(); var fileItem:Object = new Object(); var activeUploads:Object = new Object(); var errorArray:Array = new Array(); var counter:Number = 0; var filesSelected:Number = 0; var filesReplaced:Number = 0; var filesUploaded:Number = 0; var filesChecked:Number = 0; var errors:Number = 0; var kbs:Number = 0; var allBytesLoaded:Number = 0; var allBytesTotal:Number = 0; var allKbsAvg:Number = 0; var allowedTypes:Array; var scriptURL:URLRequest; var variables:URLVariables; var queueReversed:Boolean = false; // For debugging, alert any value to javascript function debug(someValue) { ExternalInterface.call('alert("' + someValue + '")'); } // Trigger a javascript event function $trigger(eventName:String, ... args):void { // Add parenthesis function p(s:String):String { return ('('+s+')'); } // Add quotes function q(s:String):String { return ('"'+s+'"'); } var list:Array = [q(eventName)]; //Add the event to the array if (args.length > 0) list.push(JSON.encode(args)); // Add arguments to the array as a JSON object ExternalInterface.call(['jQuery'+p(q('#'+param.uploadifyID)), p(list.join(','))].join('.trigger')); // Trigger the event } // Random string generator for queue IDs function generateID(len:Number):String { var chars:Array = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']; var ID:String = ''; var index:Number; for (var n:int = 0; n < len; n++) { ID += chars[Math.floor(Math.random() * 25)]; } return ID; } // Load the button image function setButtonImg():void { if (param.buttonImg) { var btnLoader:Loader = new Loader(); var btnImage:URLRequest = new URLRequest(param.buttonImg); browseBtn.addChild(btnLoader); btnLoader.load(btnImage); } if (!param.hideButton && !param.buttonImg) { browseBtn.empty.alpha = 1; } } setButtonImg(); // Hide or show the button function hideButton(hideValue:Boolean):void { if (hideValue) { browseBtn.empty.alpha = 0; } else { browseBtn.empty.alpha = 1; } } // Set the text on the button function setButtonText():void { if (param.buttonText) { browseBtn.empty.buttonText.text = unescape(param.buttonText); } } setButtonText(); // This is important for clicking the button correctly browseBtn.buttonMode = true; browseBtn.useHandCursor = true; browseBtn.mouseChildren = false; // Set the size of the button function setButtonSize():void { if (param.hideButton) { browseBtn.width = param.width; browseBtn.height = param.height; } // Set the size of the button on the page ExternalInterface.call('jQuery("#' + param.uploadifyID + '").attr("width",' + param.width + ')'); ExternalInterface.call('jQuery("#' + param.uploadifyID + '").attr("height",' + param.height + ')'); } setButtonSize(); // Setup the rollover animation if (param.rollover) { browseBtn.addEventListener(MouseEvent.ROLL_OVER, function (event:MouseEvent):void { event.currentTarget.y = -param.height; }); browseBtn.addEventListener(MouseEvent.ROLL_OUT, function (event:MouseEvent):void { event.currentTarget.y = 0; }); browseBtn.addEventListener(MouseEvent.MOUSE_DOWN, function (event:MouseEvent):void { event.currentTarget.y = -(param.height * 2); }); } // create the scriptData variable if it doesn't exist if (!param.scriptData) { param.scriptData = ''; } // Limit the file types function setAllowedTypes():void { allowedTypes = []; if (param.fileDesc && param.fileExt) { var fileDescs:Array = param.fileDesc.split('|'); var fileExts:Array = param.fileExt.split('|'); for (var n = 0; n < fileDescs.length; n++) { allowedTypes.push(new FileFilter(fileDescs[n], fileExts[n])); } } } setAllowedTypes(); // Set or get the variables function uploadify_updateSettings(settingName:String, settingValue) { if(settingValue == null) { if (settingName == 'queueSize') { return fileQueue.length; } return param[settingName]; } else { param[settingName] = settingValue; if(settingName == 'buttonImg') setButtonImg(); if(settingName == 'buttonText') setButtonText(); if(settingName == 'fileDesc' || settingName == 'fileExt') setAllowedTypes(); if(settingName == 'width' || settingName == 'height') setButtonSize(); if(settingName == 'hideButton') hideButton(settingValue); return true; } } // Browse for Files browseBtn.addEventListener(MouseEvent.CLICK, function():void { if (objSize(activeUploads) == 0) { // Don't browse if it's uploading if (!allowedTypes) { (!param.multi) ? fileRefSingle.browse() : fileRefMulti.browse(); } else { (!param.multi) ? fileRefSingle.browse(allowedTypes) : fileRefMulti.browse(allowedTypes); } } }); // Get the size of an object function objSize(obj:Object):Number { var i:int = 0; for (var item in obj) { i++; } return i; } // Get actual folder path function getFolderPath():String { var folder:String = param.folder; if (param.folder.substr(0,1) != '/' && param.folder.substr(0,4) != 'http') { folder = param.pagepath + param.folder; var folderParts:Array = folder.split('/'); for (var i = 0; i < folderParts.length; i++) { if (folderParts[i] == '..') { folderParts.splice(i - 1, 2); } } folder = folderParts.join('/'); } return folder; } // Get the array index of the item in the fileQueue function getIndex(ID:String):Number { var index:int; for (var n:Number = 0; n < fileQueue.length; n++) { if (fileQueue[n].ID == ID) { index = n; } } return index; } // Check if a file with the same name is already in the queue function inQueue(fileName:String):Object { var obj:Object = new Object(); obj.testResult = false; if (fileQueue.length > 0) { for (var n = 0; n < fileQueue.length; n++) { if (fileQueue[n].file.name == fileName) { obj.size = fileQueue[n].file.size; obj.ID = fileQueue[n].ID; obj.arrIndex = n; obj.testResult = true; } } } return obj; } // When selecting a file function fileSelectSingleHandler(event:Event):void { // Check if the filename already exists in the queue fileItem = new Object(); fileItem.file = FileReference(event.target); uploadify_clearFileUploadQueue(true); var ID:String = generateID(6); fileItem.ID = ID; fileQueue.push(fileItem); filesSelected = 1; allBytesTotal = fileItem.file.size; $trigger('uploadifySelect',ID,fileItem.file); $trigger('uploadifySelectOnce',{ 'fileCount' : fileQueue.length, 'filesSelected' : filesSelected, 'filesReplaced' : filesReplaced, 'allBytesTotal' : allBytesTotal }); filesSelected = 0; filesReplaced = 0; if (param.auto) { if (param.checkScript) { uploadify_uploadFiles(null, false); } else { uploadify_uploadFiles(null, true); } } } function fileSelectMultiHandler(event:Event):void { var ID:String = ''; for (var n:Number = 0; n < fileRefMulti.fileList.length; n++) { fileItem = new Object(); fileItem.file = fileRefMulti.fileList[n]; // Check if the filename already exists in the queue var queueTest:Object = inQueue(fileRefMulti.fileList[n].name); if (queueTest.testResult) { allBytesTotal -= queueTest.size; allBytesTotal += fileItem.file.size; fileItem.ID = fileQueue[queueTest.arrIndex].ID; fileQueue[queueTest.arrIndex] = fileItem; filesReplaced++; } else { if (fileQueue.length < param.queueSizeLimit) { ID = generateID(6); fileItem.ID = ID; fileQueue.push(fileItem); filesSelected++; allBytesTotal += fileItem.file.size; $trigger('uploadifySelect',ID,fileItem.file); } else { $trigger('uploadifyQueueFull',param.queueSizeLimit); break; } } } $trigger('uploadifySelectOnce',{ 'fileCount' : fileQueue.length, 'filesSelected' : filesSelected, 'filesReplaced' : filesReplaced, 'allBytesTotal' : allBytesTotal }); filesSelected = 0; filesReplaced = 0; if (param.auto) { if (param.checkScript) { uploadify_uploadFiles(null, false); } else { uploadify_uploadFiles(null, true); } } } fileRefSingle.addEventListener(Event.SELECT, fileSelectSingleHandler); fileRefMulti.addEventListener(Event.SELECT, fileSelectMultiHandler); // This function should run during upload so flash doesn't timeout function uploadCounter(event:Event):void { counter++; } // Start the upload function uploadify_uploadFiles(ID:String, checkComplete:Boolean):void { if (!queueReversed) { fileQueue.reverse(); queueReversed = true; } if (param.script.substr(0,1) != '/' && param.script.substr(0,4) != 'http') param.script = param.pagepath + param.script; scriptURL = new URLRequest(param.script); variables = new URLVariables(); (param.method.toUpperCase() == "GET") ? scriptURL.method = URLRequestMethod.GET : scriptURL.method = URLRequestMethod.POST; if (param.scriptData != '') variables.decode(unescape(param.scriptData)); if (param.fileExt) variables.fileext = unescape(param.fileExt); variables.folder = unescape(getFolderPath()); scriptURL.data = variables; if (param.checkScript && !checkComplete) { var fileQueueObj:Object = new Object(); if (ID) { var index:int = getIndex(ID); if (fileQueue[index].file) { fileQueueObj[fileQueue[index].ID] = fileQueue[index].file.name; } $trigger('uploadifyCheckExist',param.checkScript,fileQueueObj,param.folder,true); } else { for (var n:Number = fileQueue.length - 1; n > -1; n--) { if (fileQueue[n]) { fileQueueObj[fileQueue[n].ID] = fileQueue[n].file.name; } } $trigger('uploadifyCheckExist',param.checkScript,fileQueueObj,param.folder,false); } } else { if (ID && fileQueue[getIndex(ID)].file) { uploadFile(fileQueue[getIndex(ID)].file, getIndex(ID), ID, true); } else { for (n = fileQueue.length - 1; n > -1; n--) { if (objSize(activeUploads) < parseInt(param.simUploadLimit)) { if (!activeUploads[fileQueue[n].ID] && fileQueue[n].file) { uploadFile(fileQueue[n].file, n, fileQueue[n].ID, false); } } else { break; } } } } } function queueIsNotEmpty(item:*, index:int, array:Array):Boolean { return (item.file != ''); } // Upload each file function uploadFile(file:FileReference, index:int, ID:String, single:Boolean):void { var startTimer:Number = 0; var lastBytesLoaded:Number = 0; var kbsAvg:Number = 0; function fileOpenHandler(event:Event) { startTimer = getTimer(); $trigger('uploadifyOpen',ID,event.currentTarget); } function fileProgressHandler(event:ProgressEvent):void { var percentage:Number = Math.round((event.bytesLoaded / event.bytesTotal) * 100); if ((getTimer()-startTimer) >= 150) { kbs = ((event.bytesLoaded - lastBytesLoaded)/1024)/((getTimer()-startTimer)/1000); kbs = int(kbs*10)/10; startTimer = getTimer(); if (kbsAvg > 0) { kbsAvg = (kbsAvg + kbs)/2; } else { kbsAvg = kbs; } allKbsAvg = (allKbsAvg + kbsAvg)/2; } allBytesLoaded += (event.bytesLoaded - lastBytesLoaded); lastBytesLoaded = event.bytesLoaded; $trigger('uploadifyProgress',ID,event.currentTarget,{ 'percentage' : percentage, 'bytesLoaded' : event.bytesLoaded, 'allBytesLoaded' : allBytesLoaded, 'speed' : kbs }); } function fileCompleteHandler(event:DataEvent):void { if (kbsAvg == 0) { kbs = (file.size/1024)/((getTimer()-startTimer)/1000); kbsAvg = kbs; allKbsAvg = (allKbsAvg + kbsAvg)/2; } allBytesLoaded -= lastBytesLoaded; allBytesLoaded += event.currentTarget.size; $trigger('uploadifyProgress',ID,event.currentTarget,{ 'percentage' : 100, 'bytesLoaded' : event.currentTarget.size, 'allBytesLoaded' : allBytesLoaded, 'speed' : kbs }); $trigger('uploadifyComplete',ID,{ 'name' : event.currentTarget.name, 'filePath' : getFolderPath() + '/' + event.currentTarget.name, 'size' : event.currentTarget.size, 'creationDate' : event.currentTarget.creationDate, 'modificationDate' : event.currentTarget.modificationDate, 'type' : event.currentTarget.type }, escape(event.data),{ 'fileCount' : (fileQueue.length-1), 'speed' : kbsAvg }); filesUploaded++; fileQueue.splice(getIndex(ID),1); delete activeUploads[ID]; if (!single) { uploadify_uploadFiles(null, true); } event.currentTarget.removeEventListener(DataEvent.UPLOAD_COMPLETE_DATA, fileCompleteHandler); if (!fileQueue.some(queueIsNotEmpty) && objSize(activeUploads) == 0) { $trigger('uploadifyAllComplete',{ 'filesUploaded' : filesUploaded, 'errors' : errors, 'allBytesLoaded' : allBytesLoaded, 'speed' : allKbsAvg }); resetVars(); } } // Add all the event listeners file.addEventListener(Event.OPEN, fileOpenHandler); file.addEventListener(ProgressEvent.PROGRESS, fileProgressHandler); file.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, fileCompleteHandler); // Reset all the numbers function resetVars() { filesUploaded = 0; errors = 0; allBytesLoaded = 0; allBytesTotal = 0; allKbsAvg = 0; filesChecked = 0; queueReversed = false; } // Handle all the errors file.addEventListener(HTTPStatusEvent.HTTP_STATUS, function(event:HTTPStatusEvent):void { if (errorArray.indexOf(ID) == -1) { $trigger('uploadifyError',ID,event.currentTarget,{ 'type' : 'HTTP', 'info' : event.status }); finishErrorHandler(ID); } }); file.addEventListener(IOErrorEvent.IO_ERROR, function(event:IOErrorEvent):void { if (errorArray.indexOf(ID) == -1) { $trigger('uploadifyError',ID,event.currentTarget,{ 'type' : 'IO', 'info' : event.text }); finishErrorHandler(ID); } }); file.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function(event:SecurityErrorEvent):void { if (errorArray.indexOf(ID) == -1) { $trigger('uploadifyError',ID,event.currentTarget,{ 'type' : 'Security', 'info' : event.text }); finishErrorHandler(ID); } }); // Common routines used by all errors function finishErrorHandler(ID:String) { errorArray.push(ID); fileQueue[getIndex(ID)].file = ''; delete activeUploads[ID]; if (!single) { uploadify_uploadFiles(null, true); } errors++; if (!fileQueue.some(queueIsNotEmpty)) { if (root.hasEventListener(Event.ENTER_FRAME)) { root.removeEventListener(Event.ENTER_FRAME, uploadCounter); } $trigger('uploadifyAllComplete',{ 'filesUploaded' : filesUploaded, 'errors' : errors, 'allBytesLoaded' : allBytesLoaded, 'speed' : allKbsAvg }); resetVars(); } } if (param.sizeLimit && file.size > parseInt(param.sizeLimit)) { if (errorArray.indexOf(ID) == -1) { $trigger('uploadifyError',ID,file,{ 'type' : 'File Size', 'info' : param.sizeLimit }); finishErrorHandler(ID); } } else { file.upload(scriptURL, param.fileDataName); activeUploads[ID] = true; } } function uploadify_cancelFileUpload(ID:String, single:Boolean, clearFast:Boolean):void { var index:int = getIndex(ID); var fileObj:Object = new Object(); if (fileQueue[index].file) { fileObj = fileQueue[index].file; fileQueue[index].file.cancel(); allBytesTotal -= fileQueue[index].file.size; } fileQueue.splice(index,1); if (activeUploads[ID]) { delete activeUploads[ID]; uploadify_uploadFiles(null, true); if (root.hasEventListener(Event.ENTER_FRAME) && objSize(activeUploads) == 0) { root.removeEventListener(Event.ENTER_FRAME, uploadCounter); } } $trigger('uploadifyCancel',ID,fileObj,{ 'fileCount' : (fileQueue.length), 'allBytesTotal' : allBytesTotal },clearFast); } // Cancel all uploads function uploadify_clearFileUploadQueue(clearFast:Boolean):void { if (!queueReversed) { fileQueue.reverse(); queueReversed = true; } for (var n:Number = fileQueue.length - 1; n >= 0; n--) { uploadify_cancelFileUpload(fileQueue[n].ID, false, clearFast); } if (root.hasEventListener(Event.ENTER_FRAME)) { root.removeEventListener(Event.ENTER_FRAME, uploadCounter); } $trigger('uploadifyClearQueue'); filesUploaded = 0; errors = 0; allBytesLoaded = 0; allBytesTotal = 0; allKbsAvg = 0; filesChecked = 0; queueReversed = false; } // Create all the callbacks for the functions ExternalInterface.addCallback('updateSettings', uploadify_updateSettings); ExternalInterface.addCallback('startFileUpload', uploadify_uploadFiles); ExternalInterface.addCallback('cancelFileUpload', uploadify_cancelFileUpload); ExternalInterface.addCallback('clearFileUploadQueue', uploadify_clearFileUploadQueue); ■ АА  ■ Layer 1    O O ААvШI ■ гwJ ■  ■  ■  ■  ■  ■  ■      ■  ■  ■  ■  ■  ■  ■  ■  ■  ■  ■  ■ АААААS 3 1235872763 ■  browseBtn ■ ╕ХI┤ ■  ■  ■ C   CDocumentPageP 1 1235869980 ■ Scene 1 ■ сйI ■  ■  ■  ■  ■      ■   РJ ■  ■  ■  ■  ■  ■  ■      ■  ■  ■  ■  ■  ■  ■  ■  ■  ■  ■  ■ АААААS 4 1235872763 ■ empty ■ vШI ■  ■  ■  ■ '..\jquery.uploadify-v2.0.3\uploader.fla ■ emptyщыйIvШI ■ гwJ ■  ■  ■  ■  ■  ■  ■      ■  ■  ■  ■  ■  ■  ■  ■  ■  ■  ■  ■ АААААS 3 1235872763 ■  browseBtn ■ ╕ХI┤ ■  ■  ■  ■ '..\jquery.uploadify-v2.0.3\uploader.fla ■  browseBtn╞yзI╕ХI┤ ■ \ДмI ■  ■  ■  ■  ■  ■  ■      ■  ■  ■  ■  ■  ■  ■  ■  ■  ■  ■  ■ ААААШX╚Нhhhh    ФФФ ┤ ■ legacyLineSpacing ■ 0г ■ !PublishGifProperties::PaletteName ■  ■  PublishRNWKProperties::speed256K ■ 0 ■ Vector::AS3 Package Paths ■ . ■ "PublishHtmlProperties::StartPaused ■ 0 ■ %PublishFormatProperties::htmlFileName ■  uploader.html ■  PublishQTProperties::LayerOption ■  ■  PublishQTProperties::AlphaOption ■  ■ "PublishQTProperties::MatchMovieDim ■ 1 ■ Vector::UseNetwork ■ 0 ■ Vector::Debugging Permitted ■ 0 ■ PublishProfileProperties::name ■ Default ■ PublishHtmlProperties::Loop ■ 1 ■ PublishFormatProperties::jpeg ■ 0 ■ PublishQTProperties::Width ■ 550 ■ $PublishPNGProperties::OptimizeColors ■ 1 ■ &PublishRNWKProperties::speedSingleISDN ■ 0 ■ &PublishRNWKProperties::singleRateAudio ■ 0 ■ Vector::DocumentClass ■  ■ Vector::External Player ■  ■ %PublishHtmlProperties::showTagWarnMsg ■ 1 ■ 'PublishHtmlProperties::DeblockingFilter ■ 0 ■ PublishHtmlProperties::Units ■ 0 ■ 4PublishHtmlProperties::UsingDefaultAlternateFilename ■ 1 ■ PublishGifProperties::Smooth ■ 1 ■ %PublishRNWKProperties::mediaCopyright ■ (c) 2000 ■ #PublishRNWKProperties::flashBitRate ■ 1200 ■ Vector::ScriptStuckDelay ■ 15 ■ Vector::Compress Movie ■ 1 ■ Vector::Package Paths ■  ■ &PublishFormatProperties::flashFileName ■  uploader.swf ■ 'PublishFormatProperties::gifDefaultName ■ 1 ■ %PublishFormatProperties::projectorMac ■ 0 ■ "PublishGifProperties::DitherOption ■  ■ !PublishRNWKProperties::exportSMIL ■ 1 ■  PublishRNWKProperties::speed384K ■ 0 ■ "PublishRNWKProperties::exportAudio ■ 1 ■ Vector::AS3ExportFrame ■ 1 ■ Vector::Invisible Layer ■ 1 ■ PublishHtmlProperties::Quality ■ 4 ■ (PublishHtmlProperties::VerticalAlignment ■ 1 ■ $PublishFormatProperties::pngFileName ■  uploader.png ■ PublishFormatProperties::html ■ 0 ■ "PublishPNGProperties::FilterOption ■  ■ 'PublishRNWKProperties::mediaDescription ■  ■ Vector::Override Sounds ■ 0 ■ !PublishHtmlProperties::DeviceFont ■ 0 ■ -PublishFormatProperties::generatorDefaultName ■ 1 ■ PublishQTProperties::Flatten ■ 1 ■ PublishPNGProperties::BitDepth ■ 24-bit with Alpha ■ PublishPNGProperties::Smooth ■ 1 ■ "PublishGifProperties::DitherSolids ■ 0 ■ PublishGifProperties::Interlace ■ 0 ■ PublishJpegProperties::DPI ■ 4718592 ■ Vector::Quality ■ 80 ■ Vector::Protect ■ 0 ■ "PublishHtmlProperties::DisplayMenu ■ 1 ■ *PublishHtmlProperties::HorizontalAlignment ■ 1 ■ 2PublishHtmlProperties::VersionDetectionIfAvailable ■ 0 ■ Vector::Template ■ 0 ■ *PublishFormatProperties::generatorFileName ■  uploader.swt ■ (PublishFormatProperties::rnwkDefaultName ■ 1 ■ (PublishFormatProperties::jpegDefaultName ■ 1 ■ PublishFormatProperties::gif ■ 0 ■ PublishGifProperties::Loop ■ 1 ■ PublishGifProperties::Width ■ 110 ■ $PublishRNWKProperties::mediaKeywords ■  ■ !PublishRNWKProperties::mediaTitle ■  ■ PublishRNWKProperties::speed28K ■ 1 ■ #PublishFormatProperties::qtFileName ■  uploader.mov ■ "PublishPNGProperties::DitherOption ■  ■ #PublishGifProperties::PaletteOption ■  ■ #PublishGifProperties::MatchMovieDim ■ 1 ■ $PublishRNWKProperties::speedDualISDN ■ 0 ■ $PublishRNWKProperties::realVideoRate ■ 100000 ■ PublishJpegProperties::Quality ■ 80 ■ Vector::IncludeXMP ■ 1 ■ PublishFormatProperties::flash ■ 1 ■ #PublishPNGProperties::PaletteOption ■  ■ #PublishPNGProperties::MatchMovieDim ■ 1 ■ $PublishJpegProperties::MatchMovieDim ■ 1 ■ Vector::Package Export Frame ■ 1 ■ !PublishProfileProperties::version ■ 1 ■ PublishHtmlProperties::Align ■ 0 ■ -PublishFormatProperties::projectorWinFileName ■  uploader.exe ■ 'PublishFormatProperties::pngDefaultName ■ 1 ■ 0PublishFormatProperties::projectorMacDefaultName ■ 1 ■ #PublishQTProperties::PlayEveryFrame ■ 0 ■ "PublishPNGProperties::DitherSolids ■ 0 ■ "PublishJpegProperties::Progressive ■ 0 ■ Vector::Export Swc ■ 0 ■ Vector::Debugging Password ■  ■ Vector::Omit Trace Actions ■ 0 ■ PublishHtmlProperties::Height ■ 30 ■ PublishHtmlProperties::Width ■ 110 ■ %PublishFormatProperties::jpegFileName ■  uploader.jpg ■ )PublishFormatProperties::flashDefaultName ■ 1 ■ PublishPNGProperties::Interlace ■ 0 ■ PublishGifProperties::Height ■ 30 ■ PublishJpegProperties::Size ■ 0 ■ Vector::UseAS3Namespace ■ 1 ■ Vector::AS3AutoDeclare ■ 1 ■ Vector::AS3Coach ■ 1 ■ Vector::DeviceSound ■ 0 ■ 'PublishHtmlProperties::TemplateFileName ■ SC:\Users\RonnieSan\AppData\Local\Adobe\Flash CS4\en\Configuration\HTML\Default.html ■ !PublishHtmlProperties::WindowMode ■ 0 ■ 2PublishHtmlProperties::UsingDefaultContentFilename ■ 1 ■ -PublishFormatProperties::projectorMacFileName ■  uploader.app ■ (PublishFormatProperties::htmlDefaultName ■ 1 ■ PublishFormatProperties::rnwk ■ 0 ■ PublishFormatProperties::png ■ 0 ■ PublishQTProperties::Height ■ 400 ■ %PublishPNGProperties::RemoveGradients ■ 0 ■ PublishGifProperties::MaxColors ■ 255 ■ 'PublishGifProperties::TransparentOption ■  ■ PublishGifProperties::LoopCount ■  ■ PublishRNWKProperties::speed56K ■ 1 ■ Vector::Report ■ 0 ■ +PublishHtmlProperties::OwnAlternateFilename ■  ■ (PublishHtmlProperties::AlternateFilename ■  ■ &PublishHtmlProperties::ContentFilename ■  ■ "PublishFormatProperties::generator ■ 0 ■ $PublishGifProperties::OptimizeColors ■ 1 ■ "PublishRNWKProperties::audioFormat ■ 0 ■ Vector::HardwareAcceleration ■ 0 ■ Vector::AS3Strict ■ 1 ■ Vector::Version ■ 9 ■ Vector::Event Format ■ 0 ■ Vector::Stream Compress ■ 7 ■ PublishFormatProperties::qt ■ 0 ■ PublishPNGProperties::Height ■ 30 ■ PublishPNGProperties::Width ■ 110 ■ %PublishGifProperties::RemoveGradients ■ 0 ■  PublishRNWKProperties::speed512K ■ 0 ■ PublishJpegProperties::Height ■ 30 ■ Vector::EventUse8kSampleRate ■ 0 ■ Vector::StreamUse8kSampleRate ■ 0 ■ Vector::ActionScriptVersion ■ 3 ■ Vector::Event Compress ■ 7 ■ PublishHtmlProperties::Scale ■ 0 ■ 0PublishFormatProperties::projectorWinDefaultName ■ 1 ■ PublishQTProperties::Looping ■ 0 ■ *PublishQTProperties::UseQTSoundCompression ■ 0 ■ !PublishPNGProperties::PaletteName ■  ■ !PublishPNGProperties::Transparent ■ 0 ■ &PublishGifProperties::TransparentAlpha ■ 128 ■ PublishGifProperties::Animated ■ 0 ■ "PublishRNWKProperties::mediaAuthor ■  ■ (PublishRNWKProperties::speedCorporateLAN ■ 0 ■ &PublishRNWKProperties::showBitrateDlog ■ 1 ■ "PublishRNWKProperties::exportFlash ■ 1 ■ PublishJpegProperties::Width ■ 110 ■ Vector::Stream Format ■ 0 ■ Vector::DeblockingFilter ■ 0 ■ "PublishHtmlProperties::VersionInfo ■  ■ $PublishFormatProperties::gifFileName ■  uploader.gif ■ &PublishFormatProperties::qtDefaultName ■ 1 ■ "PublishQTProperties::PausedAtStart ■ 0 ■ %PublishQTProperties::ControllerOption ■ 0 ■ PublishPNGProperties::MaxColors ■ 255 ■ ,PublishHtmlProperties::UsingOwnAlternateFile ■ 0 ■ %PublishFormatProperties::rnwkFileName ■  uploader.smil ■ %PublishFormatProperties::projectorWin ■ 0 ■ %PublishFormatProperties::defaultNames ■ 1     ■  ■ №   CColorDef А А А А3 PяАf Pя0АЩ PяHА╠ Pя`А  PяxА3 яА33 (яА3f <я0А3Щ CяHА3╠ Fя`А3  HяxАf я0Аf3 я0Аff (я0АfЩ 5яHАf╠ <я`Аf  @яxА А333 0А А3 аяА33 xяАf3 dя0АЩ3 ]яHА╠3 Zя`А 3 XяxА33 ╚яА333 0А3f3 PPHА3Щ3 Px`А3╠3 PРxА3 3 PяРАf3 ▄я0Аf33 PHАff3 (PHАfЩ3 <x`Аf╠3 CРxАf 3 FяРА Аfff `А Аf ая0А3f Мя0Аff xя0АЩf kяHА╠f dя`А f `яxА3f ┤я0А33f аPHА3ff xPHА3Щf dx`А3╠f ]РxА3 f ZяРАff ╚я0Аf3f ╚PHАfff `АfЩf P0xАf╠f PxРАf f PяиА АЩЩЩ РА АЩ аяHА3Щ УяHАfЩ ЕяHАЩЩ xяHА╠Щ nя`А Щ hяxА3Щ няHА33Щ аx`А3fЩ Мx`А3ЩЩ xx`А3╠Щ kРxА3 Щ dяРАfЩ ╗яHАf3Щ ┤x`АffЩ а0xАfЩЩ x0xАf╠Щ dxРАf Щ ]яиА А╠╠╠ └А А╠ ая`А3╠ Ця`Аf╠ Мя`АЩ╠ Вя`А╠╠ xя`А ╠ pяxА3╠ кя`А33╠ аРxА3f╠ УРxА3Щ╠ ЕРxА3╠╠ xРxА3 ╠ nяРАf╠ ┤я`Аf3╠ нРxАff╠ аxРАfЩ╠ МxРАf╠╠ xxРАf ╠ kяиА А    ЁА А  аяxА3  ШяxАf  РяxАЩ  ИяxА╠  АяxА   xяxА3  ияxА33  аяРА3f  ЦяРА3Щ  МяРА3╠  ВяРА3   xяРАf  ░яxАf3  кяРАff  аяиАfЩ  УяиАf╠  ЕяиАf   xяиА А  яxА АЩ яHАЩ3  яHАЩf яHАЩЩ (яHАЩ╠ 2я`АЩ  8яxА╠ я`А╠3  я`А╠f я`А╠Щ я`А╠╠ (я`А╠  0яxА  яxА 3 яxА f яxА Щ яxА ╠  яxА   (яxА А  PяxА АЩ3 уяHАЩ33 x`АЩf3 x`АЩЩ3 (x`АЩ╠3 5РxАЩ 3 <яРА╠3 ця`А╠33 РxА╠f3  РxА╠Щ3 РxА╠╠3 (РxА╠ 3 2яРА 3 шяxА 33 яРА f3  яРА Щ3 яРА ╠3 яРА  3 (яРА А  аяxА АЩf ╒яHАЩ3f ▄x`АЩff 0xАЩЩf (0xАЩ╠f <xРАЩ f CяиА╠f ▄я`А╠3f уРxА╠ff xРА╠Щf xРА╠╠f (xРА╠ f 5яиА f ряxА 3f цяРА ff яиА Щf  яиА ╠f яиА  f (яиА А   (яxА АЩЩ ╚яHАЩ3Щ ╚x`АЩfЩ ╚0xАЩЩЩ РАЩ╠Щ PPиАЩ Щ Pя└А╠Щ ╥я`А╠3Щ ╒РxА╠fЩ ▄xРА╠ЩЩ PиА╠╠Щ (PиА╠ Щ <я└А Щ ╪яxА 3Щ ▄яРА fЩ уяиА ЩЩ я└А ╠Щ я└А  Щ (я└А А   xяxА АЩ╠ ╛я`АЩ3╠ ╗РxАЩf╠ ┤xРАЩЩ╠ аPиАЩ╠╠ xPиАЩ ╠ dя└А╠╠ ╚я`А╠3╠ ╚РxА╠f╠ ╚xРА╠Щ╠ ╚PиА╠╠╠ └А╠ ╠ Pя╪А ╠ ╨яxА 3╠ ╥яРА f╠ ╒яиА Щ╠ ▄я└А ╠╠ я╪А  ╠ (я╪А А   ╚яxА АЩ  ╕яxАЩ3  ┤яРАЩf  няиАЩЩ  ая└АЩ╠  Мя└АЩ   xя└А╠  └яxА╠3  ╛яРА╠f  ╗яиА╠Щ  ┤я└А╠╠  ая╪А╠   xя╪А   ╚яxА 3  ╚яРА f  ╚яиА Щ  ╚я└А ╠  ╚я╪А    ЁА       А S 3 1235872763            ╞                                     ■     !"#$■                                                                                                                                                                                                                                                                                                                                                                                 CPicPage   CPicLayer   CPicFrame   CPicSprite  ■ Щ ■  ■ empty ■ Ж<component metaDataFetched='true' schemaUrl='' schemaOperation='' sceneRootLabel='Scene 1' oldCopiedComponentPath='2.2'> </component> АА&   ?   ■ > ■  ■ АА  ■ Layer 1    O O АА  CPicPage   CPicLayer   CPicFrame   CPicShapeАААrr 88▐^]^  DDD ╫xЄїї ч 0ёЄчЎЎїЎч0V№Є ч її0ъ БВ■   ДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═■   ╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄ■                                                        0к╝∙╝ лШ╝∙╝▒жШШШ##Ш## ∙# ∙∙∙$$∙$$#$ ###ШШ#Шa#Шл╝╝$Шж▒ ╝╝$╝$╝$╝∙╝∙╝$╝∙АААА&   ?   ■ $ ■  ■ АА  ■  flash0.ai    Щ3╠ АА  CPicTextАА (▓HГ? ■  ■ BROWSE Ё Gotham Light     BROWSE ■  buttonText ■  ■  1|2|3|4|5АА&   ?   ■ ^0 ■  ■ АА  ■  flash0.ai    O O АА  CPicPage   CPicLayer   CPicFrame   CPicSpriteL,d  ■  9 ■  ■  browseBtn ■ Д<component metaDataFetched='true' schemaUrl='' schemaOperation='' sceneRootLabel='Scene 1' oldCopiedComponentPath='2'> </component> АА&   ?   ■ З~ ■  ^I/* Uploadify v2.1.0 Release Date: August 24, 2009 Copyright (c) 2009 Ronnie Garcia, Travis Nickels Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ import flash.external.ExternalInterface; import flash.net.*; import flash.events.*; import flash.display.*; import com.adobe.serialization.json.JSON; // Align the stage to the top left and don't scale it stage.align = StageAlign.TOP_LEFT; stage.scaleMode = StageScaleMode.NO_SCALE; // Create all the variables var param:Object = LoaderInfo(this.root.loaderInfo).parameters; var fileRefSingle:FileReference = new FileReference(); var fileRefMulti:FileReferenceList = new FileReferenceList(); var fileRefListener:Object = new Object(); var fileQueue:Array = new Array(); var fileItem:Object = new Object(); var activeUploads:Object = new Object(); var errorArray:Array = new Array(); var counter:Number = 0; var filesSelected:Number = 0; var filesReplaced:Number = 0; var filesUploaded:Number = 0; var filesChecked:Number = 0; var errors:Number = 0; var kbs:Number = 0; var allBytesLoaded:Number = 0; var allBytesTotal:Number = 0; var allKbsAvg:Number = 0; var allowedTypes:Array; var scriptURL:URLRequest; var variables:URLVariables; var queueReversed:Boolean = false; // For debugging, alert any value to javascript function debug(someValue) { ExternalInterface.call('alert("' + someValue + '")'); } // Trigger a javascript event function $trigger(eventName:String, ... args):void { // Add parenthesis function p(s:String):String { return ('('+s+')'); } // Add quotes function q(s:String):String { return ('"'+s+'"'); } var list:Array = [q(eventName)]; //Add the event to the array if (args.length > 0) list.push(JSON.encode(args)); // Add arguments to the array as a JSON object ExternalInterface.call(['jQuery'+p(q('#'+param.uploadifyID)), p(list.join(','))].join('.trigger')); // Trigger the event } // Random string generator for queue IDs function generateID(len:Number):String { var chars:Array = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']; var ID:String = ''; var index:Number; for (var n:int = 0; n < len; n++) { ID += chars[Math.floor(Math.random() * 25)]; } return ID; } // Load the button image function setButtonImg():void { if (param.buttonImg) { var btnLoader:Loader = new Loader(); var btnImage:URLRequest = new URLRequest(param.buttonImg); browseBtn.addChild(btnLoader); btnLoader.load(btnImage); } if (!param.hideButton && !param.buttonImg) { browseBtn.empty.alpha = 1; } } setButtonImg(); // Hide or show the button function hideButton(hideValue:Boolean):void { if (hideValue) { browseBtn.empty.alpha = 0; } else { browseBtn.empty.alpha = 1; } } // Set the text on the button function setButtonText():void { if (param.buttonText) { browseBtn.empty.buttonText.text = unescape(param.buttonText); } } setButtonText(); // This is important for clicking the button correctly browseBtn.buttonMode = true; browseBtn.useHandCursor = true; browseBtn.mouseChildren = false; // Set the size of the button function setButtonSize():void { if (param.hideButton) { browseBtn.width = param.width; browseBtn.height = param.height; } // Set the size of the button on the page ExternalInterface.call('jQuery("#' + param.uploadifyID + '").attr("width",' + param.width + ')'); ExternalInterface.call('jQuery("#' + param.uploadifyID + '").attr("height",' + param.height + ')'); } setButtonSize(); // Setup the rollover animation if (param.rollover) { browseBtn.addEventListener(MouseEvent.ROLL_OVER, function (event:MouseEvent):void { event.currentTarget.y = -param.height; }); browseBtn.addEventListener(MouseEvent.ROLL_OUT, function (event:MouseEvent):void { event.currentTarget.y = 0; }); browseBtn.addEventListener(MouseEvent.MOUSE_DOWN, function (event:MouseEvent):void { event.currentTarget.y = -(param.height * 2); }); } // create the scriptData variable if it doesn't exist if (!param.scriptData) { param.scriptData = ''; } // Limit the file types function setAllowedTypes():void { allowedTypes = []; if (param.fileDesc && param.fileExt) { var fileDescs:Array = param.fileDesc.split('|'); var fileExts:Array = param.fileExt.split('|'); for (var n = 0; n < fileDescs.length; n++) { allowedTypes.push(new FileFilter(fileDescs[n], fileExts[n])); } } } setAllowedTypes(); // Set or get the variables function uploadify_updateSettings(settingName:String, settingValue) { if(settingValue == null) { if (settingName == 'queueSize') { return fileQueue.length; } return param[settingName]; } else { param[settingName] = settingValue; if(settingName == 'buttonImg') setButtonImg(); if(settingName == 'buttonText') setButtonText(); if(settingName == 'fileDesc' || settingName == 'fileExt') setAllowedTypes(); if(settingName == 'width' || settingName == 'height') setButtonSize(); if(settingName == 'hideButton') hideButton(settingValue); return true; } } // Browse for Files browseBtn.addEventListener(MouseEvent.CLICK, function():void { if (objSize(activeUploads) == 0) { // Don't browse if it's uploading if (!allowedTypes) { (!param.multi) ? fileRefSingle.browse() : fileRefMulti.browse(); } else { (!param.multi) ? fileRefSingle.browse(allowedTypes) : fileRefMulti.browse(allowedTypes); } } }); // Get the size of an object function objSize(obj:Object):Number { var i:int = 0; for (var item in obj) { i++; } return i; } // Get actual folder path function getFolderPath():String { var folder:String = param.folder; if (param.folder.substr(0,1) != '/' && param.folder.substr(0,4) != 'http') { folder = param.pagepath + param.folder; var folderParts:Array = folder.split('/'); for (var i = 0; i < folderParts.length; i++) { if (folderParts[i] == '..') { folderParts.splice(i - 1, 2); } } folder = folderParts.join('/'); } return folder; } // Get the array index of the item in the fileQueue function getIndex(ID:String):Number { var index:int; for (var n:Number = 0; n < fileQueue.length; n++) { if (fileQueue[n].ID == ID) { index = n; } } return index; } // Check if a file with the same name is already in the queue function inQueue(fileName:String):Object { var obj:Object = new Object(); obj.testResult = false; if (fileQueue.length > 0) { for (var n = 0; n < fileQueue.length; n++) { if (fileQueue[n].file.name == fileName) { obj.size = fileQueue[n].file.size; obj.ID = fileQueue[n].ID; obj.arrIndex = n; obj.testResult = true; } } } return obj; } // When selecting a file function fileSelectSingleHandler(event:Event):void { // Check if the filename already exists in the queue fileItem = new Object(); fileItem.file = FileReference(event.target); uploadify_clearFileUploadQueue(true); var ID:String = generateID(6); fileItem.ID = ID; fileQueue.push(fileItem); filesSelected = 1; allBytesTotal = fileItem.file.size; $trigger('uploadifySelect',ID,fileItem.file); $trigger('uploadifySelectOnce',{ 'fileCount' : fileQueue.length, 'filesSelected' : filesSelected, 'filesReplaced' : filesReplaced, 'allBytesTotal' : allBytesTotal }); filesSelected = 0; filesReplaced = 0; if (param.auto) { if (param.checkScript) { uploadify_uploadFiles(null, false); } else { uploadify_uploadFiles(null, true); } } } function fileSelectMultiHandler(event:Event):void { var ID:String = ''; for (var n:Number = 0; n < fileRefMulti.fileList.length; n++) { fileItem = new Object(); fileItem.file = fileRefMulti.fileList[n]; // Check if the filename already exists in the queue var queueTest:Object = inQueue(fileRefMulti.fileList[n].name); if (queueTest.testResult) { allBytesTotal -= queueTest.size; allBytesTotal += fileItem.file.size; fileItem.ID = fileQueue[queueTest.arrIndex].ID; fileQueue[queueTest.arrIndex] = fileItem; filesReplaced++; } else { if (fileQueue.length < param.queueSizeLimit) { ID = generateID(6); fileItem.ID = ID; fileQueue.push(fileItem); filesSelected++; allBytesTotal += fileItem.file.size; $trigger('uploadifySelect',ID,fileItem.file); } else { $trigger('uploadifyQueueFull',param.queueSizeLimit); break; } } } $trigger('uploadifySelectOnce',{ 'fileCount' : fileQueue.length, 'filesSelected' : filesSelected, 'filesReplaced' : filesReplaced, 'allBytesTotal' : allBytesTotal }); filesSelected = 0; filesReplaced = 0; if (param.auto) { if (param.checkScript) { uploadify_uploadFiles(null, false); } else { uploadify_uploadFiles(null, true); } } } fileRefSingle.addEventListener(Event.SELECT, fileSelectSingleHandler); fileRefMulti.addEventListener(Event.SELECT, fileSelectMultiHandler); // This function should run during upload so flash doesn't timeout function uploadCounter(event:Event):void { counter++; } // Start the upload function uploadify_uploadFiles(ID:String, checkComplete:Boolean):void { if (!queueReversed) { fileQueue.reverse(); queueReversed = true; } if (param.script.substr(0,1) != '/' && param.script.substr(0,4) != 'http') param.script = param.pagepath + param.script; scriptURL = new URLRequest(param.script); variables = new URLVariables(); (param.method.toUpperCase() == "GET") ? scriptURL.method = URLRequestMethod.GET : scriptURL.method = URLRequestMethod.POST; if (param.scriptData != '') variables.decode(unescape(param.scriptData)); if (param.fileExt) variables.fileext = unescape(param.fileExt); variables.folder = unescape(getFolderPath()); scriptURL.data = variables; if (param.checkScript && !checkComplete) { var fileQueueObj:Object = new Object(); if (ID) { var index:int = getIndex(ID); if (fileQueue[index].file) { fileQueueObj[fileQueue[index].ID] = fileQueue[index].file.name; } $trigger('uploadifyCheckExist',param.checkScript,fileQueueObj,param.folder,true); } else { for (var n:Number = fileQueue.length - 1; n > -1; n--) { if (fileQueue[n]) { fileQueueObj[fileQueue[n].ID] = fileQueue[n].file.name; } } $trigger('uploadifyCheckExist',param.checkScript,fileQueueObj,param.folder,false); } } else { if (ID && fileQueue[getIndex(ID)].file) { uploadFile(fileQueue[getIndex(ID)].file, getIndex(ID), ID, true); } else { for (n = fileQueue.length - 1; n > -1; n--) { if (objSize(activeUploads) < parseInt(param.simUploadLimit)) { if (!activeUploads[fileQueue[n].ID] && fileQueue[n].file) { uploadFile(fileQueue[n].file, n, fileQueue[n].ID, false); } } else { break; } } } } } function queueIsNotEmpty(item:*, index:int, array:Array):Boolean { return (item.file != ''); } // Upload each file function uploadFile(file:FileReference, index:int, ID:String, single:Boolean):void { var startTimer:Number = 0; var lastBytesLoaded:Number = 0; var kbsAvg:Number = 0; function fileOpenHandler(event:Event) { startTimer = getTimer(); $trigger('uploadifyOpen',ID,event.currentTarget); } function fileProgressHandler(event:ProgressEvent):void { var percentage:Number = Math.round((event.bytesLoaded / event.bytesTotal) * 100); if ((getTimer()-startTimer) >= 150) { kbs = ((event.bytesLoaded - lastBytesLoaded)/1024)/((getTimer()-startTimer)/1000); kbs = int(kbs*10)/10; startTimer = getTimer(); if (kbsAvg > 0) { kbsAvg = (kbsAvg + kbs)/2; } else { kbsAvg = kbs; } allKbsAvg = (allKbsAvg + kbsAvg)/2; } allBytesLoaded += (event.bytesLoaded - lastBytesLoaded); lastBytesLoaded = event.bytesLoaded; $trigger('uploadifyProgress',ID,event.currentTarget,{ 'percentage' : percentage, 'bytesLoaded' : event.bytesLoaded, 'allBytesLoaded' : allBytesLoaded, 'speed' : kbs }); } function fileCompleteHandler(event:DataEvent):void { if (kbsAvg == 0) { kbs = (file.size/1024)/((getTimer()-startTimer)/1000); kbsAvg = kbs; allKbsAvg = (allKbsAvg + kbsAvg)/2; } allBytesLoaded -= lastBytesLoaded; allBytesLoaded += event.currentTarget.size; $trigger('uploadifyProgress',ID,event.currentTarget,{ 'percentage' : 100, 'bytesLoaded' : event.currentTarget.size, 'allBytesLoaded' : allBytesLoaded, 'speed' : kbs }); $trigger('uploadifyComplete',ID,{ 'name' : event.currentTarget.name, 'filePath' : getFolderPath() + '/' + event.currentTarget.name, 'size' : event.currentTarget.size, 'creationDate' : event.currentTarget.creationDate, 'modificationDate' : event.currentTarget.modificationDate, 'type' : event.currentTarget.type }, escape(event.data),{ 'fileCount' : (fileQueue.length-1), 'speed' : kbsAvg }); filesUploaded++; fileQueue.splice(getIndex(ID),1); delete activeUploads[ID]; if (!single) { uploadify_uploadFiles(null, true); } event.currentTarget.removeEventListener(DataEvent.UPLOAD_COMPLETE_DATA, fileCompleteHandler); if (!fileQueue.some(queueIsNotEmpty) && objSize(activeUploads) == 0) { $trigger('uploadifyAllComplete',{ 'filesUploaded' : filesUploaded, 'errors' : errors, 'allBytesLoaded' : allBytesLoaded, 'speed' : allKbsAvg }); resetVars(); } } // Add all the event listeners file.addEventListener(Event.OPEN, fileOpenHandler); file.addEventListener(ProgressEvent.PROGRESS, fileProgressHandler); file.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, fileCompleteHandler); // Reset all the numbers function resetVars() { filesUploaded = 0; errors = 0; allBytesLoaded = 0; allBytesTotal = 0; allKbsAvg = 0; filesChecked = 0; queueReversed = false; } // Handle all the errors file.addEventListener(HTTPStatusEvent.HTTP_STATUS, function(event:HTTPStatusEvent):void { if (errorArray.indexOf(ID) == -1) { $trigger('uploadifyError',ID,event.currentTarget,{ 'type' : 'HTTP', 'info' : event.status }); finishErrorHandler(ID); } }); file.addEventListener(IOErrorEvent.IO_ERROR, function(event:IOErrorEvent):void { if (errorArray.indexOf(ID) == -1) { $trigger('uploadifyError',ID,event.currentTarget,{ 'type' : 'IO', 'info' : event.text }); finishErrorHandler(ID); } }); file.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function(event:SecurityErrorEvent):void { if (errorArray.indexOf(ID) == -1) { $trigger('uploadifyError',ID,event.currentTarget,{ 'type' : 'Security', 'info' : event.text }); finishErrorHandler(ID); } }); // Common routines used by all errors function finishErrorHandler(ID:String) { errorArray.push(ID); fileQueue[getIndex(ID)].file = ''; delete activeUploads[ID]; if (!single) { uploadify_uploadFiles(null, true); } errors++; if (!fileQueue.some(queueIsNotEmpty)) { if (root.hasEventListener(Event.ENTER_FRAME)) { root.removeEventListener(Event.ENTER_FRAME, uploadCounter); } $trigger('uploadifyAllComplete',{ 'filesUploaded' : filesUploaded, 'errors' : errors, 'allBytesLoaded' : allBytesLoaded, 'speed' : allKbsAvg }); resetVars(); } } if (param.sizeLimit && file.size > parseInt(param.sizeLimit)) { if (errorArray.indexOf(ID) == -1) { $trigger('uploadifyError',ID,file,{ 'type' : 'File Size', 'info' : param.sizeLimit }); finishErrorHandler(ID); } } else { file.upload(scriptURL, param.fileDataName); activeUploads[ID] = true; } } function uploadify_cancelFileUpload(ID:String, single:Boolean, clearFast:Boolean):void { var index:int = getIndex(ID); var fileObj:Object = new Object(); if (fileQueue[index].file) { fileObj = fileQueue[index].file; fileQueue[index].file.cancel(); allBytesTotal -= fileQueue[index].file.size; } fileQueue.splice(index,1); if (activeUploads[ID]) { delete activeUploads[ID]; uploadify_uploadFiles(null, true); if (root.hasEventListener(Event.ENTER_FRAME) && objSize(activeUploads) == 0) { root.removeEventListener(Event.ENTER_FRAME, uploadCounter); } } $trigger('uploadifyCancel',ID,fileObj,{ 'fileCount' : (fileQueue.length), 'allBytesTotal' : allBytesTotal },clearFast); } // Cancel all uploads function uploadify_clearFileUploadQueue(clearFast:Boolean):void { if (!queueReversed) { fileQueue.reverse(); queueReversed = true; } for (var n:Number = fileQueue.length - 1; n >= 0; n--) { uploadify_cancelFileUpload(fileQueue[n].ID, false, clearFast); } if (root.hasEventListener(Event.ENTER_FRAME)) { root.removeEventListener(Event.ENTER_FRAME, uploadCounter); } $trigger('uploadifyClearQueue'); queueReversed = false; } // Create all the callbacks for the functions ExternalInterface.addCallback('updateSettings', uploadify_updateSettings); ExternalInterface.addCallback('startFileUpload', uploadify_uploadFiles); ExternalInterface.addCallback('cancelFileUpload', uploadify_cancelFileUpload); ExternalInterface.addCallback('clearFileUploadQueue', uploadify_clearFileUploadQueue); ■ АА  ■ Layer 1    O O ААC   CDocumentPageP 1 1235869980 ■ Scene 1 ■ сйI ■  ■  ■  ■  ■      ■ wЄРJ ■  ■  ■  ■  ■  ■  ■      ■  ■  ■  ■  ■  ■  ■  ■  ■  ■  ■  ■ АААААS 4 1235872763 ■ empty ■ vШI ■  ■  ■  ■ '..\jquery.uploadify-v2.0.3\uploader.fla ■ emptyщыйIvШI ■ гwJ ■  ■  ■  ■  ■  ■  ■      ■  ■  ■  ■  ■  ■  ■  ■  ■  ■  ■  ■ АААААS 3 1235872763 ■  browseBtn ■ ╕ХI┤ ■  ■  ■  ■ '..\jquery.uploadify-v2.0.3\uploader.fla ■  browseBtn╞yзI╕ХI┤ ■ \ДмI ■  ■  ■  ■  ■  ■  ■      ■  ■  ■  ■  ■  ■  ■  ■  ■  ■  ■  ■ ААААШX╚Нhhhh    ФФФ ┤ ■ legacyLineSpacing ■ 0г ■ %PublishFormatProperties::htmlFileName ■  uploader.html ■ "PublishHtmlProperties::StartPaused ■ 0 ■ Vector::AS3 Package Paths ■ . ■  PublishRNWKProperties::speed256K ■ 0 ■ !PublishGifProperties::PaletteName ■  ■ PublishFormatProperties::jpeg ■ 0 ■ PublishHtmlProperties::Loop ■ 1 ■ PublishProfileProperties::name ■ Default ■ Vector::Debugging Permitted ■ 0 ■ Vector::UseNetwork ■ 0 ■ "PublishQTProperties::MatchMovieDim ■ 1 ■  PublishQTProperties::AlphaOption ■  ■  PublishQTProperties::LayerOption ■  ■ 4PublishHtmlProperties::UsingDefaultAlternateFilename ■ 1 ■ PublishHtmlProperties::Units ■ 0 ■ 'PublishHtmlProperties::DeblockingFilter ■ 0 ■ %PublishHtmlProperties::showTagWarnMsg ■ 1 ■ Vector::External Player ■  ■ Vector::DocumentClass ■  ■ &PublishRNWKProperties::singleRateAudio ■ 0 ■ &PublishRNWKProperties::speedSingleISDN ■ 0 ■ $PublishPNGProperties::OptimizeColors ■ 1 ■ PublishQTProperties::Width ■ 550 ■ %PublishFormatProperties::projectorMac ■ 0 ■ 'PublishFormatProperties::gifDefaultName ■ 1 ■ &PublishFormatProperties::flashFileName ■  uploader.swf ■ Vector::Package Paths ■  ■ Vector::Compress Movie ■ 1 ■ Vector::ScriptStuckDelay ■ 15 ■ #PublishRNWKProperties::flashBitRate ■ 1200 ■ %PublishRNWKProperties::mediaCopyright ■ (c) 2000 ■ PublishGifProperties::Smooth ■ 1 ■ PublishFormatProperties::html ■ 0 ■ $PublishFormatProperties::pngFileName ■  uploader.png ■ (PublishHtmlProperties::VerticalAlignment ■ 1 ■ PublishHtmlProperties::Quality ■ 4 ■ Vector::Invisible Layer ■ 1 ■ Vector::AS3ExportFrame ■ 1 ■ "PublishRNWKProperties::exportAudio ■ 1 ■  PublishRNWKProperties::speed384K ■ 0 ■ !PublishRNWKProperties::exportSMIL ■ 1 ■ "PublishGifProperties::DitherOption ■  ■ -PublishFormatProperties::generatorDefaultName ■ 1 ■ !PublishHtmlProperties::DeviceFont ■ 0 ■ Vector::Override Sounds ■ 0 ■ 'PublishRNWKProperties::mediaDescription ■  ■ "PublishPNGProperties::FilterOption ■  ■ PublishFormatProperties::gif ■ 0 ■ (PublishFormatProperties::jpegDefaultName ■ 1 ■ (PublishFormatProperties::rnwkDefaultName ■ 1 ■ *PublishFormatProperties::generatorFileName ■  uploader.swt ■ Vector::Template ■ 0 ■ 2PublishHtmlProperties::VersionDetectionIfAvailable ■ 0 ■ *PublishHtmlProperties::HorizontalAlignment ■ 1 ■ "PublishHtmlProperties::DisplayMenu ■ 1 ■ Vector::Protect ■ 0 ■ Vector::Quality ■ 80 ■ PublishJpegProperties::DPI ■ 4718592 ■ PublishGifProperties::Interlace ■ 0 ■ "PublishGifProperties::DitherSolids ■ 0 ■ PublishPNGProperties::Smooth ■ 1 ■ PublishPNGProperties::BitDepth ■ 24-bit with Alpha ■ PublishQTProperties::Flatten ■ 1 ■ #PublishFormatProperties::qtFileName ■  uploader.mov ■ PublishRNWKProperties::speed28K ■ 1 ■ !PublishRNWKProperties::mediaTitle ■  ■ $PublishRNWKProperties::mediaKeywords ■  ■ PublishGifProperties::Width ■ 110 ■ PublishGifProperties::Loop ■ 1 ■ PublishFormatProperties::flash ■ 1 ■ Vector::IncludeXMP ■ 1 ■ PublishJpegProperties::Quality ■ 80 ■ $PublishRNWKProperties::realVideoRate ■ 100000 ■ $PublishRNWKProperties::speedDualISDN ■ 0 ■ #PublishGifProperties::MatchMovieDim ■ 1 ■ #PublishGifProperties::PaletteOption ■  ■ "PublishPNGProperties::DitherOption ■  ■ 0PublishFormatProperties::projectorMacDefaultName ■ 1 ■ 'PublishFormatProperties::pngDefaultName ■ 1 ■ -PublishFormatProperties::projectorWinFileName ■  uploader.exe ■ PublishHtmlProperties::Align ■ 0 ■ !PublishProfileProperties::version ■ 1 ■ Vector::Package Export Frame ■ 1 ■ $PublishJpegProperties::MatchMovieDim ■ 1 ■ #PublishPNGProperties::MatchMovieDim ■ 1 ■ #PublishPNGProperties::PaletteOption ■  ■ )PublishFormatProperties::flashDefaultName ■ 1 ■ %PublishFormatProperties::jpegFileName ■  uploader.jpg ■ PublishHtmlProperties::Width ■ 110 ■ PublishHtmlProperties::Height ■ 30 ■ Vector::Omit Trace Actions ■ 0 ■ Vector::Debugging Password ■  ■ Vector::Export Swc ■ 0 ■ "PublishJpegProperties::Progressive ■ 0 ■ "PublishPNGProperties::DitherSolids ■ 0 ■ #PublishQTProperties::PlayEveryFrame ■ 0 ■ PublishFormatProperties::png ■ 0 ■ PublishFormatProperties::rnwk ■ 0 ■ (PublishFormatProperties::htmlDefaultName ■ 1 ■ -PublishFormatProperties::projectorMacFileName ■  uploader.app ■ 2PublishHtmlProperties::UsingDefaultContentFilename ■ 1 ■ !PublishHtmlProperties::WindowMode ■ 0 ■ 'PublishHtmlProperties::TemplateFileName ■ SC:\Users\RonnieSan\AppData\Local\Adobe\Flash CS4\en\Configuration\HTML\Default.html ■ Vector::DeviceSound ■ 0 ■ Vector::AS3Coach ■ 1 ■ Vector::AS3AutoDeclare ■ 1 ■ Vector::UseAS3Namespace ■ 1 ■ PublishJpegProperties::Size ■ 0 ■ PublishGifProperties::Height ■ 30 ■ PublishPNGProperties::Interlace ■ 0 ■ "PublishFormatProperties::generator ■ 0 ■ &PublishHtmlProperties::ContentFilename ■  ■ (PublishHtmlProperties::AlternateFilename ■  ■ +PublishHtmlProperties::OwnAlternateFilename ■  ■ Vector::Report ■ 0 ■ PublishRNWKProperties::speed56K ■ 1 ■ PublishGifProperties::LoopCount ■  ■ 'PublishGifProperties::TransparentOption ■  ■ PublishGifProperties::MaxColors ■ 255 ■ %PublishPNGProperties::RemoveGradients ■ 0 ■ PublishQTProperties::Height ■ 400 ■ PublishFormatProperties::qt ■ 0 ■ Vector::Stream Compress ■ 7 ■ Vector::Event Format ■ 0 ■ Vector::Version ■ 9 ■ Vector::AS3Strict ■ 1 ■ Vector::HardwareAcceleration ■ 0 ■ "PublishRNWKProperties::audioFormat ■ 0 ■ $PublishGifProperties::OptimizeColors ■ 1 ■ 0PublishFormatProperties::projectorWinDefaultName ■ 1 ■ PublishHtmlProperties::Scale ■ 0 ■ Vector::Event Compress ■ 7 ■ Vector::ActionScriptVersion ■ 3 ■ Vector::StreamUse8kSampleRate ■ 0 ■ Vector::EventUse8kSampleRate ■ 0 ■ PublishJpegProperties::Height ■ 30 ■  PublishRNWKProperties::speed512K ■ 0 ■ %PublishGifProperties::RemoveGradients ■ 0 ■ PublishPNGProperties::Width ■ 110 ■ PublishPNGProperties::Height ■ 30 ■ &PublishFormatProperties::qtDefaultName ■ 1 ■ $PublishFormatProperties::gifFileName ■  uploader.gif ■ "PublishHtmlProperties::VersionInfo ■  ■ Vector::DeblockingFilter ■ 0 ■ Vector::Stream Format ■ 0 ■ PublishJpegProperties::Width ■ 110 ■ "PublishRNWKProperties::exportFlash ■ 1 ■ &PublishRNWKProperties::showBitrateDlog ■ 1 ■ (PublishRNWKProperties::speedCorporateLAN ■ 0 ■ "PublishRNWKProperties::mediaAuthor ■  ■ PublishGifProperties::Animated ■ 0 ■ &PublishGifProperties::TransparentAlpha ■ 128 ■ !PublishPNGProperties::Transparent ■ 0 ■ !PublishPNGProperties::PaletteName ■  ■ *PublishQTProperties::UseQTSoundCompression ■ 0 ■ PublishQTProperties::Looping ■ 0 ■ %PublishFormatProperties::defaultNames ■ 1 ■ %PublishFormatProperties::projectorWin ■ 0 ■ %PublishFormatProperties::rnwkFileName ■  uploader.smil ■ ,PublishHtmlProperties::UsingOwnAlternateFile ■ 0 ■ PublishPNGProperties::MaxColors ■ 255 ■ %PublishQTProperties::ControllerOption ■ 0 ■ "PublishQTProperties::PausedAtStart ■ 0     ■  ■ №   CColorDef А А А А3 PяАf Pя0АЩ PяHА╠ Pя`А  PяxА3 яА33 (яА3f <я0А3Щ CяHА3╠ Fя`А3  HяxАf я0Аf3 я0Аff (я0АfЩ 5яHАf╠ <я`Аf  @яxА А333 0А А3 аяА33 xяАf3 dя0АЩ3 ]яHА╠3 Zя`А 3 XяxА33 ╚яА333 0А3f3 PPHА3Щ3 Px`А3╠3 PРxА3 3 PяРАf3 ▄я0Аf33 PHАff3 (PHАfЩ3 <x`Аf╠3 CРxАf 3 FяРА Аfff `А Аf ая0А3f Мя0Аff xя0АЩf kяHА╠f dя`А f `яxА3f ┤я0А33f аPHА3ff xPHА3Щf dx`А3╠f ]РxА3 f ZяРАff ╚я0Аf3f ╚PHАfff `АfЩf P0xАf╠f PxРАf f PяиА АЩЩЩ РА АЩ аяHА3Щ УяHАfЩ ЕяHАЩЩ xяHА╠Щ nя`А Щ hяxА3Щ няHА33Щ аx`А3fЩ Мx`А3ЩЩ xx`А3╠Щ kРxА3 Щ dяРАfЩ ╗яHАf3Щ ┤x`АffЩ а0xАfЩЩ x0xАf╠Щ dxРАf Щ ]яиА А╠╠╠ └А А╠ ая`А3╠ Ця`Аf╠ Мя`АЩ╠ Вя`А╠╠ xя`А ╠ pяxА3╠ кя`А33╠ аРxА3f╠ УРxА3Щ╠ ЕРxА3╠╠ xРxА3 ╠ nяРАf╠ ┤я`Аf3╠ нРxАff╠ аxРАfЩ╠ МxРАf╠╠ xxРАf ╠ kяиА А    ЁА А  аяxА3  ШяxАf  РяxАЩ  ИяxА╠  АяxА   xяxА3  ияxА33  аяРА3f  ЦяРА3Щ  МяРА3╠  ВяРА3   xяРАf  ░яxАf3  кяРАff  аяиАfЩ  УяиАf╠  ЕяиАf   xяиА А  яxА АЩ яHАЩ3  яHАЩf яHАЩЩ (яHАЩ╠ 2я`АЩ  8яxА╠ я`А╠3  я`А╠f я`А╠Щ я`А╠╠ (я`А╠  0яxА  яxА 3 яxА f яxА Щ яxА ╠  яxА   (яxА А  PяxА АЩ3 уяHАЩ33 x`АЩf3 x`АЩЩ3 (x`АЩ╠3 5РxАЩ 3 <яРА╠3 ця`А╠33 РxА╠f3  РxА╠Щ3 РxА╠╠3 (РxА╠ 3 2яРА 3 шяxА 33 яРА f3  яРА Щ3 яРА ╠3 яРА  3 (яРА А  аяxА АЩf ╒яHАЩ3f ▄x`АЩff 0xАЩЩf (0xАЩ╠f <xРАЩ f CяиА╠f ▄я`А╠3f уРxА╠ff xРА╠Щf xРА╠╠f (xРА╠ f 5яиА f ряxА 3f цяРА ff яиА Щf  яиА ╠f яиА  f (яиА А   (яxА АЩЩ ╚яHАЩ3Щ ╚x`АЩfЩ ╚0xАЩЩЩ РАЩ╠Щ PPиАЩ Щ Pя└А╠Щ ╥я`А╠3Щ ╒РxА╠fЩ ▄xРА╠ЩЩ PиА╠╠Щ (PиА╠ Щ <я└А Щ ╪яxА 3Щ ▄яРА fЩ уяиА ЩЩ я└А ╠Щ я└А  Щ (я└А А   xяxА АЩ╠ ╛я`АЩ3╠ ╗РxАЩf╠ ┤xРАЩЩ╠ аPиАЩ╠╠ xPиАЩ ╠ dя└А╠╠ ╚я`А╠3╠ ╚РxА╠f╠ ╚xРА╠Щ╠ ╚PиА╠╠╠ └А╠ ╠ Pя╪А ╠ ╨яxА 3╠ ╥яРА f╠ ╒яиА Щ╠ ▄я└А ╠╠ я╪А  ╠ (я╪А А   ╚яxА АЩ  ╕яxАЩ3  ┤яРАЩf  няиАЩЩ  ая└АЩ╠  Мя└АЩ   xя└А╠  └яxА╠3  ╛яРА╠f  ╗яиА╠Щ  ┤я└А╠╠  ая╪А╠   xя╪А   ╚яxА 3  ╚яРА f  ╚яиА Щ  ╚я└А ╠  ╚я╪А    ЁА       А       А     А     А     А f¤ `    z    АЩf к ╠      А   *   ]     к  ╘       ■ "PublishQTProperties::QTSndSettings  CQTAudioSettingsX    ■ ╚ ■  ■      ■  ■  ■  ■          CSaved by Adobe Flash Windows 10.0 build 544 timecount = 1251013272      А     А     А     А f¤ `    z    АЩf к ╠      А   *   ]     к  ╘       ■ "PublishQTProperties::QTSndSettings  CQTAudioSettingsX    ■ ╚ ■  ■      ■  ■  ■  ■          CSaved by Adobe Flash Windows 10.0 build 544 timecount = 1251016498