In the previous recipe, we've already seen one way of loading a file from the hard drive through relative URLs. There are a few shortcomings to that approach though, as follows:
URLLoaderclass to load a file from the user's hard drive
In this recipe, we will demonstrate how to use a file dialog to let the user select which file to show.
Again, copy and
paste the previous recipe's code into a new class called
Recipe3. Rename the class name and the constructor and remove the three lines that create and start the URL loader. Leave ...