I'm still new to Actionscript 3.0 and was wondering if you could help me please. I'm trying to do a registration form in flash. The user entering his name/email/password and I want to save that value to a variable and return that. The error says that my return type is not valide. What should I use other than 'String' prob just something small I missed.

function RegisterFunction():return String
    var RegisterNameVar:TextField = new TextField;//creating the variable to save the name is this correct?


    RegisterNameVar = RegisterName.text;//equals to the name inserted in the input field

    return RegisterNameVar;


function RegisterUser(event:MouseEvent):void
    testOutput.text = RegisterFunction();//testing if it received the name correctly