Video fading in, but not out in movie clip.

Hi.
I need to run a video which I can turn off and on on top of other flash content.
Since I also need to add sub titles I decided to import the video clip into a movie clip. The movie clip now has as many frames as the video.
I added the subtitles by keyframing a text line in the movie clip and synched it up with the movie. (this was not real easy..)
I placed an instance of the movie clip on my main stage in frame 10. I added an on and and off button that simply would take you to a later frame without the movie clip instance, and back to frame 10 again if you want to see the video again. This worked well. 
To make the transistions elegant I wanted to fade the video in and out. So on the main stage in frame 10 I placed this action script:
(+ gave my movieclip the instance name mc)
stop();
import mx.transitions.Tween;
import mx.transitions.easing.*;
var myTween:Tween = new Tween (mc,"_alpha",Strong.easeIn,0,100,2,true);
which nicely fades the video in when the playhead gets to frame 10.
There is another part of the script that should be able to tell the upcoming end of the movie clip and fade it out:
myTween.onMotionFinished = function () {
   new Tween (mc,"_alpha",Strong.easeOut,100,0,2,true);
This however I can not get to work:
1)  If I place this code in frame 10, the video first fades in but immideately fades out again.
2)  I tried to put the code 15 frames from the end of the movie clip, and that did not work.
3)  I tried to put the code 15 frames from the end of the movie clip and add _parent.  and that did not work either.
Can this be made to work, and if so how?
If not, please let me know if you have any other proven approach to suggest.
ggaarde

Hi Ned
This does not work for me.
Again the instance of the movieclip is on the main timeline in frame 10 with stop action
I have put the code you suggested in frame 13 of the main time line. also with a stop action.
Then in the movieclip I have put this code approx 100 frames from the end of the clip:
_parent.gotoAndPlay(13);
How else would he main movieclip know when to start the fadeout?
The myTween.onMotionFinished = function should maybe detect it, but i have not had luck using it. The only time it works is like described in my first post, but it triggers right away and fades out as soon as it is done with the fade in.
Is there a way to tell it on which frame in the mc it should start the fade out?
ggaarde

