no, they should be declared outside your constructor so they are available in your class and NOT local to a function (like they were in your code):
package{
import whatever..
.
.
.
public class whateverclass {
private var:urlloader = ...
etc
public function whateverclass(){
}
.
.