autoplay function with my content slider......

Discussion in 'Graphics & Multimedia' started by Morphiex, Aug 7, 2006.

  1. #1
    so i created a content slider , liek a hotbox where the most important info is on , and ive got six frames with each own image and text... it works liek 95 % correctly , but i dont knw how to make it so that it autoplays through each frame , instead people have to push the numbers that i made , but i want it to have both , the buttons and a autoplay so it geas through all the frames.....

    heres the script i use :

    --------------------------



    button1.onRelease = function()
    {
    content.text.gotoAndStop("frame1");
    }
    button1.onRelease = function()
    {
    text.gotoAndStop("frame1");
    }
    button2.onRelease = function()
    {
    content.gotoAndStop("frame2");
    }
    button2.onRelease = function()
    {
    text.gotoAndStop("frame2");
    }
    button3.onRelease = function()
    {
    content.gotoAndStop("frame3");
    }
    button3.onRelease = function()
    {
    text.gotoAndStop("frame3");
    }
    button4.onRelease = function()
    {
    content.gotoAndStop("frame4");
    }
    button4.onRelease = function()
    {
    text.gotoAndStop("frame4");
    }
    button5.onRelease = function()
    {
    content.gotoAndStop("frame5");
    }
    button5.onRelease = function()
    {
    text.gotoAndStop("frame5");
    }

    buttonnext.stop();
    buttonback.stop();

    function showFace() { this.gotoAndStop(2); }
    function hideFace() { this.gotoAndStop(1); }

    buttonnext.onRollOver = showFace;
    buttonnext.onRollOut = hideFace;

    buttonback.onRollOver = showFace;
    buttonback.onRollOut = hideFace;
    /*
    //-----------------ABOVE CODE WORKS--------------------\\

    var numTotalFrames:Number = 5;
    var numCurFrame:Number = 0;



    //var myMCL:MovieClipLoader = new MovieClipLoader();

    function loadFrame()
    {
    //myMCL.loadClip("frame" + numCurFrame, this.content);
    _root.loadClip("frame" + numCurFrame, this.content);
    }

    loadFrame();

    // ------------------<next button>--------------------\\
    this.butttonnext.onRelease = function()
    {
    if (numCurFrame < Number(numTotalFrames) -1)
    {
    numCurFrame++;
    }
    else
    {
    numCurFrame = 0;
    }

    loadFrame();
    }
    // ------------------</next button>--------------------\\

    // ------------------<prev button>--------------------\\
    this.buttonback.onRelease = function()
    {
    if (numCurFrame == 0)
    {
    numCurFrame = Number(numTotalFrames) - 1;
    }
    else
    {
    numCurFrame--;
    }

    loadFrame();
    }
    // ------------------</prev button>--------------------\\

    */
     
    Morphiex, Aug 7, 2006 IP
  2. Morphiex

    Morphiex Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    no one here that cna help me create an autoplay function ?
     
    Morphiex, Aug 8, 2006 IP