Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthormikyweb
    • CommentTimeMay 19th 2008
     
    Hello,

    thanks to all, the forum is very good !

    i have a question:
    i have a swf file that is build width captivate 3. This file il loaded in to an another flash file that command the captivate.

    i have see the rdcmndGotoFrame command for go to a specific frame, but i want to go a specific slide.

    how i can do it?

    thanks
    • CommentAuthorphilip
    • CommentTimeMay 19th 2008
     
    There is an unpublicized public variable named "rdcmndGotoSlide". I haven't tried it myself, but it appears to use an index number to determine which slide to navigate to (NOT a slide name).

    From the Captivate ActionScript class "captivate.monalisa.rdMovie":


    if (_loc1.m_movie_mc.rdcmndGotoSlide >= 0)
    {
    var newSlide = _loc1.m_movie_mc.rdcmndGotoSlide;
    _loc1.m_movie_mc.rdcmndGotoSlide = -2;
    bToChangePause = true;
    _loc1.gotoSlide(newSlide, true);
    _loc1.m_movie_mc.rdinfoCurrentFrame = _loc1.m_currFrame;
    _loc1.m_soundHandler.ResetSounds(true);
    _loc1.playerPauseMovie();
    } // end if


    the above code references the method "gotoSlide()"; the passed variable "newSlide" is a number representing the index in a slide array named "m_slideData_array" (as shown below):


    function gotoSlide(index, force)
    {
    var _loc1 = this;
    var _loc2 = index;
    if (_loc2 >= _loc1.m_slideData_array.length)
    {
    _loc2 = _loc1.m_slideData_array.length - 1;
    } // end if
    if (_loc2 < 0)
    {
    _loc2 = 0;
    } // end if
    if (_loc1.m_quizPlaybackController)
    {
    var currentSlide = _loc1.m_quizPlaybackController.getSlide(_loc1.m_currSlideIndex);
    var _loc3 = _loc1.m_quizPlaybackController.getSlide(_loc2);
    var errStr = _loc1.m_quizPlaybackController.allowedToGoToSlide(currentSlide, _loc3);
    _loc1.m_quizPlaybackController.enableReviewMode(_loc3);
    if (errStr == "")
    {
    _loc1.m_quizPlaybackController._gotoSlide(_loc3, true);
    _loc1.gotoFrame(_loc1.m_slideData_array[_loc2].m_playOnFrame + 1, true, force);
    }
    else if (errStr == "QUIZ_ERROR_MUST_START_QUIZ_TO_SEE_SCORE_SLIDE")
    {
    _loc1.nextSlide();
    }
    else
    {
    return;
    } // end else if
    }
    else
    {
    _loc1.gotoFrame(_loc1.m_slideData_array[_loc2].m_playOnFrame + 1, true, force);
    } // end else if
    _loc1.playerResumeMovie();
    return;
    } // End of the function



    so you might be able to jump from slide to slide using index numbers, but keeping track of slide numbers could be more trouble than it's worth.

    - philip
    • CommentAuthormikyweb
    • CommentTimeMay 19th 2008
     
    ok thank you very much. i test it