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: Pablo Rodríguez
Subject: Re: [Swftools-common] flashvars and swfc
Date: Wed, 05 Nov 2008 22:49:55 +0100
User-agent: Thunderbird 2.0.0.17 (X11/20080926)

Hi Ian,

many thanks for your reply.

Ian Wilkinson wrote:
Pablo Rodríguez wrote:

[...]

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?


Hi,
I sent this yesterday, but it hasn't turned up so excuse me if you receive this twice.

Fine. I received both, although the first message needed longer to arrive.

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.

Thanks, this is the part that I needed. It didn't work for me because I declared the variable and assigned them a value in the AS.

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

Thanks for the explanation. It works fine now.


Pablo




reply via email to

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