To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 10-31-2009, 05:56 PM   #1
sepunx2
Junior Member
 
Join Date: Oct 2009
Posts: 4
embedding issue

Hello!
I've found a free mp3 player on a site called Flabell. I customized the player successfully, it works great, except one thing: Usually, in IE browser, the whole swf won't appear at all. Sometimes it does, but I cannot figure out the reason why. Here is a test link: http://www.artistfactory.hu/player.html
You can find the player download site here: http://flabell.com/flash/Flash-Mp3-Player-29
Thank you for spending time on this issue,
Adam
sepunx2 is offline   Reply With Quote
Old 11-01-2009, 12:16 AM   #2
Eye for Video
Member
 
Join Date: May 2008
Posts: 77
Well if the player is working correctly, you can test for a problem is in the browser or embedding code. First try to download just the player by using the address found in your code here:
http://www.artistfactory.hu/mp3player/player.swf
Player direct download seems to work fine so it's probably in the way the browser is parsing the code. Taking a look at the source code shows one huge, glaring issue. The page has no DOC TYPE declared. Without that the browser will not know which set of rules to apply to the code on the page, which can result in a lot of wierd display problems.
Validate your page here:
http://www.w3schools.com/site/site_validate.asp
It will show you all errors and also provide a link to learn more about the need of a DOC TYPE on the page.
Start with that stuff anyway...
Best wishes,
Eye for Video
www.cidigitalmedia.com
Eye for Video is offline   Reply With Quote
Old 11-02-2009, 12:59 PM   #3
sepunx2
Junior Member
 
Join Date: Oct 2009
Posts: 4
swobject?

Hi! Thank you for your reply!
You were right, my html was all messed up, so I validated it, now I only have a few problems with it, but they have nothing to do with my flash mp3 player I'm pretty sure. In fact I got closer to the solution, but I'm stuck again. Here's what I figured out:
I am unable to make the top flash menu and the flash mp3 player appear at the same time. This might be because I have an swfobject.js for the top menu and another one in a subfolder for my player. If I get rid of any of the two flash embedding codes, the other one works fine, but they never work again
I tried to change the paths of the .js files, only one flash movie appeared, no success. Than I renamed one of the .js files, and changed the name in the embedding code as well, the other movie appeared, no good news again
Is it possible, that the reason why I cannot embed both files is that I am trying to use two swfobject.js files, and this is impossible?
Is there a way to solve this issue? Should I try to use a different embed code for my menu?
Thank you for your help again, if you need me to send you my codes, or some files, please let me know!
Adam
sepunx2 is offline   Reply With Quote
Old 11-02-2009, 04:20 PM   #4
Eye for Video
Member
 
Join Date: May 2008
Posts: 77
Looks like you've got it working now. What did you change to make it work?
EfV
Eye for Video is offline   Reply With Quote
Old 11-03-2009, 03:34 AM   #5
sepunx2
Junior Member
 
Join Date: Oct 2009
Posts: 4
Not working!

No no, you got me wrong! It's not working. Sorry for my bad english...
The deal is, that i have to embed two movies (a menu and a player) in one page, and both movies have their own swfobject.js files in different places. I cannot make both movies work in IE. either the menu appears, or the player. I figured it has to do something with the two .js files, because when I started messin around with them, i could make the movies work, but never both at the same time
so I still need help with this! thank you
sepunx2 is offline   Reply With Quote
Old 11-03-2009, 04:47 PM   #6
Eye for Video
Member
 
Join Date: May 2008
Posts: 77
When I was ready to post yesterday, the player was displaying just fine, even after refreshing the page. So I thought the issue was resolved. Now today, the player loader the first time (in IE) but will not display when page is refreshed... huummmmm????
Typically you only need to path to swfobject once and you can place several Flash objects on the page, just reusing that single path to the swfobject.js file.
Some differences I've seen on your page, First, you're setting all the params for the player up in the <head> rather then down in the <div id="myContent">. I'm not sure if you can add all the params down there but that may help, such as:
Code:
so.addParam("wmode", "transparent");
Of course you'd have to figure out all the params for your application.
But compare the two uses of swfobject:
Code:
<div id="flashcontent">
  This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
   var so = new SWFObject("AFflash.swf", "AFflash", "896", "427", "8", "#DBB17B");
   so.write("flashcontent");
</script>
You name the <div> and rewrite with swfobject... so.write("flashcontent");
Without swfobject, the alt content "This text is replaced by the Flash movie." shows up.
The second use of swfobject is much different
Code:
<div id="myContent">
					<p>
						<a href="http://www.adobe.com/go/getflashplayer">
							<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/>
						</a>
					</p>	
				</div>
All the params are set in head, not in this <div> like the first one. And even when the player does not display, the alt content, which is the Adobe download button does not show.
So you might want to try a couple things, set up the player swf, similar to the menu, with
Code:
var so = new SWFObject("....
so.addParam("...
but add in the params down in the "my_content" div.
Second, I wonder why the page works sometimes and not others..?? Could the caching have anything to do with that? You might type removing the
Code:
var cacheBuster = Date.parse(new Date());
and reference to it here:
Code:
swfobject.embedSWF("player.swf?t="+cacheBuster,...
Good luck on this one!
EfV
Eye for Video is offline   Reply With Quote
Old 11-04-2009, 05:25 PM   #7
sepunx2
Junior Member
 
Join Date: Oct 2009
Posts: 4
SOLVED...hopefully:)

HEY!
Removing thecodes from the head part, and placing them to the div was a good idea, it seems like it's working now! I need to test it on another computer, but hopefully this is solved!
Thanks a lot for your help!
Adam
sepunx2 is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash Newbies

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump


All times are GMT -4. The time now is 12:20 AM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.