473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to import external subscript in .txt format into flash

hay am importing sub script externally in .txt format by html tags(H<sub>2</sub>o)but this tag is not working in flash.so please guide me how to show a subscript externally in .txt format in flash
Jan 25 '07 #1
6 5548
Motoma
3,237 Expert 2GB
hay am importing sub script externally in .txt format by html tags(H<sub>2</sub>o)but this tag is not working in flash.so please guide me how to show a subscript externally in .txt format in flash
I am having a little trouble understanding what you are asking, but here is what I think you mean:
You have a Text field, on the Stage, with the HTML attribute set. You want to the a small segment of your text to render as the subscript of the rest of the text.

I don't know of a simple solution...have you tried adjusting the font size with FONT tags, instead of SUB tags?
Jan 25 '07 #2
thx 4 ur reply ..........but i did't try font tag & i dont no properly plz explain it
Jan 30 '07 #3
Motoma
3,237 Expert 2GB
thx 4 ur reply ..........but i did't try font tag & i dont no properly plz explain it
Try:
H<font size="-5">2</font>O
Jan 30 '07 #4
i already did it,but i hav to move the 2 litle bit downwards so that it looks like a subscript.want to align the baseline of 2.any idea of it.
Jan 31 '07 #5
Motoma
3,237 Expert 2GB
i already did it,but i hav to move the 2 litle bit downwards so that it looks like a subscript.want to align the baseline of 2.any idea of it.
I don't have any ideas, other than creating a new text area and aligning that properly.
The amount of HTML which flash supports is only a tiny subset of the language.
Jan 31 '07 #6
I want to share with you the way I get may subscript and superscript inin dynamic and input text field in Flash:
<sub> & <sup> tags are not supported by Flash :( but you can
use Subscript & Superscript in dynamic and input text field in Flash:

Download & install Subscript & Superscript fonts from http://www.subscriptfont.com or http://www.superscriptfont.com
You will need to restart Flash software after installed fonts.
Create a dynamic text field with Arial font embeded. Set the HTML property to true.
Create a dynamic text field with Subscript font embeded.
Create a dynamic text field with Superscript font embeded.
Use HTML tag to set text to subscript or superscript like below:
Some text<font face="Superscript\">©</font>
If you are using ActionScript to test the htmlText, use script like below:
my_txt.htmlText = "Some text<font face='Superscript'>TM</font>";
Data can come from a XML file, TEXT file or from flash itself.
Jun 30 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: mark4asp | last post by:
Hello Guys, I find myself having to format a lot of subscript & superscript characters from text which is being HTMLed. This was originally OCRed but the OCRed work was not saved as HTML due to...
2
by: Tmuld | last post by:
Hello! I have data exported from a Reference Manager 11, and need to import it into and SQL database. Each record has different number of fields. It is used to cite journal articles. (more...
2
by: Siu | last post by:
Hi, I use the following code to export and import a file Excel from resp. into a Web page with the following code: //EXPORT Response.Clear(); Response.Buffer = true; Response.ContentType =...
1
by: Child of His | last post by:
I have been through every trick I know, or has been suggested. I have a one to two million line fixed field database in text format. I want to bring it into Access 97. When I use the external...
5
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually...
1
by: ramvenkat | last post by:
hi is it possible to save a external file through flash application in a particular folder specified in the flash application? means 1)would like to specify a folder while saving a particular...
10
by: nisp | last post by:
Hi all ! I'm trying to capture stderr of an external module I use in my python program. I'm doing this by setting up a class in my module overwriting the stderr file object method write. The...
6
by: serdar | last post by:
Hi, I'm developing a flash game and need to read data from a text file (about 100k). I do not want to read it from an external file. -Is it possible to somehow import a text file into flash and...
1
by: jawwad90020021 | last post by:
import flash.external.ExternalInterface; after compile this error occurs **Error** Symbol=Menu_Buttons, layer=Layer 12, frame=1:Line 1: Syntax error. import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.