Solved

Making Flash FLV Player

Posted on 2007-03-27
3
694 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
The goal of the tutorial is to teach the user how to how to record live broadcast.
In addition to being a great web-based presentation tool, Prezi also makes it easy to save your presentation as a PDF to share with others as well. Learn how in this tutorial. Select the share icon from the top menu in your Prezi editor: Select "D…

808 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