Prev | Current Page 613 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

This technique has many problems such as security issues, browser
incompatibilities, invalid tags ( embed is not a valid HTML element), and code repetition. A real valid
0, 0
7, ??’4
3, 2
6, 4
??’4, ??’3
??’2, 2
X
Y
Figure 12-2
Chapter 12: Building Interactive Content with Flash
319
alternative solution seems to be using JavaScript to embed the player properly. Take a look at the
following libraries that try to resolve this situation:
SWFObject: A small JavaScript file used for embedding Adobe Flash content. The script can
detect the Flash plug - in in all major web browsers (on Mac and PC) and is designed to make
embedding Flash movies as easy as possible. It is also very search - engine friendly, degrades
gracefully, can be used in valid HTML and XHTML 1.0 documents, and is forward compatible,
so it should work for years to come ( http://blog.deconcept.com/swfobject/ ).
Unobtrusive Flash Objects (UFO): A DOM script that detects the Flash plug - in and embeds
Flash objects (files with the .swf extension).


Pages:
601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625