Solved

Making Flash FLV Player

Posted on 2007-03-27
3
691 Views
Last Modified: 2012-05-05
I've made a little flash file that displays a specified, external FLV file. That's all good and it works for that FLV. I want to be able to reuse this SWF file so I can play different FLV files.

I'd like to pass the filename in as a parameter in the HTML... But I don't have a clue how!

Can somebody walk me through this process? I'm not comfortable in Flash, so I might need beating with a stick (or having things explained to me -- whichever has the intended effect faster) if you think I'm being stupid.
0
Comment
Question by:OliWarner
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
Zeffer earned 500 total points
ID: 18805311
you can do it by attaching the url on the end of the movie name in the object and embed code (they are called query strings)..eg
in the object code..
<PARAM NAME=movie VALUE="live.swf?url=http://www.yoursite.com/your.flv">
and in the embed code..
<embed src="live.swf?url=http://www.yahoo.com/your.flv"

in your flash there is now a variable available on load called url
so on the first frame of the main timeline..
this.onLoad = function(){
getURL(_root.url, "_root.xxx");    //xxx is the target..which is your flv player..so this is the path to your player
 }

Z


0
 
LVL 23

Expert Comment

by:Zeffer
ID: 18805319
sorry they should both say..  yoursite.com/your.flv
not yahoo etc   :)
Z
0
 
LVL 16

Author Comment

by:OliWarner
ID: 18805541
Thanks =) Just what I needed
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
The goal of the tutorial is to teach the user how to how to record live broadcast.
Add visuals to your Prezi to keep your audience engaged. Learn how to embed images, edit them, and more in this video micro tutorial. Select "Insert" from the top menu in your Prezi editor: Select "Image": A toolbar will pop in from the right …

919 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

21 Experts available now in Live!

Get 1:1 Help Now