Skip to main content
October 4, 2010
Answered

Empty mc not playing external mp4

  • October 4, 2010
  • 1 reply
  • 547 views

Before the mp4 plays I have a preloader set up in Frame 1

to preload the movie and play in Frame 3.

myLoaded = Math.round(getBytesLoaded());
    myTotal = Math.round(getBytesTotal());
    myPercent = myLoaded/myTotal;
if (myLoaded == myTotal) {
    gotoAndStop(3);
} else {
    gotoAndPlay(1);
}

I have an empty mc clip that uses this code to call in an external mp4 HD video (Frame 3):

var loader:MovieClipLoader = new MovieClipLoader();
this.createEmptyMovieClip("emptyMC",1);
loader.loadClip("Yeah we’re different.mp4",emptyMC);

When tested with the mp4 neither one of these elements work.

Can I use this method to play the mp4 video or do I need to convert to another format?

This topic has been closed for replies.
Correct answer kglad

if your mp4 doesn't display correctly (or, at all) you have an mp4 setting that's not correct.

i'm not an expert in video settings but i would find out the correct settings by using google to search for:  flash mp4 settings.

1 reply

kglad
Community Expert
Community Expert
October 4, 2010

use an flvplayback component or the netstream class to play an mp4.

October 4, 2010

Hi kglad,

Thanks so much for replying.

I have everything set up in the FLVPlayback. Works great.

2 issues:

1) the external mp4 only plays with audo, no video

2) if I convert the movie to fv4 through Adobe Media Encoder I get a green line down

the right side of the video. Otherwise it plays an functions well.

I'd like to keep the videos as high quality as possible.

Any ideas?

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
October 4, 2010

if your mp4 doesn't display correctly (or, at all) you have an mp4 setting that's not correct.

i'm not an expert in video settings but i would find out the correct settings by using google to search for:  flash mp4 settings.