Top.Mail.Ru
? ?
Javascript's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Thursday, September 15th, 2005

Time Event
3:52p
(javascript + flash) TGotoFrame goes to wrong frame
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.

<< Previous Day 2005/09/15
[Calendar]
Next Day >>
About LiveJournal.com
Image