Jump to content

Code problem


Arithus Lion
 Share

Recommended Posts

Check this code out... I was wondering what I could add to it in order to make it play "only" when you click on the play button. I don't want it to play as soon as you enter the page.<EMBED src="http://lads.myspace.com/mini/mini.swf?b=NDIzNDA5NA==&o=NDUwNzMzNjk=&d=MTE0NjY2NzY2Mw==&u=aHR0cDovL211c2ljcGxheWVyLm15c3BhY2UuY29tLw==&i=Njk5MzUxMTY=&a=RmFsc2U=" quality=high WIDTH="295" HEIGHT="51" NAME="mp3player" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>

Link to comment
Share on other sites

Firstly you should not use the embed tag anymore as it is depricated now, the object tag should be used instead.Then to your question I am not sure if it works with flash player I only used it with windows media player. I think for flash you have to do something in the flash file but I am not sure as I dont use Flash.<param name='autoStart' value='0' />

Link to comment
Share on other sites

<EMBED src="http://lads.myspace.com/mini/mini.swf?b=NDIzNDA5NA==&o=NDUwNzMzNjk=&d=MTE0NjY2NzY2Mw==&u=aHR0cDovL211c2ljcGxheWVyLm15c3BhY2UuY29tLw==&i=Njk5MzUxMTY=&a=RmFsc2U=" quality="high" WIDTH="295" HEIGHT="51" NAME="mp3player" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>

i inserted the attribute high between quotes because without them it may cause issues

Link to comment
Share on other sites

Firstly you should not use the embed tag anymore as it is depricated now, the object tag should be used instead.Then to your question I am not sure if it works with flash player I only used it with windows media player. I think for flash you have to do something in the flash file but I am not sure as I dont use Flash.<param name='autoStart' value='0' />

Thanks I'll try it.So instead of <EMBED> I should use "<object>" ok So why is it depricated? My knowlage is mediocre at best right now so thats why I ask.
Link to comment
Share on other sites

<EMBED src="http://lads.myspace.com/mini/mini.swf?b=NDIzNDA5NA==&o=NDUwNzMzNjk=&d=MTE0NjY2NzY2Mw==&u=aHR0cDovL211c2ljcGxheWVyLm15c3BhY2UuY29tLw==&i=Njk5MzUxMTY=&a=RmFsc2U=" quality="high" WIDTH="295" HEIGHT="51" NAME="mp3player" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>

i inserted the attribute high between quotes because without them it may cause issues

Issues with what exactly? Does it effect the code in a similar way as it would if I didn't put an end tag after a code?Thanks!
Link to comment
Share on other sites

Thanks I'll try it.So instead of <EMBED> I should use "<object>" ok So why is it depricated? My knowlage is mediocre at best right now so thats why I ask.

They have depiciated the embed tag as it is no longer needed the object tag does the same job and a whole lot more too.With them clamping down on all this sloppy coding that was just one of many things that had to go.Here is an article on how Flash objects should now be added to the page.http://www.alistapart.com/articles/flashsatay/This is it without progressive download you will have to set the height and width in CSS for it to be valid too thats why I have not added it to this example.
<object type="application/x-shockwave-flash" data="filename.swf"><param name="movie" value="filename.swf" /><param name="autostart" value="0"/></object>

Link to comment
Share on other sites

They have depiciated the embed tag as it is no longer needed the object tag does the same job and a whole lot more too.With them clamping down on all this sloppy coding that was just one of many things that had to go.Here is an article on how Flash objects should now be added to the page.http://www.alistapart.com/articles/flashsatay/

Ok well I guess I can cut embed out of all my stuff now. I'd like to be as efficiant as possible. I don't want my site to be all jacked up and slow. Who exactly decides this stuff? Who is the "they" or "them"
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...