×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Nokia Developer Champion
    Join Date
    Apr 2005
    Location
    Boston
    Posts
    517

    Flash Lite error codes, proposal for better user experience

    Ciao,

    I made a post few days ago regarding the Flash Lite Error Codes that get displayed by the Flash Lite player when there are errors in the content.

    Wanted to open a discussion on this and see if it makes sense:

    "The idea is pretty simple. Define a fscommand2(”Errors”, “on”) or something that capture the errors and return the numbers associated with the specific errors list above and then we could use an error event handler so that we can show our own custom messages! If you do not use this fscommand2 or you set it to fscommand2(”Errors”, “off”), all error messages are disabled. Of course this is just a quick idea."

    More here: http://www.biskero.org/?p=2599

    Alessandro

  2. #2
    Product Specialist
    Join Date
    Jun 2003
    Location
    UK
    Posts
    191

    Re: Flash Lite error codes, proposal for better user experience

    Hi Alesandro,

    It’s a interesting idea.

    From a runtime standpoint the messages are there because the developer needs to get rid of them, in most cases they do right?! All of the errors above are player messages, they report that the content is stuck, an image failed to decode or that it’s out of memory.

    Let’s look at some scenarios for Flash Lite.

    A developer turned off errors and a download failed because the user went into a tunnel. Do we report “Unable to load data”, pass this to the content where it may not be handled or do nothing?

    A developer turns off errors and the content gets stuck (content error 4), the user thinks something bad happened and Flash has stopped the content for safety. Who is going to tell the user?

    Maybe you can think of other scenarios where the content is no longer running anyway?

    Mark
    Adobe
    Mark Doherty
    Developer Evangelist
    Adobe Systems, Mobile and Devices EMEA

  3. #3
    Nokia Developer Champion
    Join Date
    Apr 2005
    Location
    Boston
    Posts
    517

    Re: Flash Lite error codes, proposal for better user experience

    Ciao Mark,

    the TurnOff is for the popup messages when I publish my content for end user, so I suppress the default messages (from the player) but I can create my own error messages into my content by catch the error codes from the player.

    I got the idea from the GetNetworkRequestStatus event fscommand:
    status = fscommand2("GetNetworkRequestStatus");

    We would have the following command during development/debugging:
    status = fscommand2("GetErrorStatus", true);

    and when I publish my content for the end user I set to false:
    status = fscommand2("GetErrorStatus", false);

    so the false flag will tell the player not to show these default pop-up messages (that we have now), but the status still gets the return codes.

    I will create custom error messages in the FL content so that I can show these messages to the end user. Better User Experience !

    So from your scenario: "A developer turned off errors and a download failed because the user went into a tunnel. Do we report “Unable to load data”, pass this to the content where it may not be handled or do nothing?"

    the status = fscommand2("GetErrorStatus", false); capture the error code in the status return code, and I can show a clip with my custom error message or do an action.

    "A developer turns off errors and the content gets stuck (content error 4), the user thinks something bad happened and Flash has stopped the content for safety. Who is going to tell the user?"

    again, status = fscommand2("GetErrorStatus", false);
    status is equal to 4, I can create my custom message and display it to the user.

    Does it make sense? Maybe my blog post was not extensive enough, by I was afraid I would get many question about this fscommand2 !!

    I think it would be pretty easy to implement.

    Alessandro

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    11

    Re: Flash Lite error codes, proposal for better user experience

    Alessandro,

    I too would ideally like to implement error messages within the confines of the applications user interface and branding guidelines.

    When it comes to "out of memory" error messages as a result of a code attempt to load an asset I would prefer to be able to remove/nullify any redundant objects then instruct the garbage collector to collect garbage before trying again. Hopefully this time with no error and therefore user doesn't have to know there was an error as the action has been taken to overcome it.

    However, if the error persisted then I would like to be able to inform the user of the error and suggest an action - within the same visual branding style within my applications user interface - not as a generic popup which looks less professional.

    However , I think Mark's main point was about the danger of the application failing to in some way but the user getting no error message at all (because the sinful developer had disabled the error messages and not implemented an alternative notification mechanism).

    Perhaps a compromise could be reached?


    ade.

  5. #5
    Nokia Developer Champion
    Join Date
    Apr 2005
    Location
    Boston
    Posts
    517

    Re: Flash Lite error codes, proposal for better user experience

    Caio,

    "because the sinful developer had disabled the error messages and not implemented an alternative notification mechanism"

    well can't do anything about that!!

    Anyway, the developer has 2 choices
    - to leave the default error pop-up messages on
    - to suppress the default error pop-up messages and create custom messages

    I understand there are things that are in between, but currently those error messages are a killer. Also some of those messages are more "developer oriented" then user oriented.

    If FL main point is creating compelling user experience then those pop-ups kills in a second !

    I think the solution I am proposing is pretty simple and follows other fscommnad2 convention. It would be pretty simple to show how to use them with same samples.


    Alessandro

  6. #6
    Registered User
    Join Date
    May 2008
    Posts
    11

    Re: Flash Lite error codes, proposal for better user experience

    Alessandro.

    I couldn't agree with you more, there are plenty of things inexperienced developers can do in flash(& flashlite) and they are not prevented from doing so.

    I don't think "some" of the error messages are geared to developers - I think all of them are! and so I agree with you that they should not be user facing - but are useful to developers.

    ade.

  7. #7
    Registered User
    Join Date
    Jan 2007
    Location
    bucharest
    Posts
    222

    Re: Flash Lite error codes, proposal for better user experience

    ok but what about my problem...

    Code:
    p1._xscale=p1._yscale=30;
    p2._xscale=p2._yscale=20;
    p3._xscale=p3._yscale=10;
    p1.p.loadMovie("e:\\11\\1.jpg");
    p3.p.loadMovie("e:\\11\\1.jpg");
    p2.p.loadMovie("e:\\11\\1.jpg");
    I get "Flash content error: 9"...
    on nokia 5800 s60 5th firmware v20.012 or smth like that...

    and error9 is no error code?!??!!? what is it???

  8. #8
    Product Specialist
    Join Date
    Jun 2003
    Location
    UK
    Posts
    191

    Re: Flash Lite error codes, proposal for better user experience

    Hi,

    I'm a little busy to look up the error code right now but you need to use this convention for file loading:

    loadMovie("file://E:/Data/...", mc);

    Mark
    Mark Doherty
    Developer Evangelist
    Adobe Systems, Mobile and Devices EMEA

  9. #9
    Product Specialist
    Join Date
    Jun 2003
    Location
    UK
    Posts
    191

    Re: Flash Lite error codes, proposal for better user experience

    To the main issue of this post which is a better user experience, and control over error codes. I've requested this change for the next major rev of the player, no promises of course as AS3 and AIR are top priority.

    My most hated feature is "Unable the load data"..

    Mark
    Mark Doherty
    Developer Evangelist
    Adobe Systems, Mobile and Devices EMEA

  10. #10
    Nokia Developer Champion
    Join Date
    Apr 2005
    Location
    Boston
    Posts
    517

    Re: Flash Lite error codes, proposal for better user experience

    Ciao,

    just refreshing this post since it's a major issue that I personally think should be fix as soon as possible!

    Just got a Nokia 5800 XpressMusic and those pop-up are really a pain when they appear!!!
    I do my best to have them, but sometimes I am not in control so can't avoid them.

    Alessandro

  11. #11
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    157

    Re: Flash Lite error codes, proposal for better user experience

    Quote Originally Posted by biskero View Post
    Ciao Mark,

    the TurnOff is for the popup messages when I publish my content for end user, so I suppress the default messages (from the player) but I can create my own error messages into my content by catch the error codes from the player.

    I got the idea from the GetNetworkRequestStatus event fscommand:
    status = fscommand2("GetNetworkRequestStatus");

    We would have the following command during development/debugging:
    status = fscommand2("GetErrorStatus", true);

    and when I publish my content for the end user I set to false:
    status = fscommand2("GetErrorStatus", false);

    so the false flag will tell the player not to show these default pop-up messages (that we have now), but the status still gets the return codes.

    I will create custom error messages in the FL content so that I can show these messages to the end user. Better User Experience !

    So from your scenario: "A developer turned off errors and a download failed because the user went into a tunnel. Do we report “Unable to load data”, pass this to the content where it may not be handled or do nothing?"

    the status = fscommand2("GetErrorStatus", false); capture the error code in the status return code, and I can show a clip with my custom error message or do an action.

    "A developer turns off errors and the content gets stuck (content error 4), the user thinks something bad happened and Flash has stopped the content for safety. Who is going to tell the user?"

    again, status = fscommand2("GetErrorStatus", false);
    status is equal to 4, I can create my custom message and display it to the user.

    Does it make sense? Maybe my blog post was not extensive enough, by I was afraid I would get many question about this fscommand2 !!

    I think it would be pretty easy to implement.

    Alessandro
    Hi,
    I need to handle "Flash Content Error 7". I am using the following commands on FL 3.0 (AS 2.0):

    statusStatus = fscommand2("GetErrorStatus", true);
    statusError = fscommand2("Errors", "on");

    But I get the following message in my output on the emulator, that makes it impossible to catch the proper error code (and data type) and therefore handle it:

    FTPS028: Invalid FSCommand2 GetErrorStatus command found.
    FTPS028: Invalid FSCommand2 Errors command found.

    Please help.

    Regards,
    Supriya Tenany

  12. #12
    Nokia Developer Champion
    Join Date
    Apr 2005
    Location
    Boston
    Posts
    517

    Re: Flash Lite error codes, proposal for better user experience

    Ciao Supriya,

    not sure if you read the entire post, but those commands do not exists!
    These are a request to Adobe/Nokia for new API, which I think will never be implemented.

    Alessandro

  13. #13
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    157

    Re: Flash Lite error codes, proposal for better user experience

    Hi Alessandro,

    thanks for the update. How can I then trace whether another sound application (a call, or a message reader, or a sound clip) has been simultaneously started, so that I can put my video at pause then?

    Regards,
    Supriya

  14. #14
    Registered User
    Join Date
    Oct 2009
    Posts
    126

    Re: Flash Lite error codes, proposal for better user experience

    Quote Originally Posted by supriyaakg View Post
    Hi Alessandro,

    thanks for the update. How can I then trace whether another sound application (a call, or a message reader, or a sound clip) has been simultaneously started, so that I can put my video at pause then?

    Regards,
    Supriya
    Read this: "Resuming application in the background" - supported in FL3.1

    Ranco

  15. #15
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    157

    Re: Flash Lite error codes, proposal for better user experience

    Hi Ranco,

    FL 3.1 is not accepted by the Ovi store. What can be done then, if the app is to be submitted to the Ovi Store?

    Regards,
    Supriya Tenany

Similar Threads

  1. what IDE for flash lite 1.1 content?
    By zhenhan82 in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2008-02-14, 23:30
  2. Flash lite & sis file: different behaviour (Series 60 3rd Edition)
    By presentTech in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-08-27, 20:38
  3. Flash Lite Customize UI
    By Poyo_shiu in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-08-23, 08:10
  4. Replies: 2
    Last Post: 2004-09-15, 22:47

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×