# Which datatype should I use for this?

**URL:** <https://forum.kirupa.com/t/which-datatype-should-i-use-for-this/287888>\
**Category:** flash\
**Created:** [May 7, 2009, 2:01pm UTC](https://forum.kirupa.com/t/which-datatype-should-i-use-for-this/287888 "2009-05-07T14:01:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IanCremona](https://avatars.discourse-cdn.com/v4/letter/i/65b543/32.png) [@IanCremona](https://forum.kirupa.com/u/IanCremona)\
**Post date:** [May 7, 2009, 2:01pm UTC](https://forum.kirupa.com/t/which-datatype-should-i-use-for-this/287888/1 "2009-05-07T14:01:26Z")

</div>

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

On the timeline:

```auto

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 :

```auto
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”)😉  
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”)😉
