Aligning dynamic text

Hi,
I've got a dynamic text box that retrieves text using Action
script from an external PHP file. It works well except when I set
the dynamic text in Flash to be centrally aligned it still aligns
the text to the left when I play the movie. I'm guessing it's to do
with the script I'm using to retrieve the PHP file but as I didn't
write it myself I don't know what bit needs to be altered.
Any help would be greatly appreciated,
Leo (using Flash 8)

Sorry, I misunderstood your question – the code was
created in the authoring environment but despite assigned center
alignment in the properties panel it didn't come out that way in
the movie. Anyway I resolved the problem with the following piece
of code...
Cheers – Leo

Similar Messages

  • Flahs CS3 Datagrid Dynamically align Header Text

    Hello!
    I am getting problem with Flash CS3 Datagrid. I am not able to align Header Text dynamically. Can any one sujest How to set Text Alignment dynamically. I want align first header column Text "left align" and rest of the columns Text are "right align".
    My code as bellow but it is not working
    .as code
    package {
        import fl.controls.dataGridClasses.HeaderRenderer;
        import flash.text.TextFormat;
        public class headerRender extends HeaderRenderer {
            public var headerTxt :TextFormat;
            public function headerRender()
                //this.super();       
                headerTxt = new TextFormat();
                headerTxt.font =  "Verdana";
                headerTxt.color = 0x000000;
                headerTxt.align = "right";
                headerTxt.size = 11;
                setStyle("textFormat", headerTxt);
    FLA code
    import fl.controls.DataGrid;
    import MyCellRenderer;
    import fl.data.DataProvider;
    import fl.managers.StyleManager
    import fl.controls.dataGridClasses.DataGridColumn;
    var dp:DataProvider = new DataProvider();
    dp.addItem({label:"Item a", data:0});
    dp.addItem({label:"Item b", data:1});
    dp.addItem({label:"Item c", data:2});
    dp.addItem({label:"Item d", data:3});
    dp.addItem({label:"Item e", data:4});
    dp.addItem({label:"Item f", data:5});
    dp.addItem({label:"Item g", data:6});
    dp.addItem({label:"Item h", data:7});
    dp.addItem({label:"Item i", data:8});
    dp.addItem({label:"Item j", data:9});
    var myDataGrid:DataGrid = new DataGrid();
    myDataGrid.addColumn("label");
    myDataGrid.addColumn("data");
    myDataGrid.dataProvider = dp;
    myDataGrid.width = 200;
    myDataGrid.rowCount = dp.length;
    myDataGrid.move(10, 10);
    addChild(myDataGrid);
    //set second header colum right align
    myDataGrid.getColumnAt(1).headerRenderer = headerRenders;
    Please let me know where I am wrong
    Mandar Mukadam
    Sr. Multimedia Developer

    This forum is about the Cloud as a delivery process, not about using individual programs
    If you start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Linking a class to a dynamic text field to load XML data.

    Hi,
    I'm quite new to ActionScript and would be grateful for any help here.
    I want to load text into a dynamic text field (called 'about_tab') using  a class depending on the language selected (by clicking on a flag icon)  by the user.
    I managed to get this to work when the ActionScript was written directly  in the timeline, but am having problems with doing the same thing via a  class.
    This is my class file:
    package
    import flash.display.SimpleButton;
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    import flash.net.URLRequest;
    import flash.net.URLLoader;
    import flash.events.Event;
    public class ChangeLang extends SimpleButton
    public function ChangeLang()
    addEventListener(MouseEvent.CLICK, switchLang);
    trace("ChangeLang class working");
    public function switchLang(event:MouseEvent):void
    var lang = event.target.name;
    var req:URLRequest = new  URLRequest("languages/"+lang+".xml");
    var loader:URLLoader = new URLLoader();
    var substance:XML;
    function xmlLoaded(event:Event):void
    trace("function xmlLoaded is running");
    substance = new XML(loader.data);
    about_tab.text =  substance.about_lbl;
    loader.addEventListener(Event.COMPLETE, xmlLoaded);
    loader.load(req);
    Here's one of my XML files (the other is the same except "About" is  written in German):
    <substance>
    <about_lbl>About</about_lbl>
    </substance>
    When I run it, it returns my trace statements that the class ChangeLang  and the function xmlLoaded are running, but no text appears in the  dynamic text field (I should/want to see the word 'About'). I get this  error message:
    1120: Access of undefined property about_tab
    The problem, I'm guessing, is in the part in red in my code. I think I need to target the text field in the display list by creating a  reference to it. If so, could someonw point out how I do this, or perhaps a tutorial that would help. I've tried adding the word stage (i.e.,stage.about_tab.text =  substance.about_lbl; ) but it still doesn't connect. I guess there's something really simple I'm missing, so I  apologize if this comes across as a stupid question
    Thanks for any help.

    Hello flashrocket!
    I'm also new to AS3 and I've just started using external classes and I think I know what you should do to put your code to work.
    Instead of using the text field you created inside your flash file, why don't you use the "TextField" class to create an instance of this object? It's the exact same thing as when you create and instantiate a new text field inside Flash.
    First, import flash.text.*; (includes classes like TextField, TextFieldAutoSize, TextFormat, TextFormatAlign, etc)
    Than you just have to create a var like
    public var about_tab : TextField;
    or
    public var about_tab : TextField = new TextField();
    then, to adjust the properties of this tab you use dotsyntax as if it where on your stage like:
    about_tab.x = 50; about_tab.alpha = .5; etc...
    you can even create a function to "config your textField"
              private function createAndConfigTextField() : void {
                   about_tab = new TextField(); //you only need this line if you
              // only typed something like "public var about_tab:TextField;
              // if instead you used "public var about_tab:TextField = new TextField(); outside
              // this function, just skip this first line because you already have an instance of
              // text field named "about_tab"...
                            about_tab.autoSize = TextFieldAutoSize.CENTER;
                   about_tab.background = true;
                   about_tab.border = true;
                   var aboutTextFormat : TextFormat = new TextFormat();
                   format.font = "Arial";
                   format.color = 0x000000;
                   format.size = 11;
                   format.bold = true;
                   format.align = TextFormatAlign.CENTER;
                   about_tab.defaultTextFormat = aboutTextFormat;
                   addChild(about_tab);
    This is just an example of what you can do... I hope you get it... let me know if you have any doubt...

  • Adobe form -- Issue in Displaying Dynamic text along with Static text

    Hi All,
    I am having an issue when i am displaying a dynamic text along with static text in adobeforms.
    The dynamic text is slightly coming down and not aligned with the static text. i can see half row it is coming down.
    how to align both texts to be printed in same format.
    Request all of your expert advices in achieving this .
    Thank you in advance.
    Thanks&Regards,
    Phani Miriyaila.

    Hi,
    Select both dynamic and static text in the layout. Goto Object palette -> Layout. Give values to X,Y coordinates and Height & Width. Anchor properly and specify margins as well.
    Select both dynamic and static text in the layout. Right click on it and goto palettes -> Paragraph. It gives you the text alignment options. Align the text and give similar font and size.
    Thanks & Regards,
    Sanoosh

  • Dynamic Text won't Print - Ahhhh! Help!!!

    I'm importing a png file using an xml file and a text file
    for importing text. The image and text show up fine, but when I
    PRINT, both don't show up. I"VE GOT TO GO LIVE WITH THIS TODAY. It
    has to Print! PLEASE HELP!

    I found my own answer and thought I should share it with all
    of you. Since I was so surprised that you had to use ActionScript
    to tell the movie to allow dynamic text or a dynamic png files to
    print. You basically add the following lines for each instance of
    dyanmica text or for a movie clip. I was alos using a prebuilt
    component, so I had to give this component an instance name.
    function printpic(){
    print(this.pic, "bframe");
    I called the function printpic just to stay in alignment with
    the instance name of the movie clip on the stage which was pic.
    Then everything printed like it was suppose to.
    D

  • Dynamic text doesnt appear chinese word!!!!

    dynamic text doesnt appear chinese word.
    i have try to set to arial unicode but still cant.
    Pls help.
    THx

    I change that line but is the same result....
    If I have one event it look like this:
    and if I fill all events look like this:
    as you can see it doesnt align vertical....its the same alignment on the two images.... here is my code again...
    var urlLDR:URLLoader=new URLLoader();
    urlLDR.addEventListener(Event.COMPLETE,f);
    urlLDR.load(new URLRequest("hallsXML.xml"));
    function f(e:Event) {
        var xml:XML =new XML(urlLDR.data);
        TXThall.autoSize = "center";
        TXThall.text = "";
        for(var i:uint=0;i<xml.hall.length();i++){
            TXThall.appendText(xml.hall[i]+"\n");
    TXThall.y= Math.floor((stage.stageHeight - TXThasll.textHeight) / 2);
    My page size of the project is 768 * 1024 and the position & size of the dynamic text is X: 384.0    Y: 332.5  W: 664.0    H: 405.9...
    I dont know if it helps that data....
    Thanks for responding and I hope you can help me figure out this...

  • Dynamic Text Field Height (k)

    I have generated a dynamic Text Field through ActionScript
    (actually it
    generates a bunch)
    this["char"+ii].createTextField("true_txt", 997+ii, 0, 0, 1,
    1);
    Everything is working well, with one exception. I have the
    font, size,
    color done through ActionScript. The particular font I am
    using,
    ElanBook is getting cut off in the Text Field slightly.
    I've tried a number of methods to get the text field taller,
    but no
    dice. Is there a way to specify that the text align within a
    Text Field
    to the center, bottom, baseline, etc. using ActionScript?
    -Kirk

    no, but you can size your textfield using any number of
    textfield properties. in particular, you should check the autoSize
    property.

  • Dynamic Text in Paragraph Form as in Database

    I am building a site for a church and am setting up a page
    for the pastor to input his on thoughts as he sees fit. In the
    database (access) it has spaces where spaces need to be and you can
    see where one paragraph ends and the other starts but when I pull
    it to a page as dynamic text, it all jumbles together in 1
    paragraph. can someone help me.
    Thanks

    I can tell you guys really want to help, but please consider
    me a beginner. I don't see "VbCr" or "Chr10" in my code anywhere.
    or what to actually replace. I appreciate everything that has been
    posted. Can you be a little more specific for adumb programmer.
    Thank you in advance
    Here is the code for the ASP page
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <%
    ' *** Logout the current user.
    MM_Logout = CStr(Request.ServerVariables("URL")) &
    "?MM_Logoutnow=1"
    If (CStr(Request("MM_Logoutnow")) = "1") Then
    Session.Contents.Remove("MM_Username")
    Session.Contents.Remove("MM_UserAuthorization")
    MM_logoutRedirectPage = "/login.asp"
    ' redirect with URL parameters (remove the "MM_Logoutnow"
    query param).
    if (MM_logoutRedirectPage = "") Then MM_logoutRedirectPage =
    CStr(Request.ServerVariables("URL"))
    If (InStr(1, UC_redirectPage, "?", vbTextCompare) = 0 And
    Request.QueryString <> "") Then
    MM_newQS = "?"
    For Each Item In Request.QueryString
    If (Item <> "MM_Logoutnow") Then
    If (Len(MM_newQS) > 1) Then MM_newQS = MM_newQS &
    MM_newQS = MM_newQS & Item & "=" &
    Server.URLencode(Request.QueryString(Item))
    End If
    Next
    if (Len(MM_newQS) > 1) Then MM_logoutRedirectPage =
    MM_logoutRedirectPage & MM_newQS
    End If
    Response.Redirect(MM_logoutRedirectPage)
    End If
    %>
    <!--#include file="Connections/thirtyfirst.asp" -->
    <%
    ' *** Restrict Access To Page: Grant or deny access to this
    page
    MM_authorizedUsers=""
    MM_authFailedURL="/login.asp"
    MM_grantAccess=false
    If Session("MM_Username") <> "" Then
    If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
    (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1)
    Then
    MM_grantAccess = true
    End If
    End If
    If Not MM_grantAccess Then
    MM_qsChar = "?"
    If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar =
    MM_referrer = Request.ServerVariables("URL")
    if (Len(Request.QueryString()) > 0) Then MM_referrer =
    MM_referrer & "?" & Request.QueryString()
    MM_authFailedURL = MM_authFailedURL & MM_qsChar &
    "accessdenied=" & Server.URLEncode(MM_referrer)
    Response.Redirect(MM_authFailedURL)
    End If
    %>
    <!--#include file="Connections/thirtyfirst.asp" -->
    <!--#include file="Connections/thirtyfirst.asp" -->
    <%
    Dim rs02__MMColParam
    rs02__MMColParam = "1"
    If (Request.QueryString("text") <> "") Then
    rs02__MMColParam = Request.QueryString("text")
    End If
    %>
    <%
    Dim rs02
    Dim rs02_numRows
    Set rs02 = Server.CreateObject("ADODB.Recordset")
    rs02.ActiveConnection = MM_thirtyfirst_STRING
    rs02.Source = "SELECT * FROM texts WHERE ID = " +
    Replace(rs02__MMColParam, "'", "''") + ""
    rs02.CursorType = 0
    rs02.CursorLocation = 2
    rs02.LockType = 1
    rs02.Open()
    rs02_numRows = 0
    %>
    <%
    Dim Repeat1__numRows
    Dim Repeat1__index
    Repeat1__numRows = 10
    Repeat1__index = 0
    rs02_numRows = rs02_numRows + Repeat1__numRows
    %>
    <%
    Dim MM_paramName
    %>
    <%
    ' *** Go To Record and Move To Record: create strings for
    maintaining URL and Form parameters
    Dim MM_keepNone
    Dim MM_keepURL
    Dim MM_keepForm
    Dim MM_keepBoth
    Dim MM_removeList
    Dim MM_item
    Dim MM_nextItem
    ' create the list of parameters which should not be
    maintained
    MM_removeList = "&index="
    If (MM_paramName <> "") Then
    MM_removeList = MM_removeList & "&" &
    MM_paramName & "="
    End If
    MM_keepURL=""
    MM_keepForm=""
    MM_keepBoth=""
    MM_keepNone=""
    ' add the URL parameters to the MM_keepURL string
    For Each MM_item In Request.QueryString
    MM_nextItem = "&" & MM_item & "="
    If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
    MM_keepURL = MM_keepURL & MM_nextItem &
    Server.URLencode(Request.QueryString(MM_item))
    End If
    Next
    ' add the Form variables to the MM_keepForm string
    For Each MM_item In Request.Form
    MM_nextItem = "&" & MM_item & "="
    If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
    MM_keepForm = MM_keepForm & MM_nextItem &
    Server.URLencode(Request.Form(MM_item))
    End If
    Next
    ' create the Form + URL string and remove the intial '&'
    from each of the strings
    MM_keepBoth = MM_keepURL & MM_keepForm
    If (MM_keepBoth <> "") Then
    MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
    End If
    If (MM_keepURL <> "") Then
    MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
    End If
    If (MM_keepForm <> "") Then
    MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
    End If
    ' a utility function used for adding additional parameters to
    these strings
    Function MM_joinChar(firstItem)
    If (firstItem <> "") Then
    MM_joinChar = "&"
    Else
    MM_joinChar = ""
    End If
    End Function
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Admin - Results</title>
    <style type="text/css">
    <!--
    .style1 { font-size: 24px;
    font-weight: bold;
    color: #990099;
    -->
    </style>
    </head>
    <body>
    <p align="center" class="style1">31st Avenue Missionary
    Baptist Church<br />
    Administration Page </p>
    <p
    align="center">_________________________________________________________</p>
    <p align="right"> <a href="<%= MM_Logout
    %>">Log out</a></p>
    <div align="center">
    <table width="442" border="0">
    <tr>
    <td width="442"><div
    align="left"></div></td>
    </tr>
    <% While ((Repeat1__numRows <> 0) AND (NOT
    rs02.EOF)) %>
    <tr>
    <td width="442"><div align="center">
    <p align="left">Message: - <A
    HREF="/detail.asp?<%= Server.HTMLEncode(MM_keepURL) &
    MM_joinChar(MM_keepURL) & "ID=" &
    rs02.Fields.Item("ID").Value %>">Edit</A></p>
    <div align="left">
    <p><%=(rs02.Fields.Item("ppage").Value)%></p>
    </div>
    </div></td>
    </tr>
    <%
    Repeat1__index=Repeat1__index+1
    Repeat1__numRows=Repeat1__numRows-1
    rs02.MoveNext()
    Wend
    %>
    </table>
    </div>
    <div align="center"></div></body>
    </html>
    <%
    rs02.Close()
    Set rs02 = Nothing
    %>
    I can tell you guys really want to help, but please consider me
    a beginner. I don't see "VbCr" or "Chr10" in my code anywhere. or
    what to actually replace. I appreciate everything that has been
    posted. Can you be a little more specific for adumb
    programmer.

  • Connecting a CSS doc to an XML file, in a dynamic text field in Flash

    Hi all,
    I am trying to connect a CSS file such that it applies it
    self to the content of an XML file, viewed inside a dynamic text
    field. So far I have managed to gather the code that "calls" the
    contents of the XML file and also the code that calls the CSS file.
    However, when I test the flash movie I get "undefined" instead of
    the actual copy.
    Attached then is the the AS code, XML file, and CSS file. I
    hope you could help me connect everything together.
    And of course, THANKS!!
    -----AC------
    Scrolling Text XML by Digital Science |
    www.digitalscience.za.org
    /////////////Load XML Data/////////////
    function loadXML(loaded) {
    if (loaded) {
    xmlNode = this.firstChild;
    header = [];
    txt = [];
    total = xmlNode.childNodes.length;
    for (i=0; i<total; i++) {
    header
    = xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
    txt
    = xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
    gotoAndStop(11);
    } else {
    errorMsg.text = "Error loading XML";
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("ewmn_content.xml");
    stop();
    import TextField.StyleSheet;
    var ss:StyleSheet = new StyleSheet();
    ss.onLoad = function() {
    txt_mc.styleSheet=this; // where yourTF is your textfield
    ss.load("jokes.css"); // where yourSS.css is your css file.
    -----XML----------
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/css" href="jokes.css"?>
    <JOKES>
    <ONE>Tirza Sapir</ONE>
    <JOKE>Founder and choreographer of the RikudNetto dance
    group, teacher and lecturer, researcher, documenter and
    choreographer within the framework of Eshkol-Wachman Movement
    Notation. She was Head of the School of the Arts of Dance at the
    Seminar Hakibbutzim College of Education, 2000–2007, where
    she established the Dance Theatre and the Practicing Teachers
    courses, and specialized training in Teaching and Treatment of
    Learning Disabilities by means of Eshkol-Wachman Movement Notation.
    She has written three books containing the movement scores of dance
    suites: Birds, Landscapes, and Hanukka Notebooks. Member of the
    Movement Notation Society, 1968–2008. Student and colleague
    of the late Professor Noa Eshkol who was the co-founder and
    inventor of Eshkol-Wachman Movement Notation.</JOKE>
    <ONE>Sharon Reshef-Armony</ONE>
    <JOKE>Head of the School for the Arts of dance at the
    Kibbutzim College of Education in Tel Aviv. Teaches EWMN,
    dance-theatre and composition. Choreographer of theatre plays and
    film. Selected works: Hunger (Tmuna Theatre 2003-09), Film - Live
    (Haifa Theatre 2007-08), Yakish &amp; Pupche (Gesher Theatre
    2007-09), Children of a lesser God (Beer Sheva Theatre 2008-09).
    M.Ed (1997) from Lesley College MA in Creative Arts in Learning.
    Doctoral student at ResCen, Middlesex University/ London.
    Dancing in Rikudnetto group since 1990.</JOKE>
    <ONE>Tally Ronen</ONE>
    <JOKE>M.Ed. at Lesley University in Integrating Arts in
    Learning.
    Educational instructor at Kibbutzim College of Education and
    teaching dance in schools and at Clore Center, Upper Galilee. Dance
    choreographer for children.
    Dancing in Rikudnetto group since 1991.</JOKE>
    <ONE>Nira Al-Dor, Ph.D</ONE>
    <JOKE>20 years of Teaching EWMN at the School of the
    Dance Arts in Kibbuzim College of Education and at the School of
    Arts in Tel Aviv. Her study was focused on the impact of learning
    EWMN on the development of coordination.
    Dancing in Rikudnetto group since 1986.</JOKE>
    <ONE>Henner Drewes</ONE>
    <JOKE>Lectures at the Kibbutzim College of Education in
    Tel Aviv on dance and notation related technology. In 2008 he
    started working as a research assistant at Salzburg University in
    the project Visualizing Dance Archives.
    He was awarded the Tanzwissenschaftwpreis NRW, Germany 2006
    for his research on 3D representation of movement and notation.
    Ph.D. (2002) at the University of Leipzig. He is the author
    of the software EW Notator, a 'word-processor' for creating EWMN
    scores.</JOKE>
    <ONE>Shlomit Ofer</ONE>
    <JOKE>M.A. at Haifa University at the Faculty of
    Education with distinction, and currently doctoral student there.
    Educational instructor and teacher of EWMN at Kibbutzim
    College of Education. Staging performances of dance theatre in the
    community.
    Dancing in Rikudnetto group since 1993.</JOKE>
    <ONE>Lilach Shalit</ONE>
    <JOKE>M.A. in Expressive Therapies with specialization
    in dance-movement therapy at Lesley University.
    Educational instructor and teacher of EWMN in the course for
    Dance-Theatre at Kibbutzim College of Education. Also teaching EWMN
    in the School for Advanced Studies of the college, course for
    Learning Disabilities, and at Orot College.
    Dance-movement therapist and team coordinator at 'Tom' school
    for learning disabilities and owner of a private clinic for
    dance-movement therapy.
    Dancing in Rikudnetto group since 1998.</JOKE>
    <ONE>Michal Manor-Amir</ONE>
    <JOKE>M.A. at the University of Leeds (Bretton Hall
    College and Israel Extention) in Arts Education specialization in
    Dance. Doctoral student at the Hebrew University of Jerusalem, in
    the Faculty of Humanities, the School of Education.
    Teaching movement in the Kibbutzim College of Education
    within preparatory courses of Dance, Dance-Theatre and within the
    Preschool course.
    A corrective teacher through movement and EWMN in elementary
    and high schools, and a national teacher-instructor at the dance
    supervisor's office in the Israeli ministry of education.
    Dancing in Rikudnetto group since 1998.</JOKE>
    <ONE>Amit Chesny-Bahari</ONE>
    <JOKE>B.Ed. at Kibbutzim College of Education.
    Teaching movement and dance to preschool and high school
    children.
    Dancing in Rikudnetto group since 2004.</JOKE>
    <ONE>Orly Yaakov</ONE>
    <JOKE>B.Ed. at Kibbutzim College of Education, and
    graduating from the special education faculty.
    Teaching EWMN and creative movement at elementary schools as
    well as special education school for children ages 6-21 with medium
    to deep retardation. Also teaching creative movement and
    preparation for ballet to preschool children.
    Dancing in Rikudnetto group since 2006.</JOKE>
    </JOKES>
    ------CSS-----
    JOKE
    COLOR: #333333;
    DISPLAY: block;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    WHITE-SPACE: normal;
    font-size: 11px;
    MARGIN-BOTTOM: 15px;
    BODYBLD
    COLOR: #990000;
    DISPLAY: block;
    FONT-SIZE: 11pt;
    FONT-WEIGHT: bold;
    MARGIN-BOTTOM: 0px
    BODYBOLDUN
    COLOR: #00CCFF;
    DISPLAY: block;
    LINE-HEIGHT: normal;
    MARGIN-BOTTOM: 10px;
    TEXT-ALIGN: left;
    font-size: 11px;
    text-decoration: underline;
    font-weight: bold;
    ONE
    COLOR: #00CCFF;
    DISPLAY: block;
    LINE-HEIGHT: normal;
    TEXT-ALIGN: left;
    font-size: 14px;
    font-weight: bold;
    white-space: normal;
    QUESTION
    COLOR: red;
    DISPLAY: block;
    FONT-FAMILY: Arial;
    FONT-SIZE: larger;
    FONT-VARIANT: normal
    TITLE
    COLOR: black;
    DISPLAY: block;
    FONT-FAMILY: 'Arial Black';
    FONT-SIZE: 14pt
    CATEGORY
    FONT-FAMILY: Arial;
    FONT-SIZE: 8pt;
    FONT-VARIANT: small-caps;
    TEXT-TRANSFORM: uppercase

    In essence you can just do:
    TextField.text = XML.node1 + XML.node2;

  • Problm in dynamic text field when i view it in IE

    Hi
    i have used dynamic text field for UI Lebels, text is comming
    from xml file.i have TextFormat as well .
    when i publish and see out put in swf file it is looking good
    and all the text in the same place where i have placed it. but if i
    see it in IE browser.
    all text is moved littile bit as well as its not taking
    formating of the text .. means if i have used Arial bold 10 .. but
    is not showing bold ...
    can any body help on this issue

    It is a very simple to solve issue:
    There is a line break in your CSS code on the main page in the background image url.
    Current Firefox versions do not like that.
    <code>body {
    background:#000000 url("http://lh4.ggpht.com/_fKjKe5YUrXg/SjKITFBNaxI/AAAAAAAADWI/u5ohtFDhVc0/black-%20lighter.jpg
    background-position: down-left;
    background-attachment: fixed;
    background-repeat: no-repeat;
    margin:0;
    color:#E895CC;
    font: x-small "Trebuchet MS", Trebuchet, Verdana, Sans-serif;
    font-size/* */:/**/small;
    font-size: /**/small;
    text-align: center;
    </code>
    This should fix it:
    <code>body {
    background:#000000 url("http://lh4.ggpht.com/_fKjKe5YUrXg/SjKITFBNaxI/AAAAAAAADWI/u5ohtFDhVc0/black-%20lighter.jpg");
    background-position: down-left;
    background-attachment: fixed;
    background-repeat: no-repeat;
    margin:0;
    color:#E895CC;
    font: x-small "Trebuchet MS", Trebuchet, Verdana, Sans-serif;
    font-size/* */:/**/small;
    font-size: /**/small;
    text-align: center;
    </code>

  • Dynamic text doesnt load in container

    hey,
    like the headline says i have a problem wit a dynamic text which i load from a .php file
    Just in a container, if I load it on its own it works correctly
    example: www.borgball.at.tc (Gästebuch)
    www.borgball.at.tc/gaestebuch.swf
    its the same file both times.
    Structure: Main(root)-->container
    code:
    count = new LoadVars();
    this.onEnterFrame = function(){
        if(main.maxscroll > 1){
            main_balken._visible = true;
        }else{
            main_balken._visible = false;
    count.load("count_guestbook.txt?nocache="+new Date().getTime(), 0);
    count.onLoad = function(ok_1) {
        if (ok_1) {
            counter.text = this.zahlguestbook;
        } else {
            counter.text = "0";
    read = new LoadVars();
    //read.load("guestbook.txt?nocache="+new Date().getTime(), 0);
    read.load("auslesen.php?nocache="+new Date().getTime(), 0, "POST");
    read.onLoad = function(ok_2) {
        if (ok_2) {
            mainframe.htmlText = this.main;
        } else {
            mainframe.htmlText = "<b><br>Keine Einträge vorhanden!</b><br>Text konnte nicht geladen werden!";
    signal = 0;
    stop();

    this is the index.html page that i'm loading and it's not correct:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Powered by FlashVillage.com</title>
    <style type="text/css">
    <!--
    * { margin:0; padding:0; }
    html { height:100%;}
    body {
    height: 100%;
    overflow:hidden;
    .Stil1 {color: #000000}
    -->
    </style>
    </head>
    <body>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="100%" id="index" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="movie" value="index.swf" />
        <param name="quality" value="high" />
        <param name="bgcolor" value="#000000" />
        <embed src="index.swf" quality="high" bgcolor="#000000" width="100%" height="100%" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
      </object>
    </body>
    </html>

  • Vertically Centering Dynamic Text

    I am trying to get the text I am loading into a dynamic text
    box vertically aligned. There are from 3 to 8 lines of text that
    load into the dynamic text box via an array. I haven't found
    anything to do this. Can I get a coordinate that tells me the
    height of the loaded in text? Thanks for any help...

    I have the answer to my own question....
    placeText = function(){
    //this first line just creates a variable with the button
    number pushed
    var currentButton = _parent._parent.buttNo;
    //oBox_txt is my dynamic text box
    oBox_txt.autoSize = "center";
    //this line populates the text box with text from an array
    using the predefined
    //variable "currentButton"
    oBox_txt.text = textual[currentButton];
    oBox_txt._y = ((100 - oBox_txt._height) / 2);
    This assumes that the box is at the _y coordinate 0, and that
    the box is 100 pixels high.

  • Displaying the result of a calculation in a dynamic text box

    Hi folks,
    I'm having a very minor issue here (operator error, I'm sure ). With the help of some folks here, I've created a series of calculations, and I've got that part down. Now, I just need it to show up in the movie.
    I've created the dynamic text box in Flash (CS3), but when I hit test, it won't show up.
    After all the calculations, I should have a figure that I call totalmoney. My dynamic text box is called total. The user doesn't need to hit anything for it to appear. It just appears as part of the movie.
    Here's my code:
    stop();
    var startDate:Date = new Date(2010,0,12);  // use your  startyear, startmonth, startdate in the new Date() parameters.
    var  currentDate:Date = new Date();  // assuming user's clock is correct and in your  timezone.  else use server date/time.
    var numberOfSeconds:Number =  (currentDate.getTime()-startDate.getTime())/1000;
    var interest:Number =  (numberOfSeconds*0.74356);
    var totalmoney:Number =  (interest+15,000,000);
    function displaytotal(evt:TextEvent):void {
         total.text = "totalmoney";
    Any thoughts?
    Thanks!
    Napo

    You didn't have to bury any of the calculations in the function--leaving it as you had it is better.  They could remain where they a=werew, and you'll probably find you want them outside it if you have other plans for using them.  If left inside, they only have scope inside.  In the programming world, it's good to think of functions as things that do one thing and one thing only (though it isn't often practiced that way)--it's called modular design.
    When you place an event as an argument for a function, it typically means that there is an event listener that initiates the call to the function.  If you work with buttons you'll see what I mean.  But if the plan is to create your own call to a function when you desire it as such, not have it driven by an event listener, then you don't need to pass any event to it, though you may pass some other type of variable to it if need be.
    For instance, what you have now will call the function without an argument because the function has the value built into its code....
    displaytotal();
    But you could also make the function a little more generic and set it up to recieve the value instead as an argument...
    function displaytotal(amt:Number):void {
         total.text = String(amt); // an earlier error of mine
    displaytotal(totalmoney);
    That would make your function a little more useful.  Now it could be used to display other Number variables as well.
    // my earlier error was that a textfield displays text, so you need to convert the Number value to s String.
    Hope I'm not confusing you.

  • Dynamic Text Field is not displaying foreign characters... HELP!

    I have a dynamic text field that is not displaying foreign characters properly. They appear as boxes.
    Here's what I've tried.
    Under properties for the text field, I clicked on the embed characters button. In there, I pasted all the special characters I would need and clicked okay. Shouldn't this be enough for the text to display properly? What am I missing? Please help...

    More info: I'm noticing that in the actual dynamic text field in my .FLA file, if I type a foreign character like é, it pops up as a block. My family font is set to New Caledonia... is it possible that New Caledonia doesn't have those particular glyphs? The thing that doesn't make sense to me though is, last year when I made this card, it worked fine with New Caledonia... Any help is greatly appreciated!!

  • EDGE and HTML dynamic text in a "box" with scroll bar

    I'm new to EDGE, a win7pro master collection cs5.5 suite owner. I'm mainly in the Film/Video post production field (mostly AE, PPro, Pshop, IA) but have been branching into web design the last couple of years.  I use Dreamweaver, Fireworks, Flash. While I'm a expert user with all the Film/video apps, I would say I only have intermediate ability with the web apps. While I understand a lot of programing logic bulding blocks I'm not a coder.
    So since we're told "flash is dead",  my interest in Edge is to try to do some of the things that I can currently do in flash in  EDGE. I was excited when Edge first came out but lost interest when it became obvious that Adobe was not going to offer Edge and Muse to "suite owners" but only in their force feeding of the "Cloud". Better known as the "golden goose" for adobe stockholders and a never ending perpetual hole in the pocket for users. Anyway....
    I spent the last couple of days doing some of the tuts and messing with the UI. It's matured a lot since I was here last.
    I've been working on a flash site for a sports team where one of the pages is a player profile page where college recuriters and other interested parties can view recuriting relavent info/stats about players. This is how it works. While on the "Team" page a users clicks on  a button labled "Player Profiles" . (Animation) A "page" flies in and unfurls from the upper right corner (3d page flips effect created in AE played by flash as a frame SEQ). Once it lands filling most of the center of the screen there is a bright flash. As the brightness fades we see the "page" is a bordered box with a BG image of a ball field(End). (Animation) from behind the border in fly small pictures (player head shots with name and jersey number). They stream in and form a circle like a wagon train and the team logo zooms up from infinity to the center of the circle(End). As the user mouses over a player's pic it zooms up a little and gets brighter (like mouseover image nav thumbs for a image slider). If the user clicks on a player's head shot it flips over and scales up to become a text box with a scrollbar. The content of the box is a mix of images, static and dynamic text fields populated from data in an "player info data base" XML file, and some hyperlinks. It's all kept updated dynamicaly with current stats, info and images from the XML file. There is also a "PDF" button that allows the user to open/save/print a PDF of the player's profile (the PDF's are static files for now but the choice of which pdf to retrive is dynamicaly supplied via the XML file.
    So.... Is Edge now able to do something like this?  Would it need to be a collection of small animations? could these be "assembled" and connected as an asset in dreamweaver ?
    I thought I would approach this from the end (ie click on an image and display a box with dynamic TEXT fileds. ) since that is the most important part, ie displaying the dynamicaly updated profile info.  Sooooo....
    Can Edge display a scrolling text box with Images, static text, and html dynamic text in it??
    Joel

    The code is in composition ready. Click the filled {}

Maybe you are looking for

  • File structure?

    Hi Experts, I've came across a scenario /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy which is File to R/3 via ABAP Proxy.... In Sources File structure section the author is describing the file structure. Now my question is why he is

  • Oracle Database11g Express Edition - Some Problems after Installation

    Seemed everything went ok until I tried the Query Builder. Selected a Table and checked fields to include in my Query. These fields do not appear in the "Columns" TAB below as the documentation says they should. Any ideas what's wrong? Additionally,

  • How Do I Get a Glyph's Bounding Box After a "glyphshow"?

    I am trying to capture the bounding box from painting a character using glyphshow, but the result seems not to be the actual bounding box.  Here is a snippet of PS code that I am trying: % begin snippet /BickhamScriptPro-Bold 70 selectfont 0 0 moveto

  • I lost iTunes custom AIFF after leopard installl

    I had to do a erase and install with leopard and it required a reinstall of ilife. I went into Preferences to change items and in advance the AIFF encoder no longer gives you the option to get a higher rate: ex: 128 to 320 . It now says All Automatic

  • Paging.  one small problem

    I know this question has been asked before, and hopefully this will be a quick one. anyways, I am trying to do paging and am stuck on this error... not sure what it means. (i have an idea what it means... just not sure how to remedy. ///////////// er