Solved

flashvars vs passing parameters with src

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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 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.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now