Author Topic: Pink Screen with some SWF files  (Read 1071 times)

kelvin.cushman

  • Newbie
  • *
  • Posts: 12
Pink Screen with some SWF files
« on: May 02, 2010, 12:28:43 pm »
Hi guys can anyone help me, i have created a SWF that shows a shop demo with some simple animation. but i have loaded to megazine and without moving the mouse over the book it loads fine but if you mover the mouse over to click an image when you do this it shows a pink screen,but when you go to turn the page it shows fine all other SWF's on other pages are fine. please see images

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: Pink Screen with some SWF files
« Reply #1 on: May 13, 2010, 04:19:37 pm »
I had a look into this issue as it has popped up several times now, and am pretty sure it's related to Flash's incapability to handle Bitmap-data (read: pixel based images) past a certain size. And because it speeds things up, the engine uses Flash's internal bitmap-caching in a few places.

If you can, would you please try the current trunk revision, and set the new "allowbmpcaching" attribute to false for a) the image, b) the page and c) both, and see if one of those combinations helps? I.e.
Code: (xml)
  1. <page><img allowbmpcaching="false" src="..."/></page>
  2. <page allowbmpcaching="false"><img src="..."/></page>
  3. <page allowbmpcaching="false"><img allowbmpcaching="false" src="..."/></page>

Thanks.
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

cduncan

  • Newbie
  • *
  • Posts: 18
Re: Pink Screen with some SWF files
« Reply #2 on: May 13, 2010, 06:29:45 pm »
I've just recently seen this phenomenon for the first time.
I do all my development on a Windows machine. I'd never seen the pink page problem with Windows. (I'm sure Windows would like to learn;) But when I tested my (online) book on a Mac I repeatedly saw this effect when I moved my mouse when a page was still loading.
It may be worth noting that I have pages with lots of individual swfs on them.

Here's a link to a book that has lots of slow-loading pages. Each page (after page 7) is one full-page swf text field that loads interactive swfs as embedded images within it.

http://www.dl.ket.org/Physics_eBook/indexCh02.html

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: Pink Screen with some SWF files
« Reply #3 on: May 15, 2010, 12:50:48 pm »
I'll probably release 2.0.8 today or tomorrow, so when I do I'd appreciate it if you could try what I mentioned above :) (attribute not in 2.0.7a, so the only way to test it right now would be for you to build the engine yourself; if you can, feel free to go ahead an try it now, though)
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

cduncan

  • Newbie
  • *
  • Posts: 18
Re: Pink Screen with some SWF files
« Reply #4 on: May 17, 2010, 07:45:41 pm »
Hey Florian,

OK, I've put version 2.0.8rc1 through its paces on the pink page issue for Macs. Here's what I found.

1. It worked fine (no pink) on a Mac in all three cases that you suggested.

   1. <page><img allowbmpcaching="false" src="..."/></page>
   2. <page allowbmpcaching="false"><img src="..."/></page>
   3. <page allowbmpcaching="false"><img allowbmpcaching="false" src="..."/></page>

2. It failed in all three cases with <spreadpage>

I hope that helps.

Chuck

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: Pink Screen with some SWF files
« Reply #5 on: May 18, 2010, 07:39:48 pm »
Hmm, it does, a little. I think. ;) Anyway, would it be possible for you to send me the data for one page where this happen, so I can reproduce it here and try to sort it out? I think I may have found a way to avoid the pinkness, but it'd still be good to be able to test this out from not on. :)
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

cduncan

  • Newbie
  • *
  • Posts: 18
Re: Pink Screen with some SWF files
« Reply #6 on: May 19, 2010, 05:19:18 pm »
Florian,
I'm not sure what you mean by "the data for one page" but here's a first attempt.

Here's the link to page 6 of an early version of the book I'm working on.
http://edit-dl.ket.org/Physics_eBook/indexCh02.html#/6

This version loaded very slowly which I think is what makes the pink background such an issue.
On a Mac, if you move your mouse around while the page is loading you'll see the pinkness.

On a newer version that loads faster, you have to be quick to move the mouse to cause the effect.
http://edit-dl.ket.org/Physics_eBook/indexCh02_orig.html#/6

The first version loads the interactive gadgets into a the full-page text file as inline images.

Here's a snippet:

txtFld.htmlText += "      Record span of 10 dots on paper version of book"
txtFld.htmlText += "b.   Repeat (a) with Green dots, Vo[7]"
txtFld.htmlText += swf2;// This is a reference to one of the interactive gadgets.
txtFld.htmlText += "more text"

The second version loads them as independent objects, not as inline images.

I'd be glad to provide more details, scripts, or whatever if it would be useful. Just let me know.

Chuck