Webmaster Forum

Go Back   Webmaster Forum > Web Development > Web Design Lobby

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.


Reply
 
LinkBack Thread Tools Display Modes
Old 06-21-2009, 12:01 PM   #1 (permalink)
Contributing Member
 
AZ_Scott's Avatar
 
Join Date: 04-14-09
Location: Phoenix, AZ
Posts: 84
iTrader: 0 / 0%
AZ_Scott is liked by many
Embedding a flash player

Thanks v7n for all your good advice. I 'm trying to embed a flash player in my website to demo tunes:

http://sans-moi.com/discography.htm

I found some code on http://www.longtailvideo.com/support...lash#swfobject

<!-- Embed Flash Player here -->
<embed
src="player.swf"
width="300"
height="300"
allowscriptaccess="always"
allowfullscreen="true"
/><embed

When I cut and paste the code into my HTML its obvious I don't have all the necessary code, files, located in the proper directories. And the "longtail" website is not very clear or at least it doesn't directly apply to what I'm trying to accomplish.

A couple of questions:
1. Is this player something I can preview on my desktop or do I need to have it residing on my website to see the player?
2.Where do I get this "src="player.swf" " file from?
3. Why doesn't my Front Page/Insert menu allow me too inster a flash player? Maybe its too old a version Copyright 1995- 2001?

I've already converted the .wma files on my website to .swf. I just need a player to locate on my site to play the audio files that are there now as .wma files.

Thanks in advance for all your good assistance,

Scott

Last edited by AZ_Scott; 06-21-2009 at 12:18 PM.. Reason: Forgot a question
AZ_Scott is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-22-2009, 01:42 AM   #2 (permalink)
Meeow!
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,235
iTrader: 0 / 0%
Latest Blog:
None

Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order
Quote:
A couple of questions:
1. Is this player something I can preview on my desktop or do I need to have it residing on my website to see the player?
2.Where do I get this "src="player.swf" " file from?
3. Why doesn't my Front Page/Insert menu allow me too inster a flash player? Maybe its too old a version Copyright 1995- 2001?

1. You can preview it in an html page. You can have that html page stored locally on your computer and you can view it in any browser you want.

2. The object's src attribute is the same as the href attribute of a link. The movie/audio file can either exist on your local HDD or remote. If you want to play a remote file you can just insert the complete URL to that resource.

3. I don't know. I don't use FP that much, though the code view has intelliSense support so it's pretty easy to type the object's attributes...

4. You should be aware that the object tag is not recognized in many browsers, like FF for example, so your player will not show up in those browsers that don't support the object tag. A workaround is to add the embed element inside the object tag. A simple search for 'embed tag' will give you plenty of info about this.
__________________
...to be continued
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-22-2009, 07:21 AM   #3 (permalink)
Contributing Member
 
AZ_Scott's Avatar
 
