You use the fscommand2(“GetSoftKeyLocation” ) ActionScript command to obtain the
current softkey location. For example:
status = fscomand2(“GetSoftKeyLocation”);
After the command executes, the status variable contains a value that represents the location
of the softkeys as follows:
-1 The command is not supported on this system
0 The softkeys are located on the top of the device screen
1 The softkeys are located on the left of the device screen
2 The softkeys are located on the bottom of the device screen
3 The softkeys are located on the right of the device screen
The device operating system notifies the Flash Lite Player that the screen orientation has
changed by sending an Insert key event. The application must implement a key listener as
follows to receive the key event from the Flash Lite Player:
on(keyPress “
{
status = fscommand2(“GetSoftKeyLocation”);
// take action to set up the softkeys depending on the value returned.
By designing this prototype in Flash Lite I have improved my way of working in Flash, being more concise with the coding, workflow and way of using the Time Line. This has helped me greatly.
I have also explored some of the configuration of mobile device in the Flash Lite Emulator which I have found useful and interesting in developing content for mobile devices.
Device configuration:
CodePage = USE_FLASH_LANGUAGE
DeviceImageFormats = image/gif,image/jpg,image/png
DeviceSoundKeyOnly = No
DeviceSoundsCached = No
DeviceSoundsOrdered = DeviceSound_MIDI_Generic,DeviceSound_3GP,DeviceSound_3GP2,DeviceSound_AAC,DeviceSound_AAC_Plus,DeviceSound_CMIDI,DeviceSound_MFI_Fujitsu,DeviceSound_MFI_Generic,DeviceSound_MFI_Mitsubishi,DeviceSound_MFI_NEC,DeviceSound_MFI_Panasonic,DeviceSound_MFI_Sharp,DeviceSound_MFI_Sony,DeviceSound_MP3,DeviceSound_SMAF_Generic,DeviceSound_SMAF_MA2,DeviceSound_SMAF_MA3,DeviceSound_SMAF_MA5
DeviceVideoFormats = video/3gpp,video/mp4,video/mov
DeviceVideoMethods = mute,seek,loop
DynamicHeapSize = 1280
DynamicMemAvailable = Yes
Email = Yes
FlashLiteSVG = No
FSCommand = FivePerKeyPerFrame
GetSetMaxScroll = yes
getUrl = FivePerKeyPerFrame
GetURL_UTF8 = Default_NoConversion
GetURLOnLocalSWFOpensInBrowser = No
InputText = Yes
KeyRestrictions = No
keySet = Phone
LoadMovie = FivePerKeyPerFrame
LoadVars = FivePerKeyPerFrame
Loop = Yes
MMS = Yes
mouseType = None
MultipleDeviceSound = No
NativeSounds = NativeSound_ADPCM,NativeSound_MP3,NativeSound_PCM,NativeSound_PCMI
NavigationType = 4Way
PersistentStoragePerMovieSize = 4
PixelType = RGB565_16
PlayerRendersText = No
SetSoftKeys = Yes
SharedObjects = Yes
SMS = Yes
SoftKeyCount = 2
SoundChannels = mono
soundEnabled = Yes
SoundSampleRate = 22
StreamingSound = Yes
TextEncodingForm = UTF16
TotalPersistantStorageSize = 256
UsePlayerEmbeddedVectorFont = No
UseSingleFontFace = No
VideoClipProportionallyToFitHeight = No
VideoClipProportionallyToFitWidth = Yes
VideoForceSizeDownToWindow = Yes
VideoForceSizeUpToWindow = No
VideoMaintainAspectRatio = Yes
VideoScaleInPowersOfTwo = Yes
VideoScalingDownLimitPct = 50
FTPS029: FSCommand2 SetSoftKeys command found.
FTPS029: FSCommand2 setquality command found.
FTPS029: FSCommand2 fullscreen command found.
FTPS029: FSCommand2 SetSoftKeys command found.
FTPS029: FSCommand2 SetSoftKeys command found.
FTPS029: FSCommand2 setquality command found.
FTPS029: FSCommand2 fullscreen command found.
FTPS029: FSCommand2 SetSoftKeys command found.
FTPS029: FSCommand2 SetSoftKeys command found.
FTPS029: FSCommand2 SetSoftKeys command found.
FTPS029: FSCommand2 SetSoftKeys command found.
FTPS029: FSCommand2 SetSoftKeys command found.
FTPS029: FSCommand2 setquality command found.
FTPS029: FSCommand2 fullscreen command found.
FTPS029: FSCommand2 SetSoftKeys command found.
FTPS029: FSCommand2 SetSoftKeys command found.
FTPS029: FSCommand2 setquality command found.
FTPS029: FSCommand2 fullscreen command found.
FTPS029: FSCommand2 SetSoftKeys command found.
FTPS049: Four Way Navigation with wraparound is not supported for this device.
FTPS029: FSCommand2 SetSoftKeys command found.
FTPS029: FSCommand2 setquality command found.
FTPS029: FSCommand2 fullscreen command found.
FTPS030: FSCommand2 Quit command not supported in the emulator, please test it on the device.
level : status
code : SharedObject.Flush.Success
I feel like i have really developed my flash skills and knowledge of generating content for mobile devices.

No comments:
Post a Comment