play mpg

  • sentme_mail
  • Newbie
  • Newbie
  • sentme_mail
  • Posts: 10

Post 3+ Months Ago

hi,
i have a short mpg movie which i want to play on my flash website.
I found that after embedding the mpg to flash, loading speed is extremely slow.
how can i make my flash site load faster?
  • roarmeow
  • Professor
  • Professor
  • User avatar
  • Posts: 861
  • Loc: BKNY

Post 3+ Months Ago

load the mpg externally...
don't include the mpg in your flash but have it in the same directory...
set up an empty movieclip with instance name "holder" and, when you want the mpg to load (either on a button press or on a certain frame)...
Code: [ Select ]
loadMovie("yourclip.mpg","holder");

if that doesn't work, put the mpg in another flash document, the exact size of the mpg and have the script be
Code: [ Select ]
loadMovie("youclip.swf","holder);

In fact, you might want to do that anyways so that you can put a preloader into the external .swf to let your user know that the situation ain't froze.

peace.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 6 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.