Incorrect label height

I have a code which creates a label, and then is supposed to use the height of this label to determine where to put another beneath him.  The problem is that the height returned is always 22, whether a line or two and change the font size does not change it no more.  These labels are created in a table.  Here is a code example:

Outside of the table:

var myFont: Font = new helvetica_bold();

var text_format:TextFormat = new TextFormat();

TEXT_FORMAT.font = myFont.fontName;

TEXT_FORMAT. Size = 14;

TEXT_FORMAT. Align = "center";

On the inside of the table:

Add Label 1

var text_string1:String = xmlData.Product [i] .name;

var label1:Label = new Sun;

label1.move(xpos,ypos);

label1.width = 200;

label1.wordWrap = true;

label1.text = text_string1;

label1.autoSize = TextFieldAutoSize.CENTER;

label1.textField.antiAliasType = AntiAliasType.ADVANCED;

label1.setStyle ("IncorporerPolices", true);

label1.setStyle ("textFormat", text_format);

addChild (label1);



/ / / Add label 2

var text_string2:String = xmlData.Product [i] .brand;

var label2:Label = new Sun;

trace (label1.height);        It always returns the value 22

label2.move (xpos, ypos + label1.height);

label2.width = 200;

label2.wordWrap = true;

label2.text = text_string2;

label2.autoSize = TextFieldAutoSize.CENTER;

label2.textField.antiAliasType = AntiAliasType.ADVANCED;

label2.setStyle ("IncorporerPolices", true);

label2.setStyle ("textFormat", text_format);

addChild (label2);

Because labels can be a line or two lines, I need this height must be generated dynamically.  Any ideas on how to have the label returned with precision height?  Should I use a different text object instead?

Thank you!

I think that the method drawNow() can help you. You might like this:

Import fl.controls.Label;

var pos:Number = 0;
var pad: Number = 10;
for (var i = 0; i)<3; i++)="">
var l:Label = new Sun;
l.wordWrap = true;
l.autoSize = 'left ';
l.Text = "Hello world. How are the wife and children? « ;
addChild (l);
l.drawNow ();
l.y = pos;
POS += l.height + pad;
}

Tags: Adobe Animate

