/t5/animate-discussions/dynamically-writing-flashvars/td-p/116432Nov 03, 2008
Nov 03, 2008
Copy link to clipboard
Copied
Can anyone tell me how to get a flashvar into flash without
using javascript? Is it even possible anymore?
I have a flash movie embedded in an aspx page that needs to
dynamically load an xml file based on a parameter in the
querystring. Everywhere I look all I see are posts telling me that
the only way to do it is to add the flashvar to the
AC_FL_Runcontent script, however I can't be certain that all my
clients will have javascript enabled and I know at least a few who
are not allowed to have it turned on.
When I use the object and embed tags and add my flashvar
param and inline tag I get nothing in the loaderInfo object in my
movie.
I got it working, but I noticed a little hiccup. The
Event.COMPLETE event never seems to fire in IE7 when you add your
event listener to the loaderInfo object.
I added the listener to Event.INIT and now it seems to be
working fine. Thanks again for the link to the tute!
Interesting. I simply copied the code from the link you send
me wholesale. The author is using an event to verify the loaderInfo
object is completed. I don't know what the deal with that is, but
either way it works. Thanks again.