| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775 |
- package com.imt.intimamedia.helpers
- {
- import com.imt.intimamedia.model.ApplicationModelLocator;
- import com.imt.intimamedia.views.physician.acquire.AcquireView;
- import com.imt.intimamedia.vo.DragAndDropVo;
-
- import flash.display.Bitmap;
- import flash.display.BitmapData;
- import flash.events.StatusEvent;
- import flash.geom.Matrix;
- import flash.geom.Rectangle;
- import flash.net.FileReference;
- import flash.net.LocalConnection;
-
- import mx.controls.Alert;
- import mx.controls.SWFLoader;
-
- import org.rockholla.controls.panzoom.PanZoomComponent;
-
- public class FlashHelper
- {
- public function FlashHelper() { }
-
- public static const localConnection : LocalConnection = new LocalConnection();
-
- public static function refreshCarotidRight( type : String, view : AcquireView ) : void
- {
- var present : Boolean = false;
-
- for each( var item : DragAndDropVo in view.collectionImagesCarotidRight )
- {
- if( item.type == type )
- present = true;
- }
-
- if( !present )
- {
- switch( type )
- {
- case "BIFD" :
- view.carotidRightSWF.BIFD.gotoAndStop( 1 );
- break;
- case "EXTD" :
- view.carotidRightSWF.EXTD.gotoAndStop( 1 );
- break;
- case "INTD" :
- view.carotidRightSWF.INTD.gotoAndStop( 1 );
- break;
- case "FACD" :
- view.carotidRightSWF.FACD.gotoAndStop( 1 );
- break;
- case "TEMD" :
- view.carotidRightSWF.TEMD.gotoAndStop( 1 );
- break;
- case "SOCD" :
- view.carotidRightSWF.SOCD.gotoAndStop( 1 );
- break;
- case "TABD" :
- view.carotidRightSWF.TABD.gotoAndStop( 1 );
- break;
- case "V0D" :
- view.carotidRightSWF.V0D.gotoAndStop( 1 );
- break;
- case "V1D" :
- view.carotidRightSWF.V1D.gotoAndStop( 1 );
- break;
- case "V2D" :
- view.carotidRightSWF.V2D.gotoAndStop( 1 );
- break;
- case "COMD" :
- view.carotidRightSWF.COMD.gotoAndStop( 1 );
- break;
- }
- }
- }
-
- public static function refreshCarotidLeft( type : String, view : AcquireView ) : void
- {
- var present : Boolean = false;
-
- for each( var item : DragAndDropVo in view.collectionImagesCarotidLeft )
- {
- if( item.type == type )
- present = true;
- }
-
-
- if( !present )
- {
- switch( type )
- {
- case "BIFG" :
- view.carotidLeftSWF.BIFG.gotoAndStop( 1 );
- break;
- case "EXTG" :
- view.carotidLeftSWF.EXTG.gotoAndStop( 1 );
- break;
- case "INTG" :
- view.carotidLeftSWF.INTG.gotoAndStop( 1 );
- break;
- case "FACG" :
- view.carotidLeftSWF.FACG.gotoAndStop( 1 );
- break;
- case "TEMG" :
- view.carotidLeftSWF.TEMG.gotoAndStop( 1 );
- break;
- case "SOCG" :
- view.carotidLeftSWF.SOCG.gotoAndStop( 1 );
- break;
- case "V0G" :
- view.carotidLeftSWF.V0G.gotoAndStop( 1 );
- break;
- case "V1G" :
- view.carotidLeftSWF.V1G.gotoAndStop( 1 );
- break;
- case "V2G" :
- view.carotidLeftSWF.V2G.gotoAndStop( 1 );
- break;
- case "COMG" :
- view.carotidLeftSWF.COMG.gotoAndStop( 1 );
- break;
- }
- }
- }
-
- public static function refreshBody( type : String, view : AcquireView ) : void
- {
- var present : Boolean = false;
-
- for each( var item : DragAndDropVo in view.collectionImagesBody )
- {
- if( item.type == type )
- present = true;
- }
-
- if( !present )
- {
- switch( type )
- {
- case "AOR" :
- view.bodySWF.AOR.gotoAndStop( 1 );
- break;
- case "OTH" :
- view.bodySWF.OTH.gotoAndStop( 1 );
- break;
- case "HEP" :
- view.bodySWF.HEP.gotoAndStop( 1 );
- break;
- case "HEC" :
- view.bodySWF.HEC.gotoAndStop( 1 );
- break;
- case "HEO" :
- view.bodySWF.HEO.gotoAndStop( 1 );
- break;
- case "MEI" :
- view.bodySWF.MEI.gotoAndStop( 1 );
- break;
- case "MES" :
- view.bodySWF.MES.gotoAndStop( 1 );
- break;
- case "RED" :
- view.bodySWF.RED.gotoAndStop( 1 );
- break;
- case "REG" :
- view.bodySWF.REG.gotoAndStop( 1 );
- break;
- case "SPL" :
- view.bodySWF.SPL.gotoAndStop( 1 );
- break;
- }
- }
- }
-
- public static function refreshLegRight( type : String, view : AcquireView ) : void
- {
- var present : Boolean = false;
-
- for each( var item : DragAndDropVo in view.collectionImagesLegRight )
- {
- if( item.type == type )
- present = true;
- }
-
- if( !present )
- {
- switch( type )
- {
- case "AOR" :
- view.legRightSWF.AOR.gotoAndStop( 1 );
- break;
- case "CAV" :
- view.legRightSWF.CAV.gotoAndStop( 1 );
- break;
- case "FED" :
- view.legRightSWF.FED.gotoAndStop( 1 );
- break;
- case "FPD" :
- view.legRightSWF.FPD.gotoAndStop( 1 );
- break;
- case "GSD" :
- view.legRightSWF.GSD.gotoAndStop( 1 );
- break;
- case "ICD" :
- view.legRightSWF.ICD.gotoAndStop( 1 );
- break;
- case "IED" :
- view.legRightSWF.IED.gotoAndStop( 1 );
- break;
- case "ILD" :
- view.legRightSWF.ILD.gotoAndStop( 1 );
- break;
- case "PRD" :
- view.legRightSWF.PRD.gotoAndStop( 1 );
- break;
- case "POD" :
- view.legRightSWF.POD.gotoAndStop( 1 );
- break;
- case "PSD" :
- view.legRightSWF.PSD.gotoAndStop( 1 );
- break;
- case "TAD" :
- view.legRightSWF.TAD.gotoAndStop( 1 );
- break;
- case "TPD" :
- view.legRightSWF.TPD.gotoAndStop( 1 );
- break;
- case "VFD" :
- view.legRightSWF.VFD.gotoAndStop( 1 );
- break;
- case "VFPD" :
- view.legRightSWF.VFPD.gotoAndStop( 1 );
- break;
- case "VICD" :
- view.legRightSWF.VICD.gotoAndStop( 1 );
- break;
- case "VILD" :
- view.legRightSWF.VILD.gotoAndStop( 1 );
- break;
- case "VIED" :
- view.legRightSWF.VIED.gotoAndStop( 1 );
- break;
- case "VTAD" :
- view.legRightSWF.VTAD.gotoAndStop( 1 );
- break;
- case "VTPD" :
- view.legRightSWF.VTPD.gotoAndStop( 1 );
- break;
- case "VPD" :
- view.legRightSWF.VPD.gotoAndStop( 1 );
- break;
- }
- }
- }
-
- public static function refreshLegLeft( type : String, view : AcquireView ) : void
- {
- var present : Boolean = false;
-
- for each( var item : DragAndDropVo in view.collectionImagesLegLeft )
- {
- if( item.type == type )
- present = true;
- }
-
- if( !present )
- {
- switch( type )
- {
- case "AOR" :
- view.legLeftSWF.AOR.gotoAndStop( 1 );
- break;
- case "CAV" :
- view.legLeftSWF.CAV.gotoAndStop( 1 );
- break;
- case "FEG" :
- view.legLeftSWF.FEG.gotoAndStop( 1 );
- break;
- case "FPG" :
- view.legLeftSWF.FPG.gotoAndStop( 1 );
- break;
- case "GSG" :
- view.legLeftSWF.GSG.gotoAndStop( 1 );
- break;
- case "ICG" :
- view.legLeftSWF.ICG.gotoAndStop( 1 );
- break;
- case "IEG" :
- view.legLeftSWF.IEG.gotoAndStop( 1 );
- break;
- case "ILG" :
- view.legLeftSWF.ILG.gotoAndStop( 1 );
- break;
- case "PRG" :
- view.legLeftSWF.PRG.gotoAndStop( 1 );
- break;
- case "POG" :
- view.legLeftSWF.POG.gotoAndStop( 1 );
- break;
- case "PSG" :
- view.legLeftSWF.PSG.gotoAndStop( 1 );
- break;
- case "TAG" :
- view.legLeftSWF.TAG.gotoAndStop( 1 );
- break;
- case "TPG" :
- view.legLeftSWF.TPG.gotoAndStop( 1 );
- break;
- case "VFG" :
- view.legLeftSWF.VFG.gotoAndStop( 1 );
- break;
- case "VFPG" :
- view.legLeftSWF.VFPG.gotoAndStop( 1 );
- break;
- case "VICG" :
- view.legLeftSWF.VICG.gotoAndStop( 1 );
- break;
- case "VILG" :
- view.legLeftSWF.VILG.gotoAndStop( 1 );
- break;
- case "VIEG" :
- view.legLeftSWF.VIEG.gotoAndStop( 1 );
- break;
- case "VTAG" :
- view.legLeftSWF.VTAG.gotoAndStop( 1 );
- break;
- case "VTPG" :
- view.legLeftSWF.VTPG.gotoAndStop( 1 );
- break;
- case "VPG" :
- view.legLeftSWF.VPG.gotoAndStop( 1 );
- break;
- }
- }
- }
-
- public static function refreshArmRight( type : String, view : AcquireView ) : void
- {
- var present : Boolean = false;
-
- for each( var item : DragAndDropVo in view.collectionImagesArmRight )
- {
- if( item.type == type )
- present = true;
- }
-
- if( !present )
- {
- switch( type )
- {
- case "AAD" :
- view.armRightSWF.AAD.gotoAndStop( 1 );
- break;
- case "ABD" :
- view.armRightSWF.ABD.gotoAndStop( 1 );
- break;
- case "ACD" :
- view.armRightSWF.ACD.gotoAndStop( 1 );
- break;
- case "ARD" :
- view.armRightSWF.ARD.gotoAndStop( 1 );
- break;
- case "ASCD" :
- view.armRightSWF.ASCD.gotoAndStop( 1 );
- break;
- case "VAD" :
- view.armRightSWF.VAD.gotoAndStop( 1 );
- break;
- case "VBD" :
- view.armRightSWF.VBD.gotoAndStop( 1 );
- break;
- case "VBRD" :
- view.armRightSWF.VBRD.gotoAndStop( 1 );
- break;
- case "VCD" :
- view.armRightSWF.VCD.gotoAndStop( 1 );
- break;
- case "VCUD" :
- view.armRightSWF.VCUD.gotoAndStop( 1 );
- break;
- case "VRD" :
- view.armRightSWF.VRD.gotoAndStop( 1 );
- break;
- case "VSCD" :
- view.armRightSWF.VSCD.gotoAndStop( 1 );
- break;
- }
- }
- }
-
- public static function refreshArmLeft( type : String, view : AcquireView ) : void
- {
- var present : Boolean = false;
-
- for each( var item : DragAndDropVo in view.collectionImagesArmLeft )
- {
- if( item.type == type )
- present = true;
- }
-
- if( !present )
- {
- switch( type )
- {
- case "AAG" :
- view.armLeftSWF.AAG.gotoAndStop( 1 );
- break;
- case "ABG" :
- view.armLeftSWF.ABG.gotoAndStop( 1 );
- break;
- case "ACG" :
- view.armLeftSWF.ACG.gotoAndStop( 1 );
- break;
- case "ARG" :
- view.armLeftSWF.ARG.gotoAndStop( 1 );
- break;
- case "ASCG" :
- view.armLeftSWF.ASCG.gotoAndStop( 1 );
- break;
- case "VAG" :
- view.armLeftSWF.VAG.gotoAndStop( 1 );
- break;
- case "VBG" :
- view.armLeftSWF.VBG.gotoAndStop( 1 );
- break;
- case "VBRG" :
- view.armLeftSWF.VBRG.gotoAndStop( 1 );
- break;
- case "VCG" :
- view.armLeftSWF.VCG.gotoAndStop( 1 );
- break;
- case "VCUG" :
- view.armLeftSWF.VCUG.gotoAndStop( 1 );
- break;
- case "VRG" :
- view.armLeftSWF.VRG.gotoAndStop( 1 );
- break;
- case "VSCG" :
- view.armLeftSWF.VSCG.gotoAndStop( 1 );
- break;
- }
- }
- }
-
- public static function restoreSelectionForRightCarotid( type : String ) : void
- {
- localConnection.send( "rightCarotid", type + "Active" );
- }
-
- public static function removeSelectionForRightCarotid( type : String ) : void
- {
- localConnection.send( "rightCarotid", type + "Inactive" );
- }
-
- public static function restoreSelectionForLeftCarotid( type : String ) : void
- {
- localConnection.send( "leftCarotid", type + "Active" );
- }
-
- public static function removeSelectionForLeftCarotid( type : String ) : void
- {
- localConnection.send( "leftCarotid", type + "Inactive" );
- }
-
- public static function restoreSelectionForRightArm( type : String ) : void
- {
- localConnection.send( "rightArm", type + "Active" );
- }
-
- public static function removeSelectionForRightArm( type : String ) : void
- {
- localConnection.send( "rightArm", type + "Inactive" );
- }
-
- public static function restoreSelectionForLeftArm( type : String ) : void
- {
- localConnection.send( "leftArm", type + "Active" );
- }
-
- public static function removeSelectionForLeftArm( type : String ) : void
- {
- localConnection.send( "leftArm", type + "Inactive" );
- }
-
- public static function restoreSelectionForRightLeg( type : String ) : void
- {
- localConnection.send( "rightLeg", type + "Active" );
- }
-
- public static function removeSelectionForRightLeg( type : String ) : void
- {
- localConnection.send( "rightLeg", type + "Inactive" );
- }
-
- public static function restoreSelectionForLeftLeg( type : String ) : void
- {
- localConnection.send( "leftLeg", type + "Active" );
- }
-
- public static function removeSelectionForLeftLeg( type : String ) : void
- {
- localConnection.send( "leftLeg", type + "Inactive" );
- }
-
- public static function restoreSelectionForBody( type : String ) : void
- {
- localConnection.send( "body", type + "Active" );
- }
-
- public static function removeSelectionForBody( type : String ) : void
- {
- localConnection.send( "body", type + "Inactive" );
- }
-
- public static function resetAll() : void
- {
- localConnection.send( "rightCarotid", "INTDInactive" );
- localConnection.send( "rightCarotid", "EXTDInactive" );
- localConnection.send( "rightCarotid", "TEMDInactive" );
- localConnection.send( "rightCarotid", "FACDInactive" );
- localConnection.send( "rightCarotid", "BIFDInactive" );
- localConnection.send( "rightCarotid", "COMDInactive" );
- localConnection.send( "rightCarotid", "SOCDInactive" );
- localConnection.send( "rightCarotid", "TABDInactive" );
- localConnection.send( "rightCarotid", "V0DInactive" );
- localConnection.send( "rightCarotid", "V1DInactive" );
- localConnection.send( "rightCarotid", "V2DInactive" );
-
- localConnection.send( "leftCarotid", "INTGInactive" );
- localConnection.send( "leftCarotid", "EXTGInactive" );
- localConnection.send( "leftCarotid", "TEMGInactive" );
- localConnection.send( "leftCarotid", "FACGInactive" );
- localConnection.send( "leftCarotid", "BIFGInactive" );
- localConnection.send( "leftCarotid", "COMGInactive" );
- localConnection.send( "leftCarotid", "SOCGInactive" );
- localConnection.send( "leftCarotid", "V0GInactive" );
- localConnection.send( "leftCarotid", "V1GInactive" );
- localConnection.send( "leftCarotid", "V2GInactive" );
-
- localConnection.send( "body", "AORInactive" );
- localConnection.send( "body", "HEPInactive" );
- localConnection.send( "body", "HECInactive" );
- localConnection.send( "body", "HEOInactive" );
- localConnection.send( "body", "MEIInactive" );
- localConnection.send( "body", "MESInactive" );
- localConnection.send( "body", "REDInactive" );
- localConnection.send( "body", "REGInactive" );
- localConnection.send( "body", "SPLInactive" );
- localConnection.send( "body", "OTHInactive" );
-
- localConnection.send( "leftLeg", "AORInactive" );
- localConnection.send( "leftLeg", "ICGInactive" );
- localConnection.send( "leftLeg", "ILGInactive" );
- localConnection.send( "leftLeg", "IEGInactive" );
- localConnection.send( "leftLeg", "FPGInactive" );
- localConnection.send( "leftLeg", "FEGInactive" );
- localConnection.send( "leftLeg", "POGInactive" );
- localConnection.send( "leftLeg", "TPGInactive" );
- localConnection.send( "leftLeg", "TAGInactive" );
- localConnection.send( "leftLeg", "CAVInactive" );
- localConnection.send( "leftLeg", "VICGInactive" );
- localConnection.send( "leftLeg", "VILGInactive" );
- localConnection.send( "leftLeg", "VIEGInactive" );
- localConnection.send( "leftLeg", "GSGInactive" );
- localConnection.send( "leftLeg", "VFGInactive" );
- localConnection.send( "leftLeg", "VPGInactive" );
- localConnection.send( "leftLeg", "VFPGInactive" );
- localConnection.send( "leftLeg", "VTPGInactive" );
- localConnection.send( "leftLeg", "VTAGInactive" );
- localConnection.send( "leftLeg", "PSGInactive" );
-
- localConnection.send( "RightLeg", "AORInactive" );
- localConnection.send( "RightLeg", "ICDInactive" );
- localConnection.send( "RightLeg", "ILDInactive" );
- localConnection.send( "RightLeg", "IEDInactive" );
- localConnection.send( "RightLeg", "FPDInactive" );
- localConnection.send( "RightLeg", "FEDInactive" );
- localConnection.send( "RightLeg", "PODInactive" );
- localConnection.send( "RightLeg", "TPDInactive" );
- localConnection.send( "RightLeg", "TADInactive" );
- localConnection.send( "RightLeg", "CAVInactive" );
- localConnection.send( "RightLeg", "VICDInactive" );
- localConnection.send( "RightLeg", "VILDInactive" );
- localConnection.send( "RightLeg", "VIEDInactive" );
- localConnection.send( "RightLeg", "GSDInactive" );
- localConnection.send( "RightLeg", "VFDInactive" );
- localConnection.send( "RightLeg", "VPDInactive" );
- localConnection.send( "RightLeg", "VFPDInactive" );
- localConnection.send( "RightLeg", "VTPDInactive" );
- localConnection.send( "RightLeg", "VTADInactive" );
- localConnection.send( "RightLeg", "PSDInactive" );
-
- localConnection.send( "leftArm", "ASCGInactive" );
- localConnection.send( "leftArm", "AAGInactive" );
- localConnection.send( "leftArm", "ABGInactive" );
- localConnection.send( "leftArm", "ACGInactive" );
- localConnection.send( "leftArm", "ARGInactive" );
- localConnection.send( "leftArm", "VSCGInactive" );
- localConnection.send( "leftArm", "VAGInactive" );
- localConnection.send( "leftArm", "VBGInactive" );
- localConnection.send( "leftArm", "VCGInactive" );
- localConnection.send( "leftArm", "VRGInactive" );
- localConnection.send( "leftArm", "VCUGInactive" );
- localConnection.send( "leftArm", "VBRGInactive" );
-
- localConnection.send( "rightArm", "ASCDInactive" );
- localConnection.send( "rightArm", "AADInactive" );
- localConnection.send( "rightArm", "ABDInactive" );
- localConnection.send( "rightArm", "ACDInactive" );
- localConnection.send( "rightArm", "ARDInactive" );
- localConnection.send( "rightArm", "VSCDInactive" );
- localConnection.send( "rightArm", "VADInactive" );
- localConnection.send( "rightArm", "VBDInactive" );
- localConnection.send( "rightArm", "VCDInactive" );
- localConnection.send( "rightArm", "VRDInactive" );
- localConnection.send( "rightArm", "VCUDInactive" );
- localConnection.send( "rightArm", "VBRDInactive" );
- }
-
- public static function resetCarotids() : void
- {
- localConnection.send( "rightCarotid", "INTDInactive" );
- localConnection.send( "rightCarotid", "EXTDInactive" );
- localConnection.send( "rightCarotid", "TEMDInactive" );
- localConnection.send( "rightCarotid", "FACDInactive" );
- localConnection.send( "rightCarotid", "BIFDInactive" );
- localConnection.send( "rightCarotid", "COMDInactive" );
- localConnection.send( "rightCarotid", "SOCDInactive" );
- localConnection.send( "rightCarotid", "TABDInactive" );
- localConnection.send( "rightCarotid", "V0DInactive" );
- localConnection.send( "rightCarotid", "V1DInactive" );
- localConnection.send( "rightCarotid", "V2DInactive" );
-
- localConnection.send( "leftCarotid", "INTGInactive" );
- localConnection.send( "leftCarotid", "EXTGInactive" );
- localConnection.send( "leftCarotid", "TEMGInactive" );
- localConnection.send( "leftCarotid", "FACGInactive" );
- localConnection.send( "leftCarotid", "BIFGInactive" );
- localConnection.send( "leftCarotid", "COMGInactive" );
- localConnection.send( "leftCarotid", "SOCGInactive" );
- localConnection.send( "leftCarotid", "V0GInactive" );
- localConnection.send( "leftCarotid", "V1GInactive" );
- localConnection.send( "leftCarotid", "V2GInactive" );
- }
-
- public static function resetArms() : void
- {
- localConnection.send( "leftArm", "ASCGInactive" );
- localConnection.send( "leftArm", "AAGInactive" );
- localConnection.send( "leftArm", "ABGInactive" );
- localConnection.send( "leftArm", "ACGInactive" );
- localConnection.send( "leftArm", "ARGInactive" );
- localConnection.send( "leftArm", "VSCGInactive" );
- localConnection.send( "leftArm", "VAGInactive" );
- localConnection.send( "leftArm", "VBGInactive" );
- localConnection.send( "leftArm", "VCGInactive" );
- localConnection.send( "leftArm", "VRGInactive" );
- localConnection.send( "leftArm", "VCUGInactive" );
- localConnection.send( "leftArm", "VBRGInactive" );
-
- localConnection.send( "rightArm", "ASCDInactive" );
- localConnection.send( "rightArm", "AADInactive" );
- localConnection.send( "rightArm", "ABDInactive" );
- localConnection.send( "rightArm", "ACDInactive" );
- localConnection.send( "rightArm", "ARDInactive" );
- localConnection.send( "rightArm", "VSCDInactive" );
- localConnection.send( "rightArm", "VADInactive" );
- localConnection.send( "rightArm", "VBDInactive" );
- localConnection.send( "rightArm", "VCDInactive" );
- localConnection.send( "rightArm", "VRDInactive" );
- localConnection.send( "rightArm", "VCUDInactive" );
- localConnection.send( "rightArm", "VBRDInactive" );
- }
-
- public static function resetLegs() : void
- {
- localConnection.send( "leftLeg", "AORInactive" );
- localConnection.send( "leftLeg", "ICGInactive" );
- localConnection.send( "leftLeg", "ILGInactive" );
- localConnection.send( "leftLeg", "IEGInactive" );
- localConnection.send( "leftLeg", "FPGInactive" );
- localConnection.send( "leftLeg", "FEGInactive" );
- localConnection.send( "leftLeg", "POGInactive" );
- localConnection.send( "leftLeg", "TPGInactive" );
- localConnection.send( "leftLeg", "TAGInactive" );
- localConnection.send( "leftLeg", "CAVInactive" );
- localConnection.send( "leftLeg", "VICGInactive" );
- localConnection.send( "leftLeg", "VILGInactive" );
- localConnection.send( "leftLeg", "VIEGInactive" );
- localConnection.send( "leftLeg", "GSGInactive" );
- localConnection.send( "leftLeg", "VFGInactive" );
- localConnection.send( "leftLeg", "VPGInactive" );
- localConnection.send( "leftLeg", "VFPGInactive" );
- localConnection.send( "leftLeg", "VTPGInactive" );
- localConnection.send( "leftLeg", "VTAGInactive" );
- localConnection.send( "leftLeg", "PSGInactive" );
-
- localConnection.send( "rightLeg", "AORInactive" );
- localConnection.send( "rightLeg", "ICDInactive" );
- localConnection.send( "rightLeg", "ILDInactive" );
- localConnection.send( "rightLeg", "IEDInactive" );
- localConnection.send( "rightLeg", "FPDInactive" );
- localConnection.send( "rightLeg", "FEDInactive" );
- localConnection.send( "rightLeg", "PODInactive" );
- localConnection.send( "rightLeg", "TPDInactive" );
- localConnection.send( "rightLeg", "TADInactive" );
- localConnection.send( "rightLeg", "CAVInactive" );
- localConnection.send( "rightLeg", "VICDInactive" );
- localConnection.send( "rightLeg", "VILDInactive" );
- localConnection.send( "rightLeg", "VIEDInactive" );
- localConnection.send( "rightLeg", "GSDInactive" );
- localConnection.send( "rightLeg", "VFDInactive" );
- localConnection.send( "rightLeg", "VPDInactive" );
- localConnection.send( "rightLeg", "VFPDInactive" );
- localConnection.send( "rightLeg", "VTPDInactive" );
- localConnection.send( "rightLeg", "VTADInactive" );
- localConnection.send( "rightLeg", "PSDInactive" );
- }
-
- public static function resetBody() : void
- {
- localConnection.send( "body", "AORInactive" );
- localConnection.send( "body", "HEPInactive" );
- localConnection.send( "body", "HECInactive" );
- localConnection.send( "body", "HEOInactive" );
- localConnection.send( "body", "MEIInactive" );
- localConnection.send( "body", "MESInactive" );
- localConnection.send( "body", "REDInactive" );
- localConnection.send( "body", "REGInactive" );
- localConnection.send( "body", "SPLInactive" );
- localConnection.send( "body", "OTHInactive" );
- }
-
- public static function buildSegmentSelected(swf : PanZoomComponent, bitmap : String) : void
- {
- var bitmapData : BitmapData = new BitmapData( swf.width - 15, swf.height - 14 );
- var matrix : Matrix = new Matrix(1,0,0,1,2,2);
-
- var rectangle : Rectangle = new Rectangle( 5, 5, swf.width - 15, swf.height - 14 );
-
- bitmapData.draw( swf, matrix, null, null, rectangle );
-
- switch( bitmap )
- {
- case "CR":
- ApplicationModelLocator.getInstance().carotidRight = new Bitmap( bitmapData );
- ApplicationModelLocator.getInstance().carotidRight.smoothing = true;
- break;
- case "CL":
- ApplicationModelLocator.getInstance().carotidLeft = new Bitmap( bitmapData );
- ApplicationModelLocator.getInstance().carotidLeft.smoothing = true;
- break;
- case "AR":
- ApplicationModelLocator.getInstance().armRight = new Bitmap( bitmapData );
- ApplicationModelLocator.getInstance().armRight.smoothing = true;
- break;
- case "AL":
- ApplicationModelLocator.getInstance().armLeft = new Bitmap( bitmapData );
- ApplicationModelLocator.getInstance().armLeft.smoothing = true;
- break;
- case "LR":
- ApplicationModelLocator.getInstance().legRight = new Bitmap( bitmapData );
- ApplicationModelLocator.getInstance().legRight.smoothing = true;
- break;
- case "LL":
- ApplicationModelLocator.getInstance().legLeft = new Bitmap( bitmapData );
- ApplicationModelLocator.getInstance().legLeft.smoothing = true;
- break;
- case "BO":
- ApplicationModelLocator.getInstance().body = new Bitmap( bitmapData );
- ApplicationModelLocator.getInstance().body.smoothing = true;
- break;
- }
- }
- }
- }
|