Hello everyone,

This is my first message, and before I begin, I would like to thank the creator(s) of this mailing list.

I have begun working with AS3 and I am getting comfortalble with the basics. I can put my MCs on the stage through actionscript, designate coordinates/placement of MCs, and apply copy motions from the timeline. so i am able to add event listeners and get the MCs to animate, play sounds, etc. I need help with a new class/method..im not sure what to refer it to as but i will explain. I attempted to copy motion a mask tween of a circle in the time line, only to find out that i am not able to. after research i have found that i can do this in actionscript and have found the following information about mask tween in AS


the following is my current code structure, and i would very much appreciate some guidance in this, as to where i should place the codes at to create a mask effect within a mc, i think...

plain english request :P....i want to animate the rays of the sun. i have a circle that has lines going away from it. so my idea is to create a code in actionscript, where it creates an animation of mask circle, twening from the first fame of animation, to the last frame and then stop. the circle mask is the same size as the sun. so i want to add an eventlistener to the sun movie clip that when mouseclick release, it will animate the shape tween of the circle mask an then stop when it reaches its final size. beginning size = 100,100, radius final size = 300,300, radius . can ayone help me get started on the basics of how to implement this? as i send this email out, i will continue to make attempts. thank you all for taking a look at this.

JohnGlendenning



SAMPLE CODES FROM ONLINE RESEARCH

import fl.transitions.*;
import fl.transitions.easing.*;

TransitionManager.start(img1_mc, {type:Iris, direction:Transition.IN, 
duration:2, easing:Strong.easeOut, startPoint:5, shape:Iris.CIRCLE});


// break in code, next snippet...\\



function createClip(radius:Number):MovieClip
{
        var clip:MovieClip=new MovieClip();
        clip.name='clip';
        clip.graphics.beginFill(0xFF0033,1);
        clip.graphics.drawCircle(300,300,radius);
        clip.graphics.endFill();
        return clip;
}
addChild(createClip(50));
trace(createClip(50).name);

// break in code... next snippet of an EXAMPLE i found 
online....flepstudio.org/forum/tutorials/551-masks-actionscript-3-0-a.html\\

package
{
        import flash.display.MovieClip;
        import flash.display.SimpleButton;
        import flash.geom.Point;
        import flash.utils.Timer;
        import flash.events.TimerEvent;
        import flash.events.Event;
        import flash.events.MouseEvent;
        
        public class Maschere extends MovieClip
        {
                private var points_array:Array;
                private var clips_array:Array;
                
                private var container_mc:MovieClip;
                
                private const w:int=5;
                private const h:int=5;
                private var ww:int;
                private var hh:int;
                private var arrS:int;
                
                private var timer:Timer;
                
                public function Maschere()
                {
                        init();
                        creaPunti();
                        disegnaMaschere();
                        listenerBottone();
                        iniziaTimer();
                }
                
                private function init():void
                {
                        stage.frameRate=31;
                        
                        points_array=new Array();
                        clips_array=new Array();
                        
                        container_mc=new MovieClip();
                        addChild(container_mc);
                        container_mc.x=pic_mc.x;
                        container_mc.y=pic_mc.y;
                        
                        ww=Math.floor(pic_mc.width/w);
                        hh=Math.floor(pic_mc.height/h);
                        
                        replay_btn.visible=false;
                }
                
                private function creaPunti():void
                {
                        for(var i:int=0;i < h;i++)
                        {
                                for(var j:int=0;j < w;j++)
                                {
                                        var point:Point=new Point(ww*j,hh*i);
                                        points_array.push(point);
                                }
                        }
                }
                
                private function disegnaMaschere():void
                {
                        for(var i:int=0;i < points_array.length;i++)
                        {
                                var clip:MovieClip=new MovieClip();
                                clip.graphics.beginFill(0xFF0000,1);
                                
clip.graphics.drawRect(points_array[i].x,points_array[i].y,ww,hh);
                                container_mc.addChild(clip);
                                clips_array.push(clip);
                                clip.scaleX=0;
                                clip.scaleY=0;
                        }
                        pic_mc.mask=container_mc;
                }
                
                private function listenerBottone():void
                {
                        
replay_btn.addEventListener(MouseEvent.MOUSE_DOWN,replay);
                }
                
                private function iniziaTimer():void
                {
                        timer=new Timer(100,clips_array.length);
                        
timer.addEventListener(TimerEvent.TIMER,attivaIntervallo);
                        
timer.addEventListener(TimerEvent.TIMER_COMPLETE,finito);
                        replay_btn.visible=false;
                        arrS=1;
                        timer.start();
                }
                
                private function replay(m:MouseEvent):void
                {
                        for(var i:int=0; i < clips_array.length;i++)
                        {
                                clips_array[i].x=0;
                                clips_array[i].y=0;
                                clips_array[i].scaleX=0;
                                clips_array[i].scaleY=0;
                                
clips_array[i].removeEventListener(Event.ENTER_FRAME,effettoMaschera);
                        }
                        iniziaTimer();
                }
                
                private function attivaIntervallo(t:TimerEvent):void
                {
                        
clips_array[t.target.currentCount-1].addEventListener(Event.ENTER_FRAME,effettoMaschera);
                }
                
                private function effettoMaschera(e:Event):void
                {
                        var ds:Number=arrS-e.target.scaleX;
                        var aa:Number=ds*.2;
                        e.target.scaleX+=aa;
                        e.target.scaleY+=aa;
                        
                        if(Math.abs(ds)<=.03)
                        {
                                e.target.scaleX=e.target.scaleY=arrS;
                                
e.target.removeEventListener(Event.ENTER_FRAME,effettoMaschera);
                        }
                }
                
                private function finito(t:TimerEvent):void
                {
                        replay_btn.visible=true;
                }
        }
}



