Transform on movie clips

I am loading a bunch of movie clips dynamically. Right now,
the movie clips undergo a color transform for the onRelease()
action. Now, I want to be able to transform a group of movie clips
on the onRelease() action of a single movieclip.
What would be the recommendation to accomplish this task? I'm
sure there are many ways to do it, but I don't know where to start.
I tried to put the movie clips into an array to then access the
movie clips. I can get the properties of the movieclips that I want
to transform, but I cannot transform them.

This is the code that I use:
for (var j:Number = 0; j<quad.length; j++) {
var bu_mc:MovieClip = quad[j];
bu_mc.select();
trace("xPos: "+bu_mc._x+" building: "+bu_mc._name);
The correct _x and _name are displayed, but nothing happens
to the movieclip.
select() is a function that I've defined. It works when
called by the movieclip itself, but is not working when called by a
different movieclip.

Similar Messages

  • Using colorTrans:ColorTransform on more than one movie clip

    Hi I am very new to Flash and action script so please bare with me...
    I would like to be able to change the color of more than one movie clip in the same layer in the same frame. Basically I have place two different movie clips with defined instances,i.e. body and shoulder onto the canvas in one frame on the timeline.
    I have created three different buttons (red_btn, blue_btn, and yellow_btn) to use to change the color of say the body or shoulder. I would use red and blue to change the body and say yellow and green to change the shoulders. These are also on the same layer and same frame on the timeline as the movie clips.
    The problem I am having is how would I declare the two movies or variables to change independantly? Would I need to place one movie clip on one layer and then place the other on a different layer so that when I press the button I want i.e. the red button, it only changes the body and not the shoulders.
    Here is my actionscript that I am using to change the color of the clip(s)
    import flash.geom.ColorTransform;
    import flash.geom.Transform;
    var colorTrans:ColorTransform = new ColorTransform();
    var trans:Transform = new Transform(body);
    trans.colorTransform = colorTrans;
    blue_btn.onRelease = function() {
        colorTrans.rgb = 0x0000FF; // blue
        trans.colorTransform = colorTrans;
    red_btn.onRelease = function() {
        colorTrans.rgb = 0xFF0000; // blue
        trans.colorTransform = colorTrans;
    yellow_btn.onRelease = function () {
    colorTrans.rgb = 0xFFFF00; //yellow
    trans.colorTransform = colorTrans;
    body here is my declared variable wich is the body of a shirt that is one movie clip. When you place both clips on the timeline ontop of each other, you basically get a shirt with different color shoulders and body.
    I need some help to know if this is possible first of all, and then what would be the best way to delcare the variables in one actionsript.
    Thanks and I am sorry, I just never learned much when it came to flash. Thanks for any patience and help anyone is willing to give me.

    every movieclip has a transform.colorTransform property that you can use to assign a color transform (with any rgb property).  so, for example:
    import flash.geom.ColorTransform;
    import flash.geom.Transform;
    var colorTrans:ColorTransform = new ColorTransform();
    bluebody_btn.onRelease = function() {
        colorTrans.rgb = 0x0000FF; // blue
      yourbodymovieclip.tranform.colorTransform=colorTrans;
    blueshoulders_btn.onRelease = function() {
        colorTrans.rgb = 0xFF0000; // blue
    yourshouldersmovieclip.transform.colorTransform = colorTrans;
    yellowbody_btn.onRelease = function () {
    colorTrans.rgb = 0xFFFF00; //yellow
    yourbodymovieclip= colorTrans;
    etc

  • Problem attaching external .jpgs to movie clips

    Hi There,
    I am not able to attach a file (.jpg) outside of flash to a
    movieClip without it changing the scale of the image. Stepping
    through with the debugger, its clear the image loads correctly til
    it is applied to the movie clip, I assume with the attachBitmap
    function. It scales it up a little more than 50% and I can't figure
    out where that scale is coming from. It appears to scale up from
    the upper left corner. We have checked to make sure all the
    movieclips within our flash file are the exact same size as the
    image files (150 X 150). Please see code example. Everything is
    fine except for this. We tried using the matrix transformation to
    down size the images but the quality was not acceptable even with
    using smoothing and pixel snapping.
    So, the basic question being, how do we use attachBitmap and
    have it preserve the original size? Any ideas for how to get this
    to work is greatly appreciated...
    thanks,
    Laura

    well I'm afraid there are a few things that are not quite
    right with the method here - however, the real problem is most
    likely that the original image resolution is higher than 72 dpi -
    it must be set at standard screen res or Flash will scale it up
    uniformly to work at 72.
    I think that you may have more success with something more
    like this:

  • Best method for adjusting a movie clips brightness?

    Can someone share their method for adjusting the brightness of a Movie Clip?  With code of course : )
    thanks!

    under AS3 you can do this using the 'brightness' property of the Color class, as in:
    import fl.motion.Color;
    var color = new Color();
    color.brightness = 0.5;
    myMC.transform.colorTransform = color;
    (ps. the range is from -1.0 to 1.0 negative being 'darken', positve being 'lighten')

  • Is it possible to stop a tween in a movie clip

    Hello Kglad and other forum expert!
    I have a movie clip (really just an image converted to a
    movie clip).
    I a "zoom" effect set on two layers - on for the zoom mask,
    and the other for the base image.
    I just use the modify/transform in some keyframes to have the
    image motion tween from normal size to a larger size.
    The tween (aka zoom) is shown through the mask layer.
    I did not create the motion tween using actionscript, but in
    the timeline between 2 keyframes.
    Is there a way I can stop the tween when the movie plays ( by
    clicking a "pause" button).
    Thanks for a great info resource,
    eholz1

    you can use the stop() method of movieclips to stop the
    timeline of the tweening movieclip. you can use the play() method
    to continue to tweening.

  • IK Bone Tool and Movie clips/tranform bug?

    In Flash, when you rotate a movieclip in the IDE, then
    release, the movieclip will often (80% of the time) lose .1-.2% of
    its scale. You can see the numbers changing in the transform
    window. It will continue to decrease the more you rotate/release,
    gradually shrinking.
    For an IK armature (using the bone tool), which is pretty
    much all about rotations, this is a major issue. A simple animation
    of a human character waving can bring their forearm scale down from
    100% to 92% by the end.
    Aside from being visually noticeable (my arm is shrinking!)
    the Armature itself seems to react badly, losing joint connections,
    randomly displacing movieclips, and generally being unpredictable.
    I can't tell to what extent the Armature bugginess is directly
    caused by the gradual scale-creep -- but it's certainly not
    helping.
    The Armature in the Bone Tool is uneditable- editing the
    position of a bone relative to another bone causes the other
    movieclips in the skeleton to start inching in random directions.
    Any suggestions? Any help for either the movieclip scaling or
    Bone Tool problems would be appreciated.
    Thanks!

    Unfortunately, I couldn't make Googolhertz's solution work with what I already put together.  It wouldn't allow me to swap between authortime and runtime due to the presence of a graphic symbol, so I can't tell if swapping between the two modes has anything to do with the fix.  However, after applying the aforementioned changes in the preferences menu of Flash, I rebuilt the armature from scratch. The bug seems to be taken care of.
    I would venture to guess that using any graphic symbols or movie clips from a file prior to changing your preferences in an armature will still have the bug.  It is only after they are converted/updated into a graphic symbol or movie clip after the preference settings change that the bug went away for me.  IE Opening an old fla that was created before changing the settings and making an armature from those symbols would still have the bug, despite the preference settings change.  However, opening the same file, but converting the pieces into graphic symbols or movie clips after changing the settings wouldn't have the bug.  Thus, it seems that applying the change will not retroactively apply itself to current assets in a project, but only assets that are created after the preference settings change.

  • Movie Clip tinting

    I am trying to change the tint of a movie clip using
    actionScript with the following command
    myMovieClip.tintColor: #123456;
    I get this error: must be a simple identifier.
    Suggestions?

    import fl.motion.Color;
    import flash.geom.ColorTransform;
    var ct:Color = new Color();
    ct.setTint(0xFF0000, 0.5);
    mc.transform.colorTransform = ct;

  • Missing movie clip

    Hi.  I have six movie clips positioned across the stage and a following row of six movie clips below it. All of them move up the stage and are activated with a seperate key press and it works ok first time.  The following times going up the stage, the fith and sixth movie clips are not visible on the first row, but are on the second row.  Why and what can I do to fix it?  The following code is what I am using for each clip - just repeated and named accordingly.       
    CODE:  addEventListener(Event.ENTER_FRAME, leftbubbleMove);
    function leftbubbleMove(e:Event):void {   
        if (leftbubble_mc.y > - 150) {
            trace(leftbubble_mc.y);
            leftbubble_mc.y -=2;
        } else {
            leftbubble_mc.y = 650
            leftbubble_mc.gotoAndStop(1);       
            //leftbubble has reached the top
            //trace("leftbubble has burst");
            //leftbubble_mc.gotoAndPlay(2);
            //leftbubble_mc.y < 50;
        //code to change the color of a movieClip
        var myColor:ColorTransform = leftbubble_mc.transform.colorTransform;
        myColor.color = 0x00FFFF;
        //detect when bubble has entered the target zone
        if (leftbubble_mc.y < 100 && leftbubble_mc.y > 50) {
            //code in here changes the left bubble when it
            //enters the target zone.
            //change back to original when gone past target zone.
            trace("color change bubble");
            leftbubble_mc.transform.colorTransform = myColor;
            //leftbubble_mc.color = 0x00FFFF;
        } else {
            myColor.color = 0xFFFF99
            leftbubble_mc.transform.colorTransform = myColor;
        //detect when bubble has left the target zone   
    addEventListener(Event.ENTER_FRAME, leftbubbleaMove);
    function leftbubbleaMove(e:Event):void {   
        if (leftbubblea_mc.y > - 150) {
            trace(leftbubblea_mc.y);
            leftbubblea_mc.y -=2;
        } else {
            leftbubblea_mc.y = 650
            leftbubblea_mc.gotoAndStop(1);       
            //leftbubblea has reached the top
            //trace("leftbubblea has burst");
            //leftbubblea_mc.gotoAndPlay(2);
            //leftbubblea_mc.y < 50;
        //code to change the color of a movieClip
        var myColor:ColorTransform = leftbubblea_mc.transform.colorTransform;
        myColor.color = 0x00FFFF;
        //detect when bubble has entered the target zone
        if (leftbubblea_mc.y < 100 && leftbubblea_mc.y > 50) {
            //code in here changes the leftbubblea when it
            //enters the target zone.
            //change back to original when gone past target zone.
            trace("color change bubble");
            leftbubblea_mc.transform.colorTransform = myColor;
            //leftbubblea_mc.color = 0x00FFFF;
        } else {
            myColor.color = 0xFFFF99
            leftbubblea_mc.transform.colorTransform = myColor;
        //detect when bubble has left the target zone   
    AND ALSO
    stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler );
    function keyDownHandler(e:KeyboardEvent):void {
            if (e.keyCode == "Q".charCodeAt()) {
            trace("Q has been pressed");
        //place if to limit region of screen in which bubble can be popped here
        //removeChild(leftbubble_mc)
            if (leftbubble_mc.y < 100 && leftbubble_mc.y > 70)  {
            trace("leftbubble has been burst"); 
            leftbubble_mc.gotoAndPlay(2); 
            if (e.keyCode == "Q".charCodeAt()) {
            trace("Q has been pressed");
        //place if to limit region of screen in which bubble can be popped here
        //removeChild(leftbubble_mc)
            if (leftbubblea_mc.y < 100 && leftbubblea_mc.y > 70)  {
            trace("leftbubblea has been burst");
            leftbubblea_mc.gotoAndPlay(2);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler ); 
            if (e.keyCode == "G".charCodeAt()) {
            trace("G has been pressed");
        //place if to limit region of screen in which bubble can be popped here
        //removeChild(left1bubble_mc)
            if (left1bubble_mc.y < 100 && left1bubble_mc.y > 70)  {
            trace("left1bubble has been burst");
            left1bubble_mc.gotoAndPlay(2);

    Please ignore this question -  I had
    code typing errors.  Got it working.

  • The .blueMultiplier (movie clip color property) does not take new value..?

    It seems I can not assign a new value to the .blueMultiplier (a movie clip color property) using AS3 ????!!!
    I have a basic movie clip 'mymc' in my scene, and this AS3 code:
    trace (mymci.transform.colorTransform.blueMultiplier);
    mymc.transform.colorTransform.blueMultiplier = 0;
    trace (mymc.transform.colorTransform.blueMultiplier);
    Values that are returned:
    1
    1
    What am I missing?
    Thanks.

    you can't assign transform/colorTransform properties directly.  you update a transform/colorTransform instance and assign your object's transform/colorTransofrm instance to be the updated transform/colorTransform instance:
    var ct:ColorTransform = mymc.transform.colorTransform;
    ct.blueMultiplier = 0;
    mymc.transform.colorTransform = ct;

  • Moving Movie Clips with Arrow keys

    How do i make it so when i click the left arrow key, it will
    change the movie clip to make it turn around?

    Yes, that's what the code I gave you is intended to do....
    you replace that code with whatever action you need to take to turn
    your movie around.
    I have no idea what your movieclip is doing, but I'm guessing
    by your response that if it was an arrow pointing left to right
    (just an example), you want it to be pointing right to left when
    the left arrow is pressed. If you want an immediate turn around,
    then the simplest way to do that is to have another frame
    containing the movieclip that it moves to where it faces the other
    direction--and to have it appear turned around, from the toolbar
    you select Modify -> Transform -> Flip Horizontal.
    So the movieclip would live inside another movieclip that has
    two frames with stop()'s for each frame. In the first frame you
    would have the subclip facing left to right, and in the second you
    would have it facing right to left. If we call that 2-framed
    movieclip "walker", the code I provided before would
    become...

  • How to play the main timeline after a movie clip is finished playing.

    Ok so here is the problem, I have the main time line with three layers: My actions layer, a music layer, and the movie clip layer.
    The movie clip is an actionscript movie which calls images from an external XML file and shows them as a slideshow. What i need to do is after the last image plays, stop the movie and move the main timeline to the next scene of the main movie. Everything logical in my brain is not working, and it may be that I have been staring at this project for too long but for the life of me i can't make this work.
    Any help or input would be greatly appreciated!
    Thanks in advance.
    Meghan

    better yet, here is the whole code. With your suggestion entered...
    import flash.display.BitmapData;
    import gs.*;
    import gs.easing.*;
    import gs.plugins.*;
    TweenPlugin.activate([BlurFilterPlugin]);
    OverwriteManager.init();
    var xml:XML = new XML();
    xml.ignoreWhite = true;
    _root.xmlPath == undefined ? xml.load("jake.xml") : xml.load(_root.xmlPath);
    //when xml is loaded
    xml.onLoad = function(succes:Boolean) {
        if (succes) {
            //position the slideshow. remember size.
            __width = Number(xml.firstChild.attributes.width);
            __height = Number(xml.firstChild.attributes.height);
            mcMask._width = mcBlack._width=mcHyper._width=__width;
            mcMask._height = mcBlack._height=mcHyper._height=__height;
            //preloader
            mcPreloader._x = __width/2;
            mcPreloader._y = __height/2;
            (new Color(mcPreloader).setRGB(Number(xml.firstChild.attributes.preloaderColor)));
            //buttons
            var buttonLoader:MovieClipLoader = new MovieClipLoader();
            var buttonListener:Object = new Object();
            buttonListener.onLoadInit = function(cButton:MovieClip) {
                if (cButton._parent == btnNext) {
                    cButton._parent._x = __width-cButton._width;
                } else if (cButton._parent == btnPrev) {
                    cButton._parent._x = 0;
                } else {
                    cButton._parent._x = (__width-cButton._width)/2;
                cButton._parent._y = (__height-cButton._height)/2;
            buttonLoader.addListener(buttonListener);
            buttonLoader.loadClip(xml.firstChild.attributes.prevButton,btnPrev.holder);
            buttonLoader.loadClip(xml.firstChild.attributes.nextButton,btnNext.holder);
            buttonLoader.loadClip(xml.firstChild.attributes.playButton,btnPlay.holder);
            buttonLoader.loadClip(xml.firstChild.attributes.pauseButton,btnPause.holder);
            xml.firstChild.attributes.slideshowOn == "true" ? [_slideshow=true, btnPlay._visible=false] : [_slideshow=false, btnPause._visible=false];
            for (var i:Number = 0; i<xml.firstChild.childNodes.length; i++) {
                //create empty movieclip for each picture. create mask movieclip for each picture. save transition and ken burns settings for each picture. save other properties for each picture.
                mcTemp.createEmptyMovieClip("mcPhoto"+i,mcTemp.getNextHighestDepth());
                mcHolder.createEmptyMovieClip("mcPhoto"+i,mcHolder.getNextHighestDepth());
                mcHolder["mcPhoto"+i].createEmptyMovieClip("photo",mcHolder["mcPhoto"+i].getNextHighestDe pth());
                //attach text clip and set it up
                mcHolder.attachMovie("square2","mcBack",mcHolder.getNextHighestDepth());
                mcText.attachMovie("text","text"+i,mcText.getNextHighestDepth());
                mcText["text"+i].mcText._alpha = mcBack._alpha=0;
                mcBack._width = mcText["text"+i].mcText._width=__width;
                mcText["text"+i].mcText.autoSize = true;
                mcBack._height = 0;
                mcBack._y = __height;
                (new Color(mcBack).setRGB(Number(xml.firstChild.attributes.textBackColor)));
                mcHolder["mcPhoto"+i].transition = Number(xml.firstChild.childNodes[i].attributes.transition);
                var burns:Array = String(xml.firstChild.childNodes[i].attributes.kenBurns).split(";");
                mcHolder["mcPhoto"+i].burns = burns;
                mcHolder["mcPhoto"+i].time = Number(xml.firstChild.childNodes[i].attributes.time);
                mcHolder["mcPhoto"+i].src = String(xml.firstChild.childNodes[i].attributes.src);
                mcHolder["mcPhoto"+i].txt = String(xml.firstChild.childNodes[i].firstChild.nodeValue);
                mcHolder["mcPhoto"+i].url = String(xml.firstChild.childNodes[i].attributes.url);
                mcHolder["mcPhoto"+i].target = String(xml.firstChild.childNodes[i].attributes.target);
                //handle loading process. create loader objects. start "intelligent loading". set methods and actions for new newly loaded pictures.
                var photoLoader:MovieClipLoader = new MovieClipLoader();
                var photoListener:Object = new Object();
                photoListener.onLoadInit = function(cPhoto:MovieClip) {
                    //transform image to bitmap
                    cPhoto._visible = false;
                    var tempBitmap:BitmapData = new BitmapData(cPhoto._width, cPhoto._height);
                    tempBitmap.draw(cPhoto);
                    var cPhoto2:Object = mcHolder["mcPhoto"+_loaded].photo;
                    cPhoto2.attachBitmap(tempBitmap,1,"auto",true);
                    photoLoader.unloadClip(cPhoto);
                    removeMovieClip(cPhoto);
                    cPhoto2._parent._visible = false;
                    //remember original size
                    cPhoto2._parent.width2 = cPhoto2._parent._width;
                    cPhoto2._parent.height2 = cPhoto2._parent._height;
                    cPhoto2._alpha = 0;
                    _loaded++;
                    cPhoto2._parent.loaded = true;
                    if (_loaded<xml.firstChild.childNodes.length) {
                        //load next picture
                        photoLoader.loadClip(mcHolder["mcPhoto"+_loaded].src,mcTemp["mcPhoto"+_loaded]);
                    if (_loaded == _index+1) {
                        //show this picture
                        showPicture(cPhoto2._parent);
                photoLoader.addListener(photoListener);
            photoLoader.loadClip(mcHolder.mcPhoto0.src,mcTemp.mcPhoto0);
    //function that changes to the next photo(slideshow feature)
    function nextPhoto() {
        _index++;
        if (_index == xml.firstChild.childNodes.length) {
        //if picture is loaded, just show it. if not, wait until it loads                                                                           
        if (mcHolder["mcPhoto"+_index].loaded) {
            showPicture(mcHolder["mcPhoto"+_index]);
        } else {
            TweenLite.to(mcPreloader,.5,{_alpha:0});
            TweenLite.to(mcBlack,.5,{_alpha:100,onComplete:completeF});
    function completeF(){
    _root.gotoAndPlay("frame1_scene2");
    //function that changes to the previous photo
    function prevPhoto() {
        _index--;
        if (_index == -1) {
            _index = xml.firstChild.childNodes.length-1;
        //if picture is loaded, just show it. if not, wait until it loads                                                                           
        if (mcHolder["mcPhoto"+_index].loaded) {
            showPicture(mcHolder["mcPhoto"+_index]);
        } else {
            TweenLite.to(mcPreloader,.5,{_alpha:100});
            TweenLite.to(mcBlack,.5,{_alpha:80});
    //buttons - roll overs
    btnNext.onRollOver = btnPrev.onRollOver=btnPause.onRollOver=btnPlay.onRollOver=function () {
        TweenLite.to(this,1,{_alpha:70});
    btnNext.onRollOut = btnPrev.onRollOut=btnPause.onRollOut=btnPlay.onRollOut=btnNext.onReleaseOutside=btnPrev.o nReleaseOutside=btnPause.onReleaseOutside=btnPlay.onReleaseOutside=function () {
        TweenLite.to(this,1,{_alpha:100});
    //buttons - next
    btnNext.onPress = function() {
        if (!_transition) {
            clearTimeout(nextT);
            nextPhoto();
        } else {
            clearTimeout(nextT);
            nextT = setTimeout(nextPhoto, 500);
    //buttons - previous
    btnPrev.onPress = function() {
        if (!_transition) {
            clearTimeout(nextT);
            prevPhoto();
        } else {
            clearTimeout(nextT);
            nextT = setTimeout(prevPhoto, 500);
    //buttons - play
    btnPlay.onPress = function() {
        switchVisible(btnPlay);
        switchVisible(btnPause);
        _slideshow = true;
        if (!_transition) {
            clearTimeout(nextT);
            nextPhoto();
        } else {
            clearTimeout(nextT);
            nextT = setTimeout(nextPhoto, 500);
    //buttons - pause
    btnPause.onPress = function() {
        switchVisible(btnPlay);
        switchVisible(btnPause);
        _slideshow = false;
        clearTimeout(nextT);
    //function that animates text(html for each picture)
    function inText(cPhoto:Object) {
        if (cPhoto.txt != "undefined") {
            mcText["text"+_index].mcText.htmlText = cPhoto.txt;
            mcText["text"+_index].mcText._y = mcBack._y-mcText["text"+_index].mcText._height-4;
            TweenMax.to(mcText["text"+_index].mcText,0,{blurFilter:{blurX:15, blurY:15, quality:1}});
            TweenMax.to(mcText["text"+_index].mcText,Number(xml.firstChild.attributes.textSpeed),{blu rFilter:{blurX:0, blurY:0}, _alpha:100});
            TweenLite.to(mcBack,Number(xml.firstChild.attributes.textSpeed),{_alpha:Number(xml.firstC hild.attributes.textBackOpacity), _height:mcText["text"+_index].mcText._height+7});
        } else {
            mcText["text"+_index].mcText.htmlText = "";
            TweenLite.to(mcBack,Number(xml.firstChild.attributes.textSpeed),{_alpha:Number(xml.firstC hild.attributes.textBackOpacity), _height:0});
    function outText(cPhoto:Object) {
        TweenLite.to(mcBack,.5,{_alpha:0});
        TweenLite.to(mcText["text"+_index2].mcText,.5,{_alpha:0});
    //function that applies the ken burns effect to a specific photo
    function kenBurns(cPhoto:Object) {
        //reset size and position
        cPhoto.photo._xscale = cPhoto.photo._yscale=Number(cPhoto.burns[0]);
        cPhoto.photo._x = returnPosition(cPhoto.burns[2], cPhoto.photo._width, cPhoto.photo._height, mcMask._width, mcMask._height).__x;
        cPhoto.photo._y = returnPosition(cPhoto.burns[2], cPhoto.photo._width, cPhoto.photo._height, mcMask._width, mcMask._height).__y;
        //start effect
        TweenLite.to(cPhoto.photo,cPhoto.transition+Number(cPhoto.time)+1,{_xscale:Number(cPhoto. burns[1]), _yscale:Number(cPhoto.burns[1]), _x:returnPosition(cPhoto.burns[3], cPhoto.width2, cPhoto.height2, mcMask._width, mcMask._height).__x, _y:returnPosition(cPhoto.burns[3], cPhoto.width2, cPhoto.height2, mcMask._width, mcMask._height).__y, ease:Linear.easeNone});
    //function that shows a picture(transition function)
    function showPicture(cPhoto:Object) {
        for (var i:Number = 0; i<xml.firstChild.childNodes.length; i++) {
            if (i == _index || i == _index2) {
                mcHolder["mcPhoto"+i]._visible = true;
            }else{
                mcHolder["mcPhoto"+i]._visible = false;
        cPhoto.swapDepths(mcHolder.getNextHighestDepth());
        setTimeout(hideOld,cPhoto.transition*1000,mcHolder["mcPhoto"+_index2]);
        //text
        outText(mcHolder["mcPhoto"+_index2]);
        _index2 = _index;
        inText(cPhoto);
        kenBurns(cPhoto);
        TweenLite.to(mcPreloader,.5,{_alpha:0});
        TweenLite.to(mcBlack,.5,{_alpha:0});
        //transition variable
        _transition = true;
        clearTimeout(transT);
        transT = setTimeout(switchTransition, cPhoto.transition*1000);
        cPhoto.photo._alpha = 0;
        TweenLite.to(cPhoto.photo,cPhoto.transition,{_alpha:100});
        if (_slideshow) {
            //if slideshow is on
            nextT = setTimeout(nextPhoto, (cPhoto.transition+cPhoto.time)*1000);
    function hideOld(what:Object){
    //hyperlinks
    mcHyper.useHandCursor = true;
    mcHyper.onPress = function() {
        if (mcHolder["mcPhoto"+_index].url != "undefined") {
            getURL(mcHolder["mcPhoto"+_index].url, mcHolder["mcPhoto"+_index].target);
    //function that returns a number position from a given "compass position"(for the ken burns effect)
    function returnPosition(pos:String, __width:Number, __height:Number, __width2:Number, __height2:Number):Object {
        var returnObj:Object = new Object();
        switch (pos) {
            case "TL" :
                returnObj.__x = 0;
                returnObj.__y = 0;
                break;
            case "TC" :
                returnObj.__x = -(__width-__width2)/2;
                returnObj.__y = 0;
                break;
            case "TR" :
                returnObj.__x = -(__width-__width2);
                returnObj.__y = 0;
                break;
            case "ML" :
                returnObj.__x = 0;
                returnObj.__y = -(__height-__height2)/2;
                break;
            case "MC" :
                returnObj.__x = -(__width-__width2)/2;
                returnObj.__y = -(__height-__height2)/2;
                break;
            case "MR" :
                returnObj.__x = -(__width-__width2);
                returnObj.__y = -(__height-__height2)/2;
                break;
            case "BL" :
                returnObj.__x = 0;
                returnObj.__y = -(__height-__height2);
                break;
            case "BC" :
                returnObj.__x = -(__width-__width2)/2;
                returnObj.__y = -(__height-__height2);
                break;
            case "BR" :
                returnObj.__x = -(__width-__width2);
                returnObj.__y = -(__height-__height2);
                break;
        return returnObj;
    function switchTransition() {
        _transition == true ? _transition=false : _transition=true;
    function switchVisible(obj:Object) {
        obj._visible == true ? obj._visible=false : obj._visible=true;
    mcTemp._x = -10000;
    //mouse testing
    var mouse_dx:Number = _xmouse;
    var mouse_dy:Number = _ymouse;
    var mouseSpeed:Number = 1;
    function checkPosition(Void):Void {
        if (_xmouse<mouseSpeed || _xmouse>(Stage.width-mouseSpeed) || _ymouse<mouseSpeed || _ymouse>(Stage.height-mouseSpeed)) {
            //mouse outside - hide buttons
            TweenLite.to(btnPrev,.5,{_alpha:0});
            TweenLite.to(btnNext,.5,{_alpha:0});
            TweenLite.to(btnPlay,.5,{_alpha:0});
            TweenLite.to(btnPause,.5,{_alpha:0});
        } else {
            //mouse inside
            TweenLite.to(btnPrev,.5,{_alpha:100});
            TweenLite.to(btnNext,.5,{_alpha:100});
            TweenLite.to(btnPlay,.5,{_alpha:100});
            TweenLite.to(btnPause,.5,{_alpha:100});
    checkPosition(Void);
    var mouseListener:Object = new Object();
    mouseListener.onMouseMove = function():Void  {
        mouse_dx = Math.abs(mouse_dx-_xmouse);
        mouse_dy = Math.abs(mouse_dy-_ymouse);
        mouseSpeed = mouse_dx>mouse_dy ? mouse_dx : mouse_dy;
        mouseSpeed += 1;
        checkPosition(Void);
        mouse_dx = _xmouse;
        mouse_dy = _ymouse;
    Mouse.addListener(mouseListener);
    //global variables
    var this2:Object = this;
    var __width:Number;
    var __height:Number;
    var _index:Number = 0;
    var _index2:Number = -1;
    var _loaded:Number = 0;
    var nextT:Number;
    var transT:Number;
    var _slideshow:Boolean = true;
    var _transition:Boolean = false;
    Stage.scaleMode = "noScale";
    Stage.showMenu = false;
    Stage.align = "TL";

  • Moving movie clips with ActionScript

    I am trying to move four movie clips with actionscript in a
    circler motion with two buttons, one to rotate the mc’s to
    the left and one button to rotate the mc’s to the right. Here
    is a link to what I am trying to do;
    http://www.us.playstation.com/Lair/
    and it is undrer game features.

    Yes, that's what the code I gave you is intended to do....
    you replace that code with whatever action you need to take to turn
    your movie around.
    I have no idea what your movieclip is doing, but I'm guessing
    by your response that if it was an arrow pointing left to right
    (just an example), you want it to be pointing right to left when
    the left arrow is pressed. If you want an immediate turn around,
    then the simplest way to do that is to have another frame
    containing the movieclip that it moves to where it faces the other
    direction--and to have it appear turned around, from the toolbar
    you select Modify -> Transform -> Flip Horizontal.
    So the movieclip would live inside another movieclip that has
    two frames with stop()'s for each frame. In the first frame you
    would have the subclip facing left to right, and in the second you
    would have it facing right to left. If we call that 2-framed
    movieclip "walker", the code I provided before would
    become...

  • Quick question: what is the difference between graphic and movie clips?

    What is the difference between the two symbols: graphic and movie clips? They both contain frames..?

    movie clips can have
    instance names : so they can be controlled via actionscript
    filters applied : drop shadow, glow, blur, color adjust etc
    blend modes applied : difference, screen, lighten, darken, etc.
    3d transformations
    graphics:
    none of the above
    the only real practical reason to use a graphic is the reason jdehaan stated. a graphics internal animation can be scrubbed via the main timeline. graphics will only advance when the main timeline advances. when the main timeline stops.. graphics stops.
    movieclips on the otherhand are said to run independent of the main timeline. so you can have a MAIN timeline with one frame only and the movieclip's interior animation will run constantly.
    also via the properties panel you can tell a graphic to stay stuck on a certain frame or loop a set number of times.
    always use movieclips unless you have a reason not too. as kglad said it will save you and others a lot of hurt in the future.

  • In Premiere I can edit an avi or mov clip but I can not save the result as a like file.  Why not???

    In Premiere I can edit an avi or mov clip but I can not save tghe result as a like file.  What do I have to do???  It only saves a project.  Under 'File' the 'Export' function is greyed out.  I need help baddly.
    [email protected]
    Bill Schoon

    Boatbuilder
    Let us start from the beginning.
    It has been established that you have Premiere Elements 10. On what computer operating system is it running?
    There has not been a File Menu/Export/Movie export opportunitity in Premiere Elements since version 7. We are not up to version 12.
    For Premiere Elements 10, your export opportunities are all in Share/ including one for Computer. Under Computer there are several choices. The ones that you see are Adobe Flash Video, MPEG, and AVCHD. The others you have to scroll down to. And those choices are AVI, Windows Media, QuickTime, Image, and Audio. You do not have to use the scroll bar for this. You can click on Adobe Flash Video panel to get it to turn black. Then use the down arrow to go down the list and the up arrow to go up the list. Once you get to a category, you can select a preset and go with it or customize it under the Advanced Button/Video Tab and Audio Tab of the preset.
    If you post the properties of your source media that you want to try to match in the export, I would be glad to suggest the exact settings for you.
    We will be watching for your follow up with details.
    Thank you.
    ATR
    Add On...The Premiere Elements 10 File Menu is for more than Saving, just not exporting. One of the key features that can be access there is the Project Archiver. More on that another time.

  • Unable to Sync Quicktime Movie Clips with IPOD

    I am a new ipod user having difficulty syncing Quicktime movie clips to IPOD.
    Clips are saved as .mov files and Itunes will play.
    However I cannot get them to sync woth IPOD.
    Any ideas - Do I need to convert to annother format?

    First you need to import your movies into iTunes. Do this by opening iTunes <File> <Import> <Movies> then choose the movie you want to put on your iPod. Make sure the movie has .mov at the end otherwise it won't be set up the way it's supposed to be.
    Once the movie is imported into iTunes right click on it so a pull down menu appears. Click on <Convert Selection for iPod/iPhone>. It should begin converting it on its own and when it's done you'll hear the typical sound that happens after importing a cd, telling you the operation is complete.
    After it's converted, you will have 2 identical movies in your menu. If you <Get Info> on each, you should be able to see which is newest version; that is the movie you are going to want to sync.
    Then plug your iPod in to iTunes, go to the movie tab in iPod summary and check off the converted movies you want to sync to your iPod. Press <Sync> and that should add your movies to your iPod.
    Hope this helps.

Maybe you are looking for

  • Connect a Nokia N73 to a PC in the year 2013?

    Hi! I have a Nokia N73 on my desk which keeps rebooting at random intervals. This used to be my phone but I gave it away to my brother. He has been using it for about a year without any problems. He did drop it once on the pavemen and the plastic scr

  • How to avoid item suppression in multiple item PM strategy plan

    Dear gurus, we have ONE plan, which have two items.  First item is linked to a task list which has 1M package, Second Item is linked to a task list which has 1M,1Y pack. I have scheduled the task and i am not receiving a work order for the first item

  • Building a Tabular Form Manually - More then 50 entries in a Selectlist

    Hi 2 all! I discovered a problem by creating a tabular form manually using this tutorial: http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html#MANUAL When i use the apex_item.select_list_from_query function,

  • Enhanced USB Port Replicator under Vista with blank taskbar

    I have an annoying bug where the vista taskbar goes blank under Vista.  I'm running an X300 with the Enhanced USB Port Replicator attached to an external monitor.  I have set the external monitor as the primary monitor.  With this configuration, the

  • CWB Issue - Compensation Workbench

    Issue in brief: We are able to do the compensation allocations once in the period....But how to do MULTIPLE compensation allocations in the same period (after the 'post compenstion process is run..) Eg. Availability period- 01-OCT-2008- 30-SEP-2009 M