Join Date: 04-14-09
Location: Phoenix, AZ
Posts: 84
iTrader: 0 / 0%
AZ_Scott is liked by many
Not sure what I'm doing wrong. I just get a blank box when I preview the code.

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Discography</title>
<style fprolloverstyle>A:hover {color: #00FF00; font-weight: bold}
</style>
</head>

<body bgcolor="#FFFFCC" alink="#0000FF" text="#0000FF" background="images/wave_1.png">

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="765">
<tr>
<td width="133"><em><b><font face="Comic Sans MS" color="#0000FF" size="4px">
<a href="index.htm">Home</a></font></b></em></td>
<td width="160"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF">
<a href="http://www.google.com/calendar/render?gsessionid=zL9-usAf0IGqKY68mdXz5A">Calendar</a></font></i></b></td>
<td width="171"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF">
<a href="about_us.htm">About us</a></font></i></b></td>
<td width="206"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF"><a href="blog.htm">
Chat me up</a></font></i></b></td>
<td width="223"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF">
<a href="photo_gallery.htm">Photo Gallery</a></font></i></b></td>
<td width="285"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF"><u>
<a href="Links.htm">Links</a></u></font></i></b></td>
</tr>
</table>
<!-- Embed Flash Player here -->
<embed
src="demos_band_clips/cold_duck.swf"
width="300"
height="300"
allowscriptaccess="always"
allowfullscreen="true"
/><embed

</html>
AZ_Scott is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-22-2009, 01:21 PM   #4 (permalink)
Meeow!
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,235
iTrader: 0 / 0%
Latest Blog:
None

Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order
Quote:
Originally Posted by AZ_Scott View Post
Not sure what I'm doing wrong. I just get a blank box when I preview the code.

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Discography</title>

<style fprolloverstyle>A:hover {color: #00FF00; font-weight: bold}
</style>


</head>

<body bgcolor="#FFFFCC" alink="#0000FF" text="#0000FF" background="images/wave_1.png">

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="765">
<tr>
<td width="133"><em><b><font face="Comic Sans MS" color="#0000FF" size="4px">
<a href="index.htm">Home</a></font></b></em></td>
<td width="160"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF">
<a href="http://www.google.com/calendar/render?gsessionid=zL9-usAf0IGqKY68mdXz5A">Calendar</a></font></i></b></td>
<td width="171"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF">
<a href="about_us.htm">About us</a></font></i></b></td>
<td width="206"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF"><a href="blog.htm">
Chat me up</a></font></i></b></td>
<td width="223"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF">
<a href="photo_gallery.htm">Photo Gallery</a></font></i></b></td>
<td width="285"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF"><u>
<a href="Links.htm">Links</a></u></font></i></b></td>
</tr>
</table>
<!-- Embed Flash Player here -->
<embed
src="demos_band_clips/cold_duck.swf"
width="300"
height="300"
allowscriptaccess="always"
allowfullscreen="true"
/><embed

</html>
I highlighted the errors. fix them and let us know how it works.

# btw, remember that the embed tag is not recognized by Internet Explorer.

To make it crossbrowser you should make it something like this:


Code:
<object ... attributes ...> < object params go here> <embed ...attributes... ></embed> </object>
__________________
...to be continued
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-22-2009, 01:54 PM   #5 (permalink)
Contributing Member
 
AZ_Scott's Avatar
 
Join Date: 04-14-09
Location: Phoenix, AZ
Posts: 84
iTrader: 0 / 0%
AZ_Scott is liked by many
Getting closer,

The .swf now launches and begins to play when I preview . But still no player appears. Thanks lots for finding the stupid error. Here's what the html looks like now:

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Discography</title>

</head>

<body bgcolor="#FFFFCC" alink="#0000FF" text="#0000FF" background="images/wave_1.png">

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="765">
<tr>
<td width="133"><em><b><font face="Comic Sans MS" color="#0000FF" size="4px">
<a href="index.htm">Home</a></font></b></em></td>
<td width="160"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF">
<a href="http://www.google.com/calendar/render?gsessionid=zL9-usAf0IGqKY68mdXz5A">Calendar</a></font></i></b></td>
<td width="171"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF">
<a href="about_us.htm">About us</a></font></i></b></td>
<td width="206"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF"><a href="blog.htm">
Chat me up</a></font></i></b></td>
<td width="223"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF">
<a href="photo_gallery.htm">Photo Gallery</a></font></i></b></td>
<td width="285"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF"><u>
<a href="Links.htm">Links</a></u></font></i></b></td>
</tr>
</table>
<!-- Embed Flash Player here -->
<object ... attributes ...>

<embed
src="demos_band_clips/cold_duck.swf"
width="300"
height="300"
allowscriptaccess="always"
allowfullscreen="true"
</embed ></object>
</html>
AZ_Scott is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-22-2009, 02:07 PM   #6 (permalink)
Meeow!
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,235
iTrader: 0 / 0%
Latest Blog:
None

Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order
ok, but you should add the attributes and params to that object, don't let it as it is now:
Code:
<object ... attributes ...>
__________________
...to be continued
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-22-2009, 08:44 PM   #7 (permalink)
Junior Member
 
stephenz's Avatar
 
Join Date: 06-09-09
Posts: 4
iTrader: 0 / 0%
Latest Blog:
None

stephenz is liked by many
Quote:
Originally Posted by AZ_Scott View Post
Getting closer,

The .swf now launches and begins to play when I preview . But still no player appears. Thanks lots for finding the stupid error. Here's what the html looks like now:
...
Hi, Scott. So you want to show your flash file with a player, something like a control bar, right?
Try to add "showplayer" attribute to your object code, like this:
HTML Code:
<object...> ... <param name="showplayer" value="true"> ... </object>
Since
Quote:
object tag will not recognized by ff
, and
Quote:
embed will not recognized by IE
you can use SWFObject to embed flash to web page - http://blog.deconcept.com/swfobject/
You can also check this tutorial for easy solution to add flash video to website - http://flash-video-player.blogspot.c...o-website.html
stephenz is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-23-2009, 08:22 AM   #8 (permalink)
Contributing Member
 
AZ_Scott's Avatar
 
Join Date: 04-14-09
Location: Phoenix, AZ
Posts: 84
iTrader: 0 / 0%
AZ_Scott is liked by many
Hey Stephenz,

Thanks this is the closet yet, awesome player. I've got the player in the page I can see my play list. but when I click play nothing. Its so close.

Also what's the best way to center the player?

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Discography</title>

</head>

<body bgcolor="#FFFFCC" alink="#0000FF" text="#0000FF" background="images/wave_1.png">

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="765">
<tr>
<td width="133"><em><b><font face="Comic Sans MS" color="#0000FF" size="4px">
<a href="index.htm">Home</a></font></b></em></td>
<td width="160"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF">
<a href="http://www.google.com/calendar/render?gsessionid=zL9-usAf0IGqKY68mdXz5A">Calendar</a></font></i></b></td>
<td width="171"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF">
<a href="about_us.htm">About us</a></font></i></b></td>
<td width="206"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF"><a href="blog.htm">
Chat me up</a></font></i></b></td>
<td width="223"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF">
<a href="photo_gallery.htm">Photo Gallery</a></font></i></b></td>
<td width="285"><b><i><font face="Comic Sans MS" size="4px" color="#0000FF"><u>
<a href="Links.htm">Links</a></u></font></i></b></td>
</tr>
</table>
<!-- Embed Flash Player here -->
<br /><br /><br /><br /><br /><br />
<script type="text/javascript" src="flash_player/Plh_200962362_52/swfobject.js"></script>
<div id="flashcontent">Player will show here</div>
<script type="text/javascript">
var so = new SWFObject('flash_player/Plh_200962362_52/mwplayer.swf','player','500','450','9');
so.addParam('wmode','opaque');
so.addParam('quality','high');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.write("flashcontent");
</script>
</html>
AZ_Scott is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-25-2009, 06:42 AM   #9 (permalink)
Contributing Member
 
AZ_Scott's Avatar
 
Join Date: 04-14-09
Location: Phoenix, AZ
Posts: 84
iTrader: 0 / 0%
AZ_Scott is liked by many
Hey all, check it out: sans-moi.com/discography.htm
Let me know what you think! And thanks - that tutorial @ tutorial for easy solution to add flash video to website - http://flash-video-player.blogspot.c...o-website.html

was the thing that got me up and going.

Last edited by htmlbasictutor; 06-25-2009 at 11:59 AM..
AZ_Scott is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-25-2009, 08:57 AM   #10 (permalink)
Meeow!
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,235
iTrader: 0 / 0%
Latest Blog:
None

Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order
looks great!
__________________
...to be continued
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash player for my site drew68 Web Design Lobby 7 06-14-2008 01:46 AM
Embedding Flash/Director... flignar2000 Coding Forum 7 07-28-2004 05:22 PM
Flash Music Player Brian Web Design Lobby 3 03-10-2004 09:23 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 03:18 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.