Solved

flashvars vs passing parameters with src

Posted on 2006-10-29
3
507 Views
Last Modified: 2010-08-05
Hi,

When should one choose to pass parameters via the src attribute as in src="mymovie.swf?p1=v1&p2=v2" rather than pass parameters via flashvars?

Thanks!
0
Comment
Question by:olja
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 60 total points
ID: 17831162
there is no difference in actual whether one pass parameters via the src attributes, or passing parameters via flashvars,
in both cases, SWF will receive all variables on first frame of root..

only difference is, FlashVars is cleaner approach (and also documented by Macrodmeda) to use compare to passing variables as querystring in src attribute...


-Aneesh
0
 
LVL 3

Assisted Solution

by:mixart
mixart earned 40 total points
ID: 17840742
The only different is a caching issue...

mymovie.swf?p1=v1&p2=v2
mymovie.swf?p1=v1&p2=v3

each of the above will register as a different SWF and have to be downloaded each time.

If you used FlashVars to send those parameters, the swf would be cached as it's always the same filename, but different vars being sent...
src="mymovie.swf" flashvars="p1=v1&p2=v2"
0
 
LVL 1

Author Comment

by:olja
ID: 17848158
Thanks!
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question