Question: I'm a new android programmer, and recently I found some problem when programming.
In the main activity, there are three functions, `a()`, `b()`, `c()`, for example. So what can I do to make sure that `c()` will run after `a()` and `b()` are finished? 

Like this: 

```
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    a();//get view
    b();//do sth for view like set text in text view

    //trigger.setOnClickListener(new OnClickListener() {
        //@Override
        //public void onClick(View v) {
        //  c();
        //}
    //});
    //this is using a button to call the function, but I want it run automatically after a() and b() finish
}

```

Answer: 
you are getting that for this >>> `:`

either `function ADFclicked(event:MouseEvent)`

or `function ADFclicked(event:MouseEvent):some_return_type`
To use `navigateToURL` we do like this : 

```
navigateToURL(new URLRequest(your_url_here)) 

```

For more details, take a look here : [navigateToURL()](http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/package.html#navigateToURL())