GG's Flash Blog

Category: Flash & HTML

10/20/08

WMODE for SWF

Issue:

  • How to display other HTML content above a swf?
  • DHTML menus appear underneath swf
  • HTML layer z-index not working on swf object

Reason:
By default wmode="window", Active Content is rendered directly to the screen on top of web browser window, which means it appears on top of other HTML content.

Solution:
Set the wmode parameter for swf object & embed tag to "opaque" or "transparent".
e.g.:

  • In HTML,
    1. add to object tag:
      <param name="wmode" value="opaque">

    2. add to embed tag:
      wmode="opaque"

    So your html code will looked like:
    • <object ... >
      ...
      <param name="wmode" value="opaque">
      <embed ... wmode="opaque" ... >
      </object>
  • From Flash,
    1. From menu, File > Publish Settings,

    2. click HTML tag,

    3. select "Opaque Windowless" for Window Mode.

    4. Publish

  • From Dreamweaver,
    1. Select the swf in the Design View.

    2. In the Properties panel, choose Parameters.

    3. Enter "wmode" (without quotes) for the Parameter.

    4. Enter "transparent" (without quotes) for the Value.

    5. Save the document.

Additional Information:

TechNote:
Flash content displays on top of all DHTML layers
How to make a Flash movie with a transparent background

Permalink Share/Save/Bookmark Subscribe 1 feedback

04/19/07

How to use subscript & superscript in dynamic and input text field

Permalink 05:51:49 pm, Categories: ActionScript, Flash & HTML, Font, 221 words

Issue:

  • Unable to use subscript or superscript in dynamic and input text field.
  • Unable to display subscript or superscript for external loaded text.
  • Unable to use <sub> & <sup> tags in dynamic or input text field.

Reason:
<sub> & <sup> tags are not supported by Flash.

TechNote: Subscript and superscript fail in dynamic and input text fields
LiveDocs: Supported HTML tags

Solution:

  1. Download & install GG Subscript & GG Superscript TrueType fonts. You will need to restart Flash software after installed fonts.

  2. Create a dynamic text field with Arial font embeded. Set the HTML property to true.

  3. Create a dynamic text field with GG Subscript font embeded.

  4. Create a dynamic text field with GG Superscript font embeded.

  5. Use HTML tag to set text to subscript or superscript like below:

    Adobe<font face="GG Superscript">TM</font>

    If you are using ActionScript to test the htmlText, use script like below:

    my_txt.text = "Adobe<font face=\"GG Superscript\">TM</font>";

View sample: superscript.swf
Download sample: superscript.fla superscript.swf

NEW! (2008-09-21)
A new set of superscript & subscript fonts includes both sans & serif type, with more complete & improved glyphs, standard scale & shift, is now available to be downloaded (free) from here.

Permalink Share/Save/Bookmark Subscribe 21 feedbacks

XeerSoft - Web-based Integrated Global Business Solution Provider

Accounting, Inventory, Reservation, Transportation, Commission, Point of Sale (POS), CRM, Membership, Time Attendance, Payroll, Human Resource, Manufacturing, Merchandising, Financial, Workflow...
http://www.xeersoft.com


Your ads here

Flash Reference

To share what I have learned from people who have shared.

 << <July 2010> >>
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Search

Categories

Archives

Who's Online?

Account

Syndicate

Donation

If you find GG's Flash extensions or any of our resources useful, help support future development by making a donation.

Ads

Valid XHTML || Valid CSS || Valid RSS || Valid Atom

Copyright © 2006-2009 GGSHOW. All Rights Reserved.
GGSHOW.COM | GGSHOW.NET
eBoaY | tuBabe | syndicater | Nobody's Website | NeverTheLink | NiShiZuiHaoDeNiZhiDaoMa | WorldCoin