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
6 5565 Motoma 3,237
Recognized Expert Specialist
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?
thx 4 ur reply ..........but i did't try font tag & i dont no properly plz explain it
Motoma 3,237
Recognized Expert Specialist
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
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.
Motoma 3,237
Recognized Expert Specialist
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.
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.subscriptfo nt.com or http://www.superscript font.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="Superscri pt\">©</font>
If you are using ActionScript to test the htmlText, use script like below:
my_txt.htmlText = "Some text<font face='Superscri pt'>TM</font>";
Data can come from a XML file, TEXT file or from flash itself.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 the vast amount of
garbage HTML tags written to preserve formatting.
I am looking for either:
(a) a tool that removes nearly ALL formatting The only thing I want
left are
|
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 about the format at
http://www.adeptscience.co.uk/kb/article/A626)
|
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 = "application/vnd.ms-excel";
Response.Charset = "";
this.EnableViewState = false;
|
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 data import, the list of files to import does
not include text files of any type, only other database formats.
On a 102,000 line text file, I was able to split it with Word 97,
import the split files into Excel 97 one at a time, and then save...
|
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 for repeated html im
using the external js, i mean the TOP, BOTTOM they are repeated in
every page, so i include them as functions in the external js and call
them. Why it doesn't work?
| |
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 external file through flash
2)need to take the saved file again through the same flash file..
|
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 external module outputs to stderr this way:
from sys import std err
|
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 compile swf without a need for an external file to read at runtime?
-How about putting the huge data into a string object defined in an .as file? Or is there a specific class to handle such data?
Let me know the right direction to do it.
|
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 flash.external.ExternalInterface;
Total ActionScript Errors: 1 Reported Errors: 1
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |