Solved

Making Flash FLV Player

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Not only does Prezi allow you to create non-linear presentations, it also makes it easy to apply transition animations between your frames. Learn how to apply a fade-in transition to select items and entire frames in this tutorial Select "Edit Path"…

746 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

13 Experts available now in Live!

Get 1:1 Help Now