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

Tags: BlackBerry Developers

Similar Questions

  • 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;
    }

  • 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...

  • 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
      }
      }
    
  • 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).

  • use Image catalog script for the current document

    Is it possible to use the script to image catalogue for the current document in which we work instead of leaving the mark of script a new document fees for placed images?

    use,

    //ImageCatalog.jsx
    //An InDesign CS6 JavaScript
    /*
    @@@BUILDINFO@@@ "ImageCatalog.jsx" 3.0.0 15 December 2009
    */
    //Creates an image catalog from the graphic files in a selected folder.
    //Each file can be labeled with the file name, and the labels are placed on
    //a separate layer and formatted using a paragraph style ("label") you can
    //modify to change the appearance of the labels.
    //
    //For more information on InDesign scripting, go to http://www.adobe.com/products/indesign/scripting/index.html
    //Or visit the InDesign Scripting User to User forum at http://www.adobeforums.com .
    //
    //The myExtensions array contains the extensions of the graphic file types you want
    //to include in the catalog. You can remove extensions from or add extensions to this list.
    //myExtensions is a global. Mac OS users should also look at the file types in the myFileFilter function.
    main();
    function main(){
      var myFilteredFiles;
      //Make certain that user interaction (display of dialogs, etc.) is turned on.
      app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
      myExtensions = [".jpg", ".jpeg", ".eps", ".ps", ".pdf", ".tif", ".tiff", ".gif", ".psd", ".ai"]
      //Display the folder browser.
      var myFolder = Folder.selectDialog("Select the folder containing the images", "");
      //Get the path to the folder containing the files you want to place.
      if(myFolder != null){
      if(File.fs == "Macintosh"){
      myFilteredFiles = myMacOSFileFilter(myFolder);
      }
      else{
      myFilteredFiles = myWinOSFileFilter(myFolder);
      }
      if(myFilteredFiles.length != 0){
      myDisplayDialog(myFilteredFiles, myFolder);
      alert("Done!");
      }
      }
    }
    //Windows version of the file filter.
    function myWinOSFileFilter(myFolder){
      var myFiles = new Array;
      var myFilteredFiles = new Array;
      for(myExtensionCounter = 0; myExtensionCounter < myExtensions.length; myExtensionCounter++){
      myExtension = myExtensions[myExtensionCounter];
            myFiles = myFolder.getFiles("*"+ myExtension);
      if(myFiles.length != 0){
      for(var myFileCounter = 0; myFileCounter < myFiles.length; myFileCounter++){
      myFilteredFiles.push(myFiles[myFileCounter]);
      }
      }
      }
      return myFilteredFiles;
    }
    function myMacOSFileFilter(myFolder){
      var myFilteredFiles = myFolder.getFiles(myFileFilter);
      return myFilteredFiles;
    }
    //Mac OS version of file filter
    //Have to provide a separate version because not all Mac OS users use file extensions
    //and/or file extensions are sometimes hidden by the Finder.
    function myFileFilter(myFile){
      var myFileType = myFile.type;
      switch (myFileType){
      case "JPEG":
      case "EPSF":
      case "PICT":
      case "TIFF":
      case "8BPS":
      case "GIFf":
      case "PDF ":
      return true;
      break;
      default:
      for(var myCounter = 0; myCounter-1){
      return true;
      break;
      }
      }
      }
      return false;
    }
    function myDisplayDialog(myFiles, myFolder){
      var myLabelWidth = 112;
      var myStyleNames = myGetParagraphStyleNames(app);
      var myLayerNames = ["Layer 1", "Labels"];
      var myDialog = app.dialogs.add({name:"Image Catalog"});
      with(myDialog.dialogColumns.add()){
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Information:"});
      }
      with(borderPanels.add()){
      with(dialogColumns.add()){
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Source Folder:", minWidth:myLabelWidth});
      staticTexts.add({staticLabel:myFolder.path + "/" + myFolder.name});
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Number of Images:", minWidth:myLabelWidth});
      staticTexts.add({staticLabel:myFiles.length + ""});
      }
      }
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Options:"});
      }
      with(borderPanels.add()){
      with(dialogColumns.add()){
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Number of Rows:", minWidth:myLabelWidth});
      var myNumberOfRowsField = integerEditboxes.add({editValue:3});
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Number of Columns:", minWidth:myLabelWidth});
      var myNumberOfColumnsField = integerEditboxes.add({editValue:3});
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Horizontal Offset:", minWidth:myLabelWidth});
      var myHorizontalOffsetField = measurementEditboxes.add({editValue:12, editUnits:MeasurementUnits.points});
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Vertical Offset:", minWidth:myLabelWidth});
      var myVerticalOffsetField = measurementEditboxes.add({editValue:24, editUnits:MeasurementUnits.points});
      }
      with (dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Fitting:", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myFitProportionalCheckbox = checkboxControls.add({staticLabel:"Proportional", checkedState:true});
      var myFitCenterContentCheckbox = checkboxControls.add({staticLabel:"Center Content", checkedState:true});
      var myFitFrameToContentCheckbox = checkboxControls.add({staticLabel:"Frame to Content", checkedState:true});
      }
      }
      with(dialogRows.add()){
      var myRemoveEmptyFramesCheckbox = checkboxControls.add({staticLabel:"Remove Empty Frames:", checkedState:true});
      }
      }
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:""});
      }
      var myLabelsGroup = enablingGroups.add({staticLabel:"Labels", checkedState:true});
      with (myLabelsGroup){
      with(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"], selectedIndex:0});
      }
      }
      //Text frame height
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Height:", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelHeightField = measurementEditboxes.add({editValue:24, editUnits:MeasurementUnits.points});
      }
      }
      //Text frame offset
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Offset:", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelOffsetField = measurementEditboxes.add({editValue:0, editUnits:MeasurementUnits.points});
      }
      }
      //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});
      }
      }
      //Layer
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Layer:", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLayerDropdown = dropdowns.add({stringList:myLayerNames, selectedIndex:0});
      }
      }
      }
      }
            var myResult = myDialog.show();
            if(myResult == true){
      var myNumberOfRows = myNumberOfRowsField.editValue;
      var myNumberOfColumns = myNumberOfColumnsField.editValue;
      var myRemoveEmptyFrames = myRemoveEmptyFramesCheckbox.checkedState;
      var myFitProportional = myFitProportionalCheckbox.checkedState;
      var myFitCenterContent = myFitCenterContentCheckbox.checkedState;
      var myFitFrameToContent = myFitFrameToContentCheckbox.checkedState;
      var myHorizontalOffset = myHorizontalOffsetField.editValue;
      var myVerticalOffset = myVerticalOffsetField.editValue;
      var myMakeLabels = myLabelsGroup.checkedState;
      var myLabelType = myLabelTypeDropdown.selectedIndex;
      var myLabelHeight = myLabelHeightField.editValue;
      var myLabelOffset = myLabelOffsetField.editValue;
      var myLabelStyle = myStyleNames[myLabelStyleDropdown.selectedIndex];
      var myLayerName = myLayerNames[myLayerDropdown.selectedIndex];
      myDialog.destroy();
      myMakeImageCatalog(myFiles, myNumberOfRows, myNumberOfColumns, myRemoveEmptyFrames, myFitProportional, myFitCenterContent, myFitFrameToContent, myHorizontalOffset, myVerticalOffset, myMakeLabels, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle,  myLayerName);
            }
      else{
      myDialog.destroy();
      }
      }
    }
    function myGetParagraphStyleNames(myDocument){
      var myStyleNames = new Array;
      var myAddLabelStyle = true;
      for(var myCounter = 0; myCounter < myDocument.paragraphStyles.length; myCounter++){
      myStyleNames.push(myDocument.paragraphStyles.item(myCounter).name);
      if (myDocument.paragraphStyles.item(myCounter).name == "Labels"){
      myAddLabelStyle = false;
      }
      }
      if(myAddLabelStyle == true){
      myStyleNames.push("Labels");
      }
      return myStyleNames;
    }
    function myMakeImageCatalog(myFiles, myNumberOfRows, myNumberOfColumns, myRemoveEmptyFrames, myFitProportional, myFitCenterContent, myFitFrameToContent, myHorizontalOffset, myVerticalOffset, myMakeLabels, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle,  myLayerName){
      var myPage, myFile, myCounter, myX1, myY1, myX2, myY2, myRectangle, myLabelStyle, myLabelLayer;
      var myParagraphStyle, myError;
      var myFramesPerPage = myNumberOfRows * myNumberOfColumns;
      var myDocument = app.activeDocument;
      myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
      myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
      var myDocumentPreferences = myDocument.documentPreferences;
      var myNumberOfFrames = myFiles.length;
      var myNumberOfPages = Math.round(myNumberOfFrames / myFramesPerPage);
      if ((myNumberOfPages * myFramesPerPage) < myNumberOfFrames){
      myNumberOfPages++;
      }
      //If myMakeLabels is true, then add the label style and layer if they do not already exist.
      if(myMakeLabels == true){
      try{
      myLabelLayer = myDocument.layers.item(myLayerName);
      //if the layer does not exist, trying to get the layer name will cause an error.
      myLabelLayer.name;
      }
      catch (myError){
      myLabelLayer = myDocument.layers.add({name:myLayerName});
      }
      //If the paragraph style does not exist, create it.
      try{
      myParagraphStyle = myDocument.paragraphStyles.item(myLabelStyle);
      myParagraphStyle.name;
      }
      catch(myError){
      myDocument.paragraphStyles.add({name:myLabelStyle});
      }
      }
      myDocumentPreferences.pagesPerDocument = myNumberOfPages;
      myDocumentPreferences.facingPages = false;
      var myPage = myDocument.pages.item(0);
      var myMarginPreferences = myPage.marginPreferences;
      var myLeftMargin = myMarginPreferences.left;
      var myTopMargin = myMarginPreferences.top;
      var myRightMargin = myMarginPreferences.right;
      var myBottomMargin = myMarginPreferences.bottom;
      var myLiveWidth = (myDocumentPreferences.pageWidth - (myLeftMargin + myRightMargin)) + myHorizontalOffset
      var myLiveHeight = myDocumentPreferences.pageHeight - (myTopMargin + myBottomMargin)
      var myColumnWidth = myLiveWidth / myNumberOfColumns
      var myFrameWidth = myColumnWidth - myHorizontalOffset
      var myRowHeight = (myLiveHeight / myNumberOfRows)
      var myFrameHeight = myRowHeight - myVerticalOffset
      var myPages = myDocument.pages;
      // Construct the frames in reverse order. Don't laugh--this will
      // save us time later (when we place the graphics).
      for (myCounter = myDocument.pages.length-1; myCounter >= 0; myCounter--){
      myPage = myPages.item(myCounter);
      for (var myRowCounter = myNumberOfRows; myRowCounter >= 1; myRowCounter--){
      myY1 = myTopMargin + (myRowHeight * (myRowCounter-1));
      myY2 = myY1 + myFrameHeight;
      for (var myColumnCounter = myNumberOfColumns; myColumnCounter >= 1; myColumnCounter--){
      myX1 = myLeftMargin + (myColumnWidth * (myColumnCounter-1));
      myX2 = myX1 + myFrameWidth;
      myRectangle = myPage.rectangles.add(myDocument.layers.item(-1), undefined, undefined, {geometricBounds:[myY1, myX1, myY2, myX2], strokeWeight:0, strokeColor:myDocument.swatches.item("None")});
      }
      }
      }
      // Because we constructed the frames in reverse order, rectangle 1
      // is the first rectangle on page 1, so we can simply iterate through
      // the rectangles, placing a file in each one in turn. myFiles = myFolder.Files;
      for (myCounter = 0; myCounter < myNumberOfFrames; myCounter++){
      myFile = myFiles[myCounter];
      myRectangle = myDocument.rectangles.item(myCounter);
      myRectangle.place(File(myFile));
      myRectangle.label = myFile.fsName.toString();
      //Apply fitting options as specified.
      if(myFitProportional){
      myRectangle.fit(FitOptions.proportionally);
      }
      if(myFitCenterContent){
      myRectangle.fit(FitOptions.centerContent);
      }
      if(myFitFrameToContent){
      myRectangle.fit(FitOptions.frameToContent);
      }
      //Add the label, if necessary.
      if(myMakeLabels == true){
      myAddLabel(myRectangle, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, myLayerName);
      }
      }
      if (myRemoveEmptyFrames == 1){
      for (var myCounter = myDocument.rectangles.length-1; myCounter >= 0;myCounter--){
      if (myDocument.rectangles.item(myCounter).contentType == ContentType.unassigned){
      myDocument.rectangles.item(myCounter).remove();
      }
      else{
      //As soon as you encounter a rectangle with content, exit the loop.
      break;
      }
      }
      }
    }
    //Function that adds the label.
    function myAddLabel(myFrame, myLabelType, myLabelHeight, myLabelOffset, myLabelStyleName, myLayerName){
      var myDocument = app.documents.item(0);
      var myLabel;
      var myLabelStyle = myDocument.paragraphStyles.item(myLabelStyleName);
      var myLabelLayer = myDocument.layers.item(myLayerName);
      var myLink =myFrame.graphics.item(0).itemLink;
      //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;
      if(myLabel.replace(/^\s*$/gi, "")==""){
      throw myError;
      }
      }
      catch(myError){
      myLabel = "No description available.";
      }
      break;
      //XMP author
      case 3:
      try{
      myLabel = myLink.linkXmp.author
      if(myLabel.replace(/^\s*$/gi, "")==""){
      throw myError;
      }
      }
      catch(myError){
      myLabel = "No author available.";
      }
      break;
      }
      var myX1 = myFrame.geometricBounds[1];
      var myY1 = myFrame.geometricBounds[2] + myLabelOffset;
      var myX2 = myFrame.geometricBounds[3];
      var myY2 = myY1 + myLabelHeight;
      var myTextFrame = myFrame.parent.textFrames.add(myLabelLayer, undefined, undefined,{geometricBounds:[myY1, myX1, myY2, myX2], contents:myLabel});
      myTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;
      myTextFrame.parentStory.texts.item(0).appliedParagraphStyle = myLabelStyle;
    }
    
  • My Contact form does not.

    I have the contact form for models for my site and I need the form must be submitted to my email, but does not work. need help with the website is * Become A model | Photograph of Santana * need help ASAP.

    < div id = "mid_container" class = "container" style = "" opacity: 1; "> < section class ="sub_header_wrapper">"

    < div class = 'container sub_header' >

    < div class = "page_title_wrapper" >

    < h2 style = "do-size: 36px;" Color: #333333; ' > BECOME a MODEL < / h2 >

    < / div >

    < / div >

    < / section > < id article = 'content_section' class = 'full width' >

    < div id = "post-484" class = "post-484 pages status type - post hentry" >

    < div class = "entry-content" >

    < div id = "pl-484" >

    < div id = 'pg-484-0' class = 'Panel-grid' >

    < div id = 'pgc-484-0-0' class = "Panel-mesh" >

    < div id = 'Panel-484-0-0-0' class = 'widget so-Panel widget_text Panel-first-child Panel-last-child' >

    " < div class ="textwidget"> < form id ="form-fm-1"class ="form-fm"action =" http://khristiansantana.com/become-a-model/ "autocomplete = 'on' enctype =" multipart/form-data"method ="post"name =" form-fm-1 "> "

    < fieldset > < legend > BECOME a MODEL < / legend >

    < ul >

    < id li = "fm-point-text-5583e9b180b96" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > name < em > * < /em > < / label > < table >"

    "< td > < input id ="text-5583e9b180b96"style =" "width: 300px;" maxlength = "10" name = "text-5583e9b180b96' type = 'text' placeholder =" "/ > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583f6d2bd136" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > age < em > * < /em > < / label > < table >"

    "< td > < entry id = 'text-5583f6d2bd136" style = "" width: 300px; ' name = 'text-5583f6d2bd136' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-custom_list-5583ec9e1c0d1" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > sex < em > * < /em > < / label > < table >"

    < td > < select id = "custom_list-5583ec9e1c0d1" style = "" width: px; "name ="custom_list-5583ec9e1c0d1">"

    < option value = "0" >... < / option >

    < option value = "1" > female < / option >

    < option value = "2" > male < / option >

    < option selected = "selected" value = "3" > < / option >

    < / select > < input id = "custom_list-5583ec9e1c0d1-list-style" type = "hidden" = 'select' value / > < input id = "custom_list-5583ec9e1c0d1-count" type = "hidden" value = "3" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583ed50c4267" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > country < em > * < /em > < / label > < table >"

    "< td > < entry id = 'text-5583ed50c4267" style = "" width: 300px; ' name = 'text-5583ed50c4267' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583ed6f790e3" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > height < em > * < /em > < / label > < table >"

    < td > < input id = "text-5583ed6f790e3" style = "" width: 300px; ' name = 'text-5583ed6f790e3' type = 'text' placeholder = "6"(182 Cm) "/ > < table >"

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583edb5041c1" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > physics < / label > < table >"

    "< td > < entry id = 'text-5583edb5041c1" style = "" width: 300px; ' name = 'text-5583edb5041c1' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583ee6598680" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > bust < em > * < /em > < / label > < table >"

    "< td > < entry id = 'text-5583ee6598680" style = "" width: 300px; ' name = 'text-5583ee6598680' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583ee805c8f5" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > size < / label > < table >"

    "< td > < entry id = 'text-5583ee805c8f5" style = "" width: 300px; ' name = 'text-5583ee805c8f5' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583efeed03d6" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > hips < / label > < table >"

    "< td > < entry id = 'text-5583efeed03d6" style = "" width: 300px; ' name = 'text-5583efeed03d6' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583f00af1b51" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > hair color < / label > < table >"

    "< td > < entry id = 'text-5583f00af1b51" style = "" width: 300px; ' name = 'text-5583f00af1b51' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583fc3476a9d" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < eye color label > < / label > < table >"

    "< td > < entry id = 'text-5583fc3476a9d" style = "" width: 300px; ' name = 'text-5583fc3476a9d' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583fc475bf4f" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > size < / label > < table >"

    "< td > < entry id = 'text-5583fc475bf4f" style = "" width: 300px; ' name = 'text-5583fc475bf4f' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583fc486b8ed" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > dress size < / label > < table >"

    "< td > < entry id = 'text-5583fc486b8ed" style = "" width: 300px; ' name = 'text-5583fc486b8ed' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-55840084538bf" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > languages < em > * < /em > < / label > < table >"

    < td > < input id = "text-55840084538bf" style = "" width: 300px; ' name = 'text-55840084538bf' type = 'text' placeholder = 'English' / > < table > "

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-textarea-558400a58872a" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > experience < / label > < table >"

    < td > < textarea id = "textarea-558400a58872a" style = "width: 500px;" height: 300px; "name ="textarea-558400a58872a"placeholder =" "> < / textarea > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-textarea-558400ccc3262" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < labels information > Additional < / label > < table >"

    < td > < textarea id = "textarea-558400ccc3262" style = "width: 500px;" height: 300px; "name ="textarea-558400ccc3262"placeholder =" "> < / textarea > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-file-558400f22ba17" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label Photos > download < em > * < /em > < / label > < table >"

    < td > < input name = "MAX_FILE_SIZE" type = "hidden" value = "10240000" / > < entry id = "file 558400f22ba17" name = "file 558400f22ba17", type = "file" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-file-558401058af95" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label Photos > download < em > * < /em > < / label > < table >"

    < td > < input name = "MAX_FILE_SIZE" type = "hidden" value = "10240000" / > < entry id = "file 558401058af95" name = "file 558401058af95", type = "file" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-file-5584011b3ebed" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label Photos > download < em > * < /em > < / label > < table >"

    < td > < input name = "MAX_FILE_SIZE" type = "hidden" value = "10240000" / > < entry id = "file 5584011b3ebed" name = "file 5584011b3ebed", type = "file" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < li = id ' fm-point-file - a 55840129603, 1 ">

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label Photos > download < / label > < table >"

    < td > < input name = "MAX_FILE_SIZE" type = "hidden" value = "10240000" / > < entry id = 'file - 55840129603 a 1' name = 'file - 55840129603 a 1' type = 'file' / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-file-5584012a08d1f" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label Photos > download < / label > < table >"

    < td > < input name = "MAX_FILE_SIZE" type = "hidden" value = "10240000" / > < entry id = "file 5584012a08d1f" name = "file 5584012a08d1f", type = "file" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-file-5584012adfc0c" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label Photos > download < / label > < table >"

    < td > < input name = "MAX_FILE_SIZE" type = "hidden" value = "10240000" / > < entry id = "file 5584012adfc0c" name = "file 5584012adfc0c", type = "file" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < /ul >

    < div > < input name = "fm_form_submit" type = 'submit' class = "submit" id = "fm_form_submit" value = "Submit" / > < / div > < / fieldset >

    < input id = "fm_nonce" name = "fm_nonce" type = "hidden" value = "2d222408d0" / >

    < input id = "fm_id" name = "fm_id" type = "hidden" value = "1" / >

    < input id = "fm_uniq_id" name = "fm_uniq_id" type = "hidden" value = "fm-55d0b168b07a9" / >

    < input id = "fm_parent_post_id" name = "fm_parent_post_id" type = "hidden" value = "484" / >

    < / form > < / div >

    < / div >

    < / div >

    < / div >

    < / div >

    < / div >

    < / div >

    <! - #post-#->

    < / section > < / div >

    First try this tutorial into 3 parts.

    ALT-Web Design & Publishing: sensitive Contact form with 3.2 Bootstrap and PHP (part 1)

    Nancy O.

  • Need help, how to create more than one rectangle from a button in one step of canvas

    Dear Guys,

    I have a problem to create more than one rectangle from a button canvas. here my role to create:

    1. I create entry-level size with textfield

    2. I click on the button called "submit query."

    3. my web creates a rectangle with specific dimensions.

    My problem come when I click on the button again, my old rectangle has been remove from my new rectangle was created.

    My question is: How can I create more than one without delete/remove the former I created?

    Here is my Code:

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <link rel="stylesheet" type="text/css" media="all" href="css/style.css">

    <script src="kinetic-v4.7.2.min.js"></script>

    </head>

     

    <body>

    <label>Length</label><input name="panjang" id="panjang" type="text" size="5" maxlength="5"><br>

     

    <label>Width</label><input name="lebar" id="lebar" type="text" size="5" maxlength="5"><br>

     

    <label>Height</label><input name="tinggi" id="tinggi" type="text" size="5" maxlength="5"><br>

     

    <label>Packing Name</label><input name="nam_pac" id="nam_pac" type="text" size="5" maxlength="5"><br>

     

    <input name="submit" type="submit">

     

    <script defer>

                  var stage = new Kinetic.Stage({

                    container: 'container',

                    width: 943.5,

                    height: 254.10

                  });

                  var layer = new Kinetic.Layer();

                  var rectX = stage.getWidth() / 2 - 50;

                  var rectY = stage.getHeight() / 2 - 50;

                 

                  var group = new Kinetic.Group({

                    draggable: true

                  });

                 

                

                  var box = new Kinetic.Rect({

                    x: rectX,

                    y: rectY,

                    width: <?php echo ($_POST['panjang']/10)/1.3; ?>,

                    height: <?php echo $_POST['lebar']/10; ?>,

                    //fill: '#00D2FF',

                    stroke: 'blue',

                    strokeWidth: 2

                    //draggable: true

                  });

     

                  var simpleText = new Kinetic.Text({

                    x: Math.round(box.getWidth() / 2),

                    y: Math.round(box.getHeight() / 2),

                    text: '<?php echo $_POST['tinggi'].'/'.$_POST['nam_pac']; ?>',

                    fontSize: 30,

                    fontFamily: 'Calibri',

                    fill: 'blue',

                  });

                 

                 

                  // add cursor styling

                  box.on('mouseover', function() {

                    document.body.style.cursor = 'pointer';

                  });

                  box.on('mouseout', function() {

                    document.body.style.cursor = 'default';

                  });

                 

                  group.add(box);

                  group.add(simpleText);

                  layer.add(group);

                  stage.add(layer);

                </script>

    </body>

     

    It's my printscreen can help you help me:

    my_web.jpg

    Thanks before help me

    Kind regards

    Prabowo.

    My script only deletes the last comic layer. If you copy all and paste into a new document, you should be able to see that it works. You can try this?

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

  • StyleableTextfield &lt; b &gt; misconduct in rendering engine

    Hi all

    I have problems with a StyleableTextField and htmlText in my renderer.  The htmlText property, I'll put a < b >... < /b >, however, when the list is displayed first, I don't see the "BOLD" effect in place.  However, if I then scroll back to the top, I can see the effect of < b >.  The text in bold is applied to a Get of my model accessor method, so there is no way for the StyleableTextField to never get unprocessedd and none of the STFs are never empty.  My converter garbage looks like this, if it can help

    Any help is greatly appreciated, and I have no idea why the formatting is like that.



    override public function set data(value:Object):void


    {



    Super.Data = value;



    If (value)



    {




    funkShowMatch:FunkShowMatch var = value as FunkShowMatch.




    _showName = funkShowMatch.showName;




    _cityState = funkShowMatch.cityState;




    _zipCode = funkShowMatch.zipCode;




    _showDates = funkShowMatch.showDates;





    }



    on the other



    {




    _showName = "";




    _cityState = "";




    _zipCode = "";




    _showDates = "";



    }








    _showDatesLabel.htmlText = _showDates! = null? _showDates: "";



    _showNameLabel.htmlText = _showName! = null? _showName: "";


    }










    override protected function createChildren() (): void


    {




    If (! _showDatesLabel)



    {




    createShowDatesLabelDisplay();




    _showDatesLabel.htmlText = _showDates! = null? _showDates: "";



    }



    If (! _showNameLabel)



    {




    createShowNameLabelDisplay();




    _showNameLabel.htmlText = _showName! = null? _showName: "";






    }




    }










    protected function createShowDatesLabelDisplay (): void


    {



    _showDatesLabel = StyleableTextField (createInFontContext (StyleableTextField));



    _showDatesLabel.styleName = this;



    _showDatesLabel.editable = false;



    _showDatesLabel.selectable = false;



    _showDatesLabel.multiline = false;



    _showDatesLabel.WordWrap = false;








    addChild (_showDatesLabel);


    }


    protected function createShowNameLabelDisplay (): void


    {



    _showNameLabel = StyleableTextField (createInFontContext (StyleableTextField));



    _showNameLabel.styleName = this;



    _showNameLabel.editable = false;



    _showNameLabel.selectable = false;



    _showNameLabel.multiline = false;



    _showNameLabel.WordWrap = false;



    _showNameLabel.SetStyle ("fontSize", 15);



    addChild (_showNameLabel);


    }






    override protected function measure (): void


    {



    var horizontalPadding:Number;



    var verticalPadding:Number;








    If (_showDatesLabel)



    {




    If (_showDatesLabel.isTruncated)





    _showDatesLabel.htmlText = _showDates;










    horizontalPadding = value ("paddingLeft") + value ("paddingRight");




    verticalPadding = value ("paddingTop") + value ("paddingBottom");










    _showDatesLabel.commitStyles ();




    measuredWidth = getElementPreferredWidth (_showDatesLabel) + horizontalPadding;










    measuredHeight = getElementPreferredHeight (_showDatesLabel) + verticalPadding;










    trace ("Show Dates width:"+ measuredWidth ");




    trace ("Show Dates label height:"+ measuredHeight ");




    trace ("display text Label date:"+ _showDatesLabel.text ");



    }



    If (_showNameLabel)



    {




    If (_showNameLabel.isTruncated)





    _showNameLabel.text = _showName;










    horizontalPadding = value ("paddingLeft") + value ("paddingRight");




    verticalPadding = value ("paddingTop") + value ("paddingBottom");










    _showNameLabel.commitStyles ();




    measuredWidth = getElementPreferredWidth (_showNameLabel) + horizontalPadding;




    measuredHeight = getElementPreferredHeight (_showNameLabel) + verticalPadding;










    trace ("display name label width:"+ measuredWidth ");




    trace ("display name label height:"+ measuredHeight ");




    trace ("display text label name:"+ _showNameLabel.text ");



    }



    measuredMinWidth = 0;




    }

    The solution, it turns out that had to change my background function and reset the htmlText here.

    override protected function drawBackground (unscaledWidth:Number,
    unscaledHeight:Number): void
    {
    super.drawBackground (unscaledWidth, unscaledHeight);
    If (_showNameLabel)
    {
    _showNameLabel.htmlText = _showName;
    }
    }
  • Tab doesn't work does not correctly for Datagrid ComboBox ItemEditor

    When you run the app type a1 in the discovery of an App combo box and then type the tab key.

    Click the 3rd row in the column as Bs and show a combobox.

    Type a3 and her and then press ENTER.  Note that the A3 is saved under the selected and recorded on the dataprovider element

    Press the return key back key and press ENTER.  Note that the null value is saved and that nothing is selected.

    Type a3 again and press ENTER.

    Hit of the new backspce, but this time typing the tab key.  Note that the previous value is returned.  Oops.

    {Code}

    <? XML version = "1.0" encoding = "utf-8"? >

    "" < s:Application xmlns:fx = "http://ns.adobe.com/mxml/2009"

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx".

    xmlns:vo = "valueObjects.*".

    Width = "100%" height = "100%" >

    < fx:Script >

    <! [CDATA]

    Import mx.collections.ArrayCollection;

    Import mx.events.FlexEvent;

    protected function aCBLabel(item:Object):String

    {

    If (item! = null)

    Return item.name;

    on the other

    Return ' ';

    }

    protected function bDG_creationCompleteHandler(event:FlexEvent):void

    {

    bDG.selectedIndex = 0;

    }

    protected function bAFormat(item:Object,_column:DataGridColumn):String

    {

    If (item [column.dataField]! = null)

    return item [column.dataField] .name;

    on the other

    Return ' ';

    }

    []] >

    < / fx:Script >

    < fx:Declarations >

    < vo: ADto id = "aDto" / >

    < vo: BDto id = "bDto" / >

    < s:ArrayCollection id = "aList" >

    < vo: ADto >

    < vo: id > 1 < / vo: id >

    < name: vo > a1 < / vo: name >

    < vo: bs >

    < vo: BDto >

    < vo: id > 1 < / vo: id >

    < vo: aDto >

    < vo: ADto >

    < vo: id > 1 < / vo: id >

    < name: vo > a1 < / vo: name >

    < / vo: ADto >

    < / vo: aDto >

    < / vo: BDto >

    < vo: BDto >

    < vo: id > 2 < / vo: id >

    < vo: aDto >

    < vo: ADto >

    < vo: id > 2 < / vo: id >

    A2 < vo: name > < / vo: name >

    < / vo: ADto >

    < / vo: aDto >

    < / vo: BDto >

    < vo: BDto >

    < vo: id > 0 < / vo: id >

    < / vo: BDto >

    < / vo: bs >

    < / vo: ADto >

    < vo: ADto >

    < vo: id > 2 < / vo: id >

    A2 < vo: name > < / vo: name >

    < vo: bs >

    < vo: BDto >

    < vo: id > 3 < / vo: id >

    < vo: aDto >

    < vo: ADto >

    < vo: id > 3 < / vo: id >

    < name: vo > a3 < / vo: name >

    < / vo: ADto >

    < / vo: aDto >

    < / vo: BDto >

    < vo: BDto >

    < vo: id > 0 < / vo: id >

    < / vo: BDto >

    < / vo: bs >

    < / vo: ADto >

    < / s:ArrayCollection >

    < s:ArrayCollection id = "Ballista" >

    < vo: ADto >

    < vo: id > 1 < / vo: id >

    < name: vo > a1 < / vo: name >

    < / vo: ADto >

    < vo: ADto >

    < vo: id > 2 < / vo: id >

    A2 < vo: name > < / vo: name >

    < / vo: ADto >

    < vo: ADto >

    < vo: id > 3 < / vo: id >

    < name: vo > a3 < / vo: name >

    < / vo: ADto >

    < / s:ArrayCollection >

    < / fx:Declarations >

    < source = fx:Binding "aCB.selectedItem as ADto" destination = "aDto" / > "

    < s:Form id = "AForm" width = "700" height = "170" >

    < s:layout >

    < s:BasicLayout / >

    < / s:layout >

    < s:HGroup x = "0" y = "50" width = "670" height = "60" >

    < s:Label height = "25" fontWeight = "bold" = "find a" verticalAlign = "middle" / >

    < s:ComboBox id = "aCB".

    prompt = "enter or select a name.

    labelFunction = "aCBLabel."

    x = "110" y = "10" width = "375" >

    < mx:ArrayCollection id = list "asList" = "{aList}" / >

    < / s:ComboBox >

    < / s:HGroup >

    < / s:Form >

    < mx:DataGrid id = "bDG" x = "10" y = "140" width = "450" height = "200".

    Editable = "true".

    dataProvider = "{aDto.bs}" "

    creationComplete = "bDG_creationCompleteHandler (event)" >

    < mx:columns >

    < mx:DataGridColumn id = "bidDC".

    headerText = "id".

    Editable = "true".

    dataField = "id".

    editorDataField = 'value '.

    Width = "50" / >

    < mx:DataGridColumn id = "bNameDC".

    headerText = "Like Bs"

    Editable = "true".

    dataField = "aDto.

    labelFunction = "bAFormat."

    editorDataField = 'value '.

    Width = "150" >

    < mx:itemEditor >

    < fx:Component >

    < s:MXDataGridItemRenderer implements = "mx.managers.IFocusManagerComponent" >

    < fx:Script >

    <! [CDATA]

    Import mx.collections.ArrayCollection;

    Import mx.controls.dataGridClasses.DataGridListData;

    Import mx.controls.listClasses.BaseListData;

    Import mx.events.FlexEvent;

    Import spark.events.DropDownEvent;

    Import spark.events.IndexChangeEvent;

    [Bindable]

    public var down: ArrayCollection;

    protected function cb_InitializeHandler(event:FlexEvent):void

    {

    Low = outerDocument.bAList;

    aDto = outerDocument.bDG.selectedItem.aDto;

    If (aDto! = null)

    {

    var t:ADto;

    for (var i: int = 0; i < bAs.length; i ++)

    {

    t = low [i];

    If (aDto.id is t.id)

    {

    cb.selectedIndex = i;

    break;

    }

    }

    }

    }

    override public function setFocus (): void

    {

    cb.setFocus ();

    }

    public function get value (): ADto

    {

    If (cb.isDropDownOpen)

    cb.closeDropDown (true);

    cb.validateNow ();

    aDto = cb.selectedItem as ADto;

    return aDto

    }

    protected function cb_closeHandler(event:DropDownEvent):void

    {

    aDto = cb.selectedItem as ADto;

    }

    []] >

    < / fx:Script >

    < fx:Declarations >

    < vo: ADto id = "aDto" / >

    <! - Place non-visual elements (e.g., services, items of value) here - >

    < / fx:Declarations >

    < s:ComboBox id = "cb".

    Width = '100% '.

    prompt = "{aDto.Name}" "

    dataProvider = "low" {} ".

    labelField = 'name '.

    Initialize = "cb_InitializeHandler (Event)" "

    Close = "cb_closeHandler (Event)" >

    < / s:ComboBox >

    < / s:MXDataGridItemRenderer >

    < / fx:Component >

    < / mx:itemEditor >

    < / mx:DataGridColumn >

    < / mx:columns >

    < / mx:DataGrid >

    < / s:Application >

    {Code}

    {Code}

    package valueObjects

    {

    import com.adobe.fiber.services.IFiberManagingService;

    import com.adobe.fiber.valueobjects.IValueObject;

    Import mx.collections.ArrayCollection;

    Import valueObjects.BDto;

    import com.adobe.fiber.core.model_internal;

    Using namespace model_internal;

    public class com.adobe.fiber.valueobjects.IValueObject implements ADto

    {

    private var _internal_id: int;

    private var _internal_name: String;

    private var _internal_bs: ArrayCollection collection;

    model_internal var _internal_bs_leaf:valueObjects.BDto;

    public void ADto()

    {

    }

    public function get id(): int

    {

    Return _internal_id;

    }

    public function get name(): String

    {

    Return _internal_name;

    }

    public function get bs(): ArrayCollection collection

    {

    Return _internal_bs;

    }

    public function set id(value:int): void

    {

    var oldValue:int = _internal_id;

    If (oldValue! == value)

    {

    _internal_id = value;

    }

    }

    public function set name(value:String): void

    {

    var oldValue:String = _internal_name;

    If (oldValue! == value)

    {

    _internal_name = value;

    }

    }

    public function set bs(value:*): void

    {

    var oldValue:ArrayCollection = _internal_bs;

    If (oldValue! == value)

    {

    If (value is ArrayCollection collection)

    {

    _internal_bs = value;

    }

    else if (value is table)

    {

    _internal_bs = new ArrayCollection (value);

    }

    else if (value == null)

    {

    _internal_bs = null;

    }

    on the other

    {

    throw new Error ("value of bs should be a collection");

    }

    }

    }

    private var _managingService:com.adobe.fiber.services.IFiberManagingService;

    public function set managingService(managingService:com.adobe.fiber.services.IFiberManagi_ngService):void

    {

    _managingService = managingService;

    }

    }

    }

    {Code}

    {Code}

    package valueObjects

    {

    import com.adobe.fiber.core.model_internal;

    import com.adobe.fiber.services.IFiberManagingService;

    import com.adobe.fiber.valueobjects.IValueObject;

    Import valueObjects.ADto;

    Import mx.collections.ArrayCollection;

    Using namespace model_internal;

    public class com.adobe.fiber.valueobjects.IValueObject implements BDto

    {

    private var _internal_id: int;

    private var _internal_aDto: ADto;

    private static var emptyArray:Array = new Array();

    public void BDto()

    {

    _internal_id = 0;

    }

    public function get id(): int

    {

    Return _internal_id;

    }

    public function get aDto(): ADto

    {

    Return _internal_aDto;

    }

    public function set id(value:int): void

    {

    var oldValue:int = _internal_id;

    If (oldValue! == value)

    {

    _internal_id = value;

    }

    }

    public function set aDto(value:ADto): void

    {

    var oldValue:ADto = _internal_aDto;

    If (oldValue! == value)

    {

    _internal_aDto = value;

    }

    }

    private var _managingService:com.adobe.fiber.services.IFiberManagingService;

    public function set managingService(managingService:com.adobe.fiber.services.IFiberManagi_ngService):void

    {

    _managingService = managingService;

    }

    }

    }

    {Code}

    the tab wasn't working because because he wasn't changing the selection and just leave the drop-down list box.  For example, in the value of the Add function if (cb.textInput.text == "") cb.selectedIndex = - 1;  This will change the selection as you wish and solve the problem.

  • Help with a layout and which section throw 2044 error.

    Hi, guys.

    I hope someone has an answer for me. First of all, I can not know what section of my code is to launch the #2044 Error: Unhandled IOErrorEvent:. Text = Error #2035: URL not found. I tried to trace the swf, image, and xml, but nothing is returned. Secondly, I can't get my load in swf files, nor can I get my image files to load in (from the xml).

    It's already late and I'm pointing out the hard core it's maybe half of my problem. Can anyone help? Please?

    import flash.display.Stage;
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.*;
    import flash.events.MouseEvent;
    import flash.text.*;
    import flash.xml.*;
    import fl.transitions.*;
    import fl.transitions.easing.*;
    
    stage.scaleMode = StageScaleMode.NO_SCALE; // Set stage scale mode
    stage.align = StageAlign.TOP_LEFT; // Set stage alignment
    stage.addEventListener(Event.RESIZE, whenStageResize); // Add a stage resize event listener
    
    // Background variables
    var interactiveMenuBgSpr:Sprite = new Sprite();
    var bgSwitchMenuSpr:Sprite = new Sprite();
    var footerBgSpr:Sprite = new Sprite();
    
    // Variables for mp3 controls
    var volIcoMC:VolumeIconMC = new VolumeIconMC(); // Volume Icon
    var volUpMC:VolumeUpMC = new VolumeUpMC(); // Volume Up
    var volDownMC:VolumeDownMC = new VolumeDownMC(); // Volume Down
    var artistTxtBGMC:TxtBGMC = new TxtBGMC(); // Artist Textbox Background
    var songTxtBGMC:TxtBGMC = new TxtBGMC(); // Song Textbox Background
    var prevBtnMC:PreviousBtnMC = new PreviousBtnMC(); // Previous Button
    var rewindBtnMC:RewindBtnMC = new RewindBtnMC(); // Rewind Button
    var stopBtnMC:StopBtnMC = new StopBtnMC(); // Stop Button
    var playBtnMC:PlayBtnMC = new PlayBtnMC(); // Play Button
    var fforwardBtnMC:FastforwardBtnMC = new FastforwardBtnMC(); // Fastforward Button
    var nextBtnMC:NextBtnMC = new NextBtnMC(); // Next Button
    
    // Array for menu list
    var menuArray:Array = new Array("Home", 
                              "Mission", 
                              "Transplant Statistics", 
                              "Transplant Details", 
                              "Understanding Donations", 
                              "Your Part", 
                              "Specialists", 
                              "Contact", 
                              "Terms", 
                              "Sitemap");
        
    // Hold the x position for next menu item
    var xPos:Number = 0;
    // Menu container
    var menuHolder:Sprite = new Sprite();
    
    // Menu text field format
    var titleFace:Font = new ParkAvenue();
    var siteLogoTxt:TextFormat = new TextFormat();
        siteLogoTxt.font = titleFace.fontName;
        siteLogoTxt.color = 0x260f26;
        siteLogoTxt.size = 36;
        siteLogoTxt.align = "left";
    
    // Text Formats
    var txtFace:Font = new Myriad();
    var menuTxt:TextFormat = new TextFormat();
        menuTxt.font = txtFace.fontName;
        menuTxt.color = 0xe1c58d;
        menuTxt.size = 14;
        menuTxt.align = "left";
        
    var bodyTxt:TextFormat = new TextFormat();
        bodyTxt.font = txtFace.fontName;
        bodyTxt.color = 0x333333;
        bodyTxt.size = 14;
        bodyTxt.align = "left";
        
    var headingFormat:TextFormat = new TextFormat();
        headingFormat.font = txtFace.fontName;
        headingFormat.color = 0x701b2e;
        headingFormat.size = 14;
        headingFormat.align = "left";
        headingFormat.bold = true;
        
    // Text Fields
    var headingTxt = new TextField();
        headingTxt.condenseWhite = true;
        headingTxt.autoSize = TextFieldAutoSize.LEFT;
        headingTxt.selectable = false;
        headingTxt.defaultTextFormat = headingFormat;
        headingTxt.wordWrap = true;
        headingTxt.width = 490;
        headingTxt.height = 18;
        headingTxt.x = 5;
        headingTxt.y = 0;
    
    var contentTxt = new TextField();
        contentTxt.condenseWhite = true;
        contentTxt.autoSize = TextFieldAutoSize.LEFT;
        contentTxt.selectable = false;
        contentTxt.defaultTextFormat = bodyTxt;
        contentTxt.wordWrap = true;
        contentTxt.multiline = true;
        contentTxt.width = 490;
        contentTxt.height = 618;
        contentTxt.x = 5;
        contentTxt.y = 25;
    
    var contentRTopTxt = new TextField();
        contentRTopTxt.condenseWhite = true;
        contentRTopTxt.autoSize = TextFieldAutoSize.LEFT;
        contentRTopTxt.selectable = false;
        contentRTopTxt.defaultTextFormat = bodyTxt;
        contentRTopTxt.wordWrap = true;
        contentRTopTxt.multiline = true;
        contentRTopTxt.width = 465;
        contentRTopTxt.height = 295;
        contentRTopTxt.x = 530;
        contentRTopTxt.y = 0;
    
    var contentRBottomTxt = new TextField();
        contentRBottomTxt.condenseWhite = true;
        contentRBottomTxt.autoSize = TextFieldAutoSize.LEFT;
        contentRBottomTxt.selectable = false;
        contentRBottomTxt.defaultTextFormat = bodyTxt;
        contentRBottomTxt.wordWrap = true;
        contentRBottomTxt.multiline = true;
        contentRBottomTxt.width = 465;
        contentRBottomTxt.height = 295;
        contentRBottomTxt.x = 530;
        contentRBottomTxt.y = 340;
    
    // Variable for content container
    var mcContent:Sprite = new Sprite();
        mcContent.x = 0;
        mcContent.y = 30;
        addChild(mcContent);
    
    // Variables for pages
    var pageContent:Sprite = new Sprite();
    
    // Variable for content container
    var pgContentBG:Sprite; // MCContentBG = new MCContentBG();
    
    // Global tween variable
    var pageTween:Tween;
    
    // Intro page variables for title
    var titleContainerLarge:Sprite = new Sprite();
    var titleLargeLoader:Loader = new Loader();
    var titleLargeUrl:URLRequest = new URLRequest("imgs/png/titleLarge.png");
    var titleLargeImg:Bitmap;
    var titleLarge:Bitmap;
    
    var standardShadow:DropShadowFilter = new DropShadowFilter();
        standardShadow.distance = 2;
        standardShadow.angle = 0;
        standardShadow.color = 0x000000;
        standardShadow.blurX = 3;
        standardShadow.blurY = 3;
        standardShadow.quality = 10;
        standardShadow.alpha = .5;
    
    // Iterative title (bottom left corner)
    
    //var titleSmallLoader:Loader = new Loader();
    //var titleSmallUrl:URLRequest = new URLRequest("imgs/png/titleSmall.png");
    //var titleSmallImg:Bitmap;
    
    
    titleLargeLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadTitle);
    titleLargeLoader.load(titleLargeUrl);
    
    //titleSmallLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadTitle);
    //titleSmallLoader.load(titleSmallUrl);
    
    //Specify the path to the XML file.
    //You can use my path or your own.
    //var xmlFilePath:String = "scripts/xml/content.xml";
     
    //We save the loaded XML data into a variable
    var pageXML:XML;
     
    //Load the XML file.
    //We call the pageXMLLoaded() function when the loading is complete.
    var pageXMLLoader = new URLLoader();
    pageXMLLoader.load(new URLRequest("scripts/xml/content.xml"));
    pageXMLLoader.addEventListener(Event.COMPLETE, pageXMLLoaded);
    
    /* STYLESHEET NOT FUNCTIONING PROPERLY
    var CSSreq:URLRequest = new URLRequest("scripts/css/xmlStylesheet.css");
    var CSSloader:URLLoader = new URLLoader();
    var styleSheet:StyleSheet;
    var CSSload;
    */
    
                    
    // Intro page variables for title
    var swfContainer:Sprite = new Sprite();
    var imgContainer:Sprite = new Sprite();
    var imgLoader:Loader = new Loader();
    var swfLoader:Loader = new Loader();
    
    // Call init
    init();
    
    // Initialize functions
    function init():void {
        //whenStageResize(null);
        drawMenus();
        positionAndAddMediaControls();
        loadTitleTxt();
    }
     
    //This function is called when the XML file is loaded
    function pageXMLLoaded(e:Event):void {
        
        //Create a new XML object from the loaded XML data
        //pageXML = new XML(pageXMLLoader.data);
        pageXML = new XML(e.target.data);
        imgLoader.load(new URLRequest(pageXML.pages.page.image));
        swfLoader.load(new URLRequest(pageXML.pages.page.swfURL));
        trace(pageXML.pages.page.image);
        
    }
    
    
    function loadTitle(e:Event):void{
        
        
        var titleLargeImg:Bitmap = titleLargeLoader.content as Bitmap;
            titleLarge = new Bitmap(titleLargeImg.bitmapData);
            titleLarge.smoothing = true;
        
        titleContainerLarge.x = 183;
        titleContainerLarge.y = 214;
            
        titleContainerLarge.addChild(titleLarge);
        mcContent.addChildAt(titleContainerLarge, 0);
        
        var pageMoveTween:Tween = new Tween(mcContent, "y", Regular.easeInOut, stage.stageHeight + 20, 0, .5, true);
    }
    
    
    function drawMenus():void {
        
        // Clear prevents an instance of the interactiveMenuBg from remaining in its original position
        // Not so much a problem with the interactiveMenuBg, but it is with the bgSwitchMenu
        addChild(interactiveMenuBgSpr); // Add interactive menu background (full screen & mp3 controls)
            interactiveMenuBgSpr.graphics.clear();
            interactiveMenuBgSpr.graphics.beginBitmapFill(new InteractiveMenuBG(0, 0));
            interactiveMenuBgSpr.graphics.drawRect(0, 0, stage.stageWidth, 27);
            interactiveMenuBgSpr.graphics.endFill();
        
        // Background-Switch Menu Background
        addChild(bgSwitchMenuSpr); // Add background-switch menu background
            bgSwitchMenuSpr.graphics.clear();
            bgSwitchMenuSpr.graphics.beginBitmapFill(new BackgroundChangeMenuBG(0, 0));
            bgSwitchMenuSpr.graphics.drawRect(0, stage.stageHeight - 99, stage.stageWidth, 25);
            bgSwitchMenuSpr.graphics.endFill();
        
        // Footer background
        addChild(footerBgSpr); // Add footer background
            footerBgSpr.graphics.clear();
            footerBgSpr.graphics.beginBitmapFill(new FooterBG(0, 0));
            footerBgSpr.graphics.drawRect(0, stage.stageHeight - 74, stage.stageWidth, 74);
            footerBgSpr.graphics.endFill();
    
        // Add the interactiveMenuBg container to the display list
    
        // Loop the array and create each array item
        for (var i in menuArray) {
    
            // Create the menu navBtn.
            var navBtn:Sprite = new Sprite();
                navBtn.name = "navBtn" + i;
                // Disable mouse events of children within the navBtn.
                navBtn.mouseChildren = false;
                // Make the sprite behave as a button.
                navBtn.buttonMode = true;
    
            // Create the label for the down navBtn state.
            var label:TextField = new TextField();
                label.autoSize = TextFieldAutoSize.LEFT;
                label.selectable = false;
                label.defaultTextFormat = menuTxt;
                label.text = menuArray[i];
                // Add the label to the navBtn.
            navBtn.addChild(label);
                // Position the text in the center of the navBtn.
                label.x = (navBtn.width/2) - (label.width/2);
                label.y = (navBtn.height/2) - (label.height/2);
    
            // Add mouse events to the navBtn.
            navBtn.addEventListener(MouseEvent.CLICK, choosePageTransition);
    
            // Add the navBtn to the holder.
            menuHolder.addChild(navBtn);
                // Position the navBtn.
                navBtn.x = xPos;
                // Increase the x position for the next navBtn.
                xPos += navBtn.width + 12;
        }
        
        // Add menuHolder to display list
        addChild(menuHolder);
            // Postion The Menu.
            menuHolder.x = 140;
            menuHolder.y = ((stage.stageHeight - (menuHolder.height * 2)) - 10);
    }
        
    // Position on and add to stage all menu control buttons (interactivity controls)
    function positionAndAddMediaControls():void {
            
        addChild(volIcoMC); // Volume Icon
            volIcoMC.x = interactiveMenuBgSpr.x + 5; // Volume Icon
            volIcoMC.y = interactiveMenuBgSpr.y + 6; // Volume Icon
        
        addChild(volUpMC); // Volume Up
            volUpMC.x = volIcoMC.x + volIcoMC.width + 6; // Volume Up Icon
            volUpMC.y = volIcoMC.y; // Volume Up Icon
        
        addChild(volDownMC); // Volume Down
            volDownMC.x = volUpMC.x; // Volume Down Icon
            volDownMC.y = volUpMC.y + 10; // Volume Down Icon
        
        addChild(artistTxtBGMC); // Artist Textbox Background
            artistTxtBGMC.x = volDownMC.x + volDownMC.width + 6; // Artist Textbox Background
            artistTxtBGMC.y = volIcoMC.y; // Artist Textbox Background
        
        addChild(songTxtBGMC); // Song Textbox Background
            songTxtBGMC.x = artistTxtBGMC.x + artistTxtBGMC.width + 6; // Song Textbox Background
            songTxtBGMC.y = volIcoMC.y; // Song Textbox Background
        
        addChild(prevBtnMC); // Previous Button
            prevBtnMC.x = songTxtBGMC.x + songTxtBGMC.width + 6; // Previous Button
            prevBtnMC.y = volIcoMC.y; // Previous Button
        
        addChild(rewindBtnMC); // Rewind Button
            rewindBtnMC.x = prevBtnMC.x + prevBtnMC.width + 6; // Rewind Button
            rewindBtnMC.y = volIcoMC.y; // Rewind Button
        
        addChild(stopBtnMC); // Stop Button
            stopBtnMC.x = rewindBtnMC.x + rewindBtnMC.width + 6; // Stop Button
            stopBtnMC.y = volIcoMC.y; // Stop Button
        
        addChild(playBtnMC); // Play Button
            playBtnMC.x = stopBtnMC.x + stopBtnMC.width + 6; // Play Button
            playBtnMC.y = volIcoMC.y; // Play Button
        
        addChild(fforwardBtnMC); // Fastforward Button
            fforwardBtnMC.x = playBtnMC.x + playBtnMC.width + 6; // Fastforward Button
            fforwardBtnMC.y = volIcoMC.y; // Fastforward Button
        
        addChild(nextBtnMC); // Next Button
            nextBtnMC.x = fforwardBtnMC.x + fforwardBtnMC.width + 6; // Next Button
            nextBtnMC.y = volIcoMC.y; // Next Button
    }
    
    function loadTitleTxt():void {
        
        var siteLogoTxtContainer:Sprite = new Sprite();
        
        var titleDropShadow:DropShadowFilter = new DropShadowFilter();
            titleDropShadow.distance = 2;
            titleDropShadow.angle = 90;
            titleDropShadow.color = 0x000000;
            titleDropShadow.blurX = 3;
            titleDropShadow.blurY = 3;
            titleDropShadow.quality = 10;
            titleDropShadow.alpha = .5;
        
        
        var titleSmall:TextField = new TextField();
            titleSmall.autoSize = TextFieldAutoSize.LEFT;
            titleSmall.selectable = false;
            titleSmall.defaultTextFormat = siteLogoTxt;
            titleSmall.wordWrap = true;
            titleSmall.width = 130;
            titleSmall.text = "Transplant the Heart";
            titleSmall.filters = [titleDropShadow];
        
        
        
        siteLogoTxtContainer.addChild(titleSmall);
        addChild(siteLogoTxtContainer);
            siteLogoTxtContainer.y = stage.stageHeight - siteLogoTxtContainer.height;
    }
        
        
        
    /* ----------------------------------------------------------------------------------*/
    /* ----                                                                          ----*/
    /* ----        < MOUSE EVENT: LOAD CONTENT BASED ON PAGE NUMBER (XML) >          ----*/
    /* ----                                                                          ----*/
    /* ----------------------------------------------------------------------------------*/
    
    // Choose page transition function
    function choosePageTransition(e:MouseEvent):void {
    
    
        function drawPgContentBG(shapeX:Number, shapeY:Number, shapeWidth:Number, shapeHeight:Number):void {
        
            pgContentBG = new Sprite();
                pageContent.addChild(pgContentBG);
                    pgContentBG.graphics.lineStyle(0, 0xeeeeee, 1);
                    pgContentBG.graphics.beginFill(0xffffff, .75);
                    pgContentBG.graphics.drawRect(shapeX, shapeY, shapeWidth, shapeHeight);
                    pgContentBG.graphics.endFill();
        }
        
        
        /* --------------------------------------------------------------------*/
        /* ----                                                            ----*/
        /* ----  < MOUSE EVENT: LOAD CONTENT BASED ON PAGE NUMBER (XML) >  ----*/
        /* ----                                                            ----*/
        /* --------------------------------------------------------------------*/
        // Set page number variable
        var pageNumber:uint;
        
        mcContent.y = 30; // Why do I need to reset the y position each time?
        
        // Set up if for mouse click
        if (e.type == MouseEvent.CLICK) {
            
            // Switch based on target name
            switch (e.currentTarget.name) {
                case "navBtn0" :
                    trace(e.currentTarget.name);
                    pageNumber = 1;
                    
                    mcContent.removeChildAt(0);
                    
                    mcContent.addChildAt(pageContent,0);
                    
                    pageContent.addChild(contentRBottomTxt);
                    pageContent.addChild(contentRTopTxt);
                    pageContent.addChild(contentTxt);
                    pageContent.addChild(headingTxt);
                    
                    break;
                    
                case "navBtn1" :
                    trace(e.currentTarget.name);
                    pageNumber = 2;
                    
                    mcContent.removeChildAt(0);
                    
                    mcContent.addChildAt(pageContent,0);
                    
                    pageContent.addChild(contentRBottomTxt);
                    pageContent.addChild(contentRTopTxt);
                    pageContent.addChild(contentTxt);
                    pageContent.addChild(headingTxt);
                    
                    break;
                    
                case "navBtn2" :
                    trace(e.currentTarget.name);
                    pageNumber = 3;
                    
                    mcContent.removeChildAt(0);
                    
                    mcContent.addChildAt(pageContent,0);
                    
                    pageContent.addChild(contentRBottomTxt);
                    pageContent.addChild(contentRTopTxt);
                    pageContent.addChild(contentTxt);
                    pageContent.addChild(headingTxt);
                    
                    break;
                    
                case "navBtn3" :
                    trace(e.currentTarget.name);
                    pageNumber = 4;
                    
                    mcContent.removeChildAt(0);
                    
                    mcContent.addChildAt(pageContent,0);
                    
                    pageContent.addChild(contentRBottomTxt);
                    pageContent.addChild(contentRTopTxt);
                    pageContent.addChild(contentTxt);
                    pageContent.addChild(headingTxt);
                    
                    break;
                    
                case "navBtn4" :
                    trace(e.currentTarget.name);
                    pageNumber = 5;
                    
                    mcContent.removeChildAt(0);
                    
                    mcContent.addChildAt(pageContent,0);
                    
                    pageContent.addChild(contentRBottomTxt);
                    pageContent.addChild(contentRTopTxt);
                    pageContent.addChild(contentTxt);
                    pageContent.addChild(headingTxt);
                    
                    break;
                    
                case "navBtn5" :
                    trace(e.currentTarget.name);
                    pageNumber = 6;
                    
                    mcContent.removeChildAt(0);
                    
                    mcContent.addChildAt(pageContent,0);
                    
                    pageContent.addChild(contentRBottomTxt);
                    pageContent.addChild(contentRTopTxt);
                    pageContent.addChild(contentTxt);
                    pageContent.addChild(headingTxt);
                    
                    break;
                    
                case "navBtn6" :
                    trace(e.currentTarget.name);
                    pageNumber = 7;
                    
                    mcContent.removeChildAt(0);
                    
                    mcContent.addChild(swfLoader);
                    
                    break;
                    
                case "navBtn7" :
                    trace(e.currentTarget.name);
                    pageNumber = 8;
                    
                    mcContent.removeChildAt(0);
                    
                    mcContent.addChildAt(pageContent,0);
                    
                    pageContent.addChild(contentRBottomTxt);
                    pageContent.addChild(contentRTopTxt);
                    pageContent.addChild(contentTxt);
                    pageContent.addChild(headingTxt);
                    
                    break;
                    
                case "navBtn8" :
                    trace(e.currentTarget.name);
                    pageNumber = 9;
                    
                    mcContent.removeChildAt(0);
                    
                    mcContent.addChildAt(pageContent,0);
                    
                    pageContent.addChild(contentRBottomTxt);
                    pageContent.addChild(contentRTopTxt);
                    pageContent.addChild(contentTxt);
                    pageContent.addChild(headingTxt);
                    
                    break;
                    
                case "navBtn9" :
                    trace(e.currentTarget.name);
                    pageNumber = 10;
                    
                    mcContent.removeChildAt(0);
                    
                    mcContent.addChild(swfLoader);
    
                    break;
            }
            
            
            // Loop through the XML file
            for each (var page:XML in pageXML.pages.page) {
                 
                // "page.@pagenumber" points to "pagenumber" in the XML file.
                if (page.@pagenumber == pageNumber) {
                     
                    // Set the title
                    headingTxt.htmlText = page.title;
                     
                    // Set the page content
                    contentTxt.htmlText = page.content;
                    contentRTopTxt.htmlText = page.contenttr;
                    contentRBottomTxt.htmlText = page.contentbr;
                    
                    
                    /* STYLESHEET NOT FUNCTIONING PROPERLY
                    headingTxt.styleSheet = styleSheet;
                    contentTxt.styleSheet = styleSheet;
                    contentRTopTxt.styleSheet = styleSheet;
                    contentRBottomTxt.styleSheet = styleSheet;
                    */
                     
                    // Exit the loop
                    break;
                }
            } // < /For Loop >
            
            
            // Have the mcContent tween out
            pageTween = new Tween(mcContent, "x", Regular.easeInOut, 0, stage.stageWidth + 20, .5, true);
            // Add the tween finished event listener to trigger runHomeTransition
            pageTween.addEventListener(TweenEvent.MOTION_FINISH, runPageTransition, false, 0, true);
            
            
            
            
            
        
            /* -------------------------------------------------------------*/
            /* ----                                                     ----*/
            /* ----    < TRACE MCCONTENT CHILDREN AND SUB CHILDREN >    ----*/
            /* ----                                                     ----*/
            /* -------------------------------------------------------------*/
            // Children check, placement seems off... are children added correctly?
            traceDisplayList(mcContent, "=>");
         
            function traceDisplayList(container:DisplayObjectContainer, indentString:String = ""):void {
                var child:DisplayObject;
                 
                for (var i:uint=0; i < container.numChildren; i++) {
                    child = container.getChildAt(i);
                    trace(indentString, child.parent.name + " " + indentString + " " + child.name);
                    
                    if (container.getChildAt(i) is DisplayObjectContainer) {
                        traceDisplayList(DisplayObjectContainer(child), indentString + "");
                    }
                }
            } // < /traceDisplayList();
            
        } // < /If Statement >
    } // < /Function >
    
    
    
    // Home page function
    /*
    Facing errors here or in the click event... likely the click event triggering content switch too soon... consider rewriting switch to if and include transition complete to trigger click event, content switch, and then the page's transition in (runPageTransition function)
    */
    function runPageTransition (e:TweenEvent):void {
        
        pageTween = new Tween(mcContent, "x", Regular.easeInOut, stage.stageWidth + 20, 0, .5, true);
        
        pageTween.removeEventListener(TweenEvent.MOTION_FINISH, runPageTransition);
    }
    


    Here is the XML with the path as: scripts/xml/content.xml

    <?xml version="1.0" encoding="utf-8"?>
    <site>
            
        <!--<sitetitle><![CDATA[<strong>Transplant the Heart</strong>]]></sitetitle>-->
        
        <pages>
     
            <page pagenumber="1">
                
                <title><![CDATA[<h1>Page #1</h1>]]></title>
                
                <content><![CDATA[<p>Aliquam nec dui neque. Aenean rutrum suscipit turpis vel fringilla. Nam tortor lacus, sagittis sed pulvinar vitae, facilisis laoreet leo. Suspendisse interdum elit nulla, et tempor eros. Vestibulum rhoncus orci et ante lobortis nec pellentesque purus blandit.</p>]]></content>
                
                <contenttr><![CDATA[Cras non risus nisi. Nam tincidunt lacinia massa, vel interdum massa ultricies ultricies.]]></contenttr>
                
                <contentbr><![CDATA[Aliquam erat volutpat. Etiam eget mauris ante, sit amet placerat tortor. In consectetur consectetur orci.]]></contentbr>
                
                <image>imgs/png/titleLarge.png</image>
                
            </page>
     
            <page pagenumber="2">
                
                <title><![CDATA[Page #2]]></title>
                
                <content><![CDATA[Cras quis nisl id neque eleifend vehicula quis eget dolor. Proin ante lectus, tincidunt vitae sodales vel.]]></content>
                
                <contenttr><![CDATA[In eget magna diam, non interdum est. Donec aliquam, enim eu gravida vehicula, nulla massa vehicula nibh.]]></contenttr>
                
                <contentbr><![CDATA[Etiam posuere porttitor dignissim. Vestibulum nisi est, pharetra ac feugiat mattis, suscipit eu orci.]]></contentbr>
                
                <image>imgs/png/titleLarge.png</image>
                
            </page>
     
            <page pagenumber="3">
                
                <title><![CDATA[Page #3]]></title>
                
                <content><![CDATA[Maecenas ac est quis nulla mollis suscipit vulputate quis felis.]]></content>
                
                <contenttr><![CDATA[Sed augue felis, dictum ut suscipit in, pellentesque quis leo. Integer dui sem, accumsan sed iaculis nec.]]></contenttr>
                
                <contentbr><![CDATA[Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.]]></contentbr>
                
                <image>imgs/png/titleLarge.png</image>
                
            </page>
     
            <page pagenumber="4">
                
                <title><![CDATA[Page #4]]></title>
                
                <content><![CDATA[Vivamus neque turpis, sollicitudin ac consequat vel, faucibus non felis.]]></content>
                
                <contenttr><![CDATA[Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.]]></contenttr>
                
                <contentbr><![CDATA[Vivamus neque turpis, sollicitudin ac consequat vel, faucibus non felis.]]></contentbr>
                
                <image>imgs/png/titleLarge.png</image>
                
            </page>
     
            <page pagenumber="5">
                
                <title><![CDATA[Page #5]]></title>
                
                <content><![CDATA[Duis interdum justo nec felis semper vel pretium ligula volutpat. In consequat interdum mauris vitae pulvinar.]]></content>
                
                <contenttr><![CDATA[Aliquam ipsum eros, adipiscing ac volutpat eu, dictum id mauris. Vivamus rutrum ultricies metus.]]></contenttr>
                
                <contentbr><![CDATA[Pellentesque porttitor vulputate dui tincidunt scelerisque. Aenean quis orci non massa vulputate hendrerit non eu urna.]]></contentbr>
                
                <image>imgs/png/titleLarge.png</image>
                
            </page>
     
            <page pagenumber="6">
                
                <title><![CDATA[Page #6]]></title>
                
                <content><![CDATA[Pellentesque porttitor, ante nec ullamcorper vehicula, ante nulla elementum nulla.]]></content>
                
                <contenttr><![CDATA[Nunc eu ipsum ac massa semper ultrices in non leo. Maecenas malesuada enim sed dui sodales molestie.]]></contenttr>
                
                <contentbr><![CDATA[Maecenas at tortor a velit lobortis auctor. Quisque venenatis pellentesque quam non placerat.]]></contentbr>
                
                <image>imgs/png/titleLarge.png</image>
                
            </page>
     
            <page pagenumber="7">
                
                <title><![CDATA[Page #7]]></title>
                
                <content><![CDATA[Aliquam nec dui neque. Aenean rutrum suscipit turpis vel fringilla. Nam tortor lacus, sagittis sed pulvinar vitae.]]></content>
                
                <contenttr><![CDATA[Praesent sagittis dictum velit, at posuere nisl ultrices a. Maecenas gravida semper porttitor.]]></contenttr>
                
                <contentbr><![CDATA[Vivamus neque turpis, sollicitudin ac consequat vel, faucibus non felis.]]></contentbr>
                
                <image>imgs/png/titleLarge.png</image>
                
                <swfURL>transplantSpecialists.swf</swfURL>
                
            </page>
     
            <page pagenumber="8">
                
                <title><![CDATA[Page #8]]></title>
                
                <content><![CDATA[Ut interdum, urna ac accumsan sollicitudin, diam ante interdum est, at luctus magna nibh quis purus. ]]></content>
                
                <contenttr><![CDATA[Sed sed enim mauris, et consectetur dolor. ]]></contenttr>
                
                <contentbr><![CDATA[Nullam at quam et justo iaculis sagittis]]></contentbr>
                
                <image>imgs/png/titleLarge.png</image>
                
            </page>
     
            <page pagenumber="9">
                
                <title><![CDATA[Page #9]]></title>
                
                <content><![CDATA[Ut interdum, urna ac accumsan sollicitudin, diam ante interdum est, at luctus magna nibh quis purus.]]></content>
                
                <contenttr><![CDATA[Donec bibendum sapien iaculis neque volutpat varius. ]]></contenttr>
                
                <contentbr><![CDATA[Vivamus neque turpis, sollicitudin ac consequat vel, faucibus non felis. Nam mattis convallis eros eu tincidunt.]]></contentbr>
                
                <image>imgs/png/titleLarge.png</image>
                
            </page>
     
            <page pagenumber="10">
                
                <title><![CDATA[Page #10]]></title>
                
                <content><![CDATA[Cras non risus nisi. Nam tincidunt lacinia massa, vel interdum massa ultricies ultricies. Nulla aliquet vehicula purus facilisis posuere. ]]></content>
                
                <contenttr><![CDATA[Integer elementum, dolor fermentum aliquam gravida, eros augue posuere erat, quis gravida neque dui sed enim. Fusce tempus vulputate lobortis.]]></contenttr>
                
                <contentbr><![CDATA[Nunc vulputate elementum lectus, ac vehicula libero faucibus non. Mauris suscipit nibh sit amet enim eleifend sit amet scelerisque sem rutrum. ]]></contentbr>
                
                <image>imgs/png/titleLarge.png</image>
                
                <swfURL>thisSwf.swf</swfURL>
                
            </page>
     
        </pages>
     
    </site>

    You don't have swfURL in each node.

    You can directly access the swfURL nodes:

    pageXML.pages.page.swfURL which will give you a f URL XMLList.

    So that you can read:

    pageXML.pages.page.swfURL [0]

    or through loop.

    pageXML.pages.page.swfURL [i]

    The same thing with images:

    pageXML.pages.page.image [0], etc.

Maybe you are looking for