Discussion Area

ask questions, discuss topics, solve problems

This is a public Discussion Area  publicRSS

Thread

    • Fullscreen crash
      Thread posted Jan 13 by benzgr
      893 Views, 4 Comments
      Title:
      Fullscreen crash
      Content:

      My AS3 app runs perfectly in the flash environment either in debug or in release mode. It runs perfectly when it is published as windows-projector, BUT it crashes when I switch on the fullscreen-mode.

      I identified following method as source of trouble : draw() from BitmapData. All parameters are initialized correctly. Is this kind of problems a known issue or does someone know to cure it?

    Comments

    • answer from Ralph Hauwert : "you have to change the type or cast the object you throw to draw. Old problem but still there." http://twitter.com/UnitZeroOne cheers
    • Thank you for the tip.

      What do I have to cast to? Currently I send a TextField-Object to my BitmapData to draw:

      m_gr_menu.draw(m_label[item], m);
      

      where m_gr_menu is my BitmapData, m_label an array of TextField and m a transorm-matrix.

      As I have read, all object which implement IBitmapDrawable can be thrown to draw. TextField inherits from DisplayObject which implements this interface. So I tried both, a cast into IBitmapDrawable & DisplayObject but none of these worked.

      cheers, Horst

    • answer from Ralph Hauwert: "hmm, that is odd. I'm going to try and digg up my old source code (I only encountered this once). IBitmapDrawable should work."

      wo youl be back to you

    • In my tests (see jan-20) I tried this:

      m_gr_menu.draw(IBitmapDrawable(m_label[item]), m);

      as well in the same way with DisplayObject. Perhaps this is insufficient? - cheers