Swf file in different places on different browsers

Hi,
new to this web design, but I am getting there (very slowly)
I have a web page that is live www.chm-berkshire.com but it has an issue on the index page where the swf file is not being centered on each browser i use.
I can set it up perfectly on my ie web page where the file is centered under the spry bar, when  look at my work PC and the swf file is over to the left, if i use firefox it is even further over to the left
Is there an easy way to make all browswers see the file in the center of the page?
any help greatfully recieved, (in as simple terms as possible, as I am hard of thinking:-) )

Just changing things from position:absolute to position:relative is thrashing, and will usually not help.
The solution is to do this -
Change this -
.oneColElsCtrHdr #container {
     width: 46em;
     margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
     border: 1px solid #000000;
     text-align: left; /* this overrides the text-align: center on the body element. */
     background-color: #FFFFFF;
     background-position: center;
to this -
.oneColElsCtrHdr #container {
     width: 46em;
     margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
     border: 1px solid #000000;
     text-align: left; /* this overrides the text-align: center on the body element. */
     background-color: #FFFFFF;
     background-position: center;
        position:relative;
What this change will do is to change the reference point for all absolutely positioned elements on the page from the upper, left-hand corner of the browser viewport (which is the default reference for AP elements when there is no positioned ancestor), to the location of the centering element div#container.  Now, when that element centers, it will carry all the AP elements along with it.  You will have to reposition each AP element on the page to accommodate this change, but once positioned properly in DW, they will stay in that correct relative location.
Now - to see what a mess you have made by using AP for all your content - just browse to this page and increase the text size a few ticks in the browser.  Your simple layout goes south in a hurry....
It's much better to use sound practice methods in building your pages - http://www.apptools.com/pagelayout101.php will show you the way.

