PDA

View Full Version : problems loading URL from database


tawright
10-14-2003, 11:36 AM
MX, PHP, MySQL.

This is working... as far as adding a URL to a button with action on button... BUT... if there's no URL in the database, it's STILL creating a "http:///" link on the button. Why is this "not null" not working??

// adds url from database and opens in new window
on (release) {
if (_root.event_url != null) {
getURL("http://"+_root.event_url, "_blank");
}
}

freddycodes
10-14-2003, 12:38 PM
Sometimes flash is tweaky about nulls, did you try comparing to nothing?


on (release)
{
if (_root.event_url != "")
{
getURL("http://"+_root.event_url, "_blank");
}
}

tawright
10-25-2003, 01:54 PM
Thanks! That worked beautifully. Much appreciated!

TW