title: Update a var, which get's it it's value from another component
body: <p>I'm having trouble with updating a var and firing a function with it on creationcomplete.</p>
  
  <p>In the main component i declared a var artist. This var certainly works and has a value. I also need that var in another component: a profile component. I am able to get that var with: </p>
  
  <pre><code>newVar = Maincomp(this.parentApplication).artist; 
  </code></pre>
  
  <p>I use the newVar in an API in the profile component. When i launch the API function with a mouseEvent, it works. However, i want to launch the API function on creationComplete and than the var doesn't work: it returns Null. I hoped that making all the involved vars bindable would help, but it doesn't. How can this be fixed?  </p>
  
  <p>Extra code to make my case clearer:</p>
  
  <p>In main comp:</p>
  
  <pre><code>        public function handleclick(cName:String):void
          {
              vName = "aVariableIGetFromAnAPI";
          }
  </code></pre>
  
  <p>in profile comp:</p>
  
  <pre><code>                    public function zoekImages(event:FlexEvent):void
          {
              var api_URL:String = 'http://ws.audioscrobbler.com/2.0/';
              var api_imagemethod:String = 'artist.getImages';
              var api_key:String = '99f1f497c0bd598f1ec20571a38e2219';
              artistImage = DifficultierAPI(this.parentApplication).vName;
              var autocorrect:String = '1';
              var limit:String = '4'; 
              api_imagerequest = api_URL + '?method=' + api_imagemethod  + '&amp;artist=' + artistImage + '&amp;autocorrect=' + autocorrect + '&amp;api_key=' + api_key + '&amp;limit=' + limit;
              imageRequest.send(); // hier maak je connectie met lastfm
          }
  </code></pre>
  
  <p>This code works, but point is that this code works if i call it with a MouseEvent, but doesn't when it needs to launch on creationcomplete. Or well, it returns Null instead of a value. I thought that making the involved vars bindable would fix it, but it doesn't. Any help?</p>