Unload a movie but gotframe or reverse frames

Ok, I have a base movie with a background that holds the
buttons/nav and main logos. I had loaded a content movie in there
with a stop at the last frame. What I want to do now when I click a
nav button, say '3D graphics page' the 3D graphics page loads the
3D graphics movie (know how to do that) and the content page
unloads gracefully, say playing the frames backwards to where the
page started and unloads as the pages all come in nicely. Maybe
just to go to another frame for a mini animation to ease out of the
page to transition to the loading movie.
All the nav buttons would need to be able to call the
diffrent movies up whilst the previous movie unloads gracefully so
I guess actionscript on the buttons wouldnt work?
Maybe the onUnload command? Never used it.
Can I acheive this?
Thanks

The only thing that comes to mind is to use some modulus math to determine when you are in a frame that should be a stopping point. This would work as long as you have spacing such as you explained...25, 50, 75....  If the currentFrame%25 == 0, then that is a frame to stop in.  As far as the act of keeping things moving, you want to employ an ENTER_FRAME event listener so that it continually processes the prevFrame() call.  As soon as you hit a stopping frame you want to remove that listener.
If the modulus approach wouldn't cut it for all cases, then you could also try to work out some form variable implementation that is assigned the last stopping frame number as you move forward beyond it, using that variable to check against the currentFrame value in the ENTER_FRAME event handler function.

