Multimedia and Web Design Firm
Flash replacement

Controls not showing in FLVplayback FLV Playback

A very quick post today but this might be helpful to fellow Flash’rs.

I couldn’t get the controls of FLVPlayback to show when uploaded on a live server.

After an hour or so of looking for the solution, i worked it out.

The skin / controls are published in its own .swf, that is quite straight forward.

What you need to do however, is place the MojaveExternallAll.swf ( in my case, but can be any skin ) in the same directory as the file producing the swf code. This was showreel.php found in the root directory. By simply moving your skin file in there ( the root directory), will solve the problem and the FLVPlayback controls will now show. This is because of the way SWF Object works. There is a method that you can edit the component file, but for the sake of one tiny .swf file in the wrong directory, i dont think its worth the hassle. I hope this is helpful, if anyone is having the same problem.

23 Responses to “Controls not showing in FLVplayback FLV Playback”

  1. Ryan Says:

    Not always the case. My controls aren’t showing but the .html file and the video swf, as well as the skin swf, are all in the same folder/directory, all uploaded, but won’t show online.

  2. Craig Chesterfirled Says:

    Same here Ryan.

    Craig

  3. Ben Sky Says:

    Worked for me thanks for the solution!

  4. Andy Brown Says:

    The control swf, MojaveExternallAll.swf or whatever you’re using, needs to be in the same folder as the file requesting the main swf. This may or may not be the root directory of the server.

    [quote]
    controls are loaded relative to the page, not the player.swf file. so if you have the page in www, player in www/images and controls in www/images, it doesn’t find it. controls have to be in www.
    [/quote]

    Thanks scott_allen13
    http://www.actionscript.org/forums/showthread.php3?t=128817

  5. Andy Brown Says:

    OK – after further investigation I’ve found how you set where the FLVPlayback component loads its controls (skin) from.

    If you go to component inspector in flash (from the Window menu), then select the FLVPlayer on the stage you can access the properties.

    Parameters->skin lets you specify a custom skin URL. This path is taken as relative to the calling page, and is blank “” as default.

    I set mine to something like “/images/flashfiles/yourownserverpathhere/ClearOverPlaySeekMute.swf”

    Now of course make sure the skin.swf IS actually there and it is a valid server path. When you run the player online it will work.

    NOTE it will NOT work anymore when you run the fla, or play your files anyway other than from the server.

  6. Scott Mackenzie Says:

    Dude you just saved my ass! Was taking me ages to work out what was going on. Cheers.

  7. Stefan Says:

    fine. But what if the player-SWFs and the skin.swf is located on server A and a server B embeds it as HTML object ? Flash doesn’t seem to load additional libs from an external source.

    I played around with lots of controls, embed mechanisms in Flash but not one of my trials was successful.

    Ideas anyone ?

  8. Stefan Says:

    found a solution myself:

    don’t embed the FLVPlayback control in the stage manually. Spawn an instance in AS, set the properties and skin it with a file-pointer to an external (http-) source. If that doesn’t work, give Security.allowDomain( sourceDomainOfPlayerWithouthttp:// ) a try. Here’s some code for nicey looking player that runs everywhere:

    Security.allowDomain( “location.of.your” );

    var playerSkinURL: String = “http://location.of.your/skin.swf”;
    player = new FLVPlayback();
    player.autoPlay = false;
    player.skin = playerSkinURL;
    player.scaleMode = VideoScaleMode.EXACT_FIT;
    player.volume = 0.5;
    player.skinBackgroundColor = 0×666666;
    player.skinBackgroundAlpha = 0.6;
    player.skinAutoHide = true;
    player.skinFadeTime = 0.5;
    player.x = 0;
    player.y = 0;
    player.skin = playerSkinURL;
    player.visible = true;
    player.getVideoPlayer(player.activeVideoPlayerIndex).smoothing = true;
    addChild(player);

  9. DT Shults Says:

    Fantastic! I’ve been struggling with this issue for some time, and I’ve even resorted to using other video player components in the past. I’m very happy I can count on the built in FLVPlayback component now.

    Thanks!

  10. Dan V Says:

    Legend! I’ve been stuck on this for a few days now. I new it had something to do with the location of the skin, just took someone smarter than me to figure it out!
    Thanks!

  11. Aryi Says:

    Thank you! I was going nuts over this

  12. ezFlash Says:

    Worked like a charm. Here’s to Media Surgery, saved my ass with this solution!

    Thanks a million!

  13. Brent Says:

    You saved me a lot of headache.
    Thank you!

  14. Tabby Says:

    Thanks, your solution worked beautifully and saved me a lot of time/stress. :)

  15. CSS Gallery Says:

    You guys could just load the skin using action script. Just named the FLVPlayBack instance, let say we name it “video”.

    Then just add this code to load the skin.

    video.skin = “/swf/SkinUnderAll.swf”

  16. Richard Birket Says:

    Thanks a million. Been struggling with this for the last 24 hours!

  17. Terry Says:

    I’m trying this but it doesn’t seem to work. Not sure what i’m doing wrong. I have that code in my Actions layer with the component in the library not on the stage. For Security.allowDomain I have the domain where the swf & flv resides… eg http://www.hyperweb.ca.. correct?

  18. bjorn simundson Says:

    I was having the same problem which was driving me crazy…
    What fixed it for me was manually dragging my ClearOverAll.swf file into the same folder as the HTML. (I generally hold .swf in the images folder.) The normal .swf was working fine, just that the controls wouldn’t appear. By pulling the control swf out of the images and into the html folder, it solved the problem.

    Thanks all!
    B

  19. Cheriana Says:

    Thanks so much for this tip – it fixed the issue I was having! I was working with a joomla site and never thought that the swf files couldn’t be in a subdirectory…thanks so much!

  20. EM Says:

    This really worked! I was racking my brain trying to figure this out, almost had to go back to the old AC_RunActiveContent.js (didn’t want to), but this solved it! Thanks so much!

  21. Marcus Says:

    Bjorn Simundson, I love ya man… I was trying to make a SE friendly flash intro and couldn’t get the skin up there… Turns out all I needed was a little directory debugging…

    It works, just put your skin inside the same folder as your HTML or PHP or whatever you use, and it will do wonders… Thanks Bjorn

  22. Marcus Says:

    BTW, my site is thesixlongwells(dot)com/marcus/aa/site/

  23. Marcus Says:

    So check out my source for SE friendly flash intros: thesixlongwells.com/marcus/aa/site/

Leave a Reply

Telephone:

+44 (0)1224 582948

Office Address:

60 Nelson Street,
Aberdeen,
Scotland,
AB24 5ES