"Show Hide Elements" movie Clips continue to play

I've put a bunch of AP Div tags on a page with video links,
once one begins to play it continues after another thumnail is
clicked. So, a user can soon be bombarded with audio from 8
different clips playing all at once, because once one begins
playing, it seems to not "hide" or cease to play as it should.
The URL in question is found here, but you have to click the
link for more demo reel stuff to load the page I'm trying to work
on:
http://www.knappmediaproductions.com/portfolio.htm
Remember, click where on the page it says: "More varied
examples of Demo work seen here" to open the page I'm dealing with.
Is there code of some kind to shut all those clips down when
the layer they are on is hiding?

I understand that you can remove one parent instead of many
children in this way, which is good from an efficiency standpoint.
Beyond that, I was ideally looking for a way to basically "freeze"
the action on Frame A and return to it. I assume that, even with a
parent-child scenario, I would still need to loop through all of
the children and save their states (because just checking the
parent attributes isn't going to get at this information). I was
just asking if there was any easier way. It would be nice to be
able to go to another frame - maybe on another level - and then
come back to Frame A and pick up where I left off - just hopeful
thinking, I guess.

Similar Messages

  • Showing Photos While Video Clips Continue to Play

    I am trying to fade in photos while a video clip and its sound continue playing. (Although the video clip continues to play, it's obscured by the photo.)
    Currently when I place a photo into the storyboard the video clips stop playing, the photo shows, and then the video starts again.
    Does anyone know how photos can appear in my movie without interrupting the playing of the video and its audio?
    Thanks!

    Hi bcas and welcome!
    You want to superimpose a still photo on a moving video? No problem!
    But you need to buy Quicktime Pro. Here is how to do it (don't worry about the references to video within video, it works the same for stills - you will soon get the hang of it!
    Organise the video clips and/or stills that you want to superimpose on to your main video clip, by having these in separate, individual iMovie projects (no matter how small). It helps if these are in the exact length/time you want later.
    Now start with the clip in your iMovie project on to which you want to superimpose one of more smaller video clips or stills. Lets call it Main Clip. Export this (share) to Quicktime Pro in DV (full quality). make sure it has the same aspect as before (Quicktime tends to default to 4:3. If you want 16:9, read on).
    In Quicktime, with this project open, select File ~ Open File. Select the iMovie file (in your movies folder) of the first clip/still you want superimposed. This will open in its own QT window. Select Edit ~ copy. If it is a movie clip then select all ~ copy (or you will only get one frame!). Switch back to the Main Clip window, and click in the scroll bar where you want the extra clip/still to appear. Choose Edit ~ Add to Movie.
    You can repeat this as many times as you like, if you want to build a 'Video Wall', i.e. have several superimposed clips/stills on the same Main Clip.
    Do not worry that the new clip overlaps or covers up the Main Clip, at this stage.
    Choose Window ~ Show Movie Properties. The Properties Dialogue appears.
    You will see a list of video (and audio) tracks. Track one will be the Main Clip, track 2 your new added (superimposed) clip. Click track 2, then click visual settings. From the Scaled Size pop-op menu, choose percent. Then type 50 into the first box. If Preserve Aspect Ratio is turned on you won't need to type 50 into the second box. You have made the pasted footage appear at one quarter its original size. The inset is now hugging the top-left corner of the Main Clip. If you want, you can type numbers into the Offset Boxes to shove it away from that corner (there are 72 pixels to the inch).
    If your original Main Clip was required in 16:9, unclick (de-select) Preserve Aspect Ratio, and type in 1920 in the first box, and 1080 in the second, in Video Track 1. This will not affect video track 2, but if that is also wanred in 16:9 repeat for that track.
    You can superimpose, 3, 4, or more such 'overlaps' on the same clip, and spend a happy afternoon tapping away for each track in the Offset Boxes until you have got them all in the right place! You can even overlap them, if you can remember (or note down - hire a secretary to take notes) which track you want on top etc.
    Save the completed QT file. Import the completed file into a new iMovie project. Import this into the original iMovie project, substituting the old clip you copied to QT as Main Clip for the new fancy clip you have made.
    Have fun!

  • Sound in a movie clip malfunctions when play head is moved backward

    Problem summary:
    A sound (stream) placed inside a movie clip that is within another movie clip will start playing continuously when I use the play control to jump around on the main timeline.
    Details:
    I am using Flash CS3 but the same issue occurs with CS6. I've spent quite a bit time to search/research for the issue but didn't find a solution. To demonstrate the problem, I've reduced the flash movie to a very simple structure.
    One the main timeline:
    The first frame has a movie clip (Game MC) and a stop action.
    Following the first frame, there are several frames, mostly empty except some text.
    The last frame has a stop action.
    On the Game MC timeline:
    There is only one frame. On that frame, there is a movie clip (Card MC), and the stop action.
    On the Card MC timeline:
    It starts with 3 blank frames and a stop action.
    Starting at frame 4, a sound (.wav format) is placed and is set to be "stream."
    At the end of this timeline, there is a stop action.
    From Flash CS3, I press Ctrl+Enter to test the movie. The movie stops on frame 1 of the main timeline with the card showing, no sound, as expected. Now I use "." to move the play head forward one frame at a time. No problem. I see the frames after the first frame. Still no sound, as expected. So far so good.
    The problem starts when I use "," to move the play head backward, the sound in the Card MC starts to play, regardless where the play head is, even when the Game MC (thence the Card MC) is not on the stage. Worse, each press of "," will trigger another start of the same sound overlapping with the previous one. And the sound would continue in loops until I close the swf.
    However, the problem will not occur if I place the Card MC directly on the main timeline. It only occurs when it is inside another movie clip (Game MC).
    I need to solve this problem because the full version of the flash card game is to be placed in an HTML page with a javascript based play control, which allows the viewer to jump around in the swf timeline.  
    The fla file is at: https://docs.google.com/file/d/0B_5mgotjr4l5RDZaOGxFeFFWN1U/edit?pli=1
    Am I doing something wrong? Is this a bug in Flash? Any insight will be greatly appreciated.
    Keith

    Thanks. But the problem is that the timeline for the movie clip (Card MC) where the sound is should not have been run because the play head is not on the frame where the Game MC is at (Game MC contains Card MC.) I also put trace actions on various frames on that timeline (for Card MC) and none was invoked. I have also tried to set the sound to "event" or "start". It made no difference.

  • Show/hide elements in DW CS3

    I've just posted this question and got a reply from John
    Waller, thanks John, but what I mean is that I don't want to use
    layers, this has to do with the positioning in a table. I want to
    add images to a table which is in a layer so I can put margin-left
    and margin-right for the layer to "auto" so the whole table
    (including images) will always be centered. If I add layers to the
    table and add images to the layers (to get the mouse-over effect)
    the layers will not move with the table to the center of the page,
    I hope you guys know what I mean.
    Anybody knows if it would be possible in DW CS3 to do so, see
    the original question underneath to get the picuture:
    Thanks again.
    Hi
    In DW8 I often used the possibility to put several layers on
    top of eachother with images in them, this way I could show/hide
    layers so the images would be visible when having a mouse-over
    action on a thumbnail for example.
    Now DW-CS3 gives the option show/hide elements, however, I
    can not simply put elements on top of eachother, which is what I
    want.
    Am I stuck on using DW8 and the show/hide layers option, or
    is there a way to put multiple images (elements) on top of
    eachother in DW-CS3?
    Thanks, have a nice day
    Ferrohead

    > table which is in a layer so
    > I can put margin-left and margin-right for the layer to
    "auto" so the
    > whole
    > table (including images) will always be centered.
    You don't need to use a 'layer' for that, and I assume that
    you mean a <div>
    not a layer, since the latter implies absolute positioning.
    > If I add layers to the table
    I sure hope you are referring to just div tags and not
    layers, because you
    would never want to put an absolutely positioned element
    directly into a
    table cell.
    > I hope you guys know what I mean.
    Yes, I'm afraid I do. This whole scheme is just wrong.
    It would be much better to use the SetText behavior to simply
    dynamically
    write the desired image link into a named container on the
    page, much like
    you can see being done here -
    http://dreamweaverresources.com/tutorials/settextoflayer.htm
    and a tutorial
    http://www.dreamweaverresources.com/tutorials/settextoflayer.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Ferrohead" <[email protected]> wrote in
    message
    news:[email protected]...
    > I've just posted this question and got a reply from John
    Waller, thanks
    > John,
    > but what I mean is that I don't want to use layers, this
    has to do with
    > the
    > positioning in a table. I want to add images to a table
    which is in a
    > layer so
    > I can put margin-left and margin-right for the layer to
    "auto" so the
    > whole
    > table (including images) will always be centered. If I
    add layers to the
    > table
    > and add images to the layers (to get the mouse-over
    effect) the layers
    > will not
    > move with the table to the center of the page, I hope
    you guys know what I
    > mean.
    >
    > Anybody knows if it would be possible in DW CS3 to do
    so, see the original
    > question underneath to get the picuture:
    >
    > Thanks again.
    >
    > Hi
    > In DW8 I often used the possibility to put several
    layers on top of
    > eachother
    > with images in them, this way I could show/hide layers
    so the images would
    > be
    > visible when having a mouse-over action on a thumbnail
    for example.
    > Now DW-CS3 gives the option show/hide elements, however,
    I can not simply
    > put
    > elements on top of eachother, which is what I want.
    > Am I stuck on using DW8 and the show/hide layers option,
    or is there a way
    > to
    > put multiple images (elements) on top of eachother in
    DW-CS3?
    >
    > Thanks, have a nice day
    >
    > Ferrohead
    >
    >

  • How can i hide a movie clip?

    is it possible for me to hide a movie clip by the press of a button that is on a differant timeline?
    here is my code for button.
    stop();
    submit_btn.addEventListener(MouseEvent.CLICK, subClick);
    failed_txt.background = false;
    failed_txt.border = false;
    var myName:String;
    var myPass:String;
    function subClick(event:MouseEvent):void{
    myName=name_txt.text;
    myPass=pass_txt.text;
    if(myName == "gallery" && myPass == "password"){
      gotoAndStop("hidden");
    } else{
      failed_txt.text = "Please enter a valid password.";
    Many thanks.
    Michael Down

    Yes, it should be possible, but you need to provide some explanation of what you want it to do that it doesn't.  How are things on different timelines and what symbol is supposed to be getting hidden?

  • Show/hide elements

    Hi
    In DW8 I often used the possibility to put several layers on
    top of eachother with images in them, this way I could show/hide
    layers so the images would be visible when having a mouse-over
    action on a thumbnail for example.
    Now DW-CS3 gives the option show/hide elements, however, I
    can not simply put elements on top of eachother, which is what I
    want.
    Am I stuck on using DW8 and the show/hide layers option, or
    is there a way to put multiple images (elements) on top of
    eachother in DW-CS3?
    Thanks, have a nice day
    Ferrohead

    The functionality is identical in CS3, just the terms have
    changed.
    Layers (8) = AP Divs (CS3)
    Show/Hide Layers (8) = Show/Hide Elements (CS3)
    Go to the AP Elements panel (F2 or Window > AP Elements)
    and ensure that 1)
    all AP Elements are stacked on top of each other (ie there
    are no child
    elements which are shown by the name being indented in the
    list); 2) each
    Element has a unique Z index (if not re-number them manually
    so they're
    unique).
    Then apply the Show-Hide Elements behavior to each AP
    Element.
    Regards
    John Waller

  • Help with Show/Hide Elements please!

    I'm using the show/hide elements behavior for the first time and I'm not sure if it's working right. Am I supposed to be able to preview this feature, either in a browser or in Live View? It's not working in either, but I didn't know if the site had to actually be live for it to work or not.
    Also, my div is set to display:none; and I didn't know if that is correct, or if I should set a Z-index on all of them.
    Thank you!

    Am I supposed to be able to preview this feature, either in a browser or in Live View?
    Yes - it should work in both.
    Also, my div is set to display:none; and I didn't know if that is correct, or if I should set a Z-index on all of them.
    That could be the problem - show/hide toggles the visibility attribute between 'visible' and 'hidden'.  If the element is styled with display:none, even when it's visible it won't be displayed.  So, get rid of the display style, and just use the visibility one.  The default z-index is "1", so depending on your layout and the desired interaction with these elements, you may need to adjust your z-index as well.

  • 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";

  • Hide a movie clip on click

    Currently making a escape the room game. How can I write a piece of script that will allow me to click on set movie clips and then they will be hidden.

    One of many ways:
    1. You can change the alpha property of the movieclip to 0. The object will still be active but can't be seen.
    2. You can change the visible property of the movieclip to false. The object will not be active and will not be seen.
    3. You can change the x or y property of the movieclip to move it off the visible area of the stage.
    4. If you added the movieclip to the display list using addChild() to show it on the stage, you can use removeChild() to remove the movieclip from the display list and make it disappear.
    5. If you added the movieclip to the display list using addChild() then you could change the child order and hide the movieclip behind another, larger, movieclip in the display list.

  • QuickTime movie clips won't play in video player

    I have movie clips generated by my camera that are in Quicktime format that are in iTunes and iPhoto (playing in both) but will not sync to the iPad because they are in an "unsupported format"
    I have a few other QT clips that did sync to the iPad from iTunes, but not all of them will transfer.
    What is the problem?

    Just because the videos from your camera are Quicktime, doesn't mean they will play on the ipad. Open the videos with Quicktime on your computer and get info, COMMAND+i. Here are the video specs for the iPad:
    H.264 video up to 720p, 30 frames per second, Main Profile level 3.1 with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format. http://www.apple.com/ipad/specs/

  • Show-Hide element in Dreamweaver CS5

    Please can you tell me why when I validate a web page I get the following error when using the Show-Hide behaviour.  The error is only reported for the first use of the feature and no of the others.  I don't understand.
    Line 239,         Column 235:     there is no attribute "onload"…HideLayers('drive','','hide')" onload="MM_showHideLayers('drive','','hide')" /…

    You have used the attribute named above in your document, but the       document type you are using does not support that attribute for this       element. This error is often caused by incorrect use of the "Strict"       document type with a document that uses frames (e.g. you must use       the "Transitional" document type to get the "target" attribute), or       by using vendor proprietary extensions such as "marginheight" (this       is usually fixed by using CSS to achieve the desired effect instead).
    This error may also result if the element itself is not supported in       the document type you are using, as an undefined element will have no       supported attributes; in this case, see the element-undefined error       message for further information.
    How to fix: check the spelling and case of the element and attribute,        (Remember XHTML is all lower-case) and/or        check that they are both allowed in the chosen document type, and/or       use CSS instead of this attribute. If you received this error when using the        <embed> element to incorporate flash media in a Web page, see the        FAQ item on valid flash.
    Below is a copy of the relevant code -The code in bold is the line causing the error.  You will notice I have used it more than once, but I didn't get any other error messages.  Please help.
      <h3>Artist Drive and Palette</h3>
        <!--  this enlarges two images using show/hide and two different sized images -->
       <div id="drive"><img src="Images/Artist Drive large.jpg" alt="Artist Drive" width="300" height="195" title="Artist Drive" onmouseover="MM_showHideLayers('drive','','show')" onmouseout="MM_showHideLayers('drive','','hide')" onload="MM_showHideLayers('drive','','hide')" />
        </div>
        <img src="Images/Artist Drive.jpg" alt="Artist Drive" width="100" height="56"  class="fltlft" title="Artist Drive" onmouseover="MM_showHideLayers('drive','','show')" onmouseout="MM_showHideLayers('drive','','hide')" onload="MM_showHideLayers('drive','','hide')" />
        <div id="palette"><img src="Images/Artist Palette large.jpg" alt="Artist's palette" width="300" height="194" title="Artist's Palette" onmouseover="MM_showHideLayers('palette','','show')" onmouseout="MM_showHideLayers('palette','','hide')" onload="MM_showHideLayers('palette','','hide')" />
        </div>
        <img src="Images/Artist Palette.jpg" alt="Artist Palette" width="100" height="60" class="fltrt" title="Artist's Palette" onmouseover="MM_showHideLayers('palette','','show')" onmouseout="MM_showHideLayers('palette','','hide')" onload="MM_showHideLayers('palette','','hide')" />
        <p class="size">These formations are in Death Vally, California, USA. Artist's  Drive rises up to the top of an alluvial fan fed by a deep canyon cut into the  Black Mountains. Artist's Palette is on the face of the Black Mountains and is noted for having various colours of rock. These colours are caused by the  oxidation of different metals (red, pink and yellow is from iron salts, green is from decomposing tuff-derived mica, and manganese produces the purple). Called the Artist Drive Formation, the rock unit provides evidence for one of the Death Valley area's most violently explosive volcanic periods. The Miocene-aged formation is made up of cemented gravel, playa deposits, and much volcanic debris, perhaps 5,000 feet (1500 m) thick. Chemical weathering and hydrothermal alteration are also responsible for the variety of colours displayed in the Artist Drive Formation and nearby exposures of the Furnace Creek Formation.
        </p>
        <h3>Badlands</h3>
         <!--  this enlarges two images using show/hide and two different sized images -->
        <div id="badland"><img src="Images/The Badlands large.jpg" alt="The Badlands" width="300" height="183" onmouseover="MM_showHideLayers('badland','','show')" onmouseout="MM_showHideLayers('badland','','hide')" onload="MM_showHideLayers('badland','','hide')" />
        </div>
        <p><img src="Images/The Badlands.jpg" alt="The Badlands" width="100" height="61" class="fltlft" onmouseover="MM_showHideLayers('badland','','show')" onmouseout="MM_showHideLayers('badland','','hide')" onload="MM_showHideLayers('badland','','hide')" />
        </p>
        <div id="badland1"><img src="Images/The Badlands1 large.jpg" alt="The Badlands" width="300" height="132" onmouseover="MM_showHideLayers('badland1','','show')" onmouseout="MM_showHideLayers('badland1','','hide')" onload="MM_showHideLayers('badland1','','hide')" />
        </div>
        <img src="Images/The Badlands1.jpg" alt="The Badlands" width="100" height="44" class="fltrt" onmouseover="MM_showHideLayers('badland1','','show')" onmouseout="MM_showHideLayers('badland1','','hide')" onload="MM_showHideLayers('badland1','','hide')" />
        <p class="size">Badlands National Park, in southwest South Dakota preserves 242,756 acres (98,240 ha) of sharply eroded buttes, pinnacles, and spires blended with the largest protected mixed grass prairie in the United States. On-going rains, freezes and thaws have revealed millions of years of sediment that paint a colourful landscape on the prairies of south-western South Dakota. It contains the world's richest Oligocene  epoch fossil beds, dating 23 to 35 million years old.
        </p>

    Sometimes DW's javascripts will throw errors like that, most of the time it can be ignored.
    What doctype are you using (the first line of your html)?
    If you have a "Strict" Doctype, did you try changing it to a "Transitional" version as the error report suggested?
    Edit > Preferences > New Document > Default Document Type (DTD) > Change from Strict to Transitional of the same version.

  • Movie clips won't play -  OSStatus error -54

    I am organizing all of my movie clips, some of which date back a few years.  Since the last time I did this, something has happened and they will not play.  I get the following error message: OSStatus error -54  Does anyone know of a solution?

    You have the names of these files in iPhoto, right?
    Download Find Any File
    http://apps.tempel.org/FindAnyFile/
    It's a search app that looks in places where Spotlight simply doesn't look. See if it can find them.
    Cause? Updating the system won't do this, but there are a million ways things can go wrong. I wouldn't worry about Apple cutting iPhoto. The current version will run on 10.10 for the foreseeable future - that's at least another year. Even when the next OS comes out, it may run on that too. If it doesn't, well releasing the new Photos.app and upgrading the OS will not turn iPhoto off or stop it working.

  • Getting a movie clip to stop playing, when another one is activated.

    Hello,
    I have a file with 3 movie clips and three buttons that control them to play...with the script below It is working fine.
    stop()
    function startImageOne(Event:MouseEvent):void
        imageOne_mc.play();
    function startImageTwo(Event:MouseEvent):void
        imageTwo_mc.play();
    function startImageThree(Event:MouseEvent):void
        imgThree_mc.play();
    start1_btn.addEventListener(MouseEvent.CLICK, startImageOne);
    start2_btn.addEventListener(MouseEvent.CLICK, startImageTwo);
    start3_btn.addEventListener(MouseEvent.CLICK, startImageThree);
    Then, I wanted to stop a movieClip, if another one was selected to play..so I inserted stop options to the function, which I thought would work, but doesn't. Does any one know why...See this code below..
    thanks
    stop();
    function startImageOne(Event:MouseEvent):void
        imageOne_mc.play();
        imageTwo_mc.stop();
        imgThree_mc.stop();
    function startImageTwo(Event:MouseEvent):void
        imageTwo_mc.play();
        imageOne_mc.stop();
        imgThree_mc.stop();
    function startImageThree(Event:MouseEvent):void
        imgThree_mc.play();
        imageOne_mc.stop();
        imageTwo_mc.stop();
    start1_btn.addEventListener(MouseEvent.CLICK, startImageOne);
    start2_btn.addEventListener(MouseEvent.CLICK, startImageTwo);
    start3_btn.addEventListener(MouseEvent.CLICK, startImageThree);
    thanks
    Babs

    Hi Ned,
    I checked the names and they are all correct...(I named one of the instances img instead of image, but it is all fine.
    The movie clips are simple...They have a stop action in the first frame, and then it is just an image that fads in and fades out..
    Pretty simple?
    The code looks fine, so I can't figure out, why the movie clip that is currently playing doesn't stop, when another button is activated.
    It seems like is should work??
    I'll keep playing .. thanks!!
    babs

  • Show / Hide Elements - how to make hidden elements non-interactive

    Hi,
    Is there a way to make hidden obejcts (through 'Show / Hide') not only hidden but completely non-interactive? I.e. even if an image is hidden, it is still click-able, which will release its set commandos (such as 'Swap Image' or 'Set Text of Container').

    Thanks a bunch! I haven't started out with the code yet. Just made some sketches to see what I need to research etc.
    When I get around to it, I'll get back to you!
    /Orvar

  • Hide a movie clip

    Hello. I have some code for my movie clip which is as follows:
    purplebow.onRelease=function(){
    purplebow.onEnterFrame=function(){
    this.nextFrame();
    if(this._currentframe==this._totalframes){
    delete this.onEnterFrame;
    purplebow.onRollOut=function(){
    purplebow.onEnterFrame=function(){
    this.prevFrame();
    if(this._currentframe==1){
    delete this.onEnterFrame;
    When you click on the movieClip "purplebow" the animation starts, and when you roll off it goes back to normal.
    What I would like help on is implementing some code into this so that my other movieClips (which are: bluebow, redbow, greenbow, etc)
    disappear onRelease and then return onRollOut.
    The code and the movieClips are all on the same timeline, each on different layers.
    Thank you for your help in advance =)

    One way would be to create a function that you use to make all the objects invisible and call that function.  Then after that function call, set the clicked one back to being visible (I am assuming you want to have the same effect for the other buttons, otherwise no need to involve purplebow at all).  Later on with the rollout you can call a function to make them all visible again.
    Normally I would use the same function and pass it an argument as to whether to make things visible or invisible.  something like...
    function show_hide(truefalse){
         bluebow._visible = truefalse;
         etc...

Maybe you are looking for