Centering a .swf file HELP°!

When I have created a .flv file with a .html file from Indesign, and i open the .html file. Everything that i made works fine But! the
flash file ( the actual Site) is always on the Left of the browser. ! I really need some help as i know absolutely 0 html ( thats
why im using indesign) I dont think its something big! I want the Flash site to be in the Middle of the screen ) Can be allign with
the top of the browser but it has to be Centered!
Thanks for the Help!
Greets
If this is the Wrong forum I have no Idea where to Look so sry if so I would really be happy about help I really Need this!!!

Put it in a div, set a class in the css and set the left and right margins to auto.
Like this:
.swfcontainer {
width: xx px; (this should match the width of your swf)
margin-left: auto;
margin-right: auto;
Bob

Similar Messages

  • Centering my swf file

    I am looking for the html that will center my swf file and
    keep it centered even when the window is resized by the viewer.
    I've seen it done to almost every site I've been to, so I think it
    should be relatively easy.

    This may help you achieve the effect if you are using tables:
    http://apptools.com/examples/tableheight.php
    Nadia
    Adobe® Community Expert : Dreamweaver
    CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    ~ Customisation Service Available ~
    http://www.csstemplates.com.au
    ~ Forum Posting Guidelines ~
    http://www.adobe.com/support/forums/guidelines.html
    "stephdog" <[email protected]> wrote in
    message
    news:eus0c4$fkf$[email protected]..
    >I am looking for the html that will center my swf file
    and keep it centered
    > even when the window is resized by the viewer. I've seen
    it done to
    > almost
    > every site I've been to, so I think it should be
    relatively easy.
    >

  • Flash SWF file help

    I've uploaded my page and all associated files (swf, images),
    but the swf won't play in my browser.
    Please visit -
    http://www.tbproductions.com/s&f/clients.htm
    There is supposed to be a swf Menu under the header and a swf
    in the body of clients.htm.
    I don't understand what I am doing wrong. Thank You
    !!!

    I took a good look at the code and noticed this script was
    looking for my local folder on my C: drive
    <script src="C:sites/Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    instead of
    <script src="Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    deleted the C:sites - and it works fine !
    thanks for your help!

  • Positioning a .swf file HELP

    Guys, im in the middle of building my website, I have built
    the whole thing in Flash CS3. Its looking excellent, HOWEVER... I
    need to add a contact page to one of my pages.
    How do you do this?
    I have looked at loads of tutorials online, however they all
    require you to download template files and I cant figure out how to
    integrate this into my page.
    I have also downloaded a completed .swf contact form from
    another site, however when I add this to my site, it is positioned
    in the top left of the screen.
    Im a bit stuck so any help would be appreciated.
    Thanks

    Put it in a div, set a class in the css and set the left and right margins to auto.
    Like this:
    .swfcontainer {
    width: xx px; (this should match the width of your swf)
    margin-left: auto;
    margin-right: auto;
    Bob

  • FAQ: How do I load an external SWF file into a parent SWF file?

    A ton of Flash users visit Adobe’s we site every month wondering  about how to load an external SWF file from within another SWF.
    Adobe's own TechNote on the subject attempts to answer the basic question, along with some common follow-up questions, including:
    How do I load more than one SWF?
    How do I load a SWF into a specific location in the display list?
    How do I resize the loaded SWF?
    How do I set its X and Y location?
    Here are some additional resources that elaborate on loading content and on working with the display list:
    Sample files for the above TechNote. A set of 3 FLA and 3 corresponding SWF files, including a parent SWF and 2 SWFs that the parent loads.
    Help > AS3 Developer’s Guide > Loading an external SWF file
    Help > AS3 Developer’s Guide > Loading display content dynamically
    Loading multiple external SWFs within a main SWF – CreativeCow.net forums
    Video tutorial: ActionScript 101 – Episode 6: Adding named objects to the Stage. By Doug Winnie. An example of how to add the loaded external asset to the Stage and modify its location or other properties.
    Video tutorial: Preloading in ActionScript 3.0.  By Lee Brimelow. A slightly more complicated example, showing how to  make the parent SWF display information about the progress of loading  the external SWF.
    Tutorial: Loading and unloading SWFs - FlashAndMath.com
    This article provides several examples of how to communicate between a parent SWF file and the loaded SWF:
    SWF to SWF Communcation via ActionScript 3.0 (by kglad)

    quote:
    Originally posted by:
    NedWebs
    You now seem to want to get rid of the swf once it has loaded
    and played itself thru. To do that you would need to have something
    in the swf itself that triggers its removal in its last frame. The
    following might work...
    MovieClip(this.parent).removeChild(this);
    Unfortunately I couldn't get this to work. I placed it on the
    last frame of the SWF to be called - is that right?
    I am not sure I am doing it correctly...

  • Help importing a .swf file from Flash CS5.5 to After Effects CS5.5

    I am working on animating a person in flash.  I have a main timeline and then a timeline inside of a symbol so I can move
    the characters facial features (eyebrows and mouth etc) apart from moving his entire body.
    I want to have multiple scenes so I am importing all of the .swfs into After Effects and putting them together. 
    However, when I import the .swf into After Effects, it only plays what occurs in the main timeline
    and not the timeline inside of the symbol, so it is just the character moving without the facial movements.
    Is there a way to fix this or a better program to import the .swfs into and make the video?
    Thanks in advance.

    Here's the note from After Effects Help aboutt he limitations to SWF import:
    SWF (continuously rasterized) Note:  SWF files are imported with an alpha channel. Audio is not retained. Interactive content and scripted animation are not retained. Animation defined by keyframes in the main, top-level movie is retained.
    The limitation that you noticed---that only animation in the top-level timeline is retained---is not one that can be worked around without changing how your animation is set up in Flash.

  • Will someone help me open a cisco swf file

    I am trying to open a cisco swf file on my xp computer.I initially downloaded "IrFanView" which was a program internet explorer told me to download so I could open it. I downloaded the aforementioned program and when I try to open the file I get on the bottom of screen "unidentified error" then a popup box that sais "Internet Explorer can't open this file". Then I try to open it with Google Chrome and I don't get the popup but still the "unidentified error" at the bottom of the screen. I have heard that adobe flash will open it but here is the tricky part. In my add/remove programs it shows I have adobe flash 11 active x. However, when I right click on the file and click on "open with" the only adobe product that shows is Adobe Reader.I'm thinking if I could get the path to adobe flash then I might have the answer. Is my thinking along the right path or not. Lastly, can someone help me find the path to adobe flash 11 or help me to open this swf file.

    Ned,
    I tried opening it via Internet Explorer and got this error message:
    Invalid character
    index.js       Line: 1
    Invalid Character
    swfobject.js  Line:1
    Object expected
    index.html    Line:18
    'SWFObject' is undefined
    index.html
    code:0
    URI: file:///C:CISCO_CCNA/Exploration1_English/theme/index.html      Line: 51
                                                                                                          Char:1
    What does all of that above mean?

  • Firefox will not load my swf file. Runs perfectly in all other browsers. Help!

    I've developed a website (www.fit-mamas.com.au) whereby you click on the black & white image and get a pop-up window running a video. The video is an .flv file running via a .swf file loaded from an html file. The .swf file was produced using Flash CS3. The video loads perfectly in all browsers except for Firefox which just displays a blank screen with video controls. I've been researching online for hours, as this problem is a common one, but nobody else's solutions are working for me. Any help would be appreciated. My code is as follows:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
    id="fit-mamas" width="640" height="400">
    <param name="movie" value="fit-mamas.swf">
    <param name="bgcolor" value="#FFFFFF">
    <param name="quality" value="high">
    <param name="allowscriptaccess" value="samedomain">
    <embed type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/go/getflashplayer"
    width="640" height="400"
    src="fit-mamas.swf" name="fit-mamas"
    bgcolor="#FFFFFF" quality="high"
    swLiveConnect="true" allowScriptAccess="samedomain"
    ></embed>
    </object>

    The video works for me on Linux. The server seems to be slow and playing stops all the time.
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • How do I add playback control to a .swf file in Director 11.5 (PLEASE HELP!)

    Hi,
    I am currently trying to add controls (play/stop/etc) to a .swf file within Director 11.5. The movie imports fine and plays perfectly, however there does seems to be built in options to add the control in the same way you would for a .mov.
    The .swf file has been created with controls and plays outside of director fine. When it is placed into director the controls disappear and leave a white space.
    Is there a step by step guide somewhere or can someone give me a step by step guide? I'm fairly new to director and won't know some of the terms etc....
    The movie is 30 mins long and requires the user to move to various points and pause the playback. I cannot change the format of the file either.
    Please let me know if you need any more info...
    PLEASE HELP, I have to complete this in 2 days.
    W

    Probably too late for your project but...
    You can do this by using 3 sprites in addition to the SWF. In this example, I've named them "videoPlay", "videoRewind, and "videoStop". The SWF in this case was named "video."
    Apply this script to each of the 3 sprites.
    property mySprite
    on beginSprite me
      mySprite = sprite(me.spriteNum)
    end
    on mouseUp me
      case mySprite.name of 
        "videoPlay":
          sprite("video").play()
        "videoStop":
          sprite("video").stop()
        "videoRewind":
          sprite("video").stop()
          sprite("video").rewind()
      end case
    end

  • The Path to nowhere - help! swf files not showing in browser

    i need help with getting a swf file to show in the browsers. (it previews in dreamweaver)
    created a website in dreamweaver cs4. created a simple slideshow in flash 4.
    on the index.html page inserted the flash file.
    it previews in dreamweaver BUT when i text in browsers it shows as a white box.
    have been reading through all the info about paths etc.
    can you simplify this entry below from adninjastrator on the adobe forums sept 19 2011???........
    "Still looks like a pathing problem to me. For review:
    Pathing issues
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    adninjastrator"
    here is my code...
    <div align="center">
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="200" id="FlashID" title="2812gtbroslides">
              <param name="movie" value="/2812gtbros.swf" />
              <param name="quality" value="high" />
              <param name="swfversion" value="6.0.65.0" />
              <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
              <param name="expressinstall" value="/Scripts/expressInstall.swf" />
              <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
              <!--[if !IE]>-->
              <object type="application/x-shockwave-flash" data="/2812gtbros.swf" width="350" height="200">
                <!--<![endif]-->
                <param name="quality" value="high" />
                <param name="swfversion" value="6.0.65.0" />
                <param name="expressinstall" value="/Scripts/expressInstall.swf" />
                <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                <div>
                  <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                  <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                </div>
                <!--[if !IE]>-->
              </object>
              <!--<![endif]-->
            </object>
            <br />
    thanx
    wwwww1325

    i am not sure why this sounds so foreign to me.....
    i understand the page code instructs the browser to find and load the flash file from a path.
    i do not understand "/2812gtbros.swf (i.e. start at the root of the site and look for that filename in that location)
    i have the html fla and swf file in the folder on my computer named 212GTflashpics (2012freelance/2012gtbrothers/212GTflashpics/2812gtbros.swf) and i have it in the website folder GTbrothers1 with all the images scrpts sprys and html files
    the files be in the website folder o
    in your previous Question...
    "This line -
    <param name="movie" value="/2812gtbros.swf" />
    is telling the browser to look for the flash file in the root of the website.  Is that where it is?"
    what is before the / in the value=" /2812gtbros.swf? wouldnt that tell us the path of the file?
    thanx

  • Help needed in accessing the url from which a swf file has been loaded

    Hi All,
    Can anyone help me out in finding the url of the swf file
    from which it has been loaded? The purpose of the url is, I am
    loading some flv files using relative path. I just want to achieve
    the same by appending the relative path to the parent swf url from
    where the parent was loaded.
    I am a newbie to AS3, So please don t mind if this is a silly
    question.
    Can anyone help me on this.
    Thanks in advance,
    Prabakaran Srinivasan.

    Hi,
    Thanks for the reply. I think the option you gave is only
    applicable when the AS3 class comes in the DisplayObject hierarchy.
    I want this information in an AS3 class which does not extend any
    of the Sprite or its super class hierarchy. Can you let me know the
    possibility of fetching the value from such a class which i
    specified???
    Thanks,
    Prabakaran Srinivasan.

  • Newbie, please help--swf files work fine separately, don't work when on same page

    Hello all,
    I am new to flash, and piecing together different templates to try and  learn things.
    I have run across a strange problem. When I load products2.swf by  itself, I can call the two "copy" files and everything works. When I  open 0342.swf (the index page), I can switch between the home and  products2 pages, but I can't view the "copy" pages.
    I'm guessing there may be some sort of conflict with variable names,  but I have been messing with it for most of today.
    I have uploaded all of the FLA files to here:
    http://littlebuddymedia.com/flashhelp.zip
    If you make an swf file out of each of the attached items, and open  the 0342 file, you will see what is supposed to be happening.
    Any help anyone can offer is greatly appreciated.
    Below is the code from each relevant button in case that is easier for  some of you.
    Thank you in advance!
    From the 0342 page (the index page)
    My "Home" button
    on (release) {
    if (_root.currMovie == undefined) {
    _root.currMovie = "home";
    _root.container.loadMovie("home.swf");
    } else if (_root.currMovie != "home") {
    if (_root.container._currentframe >= container.midframe) {
    _root.currMovie = "home";
    _root.container.play();
    My "Products" button
    on (release) {
    if (_root.currMovie == undefined) {
    _root.currMovie = "products";
    _root.container.loadMovie("products.swf");
    } else if (_root.currMovie != "products") {
    if (_root.container._currentframe >= container.midframe) {
    _root.currMovie = "products";
    _root.container.play();
    FROM THE PRODUCTS2 page
    My "copywebdev" button
    on (release) {
    if (_root.currMovie == undefined) {
    _root.currMovie = "copywebdev";
    _root.copycontainer.loadMovie("copywebdev.swf");
    } else if (_root.currMovie != "copywebdev") {
    if (_root.copycontainer._currentframe >= container.midframe) {
    _root.currMovie = "copywebdev";
    _root.copycontainer.play();
    My "officetech" button
    on (release) {
    if (_root.currMovie == undefined) {
    _root.currMovie = "copyworktech";
    _root.copycontainer.loadMovie("copyworktech.swf");
    } else if (_root.currMovie != "copyworktech") {
    if (_root.copycontainer._currentframe >= copycontainer.midframe) {
    _root.currMovie = "copyworktech";
    _root.copycontainer.play();
    }

    Not in the example I linked to.
    I added the code and uploaded an example of what it does.
    When I put "this._lockroot=true" into the first frame of the products.swf file, this occurs:
    http://littlebuddymedia.com/flashhelp/withlockroot/0342.html
    i.e. you can click over to the products page, but you can not navigate back clicking the "Home" button does not bring up the home page, it refreshes the product page. You are also not able to switch between the two text boxes (copywebdev and officetech) on the products page (though one of them will load--whichever one you click first).
    I guess this was "two steps forward and one step back"?
    Thank you for continuing to take a look at this.

  • HELP DREAMWEAVER CS4 NOT SHOWING SWF FILES

    I have a presentation in 2 days in Tokyo. And I'm panicking.
    I'm on am Intel Mac OS X 10.4.11.
    I have the latest version of Flash Player 10 installed. (Not the brand new beta version).
    I created a great website in Dreamweaver MX a few years ago.
    I never had ANY issues with .swf files displaying until using Dreamweaver CS4.
    I updated my photography portfolios in Adobe Bridge, and used Dreamweaver CS4 to link the updates.
    NOTHING MORE THAN THAT!
    Then, NONE of the .swf files that were always viewable are showing.
    There is absolutely NO Flash content showing on any page of the site now.
    Not even in browser view in Safari, or Firefox.
    I uploaded the files along with the newly created SCRIPTS folder to my server, and still no .swf files are viewable.
    These are NOT FLV files they are .swf files that were imbedded properly, and were always viewable. Until now.
    I have to go to Tokyo in two days and give a presentation of this site.
    What is the problem?
    The attached files show the view in Dreamweaver CS4. The view in Safari, and the view in Firefox.
    I'm screwed for a desperately needed job in Tokyo if I can't get this fixed ASAP.
    Please help.

    i think you are on to something here. but i am not sure how to go about fixing this.
    are you saying the "../s
    should be replaced with "S
    where is this code located? in the source code of each page that has the swf files? i should replace it with the correct version you copy and pasted? and that should resolve the problem?
    big thanks if this is the issue.
    <script src="../scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    The correct link to that file would be this -
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    Note the "S" in place of the "s".  *nix servers are case sensitive.

  • [Need help with a swf file]

    Hello,
    I need help with a flash demo that I am creating. I have a
    main swf file that contains links to other sub swfs that I have
    created. What I really want this to do is... when I click on one of
    the link on the browser, the other swf have to load in the window.
    I tried to code it with .loadMovie,.... but for some weird reason,
    it is not showing up.
    Can anyone help me on this?
    Thanks

    you might have a security violation and you do have a
    load-target issue. remove that "_parent": there's no 2nd parameter
    in the loadMovie() method.
    if you want to replace the main swf with that url, loading
    into _root is fine. otherwise, you want to use a different
    target.

  • Need help with combining swf files together

    Hi Everyone
    I have problem with my project.
    I created several SWF files, now i want them to interact with each other
    So there is main SWF file lets call it:
    main.swf
    then within that file(main.swf) i would like to create buttons which will be calling other swf files for instance by pressing one button one.swf will be open by pressing other button two.swf will be open and so on.
    Then I would like to create buttons within one.swf and two.swf which will allowed to go back to main.swf
    If someone could help me how to do it I will be grateful.
    AS2.0 i am working with
    many thanks

    thanks for quick respond
    So the first of all my main.swf would load, within it i would have a button. If i click on button will take me to frame 40 ( just example ) where i will have this.loadMovie("first.swf"), when this file will be loaded i want to have other button with in the first.swf which will take me back to main.swf and now you are suggesting to use this.removeMovie("first.swf")?
    I am not sure if i got you answer right
    Thanks again for help i am quite new to ActionScript as you can tell.

Maybe you are looking for

  • NVidia GeForce 8600M GT, what's the deal?

    Hello to all of you, I've heard quite a bit about the problems with the graphics card in the new macbook pro (santa rosa) and I can only confirm this issue (games freeze, slow framerates, and stuff like that). This is very sad actually 'cause the rea

  • How to Restict number of rows to download data in excel sheet

    hi, my requirement is that i m showing top 50 seller in my dashboard. but when we click on download to excel then all 500 rows are downloading. i want to restrict downloading all data and want show only displayed data of dashboard in excel sheet.(ex

  • MY creative zen m is fro

    My zen seems to be frozen and i have tried almost everything. I have reboot it and it still is frozen. I have done the clean up and it gets frozen every time i try it. I do NOT want to erase everything on it since i have 35 gb filled up already. I ne

  • Invoking a BPEL process from a PL/SQL procedure(URGENT)

    hello, Is it possible to invoke a BPEL process from a pl/sql procedure?? Please reply ...

  • 1st generation apple tv will no longer sync

    We have two1st generation apple TVs - one syncs thru Wifi and one is wired.  While both continue to be seen in iTunes neither will sync.  Ipads and Ipods continue to sync properly.  I reset one to factory setting and reinstalled but issue continues.