A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: GoToFrame

  1. #1
    Senior Member
    Join Date
    Mar 2000
    Posts
    174

    Angry

    I need a way to let Javascript tell flash wich frame to go to. I'm using the GoToFrame() command as seen on Moock. Somehow this won't work. Can anyone help me out ? The script I'm using is shown below. Thanx !

    var moviename = "Start";
    var movie_ready = "false";


    function movieobject(moviename)
    {
    if (navigator.appName.indexOf ("Microsoft") !=-1)
    {
    return window[moviename]
    }

    else
    {
    return document[moviename]
    }
    }


    function gotoframe()
    {
    if(movie_ready == "false")
    {
    while(movie_ready == "false")
    {
    if(movieobject(moviename).PercentLoaded() == 100)
    {
    movieobject(moviename).GoToFrame(37);
    movie_ready = "true";
    }
    }
    }

    else
    {
    movieobject(moviename).GoToFrame(37); }
    }


    ------------------
    Shaman@Operamail.com

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    195

    Post

    In order for JScript to talk to Flash, you need to make some small changes to your EMBED and OBJECT tags. If you have not already made those changes, check the moock page on the FS Command.


    <EMBED src="/cgi-bin/ubb/Members/sigs/00000205.swf" quality=high WIDTH=500 HEIGHT=50 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED>

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