Removing a movieClip from another movieClip

Hey,  How do I make visible a movie clip in the main movie from another movie clip when it loads? Not using addchild since the movie clip is on stage. thanks in advance...mesa
Main timeline ---- a simple timeline with two movie clips named aMovie bMovie
aMovieClip.visible =true;
MovieClip2 code with button
aMovieClip.visible=false;
error:
Symbol 'NavPage', Layer 'ActionScript', Frame 1, Line 1 1119: Access of possibly undefined property aMovieClip through a reference with static type flash.display:DisplayObjectContainer.

You just said they were named aMovie and bMovie, so neither of the two lines of code you show would be correct, but you can work that out for whatever they really are named...
main timeline:
aMovie.visible =true;
bMovie timeline:
MovieClip(parent).aMovie.visible=false;

Similar Messages

  • How do I reference a dynamically created MovieClip from another MovieClip?

    Hi,
    I'd be grateful for any pointers to the following problem:
         I'm having trouble referencing dynamically created MovieClips (links in a side panel on a Flash website, created from an XML file) from the current MovieClip (the currently selected link).
         I wish to freeze the the link/MovieClip in its mouseOver state once it has been clicked - this part works. When a new link/MovieClip is clicked on, I wish to release the previously clicked-on link from its mouseOver state, which is what I've so far been unable to do.
         My problem seems to be referencing the previous link/MoveClip. I've used the trace statement trace(MovieClip(this).name) to determine that the MovieClips are named item0, item1, item2 and so on. However, I've been unable thus far to reference the previous clip thus far. I've tried to trace the route to the MovieClip from the stage, and also tried MovieClip(parent).item0.gotoAndStop and lots of other different permutations, but to no avail. It's the fact they seem to be in a container called 'panel' which is defeating me.
         Here's a live version I've uploaded, which might explain the problem better. Click on "UBER UNS" in the top menu bar to get to the page in question. It's the links on the left-hand side (Historie, Unser Team, etc.) which are the problem. You'll see that once they've been clicked on they remain in their mouseOver state.
         This is the code in question on the fla file, which is a file I did not create myself. The parts in black work fine; it's the red parts where the problem lies:
    import flash.display.MovieClip;
    panel.buttonMode = true;
    var lang:uint = 1;
    var url_Link:String=MovieClip(root).program.websiteXML .language[lang].pages.titlePage[MovieClip(root).program.linkPage].texts.pageList.txt[numT XT].@link;
    var urlPage:Number=Number(MovieClip(root).program.webs iteXML.language[lang].pages.titlePage[MovieClip(root).program.linkPage].texts.pageList.tx t[numTXT].@linkPage);
    var request:URLRequest;
    var linkIndex:uint;
    var lastClickedLink:MovieClip;   //This is supposed to store the last link that has been clicked - it doesn't work
    panel.addEventListener(MouseEvent.CLICK, clicLink);
    panel.addEventListener(MouseEvent.ROLL_OVER, mouseOverLink);
    panel.addEventListener(MouseEvent.ROLL_OUT, mouseOutLink);
    function mouseOverLink(event:MouseEvent):void {
          MovieClip(this).gotoAndPlay('s1');
    function mouseOutLink(event:MouseEvent):void {
          if(numTXT !== (linkIndex - 1)/5){         //freezes mouseOver state if this is the link for the current page
               MovieClip(this).gotoAndPlay('s2');
    function clicLink(event:MouseEvent):void {
          var linkpage:uint = MovieClip(root).program.linkPage;
          if (url_Link) {
               request = new URLRequest(url_Link);
               navigateToURL(request);
          } else {
               linkIndex = numTXT * 5 + 1;
               if(linkpage == 1){
                   MovieClip(root).chPages.cont.page_about_mc.page3Tu  rner_mc.gotoAndStop([linkIndex]);
              } else if (linkpage == 2){
                   MovieClip(root).chPages.cont.page3_mc.page3Turner_  mc.gotoAndStop([linkIndex]);
         lastClickedLink.gotoAndPlay('s2');  // this is supposed to release the previous clicked-on link from it's mouseOver state - doesn't work
         lastClickedLink = MovieClip(this).name;    //this is supposed to set the new link as the last link clicked after the old one has been released from it's mouseOver state - doesn't work
    If anyone can help, that would be great.

    What you might be after for that line is to use:
    lastClickedLink = MovieClip(event.currentTarget);
    For what you show, the name property of an object is a String, so I would expect you to be getting an error regarding trying to get a String to act like a MovieClip when you try to tell it to gotoAndPlay('s2').

  • How to replace a movieclip with another movieclip

    How to replace a movieclip with another movieclip
    Hi,
    I am having a swf called tchild.swf... in this i got a
    movclip 'child1'. i am loading this tchild.swf into another swf
    tparent.swf within 'mcloader' movie clip.. i got another movclip
    called 'picture1'
    i am loading tchild.swf into mcloader movclip.. and i want to
    load 'child1' moviclip into picture1..
    how to replace a picture1 movieclip with child1 mc..
    PS: i dont want to load picture1 from library.. its on the
    stage.

    AWT or Swing?

  • Mask multiple movieclips from single movieclip

    Hi i am trying to mask 3 thumbnails from 1 movieclips
    mc.samsungchamp.mask=mc.msk
    mc.samsungduos.mask=mc.msk
    mc.samsungace.mask=mc.msk
    but these thumbs are is not showing masked.

    Is this not possible to mask all movieclips through one movieclip, without putting movieclips into single movieclip.??

  • Button functionality in a movieclip within another movieclip for another movieclip

    Ok so i have this looping thumbnails bar that goes like this:
    Scene1-imagebar-imagebarinside
    The buttons symbols are in the "imagebarinside" movieclip and i am using this code:
    ss1.addEventListener(MouseEvent.CLICK, play1);
    function play1(event:MouseEvent):void
    gotoAndStop("ssbox1");
    ...in this movieclip to play another labeled frame in another movieclip (Scene1-Bara)
    Problem is it wont work :-< if anyone has a better ideea i'll really apreciate it

    Hey!
    So, trying to understand the distribution of your MovieClips inside the flash file, this is what I understand:
    Scene1 contains a movieclip with the instance name "imagebar" and another movieclip with the instance name "bara".
    "imagebar" contains a movieclip with the instance name "imagebarinside". If that is the case (And the code being on the first frame of "imagebarinside"), I would use something like:
    function play1(event:MouseEvent):void
         Object(this.parent).parent.bara.gotoAndStop("ssbox1");
    Hope this works!

  • Home Sharing removing files copied from another machine

    I have two machines both backuped with Time Machine... I purchase movies, music and TV shows on machine A with HS configured (in family area). I have machine B (in office) configured to use HS and to copy new files from Machine A to Machine B. Both machines have HS configured with the same account. This seems to work fine, except... If I then delete media files from Machine A via iTunes that asks, and I confirm, to remove the files from the disk. Will the files also be deleted from Machine B automatically. This is the behaviour I think I'm seeing and it is unexpected. I would expect the files on Machine B to remain until specifically removed!
    There are several weeks between the time I purchase media and my purging. I also verify the files have been copied to Machine B before purging from Machine A. Machine A has a smaller HDD so I periodically remove files from this machine to free up space. Then after some time I notice that the files purged from Machine A are no longer on Machine B.
    Is this really the way HS is designed to work????
    Thanks for any help.

    Simon, There are 5 ways to share music with iTunes:  (1) iTunes Music Sharing (a/k/a "regular" sharing),  (2) Home Sharing, (3) Family Sharing, (4) multiple libraries using a shared set of files, and (5) each member have a copy of the content.
    If you don't want them logging in with your Apple ID, Home Sharing is out.  If you are only talking about non-DRM music, #5 may be the best solution.

  • Targeting an object/frame in a symbol movieClip from another symbol movieClip

    I have a base flash file within it are 2 symbol>movieClips
    I did it this way so that i can coltrol my animations more
    effectively, but I am trying to have one of these access the other,
    IE one is a menu the other is a main "page"(set up as a frame. so
    as I click on something in hte menu I want it to load the correct
    page/frame from the other movieClip
    here is a sample of what I've written:
    Zachary Bobo

    I have a base flash file within it are 2 symbol>movieClips
    I did it this way so that i can coltrol my animations more
    effectively, but I am trying to have one of these access the other,
    IE one is a menu the other is a main "page"(set up as a frame. so
    as I click on something in hte menu I want it to load the correct
    page/frame from the other movieClip
    here is a sample of what I've written:
    Zachary Bobo

  • HT201250 how do i remove all backups from another macbook that has been sold

    How do i remove all backup data from time capsule for an old mac?

    I have Finder set up to display any attached hard drives (done via Finder Preferences/Sidebar) where the hard drives are listed as devices. The hard drives are listed under "Shared" in the actual Finder sidebar. I selected the network hard drive containing the spare image bundle I want to delete which leads to whatever I named the next level which allows me to connect to/mount the hard drive, which shows the hard drive contents. I select the spare image bundle and select delete.
    We may be into a terminology difference problem, which, gee people never have that problem :-)))))
    What is confusing me is your use of "shared folder", but I think that may be the place to start if the folder is actually a hard drive. If not, try the devices. Looking at both shouldn't do any harm.
    What you are looking for is something with whatever the name of your old computer was which when selected shows "Sparse Disk Image Bundle."
    You may need whatever user name and password you had on your old computer to actually connect to/mount the hard drive.
    Hopefully this is clearer  than mud. I've had a few liquid refreshment glasses :-))

  • How do I remove Adobe CC from another users screen (iMac)?

    I've just installed CC on my home computer to do some work on - but someone else uses the computer - logs on as a different user. But every time they do, it automatically pops up asking them to sign in to creative cloud.
    Is there anyway to stop this from happening?

    Sazza85 you can turn off the Creative Cloud Desktop application from launching at login.  The option is available under the preferences which is located under the gear icon within the Creative Cloud Desktop application.

  • How do I programmatically remove a subVI from another VI's block diagram?

    If it helps, I have a special do-nothing VI called "Bookmark.vi" that I use to mark related code when I have to hop around between two or more places repeatedly.

    You would need to use the super secret, super "can completely mess up my program", method of LabVIEW VI Scripting. You can find more information over at the Lava User Groups.
    Of course, if the VI doesn't do anything, why not just leave it in and not bother with it?

  • Removing Shared Library from another music source

    My cousin got into my i-tunes and some how imported her Lime Wire account into my i-tunes and it pops up as shared. I want it gone....COMPLETELY!!! I don't know how to do this. Please help!

    You could try turning off the library sharing option. To do this in iTunes go to the top line Edit>Preferences>Sharing Tab then uncheck any checked boxes.

  • Mask multiple movieclips from single mask

    Hi,
    h have big movieclip 450X350 and there are many small thumbnails i need to mask those from big movieclip, I need to animate those so that i can't put those in a single movieclip, Is it possible to mask multiple movieclips from single movieclip...?

    If you want to mask them using Actionscript then you should be able to place them inside a movieclip/sprite as separate animations/movieclips and then assign the mask to the container.
    You can mask multiple layers under one layer if you use the timeline

  • Accessing a variable defined in one class from another class..

    Greetings,
    I've only been programming in as3 for a couple months, and so far I've written several compositional classes that take MovieClips as inputs to handle behaviors and interactions in a simple game I'm creating. One problem I keep coming upon is that I'd love to access the custom variables I define within one class from another class. In the game I'm creating, Main.as is my document class, from which I invoke a class called 'Level1.as' which invokes all the other classes I've written.
    Below I've pasted my class 'DieLikeThePhishes'. For example, I would love to know the syntax for accessing the boolean variable 'phish1BeenHit' (line 31) from another class. I've tried the dot syntax you would use to access a MovieClip inside another MovieClip and it doesn't seem  to be working for me. Any ideas would be appreciated.  Thanks,
    - Jeremy
    package  jab.enemy
    import flash.display.MovieClip;
    import flash.events.Event;
    import jab.enemy.MissleDisappear;
    public class DieLikeThePhishes
    private var _clip2:MovieClip; // player
    private var _clip3:MovieClip; //phish1
    private var _clip4:MovieClip; //phish2
    private var _clip5:MovieClip; //phish3
    private var _clip6:MovieClip; //phish4
    private var _clip10:MovieClip; // background
    private var _clip11:MovieClip // missle1
    private var _clip12:MovieClip // missle2
    private var _clip13:MovieClip // missle3
    private var _clip14:MovieClip // missle4
    private var _clip15:MovieClip // missle5
    private var _clip16:MovieClip // missle6
    private var _clip17:MovieClip // missle7
    private var _clip18:MovieClip // missle8
    private var _clip19:MovieClip // missle9
    private var _clip20:MovieClip // missle10
    private var _clip21:MovieClip // missle11
    private var _clip22:MovieClip // missle12
    var ay1 = 0;var ay2 = 0;var ay3 = 0;var ay4 = 0;
    var vy1 = 0;var vy2 = 0;var vy3 = 0;var vy4 = 0;
    var phish1BeenHit:Boolean = false;var phish2BeenHit:Boolean = false;
    var phish3BeenHit:Boolean = false;var phish4BeenHit:Boolean = false;
    public function DieLikeThePhishes(clip2:MovieClip,clip3:MovieClip,clip4:MovieClip,clip5:MovieClip,clip6:M ovieClip,clip10:MovieClip,clip11:MovieClip,clip12:MovieClip,clip13:MovieClip,clip14:MovieC lip,clip15:MovieClip,clip16:MovieClip,clip17:MovieClip,clip18:MovieClip,clip19:MovieClip,c lip20:MovieClip,clip21:MovieClip,clip22:MovieClip)
    _clip2 = clip2;_clip3 = clip3;_clip4 = clip4;_clip5 = clip5;_clip6 = clip6;
    _clip10 = clip10;_clip11 = clip11;_clip12 = clip12;_clip13 = clip13;_clip14 = clip14;
    _clip15 = clip15;_clip16 = clip16;_clip17 = clip17;_clip18 = clip18;_clip19 = clip19;
    _clip20 = clip20;_clip21 = clip21;_clip22= clip22;
    _clip3.stage.addEventListener(Event.ENTER_FRAME, onEnterFrame)
    function onEnterFrame(event:Event):void
    vy1+= ay1;_clip3.y += vy1; vy2+= ay2;_clip4.y += vy2;
    vy3+= ay3;_clip5.y += vy3; vy4+= ay4;_clip6.y += vy4;
    if (phish1BeenHit ==false)
    if(_clip3.y >620)
    {_clip3.y = 620;}
    if (phish2BeenHit ==false)
    if(_clip4.y >620)
    {_clip4.y = 620;}
    if (phish3BeenHit ==false)
    if(_clip5.y >620)
    {_clip5.y = 620;}
    if (phish4BeenHit ==false)
    if(_clip6.y >620)
    {_clip6.y = 620;}
    if (_clip11.hitTestObject(_clip3) ||_clip12.hitTestObject(_clip3)||_clip13.hitTestObject(_clip3)||_clip14.hitTestObject(_cl ip3)||_clip15.hitTestObject(_clip3)||_clip16.hitTestObject(_clip3)||_clip17.hitTestObject( _clip3)||_clip18.hitTestObject(_clip3)||_clip19.hitTestObject(_clip3)||_clip20.hitTestObje ct(_clip3)||_clip21.hitTestObject(_clip3)||_clip22.hitTestObject(_clip3))
    _clip3.scaleY = -Math.abs(_clip3.scaleY);
    _clip3.alpha = 0.4;
    ay1 = 3
    vy1= -2;
    phish1BeenHit = true;
    if (_clip11.hitTestObject(_clip4) ||_clip12.hitTestObject(_clip4)||_clip13.hitTestObject(_clip4)||_clip14.hitTestObject(_cl ip4)||_clip15.hitTestObject(_clip4)||_clip16.hitTestObject(_clip4)||_clip17.hitTestObject( _clip4)||_clip18.hitTestObject(_clip4)||_clip19.hitTestObject(_clip4)||_clip20.hitTestObje ct(_clip4)||_clip21.hitTestObject(_clip4)||_clip22.hitTestObject(_clip4))
    _clip4.scaleY = -Math.abs(_clip4.scaleY);
    _clip4.alpha = 0.4;
    ay2 = 3
    vy2= -2;
    phish2BeenHit = true;
    if (_clip11.hitTestObject(_clip5) ||_clip12.hitTestObject(_clip5)||_clip13.hitTestObject(_clip5)||_clip14.hitTestObject(_cl ip5)||_clip15.hitTestObject(_clip5)||_clip16.hitTestObject(_clip5)||_clip17.hitTestObject( _clip5)||_clip18.hitTestObject(_clip5)||_clip19.hitTestObject(_clip5)||_clip20.hitTestObje ct(_clip5)||_clip21.hitTestObject(_clip5)||_clip22.hitTestObject(_clip5))
    _clip5.scaleY = -Math.abs(_clip5.scaleY);
    _clip5.alpha = 0.4;
    ay3 = 3
    vy3= -2;
    phish3BeenHit = true;
    if (_clip11.hitTestObject(_clip6) ||_clip12.hitTestObject(_clip6)||_clip13.hitTestObject(_clip6)||_clip14.hitTestObject(_cl ip6)||_clip15.hitTestObject(_clip6)||_clip16.hitTestObject(_clip6)||_clip17.hitTestObject( _clip6)||_clip18.hitTestObject(_clip6)||_clip19.hitTestObject(_clip6)||_clip20.hitTestObje ct(_clip6)||_clip21.hitTestObject(_clip6)||_clip22.hitTestObject(_clip6))
    _clip6.scaleY = -Math.abs(_clip6.scaleY);
    _clip6.alpha = 0.4;
    ay4 = 3
    vy4= -2;
    phish4BeenHit = true;
    if (_clip3.y > 10000)
    _clip3.x = 1000 +3000*Math.random()-_clip10.x;
    _clip3.y = 300;
    _clip3.alpha = 1;
    _clip3.scaleY = Math.abs(_clip3.scaleY);
    ay1 = vy1 = 0;
    phish1BeenHit = false;
    if (_clip4.y > 10000)
    _clip4.x = 1000 +3000*Math.random()-_clip10.x;
    _clip4.y = 300;
    _clip4.alpha = 1;
    _clip4.scaleY = Math.abs(_clip4.scaleY);
    ay2 = vy2 = 0;
    phish2BeenHit = false;
    if (_clip5.y > 10000)
    _clip5.x = 1000 +3000*Math.random()-_clip10.x;
    _clip5.y = 300;
    _clip5.alpha = 1;
    _clip5.scaleY = Math.abs(_clip5.scaleY);
    ay3 = vy3 = 0;
    phish3BeenHit = false;
    if (_clip6.y > 10000)
    _clip6.x = 1000 +3000*Math.random()-_clip10.x;
    _clip6.y = 300;
    _clip6.alpha = 1;
    _clip6.scaleY = Math.abs(_clip6.scaleY);
    ay4 = vy4 = 0;
    phish4BeenHit = false;
    var missleDisappear1 = new MissleDisappear(_clip11,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear2 = new MissleDisappear(_clip12,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear3 = new MissleDisappear(_clip13,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear4 = new MissleDisappear(_clip14,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear5 = new MissleDisappear(_clip15,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear6 = new MissleDisappear(_clip16,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear7 = new MissleDisappear(_clip17,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear8 = new MissleDisappear(_clip18,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear9 = new MissleDisappear(_clip19,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear10 = new MissleDisappear(_clip20,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear11 = new MissleDisappear(_clip21,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear12 = new MissleDisappear(_clip22,_clip3,_clip4,_clip5,_clip6,_clip10);

    I would approach it in much the same way as you would in java, by making getters and setters for all of your class variables.
    Getters being for returning the values, Setters being for setting them.
    So you would make a get function for the variable you want to access ala:
    function get1PhishBeenHit():boolean {
         return this.phish1BeenHit;
    Then to access the value of that variable from outwith the class:
    var result:boolean = ClassInstanceName.get1PhishBeenHit();

  • TypeError: Error #1006 - Removing MovieClip from the stage

    I have a movie clip that is called to the stage and once the movieclip is finished it calls a function that removes it from the stage. The code works but I get an error message about 4 seconds after the movie clip ends.
    Here’s the error message:
    TypeError: Error #1006: exitWordMicroscopic is not a function.
                    at ASvocabulary_microscopic/frame110()[ASvocabulary_microscopic::frame110:1]
    Here’s the stage code:
    //************************Removes the movieclip from the stage and enables the button.*************************
    function exitWordMicroscopic():void
                    bnt_vocab_microscopic.mouseEnabled = true;
                    removeChild(word_Microscopic);
    //******************************Stage buttons**************************************
    stage.addEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    function goButtonsHomeRead_1(event:MouseEvent):void
                    //Vocabulary buttons
                    if (event.target == bnt_vocab_microscopic)
                                    bnt_vocab_microscopic.mouseEnabled = false;
                                    SoundMixer.stopAll();
                                    addChild(word_Microscopic);
                                    word_Microscopic.x = 47;
                                    word_Microscopic.y = 120;
    Here’s the code inside the movie clip. This is what the error message is referring to:
    //****************** Calls function to remove itself from the stage****************************
    Object(parent).exitWordMicroscopic();
    What am I doing wrong?

    Here' how the code looks now:
    Objective: To remove the current movieclip while it's playing so that it does not show on the next (or previous) frame.
    Here’s the stage code:
    var word_Microscopic:ASvocabulary_microscopic = new ASvocabulary_microscopic();
    //Removes the movieclip from the stage and enables the button.
    function exitWordMicroscopic():void
        bnt_vocab_microscopic.mouseEnabled = true;
        removeChild(word_Microscopic);
    //******************************Stage buttons**************************************
    stage.addEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    function goButtonsHomeRead_1(event:MouseEvent):void
        //Vocabulary buttons
        if (event.target == bnt_vocab_microscopic)
            SoundMixer.stopAll();
            bnt_vocab_microscopic.mouseEnabled = false;
            addChild(word_Microscopic);
            word_Microscopic.x = 47;
            word_Microscopic.y = 120;
            word_Microscopic.play();
    //This button takes the user to the Main Screen
        if (event.target == bnt_ReadGoHome_1)
           // exitWordMicroscopic(); [If I use this function I get this error ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.]
            SoundMixer.stopAll();
            gotoAndPlay("1","Main");
            stage.removeEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    //This takes the user to the next frame.
    if (event.target == GoNext_1)
            SoundMixer.stopAll();
            gotoAndPlay("2");
            stage.removeEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    Here’s the code inside the movie clip.
    //****************** Calls function to remove itself from the stage****************************
    Object(parent).exitWordMicroscopic();

  • AS3: Tween from one MovieClip to Another

    Hi!
    As the title implies, I'm trying to use ActionScript 3 to tween from one movieclip to another based on an external event.
    I'm currently using two "Tween" objects to adjust alpha values. The first tweens-out the previous movieclip, and the second tweens-in the current movieclip. Code follows, with headers included for completeness:
    // headers
         import fl.transitions.Tween;
         import fl.transitions.easing.*;
    // tweens
         var MOVIECLIP1_out:Tween = new Tween(MOVIECLIP1, "alpha", Regular.easeOut, 1, 0, 3, true);
              var MOVIECLIP2_in:Tween = new Tween(MOVIECLIP2, "alpha", Regular.easeIn, 0, 1, 3, true);
    My issue, as you might suspect, is that the transition doesn't look right. The previous clip tweens to a blank white screen, and then the second is brought in. I need the tweens to overlap, as they would with a timeline-based tween.
    How do I remedy this? My solution was to create a loop, from 0 to 1 incrementing by 0.2, and setting the respective alpha values to increase and decrease. I also planned to set the time for each tween to one-tenth (0.1) of a second:
        var _out1: 1
        var _out2: 0.8
        var _in1: 0
        var _in2: 0.2
    while (_in1 <= 1)
        var MOVIECLIP1_out:Tween = new Tween(MOVIECLIP1, "alpha", Regular.easeout, _out1, _out2, 0.1, true);
        var MOVIECLIP2_in:Tween = new Tween(MOVIECLIP2, "alpha", Regular.easeIn, _in1, _in2, 0.1, true);
        _out1 = _out1 - 0.2;
        _out2 = _out2 - 0.2;
        _in1 = _in1 + 0.2;
        _in2 = _in2 + 0.2;
    This would result in ten total tweens, over one full second, as follows:
    time : Clip : alpha change
    0.1 : MOVIECLIP1 : 1 to 0.8
    0.1 : MOVIECLIP2 : 0 to 0.2
    0.1 : MOVIECLIP1 : 0.8 to 0.6
    0.1 : MOVIECLIP2 : 0.2 to 0.4
    0.1 : MOVIECLIP1 : 0.6 to 0.4
    0.1 : MOVIECLIP2 : 0.4 to 0.6
    0.1 : MOVIECLIP1 : 0.4 to 0.2
    0.1 : MOVIECLIP2 : 0.6 to 0.8
    0.1 : MOVIECLIP1 : 0.2 to 0
    0.1 : MOVIECLIP2 : 0.8 to 1
    And the transition is complete.
    I feel that there must be a smarter way to accomplish this task. Do I have my head screwed on right here? Any suggestions?

    I think that I posted this in the wrong forum... maybe an admin can move this to the AS3 section?
    Anyway, in the absence of an answer, I coded the following, and it works pretty well. I had to round the alpha values to the tenths place.
    YOURBUTTON.addEventListener
      MouseEvent.MOUSE_OVER,
      function(evt:MouseEvent):void
        var _out1:Number = 1;
        var _out2:Number = 0.8;
        var _in1:Number = 0;
        var _in2:Number = 0.2;
    while (_in2 <= 1)
        var MOVIECLIP1_out:Tween = new Tween(MOVIECLIP1, "alpha", Regular.easeOut, _out1, _out2, 1, true);
        var MOVIECLIP2_in:Tween = new Tween(MOVIECLIP2, "alpha", Regular.easeIn, _in1, _in2, 1, true);
        _out1 = int((_out1 - 0.2 + 0.05)*10)/10;
        _out2 = int((_out2 - 0.2 + 0.05)*10)/10;
        _in1 = int((_in1 + 0.2 + 0.05)*10)/10;
        _in2 = int((_in2 + 0.2 + 0.05)*10)/10;

Maybe you are looking for

  • How do I make a folder in Mail inbox

    I want to organize my emails by moving them to different folders.  How do I create folders?

  • Interactive report javascript error: missing ) in parenthetical

    Running on 11g, APEX 3.1.2.00.02: I have several interactive reports that appear to the user to hang up when they try to sort by clicking a column header (the spinny circles never go away and the page doesn't do anything). Upon the column header clic

  • Can't Find Version Number on WRT 54GX2 -there's no ver. no. on it

    I can't find a "version number" anywhere on the unit. In order to update the firmware, the website calls for specifying whether it's version 1 or version 2. I'm presuming that because it doesn't say what version it is, it must be version 1, but I don

  • Software Installation Processing Alerts - Group Policy Failures?

    Hello, I am getting several errors reported by SCOM Software Installation Processing alert In the local event log I have: Warning 9/15/2014 11:09:37 AM GroupPolicy 1112 None Warning 9/15/2014 11:09:37 AM Application Management Group Policy 108 None E

  • How to Over write an existing response?

    Sep 22, 2010 3:15:25 PM org.apache.catalina.core.ApplicationContext log INFO: Loading Spring root WebApplicationContext Sep 22, 2010 3:17:55 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet default threw e