Be a Supporter!

Flash doesn't show up in html

  • 264 Views
  • 5 Replies
New Topic Respond to this Topic
schlemiel-minded
schlemiel-minded
  • Member since: Oct. 14, 2003
  • Offline.
Forum Stats
Member
Level 28
Blank Slate
Flash doesn't show up in html Oct. 22nd, 2008 @ 07:24 AM Reply

Hi, i made a music player in Flash which randomly plays music from 7 songs for on my website. The songs are streamed in movieclips. When i just open the sfw on my computer, it works perfect, but when i publish it to html, it just gives me a white screen.
I downloaded the newest Flash player, i tried it with different browsers, i tried it with html publish codes from older versions of Flash, nothing worked.
How can i solve this?

I can explain how the flash works for if that's important:
FRAME 1 sets variables a,b,c,d,e,f,g all to 0
FRAME 2 has a movieclip with this code in it:
onClipEvent(enterFrame){
r=Math.round(Math.random()*7+0.5)
if(r==1&&_root.a==0){_root.gotoAndStop(3 );};
if(r==2&&_root.b==0){_root.gotoAndStop(4 );};
if(r==3&&_root.c==0){_root.gotoAndStop(5 );};
if(r==4&&_root.d==0){_root.gotoAndStop(6 );};
if(r==5&&_root.e==0){_root.gotoAndStop(7 );};
if(r==6&&_root.f==0){_root.gotoAndStop(8 );};
if(r==7&&_root.g==0){_root.gotoAndStop(9 );} }

THE REST OF THE FRAMES include movieclips with streamed songs in it, when the songs end there is a keyframe which makes one of the a,b,c... etc variables 1 instead of 0. That is so that that same songs won't be played twice in a row, the flash will play all songs but everytime in a different order.

thanks for you answers

Fion
Fion
  • Member since: Aug. 21, 2005
  • Offline.
Forum Stats
Member
Level 39
Blank Slate
Response to Flash doesn't show up in html Oct. 22nd, 2008 @ 07:40 AM Reply

It really sounds like your problem is in the embedding of the flash and not the actual flash itself. Have you tried publishing the flash as an HTML file from within Flashes publish settings? Try that out and see if it works.


.

BBS Signature
schlemiel-minded
schlemiel-minded
  • Member since: Oct. 14, 2003
  • Offline.
Forum Stats
Member
Level 28
Blank Slate
Response to Flash doesn't show up in html Oct. 22nd, 2008 @ 08:00 AM Reply

yes I did. It doesn't show it.

reefermadness
reefermadness
  • Member since: Apr. 13, 2007
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to Flash doesn't show up in html Oct. 22nd, 2008 @ 10:58 AM Reply

Do you have the sound files embedded? if you have maybe thats your problem as it might has to load the entire flash file, wich can be quite large with seven three minute long mp3 files

schlemiel-minded
schlemiel-minded
  • Member since: Oct. 14, 2003
  • Offline.
Forum Stats
Member
Level 28
Blank Slate
Response to Flash doesn't show up in html Oct. 22nd, 2008 @ 01:04 PM Reply

I let it load for a very long time, while that actually shouldn't be necessary because it was on my own computer and then it should load almost immediately, like it does when i open the plain swf file.

Rohedin
Rohedin
  • Member since: Feb. 19, 2006
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to Flash doesn't show up in html Oct. 22nd, 2008 @ 02:01 PM Reply

Not too sure if it's the actually MP3 files causing the problem, but if it is you might want to check this.


...