Ramblings

November 27, 2006

Flash Forever – BitmapCache

Filed under: flash — michaelangela @ 5:01 am

This does in fact seem to solve the dreaded “always reloading” image flash of the cell renderer. Bravo!

Flash Forever – BitmapCache:

A normal typical quick implementation of a CellRenderer that loads its associated image in it’s instance is illustrated on the left. On the right is an example of an implementation using the BitmapCache. Since the List component from MM reuses it’s cell instances for multiple items while the user scrolls, the Cell renderer instance will often need to change it’s content. When the content is text based this problem doesn’t surface, since the content is already available as it to be displayed. When using image data, you can either code something that manages loading your items bitmaps in a global stable place or you can easily solve your problems with the BitmapCache classe.

Accessibility: In search of… a perfect plugin technique

Filed under: flash — michaelangela @ 1:57 am

Again with the Flash embedding… some references

Accessibility: In search of… a perfect plugin technique:

Bob and I frequently field questions and read posts on lists related to the ?right? way to include Flash content in a web page. Several developers have made efforts to find a technique to do so that doesn’t break page validation, including Drew McLellan’s Flash Satay, Bobby Van Der Slius’s UFO, Geoff Stern’s FlashObject, and a nested object method provided by Ian Hickson.

How to correctly insert a Flash into XHTML ?La Trine

Filed under: flash — michaelangela @ 1:42 am

Always looking for a way to embed Flash without causing trouble… Not always easy. This is interesting because it doesn’t require Javascript, validates, and allows for alternate content.

How to correctly insert a Flash into XHTML – La Trine:

Final Solution The complete code will then look like this (example + validator):

<!--[if !IE]> -->
<object type="application/x-shockwave-flash"
data="movie.swf" width="300" height="135">
<!-- <![endif]-->

<!--[if IE]>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase=
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0

width="300" height="135">
<param name="movie" value="movie.swf" />
<!--><!---->
<param name="loop" value="true" />
<param name="menu" value="false" />

<p>This is <strong>alternative</strong> content.</p>
</object>
<!-- <![endif]-->

Maybe it’s not a brilliantly elegant solution, but it’s only truly functional solution that I have found.

  • it’s valid

  • it’s functional in all browsers that I know

  • it always show alternative content if the plugin is missing

  • it can be combined with Eolas workaround trick

  • it doesn’t require javascript

  • tags <param> are not doubled

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 36 other followers