Image with enabled set to false still receives click events

I have a simple image with a click event and the button is set to enabled = false and it still receives click events. Does anyone know how to disable the image if it receives no click events. I want only the image to send a click on some points, then the other event not to do... Thanks to all those who can help

I didn't think allowed aims to control the actual events - rather the native behavior resulting from events. My suggestion is that you either remove the headphones when you don't want to see the clicks, or place the code in the listener that runs the effect selectively.

If you want you could simply encapsulate your headset with a test for the license:

private void handleImageClick(event:MouseEvent):void {}
If ((event.currentTarget_as_InteractiveObject).enabled) {}
... Things //Your here
}
}

It will run only then the code when the image is selected.

If you want to have the image as the button, you can extend it and save a listener in the constructor for the click event. Inside the listener, if not enabled, call event.stopImmedatePropogation ().

Tim

Tags: Flex

Similar Questions

  • Media.Windows - Media - foundation.enabled set to false does not stop the MP3 files to play rather than the economy. I want my file save instead of the rear. How?

    I used to be able to click on the MP3 files and they would save, according to the setting in my Options. Now when I click on a link to an MP3 file, it goes to a player page, I don't want to.

    I looked through the help here, and it is proposed to amend media.windows - media - foundation.enabled to false. I did, and it made no difference. (Restart after making the change did not help either.)

    I use version 26.0 in Windows XP. I had not downloaded MP3s since July, so I don't know which version this started.

    Windows XP uses Media Foundation, it uses DirectShow (DirectX). To turn it off, it was a different preference:

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste media and make a pause so that the list is filtered

    (3) double-click the preference media.directshow.enabled from true to false.

    I don't know if this changes enter into force immediately or after you exit and then restart Firefox.

  • Recover Geo.Enabled setting for true

    I do a lot of testing of localhost using selenium inside the eclipse. whenever I have start a debugging session and click on a page, I get the popup of geo location. GEO.enabled setting to false does not stick. He discusses each session I begins.

    How to get my settings preference to stick?

    While it would probably solve the problem for most users, it does not for me. I'll close this and create a different problem thread that directly relates to the selenium.

    Thank you!

  • Help! How am I suppose to add a "map link" an image with this new dreamweaver

    Help! How am I suppose to add a "map link" an image with this new dreamweaver?

    First, click on the small arrow next to the direct button on the toolbar and choose Design menu drop-down

    Once you are in design mode, click a picture in your page

    The Image Map tools will appear in the Properties window (press F8 or window > properties if it is not open)

  • "One-click" How do I export an image to a set of files with different resolutions .png?

    Hello

    How far is 'one-click' export an image to a set of files with different resolutions .png? (I need for a set of iOS app icons).

    For example: export a file MyAppIcon.psd in the following:

    MyAppIcon_29x29.png

    MyAppIcon_57x57.png

    MyAppIcon_114x114.png

    MyAppIcon_512x512.png

    MyAppIcon_48x48.png

    MyAppIcon_72x72.png

    I almost managed to do with the Actions of Photoshop, but does not know how the names of files to include the name of the original image file. In other words, the NewApp.psd file should export to NewApp_29x29.png, not MyAppIcon_29x29.png.

    Thank you!

    No problem, please try this...

    #target photoshop
    app.bringToFront();
    main();
    function main(){
    if(!documents.length) return;
    var Name = app.activeDocument.name.replace(/\.[^\.]+$/, '');
    try{
       var Path = activeDocument.path;
        }catch(e){
            alert("Please save this file then re-run the script!");
            return;
            }
    var strtRulerUnits = app.preferences.rulerUnits;
    var strtTypeUnits = app.preferences.typeUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    snapShot();
    var saveFile = File(Path + "/" + Name + "_512x512.png");
    activeDocument.resizeImage(512, 512, undefined, ResampleMethod.BICUBICSHARPER);
    SavePNG(saveFile);
    revertToLastSnapshot();
    var saveFile = File(Path + "/" + Name + "_114x114.png");
    activeDocument.resizeImage(114, 114, undefined, ResampleMethod.BICUBICSHARPER);
    SavePNG(saveFile);
    revertToLastSnapshot();
    var saveFile = File(Path + "/" + Name + "_72x72.png");
    activeDocument.resizeImage(72, 72, undefined, ResampleMethod.BICUBICSHARPER);
    SavePNG(saveFile);
    revertToLastSnapshot();
    var saveFile = File(Path + "/" + Name + "_57x57.png");
    activeDocument.resizeImage(57, 57, undefined, ResampleMethod.BICUBICSHARPER);
    SavePNG(saveFile);
    revertToLastSnapshot();
    var saveFile = File(Path + "/" + Name + "_48x48.png");
    activeDocument.resizeImage(48, 48, undefined, ResampleMethod.BICUBICSHARPER);
    SavePNG(saveFile);
    revertToLastSnapshot();
    var saveFile = File(Path + "/" + Name + "_29x29.png");
    activeDocument.resizeImage(29,29, undefined, ResampleMethod.BICUBICSHARPER);
    SavePNG(saveFile);
    app.preferences.rulerUnits = strtRulerUnits;
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    }
    function SavePNG(saveFile){
    var pngOpts = new ExportOptionsSaveForWeb;
    pngOpts.format = SaveDocumentType.PNG;
    pngOpts.PNG8 = false;
    pngOpts.transparency = true;
    pngOpts.interlaced = false;
    pngOpts.quality = 100;
    activeDocument.exportDocument(new File(saveFile),ExportType.SAVEFORWEB,pngOpts);
    }
    function snapShot() {
        var desc9 = new ActionDescriptor();
            var ref5 = new ActionReference();
            ref5.putClass( charIDToTypeID('SnpS') );
        desc9.putReference( charIDToTypeID('null'), ref5 );
            var ref6 = new ActionReference();
            ref6.putProperty( charIDToTypeID('HstS'), charIDToTypeID('CrnH') );
        desc9.putReference( charIDToTypeID('From'), ref6 );
        desc9.putEnumerated( charIDToTypeID('Usng'), charIDToTypeID('HstS'), charIDToTypeID('FllD') );
        executeAction( charIDToTypeID('Mk  '), desc9, DialogModes.NO );
    };
    function revertToLastSnapshot() {
       var doc = app.activeDocument;
       var hsObj = doc.historyStates;
       var hsLength = hsObj.length;
       for (var i=hsLength - 1;i>-1;i--) {
         if (hsObj[i].snapshot) {
           doc.activeHistoryState = doc.historyStates.getByName('Snapshot ' + i);
           break;
         }
       }
    };
    
  • I use airplane mode on my iPhone 6, with wifi and I still receive calls. I don't want to. How can I change?

    I use airplane mode on my iPhone 6, with wifi and I still receive calls. I don't want to. How can I change?

    -do not disturb - the settings on

  • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    Ideas:

    • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    I tried to download the RegCure as advised, but the problem still exists...

    Who advised you to 'download... '. RegCure? Doing so could only worse issues! If you ever think that your registry database must be cleaned, repaired, boosted or optimized (it isn't), read http://aumha.net/viewtopic.php?t=28099 and draw your own conclusions.

    See http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/6e716883-7af4-4a9f-8665-2f4dd57eee8d ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Anyone know why, when I try to open an image with camera raw in Bridge, it is said: "the camera raw editing is not enabled.

    Hi guys,.

    Anyone know why, when I try to open an image with camera raw in Bridge, it is said: the camera raw editing is not enabled. Camera raw edition requires a product calling has been launched at least once this feature.  What should I do?

    Thanks in advance :)

    original title: problems of camera raw

    Try the Adobe forums

    http://www.bing.com/search?q=Camera+raw+editing+requires+that+a+qualifying+product+has+been+launched+at+least+once+site%3Aadobe.com&qs=n&form=QBRE&pq=camera+raw+editing+requires+that+a+qualifying+product+has+been+launched+at+least+once+site%3Aadobe.com&sc=0-0&sp=-1&sk=

  • I have a question regarding windows mail. I was send and receive mail with no problems until last Thursday. I can still receive mail, but I can not send.

    / * moved from answers Feedback * /.
     
    I have a question regarding windows mail. I was send and receive mail with no problems until last Thursday. I can still receive mail, but I can not send. My email is with bellsouth.net and comes in my computer through windows Messaging.  I spent an hour and a half on the phone with bellsouth, and they say that the problem is with my windows mail.  I tried to use a restore date, and that did not help either. I will post a copy of this message, as I keep getting.  Your server suddenly put an end to the connection. The possible causes for this include server problems, network problems, or a long period of inactivity. Object 't', counts: 'mail.bellsouth.net', server: 'mail.bellsouth.net', Protocol: SMTP, Port: 25, secure (SSL): no, error number: 0x800CCC0F thanks for any help.

    Sometimes, WinMail settings get screwed up and you must remove the account and then add it back back.  Make sure first that the antivirus software not interfere (see www.oehelp.com/OETips.aspx#3).   Delete your account completely, then close WinMail.  Then compact and repair the database of WinMail (see www.oehelp.com/WMUtil/).  Add your account to mail back once again, and then make sure you have the correct settings under Tools | Accounts | Mail | Properties | Servers and | Advanced to what AT & T Specifies to WinMail (or OE).  Then see if it works.

    Steve

  • I need to set my Adobe Acrobat by default when I open PDF files. I've updated my adobe reader software and it changed my settings to always open with the reader. I still want to open it with Adobe Acrobat DC

    I need my Adobe Acrobat DC value by default when I open PDF files. I've updated my adobe reader software and it changed my settings to always open with the reader. I still want to open it with Adobe Acrobat DC

    Hello

    For windows, right click on the PDF? Open with > choose default program > set Acrobat DC as the default PDF Viewer and click OK.

    You could do the same thing in the control panel.

    Concerning

    Sukrit diallo

  • Need a Script to the space of images on a total gap, then tag each image with the percentage of the total image space

    By editing the other scripts, I found here and other sites (including the labels size rorohiko), I worked on a script that will each image with the dimensions of the label and calculate the percentage of the spread of everything (including the text, white space).

    Now, I was invited to a script that tagged the images with the percentage of total image on a gap space. This script is so space images on a total gap, then tag each image with the percentage of the total image space. For example if there is an image that is 10 x 10 inches and four pictures that are images of 2.5x2.5, 10 x 10 would be tagged with 50% and the 2.5x2.5 would be tagged with 12.5%.

    This is the script that does the percentage of total circulation. Can some clever person get to do what I need?

    Suze

    (Sorry, I don't know how to post the script here with line numbers!)

    //

    This script adds printing of information labels to each graphic image. The labels are on a separate layer

    named "PercentageLabels" so that all these added labels can be removed again by simply removing

    the layer.

    //

    If you move or resize items, simply re-run the script to update the labels.

    //

    Before (re) start the script, you can define a paragraph style "SizeLabelStyle".

    This style will apply to all content on labels.

    //

    Before (re) start the script, you can set a style of object 'SizeLabelObjectStyle '.

    This style of object apply to all executives of the label - so if you want a specific background

    fill out or frame, do it through this object style.

    //

    You can change the units of the size label. I put in inches. Change the line below that has

    kUnitToUse - you can use:

    MeasurementUnits.CENTIMETERS

    MeasurementUnits.CICERO

    MeasurementUnits.INCHES

    MeasurementUnits.MILLIMETERS

    MeasurementUnits.PICAS

    MeasurementUnits.PIXELS

    MeasurementUnits.POINTS

    //

    By default the script will not attempt to label the "nested" images If you also want to label

    nested images (for example inline images, anchored frames, pasted images in the images,...) to change the line

    below to read:

    kLabelNestedItems = 1

    //

    If you want a specific image to stay without a label, you can use the Script label palette for

    assign a script called 'ignore' for this frame. The script will then not label this framework to the

    the title of the script is removed again.

    //

    Change the lines with kDontLabelImageFrames, kDontLabelTextFrames, kDontLabelOtherFrames

    below if you want to restrict labelling to only certain types of images: replace the '0'

    in "1" to enable these options.

    //

    Change the line with kShowImageFileName if you also want to display the names of the image in the

    size for the picture frames.

    //

    Small frames are not labelled - the cutoff point is currently a less than 0.1 inch high framework

    or 0.1 inch wide. You can change the cutoff point by adjusting the lines with kDontLabelBelowWidth

    or kDontLabelBelowHeight below.

    //

    var Girard;

    var gScriptFile;

    var gCaches;

    // ****************

    That's cheating spread automatically calculated

    var doc = app.activeDocument;

    doc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.inches;

    doc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.inches;

    PageWidth = doc.documentPreferences.pageWidth var;

    stucture var pagewidth = * 2;

    var spreadheight = doc.documentPreferences.pageHeight;

    var spreadsquinch = stucture * spreadheight;

    Alert ("the total measure of square inch of spread is:" + spreadsquinch);

    //******************

    VR;

    {

    If (app.activeScript instanceof file)

    {

    var gScriptFile = app.activeScript;

    }

    }

    catch (Girard)

    {

    }

    If (typeof (kLogLevel) is "undefined")

    {

    const kLogLevel = 5;

    const kMaxLogNestLevel = 5;

    const kLogToMessageBox = 0;

    const kLogToConsole = 0;

    const kLogToFile = 0;

    const kLogFileName = "PercentageLabels.log";

    const kIgnoreFrameLabel = "ignore."

    const kSizeLabelLayerName = "PercentageLabels";

    const kLabelNestedItems = 0;

    const kDontLabelImageFrames = 0;

    const kDontLabelTextFrames = 1;

    const kDontLabelOtherFrames = 0;

    const kUnitToUse = MeasurementUnits.INCHES;

    const kShowImageFileName = 0; This set to 1 to precede the name of the image file in the tag

    Below all of the measures are expressed in kUnitToUse (e.g. inches if MeasurementUnits.INCHES is used)

    const kRoundToDecimals = 2;

    The separator to use between objects - for example MyImage.jpg - 7.22 x 9,34

    const kSeparatorBetweenNameAndSize = "-";

    const kSeparatorBetweenHeightAndWidth = "H x"; "

    const kSeparatorAfterWidth = "W";

    const kDontLabelBelowWidth = 0.1; In kUnitToUse

    const kDontLabelBelowHeight = 0.1; In kUnitToUse

    const kLabelStyleName = "SizeLabelStyle";

    const kLabelObjectStyleName = "SizeLabelObjectStyle";

    const kLabelHeight = 0.6; In kUnitToUse

    const kLabelWidth = 2.5; Expressed in kUnitToUse (e.g., inches).

    }

    var gRunState =

    {

    logToMessageBox: kLogToMessageBox,

    logToConsole: kLogToConsole,.

    logToFile: kLogToFile,.

    functionNestLevel: 0,

    logFunctionEntry: true,

    logFunctionExit: true,

    logLevel: kLogLevel,.

    logFileName: kLogFileName

    };

    Main();

    // ****************

    function ConvertToFrame (thePageItem)

    {

    / * / / / LogEntry ("ConvertToFrame");

    var retVal = thePageItem.getElements () [0];

    / * / / / LogExit ("ConvertToFrame");

    Return retVal;

    }

    // ****************

    function CollectionToArray (theCollection)

    {

    / * / / / LogEntry ("CollectionToArray");

    var retVal = theCollection.everyItem () .getElements () .slice (0);

    / * / / / LogExit ("CollectionToArray");

    Return retVal;

    }

    // ****************

    function GetImageFile (pageItem)

    {

    / * / / / LogEntry ("GetImageFile");

    var imageFile = null;

    do

    {

    Try

    {

    pageItem = ConvertToFrame (pageItem);

    If (!) (("allGraphics" in pageItem))

    {

    break;

    }

    var allGraphics = pageItem.allGraphics.slice (0);

    If (allGraphics.length == 0)

    {

    break;

    }

    var chart = allGraphics [0];

    var graphic.itemLink = link;

    imageFile = new File (link.filePath);

    }

    catch (Girard)

    {

    }

    }

    While (false);

    / * / / / LogExit ("GetImageFile");

    return imageFile.

    }

    // ****************

    function GetImageName (pageItem)

    {

    / * / / / LogEntry ("GetImageName");

    var imageName = "";

    do

    {

    var imageFile = GetImageFile (pageItem);

    If (imageFile is nothing)

    {

    break;

    }

    imageName = imageFile.displayName;

    }

    While (false);

    / * / / / LogExit ("GetImageName");

    return imageName;

    }

    // ****************

    function GetOuterPageItem (pageItem)

    {

    / * / / / LogEntry ("GetOuterPageItem");

    var retVal = null;

    do

    {

    Try

    {

    retVal = pageItem.parent;

    If (retVal instanceof spread | retVal instanceof Page)

    {

    retVal = pageItem;

    break;

    }

    If (retVal instanceof character)

    {

    retVal = GetOuterPageItem(retVal.parentTextFrames[0]);

    break;

    }

    }

    catch (Girard)

    {

    retVal = null;

    }

    }

    While (false);

    / * / / / LogExit ("GetOuterPageItem");

    Return retVal;

    }

    // ****************

    function LogMessage (message, collapseLines)

    {

    If (gRunState.logToConsole)

    {

    $.writeln (message);

    }

    If (gRunState.logToFile)

    {

    var logFile = new file (gScriptFile.parent + "/" + gRunState.logFileName);

    var now = new Date();

    logFile.open ("a");

    logFile.write (now.toString () + ":"+ message + "\n" ');

    logFile.close ();

    }

    If (gRunState.logToMessageBox)

    {

    Alert (message);

    }

    }

    // ****************

    LogEntry (message) function

    {

    If (gRunState.logFunctionEntry)

    {

    If (gRunState.functionNestLevel < kMaxLogNestLevel) {}

    for (var idx = 0; idx < gRunState.functionNestLevel; idx ++)

    {

    message = "" + message;

    }

    Filled (message + "<", true);

    }

    }

    gRunState.functionNestLevel ++;

    }

    // ****************

    function LogError (message)

    {

    If (gRunState.logLevel > = 1).

    {

    LogMessage ("* ERROR *:" + message, false);

    }

    }

    // ****************

    function LogExit (message)

    {

    -gRunState.functionNestLevel;

    If (gRunState.functionNestLevel < 0)

    {

    LogError ("LogExit: unbalanced nesting of function");

    }

    If (gRunState.logFunctionExit)

    {

    If (gRunState.functionNestLevel < kMaxLogNestLevel) {}

    for (var idx = 0; idx < gRunState.functionNestLevel; idx ++)

    {

    message = "" + message;

    }

    Filled (message + ">", true);

    }

    }

    }

    // ****************

    function LogNote (message)

    {

    If (gRunState.logLevel > = 3)

    {

    LogMessage ("Note:" + message, false);

    }

    }

    // ****************

    function LogWarning (message)

    {

    If (gRunState.logLevel > = 2)

    {

    LogMessage ("WARNING:" + message, false);

    }

    }

    // ****************

    function Main()

    {

    / * / / / LogEntry ("Main");

    var savedUserInteractionLevel = app.scriptPreferences.userInteractionLevel;

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;

    do

    {

    Try

    {

    activeDocument var = app.activeDocument;

    If (!.) (activeDocument instanceof Document))

    {

    LogError ("hand: activeDocument isn't a Document");

    break;

    }

    var savedHorizontalMeasurementUnits = activeDocument.viewPreferences.horizontalMeasurementUnits;

    activeDocument.viewPreferences.horizontalMeasurementUnits = kUnitToUse;

    var savedVerticalMeasurementUnits = activeDocument.viewPreferences.verticalMeasurementUnits;

    activeDocument.viewPreferences.verticalMeasurementUnits = kUnitToUse;

    var savedRulerOrigin = activeDocument.viewPreferences.rulerOrigin;

    activeDocument.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;

    do

    {

    Try

    {

    ProcessFrames (activeDocument);

    }

    catch (Girard)

    {

    Alert ("the script encountered a situation that we don't know how to handle. "He received the error, says '" + Parker + "' in Main()"); "."

    }

    }

    While (false);

    activeDocument.viewPreferences.rulerOrigin = savedRulerOrigin;

    activeDocument.viewPreferences.horizontalMeasurementUnits = savedHorizontalMeasurementUnits;

    activeDocument.viewPreferences.verticalMeasurementUnits = savedVerticalMeasurementUnits;

    }

    catch (Girard)

    {

    Alert ("the script encountered a situation that we don't know how to handle. "He received the error, says '" + Parker + "' in Main()"); "."

    LogError ("Hand throw" + Girard);

    }

    }

    While (false);

    app.scriptPreferences.userInteractionLevel = savedUserInteractionLevel;

    / * / / / LogExit ("Main");

    }

    // ****************

    function ProcessFrames (doc)

    {

    / * / / / LogEntry ("ProcessFrames");

    var err;

    do

    {

    If (!.) (doc instanceof Document))

    {

    LogError ("ProcessFrames: doc should be a Document");

    break;

    }

    Try

    {

    var existingLayer = doc.layers.itemByName (kSizeLabelLayerName);

    existingLayer.id;

    existingLayer.remove ();

    }

    catch (err)

    {

    }

    If (kLabelNestedItems)

    {

    var pageItems = doc.allPageItems.slice (0);

    }

    on the other

    {

    var pageItems = CollectionToArray (doc.pageItems);

    }

    var frameReferences = [];

    for (var pageItemIdx = 0; pageItemIdx < pageItems.length; pageItemIdx ++)

    {

    do

    {

    var pageItem = pageItems [pageItemIdx];

    If (pageItem.itemLayer.name is kSizeLabelLayerName)

    {

    break;

    }

    var pageItem = ConvertToFrame (pageItem);

    If (instanceof TextFrame pageItem)

    {

    If (kDontLabelTextFrames)

    {

    break;

    }

    }

    ElseIf (pageItem graphic instanceof)

    {

    If (kDontLabelImageFrames)

    {

    break;

    }

    }

    on the other

    {

    If (kDontLabelOtherFrames)

    {

    break;

    }

    }

    If (pageItem.label.toLowerCase () is kIgnoreFrameLabel)

    {

    break;

    }

    var width = pageItem.geometricBounds [3] - pageItem.geometricBounds [1];

    var height = pageItem.geometricBounds [2] - pageItem.geometricBounds [0];

    If (width < kDontLabelBelowWidth)

    {

    break;

    }

    If (height, kDontLabelBelowHeight)

    {

    break;

    }

    frameReferences.push (pageItem);

    }

    While (false);

    }

    var sizeLabelLayer = doc.layers.add ({name: kSizeLabelLayerName});

    for (var pageItemIdx = 0; pageItemIdx < frameReferences.length; pageItemIdx ++)

    {

    Try

    {

    var pageItem = frameReferences [pageItemIdx];

    var width = pageItem.geometricBounds [3] - pageItem.geometricBounds [1];

    var height = pageItem.geometricBounds [2] - pageItem.geometricBounds [0];

    var labelItem = doc.textFrames.add (null, LocationOptions.BEFORE, GetOuterPageItem (pageItem));

    labelItem.itemLayer = sizeLabelLayer;

    var boxsquinch = width * height

    var boxpercent = (boxsquinch / spreadsquinch) * 100

    var roundpercent = Math.round (boxpercent)

    var labelText = "";

    If (kShowImageFileName)

    {

    var imageName = GetImageName (pageItem);

    If (imageName! = "")

    {

    labelText += imageName + kSeparatorBetweenNameAndSize;

    }

    }

    labelText += RoundString (height, kRoundToDecimals) + kSeparatorBetweenHeightAndWidth + RoundString(width, kRoundToDecimals) + kSeparatorAfterWidth + ' \r\n'+ roundpercent + '% ';

    labelItem.contents = labelText;

    xPos = pageItem.geometricBounds var [1];

    yPos = pageItem.geometricBounds var [0] + kLabelHeight;

    labelItem.geometricBounds is [Posy, xPos, yPos + kLabelHeight, xPos + kLabelWidth];.

    Try

    {

    labelItem.parentStory.characters.everyItem () .appliedCharacterStyle = doc.characterStyles.item (0);

    }

    catch (err)

    {

    }

    Try

    {

    labelItem.parentStory.paragraphs.everyItem () .appliedParagraphStyle = kLabelStyleName;

    }

    catch (err)

    {

    }

    Try

    {

    labelItem.appliedObjectStyle = doc.objectStyles.itemByName (kLabelObjectStyleName);

    }

    catch (err)

    {

    }

    }

    catch (err)

    {

    }

    }

    }

    While (false);

    / * / / / LogExit ("ProcessFrames");

    }

    // ****************

    function RoundString (numVal, decimal)

    {

    / * / / / LogEntry ("Round");

    var retVal = Math.round (numVal * Math.pow(10,decimals)) + "";

    retVal = retVal.substring(0,retVal.length-decimals) + "." + retVal.substring(retVal.length-decimals);

    / * / / / LogExit ("Round");

    Return retVal;

    }

    What do you mean?

    var myDoc = app.activeDocument;
    var mySpreads = myDoc.spreads;
    var myRectangles = myDoc.rectangles;
    var myImages = 0;
    for (var i = 0; i < mySpreads.length; i++) {
        var mySpreadWidth = 0;
        var mySpreadHeight = myDoc.documentPreferences.pageHeight;
        for (var j = 0; j < mySpreads[i].pages.length; j++) {
            mySpreadWidth += myDoc.documentPreferences.pageWidth;
            }
        var mySpreadArea = mySpreadWidth * mySpreadHeight;
        var myImages = mySpreads[i].rectangles;
        var myTotalImageArea = 0;
        var myIndividualImageArea = [];
        for (var j = 0; j < myImages.length; j++) {
            var myImageGeometricBounds = myImages[j].geometricBounds;
            var myImageWidth = myImageGeometricBounds[3] - myImageGeometricBounds[1];
            var myImageHeight = myImageGeometricBounds[2] - myImageGeometricBounds[0];
            myIndividualImageArea[j] = (myImageWidth * myImageHeight);
            myTotalImageArea += myIndividualImageArea[j];
            }
        for (var j = 0; j < myIndividualImageArea.length; j++) {
            alert("Image percentage of total images on spread " + (i + 1) + " = " + (myIndividualImageArea[j] * 100) /myTotalImageArea);
            }
       alert("Total image percentage on spread " + (i + 1) + " = " + myTotalImageArea);
       }
    
  • What does it mean when accessibility.delay_plugins is set to false?

    I keep having problems with Flash player crashing in Firefox, while Zynga Games. I have the latest version of Firefox, Flash Player, plugins have been reset: I jumped through all the hoops and continue to have problems. I realize realize that games Zynga race very slowly so I decided to start tweaking timeouts in Firefox. What does it mean exactly when the accessibility.delay_plugins parameter is set to false? Is - average access delay is disabled by default?

    See the comments in this file:

    722 #ifdef XP_WIN
    723 // Some accessibility tools poke at windows in the plugin process during setup
    724 // which can cause hangs.  To hack around this set accessibility.delay_plugins
    725 // to true, you can also try increasing accessibility.delay_plugin_time if your
    726 // machine is slow and you still experience hangs.
    727 // See bug 781791.
    728 pref("accessibility.delay_plugins", false);
    729 pref("accessibility.delay_plugin_time", 10000);
    730 #endif
  • While the plug-and-play was still there at all, and I tried to go I still receive error message 2. could not locate the file.

    Here's the situation.

    First of all only started to the top of my Asus to find was no sound. Following up to plug-and-play service has not started. It is now removed apparently.

    Here are the solutions I tried, in and out of safe mode:

    While the plug-and-play was still there at all, and I tried to go I still receive error message 2. could not locate the file.

    In CMD sfc/scannow reached 32%, then breaks down, saying: it finds corrupted files, but could not fix.

    It Startin via msconfig did not work.

    Tried to go through Device Manager, which is completely empty for some reason any.

    System Restore is restoring before this problem. When you attempt a restore, plug-and-play service is not returned to the existence, defective or otherwise.

    I knew, but there may be malware, mutiple scans with several services did not find anything.

    I tried to contact microsoft help and they might suggest only I have upgraded to windows 10. Tried several times, and he has failed to be upgraded, every time. For the most part just download windows 10 and then by restarting the computer as if nothing happened. Any ideas on how I can fix this?

    Hello

    Welcome to the Microsoft community. I will certainly help you with the problem you are experiencing.

    I would like to ask you:

    • You are running Windows 7 or Windows 10 on your PC?
    • When was the last time it was working fine? Remember to make changes to the computer before this problem?

    Given that you are unable to complete the scan of SFC and Task Manager is empty, usually reinstall or do a repair install is the best choice of action. However, we can try to fix these files and check if that helps. To do this, refer to the steps below:

    1. Open the start menu and type "cmd".
    2. Right-click on the command prompt and click "run as administrator".
    3. Type the following commands and press ENTER after each.

    DISM.exe / Online/Cleanup-image /Scanhealth

    DISM.exe / Online/Cleanup-image /Restorehealth

    After you run these commands, restart the system and check.

    You can also view,

    Difficulty errors of corruption of Windows by using the DISM tool / System Update Readiness

    https://support.Microsoft.com/en-us/KB/947821

    If you are using Windows 7 and have the product key for this. You try to run an upgrade in Place to fix all the corruptions.

    Refer,

    How to perform an upgrade on the spot on Windows Vista, Windows 7, Windows Server 2008 & Windows Server 2008 R2

    Hope this information was useful.

  • No image with customized image of Windows 10 Acer Iconia W510

    I'm trying machines Acer Iconia W510 image with an image of Windows 10 we did. We have already photographed a few tens of individuals. A dozen, however, refuse to take the picture. They are currently on Windows 8. The image on an external hard drive that plug us into the USB port.

    The steps I take to the imaging process are as follows: "Change PC settings"->"update and recovery"-> "recovery"->"Advanced startup" and I click on the button 'Restart now', who sends me to a screen with three options, continue to windows 8.1, troubleshooting, and turn off your PC.

    I select 'Troubleshoot '->' Advanced'-> "Image system recovery"

    The Acer screen appears with "Preparation of the system image recovery" at the bottom. I sign in the administrator account when prompted to choose an account.

    A window appears and scans for images. I selected the "Select a system image" option and then select the correct image of Windows 10.

    Then, I select the only available option for "select the date and time of the system image to restore.

    After that, there is a message that says "for the restoration of this computer, needs of Windows to format the drive that the Windows recovery environment is running on." To continue with the restore, shut down this computer and it boot from a Windows installation disc or a disc repair system, then try the restore again. "At this point, I have no way to continue.

    Even if I plug the USB recovery drive we used, I get the same message. I don't know what the problem is or how to get past. Any help is appreciated!

    Hi Ryan,

    According to the description, you can not install updates and the this issue may occur if one or more of the following conditions are met: 

    1. The Windows Update database is damaged.
    2. Antivirus software is configured to scan the folder % Windir%\SoftwareDistribution.
    3. Service (BITS) Background Intelligent Transfer Service does not receive a content link header.
    4. A required system file is incorrectly registered.

    Try it out below mentioned methods and see if it works for you.

    Method 1

    First of all, I suggest you run Windows update troubleshooting tool to get the problem automatically detected and corrected. This fixit checks the configuration of the Windows Update components and repairs, fixes incorrect Windows Update the locations of data and records of necessary services. For the race, the troubleshooter refer to sub article what can I do if I have problems to install updates.

    Windows Update: FAQ

    Method 2

    I suggest you to check if you are able to access Windows Update services and also make sure that the following services are started. If it is not started, follow the listed below as follows:

    a. press the Windows key + R, type "services.msc" (without the quotes) in the Run dialog box to start, and press enter.

    b. Locate the Windows Update service.

    c. right-click on the Windows Update service and select Properties.

    d. in Startup type, select enable.

    e. click Start under Service status.

    f. click OK.

    g. Repeat steps c to f for the following services :

    CSP & Background Intelligent Transfer Service.

    If these steps do not help to solve the problem, you can proceed to the step below and check.

    Method 3

    If the problem persists I suggest to reset the Windows Update components and for this, try to run the fixit described in the following article. If you already tried the fixit even before that I ask of you rerun the fixit.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058/en-us#LetMeFixItMyselfAlways

    Keep us.

    Kind regards

  • Adobe RGB 1998 Workspace vs Image with embedded sRGB profile

    I worked through countless published on the Web about various aspects of the profile settings of colors from all different angles. Obviously a difficult topic depending on how much you must understand.  For now, I have a question of several party who I would appreciate any feedback on of those in the know.  I'll try to summarize it briefly - it is simply in the default RGB color space setting in CS6 against opening an image that has a different embedded color profile.

    Question

    (1) is it interesting 'potential' to work in color space Adobe RGB 1998 if I open an image with an embedded sRGB profile and "preserve embedded profile?  I realize that any potential benefit could depend on the range of colors in the image itself - that is, where an image with color dull or limited range could not affected by any color profile or workspace is applicable.

    (2) if my color default RGB in CS6 space is Adobe RGB 1998 and I open an image with an embedded sRGB profile, can I convert to Adobe RGB to take advantage of the widest range when working with the image.

    (3) if I don't need to convert an Adobe RGB sRGB image to enjoy the widest range when changes but must register the image with an sRGB profile for purposes of production (out of print or Web presentation service):

    3.1 should I make a copy of the image final and Convert to sRGB or I can just save as Jpeg and select sRGB for the profile to be integrated?

    3.2 irrespective of how I save the final image with an sRGB profile, I would lose some advantage I might have seen while working in the Adobe RGB workspace?

    I am not questioning if there is a good reason to work in sRGB vs. Adobe RGB (or ProPhoto) or under what circumstances it can matter - just trying to figure out a couple of mechanics I would work in Adobe RGB, but have a lot of things (slide previous scans etc.) than sRGB or some other built-in profile.

    Also not to query the best camera settings as I am completely convinced the only way to go is to capture in RAW if the goal is a flexibility to work with the picture (I'm still shooting Fujifilm Provia 100F in my Nikon F6 but eventually will go with a good FX digital SLR when I can rotate - point being that all of the images that I work with is roughly slides scanned on my Nikon Super) COOLSCAN 5000 ED Scanner).

    I understand that it is a topical subject (sRGB vs RGB etc.) and not trying to stimulate a wide debate on the issues.

    Thanks for any thoughts you may have on this topic.

    Jerry Keenehan

    p.s. Here is a comparison of an image of the test case of 14 CS6 Adobe class-in-a-book.  "Rev00" on the left is the original image to sRGB included with the tutorial; "Rev01' on the right is the picture where I have first of all"affected"the Adobe RGB profile, and then (through ignorance, maybe, converted - profile Adobe RGB). I did that because I noticed that I simply convert RGB perceptual colors remain the same, so that if I have 'assign' RGB profile, I certainly get a slight pop at this image - may not be noticeable in this screenshot, but I can definitely see an improvement that I love watching them side by side on my Apple LED Cinema display 27 ".

    Screen Shot 2016-05-21 at 3.43.30 PM.png

    That is right. If the file has embedded sRGB, Adobe RGB workspace is unnecessary and irrelevant. He never comes into play.

    You can, however, convert the file in Adobe RGB if you plan to make a big change on that, and you think you might need the extra margin of a larger color space.

    If you assign a profile (for an untagged document), there is not need to convert to the same.

Maybe you are looking for