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.


Flash Lite [12] Scroll Text

September 9, 2005

We could use Action Script to scroll the dynamic text field. Create a dynamic text, choose multiline, and open “Text” pull down menu and choose scrollable. Paste/Input contents in it and set the var to “content”.

You can use slash or dot syntax,

If you use slash syntax, just write down below Action Script in the button.
on(keyPress “<Up>”){
tellTarget(“/”){
content.scroll–;
}
}

If you would like to use dot syntax, you need to covert the text field to a MovieClip.
on(keyPress “<Up>”){
_root.page_mc.content.scroll–;
}

Please notice the text field’s height, if your device use different font, maybe it will show uncompleted content.


Follow

Get every new post delivered to your Inbox.