topical media & game development

talk show tell print

student-mma-16-Logo.mx

student-mma-16-Logo.mx [swf] flex


  <?xml version="1.0" encoding="utf-8"?>
  <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="400" xmlns:a="*" creationComplete="init()" xmlns:display="flash.display.*">
          
          <mx:Script>
                  <![CDATA[
                          import mx.controls.Alert;
                          import flash.events.Event;
                          private var parts:Array = new Array();
                          
                          private function init():void {
                                  var elt:Array = this.getChildren();
                                  for(var i:int = 0; i < elt.length; i++)
                                          if(elt[i].name.substr(0, 4) == "part")
                                                  parts.push(elt[i]);
                                  
                                  var circle:Sprite = new Sprite();
                                  circle.graphics.beginFill(0xFFFFFF, 0);
                                  circle.graphics.drawCircle(188, 189, 185);
                                  circle.addEventListener(MouseEvent.MOUSE_OVER, moveToCenter);
                                  circle.addEventListener(MouseEvent.MOUSE_OUT, moveBack);
                                  circle.addEventListener(MouseEvent.CLICK, onClick);
                                  circle.buttonMode = true;
                                  circle.useHandCursor = true;
                                  rawChildren.addChild(circle);
                          }
                          
                          private function moveToCenter(e:MouseEvent):void {
                                  for(var i:int = 0; i < parts.length; i++)
                                          parts[i].moveToCenter();
                          }
                          
                          private function moveBack(e:MouseEvent):void {
                                  for(var i:int = 0; i < parts.length; i++)
                                          parts[i].moveBack();
                          }
                          
                          private function onClick(e:MouseEvent):void {
                                  navigateToURL(new URLRequest("./"), "_self");
                          }
                          
                  ]]>
          </mx:Script>
          
          <mx:Image source="student-mma-16-img-logobg.png" alpha="0.5"/>
          
          <a:student_mma_16_Logo_LogoPart x="-8" y="-15" source="student-mma-16-img-logo3.png" id="part3"/>
          <a:student_mma_16_Logo_LogoPart x="8" y="-14" source="student-mma-16-img-logo4.png" id="part4"/>
          <a:student_mma_16_Logo_LogoPart x="5" y="-10" source="student-mma-16-img-logo5.png" id="part5"/>
          
          <a:student_mma_16_Logo_LogoPart x="10" y="-12" source="student-mma-16-img-logo6.png" id="part6"/>
          <a:student_mma_16_Logo_LogoPart x="14" y="-7" source="student-mma-16-img-logo7.png" id="part7"/>
          <a:student_mma_16_Logo_LogoPart x="-13" y="-12" source="student-mma-16-img-logo8.png" id="part8"/>
          <a:student_mma_16_Logo_LogoPart x="-15" y="-6" source="student-mma-16-img-logo9.png" id="part9"/>
          <a:student_mma_16_Logo_LogoPart x="-17" y="0" source="student-mma-16-img-logo10.png" id="part10"/>
          <a:student_mma_16_Logo_LogoPart x="-10" y="-1" source="student-mma-16-img-logo11.png" id="part11"/>
          <a:student_mma_16_Logo_LogoPart x="10" y="-3" source="student-mma-16-img-logo12.png" id="part12"/>
          <a:student_mma_16_Logo_LogoPart x="17" y="0" source="student-mma-16-img-logo13.png" id="part13"/>
          <a:student_mma_16_Logo_LogoPart x="-7" y="8" source="student-mma-16-img-logo14.png" id="part14"/>
          <a:student_mma_16_Logo_LogoPart x="10" y="15" source="student-mma-16-img-logo15.png" id="part15"/>
          <a:student_mma_16_Logo_LogoPart x="16" y="12" source="student-mma-16-img-logo16.png" id="part16"/>
          <a:student_mma_16_Logo_LogoPart x="17" y="0" source="student-mma-16-img-logo17.png" id="part17"/>
          <a:student_mma_16_Logo_LogoPart x="22" y="9" source="student-mma-16-img-logo18.png" id="part18"/>
          <a:student_mma_16_Logo_LogoPart x="-10" y="17" source="student-mma-16-img-logo19.png" id="part19"/>
          <a:student_mma_16_Logo_LogoPart x="11" y="23" source="student-mma-16-img-logo20.png" id="part20"/>
          
          
          
  </mx:Canvas>
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.