Solved

flashvars vs passing parameters with src

Posted on 2006-10-29
3
503 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

792 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