Flash jumps when javascript change height of container DIV

Flash jumps down, when you change(make bigger) the height of contaner DIV.
I've narrowed the problem down to the simple code
<div id="layer" style="width:700px; height:45px;" onclick="
this.style.height='225px' ">
<embed src="test.swf" wmode="transparent" width="100%"
height="100%"></embed>
&lt;/div>
No matter what SWF file is used, if you click on the flash(DIV) the
javascript will change the height of the DIV and the flash will jump
down.
The quick fix is to remove the wmode="transparent", but if I need the transparency I cannot do that.
Example - http://f-source.com/firefox4_flash_bug/

You need to add 'px' to the height:
<pre><nowiki>function resize() {
height = document.documentElement.clientHeight;
imgheight = Math.round((height / refheight) * 530);
document.getElementById('Image1').style.height = imgheight+'px'; //background height
setTimeout("resize()", resize_delay);
}</nowiki></pre>

Similar Messages

  • Controling browser scrollbars when MC changes height?

    Is there a way to have the browser scrollbars show up when a
    MovieClip's height increases ?

    if you want to use the swfobject to resize the browser
    window, download the swfobject.js javascript file and put it in the
    same directory with your swf's html page and read about how to
    embed your swf using it.
    you can then call the resizeSWF() function (passing the new
    height parameter causing the browser window to increase in height
    and displaying scrollbars, if they are needed) by using the
    externalinterface class:

  • How do you stop the flash player when you change pages on a web site

    Hi all;
    I'm building a website in flash using my limited understanding of action script.  Everything was progressing very well until I found that if I go to one of my example pages of my web site and play the flash video (with audio) and click back to my "home" button, the audio will continue to play.  If I go back to the example page, the video is off and when I start the video, it plays again with the other audio.  I hear the audio twice! I know there is an action script to handle this but, I can't figure it out.
    My question is, How do I stop the audio when I click away from the example page back to the home page or any other page?
    Thanks in advance for your help.
    I'm usinf Flash CS4 and a Mac OS operating system.

    The problem is most likely in your Action Script. Therefore this question should be posted in the Action Script forum. This forum only deals with the Flash Player, which, in this case is running the script as it is written, and therefore, working properly.

  • Page flashes white when loading

    I have black pages that flash white when loading. I hate
    that. Long ago I found the fix. Suddenly today that fix does not
    work. It's the insertion of these items:
    <param name="bgcolor" value="#000000" />
    bgcolor="#000000"
    Does any one know what to do about this? Thanks.
    www.stevez.us
    DW CS3 OSX.4.11

    Steve Zavodny posted in macromedia.dreamweaver
    > I have black pages that flash white when loading. I hate
    that.
    > Long ago I found the fix. Suddenly today that fix does
    not work.
    > It's the insertion of these items:
    > <param name="bgcolor" value="#000000" />
    > bgcolor="#000000"
    > Does any one know what to do about this? Thanks.
    > www.stevez.us
    The easiest method is to set the stage color to black in
    Flash, then
    save and publish. But I think I see where you can work with
    the
    existing code.
    As you have it now, it does not flash white when Javascript
    is turned
    off, so the problem appears to be within the <script>
    section.
    Try adding 'bgcolor','#000000', to the AC_FL_RunContent()
    parameters.
    AC_FL_RunContent(...'height','500','bgcolor','#000000',...)
    [Beware of wordwrap]
    <script type="text/javascript">
    AC_FL_RunContent(
    'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swf
    lash.cab#version=9,0,28,0','width','1024','height','500','bgcolor','#00
    0000','src','home','quality','high','pluginspage','
    http://www.adobe.com
    /shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie
    ','home' ); //end AC code
    </script>
    Mark A. Boyd
    Keep-On-Learnin' :)

  • Where is the "done" button in Flash CS4 when using Flash Builder 4's new flash component or container?

    The documentation for Flash Builder 4 beta says that after opening flash from flash builder, I should click a "done" button in flash and flash should close and what I created in flash should be included as a component or container in Flash Builder.  Using the Flash Builder 4 beta on Windows, when I click on the "create in flash" button on the properties panel for either the new flash component or container, Flash CS4 opens, I create something in Flash and no "done" button is present.  Nor is anything present in the menus resembling a "done" option.  Where is it?

    Hi Jeffrey:
    Still no done button.  Now under commands in Flash I can convert symbols to flex components and containers and these show up in the Flash library.
    Thanks:
    Jim
    Date: Wed, 30 Sep 2009 09:58:10 -0600
    From: [email protected]
    To: [email protected]
    Subject: Where is the "done" button in Flash CS4 when using Flash Builder 4's new flash component or container?
    Hi,
    You may need to install FlexComponentKit.mxp to your Flash CS4 beforehand.
    Jeffrey
    Date: Tue, 29 Sep 2009 17:04:36 -0600
    From: mailto:[email protected]
    To: mailto:[email protected]
    Subject: Flex Where is the "done" button in Flash CS4 when using Flash Builder 4's new flash component or container?
    I apparently didn't get one.  I've looked under various workspace configurations.  Another thing that seems odd is that when Flash opens I get the opening panel that allows me to select the type of file and version of AS I want to use.  I select new file with AS3.  Any ideas on why the "done" button wouldn't be present and if the opening panel is what I should expect on opening Flash after clicking the "create in Flash" button?
    >
    >

  • My airport express seems to be broken -- light is yellow and does not flash and doesn't change even when I press the "reset".  Tried unplugging and reset -- still a solid yellow.

    AX light is yellow and does not flash and doesn't change even when I press the "reset".  Tried unplugging and reset -- still a solid yellow. I assume this is a goner?

    Unfortunately, based on your description, I would have to second that your Express is a "goner." However, before giving up on the unit, be sure that you attempt a "factory default" reset at least 3x just to be sure.

  • Why Module level trigger contains "WHEN-CHECKBOX-CHANGED" trigger in Forms 6i?

    Hi,
    Why Module level trigger contains triggers like "WHEN-CHECKBOX-CHANGED", "WHEN-BUTTON-PRESSED" etc.? "WHEN-CHECKBOX-CHANGED" trigger is present in CheckBox & "WHEN-BUTTON-PRESSED" trigger in Button. Then why these triggers are also presnt in Module?
    Can anyone please clarify my doubt?

    There's a lot of triggers that are present at different "scopes". Like they exist at the item level, the block level,
    the module level...
    The idea is if you have an action that should only occur at that one single item it can do in the item trigger. If
    it's for all of them on the block, in the block level trigger. If for all of them ever, at the module level.
    For example suppose you wanted it to do a next_item after the trigger executed you can put that logic in the module
    level trigger. A key thing to notice here is the trigger hierarchy. That is essential to know about.
    Right click on one of these triggers in the object navigator. The execution hierarchy is override, before and after.
    since each of these levels of the same trigger has this execution hierarchy this is, well, potentially not easy to
    understand what is going to happen. I would typically have a per-item trigger be before and a higher level trigger
    be after.
    And this execution hierarchy thing is something I'd love to see enhanced in the gui. I wish it was a lot easier to see
    what the execution hierarchy is when editing a trigger text. I wish one could see and modify the execution hierarchy on the
    same screen as the trigger text and what would be really great is some way to tell how the trigger hierarchy will sort out
    at run time. For example if one is looking at an item level trigger it would be fabulous to know that as is, that trigger will be
    overridden by a higher level trigger and so on. Or vice versa if one is looking at a block level or form level trigger that it is
    overridden by a lower level trigger, or it will execute before or after some other trigger. I don't know what is defined to happen
    with various levels of triggers that have the same execution hierarchy. Like suppose they are all override,before,after.. then
    what happens? It'd be good to know.

  • Flash Pro is ignoring changes to my base class when publishing / debugging

    Hi,
    I hope this will be in the correct section of the forum.
    I've been working with Actionscript 3 since a while now although most of the time I've just done straightforward coding using Flash Develop.
    This is the first time I'm building a more or less complex project in Flash Pro.
    Here's a quick outline of how the project is structured.
    There is a swf file which holds a large set of components. Things like Buttons, Sliders, complex List components, etc.
    All of them are written from scratch not using any existing components (reason being project requirements).
    As someone with a heavy programming background I've done as little as possible in the timeline / frames, most of my code lives in classes which are attached to the components I've created in Flash Pro.
    These classes handle all the functionality. These classes then usually inherit from a base class where some basic functionality lies that I need across all components.
    The components outlined above are all marked for export and lateron imported into other swf files where they are used.
    So far so good, all that works like a charm.
    Now here's the actual problem.
    Today I needed to make changes to the base class to change some fundamental behaviour across all components that inherit from said base class.
    The change in itself was fairly simple.
    However, every time I now try to debug or publish it will completely ignore any change I've made and use the previous version of my base class?
    I can go as far as completely emptying my base class and every time I debug or publish it will do so using the base class from before. I can see at runtime that it is the previous version because of the behaviour of the inherited components.
    That's what I don't get. Where does it take that version from? I tried clearing the publish cash, to no avail.
    I can pace tracers, nothing. If I add code to the base class and make an error it will complain so when I try to debug or publish but once fixed, it won't use any of it. It's still behaving as if it's using a previous version.
    What makes all this even weirder is that if I take that new code and place it into another class and inherit my components from this one, then the build will use that new verison with the new code. If I switch back to the old base class with exactly the same code inside it will ignore it again and once more behave as if its an older version of it.
    I've been looking around the net but simply can't find what this could be caused by.
    Now, sure, I could simply use a new class and inherit all my components from a different base class but that's rather unpractical.
    What I would like to know is, why does Flash Pro ignore any changes to this class? Is this an issue with how I inherit my component classes from a base class? I kind of doubt it because it has been working like a charm before.
    Could this be a Flash Pro issue?
    This is also not the first time I've come across this problem. The previous time however, after much tinkering, it went away. Today, it didn't. I would really like to get to the bottom of this.
    FYI: I'm running Flash Pro CC. I design my components in Flash Pro and do all my coding in Flash Develop.
    Any help would be greatly appreciated.

    Hmm, my classes live in a subfolder of where my fla files live. (This sub folder again is divided into further folders to organise the code)
    I haven't actually setup any class paths. (default class path is set to .)
    If I set the default class path to the folder where my code lives I get a ton of errors telling my that my package names don't reflect the location of my files.
    edit: That was a mistake on my side. I've set the class path to where my code lives and made sure the package names still match up.
    Unfortunately it still ignores my base class (which lives in a sub folder of the defined class path)

  • Why flash white when changing pages?

    why does my website flash white when changing pages? it is very time consuming and i wish for a better flow.
    thank you.

    www.oddussee.com
    Could it be that I am not using business.catalyst? I did an EXPORT TO HTML.
    Thanks!
    Message was edited by: oddussee

  • While executing ObjectTag in flash.htm, a javascript error occurred

    I'm attempting to place a SWF file in an editable region on a page created from a template.  I get the error: While executing ObjectTag in flash.htm, a javascript error occurred.  I saw on another sight that someone found the problem which was editable regions remove the head tag information.  But I do not know how to enter this info.  I tried just putting  a </head> and a head and body tag in code view inside the name region but this did not work. Any help would be appreciated.

    Main.dwt
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
    background-color: #00C;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    #container {
    background-color: #FFF;
    width: 900px;
    margin-right: auto;
    margin-left: auto;
    #flashbanner {
    background-color: #FFF;
    height: 350px;
    width: 900px;
    #title {
    background-color: #FFF;
    height: 35px;
    width: 900px;
    #navtop {
    background-color: #FFF;
    height: 100px;
    width: 900px;
    #spacer1 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    #navleft {
    background-color: #FFF;
    float: left;
    height: 1200px;
    width: 250px;
    border-right-width: medium;
    border-right-style: solid;
    border-right-color: #00C;
    #mainbody {
    background-color: #FFF;
    height: 1200px;
    width: 646px;
    float: left;
    #spacer2 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    clear: both;
    #navbottom {
    background-color: #FFF;
    height: 100px;
    width: 900px;
    #spacer3 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    -->
    </style></head>
    <body>
    <div id="container"><!-- TemplateBeginEditable name="flashbanner" -->
      <div id="flashbanner">flashbanner</div>
    <!-- TemplateEndEditable --><!-- TemplateBeginEditable name="title" -->
    <div id="title">title</div>
    <!-- TemplateEndEditable -->
    <div id="navtop">nav top</div>
      <div id="spacer1"></div>
      <div id="navleft">nav left</div>
      <!-- TemplateBeginEditable name="mainbody" -->
      <div id="mainbody">mainbody</div>
      <!-- TemplateEndEditable -->
      <div id="spacer2"></div>
      <div id="navbottom">nav bottom</div>
      <div id="spacer3"></div>
    container</div>
    </body>
    </html>
    Index.htm
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/main.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
    background-color: #00C;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    #container {
    background-color: #FFF;
    width: 900px;
    margin-right: auto;
    margin-left: auto;
    #flashbanner {
    background-color: #FFF;
    height: 350px;
    width: 900px;
    #title {
    background-color: #FFF;
    height: 35px;
    width: 900px;
    #navtop {
    background-color: #FFF;
    height: 100px;
    width: 900px;
    #spacer1 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    #navleft {
    background-color: #FFF;
    float: left;
    height: 1200px;
    width: 250px;
    border-right-width: medium;
    border-right-style: solid;
    border-right-color: #00C;
    #mainbody {
    background-color: #FFF;
    height: 1200px;
    width: 646px;
    float: left;
    #spacer2 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    clear: both;
    #navbottom {
    background-color: #FFF;
    height: 100px;
    width: 900px;
    #spacer3 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    -->
    </style></head>
    <body>
    <div id="container"><!-- InstanceBeginEditable name="flashbanner" -->
      <div id="flashbanner">flashbanner</div>
    <!-- InstanceEndEditable --><!-- InstanceBeginEditable name="title" -->
    <div id="title">title</div>
    <!-- InstanceEndEditable -->
    <div id="navtop">nav top</div>
      <div id="spacer1"></div>
      <div id="navleft">nav left</div>
      <!-- InstanceBeginEditable name="mainbody" -->
      <div id="mainbody">mainbody</div>
      <!-- InstanceEndEditable -->
      <div id="spacer2"></div>
      <div id="navbottom">nav bottom</div>
      <div id="spacer3"></div>
    container</div>
    </body>
    <!-- InstanceEnd --></html>

  • Good evening I would please help me, IGood evening I would please help me, I have problems with flash player when update on my computer Flash Player for windows 8, gives me error in the installation that is not apply on my computer. Please help. Thank You

    Good evening I would please help me, IGood evening I would please help me, I have problems with flash player when update on my computer Flash Player for windows 8, gives me error in the installation that is not apply on my computer. Please help. Thank You

    First, confirm that ActiveX Filtering is configured to allow Flash content:
    https://forums.adobe.com/thread/867968
    Internet Explorer 11 introduces a number of changes both to how the browser identifies itself to remote web servers, and to how it processes JavaScript intended to target behaviors specific to Internet Explorer. Unfortunately, this means that content on some sites will be broken until the content provider changes their site to conform to the new development approach required by modern versions of IE.
    You can try to work around these issues by using Compatibility View:
    http://windows.microsoft.com/en-us/internet-explorer/use-compatibility-view#ie=ie-11
    If that is too inconvenient, using Google Chrome may be a preferable alternative.

  • Flash Player and JavaScript

    Hi,
    I am the creator of the
    Virtual Cutter.
    This is a website that can be used to create clips and playlists
    for a large number of streaming video formats, and currently
    supports the Windows Media Player, Real Player, Quicktime Player
    and Kasenna Broadband Player. I am now looking to support the Flash
    Player as well, or, more accurately, Flash-specific file formats
    such as swf and flv.
    As I am not a Flash programmer and do not know much about
    Flash files, I hope to find answers to the questions I have about
    this issue in this forum.
    To use the architecture of the Virtual Cutter, I need to
    access the Flash Player using JavaScript.
    1. Is there a JavaScript function to get the current position
    of the videofile? Something like flashplayer.getcurrentposition
    2. Is it possible to add buttons to start, stop, pause,
    rewind the file?
    Off course, to play a clip, it must be possible to play a
    file from any position in the file. The Virtual Cutter therefore
    generates (depending on the player) an .asx, ram or.smil file, that
    contains parameters for start point and end point/duration.
    3. Is there a similar file format that I can use to play only
    a selection of the Flash file?
    4. Is is possible to create a playlist, so a sequence of
    clips can be played?
    5. What Flash-specific file formats could be processed?
    The Virtual Cutter is an Open Source project. If anyone is
    interested in working together on this, please contact me.
    Best wishes,
    André Rosendaal

    No Flash for iPads, iPhones, or iPods
    Here's why there's is no Flash available for iDevices or other mobile devices. Adobe was unable to provide a product that was suitable to the needs of battery powered mobile devices used for Internet browsing. Existing Flash technology used too much memory, ate battery life, and was buggy. Simply put Flash did not work well on mobile devices.
    Apple's Steve Jobs led the escape from Flash dependency when Apple introduced the iPhone, and later introduced the iPad. There was a hue and cry over the omission. Time proved Jobs was right on target.
    So this is why there is no Flash for your iPhone or iPad or iPod nor for most SmartPhones. Flash has been abandoned by many sites in favor of supported technologies such as HTML5 or by providing their own custom app.
    Here is Steve Jobs official comment on his momentous decision to omit Flash from iDevices: Steve Jobs on Flash.
    Here is Adobe's later announcement to cease development of Flash for mobile devices: Adobe on Mobile Flash. Adobe is not providing Flash for Apple iOS devices, and they no longer provide Flash for any other cellular phones. Flash is officially gone.
    Now, you are not necessarily out on a limb. There are some apps that can display some Flash, but don't count on there ability to display anything using Flash.
    A sample of Apps that can display some Flash content:
      1. Puffin
      2. SkyFire
      3. Photon Flash
      4. Browse2Go
      5. Swifter
    Also, note that many sites that use Flash provide their own app for accessing their material. So check with your favorite sites and find out if "there's an app for that."

  • Embedded swf "jumping" when scrolling an html page

    Hello!
    I have created a banner file in Flash and when embedding an swf file on the html page the swf banner appears to be "jumping" up and down when the page is longer and needs to be scrolled. This only happens when scrolling the page.
    I put up an example here:
    www.selkografiikka.com/test/coaching4.html
    You can see the black swf box jumping towards the red dots when scrolling.
    This turns out to be a problem on a website I'm working with since it's creating a rather nervous vibe to the whole feel of the site - example here:
    http://www.selkografiikka.com/tindra/index.htm
    Any ideas what's causing this?
    I am using Dreamweaver and Flash cs3.
    It seems to be a problem in all the browsers.

    Thank you Jon and Nancy for your replies.
    Sorry it took me a little while to figure out how to reply here.
    I’m happy this is not a problem on each computer according to your replies.
    I believe Java Script would be more up to date way of doing this, but the original idea was more complicated – with animated text and such so that’s why flash. I thought just to make a static picture that will show in ipads and such when flash is not supported.
    I can still see that jumping thing although I updated my flash player and otherwise have just the same browser versions as Jon.
    I might consider switching the animation part to javascript animation.
    Thank you guys!
    Liisa

  • Problem with WHEN-CHECKBOX-CHANGED and ON-POPULATE-DETAILS

    I have a detail block with a relationship set up to a second block. In my first block, if I cause an error but the next action I take is to press a checkbox on another record, my error will display and the raise form trigger failure is triggered but the checkbox changes it's value and the cursor is displayed on the record with the error. I didn't want the checkbox to change if an error occurred. I tracked this through the trace and saw the on-populate-details is fired between the error and the when-checkbox-changed trigger. I went through debug and saw because of the erorr, the system will do a 'return' back to the sending action. I beleive this return is causing the when-checkbox-changed to fire. I'm just guessing here. I tried a similar action on another form without a relationship set up. That would eliminate the on-populate-details trigger. When I did a similar error, I got exactly what I was looking for. I caused the error but pressed the checkbox on another record. The error displayed but the checkbox did not change and the cursor returned to the error record. I need the record to have this relationship. Consequently, I need the on-populate-details trigger. Can anyone think of a solution? I'm currently on Forms 6I. We are going to forms 10G in the next few months. But I really need a solution on my current set up. Thanks.

    The getNextDatabankRecord() call is at the beginning of my run code. I use one step just for this line code.
    Code :
    public void run() throws Exception {
              beginStep("CHARGEMENT DES DONNEES SUIVANTES");
                   info("Chargement des prochaines données...");
                   getDatabank("NouvellesIA").getNextDatabankRecord();
              endStep();
    Stop the user after this step and goto the finish section should not be a problem...
    If I use the "When out of records" option, does it jump directly to the finish section ?
    Thanks,
    Benoit.

  • How can I retrieve emails that were deleted off my iPhone 4s when I changed the password to my email acccount?

    I changed the password to my email account and when I changed it in my phone all of my emails were deleted Is there any way to retrieve them? They are in the server and I can access them via Outlook just not on my iPhone or iPad.

    They won't be in icloud, since the only thing that would contain pictures are backups.  But they were deleted before you signed up for icloud, so forget that.  The only other thing to check is you computer.  Users are always advised to sync photos to computers for archiving.  If you did that, you should be able to find them there.  But without any backups or copies of them, then they are history.
    And no, you can't look at pictures in icloud.

Maybe you are looking for

  • Looking for an app where i can draw images then text them?

    Looking for an app where I can draw images then text them?

  • Problem in testing webservice.

    Hi Folks , I have a SOAP to RFC scenario. I created  wsdl  from my integration directory  and trying  to  test it using Altova xml spy .. But I am getting error  http error :  couldnot post file . My soap request  is like <SOAP-ENV:Envelope xmlns:SOA

  • DFS replication is OK, but it is changing the times on files

     I have two 2008R2 servers that use DFS to replicate data over a wireless link (150MB/s). They seem to replicate really well, except that some of the files seem to have different times, that are off between hours/minutes and occasional years. If I do

  • Premiere Elements 9 does not find photos

    I cannot open old projects because PE9 does not find the photos and if I start with a new project PE9 cannot upload not any type of files.

  • Export import mandotary patches

    hi, there is a note on metalink :Oracle Support Master Note for Portal Export/Import. Doc ID:      Note:263995.1 it says that there are mandotary patches required for a successfull export - import. For example: 10.1.2.0.2 (**) Patch:5064459 : EXPORT/