Similar Messages

  • Need to reference controls in an Empty swf file ?

    The current beta 2 of FABridge requires you to reference any
    Flash controls you might want to create dynamically via Javascript
    in the Empty .swf file first (the example just uses an array to
    create a reference to each control). Trouble is, if you want to
    have a generic .swf file that you use for different purposes with
    different controls, referencing all the possible controls will make
    the .swf file unnecessarily large (which affects download
    performance etc.) - can Adobe confirm whether the final release
    will still require you to reference controls in the .swf beforehand
    or can controls be referenced dynamically as they are needed ?
    Thanks

    Can you provide code on how I can create a loop?
    I'm not getting any error when calculating sum.
    Here is what I'm trying to do, lets say I have two checks:
    CHK1
    Amount:200.00
    Status: Issued
    CHK2
    Amount: 500.00
    Status: Void
    When calculatiing the tota for the checksl, I should see the total as 200 only because, the Check2 has been voided and it is considered zero.
    I tried the following ways and it did not work:
    Sum(OutboundPayment[OutboundPayment/PaymentStatus/Code=’ISSUED’]/PaymentAmount /Value)
    I tried another way and even this did not work:
    decode(PaymentStatus/Code, 'VOID', ‘0’, PaymentAmount/Value*100)
    Please help!!!!!!

  • Integrating a Flash "swf" file in portal 7.0

    Hi experts,
    I would like to integrate a flash animation created with Flash Professionnal CS5 in a Netweaver portal 7.0. I've created a KM directory with my flash file, xml files and others. I use javascript in a html page to read the swf file and when I preview my html page in the KM, it works but when I preview the html page in a iView KM Document, it does not. The swf file is in place but is not read and displays a white screen instead.
    Can someone help me ?
    Thank you.

    Hi,
    Did you also check out Display mp4 video from KM in an iView ?!
    You description is not very detailed in concern of what's (not) happening in the background. But I would advise to follow the thread from above and if there is still trouble, you'd need to deliver more details; for instance you should analyze the http traffic and check what's the difference between the working and the non-working szenario.
    Hope it helps
    Detlev

  • Integrating a Flash "swf" file in portal

    Hi experts,
    I would like to integrate a flash animation created with Flash Professionnal CS5 in a Netweaver portal 7.0. I've created a KM directory with my flash file, xml files and others. I use javascript in a html page to read the swf file and when I preview my html page in the KM, it works but when I preview the html page in a iView KM Document, it does not. The swf file is in place but is not read and displays a white screen instead. I already checked for similar threads but none resolved my problem...
    Can someone help me ?
    Thank you.

    Hi,
    Did you also check out Display mp4 video from KM in an iView ?!
    You description is not very detailed in concern of what's (not) happening in the background. But I would advise to follow the thread from above and if there is still trouble, you'd need to deliver more details; for instance you should analyze the http traffic and check what's the difference between the working and the non-working szenario.
    Hope it helps
    Detlev

  • SWF file different from internal movie testing

    ok i made a basic website in flash when i test the movie
    while my file is open everything works fine, no errors pop up or
    anything, but when i go to drag the swf file into a web browser,
    random movie clips as well as all of my buttons are missing and the
    code dosent work like it should, I have absolutely no idea why my
    file works in one place and not another so if anyone can give me
    any feed back at all id appreciate it

    I would recommend trying different browsers if you haven't
    already. I am working through a similar issue with a dynamic Flash
    menu and it is veryyyyy different in IE then in Firefox. Also, if
    you have a test site we could look at that might get you more help
    too.

  • Need to connect different swf files into one site

    I need to make this site like presentation for my next exam. I found a good template for a slide show. The presentation will be structured like this: 
    MAIN PAGE with sidebar which links to:
    slide one with slideshow 1
    slide two with slideshow 2
    slide three with slideshow 3
    slide four with slideshow 4
    due to the nature of the code thou i cannot put the different slideshows into the same .swf file in different scenes (i copied and pasted them in each scene and modified the actionscript so they would refer to different pictures) because they will create conflict with each other. now they question is can i use the sidebar to link to different swf files but still make it look like it was just one big swf?
    thank you!

    Here is what you have to do
    Create a document named main.swf in that document put 4 buttons and instance (button1_btn, button2, button3_btn, button4_btn).
    Change the name to your slideshows to slide1.swf, slide2.swf, slide3.swf and slide4.swf.
    Now go to the actionScript panel of your main.swf and paste the following code:
    //load external content
    var loader = new Loader
    addChild(loader)
    loader.x=0;
    loader.y=0;
    button1_btn.addEventListener(MouseEvent.CLICK, function(){
             loader.load(new URLRequest("slide1.swf"));
    button2_btn.addEventListener(MouseEvent.CLICK, function(){
             loader.load(new URLRequest("slide2.swf"));
    button3_btn.addEventListener(MouseEvent.CLICK, function(){
             loader.load(new URLRequest("slide3.swf"));
    button4_btn.addEventListener(MouseEvent.CLICK, function(){
             loader.load(new URLRequest("slide4.swf"));
    any problems let me know!!!

  • How to load and unload more than one external swf files in different frames?

    I do not have much experience on Adobe Flash or Action Script 3, but I know the basics.
    I am Arabic language teacher, and I design an application to teach Arabic, I just would like to learn how to load and unload more than one external swf files in different frames.
    Thanks

    Look into using the Loader class to load the swf files.  If you want to have it happen in different frames then you can put the code into the different frames.

  • How to export swf file in different versions of flash like (6,7,8,9) ?

    Hi,
        System Specification :
        -XP with SP3
        -MS Office 2003
        -Flash V.10
        -Xcelsius Engage 2008 ( 5.3.0.0 )
        -Xcelsius Build number 12,3,0,670
       When I export output in swf format then xcelsius generating swf file of version 9.  I want to export swf file in different versions of flash like (6,7,8,9) .  I tried to install older versions of flash to do this but I am not able to open xcelsius in older version. I am getting error saying 'Install latest flash player'.
    Is there any way to export  swf files in different  versions?
    Is this build is compatible with only flash 10?
    Thanks,
    Ganesh

    Xcelsius only support Flash version from 9 on. There is no way to export to 6,7 or 8.

  • Different versions of animated image in single swf file

    I am making a game which has several objects (beds, crates, tables) that can be placed on a grid.
    The objects are created in flash and exported as individual .swf files. Each object can be rotated. To do this I create 4 frames in each .swf and draw a different version of the image in each frame. This allows me to 'rotate' an object in actionscript by simply going to the next frame of the swf movieClip.
    This simplifies things a lot for me, as it follows logically that an object will have one image file (swf) for all orientations. However, I've hit a problem in that I would like the object to have an animation. Does anyone know if there is a way to do this? or perhaps another technique I could use.

    I think It's best to explain with an example. Let's say I have a television that I draw in four different frames with different rotations. The first frame has the television facing in a south west direction. The 2nd frame has a south east facing television and so on. This is what I have at the moment. What I'm wanting to do next is add an animation to the television, e.g. display something moving on the screen.

  • Font in SWF file different once inserted and previewed in Captivate 5

    I have inserted a SWF File as an animation into my captivate 5 movie. When I view the SWF file independently, thus, outside of Captivate, the font looks exactly as it should: in Arial. However, once I have inserted the SWF file into Captivate and preview the Animation, the font changes to something which looks like Times New Roman.
    A colleague tested the file on her computer also and experienced the same issue.
    Does anyone have an idea what could solve this? Does a setting need to be changed in Flash or in Captivate?
    Thank you so much!!

    OK.  Changing to a different font to test is a good strategy.  Stick with a standard Windows font, e.g. Verdana.
    There have been some issues with fonts getting corrupted that were reported several months ago when Cp5 first came out.  Caused some wierd behaviour including preventing Cp from opening at all: http://forums.adobe.com/message/3441458#3441458
    Hope yours turns out to be something much simpler.

  • Where do I place the different parts of the HTML 5 published files on a web page?

    I recently published an HTML 5 canvas document from Flash. Once the files are published where do they go on a web page? For example, lets say I had 3 animations published from Flash as HTML canvas objects. The files go on different parts of page, let's say in 3 different places in the body. Flash outputs the HTML file, JavaScript file, and whatever images in an 'images' folder. I'm not sure where I would place all these files on my web site. I know the JavaScript goes in the head of the index page. However, where do the other parts go? Further, if I have multiple HTML canvas objects how do I separate the code.
    All of the tutorials demonstrate how to publish the file, but give no assistance on how to place the file or files on a web page.
    Below is example code from a sample files:
    <html>
    <head>
    <meta charset="UTF-8">
    <title>HeadSpinning</title>
    <script src="http://code.createjs.com/easeljs-0.7.1.min.js"></script>
    <script src="http://code.createjs.com/tweenjs-0.5.1.min.js"></script>
    <script src="http://code.createjs.com/movieclip-0.7.1.min.js"></script>
    <script src="http://code.createjs.com/preloadjs-0.4.1.min.js"></script>
    <script src="HeadSpinning.js"></script>
    <script>
    var canvas, stage, exportRoot;
    function init() {
        canvas = document.getElementById("canvas");
        images = images||{};
        var loader = new createjs.LoadQueue(false);
        loader.addEventListener("fileload", handleFileLoad);
        loader.addEventListener("complete", handleComplete);
        loader.loadManifest(lib.properties.manifest);
    function handleFileLoad(evt) {
        if (evt.item.type == "image") { images[evt.item.id] = evt.result; }
    function handleComplete() {
        exportRoot = new lib.HeadSpinning();
        stage = new createjs.Stage(canvas);
        stage.addChild(exportRoot);
        stage.update();
        createjs.Ticker.setFPS(lib.properties.fps);
        createjs.Ticker.addEventListener("tick", stage);
    </script>
    </head>
    <body onload="init();" style="background-color:#D4D4D4">
        <canvas id="canvas" width="615" height="400" style="background-color:#FFFFFF"></canvas>
    </body>
    </html>

    All of the sections marked with the <script> tags should go in the head of the About page. From this line: <body onload="init();" style="background-color:#D4D4D4">, you want to take the onload="init();" part and add it to the <body> tag of the About page. You can also add the background color if you want.
    The part marked with the <canvas> tag is the part that need to be added to the body of the About page. I don't know what your About page contains, so I can't tell you where it should be placed.

  • Same swf file, different database content displayed

    I have built a Flash file that displays database content. I
    would like to use the exact same Flash swf file on different HTML
    pages, but display different content from my database connection.
    How does one basically go about achieving this (I don't like cookie
    solutions)?
    My database has a column called zones. I would like one copy
    of my swf to grab content for zone_1 and another copy of the swf to
    grab content from zone_2. I am sure others have encountered this
    design challenge and I am wondering how to go about it, and at the
    same time, only have one .swf file displaying the appropriate (or
    "set") zone data.

    OK... Got it to work. But only if I let Flash publish the
    html page and then I added the object and embed FlashVar tags, in
    this format:
    OBJECT
    <param name="FlashVars" value="myURL=Welcome">
    EMBED
    FlashVars="myURL=Welcome"
    Don't be sloppy with this one.....
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
    width="420" height="520" id="roses_current" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="roses_current.swf"
    /><param name="FlashVars" value="myURL=Welcome"><param
    name="quality" value="high" /><param name="bgcolor"
    value="#ffffff" /><embed src="roses_current.swf"
    FlashVars="myURL=Welcome" quality="high" bgcolor="#ffffff"
    width="420" height="520" name="roses_current" align="middle"
    allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    />
    </object>

  • Navigation within swf files that use different version of actionscript

    I have multiple swf files that need to link up together, the problem is this, some of the files was developed a few years ago with Flash MX and actionscript 1 while some of these files was developed recently in CS 5 with actionscript 3.
    Is it possible to navigate within different version of actionscript files in the same flash player?
    I found that actionscript 1 file will not work once i have navigated to actionscript 3 file.
    Any suggession or solutions would be highly appreciate.

    Actually, it will not work properly. Given, the code behind all these swf(s) is Object Oriented then there is a solid chance of getting them to communicate with each other without any issue. Once suggestion would be to centralize the navigation into its own swf and then dispatchEvents and have the listeners handle the rest. I am sure there are other avenues, but I would do it this way so if there any other such file(s) in the future, all you will need to do is hook the plumbing up and off it goes. Now if the code is anything but 'Object Oriented' then it will take good chunk of time to get the navigation going. However way you decide to pursue it, test it rigorously so there aren't any foo surprises.
    Thanks.

  • Folder is empty on second computer. I have installed adobe CC on two different computers for same account so I can work at two different places. I uploaded files to it yesterday and I can't find it on the CC folder on second computer. What can I do?

    I have installed adobe CC on two different computers for same account so I can work at two different places. I uploaded files to it yesterday and I can't find it on the CC folder on second computer. What can I do?

    Hi DeafScientist,
    Please try the below mentioned links.
    Creative Cloud Help | Browse, sync, and manage assets
    Error: "Unable to sync files"
    Creative Cloud File Sync | Known issues
    Kindly revert if you are unable to sync files.
    Thanks,
    Atul Saini

  • Final .swf file works different (and BAD) like while runing in flex

    OK, next question!
    How is it possible, that when I compile Flex project, everything works, but when I click on html file from bin-debug folder, nothing works?!
    I use SDK 3.2. and flash player version is set up to 10.0.0.
    When I run the project, I am able to load image and work with it. When I run html file from bin-debug folder, I am suddenly NOT ABLE to load that image!
    What's wrong?
    This is my code
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" height="632">
        <mx:Script>
            <![CDATA[
                private var fileRef            : FileReference; //browser souboru
                private var fileFilter        : FileFilter; //seznam pozadovanych koncovek souboru (obrazky = ".jpg ...")
                private var loader            : Loader; //nahraje obrazek z browseru
                private var photoBitmap        : Bitmap; //nahrany obrazek ze souboru
                private var photoData        : BitmapData; //data obrazku ze souboru (pristup k pixelum obrazku)
                private var shape            : Shape = new Shape();
                public function Browse() : void
                    fileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");
                    fileRef = new FileReference();
                    fileRef.browse([fileFilter])
                    fileRef.addEventListener(Event.SELECT, onImageSelect);
                private function onImageSelect(event:Event) : void
                    photoPanel.title = fileRef.name;
                    fileRef.load();
                    fileRef.addEventListener(Event.COMPLETE, onDataLoaded);
                private function onDataLoaded(event:Event) : void
                    var tempFileRef : FileReference = FileReference(event.target);
                    loader = new Loader();
                    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onPhotoLoaded) ;
                    loader.loadBytes(tempFileRef.data);
                private function onPhotoLoaded(event:Event) : void
                    photoBitmap = Bitmap(event.target.content);
                    photoImage.source = photoBitmap;
                private var isDrawing        : Boolean;
                private var drawSize        : Number;
                private var drawColor        : Number;
                private function onImageMouseDown(event:MouseEvent) : void
                    isDrawing = true;
                private function onImageMouseUp(event:MouseEvent) : void
                private function onImageMouseMove(event:MouseEvent) : void
                    shape.graphics.beginFill(0xFF0000);
                    shape.graphics.drawRect(event.localX-1, event.localY-1, 3, 3);
                    shape.graphics.endFill();
                    photoImage.addChild(shape);
            ]]>
        </mx:Script>
        <mx:Button x="10" y="418" label="Upload" click = "Browse()" />
        <mx:Panel x="10" y="10" width="400" height="400" layout="absolute" id="photoPanel" backgroundColor="#D9D4D4">
            <mx:Image x="0" y="0" id="photoImage" mouseMove="onImageMouseMove(event)"/>
        </mx:Panel>
    </mx:Application>
    IN HTML pages I call the swf file this way
                <script type="text/javascript">
                    if (AC_FL_RunContent == 0) {
                       alert("This page requires AC_RunActiveContent.js.");
                 } else {
                       AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0','nam e','postcard','width','700','height','500','align','middle','id','postcard','src','postcar d','quality','high','bgcolor','#ffffff','allowscriptaccess','sameDomain','allowfullscreen' ,'false','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','postcard' ); //end AC code
                </script>
                <noscript>
                    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" name="postcard" width="700" height="500" align="middle" id="postcard">
                    <param name="allowScriptAccess" value="sameDomain" />
                    <param name="allowFullScreen" value="false" />
                    <param name="movie" value="postcard.swf" />
                  <param name="quality" value="high" />
                  <param name="bgcolor" value="#ffffff" />
                  <embed src="postcard.swf" quality="high" bgcolor="#ffffff" width="700" height="500" name="postcard" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
                    </object>
                </noscript>

    Is there a difference in the URL in the address bar in the browser?
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

Maybe you are looking for