Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default not repeat intro

    i need to know how can i do if i have 2 animations on my home page on the same
    movie, this first one is an intro, when it finishes it loads a second animation
    with the menu bar, the rest of the page is html, if someone is on a section of
    the site for example "about us" and want to return to the home, it plays the
    whole intro again, i don't want this to happen and also i don't want to put an
    skip intro button, if they have seen the intro it shouldn't play again, unleast
    they want to repeat it with a repeat intro button, so what i need is how can i
    make the movie to understand that the person has already been in the home page
    so it shouldn't play the intro again.

    Doctor Web Guest

  2. Similar Questions and Discussions

    1. background-repeat: repeat-x in HTML? Please help!
      I want to have a "centered page" look full screen...I have made them using layers and CSS but if I need it to work in most browsers how do I do the...
    2. Intro
      I'm going to make an intro for my site and I was wondering how i could edit a song so only part of it would play instead of the whole song? Just...
    3. how to get intro swf to play once
      hi, our website has a relatively large intro movie (2MB) that plays and once it finishes, loads the main page. is there a way for flash to...
    4. PLEASE HELP WITH FLASH INTRO!
      Hello.. I am pretty new at flash, and all I want to do is remove a picture from this flash website intro that I have, and I am having no luck! I have...
    5. Intro help
      Hey Im new to adding actions to movie clips and junk. But I have this intro that I want to refresh to my main page when its finished. Whats the...
  3. #2

    Default Re: not repeat intro

    you can make use of the local sharedObject to store a counter on the user HD,
    and something like - if( counter>0 ) { been there ,don't play } else { first
    visit, play intro }

    [url]http://www.macromedia.com/support/flash/ts/documents/local_so.htm[/url]

    my 2c's .. hth,

    Jack. Guest

  4. #3

    Default Re: not repeat intro

    ok, i'll try it, thanks a lot!!!
    Doctor Web Guest

  5. #4

    Default Re: not repeat intro

     

    in addition to Jack's reply , i happen to do the exact thing right now for a client :

    //frame action in flash movie

    function VisitCheck() {
    var myLocalSO = sharedobject.getLocal("visitRecord");
    if (myLocalSO.data.visited == null) {
    myLocalSO.data.visited = 1;
    // your action for first visit here
    trace("visit 1");
    } else {
    // your action for second and more visit to skip to diff
    // frame on the timeline
    trace("visit2");
    }
    }
    VisitCheck();

    you can test it locally , it will trace out.
    The file with info will be store on your machine as visitRecord.sol
    somewhere in temporary folders.....
    Using search on windows can locate the file, you can delete it for farther
    tests. Also take note that if you place it on first frame it might fail
    as the movie is not entirely loaded and the action won't be able to locate the
    target frame . Best to make small preloader and after loader send it to frame
    on which you make the check , from there play or skip .



    Regards


    urami_*

    <hol>
    http://flashfugitive.com/
    </hol>


    urami_ Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139