swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] flashvars and swfc


From: null
Subject: Re: [Swftools-common] flashvars and swfc
Date: Wed, 5 Nov 2008 00:14:19 -0000 (UTC)
User-agent: SquirrelMail

> Hi Matthias and others,
>
> some time ago, I wrote a message to the list asking about FlashVars
> (http://lists.gnu.org/archive/html/swftools-common/2008-06/msg00028.html).
>
> In the meantime, I have discovered how to pass FlashVars to pass
> variables to a SWF, but they don't seem to work with files by swfc
> (http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16417).
>
> How should I declare the variables so that FlashVars can be used with
> them? Or do FlashVars not work with swfc-generated SWFs at all?

Although I have only recently found swftools, I have worked with MM
produced SWFs for over 5 years, so if you will indulge me I will tell you
what I have learnt.

To use FlashVars in a MM produced file, you do not declare the variable in
the movie at all, you just use it.  You will find that if you do try to
declare a FlashVar with a var statement in actionscript it can wipe out
the value passed in.

We also found the the passing of FlashVars can be unreliable (in some, but
not all versions of a browser) unless you also pass the value in the movie
part of the embed & object tags, eg:

<PARAM NAME=movie VALUE= "movie.swf?text=hello">
<PARAM NAME=FlashVars VALUE="text=hello">
and
<EMBED src="movie.swf?text=hello" FlashVars="text=hello">

Make sure that all variables you are passing in are in all places.  Any
difference between FlashVars and param & embed can cause problems that are
difficult to debug.

Check out this KB for a bit more info.
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14253&sliceId=1

We never used the MM provided javascript to insert the movie into the html
due to the issues we had when FlashVars didn't match the param & embed, it
was quicker to write our own that just took care of inserting the
variables in all places.

Ian





reply via email to

[Prev in Thread] Current Thread [Next in Thread]