Resizing div height using ExternalInterface makes window jump in safari

I only notice this problem in safari, no other browser.
My application loads in modules as it needs them and changes the height of the HTML div that contains the movie, I do this using ExternalInterface.call. (This is because scrolling in flex/flash is downright awful, I like the scrollbar in the browser to work).
However, If I load in a module and inside of that module I change the external interfaces height, I find that the flash movie seems to jump down then jump back up about 150-200 pixels.
I want the movie to just stay anchored to the top of the div, no matter what the size of the div is. How can I enforce that policy on the player?
I have tried align: "t" and salign: "t" in the movies params, but I'm not exactly sure what that did as it still jumped down.

hey, thanks for the direction. I'm guessing that when i styled the attribute, any existing css style for the object still overrid the attribute styling.
Here is a simple version of my solution:
<code>
function autoWide (myID, minWide) {
var targetA = document.getElementById(myID);
var currWidth = self.innerWidth;
if (currWidth < minWide) {
targetA.style.width = minWide;
else {
targetA.style.width = '100%';
</code>
If anyone else is interested the innerwidth method doesn't work in all browsers, here is a link to an explaination.
http://www.quirksmode.org/viewport/compatibility.html
thanks again.
G5   Mac OS X (10.4.6)  

Similar Messages

  • Magic mouse. makes windows jump about, by magic.

    I put my hand on the mouse to move the pointer and it thinks I'm swiping on the surface. I swipe up or down on the surface and it pauses for a few seconds before moving the window several times. Is yours crazy too?

    I think it will install an updater. It should be in the start menu -> programs.
    http://phonedifferent.com/images/2007/09/update_itunes2.png
    I'm not sure it will update your drivers, but it's worth a shot.

  • Use cs4 make loader load flex swf width/height problem

    hi,all:
      i use cs4 make as3 loader from SharedObject.getLocal, load flex make swf file, so width/height is not Ok
    load cs4 make swf file is Ok,
    why?
    as3code:
    // copy right china summer xiatian qq 11602011
    package{
      import flash.net.SharedObject;
      import flash.utils.ByteArray;
      import flash.display.*;
      import fl.controls.*;
      import flash.net.URLRequest;
      import flash.net.URLRequestMethod;
      import flash.system.ApplicationDomain;
      import flash.system.LoaderContext;
      import flash.net.*;
      import flash.utils.*;
      import flash.external.ExternalInterface;
      import flash.system.*;
      // http://as3corelib.googlecode.com/svn/trunk/src/com/adobe/crypto/MD5.as
      import com.adobe.crypto.MD5;
      import flash.events.*;
          public class MyCacheLoader extends Sprite
              public function MyCacheLoader()
                  Security.allowDomain("*");
                  Security.exactSettings = true;
                  function getStr(s:String):String
                     return ExternalInterface.call("(function(){return window['" + s + "'];})")  || '';
                  function MyLog(s:String):void
                      // ExternalInterface.call("(function(){var o = document.getElementById('myLog');o.value += '" + s + "' + '\n\n';})");
                      ExternalInterface.call("(function(){top.alert('" + s + "');})");
                      // myTestTxt.text = myTestTxt.text + s + "\n\n";
                  var bLoadSwf:Boolean = true;
                  var parm:Object = loaderInfo.parameters;
                  // parm["u"] = "/xuicore/test/myTest.swf";
                  // parm["v"] = "4.4";
                  var szUrl:String = parm['c'] + "/CMHS?jsessionid=" + parm['s'] + "&CMHS=GetOutSpFile&rmpath=rs/&rmf=" + parm["u"] + ".swf",
                      szVer:String = parm["v"], szName:String = parm["u"];// "X" + MD5.hash(parm["u"]);
                  var loader:Loader = new Loader();
                  var so:SharedObject = SharedObject.getLocal(szName);
                  loader.x = loader.y = 0;
                  addChild(loader);
                  function showSwf(byteArray:ByteArray):void
                    // MyLog("开始显示处理: " + byteArray.length);
                    if(0 >= byteArray.length)return;
                    bLoadSwf = false;
                    // loader.visible = false;
                    configureListeners(loader.contentLoaderInfo);
                    var context:LoaderContext = new LoaderContext(false,ApplicationDomain.currentDomain);
                    // context.allowLoadBytesCodeExecution = true;
                    loader.loadBytes(byteArray, context);
                  function displaySwf():void
                     var oData:Object = so.data;
                     // MyLog([szVer, oData.version].join(" = "));
                     if(szVer == oData.version)
                       showSwf(so.data.swf as ByteArray);
                     else downloadSwf();
                  var ldr:URLStream = new URLStream();
                  function downloadSwf():void
                      bLoadSwf = true;
                      // MyLog(szUrl);
                      var ur:URLRequest = new URLRequest(szUrl);
                      ur.data = new Date().getTime();
                      ur.method = URLRequestMethod.POST;
                      configureListeners(ldr);
                      ldr.load(ur);   
                  function configureListeners(dispatcher:IEventDispatcher):void {
                      dispatcher.addEventListener(Event.COMPLETE, completeHandler);
                      dispatcher.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
                      dispatcher.addEventListener(Event.INIT, initHandler);
                      dispatcher.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
                      dispatcher.addEventListener(Event.OPEN, openHandler);
                      dispatcher.addEventListener(ProgressEvent.PROGRESS, progressHandler);
                      dispatcher.addEventListener(Event.UNLOAD, unLoadHandler);
                      if(!bLoadSwf)dispatcher.addEventListener(Event.INIT,loaded);
                  function removeListeners(dispatcher:IEventDispatcher):void {
                      dispatcher.removeEventListener(Event.COMPLETE, completeHandler);
                      dispatcher.removeEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
                      dispatcher.removeEventListener(Event.INIT, initHandler);
                      dispatcher.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
                      dispatcher.removeEventListener(Event.OPEN, openHandler);
                      dispatcher.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
                      dispatcher.removeEventListener(Event.UNLOAD, unLoadHandler);
                      if(!bLoadSwf)dispatcher.removeEventListener(Event.INIT,loaded);
                  function loaded(e:Event):void{
                          loader.x = loader.y = 0;
                          loader.content.y = loader.content.x = 0;
                          var s:String = "", k:String, obj:Object = loader.content;
                          // for(k in obj)s += k + " = " + obj[k] + ";";
                          // obj.width = "100%", obj.height = "100%";
                          // MyLog([obj.width, obj.height].join(", "));
                          loader.x = -180;
                          loader.scaleX = 1.83;
                          loader.scaleY = 1.05;
                          // loader.content.height = stage.stageHeight;
                          // loader.scaleContent = true;
                          // loader.content.width = stage.width,loader.content.height = stage.height;
                          // loader.content.stage.stageWidth = stage.stageWidth,loader.content.stage.stageHeight = stage.height;
                          // loader.content.stage.scaleMode = "exactFit";
                          setTimeout(function(){
                            // loader.x = loader.content.x = 0;
                            var fullWidth:Number = loader.content.width;
    var fullHeight:Number = loader.content.height;
    var stageWidth:Number = loader.content.loaderInfo.width;
    var stageHeight:Number = loader.content.loaderInfo.height;
    var fixOffStageScaleX = fullWidth / stageWidth;
    var fixOffStageScaleY = fullHeight / stageHeight;
                            loader.content.scaleX = fixOffStageScaleX,loader.content.scaleY = fixOffStageScaleY;
    // loader.content.width = stage.width * 1.59;loader.content.height = stage.height * 1.15;
                            // loader.content.width = stage.stageWidth,loader.content.height= stage.height;
                            // loader.width = stage.stageWidth,loader.height= stage.height;
                            // loader.content.stage.scaleMode = "exactFit";                       
                          }, 3000);
                  var _byteArray:ByteArray = new ByteArray();
                  function completeHandler(event:Event):void {
                      if(bLoadSwf)
                          if(0 < _byteArray.length)
                             so.data.swf = _byteArray;
                             so.data.version = szVer;
                             try{so.flush();}catch (e:Error){}
                             removeListeners(ldr);
                             showSwf(_byteArray);
                          else removeListeners(ldr);
                          bLoadSwf = false;
                          ldr = null;
                      else
                          removeListeners(loader.contentLoaderInfo);
                          // loader.visible = true;
                          // loader.content.width = (height / loader.content.height) * loader.content.width;
                          // loader.content.height = (width / loader.content.width) * loader.content.height;
                          if(isNaN(loader.content.width) || 0 >= loader.content.width)
                            setTimeout(function(){
                             loader.content.width = stage.stageWidth;
                             loader.content.height = stage.stageHeight;
                          }, 4000);
                          // width=loader.content.width;  height=loader.content.height;
                          // MyLog("显示处理完毕");
                  function httpStatusHandler(event:HTTPStatusEvent):void {
                      // MyLog("httpStatusHandler: " + event);
                  function initHandler(event:Event):void {
                      // MyLog("initHandler: " + event);
                  function ioErrorHandler(event:IOErrorEvent):void {
                      // MyLog("ioErrorHandler: " + event);
                  function openHandler(event:Event):void {
                      // MyLog("openHandler: " + event);
                  function progressHandler(event:ProgressEvent):void {
                      // MyLog(bLoadSwf + ": progressHandler: bytesLoaded=" + event.bytesLoaded + " bytesTotal=" + event.bytesTotal);
                      if(bLoadSwf)
                        var urlStream:URLStream = event.currentTarget as URLStream;
                        while (urlStream.bytesAvailable)
                           urlStream.readBytes(_byteArray, _byteArray.length);
                  function unLoadHandler(event:Event):void {
                      // MyLog("unLoadHandler: " + event);
                  displaySwf();
    flex code:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="left" layout="absolute"
    paddingLeft="2"
        paddingTop="2"
        paddingBottom="2"
        paddingRight="2"
        autoLayout="true"
        width="100%"
        height="100%"
    backgroundGradientColors="[0x000000,0xBAD3F9]"
    ">
    </mx:Application>
    must:
    width="100%"
    height="100%"

    loader from SharedObject.getLocal, use SharedObject.getLocal cache bytearray swf data is ok,
    so, Can be seen as not with urlstream
    loader.loadBytes(byteArray, context);
    as3 cs4
    flex sdk 3.3.0.4852

  • I want to make a DVD of pictures in iPhoto to use on a Windows computer and need instructions on how to get the pictures in a place to do that.

    I'm looking for instructions on how to make a DVD of photos in iPhoto to use on a Windows based computer.  Thank you.

    This guide should help you there:
    support.apple.com/kb/HT1257

  • I use chrome on windows. Every time I am on Facebook and I am trying to play a game I get a message that says flash player has stopped working. how do i make it work?

    I use chrome on windows. Every time I am on Facebook and I am trying to play a game I get a message that says flash player has stopped working. How do i make it work?

    Hi juderocks14,
    Please first take a check with the other Players and see if they could play the MP4 file normally. If it can't be played, which means it might be corrupted. You may ask at the Bandicam side, or save the files again.
    If issue insists, take a try with the Troubleshooter (For Windows 7, 8 and 8.1):
    Open the Windows Media Player Settings troubleshooter
    Fix Windows Media Player video, and other media or library issues
    Or you may try to turn Windows Features on or off to reset Windows  Media Player:
    Turn Windows features on or off (Before turn it on again, please remember to reboot first)
    More reference:
    What happens if I turn off Windows Media Player?
    Best regards
    Michael Shao
    TechNet Community Support

  • Make a presentation with videos that can be used on a Windows PC.

    I need to make a presentation that can be projected from a PC using Windows. I am using Keynote 09, and some of my "slides" are short videos in m4v format. How can I burn the presentation onto a CD so the CD can be used by a Windows PC?

    He can't upload new photos for BannerZest as they have to be added to the application and included in the script.
    Its possible for him to upload movies and slideshows to a folder on the server so that you can provide a hyperlink to the movie on the website so that it opens and plays in a new browser window.

  • How to let the character in my flash game make a jump using AS3?

    i want to make the character in my flash game make a jump when the player presses a key,e.g. 'space',even the player release the key instantly,the character will still finish the complete jump process.Hope somebody will give me some advice, Thank you so much!!!

    what's the problem?

  • CairngormCommand - EventHandler - ExternalInterface - HTMLPopup - window.opener == null !!!

    Hey,
    I stumbled over a strange behavior... First I thought it's the PopUpBlocker
    I successfully implemented the payPalFlex solution. Only difference is, that I need to create a OrderHeader Entity before calling the PayPal-PopUp Window.
    So if I cancel the PayPal process and want to make the callback via. JavaScript to Flex (it's the onCancel part...)  the window.opener is null?! So I am already searching about 5 hours to find out what happened there. I think it's because I am not running in the main thread anymore.
    (I already tried to implement this with a changeWatcher and the Cairngorm successHandler Pattern...)
    Do you have a clue what's the Problem?
    Thanks!!!!
    some code out of my cart:
    // this gets called from button "Pay with PayPal"
    private function doPayWithPayPal(event:Event):void {
            // first create the OrderHeader
         var orderHeader:EOrderHeader = new EOrderHeader();
         orderHeader.id = 0;                    
         orderHeader.orderNumber = 0;               
         orderHeader.customerID = 0;                
         orderHeader.giftCodeID = 0;
         orderHeader.shipmentTypeID = 0;
         orderHeader.fulfillmentFlag = 'F';
         orderHeader.dateOrderDate = new Date();          
         orderHeader.orderTotal = sumOrder;
            // dispatch event to create orderHeader on Server
         var orderHeaderEvent:OrderHeaderEvent = new OrderHeaderEvent(OrderHeaderEvent.SAVE_ORDER_HEADER);
         orderHeaderEvent.orderHeader = orderHeader;
            orderHeaderEvent.successHandler = orderHeaderSaved;
         orderHeaderEvent.dispatch();
    protected function orderHeaderSaved():void {
         if( AdminModel.getInstance().returnedOrderHeader == null ) {
              Alert.show("Error!!!");
         var orderID:Number = AdminModel.getInstance().returnedOrderHeader.id;
         var requestURL:String = "remote/payPalFlex/startPaymentFlex.php";
         ExternalInterface.call('window.open','about:blank',
              'myWindow','height=500,width=900,toolbar=no,scrollbars=yes' );
         var url:URLRequest = new URLRequest("remote/payPalFlex/startPaymentFlex.php");
         url.data = new URLVariables();
         var obj:URLVariables = new URLVariables();
         url.data.useAs = orderID;
         url.method = "GET";
         navigateToURL(url,"DomainStickersWindow");
    in cancle.php:
    <html>
    <head>
    <title>PayPal PHP API Response</title>
    <script type="text/javascript">
         function doCancel() {
              window.opener.window.document.getElementById('index').doCancel();
              window.close();
    </script>
    </head>
    <body>
      You canceled, close to go back to the shop blablabl...
    <a href="javascript:doCancel()">ZurŸck zum Shop</a>
    </body>
    </html>

    Not solved yet but it seems to be a Safari specific Problem.

  • Beginner ? on resizing vector for uses outside Illustrator

    Slowly weaning myself off of MS PP for graphics.  One reason is so I can resize images for use in apps like Word.  I don't think I want to resize within Word so knowing how to do it in IL is the direction I'm headed (albeit as a beginner).
    The example is an image made up of mostly point type, one area type, and a few rounded rectangles.  I have it layed out on a 11x8.5 page (although it actually uses about 6x8.5.
    My thinking is to select all, grab a corner, hold down the shift key, and drag.  My first question is: am I getting the advantage of vector (i.e. quality resize)?
    Second, is there a way to control the final size as a percentage (for example) of the original selected area?  This question is because I may, in some cases, have a target size in mind.  For example, in the Word case, if I save the IL file as a picture and insert it into the document, Word already does some resizing (to fit the page dimensions (I assume).  In this case, the result is an image 23% of the original size (according to Word).  That's still a bit too big for my purposes.  I'd prefer 15% of the original.
    Is there some tutorial on how to do things like using the vector capabilities in IL to resize to a final object size.  I realize I may need to crop along the way.  I'm interested in the process and thinking behind it.
    Thanks
    Tom

    Tom,
    Honestly, I haven't read this whole thread in careful detail, but I really think the best advice would be for you to first, fully describe the kind of content you are trying to deliver and what you want the recipients to be able to do with it; second, map out a workflow for your intended purposes; and only then worry about the how-to specifics and the collection of software tools.
    Here's what I read:
    You have been using PowerPoint as your generic drawing tool. That, and your descriptions so far, suggest relatively simple graphics (lines, boxes, elbows, text, simple polygons). In short, it makes me wonder if you even really need a program like Illustrator at all.
    You want your final deliverables to be editable by your recipients. That alone goes a long way toward ruling out the native formats of Adobe applications, their expense, and their learning curves. It's a common practice in both business and mom & pop general use to treat native Office files as if they are some kind of "universal editable exchange format," just because they are so ubiquitious. You can't make that kind of assumption with graphics-production apps (like Adobe's). You can easily over-complicate things by deciding up-front that you need to jump into that arena. Are you an author, or do you really want to embark on a designer career? Look, if you're not designing for mass commercial reproduction, you may be entirely off-base thinking you need to involve Adobe apps at all.
    You are now straining to find a workflow which will "upgrade" your vector graphics (with a program like Illustrator) while still retaining the full editability of your deliverables in a format that mom & pop America knows how to deal with.
    Here are some basic things you may not be considering from a practicality standpoint:
    Programs like InDesign, Illustrator, et all (regardless of their "me, too" re-purposing in recent years for web-centric work) were created for commercial reproduction (i.e. printing in a PostScript environment). It is completely impractical to try to use their native files as any kind of "universal" exchange format for use by a general public--especially if you want your deliverables to be editable by recipients not equipped for or skilled in their use.
    PDF effectively makes the final content of documents created in graphics programs deliverable as is. Its basic purpose is to make documents created in pretty much anything readable by those without the authoring programs, while maintaining fidelity to the appearance of the final document. It's not really meant for overal editing like in the native program that created the document. If you want PDF to be your target final deliverable product, then fine; you can produce more sophisticated PDFs by doing your authoring work in graphics apps. But you'll be sacrificing the kind of native editability you are accustomed to with your current Office-based workflow.
    Office programs are from another world. They don't talk PostScript. They don't worry about things like halftones and color separation and all kinds of other print-world esoterica. They're not as detail-sophisticated as dedicated drawing programs in things like finely-controlled Bezier path drawing. They don't natively support the same paths and constructs contained in Illustrator artwork.
    Adobe's own "recommended" format for incorporating Illustrator artwork into Office applications is not vector at all; it's PNG, a raster format. That's what the Save For Office feature in Illustrator is all about. That fact alone should tell you alot about what you are getting into when you want to use AI to routinely populate Office documents with vector artwork from Illustrator.
    Office apps do, however, exist in the real workaday world, and do therefore provide general-purpose means by which to incorporate text, raster, and vector objects for constructing graphics.
    You have mentioned concern for vector scaleablilty several times. You seem to be unaware that even Office programs do in fact have their own graphics model for vector graphics. On Windows, that's what formats like Windows Metafile (WMF) and Enhanced Metafile (EMF) are all about. Those are the kinds of objects that are created by the various drawing tools that reside in not just PowerPoint, but also in Word, Excel, Access, et all.
    Don't think that you can't create professional-looking results in the Office applications you are already familiar with. "Professional" results is more a matter of design skill and artistic discernment than software. (Believe me, far more amateurish work is created in Illustrator than "professional" work.) It sounds to me (especially since you have been using only the drawing tools in PPT) like you may not have really explored the graphics capability that already exists in the Office applications you are using, and which you really want to use as your fully-editable deliverables anyway.
    In helping you devise a suitable workflow, I would ask you questions like these:
    Describe (and show examples) of the most "sophisticated' kinds of graphics that you envision needing to routinely include in your deliverables.
    Describe the level of editability that you want your recipients to be able to perform.
    Describe the functional content of your deliverables. For example, do you want your deliverables to contain live, editable spreadsheets that your users can use as "calculators" or "what if" graphs? Do you understand that while you can build some forms-based interactivity in PDFs, doing so is a relatively painstaking and esoteric process, whereas in Office applications, its pretty much a copy/paste affair?
    Have you fully explored the drawing feature sets in Office applications? Do you really understand their capabilities and limitations?
    JET

  • I cannot move, resize, minimize, or close the browser window despite everything inside the window still working.

    I don't know what details are needed so I'll just rattle off anything that I can think of.
    I am running an Asus laptop with windows 7. I have never had an issue with firefox in the past (beyond the usual freezing and some obvious issues with pop up ads that are par for the course with firefox since adblocker never does what it says.... not really. Lets be honest.) I am using Avast for my virus protection and it is also up to date.
    My issue started about an hour ago when firefox stopped responding. The video I had playing kept going but I could not interact with anything. Assuming the program froze for the billionth time that week I rebooted it. This has always solved freezing issues in the past. Now, however, firefox is doing something new.
    I can access the menus and almost everything on the window itself except for the minimize/maximize/close buttons, I cannot move the window at all, and I cannot manually resize it. I have also noticed that although videos will play, I can only click on their buttons if there is another smaller window overtop of firefox. The video controls will only appear that way and when I click them firefox naturally comes to the front and the video responds with the button I used but the buttons are gone again and I cannot resume playing without the smaller window back in front to make the buttons show again.
    It's as if half of firefox is frozen while the other half is still running somehow.
    I have no themes that could be causing this. Literally none. I only use firefox for the things that can no longer be opened in Opera so I have no need for any theme beyond default. The only addons I installed on purpose were adblockers (lord knows why. they don't DO anything.) though several other random things seem to have been installed over time to aid in one thing or another. Various plugins and players and versions of java, that sort of thing. But I have everything (and i mean EVERYTHING) in the addon menu disabled.
    I have tried booting it up in safe mode (the program, not windows) and the problem is still there except now it won't show the menu bar at all unless I press the alt key first and even then it wont let me actually click on anything in the menu bar. When I try the whole bar vanishes. I had to close firefox with the task manager.
    Rebooting will fix the issue for about 15 seconds before it all comes back.
    Any attempts at updating have failed as it says I am already up to date on everything so I don't know what its issue is.
    It's not an urgent issue right now as most of what i need to do can be done on the half screen window I am using, but some of my sites have buttons that literally vanish in anything but full screen and I imagine that this will be a much greater annoyance within a few days.

    After following all the instructions given, I poked around safe websites as suggested. I am not sure why this step was needed, as websites functioned rather normally before I came here but I did it anyways and found that the websites still work the same as they did. I can still do everything I used to be able to do. I see no change in the function of the websites.
    However, I still cannot resize, close, or move the browser window. I don't know if Netflix is a safe site or not (too many conflicting opinions on that one from the masses) so I don't know if the issue with the vanishing buttons is still there, but all the issues I had with the browser window itself is still there.
    Even in safe mode the browsers three window control buttons on the top right refuse to let me use them and the window itself will refuse to be moved around.

  • Windows jump to front?

    Hey everyone!
    Recently purchased a MBP with Lion pre-installed. I noticed a weird (and extremely annoying) bug. I would be using an app, then all of a sudden another open app's window would "Jump to front"... as if I had activated/interacted with it. For example, I'd be typing an email, then suddenly, my browser would jump to front so I'd have to go back to Mail to continue typing.  Then it continuously happens until i either quit the app that keeps jumping in front, or I just size all my windows so that when the offending app becomes "active" it doesn't cover up the other app I'm using.
    I know I'm probably not explaining this in the best way but that's the only way I can think of to describe it.  It's making Lion borderline unusable.
    Please help!
    Shane

    Noting that my solution really doesnt handle the situation that Remy brought up I thought I would remake the solution for anyone who would like to use it:
    * makes a window request a users attention
    * @param tempWindow a shell of some sort
    * @param tempMessage a message for the user to know why attention is needed
    protected void requestUserAttention (Shell tempWindow, String tempMessage)
    //rate at which the title will change in milliseconds
    int rateOfChange = 1000;
    final Shell window = tempWindow;
    //flash 10 times and thats it
    final String orgText = window.getText();
    final String message = tempMessage;
    window.setData("requestUserAttention", true);
    window.addShellListener(new ShellAdapter (){
    @Override
    public void shellActivated (ShellEvent e)
    window.setData("requestUserAttention", false);
    for (int x=0;x<10;x++)
    window.getDisplay().timerExec(2*rateOfChange*x-rateOfChange, new Runnable (){
    @Override
    public void run ()
    if (((Boolean)window.getData("requestUserAttention")))
    window.setText(message);
    window.getDisplay().timerExec(2*rateOfChange*x, new Runnable (){
    @Override
    public void run ()
    if (((Boolean)window.getData("requestUserAttention")) || window.getText().equals(message))
    window.setText(orgText);

  • Javascript error when using ExternalInterface.addCallback  with crossdomain swf file

    how can i use ExternalInterface.addCallback when using
    javascript access from Server A (html) to Server B (swf) ? coz it
    showing error?
    Server A
    192.168.0.10/XXX/example.html
    ===========
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    id="MGSInsurances1" width="960" height="600"
    codebase="
    http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
    <param name="movie" value="
    http://192.168.0.22/MGS/flex/MGSInsurances1.swf"
    />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#869ca7" />
    <param name="allowScriptAccess" value="always" />
    <embed src="
    http://192.168.0.22/MGS/flex/MGSInsurances1.swf"
    quality="high" bgcolor="#869ca7"
    width="960" height="600" name="MGSInsurances1"
    align="middle"
    play="true"
    loop="false"
    quality="high"
    allowScriptAccess="always"
    type="application/x-shockwave-flash"
    pluginspage="
    http://www.adobe.com/go/getflashplayer">
    </embed>
    </object>
    <script language="javascript">
    window.MGSInsurances1 =
    document.getElementById('MGSInsurances1');
    </script>
    Server B
    192.168.0.22/MGS/flex/MGSInsurances1.swf
    ==================
    Security.allowDomain("*");
    if(ExternalInterface.available)
    ExternalInterface.addCallback("onchange",onchange);
    ExternalInterface.addCallback("datachange",datachange);
    but javascript Error is showing "Unknown name", how can i fix
    it? urgent! somebody know this?

    i solved it! because i havent restart my server again! No
    Error again ! sorry for bothering everybody.

  • ANNOYING: Ovi window jumping out each time I sit b...

    Dear OVI Developers,
    Each time I go out and return to sit back at my PC, OVI Suite window jumps out.
    Now dear developers, if anyone reads it - this issue is dreadfully annoying and has been reported on many forums for a really long time.
    Yet on all the threads I've seen (at least here, at Discussions) I have seen no single entry saying "we will fix" or anything.
    If coding a simple checkbox "do not pop out" is really that hard, then at least say "we will not fix it". Just few words of information would be sufficient.
    Your's sincerely,
    Desperate user.

    I suspect that "every time you sit back at your PC" is a bit of an exaggeration unless your PC has some kind of motion-detector that knows when you are there...
    There is a certain amount of control that you can exercise over Ovi Suite - the easiest way to make sure it isn't active unless you specifically need it is to go to Tools>Options>General and un-tick the box marked "Start Nokia Ovi Suite automatically when your computer starts up" (see the attached file "ovi_suite_startup1.jpg"). This means that you can't quickly open Ovi Suite from the system tray, you have to go via the desktop or start menu, but it's only a very small sacrifice.
    Once you use Ovi Suite, it remains open in the system tray. To kill it, just click the Ovi icon in your system tray then select Exit - see attached image "ovi_suite_closedown1.jpg".
    Provided that Ovi Suite is not active in the system tray, it will not interrupt you - it will not attempt to carry out any scheduled activities and nor will it pop up when you connect your phone to the PC by USB cable.
    I don't know what the specific issue is that people are moaning about on the forums, perhaps they simply haven't bothered to check how to restrict Ovi Suite's activities. The only issue I have noticed is that when active, Ovi Suite tries to hijack your connection mode - if you connect in mass storage mode to transfer files via Windows Explorer or you connect by Media Transfer mode to use Ovi Player, Ovi Suite pops up and switches your connection to PC Suite mode. This is indeed irritating, but easily fixed by follwoing the two tips I have just given.
    Attachments:
    ovi_suite_popup1.jpg ‏87 KB
    ovi_suite_closedown1.jpg ‏6 KB

  • Odd window jump

    I noticed something odd in the last couple days when typing a message reply.  (And it just did it just now while typing this new message.)  The edit window will jump down a bit and then jump back up.
    It seems that an extra blank line suddenly appears on the web page just above the title that says Body and lasts for perhaps a half second.  It is a little annoying to see the screen jump while you are typing.  Has anyone else seen this?  Right now I am using IE8 on Windows Vista.  This has happened about 5 or 6 times just while typing this particular message.
    (One other odd think was that when I went to create this new message, the window first appeared saying I had some unsaved changes from March 25.  I decided to load them and confirmed there was text from a message I would have typed around that time.  Why would the forum tell my I have saved changes from a message from 3 months ago?)
    Upon closer inspection, it looks like is happening when the autosaved time is being updated on the screen which is on the same line as the "Body" title.
    Solved!
    Go to Solution.

    Yes it is was jumping for me yesterday.
    I go to click on a line and the jump put the cursor at the line above/below.
    Ben
    As I was about to hit the post I noticed agin this AM so I added this line and it jumped again while typing this line.
    As i moved my cursor out of the text editing window (that I have sized up from the default) it did it again.
    Again moving my cursor in/out of text window may seem to trigger it, or maybe sliding over the resize handle on the bottom left.
    Eitiher that or it is a timing thing (could my privacy filter be spying on what I type?
    maybe it is a time thing after a new line (CR)?
    10 seconds after a new line
    20 seconds after new line
    22 seconds after new line
    25 secionds
    Got another but did not add new line and no new jump.
    Sure is looking like 30 second after new line.
    Got antoher but watching the task manager I saw an antivirus thing jump to the top of CPU useage
    Again as above.
    I am done testing since there seems to be a pattern.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Instead of using the make file can you build nirlpk.sys using MS WDK 8.0 on VS2012?

    After downloading the NI nimhddk_windowsWDM-2 and -1
    Instead of using the make file I built nirlpk.sys using MS WDK 8.0 on VS2012
    I copied the source files out of the dir /nirlpk to the MS template for WDM drivers
    It built after turning warnings as errors off.
    After uninstalling the NI_DMX driver I tried to install the RLP driver that consisted of nirlp.inf and nirlpk.sys
    I got this message:
    Windows found driver software for your device but encounted and error while attempting to install it.
    PCI-6602 RLP WDM
    Driver is not intended for this platform
    Is the nirlp.inf file correct for loading on Windows 7 64 bit?
    Any ideas?

    I have now altered the example along lines
    suggested by ghaneman*, who pointed out that
    a trusted application did not need to use the
    FileOpenService/FileContents just to get an
    InputStream.
    * Mentioned on 'File associations / sandboxed app.'
    http://forum.java.sun.com/thread.jspa?threadID=785224
    The altered code is..
    /** Load a file into the editing area.
    @param path A string representing the path to the desired file. */
    public void loadFile(String path) {
        // first try as if this were a trusted application..
        if (!path.equals(".")) {
            try {
                FileInputStream inputStream = new
                    FileInputStream(path);
                loadFile(inputStream);
            } catch (Exception e) {
                // we do not have trust, use the FileOpenService
                loadFileByFileService(path);
        } else {
            // we only have a directory, use the FileOpenService
            loadFileByFileService(path);
    public void loadFileByFileService(String path) {
        try {
            if (fileOpenService==null) {
                fileOpenService = (FileOpenService)ServiceManager.
                    lookup("javax.jnlp.FileOpenService");
            fileContents = fileOpenService.openFileDialog(path, xtns);
            // the user may have cancelled the action..
            if (fileContents!=null) {
                loadFile( fileContents.getInputStream() );
        } catch(UnavailableServiceException use) {
            use.printStackTrace();
        } catch(IOException ioe) {
            ioe.printStackTrace();
    }If the user launches the trusted version, and
    selects 'always trust' for the (self signed)
    certificate, the end user can thereafter double
    click a file and see it appear in the application's
    editing area with no further user interaction.

Maybe you are looking for

  • PVC2300 - Alternative to Motion Detection Event / FTP Upload

    Hi Cisco Community, My apologies if I am not posting this in the correct section / allowed to post here. I've got a PVC2300 mounted inside a pelco enclosure that is positioned 6 meters high. Sometimes the motion detection event doesn't work to well (

  • Download of saved views of an interactive report

    Hi all When I am on a saved view of an interactive report and choose 'Download', I always get the data of the actual worksheet but not that form the saved report. Has anyone a solution of this problem? best regards Gerhild

  • Oracle 9 to Oracle 8

    Hi, I need to export a few tables from my oracle 9 database and put them in to oracle 8. How can i do this bearing in mind there are 120 million + rows and i only have a small server (so the quickest way would be best)... Russell Smith

  • URL access via servlets/JSP's

    Hey all I have a web application that takes user uploads (sound files). For each user page I want a specific URL - so if your username is syncro the URL should be www.somehost.com/user/syncro - can this be done in a smooth way without actually creati

  • Address book has dissappeared

    If you open the ADDRESS BOOK it states "NO ADDRESSES". Names that are in my address book still show up on caller ID when sending or receiving calls, text or emails. it must be hidden some how. How in the world do you recover it? Solved! Go to Solutio