RadioButton decides TextField content

Hello!

I have this RadioButton that, depending on what you choose, the text to display in a TexField, like this:

yes.jpg

yes02.jpg

I tried something like, but does not work:

by this being, the box

If (this.rawValue == 'Yes') {}

Form1. Subform2.TextField01.access = "readOnly";

Form1. Subform2.TextField01.RawValue = "you click Yes;

Subform2 is the name of the page where is the textfield, the radio and the textfield object is in different pages

}

ElseIf (this.rawValue == 'no') {}

Form1. Subform2.TextField01.access = "readOnly";

Form1. Subform2.TextField01.RawValue = "you choose No."

} else {}

Form1. Subform2.TextField01.access = "open";

If you neither yes nor no, the textfield is editable, and you can fill it with anything you want

}

Any ideas?

Maybe your script is wrong. Option buttons normally have the value default 1, 2... No Yes or no.

I think it's the same thing in your pdf.

You must do the following:

  1. mark in the hierarchy the radiobuttonlist
  2. go to 'object ' | "binding" and take a look here
  3. then you must use the following script (you can not ask 'yes' or 'no'. 'Yes' or 'no' is the legend, not the value.
//you choose yes
if(this.rawValue == 1)
{
    Textfeld1.access = "readOnly";
    Textfeld1.rawValue = "you choose YES";
//you choose another, in a radiobuttonlist with two options is this this no
}else
{
    Textfeld1.access = "readOnly";
    Textfeld1.rawValue = "you choose NO";
}

That's all. If no one clicks Yes or no, the textfield object is open. You don't need this script.

I hope I could help?

Kind regards Mandy

Tags: Adobe LiveCycle

Similar Questions

  • TextField content disappears

    Hello

    I customize the TextField object as:

    URL = BasicEditField() new
    {
    protected void paintBackground (Graphics graphics)
    {
                    
    graphics.setBackgroundColor (Color.WHITE);
    Graphics.Clear;
    }
    };

    When I type in, the content is missing.

    But when I printed the content as I entered, it is accurate.

    Any ideas how to solve this one.

    Thank you

    Rahul

    Hello

    I tried what you suggested.

    And I realized that somehow the text color is overridden. That is why the text is have disappeared.

    I put the color of the text explicitly using setColor() and it worked.

    Thanks for the suggestion!

    Rahul

  • Add TextField by pressing the return key content

    Hello

    I would like to know if there is, okay, there is certainly a way, to add TextField content to a list by pressing keyboards return button/key. So far, I use a button 'Add' but this feels kind of stupid to enter text and to confirm twice (key first, then return the Add button) to add it to the list.

    Thanks in advance

    Use the properties of your TextField. for example:

    // Default empty project template
    import bb.cascades 1.0
    
    // creates one page with a label
    Page {
        Container {
            layout: DockLayout {}
            TextField {
                id:myText
                input {
                    onSubmitted: {
                        myLabel.text = myText.text
                    }
                }
    
            }
            Label {
                id: myLabel
                text: qsTr("Hello World")
                textStyle.base: SystemDefaults.TextStyles.BigText
                verticalAlignment: VerticalAlignment.Center
                horizontalAlignment: HorizontalAlignment.Center
            }
        }
    
  • How to make the recommended content

    Hi all

    I want to know, how can I make particular discussion featured content. For example, some of the information that may be important for others.  Do we need special rights for who?

    Who normally publish such content? How we can find this person or get the same right.

    There are many scenarios such as writing articles, reviews, notification and upload videos for specific products.

    Please share information.

    Vinay

    Yes, you need special rights to do this.

    Spaces and various communities 'belong' by different people within Oracle, and usually they will be the person who manages this area and decides what content should be made available in the documents or the etc recommended content.

    If it is open to anyone to do these things, then we will be people posting all sorts of nonsense they thought was good, without adequate control and most likely stuff that are spam or promote themselves, or their sites Web etc, obviously, it must be controlled, and it must be done in a way that allows content to be verified first (for legal reasons) and is not conditioned so that people are overwhelmed by a steady flow of new features that are more than what they can handle.

    The community managers:

    Laura Ramsey-Oracle data - base
    Middleware/Architecture - Bob Rhubart-Oracle
    Systems/Linux, etc.  -Logan Rosenstein-Oracle
    Java - Yolande Poirier-Oracle

    There are also the owners of the space such as Steven Feuerstein within PL/SQL etc.

  • Bad position ChoiceBox ContextMenu

    Hello

    I am relatively new to Java, so patient with me

    I build a small program using JavaFX 8.0.0 - b132 and JavaSE 8...

    The program has a graphic interface and the GUI has a ChoiceBox. The architecture of this part of the page layout is: AnchorPane - VBox - TitledPane - GridPane - HBox - ChoiceBox

    I modified the ChoiceBox extensively using CSS.

    Everything works as it should, except for one problem:

    When I start the program and open the ChoiceBox (by click of the mouse or with show()) for the first time, it will display the ContextMenu that is on the lower edge as it should; However, when I close and reopen (with the mouse or programmatically) it displays the ContextMenu on top of the open key ChoiceBox (wrong position there), such as the background of the currently selected cell coincides with the bottom of the open key (which means it will change position after I select another cell and open it again).

    How can I avoid this and do the ContextMenu will always appear at the bottom, as it does at first? An excerpt from the GUI part of the program with the affected control ready to compile and run with Java 8:

    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.scene.input.MouseEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.*;
    import javafx.scene.layout.HBox;
    import javafx.scene.layout.VBox;
    import javafx.scene.text.*;
    import javafx.scene.layout.GridPane;
    import javafx.scene.layout.AnchorPane;
    import javafx.stage.Stage;
    import javafx.geometry.Insets;
    import javafx.collections.*;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.geometry.Side;

    public class bugdemo extends Application {

      // Elements needed in both threads

      RadioButton radioBoxersOne = new RadioButton("One");
      RadioButton radioBoxersTwo = new RadioButton("Two");

      TextField warmupText = new TextField("skip warm up");
      TextField noCyclesText = new TextField("3");
      TextField cycleTimeText = new TextField("45");
      TextField restingTimeText = new TextField("30");

      String[] warmupTFtext = {"skip warm up", "\u00FCberspringen"};

      public static void main(String... args) {
      launch(args);
      }

      @Override
      public void start(Stage primaryStage) {

      // root container
      AnchorPane anchor = new AnchorPane();

      // Options TitledPane
      GridPane trainingOptions = new GridPane();
      ToggleGroup toggleGroup = new ToggleGroup();
      radioBoxersOne.setToggleGroup(toggleGroup);
      radioBoxersTwo.setToggleGroup(toggleGroup);
      radioBoxersOne.setSelected(true);
      HBox hbToggle = new HBox(15, radioBoxersOne, radioBoxersTwo);
      hbToggle.setPadding(new Insets(5,0,0,0));

      ObservableList<String> langList = FXCollections.observableArrayList("English", "Deutsch");
      ChoiceBox<String> langBox = new ChoiceBox<String>(langList);
      langBox.setValue("English");
      HBox hbLangBox = new HBox(0, langBox);
      hbLangBox.setPadding(new Insets(5,0,0,0));

      Label warmupOptionsLabel = new Label("Warm up time (min): ");
      Label noCyclesOptionsLabel = new Label("Number of cycles: ");
      Label cycleOptionsLabel = new Label("Cycle time (sec): ");
      Label restingOptionsLabel = new Label("Resting time (sec): ");
      Label noBoxersOptionsLabel = new Label("Number of boxers: ");
      Label langOptionsLabel = new Label("Language: ");

      trainingOptions.add(warmupOptionsLabel, 0, 0);
      trainingOptions.add(noCyclesOptionsLabel, 0, 1);
      trainingOptions.add(cycleOptionsLabel, 0, 2);
      trainingOptions.add(restingOptionsLabel, 0, 3);
      trainingOptions.add(noBoxersOptionsLabel, 0, 4);
      trainingOptions.add(langOptionsLabel, 0, 5);
      trainingOptions.add(warmupText, 1, 0);
      trainingOptions.add(noCyclesText, 1, 1);
      trainingOptions.add(cycleTimeText, 1, 2);
      trainingOptions.add(restingTimeText, 1, 3);
      trainingOptions.add(hbToggle, 1, 4);
      trainingOptions.add(hbLangBox, 1, 5);

      TitledPane TPane_in = new TitledPane("Options", trainingOptions);

      // Options TPane and Buttons together as UI (input)
      VBox UI = new VBox(10, /* hbButtons ,*/ TPane_in);
      anchor.getChildren().add(UI);
      AnchorPane.setLeftAnchor(UI, 25.0);
      AnchorPane.setTopAnchor(UI, 100.0);

      // EventHandlers for the radio-buttons
      radioBoxersOne.setOnAction(new EventHandler<ActionEvent>() {

      @Override
      public void handle(ActionEvent e) {
    /* if (!singleBoxer){
      trainingProgress.getChildren().remove(boxerLabel);
      trainingProgress.getChildren().remove(boxerText);
      }
      changeTextFlow();
      singleBoxer = true; */
      }
      });

      radioBoxersTwo.setOnAction(new EventHandler<ActionEvent>() {

      @Override
      public void handle(ActionEvent e) {
    /* singleBoxer = false;
      trainingProgress.add(boxerLabel, 0, 3);
      trainingProgress.add(boxerText, 1, 3);
      changeTextFlow(); */
      }
      });

      // "EventHandler" for the language ChoiceBox
      langBox.getSelectionModel().selectedIndexProperty().addListener(new ChangeListener<Number>() {
      public void changed(ObservableValue ov, Number value, Number new_value) {
    /* language = (int)new_value;
      changeLanguage(); */
      }
      });

      // initialize scene and show stage
      Scene scene = new Scene(anchor, 800, 650);
      primaryStage.setScene(scene);
      primaryStage.setResizable(false); // resizeable on/off
      // import CSS file
      // scene.getStylesheets().add(Letsbox.class.getResource("Training.css").toExternalForm());
      primaryStage.show();
      langBox.show();
      langBox.hide();

      langBox.show();
      }
    }


    Is this a bug or I do something wrong?

    This is the intended behavior of the selection box. It became very clear, once you pass more data in ChoiceBox. The popup will see erratic on top or below the choicebox, but if you observe that enough is by lining up the item in the context menu (which is identical to that in the ChoiceBox) to be the same situation as ChoiceBox, where the popup will move accordingly based upon the position of the element.

    Let's say that

    choiceBox-> Apple

    and the popup has the elements in the order->

    Apple

    Bird

    CAT

    Donkey

    If popup you choice, the popup will appear at the bottom, and if the ChoiceBox shows Donkey, the popup will show on the top, and all the while, by aligning the word in the popup in the same position as the ChoiceBox.

    I do not recommend to change the behavior of the choicebox if control is designed to operate (for css, or hack etc.) in this way, rather you might want to try to replace with another combobox control.

  • With the help of Flash/AS as a possible model?

    Hi all!

    I am very new to flash (just started last week) so please bare with me if this question sounds stupid ridiculusly

    I wonder if it is possible to use Flash/AS files as 'model' - in other words, we have the website http://shop.variuscard.com and the header is subject to change according to the category of product, you click on in the shop. We will have about 10 categories and each will have a different product displayed in the flash movie, but "background" should remain the same.

    Now, in this case, I need to change something (say the logo goes from blue to red and the particle size and shape) I don't want to change all the 10 or more files again. So is it possible to use the "basic" flash file as a template, which means - position of the Logo & shadow and the code of the particle and just change the variables photos and stuff inside the categories? I got this card red-printer as a sample of the category of card-printer for example.

    Thanks in advance!

    There are several ways you can manage a template file.  The more modern method is probably to have the data file that defines certain characteristics of the contents of this file, such as the image of the logo it uses, the title appears, where things are placed, etc.  Then you have your file Flash load/dynamically adjust content by what dictates the data file.  So your data file might specify the name of the image logo file and where it is planted and the file could use this information to load this file and place it where it will.

    Another thing, you can do use the FlashVars parameter that allows the embed code.  So if you had the same banner in the same website on different pages or sections of a page, you can use the FlashVars to indicate some settings in each file must use to decide what content it must make use of.

    The combination of these approaches can alow you only have a Flash file and a data file that you are editing as needed.

  • AS3 add/remove event within functions listeners...

    Dear all, Hello!

    What I'm doing is, if a user clicks on the keyboard (key-1), photo 1 FadeIn and if a user presses the keyboard (key - 2) photo should photo 2 FadeIn and FadeOut and vice versa. With the code mentioned below Itworks very well sometimes if I'm not pressing any other key while it performs an action, but sometimes his bizarre behavior also. What I want to do AS3 is not not to take measures or in other words it should not listen to the keyboard until there finishes the opening or closing animation of a picture or any other object assigned to the key.

    Any help or assistance will be greatly appreciated.

    stage.addEventListener (KeyboardEvent.KEY_DOWN, KeyDownHandler) ;/**/

    KeyCode keyboard for 1 & 2
    var key1:uint = 49;
    var key2:uint = 50;

    var BG1:Image1 = new Image1();
    var BG2:Image2 = new Image2();

    function KeyDownHandler (keyEvent:KeyboardEvent): void
    {
    String: var = string.fromCharCode(0)) (keyEvent.charCode);

    If (keyEvent.keyCode is key1)
    {

    var BG1TweenOff:Tween = new Tween(BG1,"alpha",Strong.easeOut,1,0,2,true);
    var BG2TweenOff:Tween = new Tween(BG2,"alpha",Strong.easeIn,1,0,2,true);
    BG1TweenOff.addEventListener (TweenEvent.MOTION_FINISH, BG1ON);
    trace ("Key pressed" + character + ".");

    }

    ElseIf (keyEvent.keyCode == key2)
    {

    var BG1offTween:Tween = new Tween(BG1,"alpha",Strong.easeOut,1,0,2,true);
    var BG2offTween:Tween = new Tween(BG2,"alpha",Strong.easeIn,1,0,2,true);
    BG2offTween.addEventListener (TweenEvent.MOTION_FINISH, BG2ON);
    trace ("Key pressed" + character + ".");

    }

    on the other
    {

    Stop (currentFrame);
    trace ("Key pressed" + character + ".");

    }

    }

    function BG1ON(eve:TweenEvent):void
    {

    BG1.x = 0;
    BG1.y = 0;
    addChild (BG1);
    var BG1offTween:Tween = new Tween(BG1,"alpha",Strong.easeIn,0,1,2,true);

    }

    function BG2ON(eve:TweenEvent):void

    {

    BG2.x = 0;

    BG2.y = 0;
    addChild (BG2);
    var BG2offTween:Tween = new Tween(BG2,"alpha",Strong.easeIn,0,1,2,true);

    }


    Here is a revised version of the code, but it only deals with the keys 1 and 2.  So if you want more keys involved, you have to work.

    Import fl.transitions.Tween;
    Fl.transitions.easing import. *;
    Import fl.transitions.TweenEvent;

    stage.addEventListener (KeyboardEvent.KEY_DOWN, KeyDownHandler);

    var BG1:Image1 = new Image1();
    var BG2:Image2 = new Image2();

    BG1.x is BG1.y = BG2.x = BG2.y = 0;.

    BG1.Alpha = 1;
    BG2.Alpha = 0;

    addChild (BG1);
    addChild (BG2);

    var key1:uint = 49;
    var key2:uint = 50;

    var: string

    var fadeOutTween:Tween;
    var fadeInTween:Tween;

    var bgShowing:Object = BG1;

    function KeyDownHandler (keyEvent:KeyboardEvent): void {}
    character = string.fromCharCode(0)) (keyEvent.charCode);

    If ((caractère == "1" && bgShowing! = BG1) |) (caractère == "2" && bgShowing! = BG2)) {
    stage.removeEventListener (KeyboardEvent.KEY_DOWN, KeyDownHandler);
    fadeOutTween = new Tween(bgShowing,"alpha",Strong.easeOut,bgShowing.alpha,0,2,true);
    fadeOutTween.addEventListener (TweenEvent.MOTION_FINISH, BGON);
    } else {}
    Stop (currentFrame);
    }
    trace ("Key pressed" + character + ".");
    }

    function BGON (Eve: TweenEvent): void {}
    bgShowing = this ["BG" + character];
    bgShowing.x = 0;
    bgShowing.y = 0;
    fadeInTween = new Tween(bgShowing,"alpha",Strong.easeIn,bgShowing.alpha,1,2,true);
    fadeInTween.addEventListener (TweenEvent.MOTION_FINISH, resetKeyListener);
    }

    function resetKeyListener (evt:TweenEvent): void {}
    stage.addEventListener (KeyboardEvent.KEY_DOWN, KeyDownHandler);
    }

    If you want to have a textfield involved the process based on what is entered in it, then you will have to pay to learn a bit about the handling of textfields and channels.  If you want to combine this with what is above, then you will have the textfield content taken into account in the conditional statements, as in... If the textfield object contains any text, do not treat the KeyDownHandler function in its State current because otherwise, as soon as you type a number 1 or 2, the BG change.

  • draw characters on the screen

    As draw us circles and other graphics, is it possible to draw characters on the screen or print characters on the screen?

    Do you mean you want to render text with the drawing API?

    If so, there is no native way to do it, but it is possible to capture a copy of bitmapData of a TextField content and its use in a BitmapFill.

    But its much easier to use with RasterText Degrafa:
    http://www.Degrafa.org/blog/2008/11/rastertext-for-advanced-text-graphics/

  • is there a way to get the index of the html text field cursor position

    I'm working on a block of text as MC with 'insert text at position X' and 'Find and replace' can someone tell me how to find the index of an html text field cursor. Selection.getBeginIndex (), Selection.getEndIndex (), Selection.getCaretIndex () as far as I know these methods only work with text and not htmltext.
    What I'm trying to do, it's affecting different parts of the chain to the variables so that I can combine in order to restore my html string.

    ray1872:

    If I understand correctly, you want the corresponding position in the
    another index of the caret htmlText property (who, like you, has no on the)
    position in the plain text of the textfield content version).

    Here's how I'd do. It is perhaps easier or more effective
    way (using objects XML etc.), but I don't know it. You could conduct all
    your search string in plain text and then convert the result of
    the positions of html. I didn't build this to accept negative parameters
    for the parameter pos (for example, end of string towards the back), but the
    function could be adapted to do this also if necessary. The test data is
    not good html from a text field, but it does not really matter what he
    is as long as its formatting correctly. It separates only tags of
    content to allow apples to apples comparison.

    some test data
    var testStringXML = ""Hello I can't tell you hOE happy I mod.'; "
    var undecoratedString = Hello "I can't tell you how happy I am.";

    the conversion function
    function findDecoratedPosition(pos:Number,_xmlString:String,_test:Boolean):Number {}
    anything between '<' and="" '="">' should be excluded from the search in plain text.
    create a table of elements of array (n = 2), consisting of tag and then plain text
    requires xml/html properly put in the form
    var tempArr:Array = xmlString.split (')<>
    for (var aa = 0; aa
    tempArr [aa] is [aa] tempArr,.split(">").;
    }
    remove the first and last elements in the new array (they are empty)
    tempArr.pop ();
    tempArr.shift ();
    find the location of corresponding plaintext and calculate the position "decorated."
    var retPos:Number = 0;
    var posCount:Number = 0;
    for (var aa = 0; aa
    retPos += tempArr [aa] [0] .length + 2 + tempArr [aa] [1] .length;
    + 2 allows you to lack< and="">
    posCount += tempArr [aa] [1] .length;
    If (posCount > pos) {}
    return (retPos + (pos-posCount));
    }
    }
    out of range
    Returns - 1;

    }

    test code:
    for (var aa = 0; aa
    var altPos = findDecoratedPosition (aa, testStringXML);
    trace (undecoratedString.charAt (AA) +"position" + aa + "in clear corresponds to the position" + altPos + "in decorated version [" + testStringXML.charAt (altPos) + "" "]" ");

    }

  • Insert text into the textfield after radiobutton selection

    Hello

    I'm sorry, in the first place, for my bad English.

    I need that after selection of the radiobutton appears in textfield's text.

    .

    option 1

    option 2

    option 3

    If you choose option 1 in textfield "direzione" see "servizi sociali".

    If you choose option 2 in the textfield "direzione" see «affari istitzionali»

    etc etc.

    I need code for adobepro javascript and where I have to insert it

    Is it Possible?

    Thank you very much

    You can try this...

    I found it in a post down below in the list, but it is for the insertion of text after clicking on a checkbox.

    Apply it on your radio button and it could do something similar...

    You can try the following as the mouse struggle for the checkbox control:

    If (event.target.value! = "Off") {//If checkbox is checked

    this.getField("Textbox1").value = 'blah blah blah ';

    }

    else this.getField("Textbox1").value = "";   Clear the text field if the check box is unchecked

    Peter

  • You want to print the contents of the textfield.

    I want to print the content of the text field with a button. I know how to print a clip. If I turn the text field in a clip, I can't type anything in it, and then I need to print an empty textfield... Help, tip? Thank you.

    There should be no problem converting your textfield to a movieclip and then by typing in it.  you do not really change it to a movieclip, you just add it to the timeline of the movieclip.

    but your textfield must already be in a displayobjectcontainer and so can be added to your printjob.  for example, if your textfield (for example, tf) is on the timeline in the scope, you can use:

    var pj:PrintJob = new PrintJob();

    b.addEventListener (MouseEvent.CLICK, f);

    function f(e:MouseEvent):void {}

    If (pj.start ()) {}

    try {}

    pj.addPage (this, Rectangle (tf.x tf.y tf.width, tf.height)) of new;

    } catch (error) {}

    handle the error

    }

    PJ. Send();

    }

    }

  • I can't place the content of a variable in a TextField

    Hello.

    I have a TextField made at the time of the creation. I need to place the content of a variable in a TextField.
    The variable count the clicks and I want to display the sum in a TextField.

    Here's the code I did:

    limit the var: number = 29;
    var: number = 0;
    var current: Number = 0;
    _root.mask_mc.onPress = function() {}
    _root.bat_mc.gotoAndPlay (2);
    if(Count<limit) {}
    Count ++;
    } else {}
    _root.nextFrame;
    Count = 0;
    }
    }
    _root.scor_txt. Text = count;

    Yes, it is true, (this code look very similar to something I wrote to someone the other day ;)

    I would also not call to _root as it doen't look like it is needed here, if it resides on the main timeline (it looks that far :) (otherwise leave them there, I don't like calls to _root much)

    also, you can use:

    nextFrame();

    then it should be more like:

  • How to get to textfield height, including the content?

    How are you?

    I try to get the height of the textfields, but the returned value of getPreferredHeight is actually smaller than the actual size.

    My textfield contains long chain including newline('\n') values, but getPreferredHeight returns only a single size height line.

    Do you have another solution?

    Thank you.

    The field really been "rendered" when you want to discover this.  Until the field was laid out, he doesn't know how big it will be.

  • Invisible content TextField

    It's strange... all of a sudden all my textfields are not displayed and what happens in all my files. I must have turned something power switch in the settings of the Flash, but I do not know what?
    I use CS6 - can someone help me?

    / George

    Are you on windows? Last night all my computers came an automatic windows updates down and intall & when the pc restarted. Tons of fonts appeared as invisisble. basically the same thing happens to me. I asked my colleague to open the project file and the same thing for him. Then we have the two systenm restored on PC before the critical update yesterday night... using windows system restore option in win7 and fixed it. I can now see my fonts. and I would sugest therefore back the crtial that came out last night from M$ and we screwed with the help of all update Flash. Then set your machine to inform but not install updates to windows. I hope that M$ will relaese another update will fix this...
    Big Daddy Fink

    to roll back wondows update with the system restore option in windows 7 - goto start search bar, type the system restore you will see at the top of the list... click... on the left top... chose retore point system...

    don't forget to save works so you do not lose andthing in restoring

  • Dynamic TextField (with content in the chain) compiles on PC, dies on Mac.

    I have banners that have a large copy in an auto-scrolling movieclip.

    The drive works just dandy on a PC. When I have a co-worker use the same file, it turns off - nothing load in the TextField.  Worse, is that on a PC, the .swf scrolls to the end very well. On a Mac (Safari) the end of the copy does not stop the scroll bar.

    Here's the code used (on the main timeline):

    import TextField.StyleSheet;

    var styles = new TextField.StyleSheet ();

    styles.parseCSS (css);

    styles.setStyle ('body', {fontFamily: "Arial, Helvetica, without serif', fontSize: '9px', color: '#000000', leading:'-1px ;'});"})

    styles.setStyle ('h1', {fontFamily: "Arial, Helvetica, without serif', fontSize: '9px', color:' #3870B 7 ', fontWeight: 'bold'"});

    styles.setStyle ("li", {fontFamily: "Arial, Helvetica, without serif', fontSize: '9px', color: '#000000', marginLeft:'-20px'});"})

    styles.setStyle ("subBul", {fontFamily: "Arial, Helvetica, without serif', fontSize: '9px', marginLeft: '38px'"});

    styles.setStyle ("subBulPad", {fontFamily: "Arial, Helvetica, without serif', fontSize: '9px', marginLeft: '48px'"});

    styles.setStyle ("a", {fontFamily: "Arial, Helvetica, without serif', fontSize: '9px', color:' #424FA5 ', textDecoration:" underline", fontWeight: 'bold'});

    var copy: String = "copy of title < h1 > < / h1 >.

    + "< br > < p > < /p > chapter.

    + "< li > Lorem ipsum dolor sit amet, in nec, nunc lectus eget arcu duis, natoque proin quam non quis diam, not lorem curriculum to, EU phasellus ac in nulla pulvinar and.» Maecenas feugiat aliquam bibendum euismod, integer mi vivamus aliquam odio, lobortis sit aliquam, proin vitae purus placerat mauris nonummy potentialit vel sapien condimentum euismod. DUIs and sint laoreet condimentum dignissim orci ac, potentialit mi taciti no cum all over, ut etiam lorem sed erat aenean. Fitness wisi molestie lectus whole, felis sed elementum a molestie venenatis lorem, dictum suspendisse odio. Restore euismod erat, bibendum amongst gay tempor lobortis arcu. Lorem lacus risus non turpis sed felis, potentialit vivamus turpis. Libero wisi erat, tempus, total in sit vitae nonummy nec, nec nec restore restore amet taciti cras lectus. Nam AC massa vestibule, natoque etiam nec phasellus lobortis so. Interdum tristique fitness, vestibule vel, gravida vel, luctus laoreet varius sed phasellus quis a vehicula. CRAs torquent, magna tristique congue arcu vestibule was. ID netus platea lacus orci, surpassing in mauris purus practice. < /li > ".

    + "< li > amongst amet mauris ac. HAC nibh in sold, vel elit a fringilla quam aenean lectus. Aenean in dui. Anchor mi ut sit is enim. Quis curabitur vestibule to the vestibule libero, and not. Nulla tempus ligula id augue curae, ultrices adipiscing total dolor venenatis diam, neque vel aliquam ac sem cum id say aenean sem risus amongst vestibule aliquam blandit wisi. < /li > ".

    + "< br > < p > < /p > chapter.

    + "< p > < / p >"

    closedCopy();

    function closedCopy() {}

    var contentHeight = copy.length/3.55;

    var copyContent:TextField = copyMC.scroll_content.createTextField ("copyContent", this.getNextHighestDepth (), 0, 0, 265, contentHeight);

    copyMC.scroll_content.copyContent.multiline = true;

    copyMC.scroll_content.copyContent.selectable = false;

    copyMC.scroll_content.copyContent.wordWrap = true;

    copyMC.scroll_content.copyContent.styleSheet = styles;

    cH = contentHeight;

    copyMC.scroll_content.copyContent._height = cH;

    copyMC.scroll_content.copyContent.html = true;

    copyMC.scroll_content.copyContent.htmlText = isi;

    };

    * This is a condensed version of the script, but the key is here

    I spent a ton of time searching to see if anyone else has had a similar problem and it doesn't look like it, so any suggestions as to why this goes out on a Mac (compilation and view) I would really appreciate it.

    Thank you!!

    After sleeping on it for a bit, I came to this approach different, removed the

    var contentHeight = copy.length/3.55;

    and contentHeight in the createTextArea (which is now only about 20)

    and added in

    copyMC.scroll_content.copyContent.autoSize = true;

    that worked perfectly.

    Thank you!

Maybe you are looking for