Why wont this script work???

Hi,
I have previously used this script to make a portrait scroll bar which works perfectly, however i have altered the script to work in a landscape scroll bar by altering the x and y axis and switching out the height for width. However a part of it wont work...The left and right arrows work correctly however the scroll bar does not move and I can not for the life of me figure out why.
Does anyone have any ideas as to what ive missed or done wrong?
Thanks in advance
scrolling = function () {
var scrollWidth:Number = scrollTrack._width;
var contentWidth:Number = contentMain._width;
var scrollFaceWidth:Number = scrollFace._width;
var maskWidth:Number = maskedView._width;
var initPosition:Number = scrollFace._x=scrollTrack._x;
var initContentPos:Number = contentMain._x;
var finalContentPos:Number = maskWidth-contentWidth+initContentPos;
var left:Number = scrollTrack._y;
var top:Number = scrollTrack._x;
var right:Number = scrollTrack._y;
var bottom:Number = scrollTrack._width-scrollFaceWidth+scrollTrack._x;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentWidth-maskWidth)/(scrollWidth-scrollFaceWidth);
scrollFace.onPress = function() {
  var currPos:Number = this._x;
  startDrag(this, false, left, top, right, bottom);
  this.onMouseMove = function() {
   dy = Math.abs(initPosition-this._x);
   contentMain._x = Math.round(dy*-1*moveVal+initContentPos);
scrollFace.onMouseUp = function() {
  stopDrag();
  delete this.onMouseMove;
btnUp.onPress = function() {
  this.onEnterFrame = function() {
   if (contentMain._x+speed<maskedView._x) {
    if (scrollFace._x<=top) {
     scrollFace._x = top;
    } else {
     scrollFace._x -= speed/moveVal;
    contentMain._x += speed;
   } else {
    scrollFace._x = top;
    contentMain._x = maskedView._x;
    delete this.onEnterFrame;
btnUp.onDragOut = function() {
  delete this.onEnterFrame;
btnUp.onRelease = function() {
  delete this.onEnterFrame;
btnDown.onPress = function() {
  this.onEnterFrame = function() {
   if (contentMain._x-speed>finalContentPos) {
    if (scrollFace._x>=bottom) {
     scrollFace._x = bottom;
    } else {
     scrollFace._x += speed/moveVal;
    contentMain._x -= speed;
   } else {
    scrollFace._x = bottom;
    contentMain._x = finalContentPos;
    delete this.onEnterFrame;
btnDown.onRelease = function() {
  delete this.onEnterFrame;
btnDown.onDragOut = function() {
  delete this.onEnterFrame;
if (contentWidth<maskWidth) {
  scrollFace._visible = false;
  btnUp.enabled = false;
  btnDown.enabled = false;
} else {
  scrollFace._visible = true;
  btnUp.enabled = true;
  btnDown.enabled = true;
scrolling();

sorry should have said...its the aspect relating to "scrollFace" which is mentioned throughout..ive marked it out in bold and taken out anything unrelivant.
Thanks
So its:
scrolling = function () {
var scrollFaceWidth:Number = scrollFace._width;
var initPosition:Number = scrollFace._x=scrollTrack._x;
var bottom:Number = scrollTrack._width-scrollFaceWidth+scrollTrack._x;
var moveVal:Number = (contentWidth-maskWidth)/(scrollWidth-scrollFaceWidth);
scrollFace.onPress = function() {
  var currPos:Number = this._x;
  startDrag(this, false, left, top, right, bottom);
  this.onMouseMove = function() {
   dy = Math.abs(initPosition-this._x);
   contentMain._x = Math.round(dy*-1*moveVal+initContentPos);
scrollFace.onMouseUp = function() {
  stopDrag();
  delete this.onMouseMove;
btnUp.onPress = function() {
  this.onEnterFrame = function() {
   if (contentMain._x+speed<maskedView._x) {
   if (scrollFace._x<=top) {
     scrollFace._x = top;
    } else {
     scrollFace._x -= speed/moveVal;
    contentMain._x += speed;
   } else {
    scrollFace._x = top;
    contentMain._x = maskedView._x;
    delete this.onEnterFrame;
btnDown.onPress = function() {
  this.onEnterFrame = function() {
   if (contentMain._x-speed>finalContentPos) {
   if (scrollFace._x>=bottom) {
     scrollFace._x = bottom;
    } else {
     scrollFace._x += speed/moveVal;
    contentMain._x -= speed;
   } else {
   scrollFace._x = bottom;
    contentMain._x = finalContentPos;
    delete this.onEnterFrame;
if (contentWidth<maskWidth) {
  scrollFace._visible = false;
  btnUp.enabled = false;
  btnDown.enabled = false;
} else {
  scrollFace._visible = true;
  btnUp.enabled = true;
  btnDown.enabled = true;

Similar Messages

  • Why wont this Macro work with my custom watermarks, but finds the built-in building blocks from office 2010?

    Option Explicit
    Sub BatchProcess()
    Dim strFileName As String
    Dim strPath As String
    Dim oDoc As Document
    Dim oLog As Document
    Dim oRng As Range
    Dim oHeader As HeaderFooter
    Dim oSection As Section
    Dim fDialog As FileDialog
    Set fDialog = Application.FileDialog(msoFileDialogFolderPicker)
    With fDialog
        .Title = "Select folder and click OK"
        .AllowMultiSelect = False
        .InitialView = msoFileDialogViewList
        If .Show <> -1 Then
            MsgBox "Cancelled By User", , _
                   "List Folder Contents"
            Exit Sub
        End If
        strPath = fDialog.SelectedItems.Item(1)
        If Right(strPath, 1) <> "\" _
           Then strPath = strPath + "\"
    End With
    If Documents.Count > 0 Then
        Documents.Close savechanges:=wdPromptToSaveChanges
    End If
    Set oLog = Documents.Add
    If Left(strPath, 1) = Chr(34) Then
        strPath = Mid(strPath, 2, Len(strPath) - 2)
    End If
    strFileName = Dir$(strPath & "*.doc?")
    While Len(strFileName) <> 0
        WordBasic.DisableAutoMacros 1
        Set oDoc = Documents.Open(strPath & strFileName)
        'Do what you want with oDoc here
        For Each oSection In oDoc.Sections
            For Each oHeader In oSection.Headers
                If oHeader.Exists Then
                    Set oRng = oHeader.Range
                    oRng.Collapse wdCollapseStart
                    InsertMyBuildingBlock "ASAP 1", oRng
                End If
            Next oHeader
        Next oSection
        'record the name of the document processed
        oLog.Range.InsertAfter oDoc.FullName & vbCr
        oDoc.Close savechanges:=wdSaveChanges
        WordBasic.DisableAutoMacros 0
        strFileName = Dir$()
    Wend
    End Sub
    Function InsertMyBuildingBlock(BuildingBlockName As String, HeaderRange As Range)
    Dim oTemplate As Template
    Dim oAddin As AddIn
    Dim bFound As Boolean
    Dim i As Long
    bFound = False
    Templates.LoadBuildingBlocks
    For Each oTemplate In Templates
        If InStr(1, oTemplate.Name, "Building Blocks") > 0 Then Exit For
    Next
    For i = 1 To Templates(oTemplate.FullName).BuildingBlockEntries.Count
        If Templates(oTemplate.FullName).BuildingBlockEntries(i).Name = BuildingBlockName Then
            Templates(oTemplate.FullName).BuildingBlockEntries(BuildingBlockName).Insert _
                    Where:=HeaderRange, RichText:=True
            'set the found flag to true
            bFound = True
            'Clean up and stop looking
            Set oTemplate = Nothing
            Exit Function
        End If
    Next i
    If bFound = False Then        'so tell the user.
        MsgBox "Entry not found", vbInformation, "Building Block " _
                                                 & Chr(145) & BuildingBlockName & Chr(146)
    End If
    End Function
    This works, using the ASAP 1 watermark that is in bold. ASAP 1 is a built-in building block, if i just rename this to ASAP, but save it in the same place with buildingblocks.dotx it wont work. What do i need to do to be able to use this with my custom building
    blocks?

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Excel, this issue is related to Office DEV, please post the question to the MSDN forum for Excel
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • I have an ipod touch and now it doesnt sync properly. It gets to stage 1 of 3 of syncing( Which is 'backing up') Then it stops and itunes closes. Why wont this sync and what can I do about it?

    I have an ipod touch and now it doesnt sync properly. It gets to stage 1 of 3 of syncing( Which is 'backing up') Then it stops and itunes closes. Why wont this sync and what can I do about it?

    Hello,
    I am currently an owner of an Ipod Touch 4th generation. I see you are having problems with your Ipod Touch, so I will try to find a solution to your problem.
    Restart the Computer. This sometimes happens to me when I keep my Windows 7 on Sleep, and I try to sync my Ipod
    Make sure you have the latest version of Itunes
    Hope that helps!
    If none of the above solutions work, can you please respond back ASAP as I will try to find another solution to your problem (This might even help others with the same problem!)
    Cheers!
    Pizza98704

  • Why wont google toolbar work with fire fox 5????? also how can i get firefox 4 back so i can use the toolbar???

    Hello,my question is why wont google toolbar work with firefox 5?????
    Also how can i get firefox 4 back so i can use the toolbar???

    This page is an easier way to download Firefox 4.0: http://www.mozilla.com/en-US/products/download.html?product=firefox-4.0&os=win&lang=en-US , as this links starts the download process asap.
    I needed to upgrade to Firefox 4.0+ for an add-on that I really needed. However, I can't use Firefox 5.0, as I randomly checked 3 add-on's I had: "Firefox PDF", "Delicious Bookmarks" and "After the Deadline", and none of them worked with Firefox 5.0. In fact, I will have to download alpha versions, etc., to get these add-ons to work with Firefox 4.0.

  • HT202853 I have many project made in move HD that are not updating to the new iMovie 10 on my new iMac.  Why is this not working as stated?  How do I get my projects back from backup after old iMac crashed?

    I have many projects made in imovie HD that are not updating to iMovie 10 on my new iMac.  Why is this not working as stated on the article HT202853?  How do I get my projects back from backup after old iMac crashed?

    According to:
    Update projects and events from previous versions of iMovie in iMovie (2014) - Apple Support
    you can update from iMovie versions 7, 8 and 9, but iMovie HD is iMovie 6.
    Maybe you can update in two steps, first from iMovie 6 to iMovie 7, 8 or 9 then to iMovie 10. 
    Geoff.

  • Hypertext links are not always preserved from Word to PDF, using Aperçu or Adobe, depending on OS 10 or Lion. Why? This generally works perfectly in Windows. Why are Apple and Adobe unable to correctly handle links when converting from Word to PDF?

    Hypertext links are not always preserved from Word to PDF, using Aperçu or Adobe, depending on OS 10 or Lion. Why? This generally works perfectly in Windows. Why are Apple and Adobe unable to correctly handle links when converting from Word to PDF?
    Depending on the system version, and Office Word version:
    - a pure URL link starting with http or even www sometimes works in PDF, either produced by Aperçu or Adobe, sometimes does not work;
    - other kind of links where the text under display is not a URL, never work!
    I like everything with Apple computers and software, except PDF generation. Output files are usually bigger in size, and no better quality, than under Windows. Furthermore, it is weird that something as common as hyperlinks does not work correctly!
    I related this question with Mac OS X Snow Leopard, but the problem is still there with Mac OS Lion.
    This problem seems to have been around for years, without any proper solution from Apple and/or Adobe! To me, this is very embarrassing!

    Greetings NoNameGiven,
    If I understand the problem correctly (I’m not sure I do) you would prefer ‘iii’ to be read as “eye eye eye” rather than “three”? The alt text property is the only way that I know of to make this happen. Hope this helps.
    a ‘C’ student

  • How to make this script work

    Help me to make this script work, please!
    function(){
    app.findGrepPreferences.firstLineIndent  = "8 mm";
    app.findGrepPreferences.leftIndent  = "8 mm";
    app.changeGrepPreferences.firstLineIndent  = "8 mm";
    app.changeGrepPreferences.leftIndent  = "16 mm";
    app.selection[0].changeGrep();
    app.findGrepPreferences.leftIndent  = "16 mm";
    app.changeGrepPreferences.leftIndent  = "24 mm";
    app.selection[0].changeGrep();

    Hi,
    Its already replied, see below code:
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.firstLineIndent  = "8 mm";
    app.findGrepPreferences.leftIndent  = "8 mm";
    app.changeGrepPreferences.firstLineIndent  = "8 mm";
    app.changeGrepPreferences.leftIndent  = "16 mm";
    app.changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = null;
    First run the above code, again you want to change leftIndent from '16 mm' to '24 mm' run below code:
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.leftIndent  = "16 mm";
    app.changeGrepPreferences.leftIndent  = "24 mm";
    app.changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = null;
    by
    hasvi

  • Why wont my volume work on my iPhone 4s?

    why wont my volume work on my iPhone 4s?

    Hey Chelsreb,
    Thanks for the question. I understand you are experiencing issues with your iPhone 4s. The following resource may provide a solution:
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/ts5180
    1. Verify that the volume is set to a level you would normally be able to hear.
    2. Ensure that there is nothing plugged in to the headset jack or the dock connector.
    3. If the iPhone is in a protective case, make sure that the speaker port isn't blocked by the case.
    4. Make sure that the speaker and dock port aren't clogged with debris. If necessary, clean it with a clean, small, dry, soft-bristled brush. Carefully and gently brush away any debris.
    5. If an audio issue occurs when using a specific application, try testing other applications to see if the issue persists.
    6. If the iPhone is paired with a Bluetooth headset or car kit:
              - Try turning off Bluetooth.
              - If you experience difficulties with the Bluetooth feature, follow these troubleshooting steps.
    7. Restart the iPhone.
    8. If restarting doesn't fix the issue, ensure that your iPhone is updated to the latest version of iOS.
    9. If the issue is not resolved after restoring the iPhone software, please contact Apple Support.
    If the issue persists, please follow the last step by contacting Apple Support for support and service options.
    Thanks,
    Matt M.

  • Can't figure out how to make this script work

    Hey Folks,
    Anyone here who would like to look at the following script and tell me where I made the error(s)?
    I want to put this script in a Batch so that I can run it on a directory of files all with filenames like
    Q-CAT 2010-01 Covers_v7bP01x.pdf and
    Q-CAT 2010-01 Covers_v7bP02x.pdf
    I put this script in the correct spot, but nothing happens... I tried the debugger console, and I get:
    Begin Job Code
    Processing File #1
    State P01 detected
    Batch aborted on run #1Error: NotAllowedError: Security settings prevent access to this property or method.
    End Job Code
    This is the script, it's supposed to run in Acrobat 9:
    /* Q-CatCoverPagesSaveAs */
    /* this script Crops CatCovers' Spreads and saves it into separate pages */
    /* ©20100521 - AOP-Creatives, Willy Croezen */ 
    // Begin Job 
    if ( typeof global.counter == "undefined" ) { 
    console.println("Begin Job Code"); 
    global.counter = 0; 
    // insert beginJob code here 
    // Main Code to process each of the selected files 
    try { 
    global.counter++ 
    console.println("Processing File #" + global.counter); 
    // insert batch code here. 
    function doCropPages()
       this.setPageBoxes({
          cBox: "Crop",
          rBox: cropLeft
        app.beginPriv();
    console.println("Save LeftPageName");
    //       this.saveAs(this.path.slice(1, fname.indexOf(pageSide)) + leftPageName);
        app.endPriv(); 
       this.setPageBoxes({
          cBox: "Crop",
          rBox: cropRight
       app.beginPriv();
    console.println("Save RightPageName");
    //      this.saveAs(this.path.slice(1, fname.indexOf(pageSide)) + rightPageName);
       app.endPriv();
    //Declaration List
    var Units = "mm"; 
    var i = this.path.search(/[^:/]+\.pdf$/);
    var fname = this.path.slice(i, this.path.length - 4);
    var cropRect = this.getPageBox("Crop"); 
    //Check if filename contains P01, indicating the Outside spread of a Catalog Cover. If so, crop accordingly
    if (fname.indexOf("P01") != 0)
    console.println("State P01 detected");
       var pageSide = "P01";
       var leftPageName = "P260.pdf";
       var rightPageName = "P001.pdf"; 
       var cropLeft = new Array();
          cropLeft[0] = cropRect[0];
          cropLeft[1] = cropRect[1];
          cropLeft[2] = cropRect[2];
          cropLeft[3] = cropRect[3] + 277.5; 
       var cropRight = new Array();
          cropRight[0] = cropRect[0];
          cropRight[1] = cropRect[1];
          cropRight[2] = cropRect[2] + 223.5;
          cropRight[3] = cropRect[3] - 62;
       doCropPages();
    else
       //If filname does NOT contain P01, check if filename contains P02, indicating the Inside spread of a Catalog Cover. If so, crop accordingly
       if (fname.indexOf("P02") != 0)
    console.println("State P02 detected");
          var pageSide = "P02";
          var leftPageName = "P002.pdf";
          var rightPageName = "P259.pdf";
          var cropLeft = new Array();
             cropLeft[0] = cropRect[0];
             cropLeft[1] = cropRect[1];
             cropLeft[2] = cropRect[2];
             cropLeft[3] = cropRect[3] + 223.5; 
          var cropRight = new Array();
             cropRight[0] = cropRect[0];
             cropRight[1] = cropRect[1];
             cropRight[2] = cropRect[2] + 277.5;
             cropRight[3] = cropRect[3];
          doCropPages();
       else
          // If filename doesn't contain P01 OR P02, give Error notice
    console.println("Document is not correctly named! Should have P01 or P02 in it");
    catch(e) {
    console.println("Batch aborted on run #" + global.counter + "Error: " + e);
    delete global.counter; // so we can try again, and avoid End Job code
    event.rc = false; // abort batch
    // End Job
    if ( global.counter == global.FileCnt ) {
    console.println("End Job Code");
    // insert endJob code here
    // may have to remove any global variables used in case user wants to run
    // another batch sequence using the same variables, for example...
    delete global.counter;

    Hy Folks,
    This thread can be closed, as I fixed the script! It turned out that I needed to put the function definition above the body-code for the script to find it. After that it was small details.
    I created a conversion variable (UnitsConv) for the margins so you  can simply enter the desired dimensions in mm, instead of px, which I  thought was easier.
    This script now perfectly processes the files  you put to it in a batch-operation (if correctly named with P01 and P02  in the filename.) and saves the resulting pages into the specified  temp-directory. This time the filenames reflect the original filenames,  for easy identification later, with the new pagenumbers appended to  them.
    For your information (and perhaps for use as the base for a custom  script for yourself) I give you the final working version below.
    This script will be trimmed down and become part of a larger script, or scriptset, which I will be using to automate the workflow of creating al different versions of lowres and highres catalogs that we need.
    Kind regards,
    Willy Croezen
    /* Q-CatCoverPagesSaveAs v1.0*/
    /* this script Crops CatCovers' Spreads and saves it into separate pages */
    /* ©20100521 - AOP-Creatives, Willy Croezen */
    // Begin Job
    if ( typeof global.counter == "undefined" ) {
    console.println("Begin Job Code ");
    global.counter = 0;
    // insert beginJob code here
    // Main Code to process each of the selected files
    try {
    global.counter++
    console.println("Processing File #" + global.counter);
    // insert batch code here.
    function doCropPages(crL,crR,lPName,rPName)
       this.setPageBoxes({
          cBox: "Crop",
          rBox: crL
          console.println("Save LeftPageName to: D:/temp/" + lPName);
          this.saveAs("/D/temp/" + lPName);
       this.setPageBoxes({
          cBox: "Crop",
          rBox: crR
          console.println("Save RightPageName to: D:/temp/" + rPName);
          this.saveAs("/D/temp/" + rPName);
    //Declaration List
    var UnitsConv = (72 / 25.4);
    var i = this.path.search(/[^:/]+\.pdf$/);
    var fname = this.path.slice(i, this.path.length - 4);
    var cropRect = this.getPageBox("Crop");
    //Check if filename contains P01, indicating the Outside spread of a Catalog Cover. If so, crop accordingly
    if (fname.indexOf("P01") != -1)
    console.println("Value fname.indexOf(P01) = " + fname.indexOf("P01"));
    console.println("State P01 detected");
       var pageSide = "P01";
       var leftPageName = fname + "P260.pdf";
       var rightPageName = fname + "P001.pdf";
    // Create array of crop-values. Sequence is left, top, right, bottom
       var cropLeft = new Array();
          cropLeft[0] = cropRect[0];
          cropLeft[1] = cropRect[1];
          cropLeft[2] = cropRect[2] - Math.floor(277.5 * UnitsConv);
          cropLeft[3] = cropRect[3];
       var cropRight = new Array();
          cropRight[0] = cropRect[0] + Math.floor(223.5 * UnitsConv);
          cropRight[1] = cropRect[1];
          cropRight[2] = cropRect[2] - Math.floor(62 * UnitsConv);
          cropRight[3] = cropRect[3];
       doCropPages(cropLeft,cropRight,leftPageName,rightPageName);
    else
       //If filname does NOT contain P01, check if filename contains P02, indicating the Inside spread of a Catalog Cover. If so, crop accordingly
       if (fname.indexOf("P02") != -1)
    console.println("State P02 detected");
          var pageSide = "P02";
          var leftPageName = fname + "P002.pdf";
          var rightPageName = fname + "P259.pdf";
    // Create array of crop-values. Sequence is left, top, right, bottom  
          var cropLeft = new Array();
             cropLeft[0] = cropRect[0];
             cropLeft[1] = cropRect[1];
             cropLeft[2] = cropRect[2] - Math.floor(223.5 * UnitsConv);
             cropLeft[3] = cropRect[3];
          var cropRight = new Array();
             cropRight[0] = cropRect[0] + Math.floor(277.5 * UnitsConv);
             cropRight[1] = cropRect[1];
             cropRight[2] = cropRect[2];
             cropRight[3] = cropRect[3];
          doCropPages(cropLeft,cropRight,leftPageName,rightPageName);
       else
          // If filename doesn't contain P01 OR P02, give Error notice
    console.println("Document is not correctly named! Should have P01 or P02 in it");
    catch(e) {
    console.println("Batch aborted on run #" + global.counter + "Error: " + e);
    delete global.counter; // so we can try again, and avoid End Job code
    event.rc = false; // abort batch
    // End Job
    if ( global.counter == global.FileCnt ) {
    console.println("End Job Code");
    // insert endJob code here
    // may have to remove any global variables used in case user wants to run
    // another batch sequence using the same variables, for example...
    delete global.counter;

  • Why does this script behavior change with the phase of the moon ?

    Can anyone from adobe corp or non-adobe volunteers tell me where to look in their docs to find out why this script change its behavior or how to use the debugger to figure out the same. I read the guide and the whole section on debugger and break points etc well.
    try{
    this.getField('Button4').strokeColor = color.red   ;
    app.setTimeOut( "this.getField('Button4').strokeColor = color.green ;" , 500 );
    app.setTimeOut( "this.getField('Button4').strokeColor = color.blue  ;" , 1000 );
    app.setTimeOut( "this.getField('Button4').strokeColor = color.red   ;" , 1500 );
    app.setTimeOut( "this.getField('Button4').strokeColor = color.green ;" , 2000 );
    app.setTimeOut( "this.getField('Button4').strokeColor = color.blue  ;" , 2500 );
    app.setTimeOut( "this.getField('Button4').strokeColor = color.red   ;" , 3000 );
    app.setTimeOut( "this.getField('Button4').strokeColor = color.green ;" , 3500 );
    app.setTimeOut( "this.getField('Button4').strokeColor = color.blue  ;" , 4000 );
    catch(e){}
    Sometimes the above script cycle thru all the colors in proper order and other time it get stuck.
    I have linked it to a button so its part of the button javascript.
    Is there a way to craft setTimeOut calls that it becomes a reliable delay ?
    How to craft it such that the file does not change and does not have to be saved ? This is wanted in addition but not the essential issue at the moment.
    Thanks,
    Rainbow

    MAXcount=20
    // Create a simple color animation on a field called “Color” that changes every second.
    function DoIt() {
      var f = this.getField("Button4");
      var nColor = (timeout.count++ % 10 / 10);
      // Various shades of red.
      var aColor = new Array("RGB", nColor, 0, 0);
      f.fillColor = aColor;
      console.println( 'change' + ' ' + nColor + '; count=' + timeout.count );
      if (timeout.count >= MAXcount)
        app.clearInterval ( timeout );
    console.show();
    console.clear();
    console.println('Start');
    // save return value as a variable
    timeout = app.setInterval("DoIt()", 1000);
    // Add a property to our timeout object so that DoIt() can keep a count going.
    timeout.count = 0;
    console.println('End of code');
    // And observe the results. I expect your new timer events are conflicting with each other. Note that in the above code the change is performed within the called function and not as new line of code.
    I ran it but did not follow your last comment and acrobat disk icon prompts for saving the file. Can anyone remove this "latter problem" ? Can it be solved by any means ?

  • Why wont my phone work after sync with itunes

    why wont my phone not work at all after downloading itunes and doing sync...got no service and everything is missing from my phone

    Nope, tried twice but doesn't change a thing.
    Thanks though!

  • Why wont my file work?

    //Robert Key                    Building.java                    1/2/05
    //Design and implement a class called Building that represents a drawing
    //of a building. The parameters to the constructor should be the building's
    //width and height. Each building should be colored black and have a few
    //random windows colored yellow. Create an applet that draws a random
    //skyline of buildings
    import java.awt.*;
    import java.applet.Applet;
    public class P4_9 extends Applet
         public void Building (Graphics building)
         //--------constructors--------
         int height1 = 10, width1 = 5;
         int height2 = 15, width2 = 5;
         int height3 = 17, width3 = 5;
         setBackground (Color.gray);
         //Draws building one
         building.setColor (Color.black);
         building.fillRect (0, 175, 300, 50);
    }Then i made a html file with
    <html>
    <applet code="P4_9.class" width=300 height=300>  </applet>
    </html>
    But it wont load up...Why is this?

    --it wont load because you're not calling your Building() method...
    you modify your code like this:
    import java.awt.*;
    import java.applet.Applet;
    public class myApplet extends Applet
         Graphics g;
         public void init(){ // <<-- you can call it here...
              g=getGraphics();
              Building(g);
    public void Building (Graphics building)
    //--------constructors--------
    int height1 = 10, width1 = 5;
    int height2 = 15, width2 = 5;
    int height3 = 17, width3 = 5;
    setBackground (Color.gray);
    //Draws building one
    building.setColor (Color.black);
    building.fillRect (0, 175, 300, 50);
    }

  • Why wont yahoo mail work on my macbook air in both safari and chrome browsers?

    Yahoo mail is no longer working on my macbook air in both safari and chrome browsers. Nothing major has changed on the computer, why is this occuring?

    Yahoo mail is no longer working on my macbook air in both safari and chrome browsers. Nothing major has changed on the computer, why is this occuring?

  • Why does this script changes modification date???

    Hello All,
    I am using this script with an Acrobutton to advise my users of the current PDF version.
    var stmDoc = Collab.documentToStream(this)
    var strDoc = util.stringFromStream(stmDoc);
    var strVer = strDoc.substr(5,3)
    app.alert({cMsg: "The PDF version is: " + strVer, nIcon: 3, nType: 0, cTitle: "PDF Version Check"});
    Problem is that when closing the document, even though not prompted, the file is saved (assumed, since the modification date changes).
    Is there anything about this script that is doing this?

    I added a "this.dirty = false;" to the end, but it does not do as I had hoped. The pdf does not prompt for a save, which is what I understand the dirty flag to be effecting. The modification date changes anyway. Am I not using the dirty flag correctly? Thanks in advance for your help.

  • HT4113 why isnt this thing working

    why isnt this working

    Because of the actions of an unsympathetic deity.
    Try to ask a sensible question with a clue or two, and us folk might be able to help you. With your present standard of asking, you have no hope.

Maybe you are looking for

  • Error In Report Designer

    Hi When I'm opening a view in report designer I'm getting the following error.Can anyone please help me with this.Its very urgent for me to sort this issue. <b>The report designer doesn't support the query drilldown. Key figure in static filter is no

  • Group Left report: problem in order the columns

    Hi, I have a Group Left report in report6i with group A and Group B. Group A has columns AAA, BBB, CCC, DDD, EEE, FFF and Group B has coulmn YYY, ZZZ. The problem is report does not take order by clause. It sort the report by first column of Group A,

  • Proposal issue in app

    respectedgurus, i have inished the schedule proposal in  app then what are the 2 documents generated? answers would be appreciated. regards jana

  • Preview will not work.  Have to force quit it.  Will not work on Jpg or pdf

    I tried sending the preview.plist to the trash and restarting the computer. It worked for a short time, now is back not working again. Could not find the file except in the trash. Any ideas how to fix? This has happened once before and it just starte

  • About the Vendor's Name Display Language

    Dear Experts I want to know is there have any methods that can let the Vendor name's display language equal with the R3 login Language??? Exp. when I login R3 with English, and create PO by ME21N, the Vendor's display name shows English automatically