Teil von  SELFPHP
  +++ SELFPHP CronJob-Service :: Jetzt auch als Professional-Version verfügbar! +++

:: Anbieterverzeichnis ::

Globale Branchen

Informieren Sie sich über ausgewählte Unternehmen im Anbieterverzeichnis von SELFPHP  

 

:: SELFPHP Forum ::

Fragen rund um die Themen PHP? In über 120.000 Beiträgen finden Sie sicher die passende Antwort!  

 

:: Newsletter ::

Abonnieren Sie hier den kostenlosen SELFPHP Newsletter!

Vorname: 
Name:
E-Mail:
 
 

:: Qozido ::

Die Bilderverwaltung mit Logbuch für Taucher und Schnorchler.   

 
 
Publishing and Testing your Silverlight Game


SELFPHP Produktempfehlung
Microsoft Windows Server 2008
Seite Windows Server 2008
Seite

Microsoft SQL Server 2008
Seite SQL Server 2008
Seite

Microsoft Expression Web 3
Seite Microsoft Expression
Seite







What you’ll learn in this module:

Locating your final HTML and Silverlight files
Publishing your content


Venture into Gaming Using Expression Blend: Module 10

Publishing and Testing your Silverlight Game

When it comes time to get your game online, you need to take care of the files you transfer from your local system to a remote one. There are a great number of files involved in the authoring process that should remain with the author, not put online. In this module, you will learn how to locate only the files needed to place your game online.

Using Expression Web 3 to Insert Silverlight Content into a Web Page
Expression Web is part of Expression Studio and allows you to insert Silverlight content into a pre-existing or new HTML Document.

  1. Open Expression Web 3 and choose Site > New Site. From the Options that appear, select the One Page Site Option. Navigate to the folder associated with this module by clicking Browse.
  2. Create a new folder and name it beehive_web, then click OK.




  3. In the Folder List, you will see the default.html page created. Double-click it to open the page into Design View.
  4. Click the Tag Properties tab if necessary and click the swatch for bgcolor, this opens a color palette, Choose the color black. This will serve as a good background color for your game.
  5. To Insert your Silverlight Application, choose Insert> Media> Silverlight.




  6. You will be prompted to select a Silverlight 2 or Silverlight 3 XAP file. The Xap file holds all the various components of the Silverlight Application.
    In this case, you can locate your beehive XAP file in the following directory:
    beehive>beehive>Bin>Debug> beehive.xap
    Select this file and then click Open.
  7. A placeholder will appear for your beehive game. You will not be able to see the rendered game until you open the page in the Browser.
  8. The default code that Expression Web generates for this placeholder is 640 pixels wide by 480 pixels high. You need to change this or else the application will be too small.
  9. Click the white placeholder. This represents the Object tag for your Silverlight application. In the Attributes section of your Tag Properties window, change the height to 600 and the width to 800.




  10. Choose File > Preview in Browser. You will need to Save the Changes, then click OK.
  11. Your Game will appear inside your HTML. Click the Ball to test the game and when done, close the Browser.
  12. Return to Expression Web and click the Site View Tab. You can see that a few new folders have been added, one named Silverlight, the other named Javascript. The Silverlight Folder is simply a subfolder with your xap file nested within. The Javascript file is a script that checks whether ot not a user has the correct version of Silverlight installed. If they do not have the correct version, the script provides a means for them to install it.


Seite 1 von 1 1



Downloads

Copyright © 2010
Microsoft Deutschland GmbH
Alle Rechte vorbehalten.

 Microsoft Deutschland GmbH
 




:: Premium-Partner ::

Webhosting/Serverlösungen


Premium-Partner MECO Systemhaus GmbH & Co. KG
Premium-Partner PSW GROUP GmbH & Co. KG
Premium-Partner BPI-Systeme
Premium-Partner Pixel X
Premium-Partner
 

:: SELFPHP Sponsoren ::


DM Solutions
Microsoft Deutschland GmbH
twosteps.net - ...Premium-Webhosting
Sedo - Bei uns wird PHP großgeschrieben
hostfactory.ch - OptimaNet Schweiz AG
ZEND - The PHP Company
Kaspersky Labs
HighText iBusiness
SELFPHP Sponsoren
 

Qozido


© 2001-2013 E-Mail SELFPHP OHG, info@selfphp.deImpressumKontakt