(javascript + flash) TGotoFrame goes to wrong frame

    Date: 09/15/05 (Javascript Community)    Keywords: java

    I'm trying to make a javascript that tells a Flash movie clip which frame to go to go.
    if i use TGotoFrame, it always seems to be incorrect.

    for example

    function showcurrent(){
       mov = document.getElementById("movie1");
       alert("currentFrame in Flash before: " + mov.TGetProperty("/clip", 4))
       mov.TGotoFrame("/clip", 33);
       alert("currentFrame after : " + mov.TGetProperty("/clip", 4))
    }
    


    The first alert always sends up the current frame. The second one should send "33" because that's what I've hard-coded. Instead, it always says "34"! There is a stop action on frame 33.

    Any ideas? thanks for the help.

    Source: http://www.livejournal.com/community/javascript/76164.html

« Sending a command from one... || Content Swap Javascript »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home