Which datatype should I use for this?

I am trying to load openURL, which is a function not a path - isn’t it still a string?

On the timeline:


import cn.com.webstudio.text_eff.TextRoll;

var txt_roll = new TextRoll(498,32,openURL,"style.css");

txtroll_mc.addChild(txt_roll);

function openURL(evtObj:MouseEvent):String {
    var request:URLRequest = new URLRequest("news.xml");
    navigateToURL(request, "_blank");
}


In the Class :

public function TextRoll(box_width:Number,box_height:Number,xml_path:String,style_path):void {

The Errors:

1067: Implicit coercion of a value of type Function to an unrelated type String. (var txt_roll = new TextRoll(498,32,openURL,“style.css”):wink:
Warning: 3553: Function value used where type String was expected. Possibly the parentheses () are missing after this function reference. (var txt_roll = new TextRoll(498,32,openURL,“style.css”):wink: