ADVANCED TOPICS


In this section we're going to cover many things outside the Flash domain; some of this may be interesting, some of it may allow you to do other projects that you weren't able to before. Keep in mind that this section is not for the weak of heart, but that doesn't mean you can't dig in a bit to see what other tools and possibilities there are with Flash.

Embedded eVC and eVB, Gotta Get 'Em!

The Microsoft eMbedded Visual 3.0 delivers a complete desktop development environment for creating applications and system components for the Pocket PC (see Figure 2.50).

Figure 2.50. eVC++ is available free from Microsoft.

graphics/02fig50.gif

The eMbedded Visual includes eMbedded Visual Basic and eMbedded Visual C++, including SDKs for the Pocket PC. The eMbedded Visual Tools are the successor to the separate Windows CE Toolkits for VC++ and VB. This version is standalone and does not require Visual Studio.

In many of the subjects we're going to cover in the Advanced Topics section we'll refer to eVC and eVB. Also, much of the sample code is also in eVC.

Microsoft eMbedded Visual Tools 3.0 can be ordered or downloaded at www.microsoft.com/mobile/downloads/emvt30.asp.

Changing Registry Settings on the Pocket PC

There are some times when you may want to turn ClearType on the Pocket PC on all applications, or make the scroll bars smaller so your Flash application gets more real estate. Usually, that requires a complicated Registry modification that can completely screw up a device. The Registry refers to a database of system settings used by all versions of the Windows operating system to store settings. Luckily, there's a comprehensive application called RegKing that helps automate the process. To download RegKing, visit: www.doctorce.com/regking.htm (the same folks who make Pocket Mac!).

RegKing can make the following modifications to the Pocket PC Registry; many of them are very useful for creating your Flash and surrounding content:

  • Makes Pocket IE pretend to be IE 5.5 This allows users to access secure web sites such as banks or brokerage houses. Right now most sites just check the browser's version and if it is less than 4.02, they do not allow you access. Pocket IE by default reports IE 3.02 so you won't get access.

  • Enable ClearType in all HTML Applications including AvantGo.

  • Change AvantGo Channels to \Storage Card\AvantGo (must create directory, copy files and resync).

  • Set Glyph Cache to 16384 Makes graphics render faster.

  • Set Glyph Cache to 26384 Makes graphics render faster.

  • Set TCPWindowSize to 65535 Increases the buffer size for TCP/IP.

  • Turn off ActiveX Controls in IE Disables Flash if you have it installed.

  • Turn off Scripting in IE.

  • Show JavaScript errors in Pocket Internet Explorer Handy for web developers.

  • Increase font to 17 points Requires Soft Reset.

  • Increase font to 16 points Requires Soft Reset.

  • Increase font to 15 points Requires Soft Reset.

  • Decrease font to 14 points Requires Soft Reset.

  • Decrease font to 13 points Requires Soft Reset.

  • Decrease font to 12 points Requires Soft Reset.

  • Decrease font to 11 points Requires Soft Reset.

  • Make the system display font bold Requires Soft Reset.

  • Make the system display font italic Requires Soft Reset.

  • Change font to Frutiger Linotype. The same font as Reader uses Requires Soft Reset.

  • Turn on Battery Warning message when you insert a PC Card or CompactFlash Card Requires Soft Reset.

  • Turn on Windows Animation Requires Soft Reset.

  • Turn Menu Animation off.

  • Wakeup Power-Off Timeout.

  • Set Letter Recognizer as default.

  • Set Block Recognizer as default

  • Enable ClearType in all applications.

  • Increase Fonts in Inbox.

  • Widen the scroll bars.

  • Narrow the scroll bars.

You can also view the specific Registry settings at: www.phm.lu/PocketPC/RegTweaks/.

Terminal Services

There are some instances in which your application cannot run on a Pocket PC, such as an existing Macromedia Director application. Use the Terminal Services Client to connect to Windows 2000 and Windows XP server products to open up a "window" directly to your server. By simply resizing your application on the server, users can access the content that was created for a desktop system on the Pocket PC (see Figure 2.51). This is useful for managing a server.

Figure 2.51. Terminal services for the Pocket PC 2002 operating system.

graphics/02fig51.gif

All the data storage and processing occurs directly on the server, while you run applications or remotely manage your server from the Pocket PC.

Playing Flash Full Screen on the Pocket PC

As long as there have been Flash Players for the Pocket PC, one of the most asked requests is "Can I play Flash full screen?" The following is every way to get more pixels for your Flash applications for Pocket PC.

The first utility is Multi-IE. Multi-IE's most useful feature to Flash applications on the Pocket PC is that Multi-IE can get rid of the top and bottom menu bars and run Pocket IE in full screen mode.

Other features include

  • Open the current page in a new window.

  • Use the Menu Activation feature to open a link in a new window.

  • See a list of all open windows by web page title and switch between them.

  • Close the current window, leaving all others open.

  • Save HTTP/ HTTPS/FILE web pages as text, html only, html complete. (This saves inline images and frames in same format as used on desktop.) Note: AvantGo files can be saved as text only.

  • View page in full screen mode, hiding top and bottom menus to use more of the precious screen real estate while surfing.

  • Supports all versions of Blue Kite web compression software. The Blue Kite icon is now visible on all open windows.

  • Map Multi-IE to a hardware button for quicker access to Menu Activation, or the Windows List menu.

  • When browsing with pictures disabled, use the Menu Activation feature to display an individual picture.

  • Multi-IE integrates in to the Pocket Internet Explorer toolbar, and is easy use.

  • Small size, only takes around 40k of memory.