Similar Questions

  • Label height bug?

    Looks like you can not control the height of the label. Even if the police is set to a smaller size, the height of the label remain always the same.

    Anyone able to define a different height for the label using minHeight, preferredHeight, etc.?

    There should be a lot of label of bugs/changes coming in the next update

  • Get the height a label in QML?

    Can I get the height of a label in QML?

    Or the coordinates of a container (up/down)?

    BR, René

        Container {
            attachedObjects: [
                LayoutUpdateHandler {
                    id: containerLuh
                    onLayoutFrameChanged: {
                        console.log(layoutFrame.x)
                        console.log(layoutFrame.y)
                        console.log(layoutFrame.height)
                        console.log(layoutFrame.width)
                    }
                }
            ]
    
            Label {
                text: "Label height: " + labelLuh.layoutFrame.height
                attachedObjects: [ LayoutUpdateHandler { id: labelLuh } ]
            }
    
            Label {
                text: "Container height: " + containerLuh.layoutFrame.height
            }
        }
    
  • TextSize ajust to let her enter a label

    Hello!

    I have a label, height 400px and width 600px and I want a text (random length Word) scale to fit exactly to the width of 600px. I want to avoid that the text gets blurred, but shorter words can be displayed words compared to adults.

    Any ideas?

    I found at the same time, a different design for my application, but after a quick test seemed to me a very good working solution:

    Label {
        textFit.mode: LabelTextFitMode.FitToBounds
    }
    

    Somehow, it was difficult to find in the documentation of the label for me. Beginning of work with the SDK and firmware 10.2.0.

    Maybe someone else who seeks something similar is this announcement...

  • Information incorrect stock photo displayed?

    Hi, I tried Adobe Stock and my first search turned up an error!

    Photo #9528185 Whakamaru Power Station Mangakino, New Zealand

    is incorrect. It's actually Steam Ohaaki Power Station cooling tower.

    How we inform Adobe that this picture is incorrectly labelled?

    Hi tarknz,

    Thank you for reporting the issue.

    We set the name of the image.

    Concerning

    ~ David Kapoor

  • Script label

    This script is for Adobe Indesign CS5 Windows.

    I m trying to modify this script to acept this configuration:

    Dialog Box.JPG

    Distribution of this dialog box and apply only if there is a certain image of selected image. (I think that if there is no object selected, applies it to all picture frame on the page so I Don t want this couse I will use a shortcut to this script and accidents can happen)

    Sorry for the long script.

    LabelGraphics.jsx (modified)

    A JavaScript InDesign CS3

    /*

    @@BUILDINFO @ "LabelGraphics.jsx" 1.1.0 June 6, 2008

    */

    Adds labels for graphics in the active document.

    / * This example script has been changed. The changes are listed here: added option to create a label of Clipboard data.

    drop-down menu added to apply a shade to the frame of the legend. This script can now apply lables to just the selected graphics

    If you have one or more selected images. Otherwise, it will apply the help of labels to all the graphics in the document. The height of the

    Legend frame is determined by the amount of text and the applied paragraph style. the width of the legend image is

    determined by the width of the image, that it is under. Setting the height of the caption in the dialog box has been removed because it is not

    are most needed.

    */

    main();

    //=============================================================\\

    main() {} function

    If (app.documents.length! = 0) {}

    If (. allGraphics.length app.documents.item (0)! = 0) {}

    myDisplayDialog();

    }

    else {}

    Alert ("the Document contains no graphics.");

    }

    }

    else {}

    Alert ("Please open a document and try again.");

    }

    }

    //=============================================================\\

    function myDisplayDialog() {}

    var myLabelWidth = 100;

    var myStyleNames = myGetParagraphStyleNames();

    var mySwatchNames = myGetSwatchNames();

    var myDialog = app.dialogs.add({name:"LabelGraphics"});)

    {with (MyDialog.dialogColumns.Add ())}

    Type of label

    {with (dialogRows.Add ())}

    {with (dialogColumns.Add ())}

    staticTexts.add ({staticLabel: "Label Type", minWidth:myLabelWidth});})

    }

    {with (dialogColumns.Add ())}

    var myLabelTypeDropdown = dropdowns.add ({stringList: ["File name", "File path", "Description of XMP", "XMP author", "paste from Clipboard"], selectedIndex:4});})

    }

    }

    {with (dialogRows.Add ())}

    {with (dialogColumns.Add ())}

    staticTexts.add ({staticLabel: "Label Offset", minWidth:myLabelWidth});})

    }

    {with (dialogColumns.Add ())}

    var myLabelOffsetField = measurementEditboxes.add({editValue:0});)

    }

    }

    Style to apply

    {with (dialogRows.Add ())}

    {with (dialogColumns.Add ())}

    staticTexts.add ({staticLabel: "Label Style", minWidth:myLabelWidth});})

    }

    {with (dialogColumns.Add ())}

    var myLabelStyleDropdown = dropdowns.add ({stringList:myStyleNames, selectedIndex:0});})

    }

    }

    Swatch to apply

    {with (dialogRows.Add ())}

    {with (dialogColumns.Add ())}

    staticTexts.add ({staticLabel: "Apply swatch", minWidth:myLabelWidth});})

    }

    {with (dialogColumns.Add ())}

    var mySwatchDropdown = dropdowns.add ({stringList:mySwatchNames, selectedIndex:0});})

    }

    }

    }

    //=============================================================\\

    Ditto var = myDialog.show ();

    if(myResult == true) {}

    var myLabelType = myLabelTypeDropdown.selectedIndex;

    var myLabelHeight = 24; A generic label height which will be adjusted later

    myPasteFailure = false;

    var myLabelOffset = myLabelOffsetField.editValue;

    var myLabelStyle = myStyleNames [myLabelStyleDropdown.selectedIndex];

    var mySwatch = mySwatchNames [mySwatchDropdown.selectedIndex];

    myDialog.destroy ();

    var myOldXUnits = app.documents.item (0).viewPreferences.horizontalMeasurementUnits;

    var myOldYUnits = app.documents.item (0).viewPreferences.verticalMeasurementUnits;

    App.Documents.Item (0).viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;

    App.Documents.Item (0).viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;

    try {}

    myAddLabels (myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch);

    }

    {catch (e)}

    Alert ("Cannot add lables." + e);

    }

    try {}

    resizeOverset();

    }

    {catch (e)}

    Alert ("Unable to correct the text in excess." + e);

    }

    If (myPasteFailure == true) {}

    Alert ("unable to paste from the Clipboard.");

    }

    App.Documents.Item (0).viewPreferences.horizontalMeasurementUnits = myOldXUnits;

    App.Documents.Item (0).viewPreferences.verticalMeasurementUnits = myOldYUnits;

    }

    else {}

    myDialog.destroy ();

    }

    }

    //=============================================================\\

    function myAddLabels (myLabelType, myLabelHeight, myLabelOffset, myLabelStyleName, mySwatchName) {}

    myDocument var = app.documents.item (0);

    myStoriesArray = new Array();

    If (app.selection.length == 0) / / if nothing is selected apply legend for all the graphics of the document

    {

    var myConfirmation = confirm ("Add captions to all images in the document?", false,"LabelGraphics.jsx" ');

    If (myConfirmation is true)

    {

    myGraphics = myDocument.allGraphics var;

    }

    }

    on the other

    {/ / If the graphics are selected, just add captions to the selected items, as long as they are rectangles (picture frames)}

    var myConfirmation = true;

    var mySelections = app.selection;

    myGraphics = new Array();

    for (i = 0; i < mySelections.length; i ++) {}

    If (mySelections [i] == "[" Rectangle object]) {//Check to make sure that the selection includes only rectangles}

    myGraphics.push(mySelections[i].allGraphics[0]);

    }

    else {}

    Alert ("other than the graphics objects have been selected!");

    Nothing happens if you do not select at least a chart

    }

    }

    }

    myLabelStyle = myDocument.paragraphStyles.item (myLabelStyleName);

    mySwatch = myDocument.swatches.item (mySwatchName);

    If (myConfirmation == true) {}

    for (var myCounter = 0; myCounter < myGraphics.length; myCounter ++) {}

    try {}

    myAddLabel (myDocument myGraphics [myCounter], myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch, myStoriesArray);

    }

    catch (e) {};

    }

    }

    }

    //=============================================================\\

    function myAddLabel (myDocument, myGraphic, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch, myStoriesArray) {}

    var myLabel;

    myLink var = myGraphic.itemLink;

    var myPasteFromClipboard = false;

    Create the layer of the label if it does not already exist.

    var myLabelLayer = myDocument.layers.item ("labels");

    try {}

    myLabelLayer.name;

    }

    {} catch (MonErreur)

    myLabelLayer = myDocument.layers.add({name:"labels"});)

    }

    Label type defines the text that goes into the label.

    {Switch (myLabelType)}

    File name

    case 0:

    myLabel = myLink.name;

    break;

    Path of the file

    case 1:

    myLabel = myLink.filePath;

    break;

    XMP description

    case 2:

    try {}

    myLabel = myLink.linkXmp.description;

    }

    {catch (MyError)}

    myLabel = "No description available.";

    }

    break;

    XMP author

    case 3:

    try {}

    myLabel = myLink.linkXmp.author

    }

    {catch (MyError)}

    myLabel = "No author available.";

    }

    break;

    Paste from the Clipboard

    case 4:

    try {}

    myPasteFromClipboard = true;

    }

    {catch (MyError)}

    myLabel = "No data on the Clipboard.";

    }

    break;

    }

    myFrame var = myGraphic.parent;

    myX1 = myFrame.geometricBounds [1];

    myY1 = myFrame.geometricBounds [2] + myLabelOffset;

    myX2 = myFrame.geometricBounds [3];

    myY2 = myY1 + myLabelHeight;

    If (myPasteFromClipboard is true)

    {

    try {}

    var myTextFrame = myFrame.parent.textFrames.add (myLabelLayer, defined, undefined, {geometricBounds: [myY1, myX1, myY2, myX2]});

    myTextFrame.insertionPoints.item (0) .select ();

    App.Paste ();

    }

    {catch (e)}

    myTextFrame.remove ();

    myPasteFailure = true;

    }

    }

    else {}

    var myTextFrame = myFrame.parent.textFrames.add (myLabelLayer, defined, undefined, {geometricBounds: [myY1, myX1, myY2, myX2], contents: myLabel});

    }

    myTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;

    myTextFrame.paragraphs.item (0) .appliedParagraphStyle = myLabelStyle;

    myTextFrame.fillColor = mySwatch;

    myFrameParentStory = myTextFrame.parentStory;

    myStoriesArray.push (myFrameParentStory);

    }

    //=============================================================\\

    function myGetParagraphStyleNames() {}

    var myStyleNames = app.documents.item (0).paragraphStyles.everyItem () .name;

    Return myStyleNames;

    }

    function myGetSwatchNames() {}

    var mySwatchNames = app.documents.item (0).swatches.everyItem () .name;

    Return mySwatchNames;

    }

    function resizeOverset() {}

    for (var j = myStoriesArray.length - 1; j > = 0; j-) {}

    myLastFrame = myStoriesArray [j] .texts [0] .parentTextFrames [myStoriesArray [j] .texts [0].parentTextFrames.l its - 1];

    myNewY2 = myLastFrame.geometricBounds [3]; Retrieves the width of the text block before doing fit()

    myLastFrame.fit (FitOptions.FRAME_TO_CONTENT);

    myNewY1 = myLastFrame.geometricBounds [1];

    myNewX1 = myLastFrame.geometricBounds [2];

    myNewX2 = myLastFrame.geometricBounds [0];

    myLastFrame.geometricBounds = [myNewY1, myNewX2, myNewX1, myNewY2]; reset the front wide fit() ran

    }

    }

    Hello

    Added runWithoutDialog() - permanent function fixed inside:

    //LabelGraphics.jsx (Modified)
    //An InDesign CS5 JavaScript
    /*
    @@@BUILDINFO@@@ "LabelGraphics.jsx" 1-Dec-2014
    */
    //Adds labels to the graphics in the active document.
    /* User interaction switched off
      see settings inside runWithoutDialog() function
      */
    main();
    //=============================================================\\
    function main(){
      myStoriesArray = new Array();
      if(app.documents.length != 0){
      if(app.selection[0].allGraphics.length != 0){
      runWithoutDialog(); // myDisplayDialog();
      }
      else{
      alert("Select some frame with graphic");
      }
      }
      else{
      alert("Please open a document and try again.");
      }
      }
    //=============================================================\\
    function runWithoutDialog(){
      var myLabelWidth = 100;
      var myStyleNames = myGetParagraphStyleNames();
      var mySwatchNames = myGetSwatchNames();
      var myLabelType = 4; // paste from clipboard
      var myLabelHeight = 24; // A generic label height that will be adjusted later
      myPasteFailure = false;
      var myLabelOffset = 0;
      var myLabelStyle = myStyleNames[0];
      var mySwatch = mySwatchNames[0];
      var myOldXUnits = app.documents.item(0).viewPreferences.horizontalMeasurementUnits;
      var myOldYUnits = app.documents.item(0).viewPreferences.verticalMeasurementUnits;
      app.documents.item(0).viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
      app.documents.item(0).viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    
      try{
      myAddLabels(myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch);
      }
      catch(e){
      alert("Unable to add lables. " + e);
      }
    
      try{
      resizeOverset() ;
      }
      catch(e){
      alert("Unable to correct overset text. " + e);
      }
    
      if (myPasteFailure == true){
      alert("Unable to paste from clipboard.");
      }
      app.documents.item(0).viewPreferences.horizontalMeasurementUnits = myOldXUnits;
      app.documents.item(0).viewPreferences.verticalMeasurementUnits = myOldYUnits;
      }
    //=============================================================\\
    function myDisplayDialog(){
      var myLabelWidth = 100;
      var myStyleNames = myGetParagraphStyleNames();
      var mySwatchNames = myGetSwatchNames();
      var myDialog = app.dialogs.add({name:"LabelGraphics"});
      with(myDialog.dialogColumns.add()){
      //Label type
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Type", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelTypeDropdown = dropdowns.add({stringList:["File name", "File path", "XMP description", "XMP author","Paste from clipboard"], selectedIndex:4});
      }
      }
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Offset", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelOffsetField = measurementEditboxes.add({editValue:0});
      }
      }
      //Style to apply
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Style", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelStyleDropdown = dropdowns.add({stringList:myStyleNames, selectedIndex:0});
      }
      }
      //Swatch to apply
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Apply swatch", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var mySwatchDropdown = dropdowns.add({stringList:mySwatchNames, selectedIndex:0});
      }
      }
      }
      //=============================================================\\
      var myResult = myDialog.show();
      if(myResult == true){
      var myLabelType = myLabelTypeDropdown.selectedIndex;
      var myLabelHeight = 24; // A generic label height that will be adjusted later
      myPasteFailure = false;
      var myLabelOffset = myLabelOffsetField.editValue;
      var myLabelStyle = myStyleNames[myLabelStyleDropdown.selectedIndex];
      var mySwatch = mySwatchNames[mySwatchDropdown.selectedIndex];
      myDialog.destroy();
      var myOldXUnits = app.documents.item(0).viewPreferences.horizontalMeasurementUnits;
      var myOldYUnits = app.documents.item(0).viewPreferences.verticalMeasurementUnits;
      app.documents.item(0).viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
      app.documents.item(0).viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    
      try{
      myAddLabels(myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch);
      }
      catch(e){
      alert("Unable to add lables. " + e);
      }
    
      try{
      resizeOverset() ;
      }
      catch(e){
      alert("Unable to correct overset text. " + e);
      }
    
      if (myPasteFailure == true){
      alert("Unable to paste from clipboard.");
      }
      app.documents.item(0).viewPreferences.horizontalMeasurementUnits = myOldXUnits;
      app.documents.item(0).viewPreferences.verticalMeasurementUnits = myOldYUnits;
      }
      else{
      myDialog.destroy();
      }
    }
    //=============================================================\\
    function myAddLabels(myLabelType, myLabelHeight, myLabelOffset, myLabelStyleName, mySwatchName){
      var myDocument = app.documents.item(0);
    
      if (app.selection.length == 0) // If nothing is selected apply caption to all graphics in the document
      {
      var myConfirmation = false; // confirm("Add captions to all images in the document?", false, "LabelGraphics.jsx" );
      if (myConfirmation == true)
      {
      var myGraphics = myDocument.allGraphics;
      }
      }
      else
      { // If graphics are selected, just add captions to the selected items, as long as they are rectangles(image frames)
      var myConfirmation = true;
      var mySelections = app.selection;
      myGraphics = new Array();
    
      for(i = 0; i < mySelections.length; i++){
      if(mySelections[i] == "[object Rectangle]"){  //Check to make sure selection only includes rectangles
      myGraphics.push(mySelections[i].allGraphics[0]);
      }
      else{
      //alert("Objects other than graphics were selected!");
      //Nothing happens if you don't select at least one graphic
      }
      }
      }
    
      myLabelStyle = myDocument.paragraphStyles.item(myLabelStyleName);
      mySwatch = myDocument.swatches.item(mySwatchName);
    
      if (myConfirmation == true){
      for(var myCounter = 0; myCounter < myGraphics.length; myCounter++){
      try{
      myAddLabel(myDocument, myGraphics[myCounter], myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch, myStoriesArray);
      }
      catch(e){};
      }
      }
      }
    //=============================================================\\
    function myAddLabel(myDocument, myGraphic, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch, myStoriesArray){
      var myLabel;
      var myLink = myGraphic.itemLink;
      var myPasteFromClipboard = false;
      //Create the label layer if it does not already exist.
      var myLabelLayer = myDocument.layers.item("labels");
      try{
      myLabelLayer.name;
      }
      catch (myError){
      myLabelLayer = myDocument.layers.add({name:"labels"});
      }
      //Label type defines the text that goes in the label.
      switch(myLabelType){
      //File name
      case 0:
      myLabel = myLink.name;
      break;
      //File path
      case 1:
      myLabel = myLink.filePath;
      break;
      //XMP description
      case 2:
      try{
      myLabel = myLink.linkXmp.description;
      }
      catch(myError){
      myLabel = "No description available.";
      }
      break;
      //XMP author
      case 3:
      try{
      myLabel = myLink.linkXmp.author
      }
      catch(myError){
      myLabel = "No author available.";
      }
      break;
      //Paste from the clipboard
      case 4:
      try{
      myPasteFromClipboard = true;
      }
      catch(myError){
      myLabel = "No clipboard data available.";
      }
      break;
      }
    
      var myFrame = myGraphic.parent;
      myX1 = myFrame.geometricBounds[1];
      myY1 = myFrame.geometricBounds[2] + myLabelOffset;
      myX2 = myFrame.geometricBounds[3];
      myY2 = myY1 + myLabelHeight;
    
      if (myPasteFromClipboard ==true)
      {
      try{
      var myTextFrame = myFrame.parent.textFrames.add(myLabelLayer, undefined, undefined,{geometricBounds:[myY1, myX1, myY2, myX2]});
      myTextFrame.insertionPoints.item(0).select();
      app.paste();
      }
      catch(e){
      myTextFrame.remove();
      myPasteFailure = true;
      }
      }
      else{
      var myTextFrame = myFrame.parent.textFrames.add(myLabelLayer, undefined, undefined,{geometricBounds:[myY1, myX1, myY2, myX2], contents:myLabel});
      }
    
      myTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;
      myTextFrame.paragraphs.item(0).appliedParagraphStyle = myLabelStyle;
    
      myTextFrame.fillColor = mySwatch;
      myFrameParentStory = myTextFrame.parentStory;
      myStoriesArray.push(myFrameParentStory);
    }
    //=============================================================\\
    function myGetParagraphStyleNames(){
      var myStyleNames = app.documents.item(0).paragraphStyles.everyItem().name;
      return myStyleNames;
      }
    function myGetSwatchNames(){
      var mySwatchNames = app.documents.item(0).swatches.everyItem().name;
      return mySwatchNames;
      }
    function resizeOverset() {
      for (var j = myStoriesArray.length - 1; j >= 0; j--) {
      myLastFrame = myStoriesArray[j].texts[0].parentTextFrames[myStoriesArray[j].texts[0].parentTextFrames.length - 1];
      myNewY2 = myLastFrame.geometricBounds[3]; //get the width of the text frame before doing fit()
      myLastFrame.fit(FitOptions.FRAME_TO_CONTENT);
      myNewY1 = myLastFrame.geometricBounds[1];
      myNewX1 = myLastFrame.geometricBounds[2];
      myNewX2 = myLastFrame.geometricBounds[0];
      myLastFrame.geometricBounds = [myNewX1, myNewY1, myNewX2, myNewY2]; // reset the width to before fit() was ran
      }
      }
    
  • EntitlementType of FREE has incorrect JSDoc

    In the AdobeReadingAPI.js and AdobeLibraryAPI.js the JSDoc for EntitlementType of FREE is incorrectly labeled as value 0.

    /**
     * Enum for the type of entitlement.
     * @see adobeDPS-Folio#entitlementType
     * @namespace
     * @enum {Number}
     */
    var EntitlementType = {
        /**
         * <strong>Value: 0</strong>
         * <br/>Indicates no entitlement.
         */
        UNKNOWN: 0,
        /**
         * <strong>Value: 0</strong>
         * <br/>Indicates free entitlement.
         */
        FREE: 1,
    

    Minor and just typo in the documentation. However, misled during the review of automatically generated help for EntitlementType inline or via:

    This also applies to the versions of the documentation for ReadingSDK - 2.29 and LibraryAndStoreSDK - 2.292.29.

    Thank you to find it, I will forward to the documentation team.

    Neil

  • Flex mobile 4.5 - Multiline labels?

    Hey, not quite sure how to make multi-line labels. Is this easy to do? Tried to give the standard labels height but that doesn't seem to work. In most other languages theres usually a multiline = true a little Delisle but im not sure how to do it in flex. Thank you!

    Should work if your label has a quite small width which requires several lines:

  • new height is not updated...

    I have a function that when I move the barV along the Y the labelV follows with it (centering).

    the code resides in the earphone of move:

    It is inside the listener to move

    var newY:Number = new;

    y = barV_mc.y;

    ((barV_mc.height / 2)-(labelV_mc.height / 2) = labelV_mc.y) + y;

    It works very well, the problem is, when I change the size of the window, I have the code to change the height of barV with her.

    so when I do it, changing the windowsize height does not change the new height of the barV in the move the listener.

    It changes outside this listener to move.

    This means that the labelV is not automatically updated when I change the size of the window, if I click and drop it again.

    Overview:

    barV-> the label height is centered along the y

    change window-> the barV gets new height.

    but the label Center with her.

    It focuses only when I click/move it.

    How can I ensure that it updates automatically when you change windowsize inside this code?

    stage.addEventListener (Event.RESIZE, whateverF);

    somethingelse.addEventListener ("someevent", somelistenerF);

    function somelistenerF(e:Event) {}

    regardless of the code

    f() ;

    }

    function whateverF(e:Event) {}

    stage resize code;

    f() ;

    }

    function f() {}

    you update the code

    }

  • the visible value = false Label does not remove its space on the screen

    Hi all

    I have three labels ony by width = 100% for all.
    For some reason, now I want to do 2nd label invisible on the screen.
    So I set visible = "false" for the 2nd label. Now I can't see it, the text displayed by the 2nd label, but I can see the space occupied by the label.

    I mean, now, I get the first text of the label and have empty line which has the text earlier but not now and third row with 3rd label text.

    Also, I checked that, if I put the 2nd Label height to 0 then also its not completely removing the 2nd, only option I found was completely comment code for the 2nd Label is the only way to hide the 2nd line :)

    Any help would be appreciated.

    Hello

    The value false includeInLayout property. Setting visible to false just hide the component, but the component is still in the page layout.

    I hope this helps.

  • vertical space between labels

    I have a few lined up labels like this.

    < mx:HBox width = "100%" >
    < mx:Label text = "Protein" fontSize = "10" height = "16" / >
    < mx:Label text = "{numberFormatter.format (items.currentItem.proteins)}" fontWeight = "bold" height = "16" / > "
    < / mx:HBox >
    < mx:HBox width = "100%" >
    < mx:Label text = "Carbs" fontSize = "10" height = "16" / >
    < mx:Label text = "{numberFormatter.format (items.currentItem.carbs)}" fontSize = "10" height = "16" / > "
    < / mx:HBox >

    But my problem is that the space between the lines is very large
    as:

    Protein 10

    Carbohydrates 20


    I want to get the 2 lines more closely to eatch other similar
    Protein 10
    Carbohydrates 20

    How do I do that?
    If I do just the label height smaler than 16 the text gets cutt downwards and upwards.

    Use somethng that label?

    Set the container verticalGap style parent on a lower value or zero (default is 6).

  • To find rest of park areas to maps

    My neighborhood local park working with its nonprofit and a local healthcare provider collects an annual "trails challenge." The idea is that every year, they trace clues in various parks in the system and encourage participants to walk enough of them during the year where the total distance travelled is more than 26 miles. It is a great way to visit the parks in the system that you wouldn't otherwise get to, you can take a camera and take some nice pix, and get you some exercise.

    My problem is that Siri cannot find the staging areas where are track leaders and walks begin. He or she can find the parks very well and although directions will get used to the Park, he usually ends up getting me to some fire trail which is located behind a locked door and would lead, I suppose that, until the middle of the Park because that's where the PIN is on the map. It seems no way to get to designated stops Park where I can park and find the course designer. Something of a frustration.

    Any ideas?

    If you want to report a problem with maps

    You can report the following issues:

    • Incorrect labels on the maps
    • Missing location
    • Incorrect search results
    • Wrong way
    • Bad Transit info

    On your iPhone, iPad or iPod touch

    To report a problem, follow these steps:

    1. Press on , in the lower right corner.
    2. Click on report a problem.
    3. Choose the question and follow the instructions on the screen.

    To check a problem reported on your iPhone, iPad or iPod touch, go to settings > cards > follow-up email. Maps uses your default contact.

    Apple's Support > get help with maps - Apple Support

  • Impossible to install the operating system using the product on Satellite 1110 recovery CD

    I had to replace my hard drive after the failure, but impossible to install Windows XP Home (Home) from the recovery CD. I followed the instructions on the CD case, but nothing happens, just a cursor flashing at the top left of the screen. If I try to install XP on a disk (which I just can't finish because it is already registered), then the installation begins as it should. A disc of windows 2000 installs also successfully.

    I realize that it could be the drive itself, but it does not appear the disk is not bootable. I will be grateful for suggestions.

    Simon

    Hello Simon

    Supplied restore CD is bootable. If I remember well, you should have 2 recovery (1/2 and 2/2) CD. It sounds stupid, but you can try to start the procedure of facilities using CD 2/2. A few months ago, I read a topic where a member of the forum has reported on the incorrect labelling of CD.

  • Fuze 4 GB will not recognize the change of information tracking

    Right then, I had some problems with my Fuze MP3 player. When I download the new music on the device, the ID3 tags all come out the way they are supposed to. However, if I remove the music that is on the drive and replace it with the same tracks with ID3s update, it will not recognize the change of title, album, or artist, if the song file will be updated. I know because I had problems with the songs with the same name or accidentally given songs the name of another song, which resulted in incorrectly labeled music.

    I tried to format the drive, I tried to remove the music manually in the file system, I tried to change the USB mode and delete the file that I said holds the ID3 data, and I tried all the possible permutations of disconnection and let the Player recognizes the changes. This includes the removal of all the music in the player, disconnection of the latter, confirming that there is no music on the system, to change the USB mode, deleting the file with the ID3 information, turning the rear USB mode, reconnect, put my music on the device, and the problems have not been resolved.

    It is likely, it is just to be fickety, and there is something I'm don't is not right, but it's the second "rocket" I've owned - I love the model and went up to return a Fuze + in favour of the former model - and one has never had this problem. I'm willing to try anything within reason to solve the problem, so I hope someone can point me in the right direction.

    In fact, the problem was not as expected at all. I think it turns the problem is Windows Media Player, which I only use to sync my music on my MP3 player, had a library with outdated information. So after the Player update multimedia, I refreshed my library recordings and everything worked as you wish. I just to make sure that if I make changes to existing songs in my library.

    Thanks for all the help, guys, guess it was on my end.

  • RVS4000 selective loss of DNS queries

    Is there a configuration option or a known bug that would cause a selective RVS4000 or garble queries DNS

    coming on the LAN side by side WAN, yet allow HTTP, SSH and Ping through without problem?  I think I have

    very strong evidence that this problem is due to my new satellite ISP, but they insist on sound ' beause router DNS

    requests go by with the deleted router.  The same router, configuration and complete the installation has worked with my

    old cable ISP.

    After a lot of frustration (because of the EFAH05W be incorrectly labeled a 'hub',

    When he is in fact a switch and thus will not support the packet sniffing), I am set me up

    with Wireshark, an old, borrowed hub and a portable separate sniffing

    packs from the side WAN.  Good DNS responses were indeed

    Since name servers, but the RVS4000 was rejecting, return a

    ICMP MOUSSOKI 'no such port' for the name server.  I thought that the router has calendar

    its NAT rule when connected via satellite (which has round-trip latency

    of about 1.3 sec.)  After not finding no way to reconfigure the RVS4000 to hold the

    NAT rules any longer, I tried the Netgear RP614v4, just because that was what they had

    for the local store.  Which corrects the problem.

    (I tried this other router earlier and DNS worked but HTTP has failed.  Must

    were the experimental errors, everything works now.)

Maybe you are looking for