ࡱ> Root EntryRoot Entryp|YrRASHjContentsFPage 1 #Symbol 2   !"#$%&'()*+,-./0123456789:;Symbol 1g CPicPage CPicLayer CPicFrame CPicShapezV3+R2 ::=#=438@V|SY@4:zVf +(DE(DE?^o Layer 1OOCPicPage CPicLayer CPicFrame"33300> 020V00R0`0 0F00"0000020>0030r0~000G0 00003<$0>00?f Layer 1OOCPicPage CPicLayer CPicFrame CPicSprite;;efondo<component metaDataFetched='true' schemaUrl='' schemaOperation='' sceneRootLabel='Scene 1' oldCopiedComponentPath='3'> </component> L"L"Kchap<component metaDataFetched='true' schemaUrl='' schemaOperation='' sceneRootLabel='Scene 1' oldCopiedComponentPath='2'> </component> CPicText > apx:muestras 0123456789. Arial333(HCcampo  66        77767677667676"6"66666!"!"!"!"!"!"""%%!"!"!"!"!"!"%%%%"""6"6%%?j FondoOO?(// this.createEmptyMovieClip ("dibujo", this.getNextHighestDepth ()); fondo.swapDepths (dibujo); // this.onEnterFrame = function () { ang = angulo (chap, {_x:_xmouse, _y:_ymouse}); // if (Key.isDown (87)) { chap._x += vel * Math.sin (ang); chap._y -= vel * Math.cos (ang); } if (Key.isDown (83)) { chap._x -= vel * Math.sin (ang); chap._y += vel * Math.cos (ang); } chap._rotation = ang / (Math.PI / 180); chap.luz (ang, 130, fondo); // Modificamos las opciones de calidad if (Key.isDown (107)) { tests++; } else if (Key.isDown (109)) { tests--; } if (Key.isDown (Key.UP) && px >= .2) { px -= .2; } else if (Key.isDown (Key.DOWN)) { px += .2; } // campo.text = "px: " + px + newline + "muestras: " + tests; };  AccionesO?K"// Esta funcin genera el haz de luz de la linterna MovieClip.prototype.luz = function (ang:Number, dist:Number, hit:MovieClip):Void { var pruebas, angIni, angStep, miAng, i, cos, sin, xIni, yIni, j, largo; var arr = new Array (); // pruebas = dist / px; angIni = ang - amp / 2; angStep = amp / tests; // for (i = 0; i <= tests; i++) { miAng = angIni + angStep * i; xIni = this._x; yIni = this._y; // cos = Math.cos (miAng); sin = Math.sin (miAng); xStep = sin * px; yStep = cos * px; // for (j = 0; j < pruebas; j++) { xIni += xStep; yIni -= yStep; if (hit.hitTest (xIni, yIni, true)) { arr[i] = [xIni, yIni]; j = pruebas; } } arr[i] = [xIni, yIni]; } largo = arr.length; // dibujo.clear (); dibujo.beginFill (0xFEFD89, 32); dibujo.moveTo (this._x, this._y); for (i = 0; i < largo; i++) { dibujo.lineTo (arr[i][0], arr[i][1]); } dibujo.lineTo (this._x, this._y); dibujo.endFill (); }; // Obtenemos el ngulo entre 2 MCs angulo = function (mc1:Object, mc2:Object):Number { var xdist, ydist; xdist = mc1._x - mc2._x; ydist = mc1._y - mc2._y; return -Math.atan2 (xdist, ydist); };  FuncionesO?x/* PERSONAJE */ // Velocidad de moviemiento var vel:Number = 3; var ang:Number; /* LINTERNA */ // Esta es la amplitud del haz de luz var amp:Number = Math.PI / 2; // Esta variable nos indica la cantidad de pruebas de la linterna var tests:Number = 20; // Esta es la calidad de la deteccin de colisiones, cuanto menor es el nmero, ms preciso y ms lento var px:Number = 5;  Variables? CDocumentPagePage 1Scene 1F7,FSymbol 2FondoQF5Symbol 1*FSymbol 1Humano.FSymbol 1.F*@hhhhhlegacyLineSpacing0!PublishGifProperties::PaletteName PublishRNWKProperties::speed256K0Vector::AS3 Package Paths"PublishHtmlProperties::StartPaused0%PublishFormatProperties::htmlFileName Untitled-1 PublishQTProperties::LayerOption PublishQTProperties::AlphaOption"PublishQTProperties::MatchMovieDim1Vector::UseNetwork0Vector::Debugging Permitted0PublishProfileProperties::nameDefaultPublishHtmlProperties::Loop1PublishFormatProperties::jpeg0PublishQTProperties::Width550$PublishPNGProperties::OptimizeColors1&PublishRNWKProperties::speedSingleISDN0&PublishRNWKProperties::singleRateAudio0Vector::External Player%PublishHtmlProperties::showTagWarnMsg1PublishHtmlProperties::Units04PublishHtmlProperties::UsingDefaultAlternateFilename1PublishGifProperties::Smooth1%PublishRNWKProperties::mediaCopyright(c) 2000#PublishRNWKProperties::flashBitRate1200Vector::Compress Movie1Vector::Package Paths&PublishFormatProperties::flashFileNameUntitled-1.swf'PublishFormatProperties::gifDefaultName1%PublishFormatProperties::projectorMac0"PublishGifProperties::DitherOption!PublishRNWKProperties::exportSMIL1 PublishRNWKProperties::speed384K0"PublishRNWKProperties::exportAudio1Vector::FireFox0PublishHtmlProperties::Quality4(PublishHtmlProperties::VerticalAlignment1$PublishFormatProperties::pngFileNameUntitled-1.pngPublishFormatProperties::html1"PublishPNGProperties::FilterOption'PublishRNWKProperties::mediaDescriptionVector::Override Sounds0!PublishHtmlProperties::DeviceFont0-PublishFormatProperties::generatorDefaultName1PublishQTProperties::Flatten1PublishPNGProperties::BitDepth24-bit with AlphaPublishPNGProperties::Smooth1"PublishGifProperties::DitherSolids0PublishGifProperties::Interlace0PublishJpegProperties::DPI4718592Vector::Quality80Vector::Protect0"PublishHtmlProperties::DisplayMenu1*PublishHtmlProperties::HorizontalAlignment12PublishHtmlProperties::VersionDetectionIfAvailable0Vector::Template0*PublishFormatProperties::generatorFileNameUntitled-1.swt(PublishFormatProperties::rnwkDefaultName1(PublishFormatProperties::jpegDefaultName1PublishFormatProperties::gif0PublishGifProperties::Loop1PublishGifProperties::Width550$PublishRNWKProperties::mediaKeywords!PublishRNWKProperties::mediaTitlePublishRNWKProperties::speed28K1#PublishFormatProperties::qtFileNameUntitled-1.mov"PublishPNGProperties::DitherOption#PublishGifProperties::PaletteOption#PublishGifProperties::MatchMovieDim1$PublishRNWKProperties::speedDualISDN0$PublishRNWKProperties::realVideoRate100000PublishJpegProperties::Quality80PublishFormatProperties::flash1#PublishPNGProperties::PaletteOption#PublishPNGProperties::MatchMovieDim1$PublishJpegProperties::MatchMovieDim1Vector::Package Export Frame1!PublishProfileProperties::version1PublishHtmlProperties::Align0-PublishFormatProperties::projectorWinFileNameUntitled-1.exe'PublishFormatProperties::pngDefaultName10PublishFormatProperties::projectorMacDefaultName1#PublishQTProperties::PlayEveryFrame0"PublishPNGProperties::DitherSolids0"PublishJpegProperties::Progressive0Vector::Debugging PasswordVector::Omit Trace Actions0PublishHtmlProperties::Height400PublishHtmlProperties::Width550%PublishFormatProperties::jpegFileNameUntitled-1.jpg)PublishFormatProperties::flashDefaultName1PublishPNGProperties::Interlace0PublishGifProperties::Height400PublishJpegProperties::Size0Vector::DeviceSound0Vector::TopDown0'PublishHtmlProperties::TemplateFileName Default.html!PublishHtmlProperties::WindowMode02PublishHtmlProperties::UsingDefaultContentFilename1-PublishFormatProperties::projectorMacFileNameUntitled-1.hqx(PublishFormatProperties::htmlDefaultName1PublishFormatProperties::rnwk0PublishFormatProperties::png0PublishQTProperties::Height400%PublishPNGProperties::RemoveGradients0PublishGifProperties::MaxColors255'PublishGifProperties::TransparentOptionPublishGifProperties::LoopCountPublishRNWKProperties::speed56K1Vector::Report0+PublishHtmlProperties::OwnAlternateFilename(PublishHtmlProperties::AlternateFilenameUntitled-3_alternate.html&PublishHtmlProperties::ContentFilenameUntitled-3_content.html"PublishFormatProperties::generator0$PublishGifProperties::OptimizeColors1"PublishRNWKProperties::audioFormat0Vector::Version8Vector::Event Format0Vector::Stream Compress7PublishFormatProperties::qt0PublishPNGProperties::Height400PublishPNGProperties::Width550%PublishGifProperties::RemoveGradients0 PublishRNWKProperties::speed512K0PublishJpegProperties::Height400Vector::EventUse8kSampleRate0Vector::StreamUse8kSampleRate0Vector::ActionScriptVersion2Vector::Event Compress7PublishHtmlProperties::Scale00PublishFormatProperties::projectorWinDefaultName1PublishQTProperties::Looping0*PublishQTProperties::UseQTSoundCompression0!PublishPNGProperties::PaletteName!PublishPNGProperties::Transparent0&PublishGifProperties::TransparentAlpha128PublishGifProperties::Animated0"PublishRNWKProperties::mediaAuthor(PublishRNWKProperties::speedCorporateLAN0&PublishRNWKProperties::showBitrateDlog1"PublishRNWKProperties::exportFlash1PublishJpegProperties::Width550Vector::Stream Format0"PublishHtmlProperties::VersionInfo@8,0,0,0;7,0,0,0;6,0,0,0;5,0,0,0;4,0,0,0;3,0,0,0;2,0,0,0;1,0,0,0;$PublishFormatProperties::gifFileNameUntitled-1.gif&PublishFormatProperties::qtDefaultName1"PublishQTProperties::PausedAtStart0%PublishQTProperties::ControllerOption0PublishPNGProperties::MaxColors255,PublishHtmlProperties::UsingOwnAlternateFile0%PublishFormatProperties::rnwkFileNameUntitled-1.smil%PublishFormatProperties::projectorWin0%PublishFormatProperties::defaultNames1 CColorDef3PfP0PHP`Px333(3f<03CH3F`3Hxf0f30ff(0f5Hf<`f@x3330333xf3d03]H3Z`3Xx3333303f3PPH33Px`33Px33Pf30f33PHff3(PHf3<x`f3Cxf3Ffff`f03f0ffx0fkHfd`f`x3f033fPH3ffxPH3fdx`3f]x3fZff0f3fPHfff`ffP0xffPxffPH3HfHxH̙n`hx3H33x`3fx`3xx`3̙kx3dfHf3x`ff0xfx0xf̙dxf]`3`f``x`px3`33x3fx3x3xx3nf`f3xffxfxfxxfkx3xfxxxxx3x333f333xfxf3fffffxxH3 HfH(H2`8x`3 `f`̙`(`0xx3xfxx x(xPx3H33x`f3x`3(x`35x3<3`33xf3 x̙3x3(x323x33f3 333(xfH3fx`ff0xf(0xf<xfCf`3fxffx̙fxf(xf5fx3ffff ff((xH3x`f0x̙PPP`3xfx̙P̙(P<x3f̙(xx`3xfxPxPd`3xfx̙PPx3f(xx3fxx3f̙xx3ff`zf*]"PublishQTProperties::QTSndSettingsCQTAudioSettingsh<?xml version="1.0" encoding="UTF-16" standalone="no" ?> <mobileSettings> <contentType id="standalonePlayer" name="Standalone Player"/> <testDevices/> </mobileSettings>