AS2 text field hyperlink

If I have a dynamic text field in Flash and I'm using AS2 how
can I create a hyperlink within that text field?
Here's an example of a text field:
"Action Script 2 sticks and I wish I this site hadn't been
designed with AS2. There are so many LINKS to tutorials for AS3 on
how to make hyperlinks within text fields, but none on Action stink
Script 2."
The hyperlink would be where it says LINKS and could be to
Adobe.com.

Is the asfunction code the same for AS2 and AS3? If not then
I need more info because every asfunction tutorial I've seen on the
web thus far is for AS3.

Similar Messages

  • Display a field/ text as hyperlink in the selection screen.

    Hi All,
    I have a requirement wherein i need to display a text/field as hyperlink in the main selection screen.
    Uponn clicking the hyperlink i need to display an ALV in the pop up screen( i.e pop up window).
    Any pointers on how to get hypelink in main screen will be helpful.
    Thanks in advance.
    Regards,
    Nirmala.

    hi
    please raise your question in the abap forum.
    Regards
    sameer

  • Adding Hyperlink URL to text field

    How do I set up a text field in Acrobat 8.1.1/Livecycle Designer form that allows the end user to add working urls or hyperlinks when filling a dynamic form?
    The form needs to remain dynamic so it will automatically expand using more than one page if necessary.
    Our computers are Window based.

    Thanks. I've used it also without the empty value check and had the same result of showing the creation date and not the current date.

  • HELP!! How do I create hyperlink in a text field?

    Hi!
    I've been going through the message boards and I am not finding my answer.  I have created a form utilizing LiveCycle.  I have made the form so that it can be fillable via Reader Extended PDF.  I need to be able to put a link in a text field that the next user can just click on it, and it will take them to a document in SharePoint for review.  I've tried changing the text field to rich text in LiveCycle, but the steps to add the link in the PDF is too lengthly and not friendly.  Once I finally get it to put the link in, the end user cannot just click on it.  They have to take additional steps.  Someone on the boards mentioned something about putting a button next to the field that will convert the text of the link in the previous text field to a link, but I cannot find those instructions or understandable instructions.  The management wants it to be where you just click on the link.  How do I do this?  I am not a techie, so I need instructions in layman's terms.
    PLEASE HELP!
    Thank you!
    Maribeth

    I'm in the same boat as you, inasmuchas I taught myself LC. I've tried to replicate your issue. I'm trying to understand where the issue actually lies.
    First, I created a new document to test. I dragged the text field onto the document and stretched it to accomodate what I was going to type and entered: http://www.google.com/something
    This works as intended.
    Next I tried a link similar to yours in our own intranet: http://intranet/WebPages/support.aspx
    That also worked.
    Now, for what you're actually working with: a SharePoint document.
    I tried to paste a link to a document that I created on our Sharepoint site. The link failed! I noticed that the end of the link was truncated (something like 7 characters). So, I tried a shorter link. That worked!
    What else is happening when they click the link? Are they simply being asked to "check out" the document? Are you getting an error message like "an error has occured while opening the page"?
    Message was edited by: jasotastic81 (apparently "lnik" is not a word)

  • Issue with visibiliy of dynamic text and hyperlinks

    Hi everyone,
    It's been a while since I've build a Flash site and a I'm finding a out a lot has changed.
    I'm building a simple site with some pictures, text and the 5 last posts from Twitter.
    This last one is not working out that well.
    First of all:
    The outputed data from Twitter is displayed into a dynamic text field which is working fine when I test the movie in Flash, but as soon as I upload it to my server the text is not visible.
    Flash already told me that I need to enclose my font in the movie (that's new for me) and I did that using the button in the properties windows.
    But it still won't work.
    I recreated the Twitter reader in a empty document to isolate it from my website during the troubleshooting.
    Here's the AS I'm using:
    var loadXML:XML = new XML();
        loadXML.ignoreWhite = true;
        loadXML.onLoad = processXML;
        loadXML.load("twitter.php"); //used when swf in placed on server
        loadXML.load("");
        function processXML(loaded:Boolean)
            if(loaded)
                var node = this.firstChild;
                tweet_1.text = node.childNodes[0].childNodes[2].firstChild;
                tweet_2.text = node.childNodes[1].childNodes[2].firstChild;
                tweet_3.text = node.childNodes[2].childNodes[2].firstChild;
                tweet_4.text = node.childNodes[3].childNodes[2].firstChild;
                var follower_count = node.childNodes[9].childNodes[11].childNodes[9].firstChild;// Creates variable
                trace(follower_count); //loads variable into output
                follower_count_txt.text = follower_count;// show follower count in text box
            else
                error_txt.text = "Error loading XML file";
                        for (i=0; i<follower_count; i++)
                            _root.attachMovie("tweep_mc", "tweep"+i+"_mc", i);
                            _root["tweep"+i+"_mc"]._x = 150 + random(500);
                            _root["tweep"+i+"_mc"]._y = 150 + random(500);
                            trace(i);
                        trace(i);
        follow_btn.onRelease = function()
            getURL("");
    facebook_btn.onRelease = function()
            getURL("");
    stop();
    Right here you can see the output of it on the server.
    The second issue:
    The items posted to Twitter will simply always contain pictures which Twitter posts as hyperlinks.
    Is there a way to make those hyperlinks function in my dynamic text field?
    Hope you guys can help me out!
    Thanks in advance!!
    Karim

    Ok.. After some resarch I find out the guy who created this made use of the Twitter API.. Since I don't know how to do that and
    can't find straight answers that's not an option for me...
    Althought...
    What I forgot to mention in the first post:
    This is what the beginning of actionscript is actually looking like right now and why it is working offline:
    var loadXML:XML = new XML();
        loadXML.ignoreWhite = true;
        loadXML.onLoad = processXML;
        loadXML.load("http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=karimbizid2");
    I'm getting the data direct from the Twitter server.
    This procedure does'nt neceserly need a PHP file to store the XML, right?
    I'm guessing it's just a visual issue why the text isn't showing.
    Karim

  • How to make words in a text field change color in play mode by clicking on them?

    I have a text field on a slide, wanting to change the color of certain words randomly by clicking on them in play mode. I dont know what word in what order will be mentioned by the audience, so I can not set a fixed order in advance.
    Any help is appreciated.
    Thanks a lot.

    create a slide with all the text boxes in place
    duplicate the slide as many times as you have text boxes you want to change colour
    on the second slide, change the colour of one of the text boxes as required
    on the first slide, select one of the text boxes
    open the inspector:     Inspector > Hyperlink >
               enable as hyperlink > link to slide > click slide button > select the correct slide from the drop down menu
    in play mode, clicking on the hyperlink will display the appropriate slide with that text changing colour
    repeate the process for each text box

  • Can you scroll multiple text fields with 1 UIscrollbar component?

    I have been poking around on the internet trying to find out a way to do this on flash using AS2.0 but have had no luck. Is it even possible?!
    or is there another way of achieving a similar affect?
    I have XML data being pulled from an array of attributes that get listed in there own text field or column basically.
    Attribute1(text1)
    Attribute2(text2)
    Attribute3(text3)
    item1
    item2
    item3
    item4
    location1
    location2
    location3
    location4
    date1
    date2
    date3
    date4
    Above is how the data gets displayed in the 3 different text boxes... each item is associated to a location and a date and i need to be able to scroll down through the items but have the locations and dates stay inline with the specific item.
    Any suggestions would be great!
    Thanks in advance.

    i don't have a clue about the XML (I'm still in embryo stage on that one at one-half a tutorial) BUT,
    to connect without commas, you can do something like this. My array name was aHiragana (japanese letters)
    var sHiragana:String = aHiragana.join(""); //kills the comma
    words.text = sHiragana.toString(); //works, note "s" not "a" infront of Hiragana.
    no idea if this is compatible with XML.

  • Regarding Input text fields

    This is about fill in the blanks in flash 8 as2. In this i used input  text fields and three buttons.In first frame i used multiple input text  fields and a submit button. After filling all the blanks we click on  submit button then in the second frame we will show the result like if  the blank is correct it should change the color to green and if it is  wrong it should change to red.and in the frame i have check button when  we click on it will display all the answers. And when we click on  analyse button we have to display the answer which the user types and  the correct answers.
    And my problem is when we click on submit there is no difference in the blanks color all are in black only and i have assigned red to the wrong answer and green to the correct answer.
    and script on submit button is
    on (release) {
        gotoAndStop("Bl1");
        if ((_root.Bl.txt1 == "abc1") && (_root.Bl.txt2 == "abc2") && (_root.Bl.txt3 == "abc3") && (_root.Bl.txt4 == "abc4")) {
            _root.Bl.txt1.textColor = 0x006600;
            _root.Bl.txt2.textColor = 0x006600;
            _root.Bl.txt3.textColor = 0x006600;
            _root.Bl.txt4.textColor = 0x006600;
        } else {
            _root.Bl.txt1.textColor = 0xFF0000;
            _root.Bl.txt2.textColor = 0xFF0000;
            _root.Bl.txt3.textColor = 0xFF0000;
            _root.Bl.txt4.textColor = 0xFF0000;
    where "Bl" is the movie clip name and "txt1","txt2","txt3","txt4" are the var names for input text fields
    Please help........

    You are concatenating the conditions it will only work if all are true or  all are false
    on (release)
        gotoAndStop("Bl1");
        if (_root.Bl.txt1 == "abc1")
            _root.Bl.txt1.textColor = 0x006600;
        else
            _root.Bl.txt1.textColor = 0xFF0000;
        if (_root.Bl.txt2 == "abc2")
            _root.Bl.txt2.textColor = 0x006600;
        else
            _root.Bl.txt2.textColor = 0xFF0000;
        if (_root.Bl.txt3 == "abc3")
            _root.Bl.txt3.textColor = 0x006600;
        else
            _root.Bl.txt3.textColor = 0xFF0000;
        if (_root.Bl.txt4 == "abc4")
            _root.Bl.txt4.textColor = 0x006600;
        else
            _root.Bl.txt4.textColor = 0xFF0000;
    You can also run a for loop for optimizing the code further.
    www.darshanrane.com

  • Text Field with javascript tags execute

    We have a form with multiple text fields on it for users to enter information. If a user puts in something like the following:
    <script type="text/javascript">window.location="http://www.oracle.com";</script>
    into a text field and submits the page, anytime that text field is called on a page, the javascript will execute and redirect the user to oracle.com. Obviously, there needs to be some encoding of all text fields, but I was surprised that this actually worked. What have people done to restrict this from happening? Do we write a PL/SQL process to run onSubmit to check all text fields?
    Thanks,
    Jon

    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/sec.htm#CHDGEEFC
    Tyler Muth
    http://tylermuth.wordpress.com
    [Applied Oracle Security: Developing Secure Database and Middleware Environments|http://www.amazon.com/gp/product/0071613706?ie=UTF8&tag=tylsblo-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0071613706]

  • Text field link

    I need to add a paragraph to a flash file. How can I make a
    word in the text field paragraph link to a separate frame in the
    time line? thanks

    If there is a method for applying timeline commands to words
    in static text, I don't think it would be any less time consuming
    than using invisible buttons over the words, possibly moreso since
    you have to code for each word anyways. AS3 does make button event
    coding a bit more time consuming though.
    AS1/AS2 would make it alot quicker to do this because you can
    simply copy (or reuse) a button and resize it for the word and just
    change the frame number or function call for the code attached to
    the button.

  • Changing the cursor position in an input text field and Removing leading numeric zeros

    Flash8 - AS2
    It's good to be back after all these years and thanks for the faithfull folks like kglad, Ned Murphy, Rothrock and all the others who give so much of themselves to make this forum a success!
    My Problem:
    I have an input text field that is named in the properties box as 'numberOfKids'.
    When the program is executed, and a delete or backspace is pressed the input textfield goes blank
    and any calculations that use 'numberOfKids' shows NaN.
    I have trapped the NaN and undefined so that a numeric 0 shows up instead of a blank.
    There are two problems:
    First problem:
      The cursor is to the left of the zero, so the first number inputted by the user is 10x larger than what they want.  0 becomes 10.
    Question:  How do I get the cursor to move to the right of the 0?
    Second Problem: 
      When I manually move the cursor to the right of the 0 and input a number, say 4, it shows up as 04.
    Question 2:  How do I delete the leading numeric zero in the input textfield?
    Thanks for the help.
    Here's the code I am using:
    calculateChildWeight = function () {
    if (isNaN(numberOfKids)) {
      numberOfKids = 0;
    if ((numberOfKids) == undefined) {
      numberOfKids = 0;
    if (numberOfKids>=0 && numberOfKids<=137) {
      numberOfKids = numberOfKids;
    } else {
      numberOfKids = 0;
    if (isNaN(adjustedChildWeight)) {
      adjustedChildWeight = 0;
    if ((adjustedChildWeight)=undefined) {
      adjustedChildWeight = 0;
    adjustedChildWeight = Number(numberOfKids*(-100));
    //numberOfKids.setSelection(numberOfKids.length, numberOfKids.length);
    //if (numberOfKids.length=2 && numberOfKids<10) {
      // remove the first character or leading zero
    //  numberOfKids = numberOfKids;

    Thanks Rothrock for being so  patient.
    I'm lost!
    I go back to a brand new flash file to try and implement the textfields as a stand alone test document.  I have lost the concept I think.
    I created on the stage of a blank .fla file  4 text fields, 2 input and 2 dynamic.  I gave them an instance name in the properties box.  I use this instance name.text to find the value of the field.  I use the parseInt to put that value into a numeric variable for calculation.  The results are put to the appropriate textfield.
    All seems to work except one of my input text fields.   I use the value of this field  to calculate:
    revisedValue = parseInt(numberOfKids.text);
    revisedValue = revisedValue*(-100);
    The problem now is that if the numberic '2' is inputted into numberOfKids, numberOfKids.text shows up as 200 and a trace shows up as '2NaN'.
    Flash is logical and consistant, I must conform to it but I'm in the dark.
    (( Concerning the forum:  If I click on helpful, which your posts have been in directing me, does that blank out the possibility of selecting the correct answer in the future???))

  • Asfunction/Hypertext/Dynamic Text Fields

    I have the following code to create a hypertext link to
    another frame label w/in a dynamic text field. I'm pretty sure it
    will work, but I don't know where to implement the code. If I put
    it in the dynamic text field's actions layer it wipes out my other
    text in the field but gives me a working hyperlink. Any advice?
    Beat_Poets.htmlText = "<a
    href=\"asfunction:gotoAndPlayF,Howl\">Howl</a><br>";
    function gotoAndPlayF(fLabel) {
    _root.gotoAndPlay(fLabel);
    }

    Beat_Poets.htmlText = "<a
    href=\"asfunction:gotoAndPlayF,Howl\">Howl</a><br>";
    is htmlText assignment. if you have other text that you want
    to appear before this use:

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

  • Loading images into text field - links problem

    Hello,
    I use AS3 and I load external text from XML to the text field created manually. External text includes hyperlinks and <img> tags. The problem is if I load more than 1 image this way , my links no longer work. They work if I load only 1 image...
    Text field is multiline, wraps the text, got embedded font and autoSize is set to "left"...
    I could not find any solution to this, is there any?!
    Thanks for any thoughts.

    // XML
    <?xml version="1.0" encoding="utf-8"?>
    <content>
    <text><![CDATA[<font color="#ffffff" size="25"><b>Title</b></font>
    <br />
    <a href="www.google.com" target="_blank">Nulla tincidunt</a> commodo <b>fermentum. Suspendisse</b> venenatis suscipit vehicula. Phasellus eu est non tellus fringilla mattis id in magna. Nullam suscipit fermentum ipsum, at semper ante auctor viverra. Morbi gravida tristique aliquam. Mauris facilisis urna et arcu rhoncus ac tempor velit consectetur. Vestibulum lacus justo, rutrum vitae ultrices nec, porta quis orci. Proin pellentesque mauris quis eros semper vulputate. Etiam sed magna et dolor dapibus sodales.
    <br />
    <img src="content/image.jpg">
    <br />Vivamus sit amet metus orci, facilisis dignissim arcu. Suspendisse fringilla varius mauris, in gravida purus cursus non. Integer lacinia faucibus turpis, nec tempus leo porttitor quis. Cras id posuere elit.
    <br />
    In eros purus, commodo eu fermentum id, blandit ut ligula. Curabitur arcu dolor, laoreet convallis fermentum eu, ullamcorper id est. <a href="www.google.com" target="_blank">Etiam varius viverra dui eu placerat</a>.
    <br />
    <img src="content/image.jpg">
    <br /><a href="www.google.com" target="_blank">Nulla tincidunt</a> commodo fermentum. Suspendisse venenatis suscipit vehicula. Phasellus eu est non tellus fringilla mattis id in magna.]]>
    </text>
    </content>
    // AS
    var myXML:XML;
    // inside "Event.COMPLETE" function
    myXML = new XML(xmlLoader.data);
    myText.htmlText = myXML.text.*;

  • External Embedded Fonts, Dynamic Text Fields, Latest?

    Hi all,
    I'm stuck in Flash8 land. Mostly because I use mProjector and
    MDM Zinc to extend flash projectors and neither support AS3
    correctly to date. That said..
    Is a Flash8 SWF capable of using fonts embedded in "other"
    SWFs? I realize this is an ongoing difficulty and a well known area
    of confusion and well, I'm confused. All the attempts I've made so
    far in linking have succeeded or failed in various ways, but never
    fully work.
    What I'd love to do is use dynamic text fields populated by
    data from a database (or XML file), with CSS styling, using fonts
    that are embedded in a 'master font SWF'. (and I'd like ice cream
    with that too!)
    I import fonts into, say, 'shared.fla'. I set them all up for
    exporting via linkage (to shared.swf). I open up my other FLAs
    (say, main.fla) and I drag the fonts from the shared.fla library
    into main.fla's library. In looking at the linkage, I see it
    properly set it to Import for Runtime Sharing (shared.swf). I can
    see the font available in the main.fla font list and can select it
    and use it just fine. I have to set the dynamic text field to embed
    fonts to actually see them (and also
    myTextField.setStyle("embedFonts",true)).
    Now all that works well and fine, but the kicker is when I
    want CSS to style my text. If I specify a embedded font linkage
    identifyer in CSS, the text disappears. i.e. I load 'style.css' and
    I have h1 { font-family: someEmbeddedFont; }, the <h1> text
    will now disappear.
    Any clues in how I can specify a font to use in CSS that's
    embedded so it'll work, WITHOUT This font needed to be embedded in
    the actual library (as in, not a linked asset)? Because it works
    fine if I embed the font into every single SWF. But when I try to
    use it as a shared asset, this doesn't work.
    Any ideas on how someone can achieve this?
    This is so I can changed my shared.swf and supply all new
    fonts with the same linkage identifiers and change the font in a
    whole project without re-exporting any other SWFs.
    Thanks for any info!

    I guess it's amazing but I honestly, wholly cannot get this
    to work.
    I made a new AS2 Flash 8 FLA (Forte.fla) with only the Forte
    font with a size of 22 in the library. The name of the library
    element was Forte. The linkage was set to "Export for Actionscript"
    and "Export in first frame".
    I made another FLA (main.fla) Flash8 AS2. In actionscript I
    created an empty movie clip named "Asset_Forte" at the next highest
    depth and Asset_Forte.loadMovie("Forte.swf"). I also made a dynamic
    text field on the stage of this main.fla document and set it to
    Arial 22pt (no bold or italics, etc). I did not embed anything into
    it.
    I made a TextTormat object (my_fmt) and set my_fmt.font =
    "Forte";. I put some text in the dynamic text field to start so I
    just applied the formatting (status_text.setTextFormat(my_fmt);).
    This did not work. I started adjusting random things like
    naming the font in the Forte.swf library to Forte22 and tried
    my_fmt.font = "Forte22";. That didn't work.
    I adjusted the linkage to "Export for runtime sharing" and
    specified Forte.swf as the SWF to share from. This did not work.
    I then dragged the font from the Forte.fla's library (while
    "Export for runtime sharing" was enabled) into the library of
    main.fla. I checked the link and it was proper, "Import for runtime
    sharing, Forte.swf". I used both linkage attempts again (Forte and
    Forte22) with my_fmt.font and neither worked.
    Would it be possible at all to get a couple FLAs from you
    that examplifies how you do this particular trick? I can't seem to
    get the settings right. I would be indebted to you!

Maybe you are looking for