Similar Messages

  • I can import (RIP) my music CD's but not my DVD movies. Huh?

    All I want is to be able to watch my DVD movies through iTunes/Apple TV on my HDTV. Is that so much to ask for? Apparently so. At least with iTunes (although from a quick Google there are "those we do not speak of" third-party apps that'll do the job). And yet oddly enough it's no problem importing my CD music collection. So what's the difference between the music industry and movie studios copy-right protection in this case and Apple's position?
    I've wanted to import my DVD movies for a while but haven't gotten around to it. I thought it would be a simple process. Little did I know, and should have realized after an early try to play a DVD movie in iTunes and the fact that Apple TV would not allow it either (main reason I didn't purchase it when first released). But isn't that the point of it, to play movies? Before the advent of Apple TV and other movie download sites there were DVD's. Or have they forgotten this? It didn't make any sense except greed. That Apple and the movie studios want us to have to repurchase all of our DVD movie collections. But not music CD's?
    It's my DVD movie. I paid for it. I own it. I should be able to copy it to my Mac for playback either from iTunes or Apple TV, more so since I no longer have a DVD player. That's the whole point of all this digital technology. All my music and movies,..etc in one place, transportable, streamable. Which brings me back full circle to my question; "Why can I import (rip) my CD music collection into iTunes but not my DVD movies? This is a contradiction.
    < Edited by Host >

    I've wanted to import my DVD movies for a while but haven't gotten around to it. I thought it would be a simple process
    It would be if the law didn't make it difficult and/or illegal.
    So what's the difference between the music industry and movie studios copy-right protection in this case
    CDs generally aren't copy protected. Commercial video DVDs are almost all copy protected.
    and Apple's position?
    Apple's position is that since breaking the copy protection is illegal, there's nothing they can to vis-a-vis iTunes and the Apple TV. If you want to read up on one company's attempts to come up with software that can import a DVD and the movie industry's reaction, read this:
    http://www.pcmag.com/article2/0,2817,2345931,00.asp
    It's my DVD movie.
    No, it's not. It's your physical DVD. It's not your movie.
    I paid for it. I own it.
    No, you don't. You own the physical DVD. You've purchased certain rights to use the content on the DVD.
    I should be able to copy it to my Mac for playback either from iTunes or Apple TV, more so since I no longer have a DVD player.
    Yes, you should. But the movie industry doesn't want you to do it and as such has gotten legislation written in the US and some other countries that prevent you from legally copying the DVD to any other medium. The answer the movie industry has come up with, though with only limited adoption thus far, is the "digital copy" included with some DVDs.
    Bottom line, as has been said many times: US law makes it illegal to break the copy protection on any medium, be it CD, DVD or anything else.
    Enough said. There's absolutely nothing Apple can do about this unless and until such time as the law is changed.
    Message was edited by: Dave Sawyer

  • I am having trouble running videos through Safari but not Google Chrome.  All I get is a black screen.  I have the latest adobe flash update and have enabled plug ins.  any suggestions?

    I am having trouble running videos through Safari but not Google Chrome.  All I get is a black screen.  I have the latest adobe flash update and have enabled plug ins.  any suggestions?

    Open System Preferences > Flash Player then select the Advanced tab.
    Click Delete All under Browsing Data and Settings
    Not empty the Safari cache.
    From your Safari menu bar click Safari > Preferences then select the Advanced tab.
    Select:  Show Develop menu in menu bar
    Now click Develop from the menu bar. From the drop down menu click Empty Caches.
    Now try a video.

  • Updated iTunes to latest version can'tairplay music but not a rented movie, is there a fix for this?, updated iTunes to latest version can airplay music but not a rented movie, is there a fix for this?

    updated iTunes to latest version can'tairplay music but not a rented movie, is there a fix for this?, updated iTunes to latest version can airplay music but not a rented movie, is there a fix for this?

    Do you really mean the latest, as in 11.0.1?  That was supposed to include a fix for Airplay.

  • Recently, I can't get any sound from my game applications.  Sound works fine with video, streaming, etc, but not my game applications.  I've tried powering down and re-booting, but the sound does not return.  Can anyone help me?

    Recently, I can't get any sound from my game applications.  Sound works fine with video, streaming, etc, but not my game applications.  I've tried powering down and re-booting, but the sound does not return.  Can anyone help me?

    Have you got notifications muted ? Only notifications (including games) get muted, so the Music and Videos apps, and headphones, still get sound.
    Depending on what you've got Settings > General > Use Side Switch To set to (mute or rotation lock), then you can mute notifications by the switch on the right hand side of the iPad above the volume switch, or via control centre : swipe up from the bottom edge of the screen and it's the right-most of the 5 icons in the middle of it (if the icon is white then it's 'on', tap it to turn it grey and 'off'). The function that isn't on the side switch is set via control centre instead : http://support.apple.com/kb/HT4085

  • HT204370 A movie shows in my purchased list but not in the Movies list...

    A movie shows in my purchased list but not in the Movies list...

    The purchase history on your iTunes account will only show purchases from the iTunes stores (iTunes, app store, ibookstore, Mac app store), not from Apple online or bricks-and-mortar stores.
    Does anything show on your credit card ? If the email is genuine then it's possible that your and their email addresses are similar and that they gave the wrong id (or the store typed it incorrectly), it doesn't necessarily mean that anybody has access to your account.
    For the contact, you will initially just receive an acknowledgement email, the proper reply may take 24 (possibly 48) hours.

  • IMovie seems to have developed a glitch. When i try to import photos they show in the timeline but not in the movie.

    iMovie seems to have developed a glitch. When i try to import photos they show in the timeline but not in the movie.
    Any ideas?

    You are probably looking in the wrong place - all photos in Photo view and in event too unless you have a corrupted library
    most common cause of your not finding them is bad sort - view menu ==> sort events
    Nest most common cause is a bad data/time on the camera - this can be corrected using a smart album to find the photos from that camera and then using using the adjust time/date command to fix the bad ones
    YOu can alwasy find the event a Photo is in by selecting it and selecting show event
    LN

  • I can see my device in itunes but not my music,movies which is in my itunes. the folder is not shown on itunes ):

    i can see my device in itunes but not my music,movies which is in my itunes. the folder is not shown on itunes ): what should i do. please help! ):

    Have you tried installing and updating apps from the iPhone itself?
    If you have restrictions enabled go to settings>general>restrictions and make sure "Installing Apps" is on.

  • Hi, when I download wmv video files, I cannot get any sound. Youtube videos work fine but not wmv files? can somebody help please

    Hi, when I download wmv files on my MacBook Air I cannot get any sound on the videos. Youtube videos work fine but not wmv files. Can anybody help please?

    Install Flip4Mac which allows you to play wmv files.

  • Am not able to import videos to imovies, as am able to view the videos in iphone but not able to import in imovies .Pls help

    Am not able to import videos to imovies, as am able to view the videos in iphone but not able to import in imovies .Pls help

    Hello Ephremekka
    Start your troubleshooting with the article below to get your iPod Classic to show up in iTunes to be restored.
    iPod: Appears in Windows but not in iTunes
    http://support.apple.com/kb/TS1363
    Regards,
    -Norm G.

  • Flash videos showing locally, but not on my site. help please

    Hi,
    I converted several avi's to flash, I then inserted the FLV
    file into and html file in dreamweaver.
    The flash files will play locally, but not when i upload them
    to web server. Check it out here please
    http://kdsi.org/kds/demo.html
    please check the demos above to see what i mean. I just get a
    blank page.
    Anyway to insert video into the page like youtube? (instead
    of the "demo video" button have the video embedded and just click
    play to play it. without using the popup like i did.)
    thank you.
    thanks

    Hi,
    I am sorry i did not get what you mean with the last
    sentence, but generally, this may be a path problem, you need to
    check your FLV path and make it meet the path on the server not the
    local machine.

  • I have recently bought a Seagate Goflex satellite mobile wireless hard drive. I have converted some of my AVI movies to mp4 and transferred them to the hard drive, but when I play them through my iPad 2 I can hear the sound but not see the movie. Help???

    I have recently bought a Seagate Goflex satellite mobile wireless hardrive , i have converted some of my AVI movies to MP4 and loaded them onto the hard drive, when I try and play them through my I pad2 I can hear the sound of the movie but not see the film, somebody please help, what am I doing wrong as I have spent a lot of time converting these movies to be able to travel with my iPad and watch them. Thank you

    Unfortunately, the drive is pretty much restricted without hacking it. That is, you can't stream its content via standardized protocols like UPnP, SMB, FTP and the like. This makes you won't be able to access its content from any third-party apps otherwise capable of playing back AVI files from UPnP / SMB / FTP / WebDAV etc. sources.
    While this is certainly not a recommendation (I can in no way be held responsible if anything goes wrong): you may want to consider extending the capabilities of the drive by installing the hack: http://www.hackseagatesatellite.com/wordpress/welcome/
    It'll "open" the drive for third-party, AVI-capable multimedia apps like GoodPlayer, It's Playing etc. to directly play the files over the network.

  • My purchased items are showing OK in iTunes Store but not on My Movies or My TV shows why

    My SONY Laptop (which is my Authorized PC) is showing my Purchases in iTunes, (when I look up my Purchases for either Movies or TV shows)
    However when I look up My Movies or My TV shows its empty - No Content
    Funnily enough when I look up my account I can see all my hidden shows
    Why am I  getting a blank with my Purchased Items in My Movies or My TV shows when I can see them in the iTunes Store purchased items.

    They are showing in your account's purchase history (via the Store > View Account menu option), but not in your iTunes library (they won't show there unless you've downloaded them on that computer or copied them into that computer's library) and/or in the cloud for redownloading - is that what you mean ?
    If you've hidden them then they won't show in the cloud for redownloading, nor will they show in the cloud if you've changed countries since buying them or if the rights-holder has removed them from your country's store.

  • Why can i buy, but not rent, certain movies on apple tv?

    I rented Batman Begins last night with no problems and then thought I'd watch The Dark Knight tonight but it's only available to buy, not to rent. I understand that some movies are restricted based on the requirements of the distributor but it seems strange to block The Dark Knight but not Batman Begins from rental. Any advice or work-arounds gratefully recieved. I'm in Australia, if that makes a difference.

    This is becoming more and more common. My take on it is that the studios have only just started to understand the ramifications of the Apple TV model. They're losing money because Apple TV makes it so easy to rent a movie, and then rent it a second time IF you wish to, and so people are less inclined to buy (I know for certain this is true for me, so I assume that other people have started adopting this behaviour too). So what seems to be happening is that when a movie is first released it's rentable and then later when you go back to look for it again it's suddenly purchase-only. Also, I've noticed that some movies that did poor box office but got great reviews, are mysteriously 'rental only'. I suspect this is an effort to try and recoup some money from their crummy marketing decisions.
    And they wonder why they have a problem with piracy.

  • Can only watch videos from YouTube, but not from other websites.

    I can only watch videos from youtube, but certain websites such as dailymotion.com , videos.sapo.pt, etc, the flash video does not load up. I´ve tried updating my video drivers, installing older versions of Adobe flash, but nothing has worked so far. Has anyone has this problem? IShould I be messing with the flash global settings?
    Thanks.

    Hi, You may want to check the system requirements for the other sites. If you can watch videos on Youtube, then you must have Flash Player Installed properly.
    Sometimes certain websites don't support or are late in supporting the latest version of Flash Player (10.1.102.64), so you might want to contact the websites on that.
    You can use this link for setting and see if that makes a difference. Normally you would get a popup from the website to ask for this, but that would depend on how you have the Global Settings Panels set up.
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager03.htm l
    Hope that helps,
    eidnolb

Maybe you are looking for