    Contents  Index  Topic Contents
    Previous Topic: Static Fields Relevant to MicrophoneBvr Objects
    Next Topic: Static Fields (Miscellaneous)

> ## Static Methods (Miscellaneous)

> ###

> buildURL

> Statics Class

> Constructs a fully-qualified path from a base URL and a file pathname. The following code fragment constructs one URL for the directory where images are stored and another for where sounds are stored:

>     {
>     // This is a piece of a larger program
>     // Construct the URLs
>     URL mediabase = buildURL(getImportBase(), "../../../../../../Media/");
>     URL imgBase = buildURL(mediabase, "image/");
>     URL sndBase = buildURL(mediabase, "sound/");

>     //Create an image behavior by importing a bitmap
>     ImageBvr img = importImage(buildURL(imgBase, "img1.jpg");

>     //The rest of the program

>     }

> public static URL buildURL(
> URL url,
> String pathname
> );

> ##### Parameters

> url
>   The base URL.
> pathname
>   The file path.

> ##### Return Values

> Returns a java.net.URL object.

> ###

> getVersionString

> Statics Class

> Returns the version string in the form MM.NN.BBBB, where MM is the major version, NN is the minor version, and BBBB is the build number.

> public static String getVersionString( );

> ##### Return Values

> Returns the String object.

> © 1998 Microsoft Corporation. All rights reserved. Terms of Use.

> Top of Page