Skip to main content
Participant
June 9, 2010
Question

Newbie Design Question

  • June 9, 2010
  • 1 reply
  • 389 views

I am trying to create a little application for my web project that would allow an user to type some text into a box, press a search button, and be supplied with a hyperlink on which they can click and be referred to the link. I have tried really hard to alter the code I have currently but for some reason I can't make the link a hyperlink...what do I have to change?

var directory:Array = [{Input:"A", Output:"www.abc.com"}, {Input:"B", Output:"www.bcd.com"}, {Input:"C", Output:"www.cde.com"}];

function getOutputByInput(Input:String):String {
    for(var i:Number = 0; i < directory.length; i++) {
        if(directory.input.toLowerCase() == input.toLowerCase()) {
            return directory.Output;
        }
    }
    return "No Match";
}

searchButton.onRelease = function() {
    resultField.text = getOutputByInput(inputField.text);
}

Thanks in advance for your help!

I know there's the getURL function but I don't know how to incoporate everything...I just want the result to come up as a hyperlink and not just text.

    This topic has been closed for replies.

    1 reply

    June 9, 2010

    Hi, You probably would get better help on a Forum that is for whatever Adobe program you use. This is the Flash Player forum. On the adobe.com home page under Support you can click on Forum and then you'll see the list. (with a drop down arrow to search for the one you want)

    Thanks,

    eidnolb

    Participant
    June 9, 2010

    Thanks. I misread the title of the board. I should have posted this in the Adobe Flash (not the Flash Player) board.

    Thanks.