Dyanamic Text Fields Working Funny

Hello!
I am trying to get some dyanmic text fields to work in my flash movie. I got one to work and have had trouble getting more than one. I think I kinda got it but it works but works funny. I am trying to load text in two different places. When I click on the first instance (Philosophy Section) nothing shows up. When I check the other instance (Eco_Conscience) the text shows up and then when I go back to the Philosophy Section it works. BUT it doesn't work on the first try. I am attaching code and link. Can anyone see the problem and help me fix the code?
Thanks! Sandra
LINK:
http://www.sandraschmitt.com/coclico/index100.html
CODE ON FRAME 1:
//Loaded external text fields
var textLoader:URLLoader = new URLLoader();
var textReq:URLRequest;
function textLoaded(event:Event):void {
    eco_txt.text = textLoader.data;
    philosophy_txt.text = textLoader.data;
CODE ON LOCAL FRAME FOR PHILOSOPHY TEXT:
textReq = new URLRequest("text_philosophy.txt");
textLoader.load(textReq);
textLoader.addEventListener(Event.COMPLETE, textLoaded);
CODE ON LOCAL FRAME FOR ECO TEXT:
textReq = new URLRequest("text_eco.txt");
textLoader.load(textReq);
textLoader.addEventListener(Event.COMPLETE, textLoaded);

Just try this.
CODE ON FRAME 1:
//Loaded external text fields
var textLoader:URLLoader = new URLLoader();
var textReq:URLRequest;
CODE ON LOCAL FRAME FOR PHILOSOPHY TEXT:
textReq = new URLRequest("text_philosophy.txt");
textLoader.load(textReq);
textLoader.addEventListener(Event.COMPLETE, philosophyTextLoaded);
function philosophyTextLoaded(event:Event):void {
    philosophy_txt.text = textLoader.data;
CODE ON LOCAL FRAME FOR ECO TEXT:
textReq = new URLRequest("text_eco.txt");
textLoader.load(textReq);
textLoader.addEventListener(Event.COMPLETE, textLoaded);
function ecoTextLoaded(event:Event):void {
     eco_txt.text = textLoader.data;
And your site looks beautiful!!!!!!!!!!!!!!1

Similar Messages

  • I still can't get an expandable text field working in LifeCycle.... Please Help.

    I have worked through several of the questions and answers and have tried to follow but they still dont work. Could I ask if someone could look at my form, fix it for me and then I would be able to see what they done? Its a lot to ask but it would be so much simpler than someone saying do this and then I miss to do something.
    I could send a pdf form that has two  "need to be expandable". In Acrobat XI.  Once I see how you did it, I could work on the rest that I have to do.
    What I have noticed so far is.
    1. I open a PDF form (2 page) in Lifecycle and change it to an interactive with flowable layout
    2.I click on the text field object I want to change and select multi-line and then wrap it in a flowable subform. This starts at start of page 2. I have tried adding all the rest of fields etc to this subform but it doesnt work.
    3. If I try selecting ALl and wrapping in a subform and make it flowable....it inserts everything on page 1.
    Someone really needs to see my form. I think my problem is....it still tries to lock everything into the named pages.
    Again, asking for a lot but any help would be fantastic.
    I have watched videos on this
    I have read some great replies to others with same problem   BUT it just wont work.
    email me: [email protected] and I can send the actual form. I have worked for MANY days on this and am done in.
    thanks for any help.
    merv

    Hello there, Tearza.
    The following Knowledge Base article provides some great recommendations for contacting Apple Support if you are unable to respond to your security questions for access to your account:
    Apple ID: All about Apple ID security questions
    http://support.apple.com/kb/HT5665
    Particularly useful information is provided in this section:
    What should I do if I don't remember the answers to my Apple ID security questions?
    If you forgot the answers to your security questions, try answering them at least once to see if you can get them right, even if you're not sure you remember the answers. If you're confident that you can't remember them, try one of the following:
    If you have three security questions and a rescue email address, sign in to My Apple ID and select the “Password and Security” tab to send an email to your rescue email address to reset your security questions and answers.
    If you have one security question and you know your Apple ID password, sign in to My Apple ID and select the “Password and Security” tab to reset your security question.
    If you have one security question, but don't remember your Apple ID password, contact Apple Support for assistance. Learn more about creating a temporary support PIN to help Apple confirm your identity when you contact Apple Support.
    Note: If you forgot your password and answer your security questions incorrectly too many times in a row, you will be unable to try to answer your security questions for a period of time. During that time, you will not be able to reset your password and will not have access to your account.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • ALV Filter : Not working for a text field - Strange problem

    Dear All,
    I have a Z-program where the ALV filter is not working on a particular text field.
    The output on that text field is as below :
    ABCD
    JKLM
    YYZZ
    ABCD
    JKLM
    ABCD
    JKLM
    YYZZ
    YYZZ
    When we try to filter on YYZZ, it gives blank list. But for other options given abobe it works fine.
    I know it is because of the negative sign , but how can we over come this problem ?
    Thanks in advance,
    Sandip.

    Hi Sandip,
    Use 'LOWERCASE' in the fieldcatalog.
    For the particular text field when you are appending the Fieldcatalog structure to the Fieldcatalog Table
    ( Suppose LS_FIELDCAT)
    Then check the LOWERCASE field.
    (LS_FIELDCAT-LOWERCASE = 'X' )
    This will serve the purpose.
    Regards,
    Sourav

  • If condtion  not working  in blank text field

    I want that when the text field is blank it should go to the else if portion of the code below:
    JTextField tf1=new JTextField(15);
    if (tf1.getText() != null)
    JOptionPane.showMessageDialog(tf1, "insert value in the range of a-z,A-Z,0-9");
    }                          else if (tf1.getText() == null)
                             System.out.println("fdsafasdfasdfsdf");
    System.out.println("1234");
                                                      JOptionPane.showMessageDialog(tf1,"Enter SmartTextID");
    but control never goes to ==null,even i have initilaized textField with a text then also when i chk with tf1.getText() == "assigned text", its not working.
    plz send me the correct code for this
    thanx..

    if ( textField.getText().trim().equals("") );

  • Hello All. I am working on a form, but I need to format the leading in a multi-line text-field.

    Hello All. I am working on a form, but I need to format the leading in a multi-line text-field. The options for the text-field only show a font size option, but no other styling options. Is there a way to format the leading? Thanks!

    Not within ID, and I'm not sure it can be done in Acrobat afterward either.

  • Get the value from dropdown list (selectedIndex) and text field -- not working

    Hi All,
    I am trying to find and change by the values selected by user using dropdown and text field. Here is the code.
    ChangeRevDetails();
    function ChangeRevDetails(){
              var myDialog = app.dialogs.add({name:"Enter copyright information"});
    //    var monthlist = col1.dropdowns.add('myList', undefined, myList);
              var col1 = myDialog.dialogColumns.add();
              var col2 = myDialog.dialogColumns.add();
        col1.staticTexts.add({staticLabel:"Month:"});
              col1.staticTexts.add({staticLabel:"Year:"});
        col1.staticTexts.add({staticLabel:"Rev. no.:"});
        var myList = [ "January", "February",  "March", "April", "March", "April", "May", "June", "July", "August", "Sepetember", "October", "November", "December" ];
         var myMonth = col2.dropdowns.add({stringList:myList, selectedIndex:0, minWidth:100});//{minWidth:100});
         var myYear = col2.textEditboxes.add({editContents:"2013", minWidth:100});  
         var MyRev = col2.textEditboxes.add({minWidth:100});
        var RevMonth = (myList [myMonth.selectedIndex]);
        var RevYear = myYear.editContents;
        var RevNumber = MyRev.editContents;
        var RevToReplace1 = RevMonth +", "+ RevYear;
        var RevToReplace2 = RevMonth +", "+ RevYear + " Rev. " + RevNumber;
        var myResult = myDialog.show();
            if(myYear.editContents == "") //entry is ""
            alert("Please enter some text into the contents field.");
            ChangeRevDetails();
            else if(myResult == true) //user entered datas
                alert (RevMonth);
                alert (RevYear);
                alert (RevNumber);
                alert (RevToReplace1);
                alert (RevToReplace2);
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
                // grep find/change
                app.findGrepPreferences = app.changeGrepPreferences = null;      
                app.findGrepPreferences.findWhat = "[\\l\\u]+?\\s?\\d{4},?\\s+[\\l\\u]+\\.*\\s+\\d+";
                app.findGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.changeGrepPreferences.changeTo = RevToReplace1;
                app.changeGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.activeDocument.changeGrep();
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
        else //implies user clicked cancel
        myDialog.destroy();
    The problem is, it is not taking the value which the user selects from the dropdown and the text field. It takes the default value as "January" and the year is "2013" as both of these values are given as selectedIndex:0 and editContents:"2013". I have compared the coding with some other working scripts as well, but it is not working. I have added several alert boxes to check the value we get.
    Also, the find and change is also not working. Please help me on this. Thanks.
    Regards,
    Muthuraj. D

    Change the order for dialogresults:
    var myYear = col2.textEditboxes.add({editContents:"2013", minWidth:100});  
    var MyRev = col2.textEditboxes.add({minWidth:100});
    var myResult = myDialog.show();
    if(myYear.editContents == "") //entry is ""
    alert("Please enter some text into the contents field.");
    ChangeRevDetails();
    else if(myResult == true) //user entered datas
    var RevMonth = (myList [myMonth.selectedIndex]);
    var RevYear = myYear.editContents;
    var RevNumber = MyRev.editContents;
    var RevToReplace1 = RevMonth +", "+ RevYear;
    var RevToReplace2 = RevMonth +", "+ RevYear + " Rev. " + RevNumber;
    didn't have a look for the find change problem

  • Javascript works for text field, but not date ??

    Hi,
    I'm trying to calculate work-day hours based on a start and end date range, as the dates are changed (using onChange event). I tend to do this kind of thing in chunks, so I started with a very basic script that should simply update 1 item with the value of another, when it is changed.
    function change(){
    html_GetElement('P51_UPDATE_TO').value = html_GetElement('P51_UPDATE_FROM').value;
    As log as P51_UPDATE_FROM is a text field, P51_UPDATE_TO updates fine. If P51_UPDATE_FROM is a date field however (as it should be), P51_UPDATE_TO doesn't udpate at all. Any ideas why this might not work with a date field update?
    Many thanks,
    albertmi

    After playing around a bit more, I notice that manually typing in a new date will trigger the onChange event, but I can't get it to work when using the date picker...is there a way around this?

  • Populating Text Field using Dynamic Actions is not working

    I've a Select List (P14_ACCOUNT) and Text Field (P14_BILLING_ADDRESS_1) on a form. On selecting a value on the Select List, I've to populate the Text Fields by fetching its values from the database by using the Select List value as the primary key. To do this, I created a Dynamic Actions (Advanced) on the Select List, with event onchange and Set Value as SQL. However this is not working.
    Below are the sqls of Select List and Dynamic Action respectively:
    select ACCOUNT_NO || ' - ' || COMPANY_NAME display_value, ACCOUNT_ID return_value
    from ACCOUNT
    order by 1
    select a.address1 from account a where a.account_id = :P14_ACCOUNTNow when I substitute the Dynamic Action sql with any of the below sqls, the value shows up:
    select address1 from account where account_id = 41
    select address1 from account where rownum=1
    select user from dualI thought of seeing the value of :P14_ACCOUNT in session or debug, but session does not show any value and on clicking debug it throws a popup message "Debugging is not enabled for this application."
    I've been trying since few hours but with no luck. How can I debug further?
    Thanks for the help.
    --Hozy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hozy,
    Take alook at your application on apex.oracle.com
    The session state for items, when SQL is used, is set using the Page Items to Submit parameter as has been set in your application.
    Regards,

  • Custom Metadata Text Field not working

    Hi everyone-
    I'm trying to create a Metadata layout the will be a template for all of the editors in my company.  I've created a New Schema and added a few custom text fields.  The problem is I can't add anything to the text fields, as they are greyed out and unusable (see far right in image).  Any ideas of why this might be happening?
    Thanks,
    -Mark

    Hey Jim-
    I wanted to follow up on this with you.  I ended up creating a "template" project for our filmers to use so we all log our footage the same way.  I ended up using an existing schema and adding new, custom text fields.  I did a few tests on my system and everything seemed to be working fine.  Our filmers are now on a shoot and are beginning to log their footage with our "template".  When they enter data in the custom text fields, they end up getting a crash about every 4-6 clips.  When they reload their project, none of the logged files have saved in the bin.  Any thoughts on why this is happening?  Our filmers are using the new MBP. 
    One other note.. when they enter text into the  "description" and other text fields that are not Custom Fields, everything seems to be OK.
    Your help / insight would be greatly appreciated! 
    Thanks in advance!
    -Mark

  • Text field is not working at first time after loading the flash files

    Hi to all,
         In my Java application, I'm using a text field and a panel to load flash files. I'm using JDIC 0.9.1 to load the flash files in the panel. The flash files are created by Flash CS4.
         While running the application, I can't enter any value in the Text field, after minimize and maximize the application I can enter the values.
         This problem happens after change the jre version from 1.6 to 1.7.
         I'm getting the following exception while running the application.
    org.jdesktop.jdic.init.JdicInitException: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
    at org.jdesktop.jdic.init.JdicManager.initBrowserNati  ve(Unknown Source)
    at org.jdesktop.jdic.browser.WebBrowser.<clinit>(Unkn  own Source)
    pls give me a solution.
    Thanks in advance...:)

    Have you tried testing on a server?
    When you test in Flash, see if you get traces when you click these buttons.

  • Auto date entry in text field not working

    I have a text field named tdate, which is read-only and visible. I want Acrobat XI Pro to insert today's date when the form is opened. Here's what I have:
    javascript code:
    var f = this.getField("tdate");
    if (!f.value) f.value = util.printd ("mmmm d, yyyy", new Date());
    This code is inserted in Page properties / Actions /Page Open / run a JavaScript
    nothing happens when the page is opened.
    I have also tried, unsuccessfully, to enter this JavaScript code within the form field actions (mouse up), and nothing happens. I see from the forum comments that apparently this is successful for other users, but nothing seems to fill this text field. What am I doing wrong?
    Bill

    Thanks for your reply. I started to wonder whether or not the current field
    that I created had somehow been corrupted due to my fooling around so I
    deleted the field re-created it (and also randomly JavaScript debugger and
    deleted the code there) and now the current date appears in the text field.
    I wonder why Adobe doesn't simply allow the user to insert fields where the
    field is filled with either the current date or the current time instead of
    forcing the user to enter some JavaScript code. Not all users of Acrobat
    professional want to get that involved.
    Regards,
      Bill
    Bill McLachlan

  • Cursor won't show in text fields, Google Street View mouseup not working

    My wife and I have nearly identical computers and update Firefox whenever a new version comes out.
    Lately, only on her computer, when she clicks into the address bar or into a text field, the cursor sometimes does not appear. In some other text fields it does appear. In the address bar, whenever you click in it and then type, there is no cursor, and the entire address bar is always overwritten.
    In Google Street View (I think it uses the Flash player), she can start dragging, but then the mouse "won't let go" - it is as if the mouse up command is ignored. I have to drag the mouse outside the picture area and then back in, or the dragging will continue.

    Please see possible relations to [https://bugzilla.mozilla.org/show_bug.cgi?id=718939 Bug: 718939]
    To test that this Bug report is related to your problem:
    #Find a webpage with an embedded Java applet such as [[http://chir.ag/stuff/sand/]]
    #Click into the Java applet
    # Then try to click the address bar, or search bar.
    **If Text Fields become unresponsive, click your Windows Taskbar, then click the address bar/search bar
    Within the comments of the bug report will find a link to a Patched version of Firefox 10
    * [http://ftp://ftp.mozilla.org/pub/firefox/try-builds/[email protected]/try-win32/firefox-10.0.en-US.win32.installer.exe Patched Version] (located in comment 40)
    **Note that this is not an Office Release.
    Unaware of when an Official Fix will be released

  • Need to add superscript for text field--HELP NEEDED.

    Hi Friends,
    Is there any way to implement superscript and subscript text in Crystal?  For example, I would like to superscript the portion (1) of the following string:
    "Buy(1) or Sell(1)"
    The only way I have found to do this is to put the "235" in a separate text field that uses a smaller font size, and overlay it into the gap that I intentionally left in the larger text field.  For display and printing purposes, this works OK, but if a report containing these strings is exported to Excel, the text fields are exported as separate cells, which makes the exported report look funny.
    I can create this string in Word, then cut and paste it into a text field in Crystal (which initially seems to work), but as soon as I click off the field, all the characters in it are converted to the same font size.
    If this can't be done in the current version of Crystal, are there any plans for it to be implemented in future versions?

    hello all,
    the text interpretation for html or rtf in fields will not render superscript or subscript. the basic rule is that whatever you can format directly in a crystal reports text object, that's what you can have interpreted.
    look up "text interpretation html" in kbase for a full list.
    one option is to turn html passthrough on the server in question if this is a huge deal for you...if you want instructions on how to turn html passthrough on, they are located in the webelements user guide at
    http://diamond.businessobjects.com/node/255
    after doing so, you'd drop the database field into a formula and any html in the database field would be interpreted.

  • Please help. Text fields launch email for XML data

    Let me start by saying I have only been using LiveCycle for two days. I did buy a book and have exhaustuvley searched for a solution....with that said....
    After completing almost the entire form, somehow or other I managed to make all the text fields but one initiate email of xml data as soon as you try to type in them in PDF preview or reader or pro.
    I added a new text field for test and it does NOT do the same thing. I can't for the life of me figure out how to turn this off.
    Issue:
    When checking pdf preview, if I click inside a text field to type, it stops the preview and launches an email window with a blank XML file. It does the same thing if I open the file in Reader or Pro.
    Solution I am looking for:
    My form is nearly complete and i would hate to have to start all over. Basically, I do NOT want the text fields to initiate an email of the form data. I just want the user to be able to type in them as required. In my opinion this should only happen with the "email form" button.
    Thanks,
    Joe
    [email protected]

    funny, i found a workaround. after nearly 3 hours and finally posting here, in 15 minutes i found something. I still would like to know
    what caused this if anyone knows.....
    Fix:
    By selecting the text field and changing object type to "Text" then changing it back to "TextField" then save, it now works fine. Of course I had to do it on all 25 fields but way better than redoing all the custom fields i created.

  • Populating Text Field from Dropdown in Repeating Subforms

    Hi there,
    I'm trying to create a dropdown in a repeating subform that populates a text field in the same subform depending on the option selected.
    I used the functionality described here to acheive the text field population in the first row, but I have trouble when I add additional instances of my subform. In subsequent instances, when I select an option from the dropdown, it changes the text in my first textbox and does not populate anything in the repeated textbox.
    I'm not sure how to get this to work for each added instance and/or how to keep each instance separate from one another.
    Thanks in advance for your help!

    Can you repost the question - some funny formatting issue

Maybe you are looking for

  • Cannot open reference to Word in "New Report.vi"

    I am trying to fill a Word template, but cannot get past an error inside the New Report.vi. The Automation Open subVI returns the following error: Error -2147312566 occurred at Error loading type library/DLL. in New Report.vi This error code is undef

  • Starting sunstudio without DISPLAY: ide.log fills up the disk

    We had a user starting sunstudio from a terminal that didn't have DISPLAY set. I'd expect sunstudio to fail, like in the case when DISPLAY has a non-valid value, but no: The process goes into an infinite loop and the ide.log fills with exeception mes

  • Oulook as a remote app

    Hello All,<o:p></o:p> I am running RDS Farm with Windows Server 2008 R2. I have 2 RDS servers connected to domain and so on.<o:p></o:p> I have managed to "publish" Internet Explorer as a remote app (For secure surfing) and it works perfectly.<o:p></o

  • Problem with adobe installation

    The Setup encountered an error(-1) during install. Please restart the machine and try again. during adobe master collection installation

  • ICal is duplicating my entries since Lion upgrade.

    Just upgraded to Lion and see that in iCal, all my events are duplicated. Any suggestions on fixing this?