Beispiel #1
0
    private void showScene(string name)
    {
        DisplayObject newScene;

        switch (name)
        {
        case "Textures":
            newScene = new TextureScene();
            break;

        case "Multitouch":
            newScene = new TouchScene();
            break;

        case "TextFields":
            newScene = new TextScene();
            break;

        case "Animations":
            newScene = new AnimationScene();
            break;

        case "Movie Clip":
            newScene = new MovieScene();
            break;

        case "Blend Modes":
            newScene = new BlendModeScene();
            break;

        case "Clipping":
            newScene = new MaskScene();
            break;

        case "Benchmark":
            newScene = new BenchmarkScene();
            break;

        default:
            newScene = new Scene();
            break;
        }

        Game.viewManager.setView(newScene);
    }
Beispiel #2
0
    private void showScene(string name)
    {
        DisplayObject newScene;

        switch(name)
        {
            case "Textures":
                newScene = new TextureScene();
                break;
            case "Multitouch":
                newScene = new TouchScene();
                break;
            case "TextFields":
                newScene = new TextScene();
                break;
            case "Animations":
                newScene = new AnimationScene();
                break;
            case "Movie Clip":
                newScene = new MovieScene();
                break;
            case "Blend Modes":
                newScene = new BlendModeScene();
                break;
            case "Clipping":
                newScene = new MaskScene();
                break;
            case "Benchmark":
                newScene = new BenchmarkScene();
                break;
            default :
                newScene = new Scene();
                break;
        }

        Game.viewManager.setView( newScene );
    }