[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] flashvars and swfc
From: |
Ian Wilkinson |
Subject: |
Re: [Swftools-common] flashvars and swfc |
Date: |
Wed, 05 Nov 2008 10:14:22 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217 |
Pablo Rodríguez wrote:
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?
Hi,
I sent this yesterday, but it hasn't turned up so excuse me if you
receive this twice.
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
--
x10 via Web or Wap?
http://www.sgtwilko.f9.co.uk/bluelava/