dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [F8]making a small mc play randomly

  1. #1
    Junior Member
    Join Date
    Sep 2007
    Location
    United States
    Posts
    11

    [F8]making a small mc play randomly

    basically i mad an intro, and at the end i wish to insert a movieclip that flickers and makes the screen black for 2 frames. However i wish it to do so randomly but i have absolutely no clue which script to use.
    can some1 help me achieve this?

  2. #2
    http://pat.theorigin.net cresquin's Avatar
    Join Date
    Jun 2003
    Location
    Los Angeles, CA
    Posts
    685
    PHP Code:
    var nextInterval 100;
    flickerInterval setInterval(flickernextInterval);
    function 
    flicker(){
        
    nextInterval Math.random() * 100
        myBlackScreen
    ._visible = !myBlackScreen._visible;
        
    clearInterval(flickerInterval);
        
    flickerInterval setInterval(flickernextInterval);


  3. #3
    Junior Member
    Join Date
    Sep 2007
    Location
    United States
    Posts
    11
    thanks so much cresquin this is perfect

  4. #4
    Junior Member
    Join Date
    Sep 2007
    Location
    United States
    Posts
    11
    however i do have a question
    can you please explain this to me? wish to learn what it means and what to substitute.

  5. #5

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center