Solved

Making Flash FLV Player

Posted on 2007-03-27
3
698 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
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"…
It’s easy to embed any of your public Prezi presentations on your website or social network to share with others. Learn how simple it is in this tutorial.

734 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