Actionscript 2.0 :: EmbedFonts, List Component Not Displaying Font

May 4, 2009

the embed fonts stuff in flash, it sometimes works and then again it does not. my problem I need to embed a greek font to be used with the List Component. what I did so far:

1. library-> new Font ( Named it myFont, exported it as:MyFont )

2. put a list comp on stage called it myList

3. got a xml file called index.xml encoded in UTF-8 (so it displays greek chars) that gets loaded (makes no diff if you use component inspector to insert the labels)

4. set system.codepage to false;

Code: Select allmyList.setStyle("embedFonts", true);
myList.setStyle("fontSize", 13);
myList.setStyle("fontFamily" , "MyFont");

what it does not work. I am at a loss as to how to get this to work. I am attaching the file and the font used. (verdana arial should work too, but even they don't embed)

Mabe it has something to do with the xml encoding, but if you try to just copy the greek characters into the component inspectors lable field they are still not displayed. So I guess xml encoding is not the problem.

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Displaying Images In A List Component?

Jan 19, 2007

I am trying to create a thumbnail viewer using a list component. I used list.cellRenderer to display a test image and it displays that image about 50 times vertically down the list component. how to use this component with images?

View 1 Replies

ActionScript 3.0 :: Displaying Images With List Component For Flash CS4?

Feb 9, 2010

I am an inexperienced user of Flash CS4 Pro (v10.0.2). I am attempting to use the List component with ActionScript 3.0 to make a different image display when a user clicks each item in a list. I did find a tutorial that showed me how to make different text display using a dynamic text box and the following ActionScript:
 
[code]...

...where My List is the instance of the List component and ListText is the dynamix text box. In this case, the user clicks an item in the list, defined by the label value in the dataProvider parameter of the List component, and text displays as defined in the data value in the dataProvider parameter.
 
However, as I mentioned to start, what I really want to do is make images display instead of text. Can anyone provide me the steps to do this?

View 5 Replies

ActionScript 3.0 :: List Component / Changing Font Color

Jun 20, 2009

I have a list component in my flash movie, and I managed to change the look of it by going into it and physically changing the assets, but I don't know how to change the font size/color/family.I've seen lots of documentation, but nothing complete, and definitely nothing that I can paste into my document.

View 2 Replies

ActionScript 2.0 :: Displaying Fonts With .embedFonts & .createTextField

Nov 13, 2002

so I'm making a site with 4 main buttons. Each of them send you to the sub-section and I'm making the sub-category buttons from 4 arrays with the names of each subCat and a .duplicatMovieClip loop. My problem is that I can't get the font I'm using (Adobe "Myriad Web Bold") to display those subCat... I tried using a "dummy" dynamic text field off stage with embedded font as well as adding/linking the font into the library. When I do a "Size Report" the font seem to be embedded but the text doesn't show up. When I set ".embedFonts = true;" to "false" then the text comes back (but in device font of course...)

Here some of the code:

// creates the new buttons
for (i=0; i < subCat_array.length; i++) {
_root.subCat_masterBT_mc.duplicateMovieClip(subCat _array[i]+"_mc", 100+i);
_root[subCat_array[i]+"_mc"]._x = _root.subCat_masterBT_mc._x;

[Code].....

View 14 Replies

ActionScript 1/2 :: Use The .embedFonts With A Chinese Font But This Does Not Appear To Work

Feb 8, 2011

I have been trying to use the .embedFonts with a chinese font but this does not appear to work. When I use an english font, no problems there, its just when I try any non English font, nothing appears.

View 1 Replies

ActionScript 3.0 :: Got New Font Called Sunset Inside Library And EmbedFonts Set To True, But Nothing Works?

Jul 16, 2010

I just tried everything to do embedFonts work correctly in CS5. In Flash CS4 there was no any problems with this. The TextField is created in AS3, I got new font called Sunset inside library and embedFonts set to true, but nothing works, there is no errors and the text is still invisible

View 1 Replies

Android :: List Component Good For Chat Displaying Chat Data?

Mar 29, 2012

i want to create a chat app using flex 4.5 mobile project for android device. For the chat screen, i wanted it to look glossy and stylish. Hence i thought i would use the list component and disable the selection in it. I m able to add the chat messages into the list. But i doubt if large chat data might hinder the performance. Im using a collection and i ve binded it with the list. Whenever i receive a chat i update the collection and it gets displayed in the list. Can someone tell me if his could pose a performance problem as list component is not intended for this purpose.

View 1 Replies

List Component - Populate A List Box Component Located Within A Separate Mc In Swf With An Array?

Jun 29, 2009

how to populate a list box component located within a seperate mc in my swf with an array... the array comes from a response from a webservice call. I am not currently on the computer with my source code available so lets just use the following....

listdata[i] = the array i want to populate the list box with..... (listdata1, listdata2, listdata3, listdata4, etc. etc.)
movieclip1 = the MC within my fla containing the list box component
mylist = the actual list component

... just not all that familiar with the format of actionscript when working with objects... using CS3 and as2 btw,

View 3 Replies

Flash :: List Component - Change Pointer Icon To Hand For List Items?

Nov 9, 2010

I am working on an older Flash project created in CS3 ActionScript 2.0 How can I make the pointer cursor change to the hand when hover over a list item?_root.slidePanel.myList'myList' is the list. I have traced out the contents of the List MC and it has a child MC called 'content_mc'. I assumed this was the object containing all of my list items but the only members of this MC I can see (when tracing them out) are 'setRGB' and 'searchKey'.

View 1 Replies

ActionScript 2.0 :: Combobox & List - Each Selection Triggers The Specific Xml File To Load Into The List Component?

May 10, 2007

I have a combobox and list component on the stage. The combobox has 3 selections. How do I get it so that each selection triggers the specific xml file to load into the list component? I can't get them to communicate to each other.

View 1 Replies

Actionscript 3 :: Get A Navigation Through The List Items In A List Component Of Flash?

Mar 23, 2012

Why I have to press 2 times the arrow key down to get a navigation through the list items in a list component of Flash?

Theres any workaround for this? I have a listener for keyboard event that checks if keyCode is equal to 40 if it is then I use 'stage.focus = list', but I have to press 2 times key arrow down to start navigating through list items.

View 1 Replies

Flex :: Make A Custom Component Or Extend The List Component For A 2D Top Down View MAP ?

Nov 11, 2010

I'm building a top view 2D map, that it's objects are stored on the server.The kind of objects are 10 and might be a photo, label, button, lists, mix of them or labels with tooltips.The component must request the "areas" that are missing on screen.An area is 1000x1000 px and is cached in flex.To move in the map, will be like in google maps (drag-and-drop).I should be able to have another list and move objects from one to another using drag-an-drop on objects. Ex.: I grab an objects from a list and I move it on this map, I release the mouse button and the item is placed there.Now the problem is: I build a custom component for this trying to emulate the item renderer for performance and recyclage, implement drag-and-drop on objects and request the areas that are missing?

or

I extend the List component from spark and I add some features as multiple kind of itemrenderers and use recycle on them. Of course it must be able to request the missing areas on the screen and cache it's data.Maybe create a custom layout is needed too.What I need is something that must be really fluid, so the lighter this component is, the better.

UPDATE: *There will be not any object over another.

*I will not use hitTest on bitmaps because all bitmaps are wrapped in another component,as they,for now are itemrenderers.

Anyway I already begin to do this using a class that extends the SkinnableDataContainer and a custom layout. As the layout is not like a grid, is sparse, random items at diferent points(x, y).How to get the localX and localY, relative to item renderer and not to the Spark List, from a DragEvent in Flex 4?

View 1 Replies

ActionScript 2.0 :: XML From Xml - Load The Second List On The Other List Component?

Apr 13, 2006

I have two Lists (components) on stage. The first one (mainList populates from an XML called topics.xml

[Code]...

on event handler change, I want to load the second list on the other list component, called subList..It's not loading.. I believe it's because when it reads the data from my topics list, it reads topic1.xml instead of "topic1.xml" ( reads without the quotes). If I unquote line v.list.load("subtopic.xml"), it works, but I need it to be loaded from the XML..

[Code]...

View 1 Replies

PC Static Font Not Displaying Correctly On Mac?

Jul 13, 2009

I have a PC fiash file with static body text that is New Gothic font. The published swf looks great on the PC, though when testing on Mac, none of the text appears. I thought that with static text fields, the font is automatically embedded?
 
how I can get the font to display properly on a Mac?

View 3 Replies

ActionScript 3.0 :: Embedded Font Not Displaying?

Feb 10, 2011

Then here is the code I'm using to create a new textbox and display text in the embedded font:

var myFont:Font = new Font1();
var myFormat:TextFormat = new TextFormat();myFormat.font = myFont.fontName;myFormat.size = 24;myFormat.bold = true;

[code]....

View 3 Replies

ActionScript 3.0 :: Embedded Font Not Displaying En Or Em Dashes

Sep 14, 2008

Does any one know how (by using AS3), I can choose to embed certain glyphs? When I use the embedFonts = true, it doesn't seem to be including en dashes (-) or em dashes (-), only hyphens!

View 1 Replies

ActionScript 2.0 :: Displaying Pixel Font Right In Animation?

Aug 22, 2006

I am having problem with displaying pixel font right in animation, check: [URL] Font is embed in dynamic text field. If it's 'antialiased for animation' then font is blurry and if it's 'Bitmap text (no anti-alias)' then animation is not smooth.

View 4 Replies

ActionScript 3.0 :: Text Field Not Displaying Font Correctly?

Jul 2, 2010

I was coding an AS3 file and it worked great until I started writing a class to extend the textfield class. After that, every time I tested my movie, the text field is created but nothing showed up. After some troubleshooting, I discovered that the text was actually in the text field, but was outside of the bounds of the text field and the field's height cannot be resized through code or with multiple lines of text. I found this out because I could copy the text and paste it into a text editor (and no, the text isn't set to white). Everything works properly with dynamic text fields created on the stage, just not when created in actionscript. I have tried embedding a font and using the default with no luck. The code even works on a different machine!! The same problem occurs in AS2. I have tried dumping the class file I created, reinstalling Flash, the Flash Player, and even uninstalling my font management program and still nothing.

[Code].....

View 7 Replies

ActionScript 3 :: Flash Font / Stylesheet Displaying Improperly

Mar 11, 2011

I created a swf in flash which contains a font I want to use in conjunction with a stylesheet in a separate swf. The stylesheet and font work fine in another text field which has been placed statically on the stage. However, when I try to dynamically place a text field on the stage, it doesn't work. The only thing that displays is the text with a span of class .gbold.

Here's my code:
function vidLoaded (e:LoaderEvent){
var vidText:TextField = new TextField();
vidText.autoSize = TextFieldAutoSize.LEFT;
vidText.x = textX;
vidText.y = textY;
[Code] .....

View 1 Replies

ActionScript 2.0 :: Dynamic Text Displaying Wrong Font?

Jul 29, 2008

Here is a project I'm currently working on:

[URL]

The loading screen in the beginning is supposed to use a special font that I've downloaded. I can see this font on my system when I test the live site online on my system, but when I get on other systems (which don't have the font on their system) it displays a default font, usually Times New Roman or the like.

I'm just wondering if there is a way to embed the font somehow so it uses the font I've chosen for it to use.

View 5 Replies

Professional :: Registered Trademark Symbol (®) Not Displaying In Any Chinese Font - CS5?

Jan 24, 2011

I'm on a mac using CS5/AS3 and I'm having trouble getting the ® symbol to display in a dynamic textfield embedded with a Chinese font (Hei - but others fail as well). I can type the ® symbol into the textfield in the authoring tool, the problem occurs when dynamically populating the textfield via XML at runtime. I have tried multiple Chinese fonts, multiple encoding types in the XML (unicode, html, etc) and all characters are embedded properly as far as I can tell. I'm not having font trouble in general, all other characters and symbols I have tried work fine except for the registered trademark,

View 1 Replies

Flex - Displaying List Containing XMLListCollection?

May 30, 2011

I'm a Flex noob and I've been struggling with this problem for a last week, and I'm at my wits end.

I have opened the following XML file

<root>
<person>
<city-of-death>asdf</city-of-death>
<place-of-death>qwert</place-of-death>
</person>

[Code]...

I would be so incredibly grateful if someone could help. I am pulling out my hair!

View 1 Replies

ActionScript 3.0 :: List Text Not Displaying

Oct 14, 2009

Since my original post got moved to Components thread, but no one is responding and the majority of the people on the Forum are here, I'm gonna repost it here. I have an AS created List Component that is dynamically populated using a dataProvider populated from an XML document. When I addChild to the main timeline, everything works. When I addChild it into a MovieClip, the list shows up with the appropriate number of rows, but no text.[url]...

View 0 Replies

ActionScript 3.0 :: Displaying List From ArrayCollection

Feb 22, 2011

I would like to have a List displayed that displays data collected from the user into an ArrayCollection. I have a main DataHandling.as class that "adds" the data to the AC as an Object, but when I use trace() on the AC from another class, it does not show any values being present in the AC.

I also added some test data to make sure I was populating the AC correctly and that works just fine. I just can't seem to figure out how to add data (text specifically) to the array from another class. (The other file is .mxml)Here is my mxml code (MyCards.mxml):

ActionScript Code:
protected function myCardsList_creationCompleteHandler(event:FlexEvent):void
{
// This traces the 'cards' ArrayCollection from the other .as class
// No values are listed

[code]....

View 0 Replies

Professional :: Embedded Font Is Not Properly Displaying When Browse To Certain Portions Of Site

Sep 27, 2010

I'm noticing that my embedded font is not properly displaying when I browse to certain portions of my site with my other office pc's. The "about me" section of [URL] in particular. What's confusing is that the other portions of the site do display the font properly!?! I've uploaded the original .fla file to the server for anyone that's really interested in helping. It can be downloaded at [URL]

View 2 Replies

ActionScript 2.0 :: How To Add Font List

Oct 7, 2009

I have to add some fonts through script, and i have to see the font lists in the output, (which i added in the list). and when i select any purticular font. The text should be changed to that selected font.

View 3 Replies

Professional :: Displaying A Nested Unordered List?

Apr 27, 2010

I have a Flash page that goes out and reads an XML file, then displays the information in it.  Most of the time, it works great.  However, when it comes to nested lists, it doesn't work.  I am using CDATA so that I can use HTML code to display the information as intended.  But Flash absolutely refuses to display a nested list correctly.  For example, if I put in there <ul><li>item 1 <ul><li>subbullet 1</li><li>subbullet 2</li></ul></li></ul>, it displays everything as if I had made each of them individual list items under one master <ul></ul>.
 
There's got to be a way to get Flash to understand and display a nested list.  It's a simple thing to do, I know it.  

View 1 Replies

ActionScript 1/2 :: Combo Box Only Displaying First Item Of A List?

Jul 21, 2011

I have a screen which is essentially an address screen. Amongst other fields. there are two fields on the screen which are used to enter the region of the user. One is a combo box,  the other is a plain text field.

After the user selects their country from a drop down list, if that country has a list of regions associated with it, a Combobox is populated and displayed,  with the text field being hidden. If there are no regions associated with the country then the combobox is hidden and the text field is displayed:

[Code]...

View 4 Replies

Flex :: List Displaying Wrong Until Scrolled?

Nov 6, 2009

I have a List, that is not showing any items until you scroll, then the items show up. Does anyone know how to fix this? I tried calling list.invalidateDisplayList(); and list.invalidateList();

EDIT: Here is some code:

<mx:Script>
<![CDATA[
[Bindable][code]...........

I found that if I add creationComplete="{list.dataProvider = _xmlList }" It solves the problem.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved