Adding Scrollbar and buttons to Dynamic Text

Hello,
I am trying to connect dynamic text to scrollbar and buttons. I did tutorial and Lynda.com and practically pasted the code in with my file names and for some reason it does not work. It says I have a "Access of Undefined Property mask_mc" Did I need to create a variable for this? I didn't in the tutorial.
Right now I have the dynamic text loading successfuly in 2 different places and I wantd to add the scrollbar. I put the variables on frame 1 code and then I put the actually load code on the frame where it is needed.
Any suggestions?
Thanks! Sandra
HERE IS CODE FOR FRAME 1:
var textLoader:URLLoader = new URLLoader();
var textReq:URLRequest;
var scrollPercent:Number = 0;
var minScroll:Number;
var maxScroll:Number;
var targetScroll:Number = philText_mc.y;
var easing:Number = 5;
var scrollAmt:Number = 15;
var scrollDirection:Number = 0;
HERE IS CODE FOR FRAME WHERE TEXT LOADS:
textReq = new URLRequest("text_philosophy.txt");
function philosophyTextLoaded(event:Event):void {
    philText_mc.philosophy_txt.text = textLoader.data;
    minScroll = philText_mc.y;
    maxScroll = minScroll - philText_mc.height + mask_mc.height;
function dragScroller(event:MouseEvent):void
    var dragX:Number = line_mc.x - scroller_mc.width/2 + 1;
    var dragY:Number = line_mc.y;
    var dragW:Number = 0;
    var dragH:Number = line_mc.height - scroller_mc.height;
    scroller_mc.startDrag(false, new Rectangle(dragX,dragY,dragW,dragH));
    stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    stage.addEventListener(Event.ENTER_FRAME, setScrollPercent);
    stage.removeEventListener(Event.ENTER_FRAME, scrollText);
function stopDragging(event:MouseEvent):void
    scroller_mc.stopDrag();
function setScrollPercent(event:Event):void
    scrollPercent = (scroller_mc.y - line_mc.y) / (line_mc.height - scroller_mc.height);
    if(scrollPercent < 0)
        scrollPercent = 0;
    else if(scrollPercent > 1)
        scrollPercent = 1;
    targetScroll = (scrollPercent * (maxScroll - minScroll)) + minScroll;
    philText_mc.y -= (philText_mc.y - targetScroll) / easing;
function scrollUp(event:MouseEvent):void
    setDirection(scrollAmt);
function scrollDown(event:MouseEvent):void
    setDirection(-scrollAmt);
function setDirection(dir:Number):void
    scrollDirection = dir;
    stage.addEventListener(Event.ENTER_FRAME, scrollText);
    stage.addEventListener(MouseEvent.MOUSE_UP, stopScrolling);
    stage.removeEventListener(Event.ENTER_FRAME, setScrollPercent);
function scrollText(event:Event):void
    targetScroll += scrollDirection;
    philText_mc.y -= (philText_mc.y - targetScroll) / easing;
    if(philText_mc.y > minScroll)
        philText_mc.y = minScroll;
        targetScroll = minScroll;
    else if(philText_mc.y < maxScroll)
        philText_mc.y = maxScroll;
        targetScroll = maxScroll;
    scrollPercent = (philText_mc.y - minScroll) / (maxScroll - minScroll);
    scroller_mc.y = (scrollPercent * (line_mc.height - scroller_mc.height)) + line_mc.y;
function stopScrolling(event:MouseEvent):void
    scrollDirection = 0;
textLoader.load(textReq);
scroller_mc.buttonMode = true;
philText_mc.external_txt.autoSize = TextFieldAutoSize.LEFT;
scroller_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragScroller);
textLoader.addEventListener(Event.COMPLETE, philosophyTextLoaded);
up_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollUp);
down_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollDown);

Hello again,
Maybe I am asking this question wrong. Instead of making you try and figure out what's going on in my file what I really need to know is how you would take this code I am attaching and make it happen on another frame besides frame 1 and it doesn't appear on frame 1. I think this may help me understand a little better.
Also another way I was thinking to get around this would be to pull in an external swf into the spot where I want this text to go because I can make the scrollbars and external text work when it is the only thing going on in the movie. Would this be a bad way to set this up? and also SInce it is an external movie would I have maintimeline issues with mouse/scroller control?
thanks! sandra
Here is working code:
var textLoader:URLLoader = new URLLoader();
var textFile:URLRequest = new URLRequest("text/external.txt");
var scrollPercent:Number = 0;
var minScroll:Number;
var maxScroll:Number;
var targetScroll:Number = text_mc.y;
var easing:Number = 5;
var scrollAmt:Number = 15;
var scrollDirection:Number = 0;
function textLoaded(event:Event):void
    text_mc.external_txt.text = textLoader.data;
    minScroll = text_mc.y;
    maxScroll = minScroll - text_mc.height + mask_mc.height;
function dragScroller(event:MouseEvent):void
    var dragX:Number = line_mc.x - scroller_mc.width/2 + 1;
    var dragY:Number = line_mc.y;
    var dragW:Number = 0;
    var dragH:Number = line_mc.height - scroller_mc.height;
    scroller_mc.startDrag(false, new Rectangle(dragX,dragY,dragW,dragH));
    stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    stage.addEventListener(Event.ENTER_FRAME, setScrollPercent);
    stage.removeEventListener(Event.ENTER_FRAME, scrollText);
function stopDragging(event:MouseEvent):void
    scroller_mc.stopDrag();
function setScrollPercent(event:Event):void
    scrollPercent = (scroller_mc.y - line_mc.y) / (line_mc.height - scroller_mc.height);
    if(scrollPercent < 0)
        scrollPercent = 0;
    else if(scrollPercent > 1)
        scrollPercent = 1;
    targetScroll = (scrollPercent * (maxScroll - minScroll)) + minScroll;
    text_mc.y -= (text_mc.y - targetScroll) / easing;
function scrollUp(event:MouseEvent):void
    setDirection(scrollAmt);
function scrollDown(event:MouseEvent):void
    setDirection(-scrollAmt);
function setDirection(dir:Number):void
    scrollDirection = dir;
    stage.addEventListener(Event.ENTER_FRAME, scrollText);
    stage.addEventListener(MouseEvent.MOUSE_UP, stopScrolling);
    stage.removeEventListener(Event.ENTER_FRAME, setScrollPercent);
function scrollText(event:Event):void
    targetScroll += scrollDirection;
    text_mc.y -= (text_mc.y - targetScroll) / easing;
    if(text_mc.y > minScroll)
        text_mc.y = minScroll;
        targetScroll = minScroll;
    else if(text_mc.y < maxScroll)
        text_mc.y = maxScroll;
        targetScroll = maxScroll;
    scrollPercent = (text_mc.y - minScroll) / (maxScroll - minScroll);
    scroller_mc.y = (scrollPercent * (line_mc.height - scroller_mc.height)) + line_mc.y;
function stopScrolling(event:MouseEvent):void
    scrollDirection = 0;
textLoader.load(textFile);
scroller_mc.buttonMode = true;
text_mc.external_txt.autoSize = TextFieldAutoSize.LEFT;
scroller_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragScroller);
textLoader.addEventListener(Event.COMPLETE, textLoaded);
up_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollUp);
down_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollDown);

Similar Messages

  • On button rollover Dynamic text and Movieclip appear

    Hi guys,
    I've got an issue - When one of my buttons is rolled over, I want text and a movieclip to appear. When the button is no longer rolled over, I want the text and movieclip to disappear.
    The way that I was going to do this was to have anchor_mc as an anchor, and upon rollover have the movieclip play from inside the anchor (as its at the exact X & Y that its needed at) and dynamic text appear.
    Questions:
    1) How do I attach mc_textbox to mc_anchor --- OR, how do I set coordinate for just where mc_textbox should show?
    2) How do I then make the movieclip disappear if the button is no longer rolled over?
    3) Is it not possible for me to merge all of the dynamic text functions into one function, using IF statements? I tried this, but couldn't work it out.
    AS3 code is attached below.
    import flash.events.MouseEvent;
    stop();
    line1.addEventListener(MouseEvent.ROLL_OVER, line_in1, false, 0, true);
    line1.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line2.addEventListener(MouseEvent.ROLL_OVER, line_in2, false, 0, true);
    line2.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line3.addEventListener(MouseEvent.ROLL_OVER, line_in3, false, 0, true);
    line3.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line4.addEventListener(MouseEvent.ROLL_OVER, line_in4, false, 0, true);
    line4.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line5.addEventListener(MouseEvent.ROLL_OVER, line_in5, false, 0, true);
    line5.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line6.addEventListener(MouseEvent.ROLL_OVER, line_in6, false, 0, true);
    line6.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line7.addEventListener(MouseEvent.ROLL_OVER, line_in7, false, 0, true);
    line7.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line8.addEventListener(MouseEvent.ROLL_OVER, line_in8, false, 0, true);
    line8.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line9.addEventListener(MouseEvent.ROLL_OVER, line_in9, false, 0, true);
    line9.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    function line_in1(e:MouseEvent):void
            line_output.text = "This is a test made by the MonkeyTest that has previously messed up\n        And testing a new line";
    function line_in2(e:MouseEvent):void
            line_output.text = "up messed previously has that MonkeyTest the by made test a is This";
    function line_in3(e:MouseEvent):void
            line_output.text = "This is a test made by the MonkeyTest that has previously messed up\n        And testing a new line";
    function line_in4(e:MouseEvent):void
            line_output.text = "up messed previously has that MonkeyTest the by made test a is This";
    function line_in5(e:MouseEvent):void
            line_output.text = "This is a test made by the MonkeyTest that has previously messed up\n        And testing a new line";
    function line_in6(e:MouseEvent):void
            line_output.text = "up messed previously has that MonkeyTest the by made test a is This";
    function line_in7(e:MouseEvent):void
            line_output.text = "This is a test made by the MonkeyTest that has previously messed up\n        And testing a new line";
    function line_in8(e:MouseEvent):void
            line_output.text = "up messed previously has that MonkeyTest the by made test a is This";
    function line_in9(e:MouseEvent):void
            line_output.text = "up messed previously has that MonkeyTest the by made test a is This";
    function line_out(e:MouseEvent):void
            line_output.text = "";
            var mc= new mc_empty(); addChild(mc);

    It isn't relly clear to me what you have versus what you want, so these answers may be equally unclear to you.
    1. One way to join them together is to maually place one inside the other while authoring the file.  Another way is to use addChild to add the text mc to the anchor...  mc_anchor.addChild(mc_textbox);  To control where the text mc appears you can set its x and y properties.using actionscript... mc_textbox.x = 0;
    2. To make the movieclip disappear you can set its visible property to false... mc_anchor.visible = false;
    3. You can probably reduce that code substantially, though it partly depends on what variations there are really going to be in the text that displays for each rollover.  For now, I'll assume the text will be entirely different for each...
    for(var i:uint=1; i<10; i++){
         this["line"+String(i)].addEventListener(MouseEvent.ROLL_OVER, line_in, false, 0, true);
         this["line"+String(i)].addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    function line_in(e:MouseEvent):void {
         var lineTarget:MovieClip = MovieClip(e:currentTarget);
          // could use a switch instead of the if's in series if you know what a switch is
         if(lineTarget == line1){
              // do things for line1
         } else if(lineTarget == line2){
              // do things for line2
         ) else if.... etc

  • Adding a math amount to dynamic text

    Hi all,
    I am working on a key pad that has a clock, allows you to
    enter a time amount and then count down that amount or add seconds
    to it.
    Here is the file:
    Flash
    movie
    As you can see there are a few things that I have been unable
    to do due to my beginning skill level:
    1a) 2 :34 PM isnt really a functioning clock, its just text.
    While it doesn't need to actually work like a real clock, it should
    have the colin blinking, and when you press any of the 1 - 9
    numbers, it should clear away and present : 00, or : 0(number of
    pressed button).
    1b) How do I constrain the dynamic text box to only four
    numbers in the format of "xx : xx", where x is any number from 0 to
    9, then a space on either side of the colin. Numbers get added from
    the right x first and get pumped to the next placeholder. (dc : ba)
    2) Again, pressing OK doesnt really countdown anything, it
    just says "cooking'. Upon pressing OK, how to I tell the button to
    count down to zero whatever the number is in the dynamic text box?
    3) The add button is supposed to add 2 seconds to whatever
    number (except the clock) is displayed in the dynamic text box, but
    it simply places a 2 next to the numbers. If 1:04 is displayed,
    then pressed Add should equate 1:06, not 1:042
    Here is the code:
    btn1.theNumber.text = "1";
    btn2.theNumber.text = "2";
    btn3.theNumber.text = "3";
    btn4.theNumber.text = "4";
    btn5.theNumber.text = "5";
    btn6.theNumber.text = "6";
    btn7.theNumber.text = "7";
    btn8.theNumber.text = "8";
    btn9.theNumber.text = "9";
    btn0.theNumber.text = "0";
    okButton.theNumber.text = "OK";
    cancel.theNumber.text = "CANCEL";
    addmore.theNumber.text = "Add";
    theCode.text = "2 : 34";
    btn1.onPress = function () {
    theCode.text += "1";
    btn2.onPress = function () {
    theCode.text += "2";
    btn3.onPress = function () {
    theCode.text += "3";
    btn4.onPress = function () {
    theCode.text += "4";
    btn5.onPress = function () {
    theCode.text += "5";
    btn6.onPress = function () {
    theCode.text += "6";
    btn7.onPress = function () {
    theCode.text += "7";
    btn8.onPress = function () {
    theCode.text += "8";
    btn9.onPress = function () {
    theCode.text += "9";
    btn0.onPress = function () {
    theCode.text += "0";
    okButton.onPress = function () {
    theCode.text = "Cooking";
    cancel.onPress = function () {
    theCode.text = "2 : 34";
    addmore.onPress = function() {
    theCode.text = theCode.text + 2;

    Ok,
    Here is what I have been trying, seen below, following what
    Don mentioned. However, I get an error if I keep the " " around the
    0 in the last bit of code. And in reference to my first post, how
    do I expand the code to satisfy those questions. I'll keep trying!
    btn0.theNumber.text = "0";
    btn1.theNumber.text = "1";
    var numZero:Number = 0;
    var numOne:Number = 1;
    var numTwo:Number = 2;
    var numThree:Number = 3;
    var numFour:Number = 4;
    var numFive:Number = 5;
    var numSix:Number = 6;
    var numSeven:Number = 7;
    var numEight:Number = 8;
    var numNine:Number = 9;
    btn0.onPress = function () {
    theTime.text = numZero
    btn1.onPress = function () {
    theTime.text = numOne
    if(numZero <10){
    numZero = "0" + numZero
    **Error** Scene=Scene 1, layer=actions, frame=1:Line 27: Type
    mismatch in assignment statement: found String where Number is
    required.
    numZero = "0" + numZero
    Total ActionScript Errors: 1 Reported Errors: 1

  • Flash button with dynamic text

    I'm trying to create a flash button so that it can toggle
    between "Sound On" and "Sound Off" but I feel like I'm doing
    something wrong and it errors out on me.
    I have a button on stage as, and in my up/over/down/hit in
    different colors I have a dynamic text field identified as
    sound_txt.
    Here's the script I have so far for my frame:
    stop();
    mutebtn.addEventListener(MouseEvent.CLICK,muteDo);
    function muteDo(event:MouseEvent) {
    if (mutebtn.sound_txt.text == "Sound Off") {
    mutebtn.sound_txt.text = "Sound On";
    } else {
    mutebtn.sound_txt.text = "Sound Off";
    and this is the error message I am getting:
    TypeError: Error #1010: A term is undefined and has no
    properties.
    at buttontst_fla::MainTimeline/muteDo()
    TypeError: Error #1010: A term is undefined and has no
    properties.
    at buttontst_fla::MainTimeline/muteDo()
    Can someboy please advise as to how I can get this to
    work?

    I tried bringing the textfield out of the button but while it
    worked when I pressed the button portion that is not under the
    text, it was the part of the text that got in the way from doing
    anything. I wonder where I can find an existing example that works
    the way I want it too so I can at least follow that example. I
    think I tried making the dynamic text a movie clip but was still
    getting similar errors.
    Edit: I at least got it to work by converting the button into
    a movie clip although I had also wanted it so that I could also
    change the foreground color of the dynamic text upon rollover,
    etc.

  • Adding images and buttons without a frame appearing

    I would like to add images to some of my pages without having them appear in a frame. I would like to place some transparent gifs on the page to use as buttons for hyperlinks. I would also like to have some photos (with transparent backgrounds that appear on the page and are not surrounded by a picture frame. Any Suggestions

    iWeb seems to default to stroking newly-added images and shapes. Pages (iWeb's close relation) includes a way to change the default appearance, but I can't find anything similar in iWeb. You can, of course, remove the stroke using the Graphic Inspector (just set Stroke to None). Transparency in gifs and photo images is supported. Just drag into iWeb or use Insert > Choose... Again, remove the stroke if this appears.

  • New and need help - drag and drop with dynamic text

    So I'm doing this project and as an animator I'm not familiar with the whole action script side of flash
    Okay so far I've managed to create the whole Drag and Drop feature and it works well, the thing is I want to make it so when you drag in object in the correct spot and new text appears, and I need like six different object with the dynamic text. but I have no idea how to integrated it in my code or where I should start!
    So i based myself on some tutorial so theres some code in there that had dynamic text, but not exactly what i wanted
    Your help would be much appreciated!
    This is my code:
    var counter:Number = 0;
    var startX:Number;
    var startY:Number;
    six_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    six_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    five_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    five_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    four_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    four_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    three_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    three_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    two_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    two_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    one_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    one_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    function pickUp(event:MouseEvent):void {
        event.target.startDrag(true);
    reply_txt.text = "";
    event.target.parent.addChild(event.target);
    startX = event.target.x;
    startY = event.target.y;
    function dropIt(event:MouseEvent):void {
        event.target.stopDrag();
    var myTargetName:String = "target" + event.target.name;
    var myTarget:DisplayObject = getChildByName(myTargetName);
    if (event.target.dropTarget != null && event.target.dropTarget.parent == myTarget){
        reply_txt.text = "Good Job!";
    event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    event.target.removeEventListener(MouseEvent.MOUSE_UP, dropIt);
    event.target.buttonMode = false;
    event.target.x = myTarget.x;
    event.target.y = myTarget.y;
    } else {
    reply_txt.text = "Try Again!";
    event.target.x = startX;
    event.target.y = startY;
        if(counter == 6){
            reply_txt.text = "Congrats, you're finished!";
    six_mc.buttonMode = true;
    five_mc.buttonMode = true;
    four_mc.buttonMode = true;
    three_mc.buttonMode = true;
    two_mc.buttonMode = true;
    one_mc.buttonMode = true;

    where you have
    xxx.text = ....
    is where you're assigning text.

  • Add prices and display in dynamic text box

    Hey,
    I have a combobox and radio buttons with specific prices that
    I want attached depending on the choice the user makes. I'm having
    trouble getting the application to add the total of the selections
    and display the total in a dynamic textbox.
    I am trying to use global variables. I set them to a certain
    value depending on what is selected. At the end I set add them up
    in the variable total and set that equal to the text box named
    totalPrice.
    Right now the value of the global variables is not being
    returned from their functions.
    Any suggestions for how to do this correctly?
    Thanks!

    kglad,
    Thanks for your quick response. I know that the return
    doesn't work and that is why I decided to post it. Your suggestion
    about updating "total" was something I hadn't thought of. Can you
    give me anymore in terms of how to get the values out of the
    function and update "total"?
    Thanks!
    Oh, if anyone needs a link to the fla...
    fla file in zip
    format

  • Adding Symbols and Underlining using FCP Text Generators

    Hello:
    I would like to add the © symbol to FCP text and underline text. How is this possible? Thanks.

    Underline and scroll could be a bit tricky. You woud have to move two separate elements -the text and the underline generator together. I suppose you could nest them and apply a move to both at the same time if its just a short piece, it gets complicated when that has to appear somewhere in the middle of a longer scroll.
    I prefer to make a still in Photoshop for scrolls and move the whole thing with only two keyframes.
    You just need to make a Photoshop canvas that is tall enough to hold all the text. Photoshop also supports the underline function (in the Paragraph palette).
    In LiveType, you can type a row of hyphens below your text and adjust the Tracking to squash them together make a solid line, then adjust the Leading value to move it into position.

  • Adding page break while printing dynamic text matter

    Hi!
    This is a bit of a tough one ...
    Im trying to print the content of a large scroll pane that
    spans multiple pages. So far i have managed to get the contents
    printing out, dividing the content between the pages using the
    PrintJob class.
    My problem now is that i want to add a header and footer
    (both movie clips) on each page and want to add page break like
    ms-word.

    Still playing around with this, but I still can't get it to work correctly. I've selected Page 1 and tried to change the Content from Positioned to Flowed, but when I do, all my boxes are moved to the 2nd page, and the items on the 2nd page are now on the 3rd page. Can't for the life of me figure this out.
    I just want my boxes to grow as you type in them, allowing them to expand to additional pages by moving existing test boxes down the page.

  • Button roll-over animation with dynamic text

    So I have a button I want to be able to use over and over. When you roll over the button, it does an animation and has a dynamic text box in it. Ovbiously im trying to make each text different for each button. What would be the smartest way to go about this? Thanks,
    Dan

    create a movieclip, put a stop() in frame one and add your "up" graphics, textfield etc put everything in its own layer.  create another keyframe on that timeline and label the frame "over" and add new keyframes only on the layers that will change.  ie, if the textfield doesn't change, don't put a keyframe on its layer.  likewise, for a "down" frame, if you want one.
    use instance names for everything in the movieclip that you want to control with actionscript.  ie, your textfield(s) will need instance name(s).  i usually use one textfield named tf.
    then use:
    btn1.tf.text = "test"
    btn1.addEventListener(MouseEvent.ROLL_OVER,overF);
    btn1.addEventListener(MouseEvent.ROLL_OUT,outF);
    btn1.addEventListener(MouseEvent.MOUSE_DOWN,downF);
    function overF(e:Event){
    // if you have another textfield here assign its text
    // likewise for other objects you want to change
    e.currentTarget.gotoAndStop("over");
    function outF(e:Event){
    // if you changed textfields in the other frames, reassign tf.text here
    e.currentTarget.gotoAndStop(1);
    function downF(e:Event){
    // if you have another textfield here assign its text
    e.currentTarget.gotoAndStop("down");

  • Embedding fonts in dynamic text fields

    I am having trouble embedding a font in my Flash file. I have the font in my library. I have the text field selected to that font with the * next to it.
    In my actions I have:
    vid_title_txt.embedFonts = true;
    If I set it to false instead, it shows a different font. But if it is set to true, nothing shows. I am running out of ideas what to look at to solve this issue. What am I doing wrong here?
    Thank you very much for any help with this!

    I am in AS2.
    I followed these steps.
    Open the Library panel (Ctrl+L).
    Add a font to your library - click the options menu in the upper right corner of the panel and select New Font from the menu.
    In the Font Symbol Properties dialog box select the font, size and style that you want and give the font combination a name. Click OK to close the dialog box.
    Right-click the font symbol in the library and select Linkage from the contextual menu.
    In the Linkage Properties dialog box, click the Export for ActionScript button to enable both the Identifier and AS 2.0 Class text input fields. Leave the default Identifier value and click OK to close the dialog box.
    Select the text tool from the Tools panel and draw a dynamic text field on the Stage.
    Give the text field an instance name of "my_txt". In the Font menu select the symbol name you gave the embedded font earlier. You should see a little asterisk (*) beside the name.
    In the Property inspector set the font size and style to match those in the Font Symbol Properties dialog box earlier.
    Open the Actions Panel and add the following code to Frame 1 of your Flash document:
    my_txt.embedFonts = true;
    my_txt._rotation = 15;
    my_txt._alpha = 10;

  • Dynamic Text in Child SWF

    I created a tool tip symbol and corresponding class that
    follows the mouse cursor. The tool tip works fine when the swf that
    it lives in is run by itself. When I load that swf as a child, the
    dynamic text won't work. The tool tip clip appears and follows the
    mouse but the text doesn't show. The tool tip class extends movie
    clip and accesses the dynamic text as follows.
    import flash.display.*;
    import flash.text.TextField;
    public class tooltip extends MovieClip{
    public var dynTextInstance:TextField;
    public function setTipText(textPassedToFunction:String):void
    this.dynTextInstance.htmlText = textPassedToFunction;
    Any help will be greatly appreciated...
    Thanks

    Could you please post entire class or, at least, the full
    code for how you create the textfield instance and set its
    parameters?

  • Printing a movie clip with dynamic text boxes

    I've got a certificate inside a movie clip, and i want the
    dynamic text box to dispay the user name, but for some reason it is
    coming up undefined, even though i have the dynamic text box set to
    finalname = _root.inputname, but it comes up as undefined on the
    screen. :( Can anyone tell me where i am going wrong?
    Is there a way to print just a specific movie clip on the
    screen? I can only print all the frames in the movie and without
    the dynamic text box... any help would be greatly
    appreciated.

    assign the mouseChildren property of your movieclip to false.

  • Dynamic text box, HTML Text with Image

    Hello Everyone,
    I am using Flash version 8. I have used the text tool and
    created a dynamic text box and have attached the UIScrollBar
    component to it. This text box is configured to allow the use of
    html text to be inputted to it. I have code that reads a file which
    contains a list of text files that I then read and place them into
    the text box. The user can use the scroll bar to scroll through all
    the text.
    I have created an image that is a picture of the tab portion
    of a file folder. On the tab I have place some text. This was all
    done in Photoshop. This tab image is used to separate the different
    stories in the text box. The image is save as a jpeg file
    Everything you have just read works with out any problems.
    Now for the problem!
    This image is only 20 pixels tall and the text is not very
    readable. As we all know the HTML tags are very limited in Flash 8.
    Ideally I would like to put the text and image in to the text
    box as I would normally do. Then place text on top of the image and
    have it all scroll properly with in the text box.
    I have taken the tab image and converted it in to a graph
    symbol and then put the text on top of the image. This looks good;
    however I don’t know how (or if it is even possible) to place
    the graphic symbol in to the text box at the correct place within
    the text.
    Does anyone have ideas on what may work? Remember that the
    image I am working with is only 20 pixels tall which is why the
    text quality on the image is so poor.
    Thank you all for any help you may provide,
    Steve

    Yes Tim I am using the <img> tag and I know that I
    can’t place text over the image. I have set the height and
    width to be the exact size of the image. However When you go to the
    webpage it will open the movie to the maximum size based on the
    resolution of your display; however I do maintain the aspect ratio
    of the movie. For testing I did set a fix size to the size of the
    movie. Sometimes the fix size (1000x750) looks better and sometimes
    a larger size (example 1280x1024). I believe that the main problem
    is the fact the size of the image is 670 pixels wide by 25 pixels
    high and of the 25 pixels the text is only 18 pixels tall. In
    Photoshop this makes it about a 1.75 point font. As you can see the
    real problem is that I don’t have enough pixels to make up
    the text. This is why I am looking for an alterative way to create
    the text.
    I tried importing the image into flash as a graphic symbol
    and then using the text tool to create the text. The results looked
    real sharp, the text was nice and crisp (just what I wanted). The
    problem is that I could not find a way to place the graphic symbol
    into the dynamic text area like id did using the <img> tag.
    This symbol needs to scroll as you scroll the text in the text
    area.
    This is why I am asking for help. I am looking for some ideas
    that may work.
    Thank you,
    Steve

  • Actionscript for Dynamic Text

    I am designing my first flash site, and created a Dynamic
    text field called header_txt. I want the content inside this field
    changed based on which page the user navigates to. I have used an
    "IF" statement inside a Declared Function , but wonder if that is
    the best option, also, my IF statement is no working. Here it is:
    function headingChange() {
    if (_root._currentframe == "contact") {
    header_txt.text = "Contact Us";
    } else if (_root._currentframe == "about") {
    header_txt.text = "About Us";
    headingChange();
    var header_txt:String = "";
    Why is this not working, and what would be a better way of
    changing this field?
    Thanks for the help!
    Chuck

    _currentframe only returns a number. You can't access the
    frame's label with actionscript, except to specify it as a
    parameter in the gotoAndPlay() method.
    I would assume that you are calling the headingChange()
    function at each labeled frame. If you are, then just change the
    function call to this:
    At frame labeled "contact": headingChange("contact");
    At frame laveled "about": headingChange("about");
    Change your function to read as follows:
    function headingChange(s:String) {
    if (s== "contact") {
    header_txt.text = "Contact Us";
    } else if (s== "about") {
    header_txt.text = "About Us";
    Or, you could just access your dynamic textfield directly
    everytime you get to a new frame with a label by executing the
    following code in a frame:
    At the frame labeled "about": header_txt.text = "About Us";
    Either way would work. Though I like keeping stuff like this
    in a function. It makes it easier to update so that it does more in
    the future.
    Tim

Maybe you are looking for

  • Can't open sql file in subfolders.

    Hi, 1. I can't open any file by Windows Browser, right click, and open with SQL Developer if the file is located in subfolder which is several levels deep from C:\. 2. I can't use Files (from SQL Developer) to browse subfolders than 7 or 8 levels dee

  • Syntax Error using Numbers

    I keep getting a syntax error when I type this in... =(B1/50)+(C1/12)-(MIN(D1, [4])+/5) it is a formula to calculate weight watches points. here it is as seen on a website. p=(c/50)+(f/12)-(min{r,4}/5) p=points c=calories f=fat grams r=dietary fiber

  • Lost widgets after clean install of Snow Leopard

    Does anyone know how I can restore my widgets (& the info on them, mostly sticky notes)? I did a clean install of Snow Leopard and I was able to pretty much restore everything manually from TIme Machine. I did go into "Users/Library/Widgets" and rest

  • Adobe has a Terry White TV program that covers attaching a copyright image to a photograph. Can you please tell me how this is done or the name of Terry Whit's program?

    Adobe has a Terry White TV program that covers attaching a copyright image to a photograph. I have not been able to find this topic in the Adobe Photoshop CS6, Classroom in a Book. Can you help me with a reference on how this is done or possibly name

  • Change message mapping

    Dear experts, As i am very to XI,to some this question might seem a little absurd. But it is alway better to work safely so i am asking. I am asked to change Fix Values in one of message mapping.At the same time i am asked to insert a new value also.