Groups | Blog | Home
all groups > flash (macromedia) > november 2005 >

flash (macromedia) : SetVariable Broken, but PercentLoaded works?!


doenermord
11/4/2005 10:16:29 PM
Has anyone ever run into a case where you're trying to talk to Flash via
Javascript and it suddenly breaks on you? I'm having an issue where I'm trying
to call myMovie.SetVariable(param,param) and it doesn't work. The really weird
thing is that some methods, like PercentLoaded, do work. I can tell it's
loaded, I can call TotalFrames(), but I can't get it to set a variable or call
Play() correctly.

For platform reasons, I can't pass in variables any other way. Trust me I'd
prefer pass these params in the object tag, but I can't, so I'm resorting to
this old JS bridge. Anyone have ideas?

IE doesn't throw an error, it just silently dies. Firefox says "Error calling
method on NPObject!" I've had this working before, but for some reason it's
dying now and if anyone's run across this I'd surely appreciate a lead as to
why this is happening.

thanks!
mcavenjp NO[at]SPAM gmail.com
11/8/2005 12:01:01 PM
I assume by "For platform reasons" you mean it's an ASP.Net page?

In my experience this is a timing issue. Most likely, you're trying to
call the SetVariable function before your Flash movie has completely
loaded.
doenermord
11/23/2005 12:00:00 AM
AddThis Social Bookmark Button