Notes for online live seminar

September 29, 2005

Macromedia online live seminar-Tips for Optimizing Flash Lite Content
2005/09/28 9:00 PM US/Eastern

Three ways to optimizing graphics and animations
1. Simplifing animation
When you use tween shape, try to covert to the keyframes and remove the tween settings.

2.Use bmps in place of vectors
It will increase the memory if you use the vectors. So try to use bmp as possible.
Flash Lite [8] Bmp v.s. Vector

3.Adjusting the render quality
Use fscommand2(“SetQuality”, “low/high”) to adjust the render quality.
But you can’t test this function via emulation, you need to test it on your device.


Flash Lite [16] Update error message

September 20, 2005

After Flash 8 released, Flash Lite update the error and warnning messages.

  1. Out of Memory
  2. Stack Limit Reached
  3. Currupted SWF
  4. ActionScript Stuck
  5. ActionScript Processing
  6. ActionScript Infinity Loop
  7. Invalid Frame Buffer
  8. Invalid Display Rect
  9. Invalid Frame Number
  10. Invalid Key
  11. Bad JPEG Data
  12. Bad Sound Data
  13. Root Movie Unloaded

You can get more details from this document Developing Flash Lite Applications(p.75-76). It will appears in the output window, but you can’t see these informations in your device until Macromedia update the Flash Lite Player.


Flash Lite [15] Error message

September 11, 2005

If mobile run flash contenr and appears the “problem with content:6″, and it means “Bad JPEG data”.Belows are the meanings for the numbers.

  1. Out of memory
  2. Stack limit reached
  3. Corrupt SWF data
  4. ActionScript stuck
  5. Infinite AS loop
  6. Bad JPEG data
  7. Bad sound data
  8. Cannot find host
  9. ActionScript error
  10. URL too long

Flash Lite [14] Input Text

September 11, 2005

It is very easy to use input text, just setup the text field to input text. Some mobile developers will define the maximum of the text field, so we need to define the maximum characters’ value, and it could be workable.

But there is a problem, because it won’t focus on the input text field directly. User need to press UP/DOWN to set it focus, as below right state. If the text field as left, it won’t open the text input state when user press ENTER.

If you don’t like the text field show yellow frame, just write down the below ActionScript.
_focusrect = false;

So you need to use another way to indicate which was focused item.


Flash Lite [13] Include fonts

September 11, 2005

Dynamic text and input text in the Flash Lite also have the function including fonts, but it will increase the file size, you need to do some evaluations, especially when you use Chinese.

Below means include numbers 0-9, “:”, and “/”, it will increase 2-3 kb when export to swf file.

You can select “Auto Fill” to add the characters used in this text field, but if you dynamic provide data to it, and you need to add the characters manually.

PS. Flash Lite will add one time when you use the same character with the same font, but you need set each text field which use it.


Follow

Get every new post delivered to your Inbox.