Similar Messages

  • Unload parent movie after onloadInit of child movie

    Hi,
    I am loading external swf's into a main load.swf, using a Moviecliploader object. What I basically want to do is that, after an external movie, say home.swf, loads another external swf, say about.swf, home.swf should be unloaded.
    home.swf is loading about.swf into the _root.mc_holder, which is placed inside load.swf. I want all external files to be placed within this holder. Now this is working with some files, but not with others. My standard code within all files is this:
    //code within home.swf to load about.swf
    var loader:MovieClipLoader = new MovieClipLoader();
    var ldrlistener = new Object();
    loader.addListener(ldrlistener);
    ldrlistener.onLoadStart = function(_mc:MovieClip) {
        trace("about loading started");
    ldrlistener.onLoadProgress = function(_mc:MovieClip, loaded:Number, total:Number) {
        var prcnt:Number = Math.floor((loaded/total)*100);
        if (prcnt == 10) {
            trace("loading:10");
            ldgraphic.gotoAndStop("ten");
        if (prcnt == 15) {
            trace("loading:15");
            ldgraphic.gotoAndStop("fifteen");
        if (prcnt == 20) {
            trace("loading:20");
            ldgraphic.gotoAndStop("twenty");
        if (prcnt == 25) {
            trace("loading:25");
            ldgraphic.gotoAndStop("twentyfive");
        if (prcnt == 30) {
            trace("loading:30");
            ldgraphic.gotoAndStop("thirty");
        if (prcnt == 40) {
            trace("loading:40");
            ldgraphic.gotoAndStop("forty");
        if (prcnt == 50) {
            trace("loading:50");
            ldgraphic.gotoAndStop("fifty");
        if (prcnt == 55) {
            trace("loading:55");
            ldgraphic.gotoAndStop("fiftyfive");
        if (prcnt == 60) {
            trace("loading:60");
            ldgraphic.gotoAndStop("sixty");
        if (prcnt == 70) {
            trace("loading:70");
            ldgraphic.gotoAndStop("seventy");
        if (prcnt == 80) {
            trace("loading:80");
            ldgraphic.gotoAndStop("eighty");
        if (prcnt == 100) {
            trace("loading:100");
            ldgraphic.gotoAndStop("hundred");
    ldrlistener.onLoadInit = function(_mc:MovieClip) {
        ldgraphic._alpha = 0;
        trace("load completed");
    loader.loadClip("about.swf",_root.mc_holder);
    this.unloadMovie();                    //unloads home.swf, which was loaded from load.swf
    Now the problem is, it is successfully unloading the movie, but after a while it stops doing this. Is there something wrong with the code?? Any help will be greatly appreciated.

    Hi Kglad,
    I seem to have managed to get it to work so far. But once again, I can't be sure as it seems to stop working on its own. Also, if I do not insert the this.unloadMovie, the next movie does not load in some cases. I think I need to reconsider my strategy, but for now this will have to do. Thanks for the response

  • HT1657 i tried to rent a movie but it did not work and i was charged away. How can I have charges reversed?

    Hello,
    I tried to rent a movie but it did not work and I was charged away. How can I have charges reversed?

    Try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How to unload a movie clip within a movie clip.

    Hi all,
    I am trying to unload a movie clip that is on a layer in a
    movie clip. After clicking on a button, I would like the movie to
    go back to the previous menu without playing a couple of movie
    clips that's in the main movie clip.
    So at the end of my movie clip I have:
    _parent.gotoAndPlay("resources"); // resources is the frame
    name in the main movie clip where I would like the movie to restart
    from
    _parent.vhost_mc.unloadMovie("vhost_mc"); //vhost_mc is a
    movie clip in the main movie clip that I want to unload
    _parent.videoScreen_mc.unloadMovie();
    But the videoScreen_mc doesn't unload. The main movie clip
    starts with the videoScreen and I've actually deleted the frames of
    videoScreen_mc where the "resources" frame starts, but still it
    appears.
    I've even tried _parent.videoScreen_mc._visible = false; but
    nothing works! I've tried createEmptyMovieClip, but since the
    videoScreen_mc is on the main timeline, I don't think it works.
    I've even tried putting this function on the "resources" frame:
    onEnterFrame = function() {
    play();
    vhost_mc.unloadMovie("vhost_mc");
    vhost_mc.removeMovieClip();
    this.videoScreen_mc.unloadMovie();
    this.videoScreen_mc.removeMovieClip();
    this.mask._visible = false;
    But when I do this, the play button loops starting at the
    "resources" frame.
    Essentially I would like the main movie clip to play without
    certain movie clips that's included within the main movie clip.
    I hope I'm making sense. Please help, I've been at this for
    days!

    Olá Felipe, tudo bem com você?
    In order to unload content loaded into a Loader object you can use either the unload() method or the unloadAndStop() method. The difference between them is that unloadAndStop() will unload the loaded SWF and try to stop executing any code that it was running including animations, sound and event listeners.
    If you wanto to call the unload() or unloadAndStop() methods from the loaded SWF you can use its loaderInfo.loader property to reference the Loader object that loaded it.
    It could be someting like this:
    this.closeButton.addEventListener(MouseEvent.CLICK, this.handleClose);
    protected function handleClose(event:MoueEvent):void {
         this.loaderInfo.loader.unloadAndStop();
    You can pass a Boolean parameter to unloadAndStop() to indicate if Flash's garbage collector should be run ont the unloaded SWF in order to free up memory. Considering the size of your SWFs, this could be a good option. The downside is that there is a performance penalty and in my professional experience, CPU is still a resource that is more scarce than memory, so use with care.
    Hope this helps.
    Abraço,
    Rui

  • My Movie Won't Start on Frame 1? Newbie

    Hi!
    This is my first shot at creating a flash website.
    I have three layers
    and I've divided the timeline up into sections
    so I have one for Contacts, Press, News, Home, etc...
    However, the home section starts on frames 1-10
    but whenever I test the movie, it starts up on frame 40 and
    displays the contacts...
    Also when you click the Home button, it still just displays
    the contacts,
    all the other buttons/pages work fine
    any advice/help would be kindly appreciated
    I can't figure out how to make it start on frame one

    EddieKG wrote:
    > Hi!
    >
    > This is my first shot at creating a flash website.
    > I have three layers
    > and I've divided the timeline up into sections
    > so I have one for Contacts, Press, News, Home, etc...
    >
    > However, the home section starts on frames 1-10
    > but whenever I test the movie, it starts up on frame 40
    and displays the
    > contacts...
    > Also when you click the Home button, it still just
    displays the contacts,
    > all the other buttons/pages work
    > fine
    Movie does not just start on frame 40, flash timeline run by
    default from
    first to last frame. You must have an action that cause it.
    Upload the problematic sample for us to check, otherwise it
    hard to tell
    directly how you need to go around it.
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Help! Quicktime Movies playing only five still frames

    When I try and play quicktime movies on my PC (Windows Vista) they play back with sound, but only five still frames from the movie play on the screen. How do i fix the problem?
    I'm running windows vista and Quicktime 7.3.1. The problem shouldn't be the video card as all my other video player applications playback fine.
    Thanks for your help!

    Hi,
    I have found the solution to this problem I presented.
    Sorry, I didn't realize that a computer monitor cannot support these images accurately.
    http://library.creativecow.net/articles/rossshane/fcpfaq.php
    I had a Canopus ADVC-110 sitting right here.
    Plugged it up to the TV,
    and the images appeared fine.
    But this brings up one more question:
    Is there a way to have all these images from Final Cut accurately displayed on a computer monitor ?
    I've got a lot of more of them around than TVs . . .
    Sorry to have bothered you with this, but I would appreciate further information on displaying the images on a computer monitor.
    Thanks !
    Howard

  • I have on my iTunes movie folder about 200 movies, but on Apple TV sharing i can see only 120 movies. Is any limit , how many movies can share on Apple TV?

    iTunes sharing on Apple TV shows only 120 movies, but I have more than 200. Are any limit to show movies on Apple TV or something wrong with my sharing?

    Make sure they are all compatible
    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

  • HT3819 I have movies but no TV shows on my shared iTunes

    I can see movies from all passwords used for my iTunes. My family members share one computer. The Share is my user ID. I can watch my movies but no TV shows apear on my iPad. Since I only have this set up to watch a specific TV show it is been kind of  frusterating.
    iTunes won't let me edit the metadata so I have been downloading the episodes from the cloud and deleting them. Silly since I can watch them on my computer in the other room that is connected by wifi. Perhaps Apple likes sending out extra data?

    That means it is not fully downloaded so you are streaming it. Fully download it.

  • I'm trying to download a movie, but I keep getting message error that I have no more room and that I must delete some photos or videos in order to download more movies. How do I delete the videos in order to order more?

    I'm trying to purchase and download a movie, but I keep getting message error that I have no space. The error states that I must delete some photos or videos in order to download. I've gone to iPod then edit and deleted some videos, but I'm still getting the message. What is the correct way to delete the videos and should they still be there.

    They wont still be there if you delete them,but if you have those same photos on the main computer.

  • Im trying to buy i movie but when ever i try too it says my purchase cannot be completed my credit card is good and i have enough storage so i dont know what else to do

    I tryed to download i movie but whenever i try to it says my purchase cannot be completed my credit card is correct ive double checked and i jave enough storage for it so can someone please help me

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • I am using a mini display to hdmi with my macbook and the display works fine. However, the sound will only play iTunes such as music and movies but when i go online to watch movies on youtube it will not play any sound. Please help

    I am using a mini display to hdmi with my macbook and the display works fine. However, the sound will only play iTunes such as music and movies but when i go online to watch movies on youtube it will not play any sound. Please help

    HDCP maybe? Read this http://www.macnn.com/articles/08/11/26/displayport.drm.conflict/

  • I just created a new profile/user on my MacBook Pro. My pointer/mouse. It works fine in my older user profile, but when I go to the new profile my mac will not respond to clicks. Mouse moves but will not click. Already tried restarting and the pram zap.

    I just created a new profile/user on my MacBook Pro. My pointer/mouse on my trackpad. It works fine in my older user profile, but when I go to the new profile my mac will not respond to clicks. The Mouse moves but will not click. Already tried restarting and the pram zap. The problem starts when I log out of my main profile. I get to the login screen and my laptop stops responding to clicks. When I manage to make my way back to my main profile the mouse works perfectly.  Should I just delete the new profile and try again?

    If the modem is also a router, either use the modem in bridge and run pppoe client on the TC.. that is assuming ADSL or similar eg vdsl. If it is cable service.. and the modem is a router, then bridge the TC.. go to internet page and select connect by ethernet and below that set connection sharing to bridge.
    Please tell us more about the modem if the above gives you issues.

  • I tried to change the file type of the movie, but now I am unable to open/edit it in iMovie, HELP !

    I tried to change the file type of the movie, but now I am unable to open/edit it in iMovie, HELP !

    Thank you very much! This is exactly what I was looking for.
    I appreciate your time and effort in solving my question : )

  • I've bought a movie but iTunes crashes while trying to download it. Do you experience the same today?

    I've bought a movie but iTunes crashes while trying to download it. Do you experience the same today?

    Can you not sync your iPod with iTunes? That should get the movie onto your computer. Now sync your iPad and transfer the movie?

  • Why can I sync a movie but not TV shows on my nano (7th gen)?

    I am using iTunes 11.0 and can sync a movie (Miracle on 34th Street) to my new ipod nano 7th gen but when I try a TV Show (a Planet Earth HD episode) or even a brief video clip taken with my camara I am told that such an action is not permitted on this ipod.  So why can I sync a movie but not TV shows on my nano (7th gen)?  Thank you.

    Before you can sync video files, it must be converted into a format compatible with ipod.  If you can’t sync a video convert it by doing the following:
    In iTunes, select the video you want to convert. Do one of the following then sync again after:
    1) Choose File > Create New Version > Create iPod or iPhone Version.
    2) Choose File > Create New Version > Create iPad or Apple TV Version.
    I hope this works.

Maybe you are looking for

  • How do I install GarageBand on an eMac?

    Hello, I'm looking for assistance on installing GarageBand on my eMac desktop. I'm running OS 10.3.7, and while many other components of iLife (iTunes, iPhoto, iDVD) came pre-installed, GarageBand seemingly did not. Was it really not included on the

  • Background images with spry "horizontal menu"

    hi again I am trying to work with the spry: "horizontal menu" I want to put some background images into the menu bar not into the submenu and that is the problem: the background images appears overall what can I do ? <head> <meta http-equiv="Content-

  • ITunes - Incoming network connections error message

    Hello, I am hoping some one can help me? I have a Mac and I keep get an error message appear when I open my ITunes. The error message reads " Do you want the application iTunes to accept incoming network connections". I have changed the security sett

  • "Unlimited delivery indicator" vs "Delivery completed"

    Hi, if I set in PO creation "Unlimited delivery indicator" and "Delivery completed" in MIGO mvt 101 who wins? I think unlimited delivery, do you agree with this? Best regards

  • Performance of WITH query.

    Hi All, I have a WITH query (inline view) and when I run it against my pre-production database (millions of rows) it hangs and never comes back. However, when I run it on my development database (just a few rows), it comes back fairly quickly. So cle