Shaking the browser window of in Flash 8

I have searched and tried several ways to do it, but I still have problems. what I basically want to do, is apply a java script shake browser window action to an image in flash so that when a user enters the wrong password it shakes the window. the tutorials that I have met all deal with external htmls etc. but how do you go in flash?

Thank you 1 million... Stone

I have a sample of this, and it's pretty easy actually. Place this code in your HTML page:
=======================
function shake() {}
If {(parent.moveBy)
for (i = 10; I > 0; i--) {}
for (j = 1; j > 0; j-) {}
parent.moveBy(0,i+5);
parent.moveBy (i + 10, 0);
parent.moveBy(0,-i-5);
parent.moveBy (i - 10, 0);
}
}
}
}
========================

Then in FLASH, if you want the browser to shake, you add this code:
getURL ("javascript:shake ()");

That's all. In order to view the shaking, you must open the swf file in the Html page.

Tags: Adobe Animate

Similar Questions

  • How to Center a flash movie in the browser window

    Can someone explain how to Center horizontally my Flash movie in the browser window after publication?

    A little history:

    I was able to do this by using < Center > < / center > tags a few years ago. But I've updated for CS5 and I understand that this old method is now obsolete.

    I found a few threads and forums dealing with this, but I don't know anything about HTML, these discussions don't me because they assume you have more knowledge than I have. When you open the index.html file in Dreamweaver I can't find something that looks vaguely familiar to what is discussed. I found some code examples using < div > < / div > tags but have no idea where to place them.

    So I need it explained to me in a way step by step, including the what file I have difficulty and what program I need to use. Code samples will be very welcome if you can tell me exactly where he's going.

    Thanks in advance...

    Add this between the head of your html page:

  • How can I make my swf is displayed correctly in the browser windows?

    I want to publish my Flash file and make it accessible by a link, but it does not display correctly. All angles or curved edges look jagged and uneven. Straight lines are fine, but everything else seems messy. In addition, my last swf is amplified to fill the window of the browser for a reason, which looks terrible. I didn't know the question before scaling and I can't understand what the problem is this time. Files I posted before still displayed to the normal size of the file work, but it works differently. I use Flash CS6, and I tried to download and view my swf in Chrome and firefox. The swf dimensions are 1280 by 720. Thank you

    If you link directly to the swf instead of an html page that loads the SWF then the swf will size itself to fit the browser window.

  • Try to float my icons so that they are always in the lower right of the browser window.

    I am currently using tags div to achieve, but because I am now fields a preloader, I can't use this method. I have elements which must float including my logo on the lower left, my icons at the bottom right and request a tab on the top right of the window. I also need my main_mc to be centered in the browser window. I could do all this using CSS and DIV tags but because I would use a preloader, need to understand how do have instead.

    Someone said in a previous debate that I could use javascript in some way to position elements, but do not know much about him. If someone could put a solution relatively easy to do this I would really appreciate it.

    What kind of preloader is that? Do you use some sort of preloader javascript which shades site and preloads the page? How the preload affects your need to change the CSS? The SWF resize itself?

    If you are not very familiar with JavaScript, it is better to get a frame that will handle things like differences between the browsers for you. jQuery is a very popular and easy to use framework. You can use the class ExternalInterface AS inform JavaScript your Flash loading is completed and use jQuery to measure and align your SWF object. You would need a resize handler to adjust necessary also when the user resizes the browser.

    Although I keep just simple with CSS is better. I don't understand why a preloader is not what allows some CSS work unless the SWF is actually changing the size.

    An example of a JavaScript function using jQuery that ExternalInterface might be called to reposition the SWF, assuming the SWF file has the id = "MainSWF":

    JavaScript

    $(document) .ready (function)

    {

    resize the listener

    $(window) .resize (function () {AlignElements() ;});

    Make sure SWF is absolute positioned

    $('#MainSWF').css({'position':'absolute'});

    call it to begin

    AlignElements();

    });

    function AlignElements()

    {

    Use the top/left properties to align SWF

    var left = Math.round (($(window) () - $('MainSWF').width () .width / 2) + "px";

    Var high = Math.round (($(window) () - $('MainSWF').height () .height / 2) + "px";

    $('#MainSWF').css({'left':left,'top':top});

    }

    AS:

    LIKE, called SWF after preloading

    ExternalInterface.call("saveglobalscore",score) ("AlignElements");

    Make sure you download and load jQuery into your pages, so it is available or not working. There are a lot of other JavaScript frameworks you'll love more or are together lighter on the loading of the basic page for such things. Looking around doesn't hurt.

  • The browser window will not move back other windows when I click on them.

    I minimize the browser window to view anything else. Any solution?

    Hi marytpapa,
    Please upgrade to the latest version of Firefox, the latest version is 40.0.3:

    And Yes by clicking on the tab will bring the window to the front, not back. In Windows 7, you can import a program at home https://social.technet.microsoft.com/.../moverecover-offscreen-window

  • Resizing of the buttons on the toolbar disappear after the browser window

    When I run my browser all the buttons on the toolbar are in place.

    http://C2N.me/3cwiz9M.jpg

    When I resize my browser window to make it smaller, these buttons to collapse to a "arrow":

    http://C2N.me/3cwiLnZ.jpg

    But when I resize my browser window to make it larger or maximize the browser window, these buttons won't reappear soon whatever I do next.

    http://C2N.me/3cwiWnn.jpg

    The only thing that helps is to close the browser and run it again.

    Possible causes are extensions that required, information or other content of text in the Navigation toolbar.
    You can try to move some of the buttons that are provided by an extension temporarily to a different toolbar to test this.

  • Why of opaque boxes appear in place of the entered text (Firefox ver. 34/Ubuntu 12.04) in the browser window?

    There was a similar question posted earlier, but this isn't exactly the same thing. When all 'text' has been reached and appears in the URL address box - it is characterized by rectangular, green, black, or gray boxes (instead of letters, numbers, etc.). I can always navigate normally using the browser window, the text always appears in this format "hidden". In safe mode does not change the appearance. I updated the software, Firefox, using Linux (Terminal).
    This problem is specific to Firefox only... no other browsers show this way.
    It has been a consideration for a while, now. In fact, I got to use another browser, although I have Firefox in favour (including Linux) and wish to use it.
    Thank you.

    Sorry to hear that you have been waiting so long! Could you check this thread started by another user of Linux and see if workaround it helps you on your system:

    How can I stop firefox ffrom blocking URLS

    (Workaround was to switch the preference gfx.xrender.enabled to false).

  • After the upgrade to Firefox 34.0.5, app opens but there is no indication in the browser window, i.e. no URL opens, and there is no message error, but Safari OSX 10.9.5 misfortune

    After the upgrade to Firefox 34.0.5, app opens but there is no indication in the browser window, i.e. no URL opens, and there is no error message.

    Safari (OSX 10.9.5) works.

    I tried the firewall solution, but it does not work.

    Previous version of Firefox work very well. I tried the version installation 34 twice and the computer restart.

    Yoono is a free software that allows you to connect and share with all your social networks and instant messaging in one place services
    www.Yoono.com

    It was very good work. Play well.
    Please mark your last post as solved so other will know.

  • I've just updated to 30.0 and now the browser window is reduced by half.

    I've just updated to 30.0 on my laptop. I've never had problems before and now when I open Firefox the browser window is reduced by half. I closed and reopened the browser and have even restarted my computer and I can't find something in the settings. I can't do what I usually do with the window this small.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • Given that I've upgraded to 20.0, many keyboard shourtcuts do not work in the browser window: Ctrl + C, CTRL-V, etc.

    Many shortcut keys do not work in apps/sites in the browser window:

    CTRL-C, RIGHT/LEFT/TOP/DOWN-arrow, BACKSPACE (back), CTRL-D, CTRL-T, TAB to move from one field, etc.

    Using the menu commands such as COPY and PASTE work fine, while CTRL + C and Ctrl + V do not work.

    Real pain... (since the upgrade to V20 a few days ago)

    Following another suggestion here, I went in: config and disabled the "allowclipboardhelper.tabs.disabled" parameter set to "false". No change.

    I'm on Mac OSX 10.7.5 (Lion).

    Hello

    Thank you very much. And thanks for the quick response!

    I did as suggested and restarted several times enable or disable addons to isolate the one that generated the problem.

    The guilty were:

    Website and SEO analysis 1.1
    SEOpen 1.2

    Everything seems fine now.

    Take care.

  • Why the browser window changes color when I bookmark on a page, or click on the download button?

    Using Firefox 20 on MacOS - when I click the button downloads or Cmd + D to bookmark a page, the browser window changes which looks like this:
    https://DL.dropboxusercontent.com/u/35912963/01-Firefox-before.PNG
    who looks like this:
    https://DL.dropboxusercontent.com/u/35912963/02-Firefox-after.PNG
    Any thoughts would be welcome.

    Dan

    Hello

    Wow, that seems strange. I have no idea why this would happen, but I wonder if it is related to one of the Add-ons you have installed? I see a red icon in the status bar that I'm not familiar with, which leads me to believe that you might have other add-ons installed. One thing to try is to start Firefox Firefox with disabled modules (you can do this in the Help menu). If you do not see this problem in this mode, the problem is caused by one of the Add-ons. On the Tools menu, you can access the Add-ons and disable one by one. Remember to restart each time, and then test.

    If none of this takes care of this, my other suggestion would be Reset Firefox: Firefox Refresh - reset the parameters and modules

    Hope all this helps.

    See you soon,.
    David

  • Is there a possible solution to this age-old problem which graphics disappear when the browser window is resized?

    example: www.satlinker.de
    If the browser window is smaller than the content, the header image seems well.
    My css stylesheet looks like this:

    #banner {
     padding-left:10px;
     text-align: left;
     font-weight: bold;
     border: 1px solid #000;
     background: transparent url(/media/header.svg) top left no-repeat;
     height: 70px; /*workaround to adjust width*/
     -webkit-background-size:100% 100%;
     -moz-background-size:100% 100%;
     -o-background-size:100% 100%;
     background-size:100% 100%;
    }

    It has nothing to do with svg, similar problems with png images.
    In earlier versions, height adjustment worked as a workaround, but no more in vesion 17.
    There are various problems like the one described in the net:
    for example Bug 282558 - sized image vanishes on browser resize.
    But I can't find any solution - and this bug is described in 2005!

    I was wrong, it was a problem with the svg format. I tried several other formats, each doing its own problems. I tried cleaning the svg with conversion tools code and finally manually with a Publisher - nothing works. GIF and jpg of other problems, so finally I have found a converter of images to http://www.files-conversion.com/, which produces an acceptable png format.

    I think that the rendering of images needs to be improved.

  • The browser window does not whole screen, despite the actual program in doing so.

    At one point, I opened FF and the browser window has stopped picking up full-screen. The program actually fills the screen, but the current browser window has some sort of right margin. Do a right click in the right margin produced no popup menu. Browser currently looking like such http://i.imgur.com/8pgtE.jpg. I tried closing, closing force and the PC restarts and does not return to normal. No plug in installed, however cannot be certain it did not update, although in my view, that none has.

    Found my culprit. Whitespace Remover for plugin Google more recently updated course. I disabled v1.28 and everything went back to normal

  • How can I remove the address bar of history? It takes space on the left side of the browser window, and I can't see the content of a Web site.

    I have a location History bar taking all the left side of the browser window. I am on Windows 7 and it happened there are two improvements. I am now on Firefox 8.01

    Press F10, or press the Alt key to bring up the 'Menu Bar' temporarily if the menu bar is hidden.

  • I get a double blue bar at the top of the browser window that makes certain commands fail.

    When I opened a second FireFox application a double blue line appears at the top of the browser window. To close the window, you must use the X above the page. When in this State, you can display only a landing page that you can not return to the previous page you see just. How to restore its normal state (single blue bar)?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

    Safe mode disables extensions in Firefox 4 and later versions, and disables hardware acceleration.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    If disable hardware acceleration works then check if there is an update available for your graphics display driver.

Maybe you are looking for

  • Not able to see my attachment to iphone6s

    Hello everyone, need your support, I can't see my attachments in emails, please suggest a way out to resolve the issue please.

  • Power on the problem to my SP2100

    I have a Satellite Pro 2100. I can't turn on when I press the button on the computer. It's the same that played in the large battery or AC via the adapter. The only sign of the computer is the power light is flashing orange (one of five in the front)

  • Equium A60-155: ATi Mobility graphics card problem

    Hello I have a laptop Equium A60, recently I am getting error informing messages than the "display driver ATi2mtag has stopped working properly.I have reset my machine as told to do the error dialog box. Reset works fine, but the laptop crashes to th

  • Get integer values of visa series read

    Hello I am having trouble getting the integer values correct of the reading series string that I get. For example if I send 0P3 I get 48,112,51 as elements of an array. I used the string to byte array function to convert the string I've read on the s

  • Free security software

    Now listen here objectors, I bought the year last for 14.99 for device sharing two, this year it's up to 49.00. no way I'm paying this dough a little! Anyone know good security software that can be downloaded/hacked on the web? Or you could send me s