MY CODE SO FAR, NO ERRORS


// This is an actionscript file that is really awesome, // it animates all of the "notes" on the nav bar.
// currently trying to fix the intro animation of the green note...when you 
test the movie you will see the green note loop its animation, and the secod 
animation green note does not function.

package {

        import flash.display.MovieClip;
        import flash.events.*;
        import fl.motion.Animator;

        public class actionScriptV1 extends MovieClip {
                var note_bounce_xml:XML; //This creates that long xml file that 
has the information of the animation for the green note
                var note_bounce_animator:Animator;// This is the object that 
controls the animation, (the xml file)
                var note_bounce_xml2:XML; // This is another xml file for the 
yellow note
                var note_bounce_animator2:Animator;// This controls the 
animation of the yellow note
                var note_bounce_xml3:XML;
                var note_bounce_animator3:Animator;
                var note_bounce_xml4:XML;
                var note_bounce_animator4:Animator;
                var note_bounce_xml5:XML;
                var note_bounce_animator5:Animator;
                var note_bounce_xml6:XML;
                var note_bounce_animator6:Animator;
                var logoFH_slidein_xml:XML;
                var logoFH_slidein_animator:Animator;
                //....this section is for the into animation of the notes 
coming on stage, cheanges were made from the
                var intro_note_bounce_xml:XML;
                var intro_note_bounce_animator:Animator;
                var intro_note_bounce_xml2:XML;
                var intro_note_bounce_animator2:Animator;
                var intro_note_bounce_xml3:XML;
                var intro_note_bounce_animator3:Animator;
                var intro_note_bounce_xml4:XML;
                var intro_note_bounce_animator4:Animator;
                var intro_note_bounce_xml5:XML;
                var intro_note_bounce_animator5:Animator;
                var intro_note_bounce_xml6:XML;
                var intro_note_bounce_animator6:Animator;
                
                public function actionScriptV1() {
                        var logoFH:logoFH_class = new logoFH_class();
                        addChild(logoFH);

                        var gNote:gNote_class = new gNote_class();
                        addChild(gNote);
                        
                        gNote.addEventListener(MouseEvent.CLICK, animateG); // This is 
new, this checks if the green note is going to be clicked. If it gets clicked, it calls 
the function called "animateG" which is created on line 120

                        var yNote:yNote_class = new yNote_class();
                        addChild(yNote);
                        
                        yNote.addEventListener(MouseEvent.CLICK, animateY); // 
Same as the green event listener, except is calls the animateY function

                        var rNote:rNote_class = new rNote_class();
                        addChild(rNote);
                        
                        rNote.addEventListener(MouseEvent.CLICK, animateR);
                        
                        var bNote:bNote_class = new bNote_class();
                        addChild(bNote);

                        bNote.addEventListener(MouseEvent.CLICK, animateB);
                        
                        var oNote:oNote_class = new oNote_class();
                        addChild(oNote);

                        oNote.addEventListener(MouseEvent.CLICK, animateO);
                        
                        var pNote:pNote_class = new pNote_class();
                        addChild(pNote);

                        pNote.addEventListener(MouseEvent.CLICK, animateP);
                        
                        logoFH.x = 775;
                        logoFH.y = 0;

                        gNote.x = 400;
                        gNote.y = -05;

                        yNote.x = 450;
                        yNote.y = -05;

                        rNote.x = 500;
                        rNote.y = -05;

                        bNote.x = 550;
                        bNote.y = -05;

                        oNote.x = 600;
                        oNote.y = -05;

                        pNote.x = 650;
                        pNote.y = -05;
                        
                        //testing logoFH_slidein_animation "instance name of 
actionscript copied earlier, which is the following code...\\
                        
                        
                        logoFH_slidein_xml = <Motion duration="30" xmlns="fl.motion.*" 
xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
                        <source>
                        <Source frameRate="30" x="1079.25" y="73.35" scaleX="1" scaleY="1" rotation="0" 
elementType="movie clip" symbolName="navBar_MovieClips/logoFH_mc" class="logoFH_class">
                        <dimensions>
                        <geom:Rectangle left="29.45" top="1" width="559" 
height="146"/>
                        </dimensions>
                        <transformationPoint>
                        <geom:Point x="0.5" y="0.5"/>
                        </transformationPoint>
                        </Source>
                        </source>

                        <Keyframe index="0" tweenSnap="true" tweenSync="true">
                        <tweens>
                        <SimpleEase ease="0"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="10" tweenSnap="true" tweenSync="true" x="-771.95" 
y="1">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="19" tweenSnap="true" tweenSync="true" 
x="-798.95">
                        <tweens>
                        <SimpleEase ease="0"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="28" x="-770.95"/>

                        <Keyframe index="29"/>
                        </Motion>;
                        logoFH_slidein_animator = new 
Animator(logoFH_slidein_xml, logoFH);
                        logoFH_slidein_animator.play();

                        //begin testing intro_note_bounce\\
                        
                        intro_note_bounce_xml = <Motion duration="27" xmlns="fl.motion.*" 
xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
                        <source>
                        <Source frameRate="30" x="400" y="-17" scaleX="1" scaleY="1" rotation="0" 
elementType="movie clip" symbolName="navBar_MovieClips/gNote_mc" class="gNote_class">
                        <dimensions>
                        <geom:Rectangle left="-20" top="-15" width="40" 
height="30"/>
                        </dimensions>
                        <transformationPoint>
                        <geom:Point x="0.5" y="0.5"/>
                        </transformationPoint>
                        </Source>
                        </source>

                        <Keyframe index="0" tweenSnap="true" tweenSync="true">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="9" y="152">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="14" y="158" scaleY="0.6">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="19" y="144.1" scaleY="0.988">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="26" y="107"/>
                        </Motion>;

                        intro_note_bounce_animator = new 
Animator(intro_note_bounce_xml, gNote);
                        intro_note_bounce_animator.play();
                        
                        intro_note_bounce_xml2 = <Motion duration="27" xmlns="fl.motion.*" 
xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
                        <source>
                        <Source frameRate="30" x="450" y="-17" scaleX="1" scaleY="1" rotation="0" 
elementType="movie clip" symbolName="navBar_MovieClips/yNote_mc" class="yNote_class">
                        <dimensions>
                        <geom:Rectangle left="-20" top="-15" width="40" 
height="30"/>
                        </dimensions>
                        <transformationPoint>
                        <geom:Point x="0.5" y="0.5"/>
                        </transformationPoint>
                        </Source>
                        </source>

                        <Keyframe index="0" tweenSnap="true" tweenSync="true">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="9" y="152">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="14" y="158" scaleY="0.6">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="19" y="144.1" scaleY="0.988">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="26" y="107"/>
                        </Motion>;

                        intro_note_bounce_animator2 = new 
Animator(intro_note_bounce_xml2, yNote);
                        intro_note_bounce_animator2.play();
                        
                        intro_note_bounce_xml3 = <Motion duration="27" xmlns="fl.motion.*" 
xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
                        <source>
                        <Source frameRate="30" x="500" y="-17" scaleX="1" scaleY="1" rotation="0" 
elementType="movie clip" symbolName="navBar_MovieClips/rNote_mc" class="rNote_class">
                        <dimensions>
                        <geom:Rectangle left="-20" top="-15" width="40" 
height="30"/>
                        </dimensions>
                        <transformationPoint>
                        <geom:Point x="0.5" y="0.5"/>
                        </transformationPoint>
                        </Source>
                        </source>

                        <Keyframe index="0" tweenSnap="true" tweenSync="true">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="9" y="152">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="14" y="158" scaleY="0.6">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="19" y="144.1" scaleY="0.988">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="26" y="107"/>
                        </Motion>;

                        intro_note_bounce_animator3 = new 
Animator(intro_note_bounce_xml3, rNote);
                        intro_note_bounce_animator3.play()
                        
                        intro_note_bounce_xml4 = <Motion duration="27" xmlns="fl.motion.*" 
xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
                        <source>
                        <Source frameRate="30" x="550" y="-17" scaleX="1" scaleY="1" rotation="0" 
elementType="movie clip" symbolName="navBar_MovieClips/bNote_mc" class="bNote_class">
                        <dimensions>
                        <geom:Rectangle left="-20" top="-15" width="40" 
height="30"/>
                        </dimensions>
                        <transformationPoint>
                        <geom:Point x="0.5" y="0.5"/>
                        </transformationPoint>
                        </Source>
                        </source>

                        <Keyframe index="0" tweenSnap="true" tweenSync="true">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="9" y="152">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="14" y="158" scaleY="0.6">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="19" y="144.1" scaleY="0.988">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="26" y="107"/>
                        </Motion>;

                        intro_note_bounce_animator4 = new 
Animator(intro_note_bounce_xml4, bNote);
                        intro_note_bounce_animator4.play();
                        
                        intro_note_bounce_xml5 = <Motion duration="27" xmlns="fl.motion.*" 
xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
                        <source>
                        <Source frameRate="30" x="600" y="-17" scaleX="1" scaleY="1" rotation="0" 
elementType="movie clip" symbolName="navBar_MovieClips/oNote_mc" class="oNote_class">
                        <dimensions>
                        <geom:Rectangle left="-20" top="-15" width="40" 
height="30"/>
                        </dimensions>
                        <transformationPoint>
                        <geom:Point x="0.5" y="0.5"/>
                        </transformationPoint>
                        </Source>
                        </source>

                        <Keyframe index="0" tweenSnap="true" tweenSync="true">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="9" y="152">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="14" y="158" scaleY="0.6">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="19" y="144.1" scaleY="0.988">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="26" y="107"/>
                        </Motion>;

                        intro_note_bounce_animator5 = new 
Animator(intro_note_bounce_xml5, oNote);
                        intro_note_bounce_animator5.play();
                        
                        intro_note_bounce_xml6 = <Motion duration="27" xmlns="fl.motion.*" 
xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
                        <source>
                        <Source frameRate="30" x="650" y="-17" scaleX="1" scaleY="1" rotation="0" 
elementType="movie clip" symbolName="navBar_MovieClips/pNote_mc" class="pNote_class">
                        <dimensions>
                        <geom:Rectangle left="-20" top="-15" width="40" 
height="30"/>
                        </dimensions>
                        <transformationPoint>
                        <geom:Point x="0.5" y="0.5"/>
                        </transformationPoint>
                        </Source>
                        </source>

                        <Keyframe index="0" tweenSnap="true" tweenSync="true">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="9" y="152">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="14" y="158" scaleY="0.6">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="19" y="144.1" scaleY="0.988">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>

                        <Keyframe index="26" y="107"/>
                        </Motion>;

                        intro_note_bounce_animator6 = new 
Animator(intro_note_bounce_xml6, pNote);
                        intro_note_bounce_animator6.play();
                        
                        //...end of code for the note intro animation\\

                        
                        
                        
                        //end testig for intro_note_bounce\\
                        
                        note_bounce_xml = <Motion duration="30" xmlns="fl.motion.*" 
xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
                        <source>
                        <Source frameRate="30" x="400" y="100" scaleX="1" scaleY="1" rotation="0" 
elementType="movie clip" symbolName="navBar_MovieClips/gNote_mc" class="gNote_class">
                        <dimensions>
                        <geom:Rectangle left="-20" top="-15" width="40" 
height="30"/>
                        </dimensions>
                        <transformationPoint>
                        <geom:Point x="0.5" y="0.5"/>
                        </transformationPoint>
                        </Source>
                        </source>
                        
                        <Keyframe index="0" tweenSnap="true" tweenSync="true">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>
                        
                        <Keyframe index="14" tweenSnap="true" tweenSync="true" 
y="35">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>
                        
                        <Keyframe index="29" y="0"/>
                        </Motion>;
                        note_bounce_animator = new Animator(note_bounce_xml, 
gNote);
                        
                        /////////////////////////This is a line that seperates 
the two animation xml files//////////////////////////////////////////////////
                        
                        note_bounce_xml2 = <Motion duration="30" xmlns="fl.motion.*" 
xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
                        <source>
                        <Source frameRate="30" x="450" y="100" scaleX="1" scaleY="1" rotation="0" 
elementType="movie clip" symbolName="navBar_MovieClips/yNote_mc" class="yNote_class">
                        <dimensions>
                        <geom:Rectangle left="-20" top="-15" width="40" 
height="30"/>
                        </dimensions>
                        <transformationPoint>
                        <geom:Point x="0.5" y="0.5"/>
                        </transformationPoint>
                        </Source>
                        </source>
                        
                        <Keyframe index="0" tweenSnap="true" tweenSync="true">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>
                        
                        <Keyframe index="14" tweenSnap="true" tweenSync="true" 
y="35">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>
                        
                        <Keyframe index="29" y="0"/>
                        </Motion>;
                        note_bounce_animator2 = new Animator(note_bounce_xml, 
yNote);
                        
                        note_bounce_xml3 = <Motion duration="30" xmlns="fl.motion.*" 
xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
                        <source>
                        <Source frameRate="30" x="500" y="100" scaleX="1" scaleY="1" rotation="0" 
elementType="movie clip" symbolName="navBar_MovieClips/rNote_mc" class="grote_class">
                        <dimensions>
                        <geom:Rectangle left="-20" top="-15" width="40" 
height="30"/>
                        </dimensions>
                        <transformationPoint>
                        <geom:Point x="0.5" y="0.5"/>
                        </transformationPoint>
                        </Source>
                        </source>
                        
                        <Keyframe index="0" tweenSnap="true" tweenSync="true">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>
                        
                        <Keyframe index="14" tweenSnap="true" tweenSync="true" 
y="35">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>
                        
                        <Keyframe index="29" y="0"/>
                        </Motion>;
                        note_bounce_animator3 = new Animator(note_bounce_xml, 
rNote);
                        
                        note_bounce_xml4 = <Motion duration="30" xmlns="fl.motion.*" 
xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
                        <source>
                        <Source frameRate="30" x="550" y="100" scaleX="1" scaleY="1" rotation="0" 
elementType="movie clip" symbolName="navBar_MovieClips/bNote_mc" class="bNote_class">
                        <dimensions>
                        <geom:Rectangle left="-20" top="-15" width="40" 
height="30"/>
                        </dimensions>
                        <transformationPoint>
                        <geom:Point x="0.5" y="0.5"/>
                        </transformationPoint>
                        </Source>
                        </source>
                        
                        <Keyframe index="0" tweenSnap="true" tweenSync="true">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>
                        
                        <Keyframe index="14" tweenSnap="true" tweenSync="true" 
y="35">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>
                        
                        <Keyframe index="29" y="0"/>
                        </Motion>;
                        note_bounce_animator4 = new Animator(note_bounce_xml, 
bNote);
                        
                        note_bounce_xml5 = <Motion duration="30" xmlns="fl.motion.*" 
xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
                        <source>
                        <Source frameRate="30" x="600" y="100" scaleX="1" scaleY="1" rotation="0" 
elementType="movie clip" symbolName="navBar_MovieClips/oNote_mc" class="oNote_class">
                        <dimensions>
                        <geom:Rectangle left="-20" top="-15" width="40" 
height="30"/>
                        </dimensions>
                        <transformationPoint>
                        <geom:Point x="0.5" y="0.5"/>
                        </transformationPoint>
                        </Source>
                        </source>
                        
                        <Keyframe index="0" tweenSnap="true" tweenSync="true">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>
                        
                        <Keyframe index="14" tweenSnap="true" tweenSync="true" 
y="35">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>
                        
                        <Keyframe index="29" y="0"/>
                        </Motion>;
                        note_bounce_animator5 = new Animator(note_bounce_xml, 
oNote);
                        
                        note_bounce_xml6 = <Motion duration="30" xmlns="fl.motion.*" 
xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
                        <source>
                        <Source frameRate="30" x="650" y="100" scaleX="1" scaleY="1" rotation="0" 
elementType="movie clip" symbolName="navBar_MovieClips/pNote_mc" class="pNote_class">
                        <dimensions>
                        <geom:Rectangle left="-20" top="-15" width="40" 
height="30"/>
                        </dimensions>
                        <transformationPoint>
                        <geom:Point x="0.5" y="0.5"/>
                        </transformationPoint>
                        </Source>
                        </source>
                        
                        <Keyframe index="0" tweenSnap="true" tweenSync="true">
                        <tweens>
                        <SimpleEase ease="-1"/>
                        </tweens>
                        </Keyframe>
                        
                        <Keyframe index="14" tweenSnap="true" tweenSync="true" 
y="35">
                        <tweens>
                        <SimpleEase ease="1"/>
                        </tweens>
                        </Keyframe>
                        
                        <Keyframe index="29" y="0"/>
                        </Motion>;
                        note_bounce_animator6 = new Animator(note_bounce_xml, 
pNote);
                        
                }
                
                public function animateG(e:Event) { //This is a function called 
animateG. In the parenthesis I typed e:Event, because it checked the mouce click
                        note_bounce_animator.play();// This plays the animation 
for the green note
                }
                
                public function animateY(e:Event) { //This is a function called 
animateG. In the parenthesis I typed e:Event, because it checked the mouce click
                        note_bounce_animator2.play();// This plays the 
animation for the green note
                }
                
                public function animateR(e:Event) { //This is a function called 
animateG. In the parenthesis I typed e:Event, because it checked the mouce click
                        note_bounce_animator3.play();
                }
                
                public function animateB(e:Event) { //This is a function called 
animateG. In the parenthesis I typed e:Event, because it checked the mouce click
                        note_bounce_animator4.play();
                }
                
                public function animateO(e:Event) { //This is a function called 
animateG. In the parenthesis I typed e:Event, because it checked the mouce click
                        note_bounce_animator5.play();
                }
                
                public function animateP(e:Event) { //This is a function called 
animateG. In the parenthesis I typed e:Event, because it checked the mouce click
                        note_bounce_animator6.play();
                        
                }
                
        }
        
}


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to