It should be noted that Multi-IE is an advanced application for power users and should not be considered a method to ensure full screen Flash playback on the Pocket PC.

For more information on Multi-IE visit: www.zip.com.au/~peterept/.

FlashAssist from Ant Mobile software (www.armentaonline.com/antmobile/) lets you open Flash content on your Pocket PC in three different window sizes (see Figure 2.52):

Figure 2.52. FlashAssist for the Pocket PC.

graphics/02fig52.gif

  • 240x268: Standard window with menu bar

  • 240x294: Extended window, no menu bar

  • 240x320: Full screen

FlashAssist completely eliminates scroll bars you do not need to Fit to Screen to view Flash content clearly.

Also available, FlashAssist PRO. FlashAssist PRO allows you to create fully installable and executable Pocket PC applications from your Pocket PC Flash content. Here are just a few of the features of FlashAssist PRO:

  • Flash content runs as its own application, with its own icon and window title.

  • Choose from three different window sizes, including full screen mode.

  • User can still switch between full screen FlashAssist PRO applications and other apps.

  • FlashAssist PRO apps check for presence of Flash Player and notify user if not installed.

  • Complete template provided for creating PC desktop installer for your application.

  • JScript HTML template provided that checks for correct operation of your Flash movie.

Pocket PC 2002 SDK samples SDK files from Microsoft and Flashenabled that have been modified to play Flash files full screen on the Pocket PC 2002.

The full screen Flash Player and source files are meant to get you started running Flash full screen.

The files use the HTML host control to create an HTML window inside an application. The full screen player plays any file called test.html in the My Documents folder. You exit the application by clicking the white bar at the bottom of the screen.

graphics/01icon12.gif

To download the source files for the Pocket PC 2002 full screen Flash Player, visit the Flashenabled.com/book web site. You will need to have eVC installed before opening the files.

Microsoft eMbedded Visual Tools 3.0 can be ordered or downloaded at www.microsoft.com/mobile/downloads/emvt30.asp.


SysInfo allows the developer to pass in environmental information such as power, battery, memory, disk spaces, volume, processor, and date information to an HTML page or Flash movie. This works with all ARM based Pocket PCs.

After downloading the Trumpet files from the Flashenabled.com/book site, place the regsvrce.exe file in the Windows directory on the Pocket PC. The regsvrce.exe file is located in the trumpet_sdk\regsvrce folder.

Then place the sysinfo.dll file in the windows directory on the Pocket PC. The sysinfo.dll file is located in the trumpet_sdk\arm_sysinfo_dll folder.

Register the sysinfo.dll file by clicking the regsvrce.exe file in the Windows directory of the Pocket PC, type in the name of the dll, sysinfo.dll, and register the .dll (see Figure 2.53).

Figure 2.53. Using regsvrce.exe to register a .dll on the Pocket PC

graphics/02fig53.gif

Place the folder arm_sys_info_flash in the "My Documents" folder on the device, run the sys.html file to confirm the dll is functioning properly. The Flash movie should show system information (see Figure 2.54). On the desktop and / or the Flash file, view the HTML source and the Flash variable to view how the information is being passed in. It's using a combination of JavaScript and ActiveX controls interacting with Flash.

Figure 2.54. Getting the system information from the Pocket PC using Flash and sysinfo.dll.

graphics/02fig54.gif

graphics/01icon12.gif

As with all the data variables (some are not needed for production work) you may experience a 10-second delay; by limiting the amount of data to battery and power the delay is lessened. You may need to tap the Flash movie to gain focus and for the variables to start to populate the Flash movie.


Animated Today

Stephen Eddyof www.gigabytesol.com/ and I (Phillip Torrone, Flashenabled) are thrilled to bring you Animated Today (see Figure 2.55). What is Animated Today? It allows users to play Flash content on their Today screens. As a developer, you can create and sell content packs and provide useful utilities and net-connected applications.

Figure 2.55. Animated Today screen of a cat from designer Christian Erickson.

graphics/02fig55.gif

The Animated Today screens consist of three parts: the .at configuration file, a today screen TSK (theme), and a SWF (Flash file).

The following is the configuration file. As you can see, it has all the parameters normally associated with an HTML page for Flash for the Pocket PC, with some new parameters such as today skin, scheme name, and description.

 // Animated Today skin configuration file  [Config]  classid=D27CDB6E-AE6D-11cf-96B8-444553540000  size=120  id=pocketpc  position=top  todayskin=Fire  schemename=Cat Nap  schemedesc=Sleeping Cat  backcolor=#FFFFFF  [Parameters]  movie=cat.swf  quality=high  bgcolor=#FFFFFF 

After you create the configuration file (cat.at), the Today Theme (TSK), and Flash movie (SWF), transfer them to the device. Using the user interface, select the Animated Today Scheme (see Figure 2.56).

Figure 2.56. Select a theme for Animated Today.

graphics/02fig56.gif

For more information and to purchase Animated Today, visit www.gigabytesol.com/.

For content packs, visit www.flashenabled.com/mobile.



Macromedia Flash Enabled. Flash Design and Development for Devices
Macromedia Flash Enabled. Flash Design and Development for Devices
ISBN: 735711771
EAN: N/A
Year: 2002
Pages: 178

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net