Center flash video player on page

Hi everyone,
I have a webpage that I inserted a flash video file on the
page. The player is 320x240 and is the only thing that will appear
on the page. I want to center the player inside the div that it is
in. I have tried setting the div margins in CSS and it looks
correct when I do this but when I preview the page it still appears
on the left side of the div. Is there a way that I can center this
that I am missing? Here is a link to the page to look at.
http://www.ebcardiac.com/Video/index.html
Thanks,
Robert

Hello,
Replace the H1 tag around the flash video with a div tag.
(The H1 is
essentially useless here)
Assign the div a class. I named it "centerflash" for this
example.
<div class="centerflash">
<script type="text/javascript">
AC_FL_RunContent(
'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','widt h','342','height','291','id','FLVPlayer','class','videoPlayer','src','FLVPlayer_Progressiv e','flashvars','&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=minInvasiveVideo&au toPlay=true&autoRewind=true','quality','high','scale','noscale','name','FLVPlayer','salign ','lt','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version =ShockwaveFlash','movie','FLVPlayer_Progressive'
); //end AC code
</script><embed width="342" height="291"
type="application/x-shockwave-flash"
pluginspage="
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
salign="lt" name="FLVPlayer" scale="noscale" quality="high"
flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=minInvasiveVideo&autoPl ay=true&autoRewind=true"
src="FLVPlayer_Progressive.swf" class="videoPlayer"/>
<noscript>
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
width="342" height="291" class="videoPlayer"
id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf"
/>
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars"
value="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=minInvasiveVideo&autoPlay=t rue&autoRewind=true"
/>
<embed src="FLVPlayer_Progressive.swf"
flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=minInvasiveVideo&autoPl ay=true&autoRewind=true"
quality="high" scale="noscale" width="342" height="291"
name="FLVPlayer"
salign="LT" type="application/x-shockwave-flash"
pluginspage="
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
/>
</object>
</noscript>
</div>
Add this to your CSS:
.centerflash {
width: 342px;
margin: 0px auto;
Take care,
Tim
"ryonker" <[email protected]> wrote in
message
news:[email protected]...
> Hi everyone,
>
> I have a webpage that I inserted a flash video file on
the page. The
> player is
> 320x240 and is the only thing that will appear on the
page. I want to
> center
> the player inside the div that it is in. I have tried
setting the div
> margins
> in CSS and it looks correct when I do this but when I
preview the page it
> still
> appears on the left side of the div. Is there a way that
I can center this
> that
> I am missing? Here is a link to the page to look at.
>
http://www.ebcardiac.com/Video/index.html
>
> Thanks,
> Robert
>

Similar Messages

  • Multiple Flash Videos on 1 Page

    Hi All
    If i were to put 4 flash videos into a page, by using the
    'import flash video' function in DW CS3 - will they all load at the
    same time, or only load when the user clicks play?
    Many Thanks
    JP

    Im not sure I understand, however I have a page up with 2
    flash movies, but
    I timed them by extending the first frame on the one to not
    start any motion
    until the first one is coming to an end.
    So they both in essence start at once, but the one on top
    plays out, as it
    is coming to an end, the one in the body begins to move...
    http://www.unitexservices.com
    Dont know if that helps you or not.
    Gary
    "thewakeplace.com" <[email protected]> wrote
    in message
    news:g45nrn$3ee$[email protected]..
    >I have a bank of videos that i want to put onto the site.
    >
    > Originally, i was going to do an XML list through a
    flash player. But i
    > don't
    > have the flash server, and i don't know enough of flash
    to do it another
    > way
    > (and i can't find a tutorial).
    >
    > So i have 20+ videos that are Quicktime and im HD, that
    i have converted
    > into
    > flash, as it adds a nice lat compression to make them
    smaller. From there
    > i
    > want to fit around 4 to 5 videos on a page one after
    each other (kind of
    > like
    > vimeo.com).
    >
    > So what i need to know is if i put 5 videos on a page,
    when the user goes
    > onto
    > that page, will they all start to play and will the page
    start to stream 5
    > vids
    > at once.
    > OR - will they only stream WHEN the user clicks the play
    button on each
    > one?
    >
    > Does that make more sense?
    >
    >
    >

  • Hyperlink to Flash Video Player

    Does anyone know how to push a specific video to a Flash
    video player playlist? I'm using the following Flash video
    player/pplaylist application. Any help would be great!!!
    Creating a Dynamic Playlist for Progressive Flash Video
    http://www.adobe.com/devnet/flash/articles/prog_download.html

    Without seeing this is a guess, but if you are linking to the
    swf directly
    then that is what happens. Create a new page with the movie
    on it and link
    to it, then it should size correctly.
    Gary
    "SCBrazil" <[email protected]> wrote in
    message
    news:gd0qbn$dr$[email protected]..
    > Hi,
    > I have developed a small Flash movie for one of the
    products on my site
    > which
    > I want to open from a link. The link and video work fine
    but it opens in a
    > full
    > size browser window, which makes the photos look pretty
    ugly. I want the
    > link
    > to open only the Flash Player so that the video is
    displayed in the size
    > it was
    > made (700px by 225px.)
    > Anyone know how I can do this? There must be a way,
    would the setting be
    > in
    > Flash CS3 or DW CS3?
    > Thanks
    >

  • Flash video in php page

    Hi
    i insert flash video to php page and it's ok but.
    i want to ask if i could i insert any video to it liek avi or
    mpg or any and it will be converted when upload automatically
    thanks in advance.

    macnux wrote:
    > Hi
    > i insert flash video to php page and it's ok but.
    > i want to ask if i could i insert any video to it liek
    avi or mpg or any and it will be converted when upload
    automatically
    >
    > thanks in advance.
    >
    It can be done, since youtube does it. But that requires
    heavy-duty programming and I suspect some
    special server components (maybe Flash Server must be
    installed too or something).
    In any case that's not something you can do with Dreamweaver
    or without a thorough knowledge of
    server-side programming.
    An alternative is to create a swf file in Flash that will
    import linked media. You can link
    quicktime videos dynamically and play them in the swf.
    I'm not sure what other video formats are supported. You
    might want to look into the Flash Media
    Player component.
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    An Ingenious WebSite Builder:
    http://sitelander.com

  • Controlling the Dreamweaver Flash Video Player

    Hi all,
    I'm using the Flash video player that comes with Dreamweaver
    CS3 (FLVPlayer_Progressive.swf) to play a video on one of my web
    pages, and it works fine. However, I'd also like to be able to
    control playback using some HTML buttons below the video. I've been
    Googling for ages now looking for documentation on how to use
    JavaScript to control the player, but I can't find anything. Does
    anyone know where I could find it?
    Thanks,
    Russ

    Html doesn't control flash players. The skins, controls,
    buttons, etc are
    referenced by the SWF file. You would have better control
    over your video
    player if you compiled the FLV/SWF in a Flash program instead
    of DW.
    Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com

  • No buttons in Flash video Player

    Hello,
    i can't see navigation buttons in my Flash video player.If I
    run the swf alone there are all the buttons but in my page is onli
    the video picture but not buttons.What should I do? Can somebody
    help?

    I am having the problem mentioned above and would really
    appreciate a solution. Here's my set up...
    Running a Flash CD Rom in IE, user clicks a Start.html file
    to fire up the presentation in their default web browser.
    I have a root file loading a bunch of movies on various
    levels. The video player loads on level 4 above a bunch of other
    buttons on level 3.
    I disable the buttons underneath by including a big Invisible
    button on the bottom layer of the video .swf and inserting a script
    to disable the hand cursor. (So that users can't click buttons that
    reside underneath where my video is playing.)
    That all works great, the only thing is that the controls in
    the skin I'm using become disabled. I'm using a premade skin in
    Flash 8, the kind that pop the controls up automatically when you
    roll over the video, and go away when you don't.
    Everything works great when I Ctrl+Enter and test the file,
    but when I run the whole thing together in IE, the video controls
    never pop up.
    Any suggestions? Thanks.

  • Tracking via google analytics & Flash Video Player Component

    Hi,
    I'm trying to track when a user plays a video on our home
    page. I'm using the standard Flash Video Player component and
    Dreamweaver to hook it up. In order to get the player to call
    Google analytics on play I think that I need the FLA for this
    player but I can't seem to figure out how to access it. Any
    suggestions?
    Thanks
    Tony Lopez

    Hi,
    I'm trying to track when a user plays a video on our home
    page. I'm using the standard Flash Video Player component and
    Dreamweaver to hook it up. In order to get the player to call
    Google analytics on play I think that I need the FLA for this
    player but I can't seem to figure out how to access it. Any
    suggestions?
    Thanks
    Tony Lopez

  • Flash Video Player, PHP, and XML

    I'm the visual designer for a web site "Global Oneness
    Project" (
    http://www.globalonenessproject.org/videos.php
    ) that's currently "streaming" progressive download quicktime
    movies. The individual video pages (where you view a video) is
    currently a php template that calls a MP4 from an XML file. Our
    goal is to switch the embedded quicktime videos to embedded Flash
    videos that play progressive download movies.
    Ideally I would like to create a single Flash Video player
    (SWF) thats embedded in a single php template (video.php), but will
    play different videos depending on what state of the php is being
    called. Basically, I want the site to work exactly like it does now
    but with Flash instead of Quicktime.
    I'm assuming that this will be created with some combination
    of an external "AS" file, the XML data and the PHP logic but can't
    even begin to get my mind around what needs to be done.
    I found a few examples of how to play multiple videos in a
    single player, but all of the examples use a playlist that's
    embedded in the SWF. The video player will only be used for player
    control and the user will choose the movie by selecting the correct
    PHP page within the HTML.
    I'll be thankful for any direction you all can give or even a
    Flash developer who would be able to take this project on.
    Thanks,
    Shawn
    [email protected]

    yes, it's possible.  and there are some similarities with an xml image gallery.  the main difference would be using something like an flvplayback component to display the videos as opposed to using a target movieclip to display the large image in an image gallery.

  • Widows Media Center (msn video player) 'Video Error' box

    Hi
    I believe this is a know problem, which is needs an updated to fix the software / player. Is there one on the way?
    When I try to play an internet video in Widows Media Center (msn video player) I get 'Video Error' box (blue box in right hand corner) saying 'There was a problem accessing this video. Try viewing a different one'. The video does play, but with the error message over it. When you click the okay option in the blue box the video stops playing. This happens on every video I select.
    I've reinstalled Windows Media Center, run all updates and updated flash. Knowhow.com advise that this is a known problem with no solution, and needs an update to fix it. Can you find out when there will be a fix?
    Windows 7 Home Premium, Service Pack 1
    HP Touchsmart 520-1030uk
    Intel Core i3-2120 CPU 3.30GHz
    4.00 GB
    64-bit

    Hi,
    According to your description, it probably there’s a conflict between how the Windows 8 HDMI drivers handle 7.1 and how Media Center handles sound.
    You can check the Windows Update, if there is any updates relate with HDMI Audio Drivers, you can install it, then this problem will began.
    Also you can go to ASRock official site to download the latest HDMI driver for test.
    If still there is no use, you may need to contact your machine manufacture for further assistance.
    In addition, because this problem relate with WMC, I would recommend you access the site below to ask the question for further help.
    http://experts.windows.com/f/
    Roger Lu
    TechNet Community Support

  • Flash Video Player Need Help

    Hello everyone I am hoping someone here can help me.  I am going to school and I have an action scripting class.  For my final project we have to make a flash video player with a custom skin to upload to our websites. We did something similar to this with our first project which we made a player where the movies where embedded in the file itself but this is supposed to be a youtube like flash player where we can call in the files from another source.   
      We kind of got pressed for time and were not able to go into detail with this project so the teacher gave us the code and I put it in exactly how it should be but im pretty sure i have something misplaced or I am missing a step. I get 8 different errors when I go to test the movie. and nothing works.  Can someone please tell me what I am doing wrong or can you point me in the direction of a tutorial on this  as I have been searching for tutorials on this with no luck. 
    Here is my Action Script 3.0 CODE:
    import fl.video.FLVPlayback;
    import fl.controls.List;
    var vid:FLVPlayback = new FLVPlayback();
    vid.source= "fashion.flv";
    addChild(vid);
    vid.skin="SkinOverPlayStopSeekMuteVol.swf";
    vid.x=100;
    vid.y=300;
    vid.skinAutoHide="true";
    vid.width=500;
    vid.height=280;
    var vidList:List = new List();
    vidList.x= vid.x+10;
    vidList.y= 200;
    vidList.width=200;
    vidList.height=100;
    vidList.addItem({label:"Bathroom Behavior",data: "bathroom.flv"});
    vidList.addItem({label:"Chase Scene",data: "chase.flv"});
    vidList.addItem({label:"VMCAD Fashion Design Commercial",data: "fashion.flv"});
    addChild(vidList);
    vidList.addEventListener(Event.CHANGE,playVid);
    function playVid(e:Event):void{     
    vid.source=e.target.selectedItem.data;
    Here is a screenshot of the errors I am receiving.
    Please help me 
    thanks
    Message was edited by: BTwardy

    I don't know if what you posted is all that is in that as file, but you need to declare a package, then call the import statements, then declare the class name.  Like this:
    package {
         import flash.display.Sprite;
         import flash.events.Event;
         import fl.video.FLVPlayback;
         import fl.controls.List;
         public class Main extends Sprite {
              public function Main() {
                   var vid:FLVPlayback = new FLVPlayback();
                   vid.source= "fashion.flv";
                   addChild(vid);
                   vid.skin="SkinOverPlayStopSeekMuteVol.swf";
                   vid.x=100;
                   vid.y=300;
                   vid.skinAutoHide="true";
                   vid.width=500;
                   vid.height=280;
                   var vidList:List = new List();
                   vidList.x= vid.x+10;
                   vidList.y= 200;
                   vidList.width=200;
                   vidList.height=100;
                   vidList.addItem({label:"Bathroom Behavior",data: "bathroom.flv"});
                   vidList.addItem({label:"Chase Scene",data: "chase.flv"});
                   vidList.addItem({label:"VMCAD Fashion Design Commercial",data: "fashion.flv"});
                   addChild(vidList);
                   vidList.addEventListener(Event.CHANGE,playVid);
              function playVid(e:Event):void{     
                   vid.source=e.target.selectedItem.data;
    Then click on your stage in Flash, then open the properties window, and fill the Class text field with:   Main
    Make sure the as file is saved in the same folder as the flv.

  • How to connect flash video player(like youtube)  to live streaming video the programm like                             

    How to connect flash video player(like youtube) to live
    streaming video the programm like webcamXP?
    Or through a browser to look in a videoplayer video from
    other usual personal computer with the program for a video
    broadcasting from the web chamber.

    you can use google to search for tutorials on skinning the component.

  • Best export from FCP4.5 for conversion to Flash video player?

    Hi,
    I'm prepping a 5 min edit production for the best web presentation w/o excessive file size / loading time. The production has a lot of subtle detail & layered images so there a lot of opportunities for this to turn to mud (shot on low grade digital consumer video camera & also in lower light settings).
    I exported in H264 at med quality & got a good looking 75 meg file. Tried uploading to YouTube, fearing the worst, and it actually created something decent from that file. I could just link that embedded file to the intended website, but I dont want that YouTube logo in the corner. I'd rather recreate what they do in Flash w/o the logo.
    Does anyone have info on what YouTube does to the videos it processes into those flash video player files? Compression or resolution settings? It looks like going that route will give better results that can be universally viewed than the standard mpeg route. (file size & universal viewing on all platforms are my only reason not to post in H264).
    Are these issues best solved going from a big FCP export and handled with settings in Flash? Or is there some export choice in FCP that will give best (size & res) quailty with minimal influence needed from Flash?
    I've tried Compressor but havent been able to get any results from it. I just get errors that I dont understand. If thats the solution, I'll dig into that further, but would appreciate any tips / guidance.
    thanks
    Duane
    G5 tower   Mac OS X (10.4.8)  

    You could try Sorenson 3 at 640x480. Try a quality setting of about 80 percent.

  • Insert Yume ads in flash video player

    Hi,
    I am working on a flash video player where i want to insert
    yume ads. The sdk and integration guide provided by the yume people
    is not that good. Can anyone help me out on this?

    I'm having same inconvenience while integrating YuMe Ads Module in my project.
    YuMe's documentation is really bad & pretty confusing.
    I would like any helping blog post or forums thread elaborating the solution in this regard.
    Here Now I have done some manipulations with code in AS2 based player.
    please have a look at it. I was trying to run it locally while connected to internet so it may load ads from the online source defined. But it does not load anything. I have also made the controls btns hidden, as i dont need them.
    I dont know if I just need to upload these files on web server and test it online to get it working. Not Sure.
    Any help will be appreciated.
    Message was edited by: Ronny Depp

  • Justin.tv Flash Video Player

    Here is the url for justin.tv's embedded stream
    http://www.justin.tv/widgets/embedded.swf
    or
    http://www.justin.tv/widgets/jtv_player.swf.
    Neither of these play back on Flash Lite, it is live streaming
    flash maybe FLV called from a SWF file, I would really like to see
    a flash player that played streaming SWF on my phone. If it is the
    FlashLite 3.0, please put out a beta soon becuase I would really
    like a solution soon. Thanks.

    stevelantz wrote:
    > I have successfully installed Flash Video Player (the
    latest version) on two
    > different computers, but I cannot find the executable to
    open the player. I
    > have more than one FLV player on my computer. I should
    be able to right-click
    > on the video file, select "open with..." and select
    Adobe Flash as the player,
    > however, it does not show up anywhere on the programs
    list - why is this?
    >
    You can't play the FLV itself with flash player, and flash
    player is not an executable
    stand alone application, that's why you can't find it, it's a
    browser component only.
    To view FLV you need SWF which can then be run within
    browser. There is no direct
    playback for FLV files. Google for FLV PLAYER, there are some
    3rd party players
    on line.
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Firefox5 is not showing BBC iPlayer Video & Radio Other browsers are all fine(Safari,IE,Chrome) The iPlayer webpage is all there but the flash video player is black. The OS is XPpro.

    Firefox5 is not showing BBC iPlayer Video & Radio.
    Other browsers are all fine(Safari,IE,Chrome)
    The iPlayer webpage is all there but the flash video player is black. The OS is MS Windows XP Professional 32-bit SP3.

    Also, when the flash video does not show up it displays the error that I do not have the current flash player. The problem is that I do have the current flash player that actually plays flash from another section of the website.
    Forgot to add that earlier.

Maybe you are looking for

  • Took on new servers and one is burdened with many issues any suggestions

    Apologize for the obscenely large post searched past posts and failed to find anything that would help. Below is the server log that looking back occurs daily any suggestions on where to begin and what are my next steps would be? Greatly appreciated.

  • FCP EDL Import from Color Misbehaving

    I have successfully imported an EDL/Master file (from FCP)into Color, it razored automagically. I've done the grading and rendered out the graded media. Now how do I get the rendered media, with each shot in it's own folder, back into a timeline for

  • Vulnerabilities reported in sharepoint 2010 from IBM App Scan - Blind SQL Injection

    Hi - We have been reportecd the following vulnetabilities in sharepoint 2010 by IBM App scan tool. We have verified that all latest security patches are installed in the server. The sharepoint implementation is only out-of-the-box. We ahve installed

  • IDOCS to BI

    Hi Can BI accepts the IDOCS sents by XI? In our scenario, the POS data is sent into XI and from XI aggregated data is sent into ECC thru IDOC and Non Aggregated data is sent into BI Thru IDOC. Here my question ..How can BW accepts the IDOCS from XI?

  • Af:table range navigation

    Hi, i'm facing a problem...i'm using seperate af:selectRangeChoiceBar for range navigation. But sometimes the rangebar behaves wrongly, like in safari, if i slecet the range from option list, range is changing and suddenly again server trip is happen