Re: [Flashcoders] Text field doesn't show hand cursor over links.
Now this works: // start var curText:String = p class=\headline\Different Color Headers/p + pMauris posuere iaculis lectus. Maecenas fringilla viverra libero. + Aenean adipiscing massa non orci. Etiam quis lacus sed pede porttitor dignissim.br + Do you like stronga href= \mailto:flashcod...@chattyfig.figleaf.com\; target=\_blank\ class= \bURL\Figleaf?/a/strongbr + Nullam malesuada leo et turpis tincidunt eleifend. Proin non eros et mauris suscipit fringilla. In hac habitasse platea dictumst. + Maecenas varius. Duis ipsum nibh, varius a, aliquet nec, ornare ac, diam. Nam sollicitudin bibendum elit. + Sed pellentesque tincidunt mi./pbrbrp class=\author\The Flash Comunity is a tightly knit, very intricate part of the web/p; /* //--- Ooor if you want to import your text via a text file or other var curText:String; loadVariables(curText.txt, this); */ /* // inside curText.txt : curText=p class=headlineDifferent Color Headers/ppMauris posuere iaculis lectus. Maecenas fringilla viverra libero. Aenean adipiscing massa non orci. Etiam quis lacus sed pede porttitor dignissim.brDo you like stronga href=mailto:flashcoders@chattyfig.figleaf.com; target=_blank class=bURLFigleaf?/a/strongbrNullam malesuada leo et turpis tincidunt eleifend. Proin non eros et mauris suscipit fringilla. In hac habitasse platea dictumst. Maecenas varius. Duis ipsum nibh, varius a, aliquet nec, ornare ac, diam. Nam sollicitudin bibendum elit. Sed pellentesque tincidunt mi./pbrbrp class=authorThe Flash Comunity is a tightly knit, very intricate part of the web/p */ var fmt:TextFormat = new TextFormat(); fmt.font = Arial; fmt.color = 0x00; // for base color without style applied import TextField.StyleSheet; this.createTextField(textContent, 0, 0, 20, 240, 320); textContent.multiline = true; textContent.wordWrap = true; textContent.autoSize = true textContent.selectable = false; textContent.html = true; textContent.setTextFormat(fmt); var my_styleSheet:StyleSheet = new StyleSheet(); my_styleSheet.onLoad = function(success:Boolean) { textContent.ignoreWhite = true; if (success) { textContent.styleSheet = my_styleSheet; textContent.htmlText = curText; } else { curText = Text not loading; textContent.htmlText = curText; } }; my_styleSheet.load(flash_css.css); // end Best, Karl DeSaulniers Design Drumm http://designdrumm.com On May 13, 2009, at 10:57 AM, natalia Vikhtinskaya wrote: I found. Solved. here is correct code with font in library id=Arial var my_fmt:TextFormat = new TextFormat(); my_fmt.font = Arial; this.createTextField(textContent, 1, 0, 0, textAreaW, textAreaW); var obj=this.textContent; obj.multiline = true; obj.wordWrap = true; //obj.embedFonts = true; this is wrong obj.html=true; obj.autoSize = true; obj.selectable = false; obj.setTextFormat(my_fmt); obj.styleSheet = flash_css; obj.htmlText=curText; Now it shows bold, italic, normal 2009/5/13 Ruy Adorno r...@lesite.ca: And what about different ids and the same linkage? natalia Vikhtinskaya wrote: Not possible to have them with the same id. 2009/5/13 Ruy Adorno r...@lesite.ca: You have to embed 2 times the same font in your library, I think you can use just the same id, but you should import one as bold and another as a simple font. natalia Vikhtinskaya wrote: I solved problem with hand cursor. Still can not make text bold. If I check properties in library font- bold all text becomes bold. 2009/5/13 natalia Vikhtinskaya natavi.m...@gmail.com: Thank you for help, but that does not help. I added text area with embeded Arial letters- normal and bold on stage. 2009/5/13 Karl DeSaulniers k...@designdrumm.com: Hi Natalia, On May 13, 2009, at 4:26 AM, natalia Vikhtinskaya wrote: font-family: Arial; // I have font Arial in the library with id “Arial”. Try placing a instance of your embeded font off stage where your loading your textBox. Another problem if I have bold tags bsome text/b that text is not Try strongyour text here/strong HTH Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Text field doesn't show hand cursor over links.
Thank you very much for your help I thought that I solved problem but this is not true. Yes I load css file as you show. I just did not show that in my example for less code. You coder works but I see some strange thing. If I change name in library to any other name – Arial2 and try it with my_fmt.font = Arial2 flash show Times. This is a bit strange. It looks I need embedded font because I cannot apply _alpha without embedFonts = true. Here is example: http://www.natavi.co.uk/test/text_test.html http://www.natavi.co.uk/test/text_test.fla Both examples have _alpha=50; Result is different. Why I cannot change alpha for the first example that show text correctly. This is a problem that I can not fix. 2009/5/14 Karl DeSaulniers k...@designdrumm.com: Now this works: // start var curText:String = p class=\headline\Different Color Headers/p + pMauris posuere iaculis lectus. Maecenas fringilla viverra libero. + Aenean adipiscing massa non orci. Etiam quis lacus sed pede porttitor dignissim.br + Do you like stronga href=\mailto:flashcod...@chattyfig.figleaf.com\; target=\_blank\ class=\bURL\Figleaf?/a/strongbr + Nullam malesuada leo et turpis tincidunt eleifend. Proin non eros et mauris suscipit fringilla. In hac habitasse platea dictumst. + Maecenas varius. Duis ipsum nibh, varius a, aliquet nec, ornare ac, diam. Nam sollicitudin bibendum elit. + Sed pellentesque tincidunt mi./pbrbrp class=\author\The Flash Comunity is a tightly knit, very intricate part of the web/p; /* //--- Ooor if you want to import your text via a text file or other var curText:String; loadVariables(curText.txt, this); */ /* // inside curText.txt : curText=p class=headlineDifferent Color Headers/ppMauris posuere iaculis lectus. Maecenas fringilla viverra libero. Aenean adipiscing massa non orci. Etiam quis lacus sed pede porttitor dignissim.brDo you like stronga href=mailto:flashcoders@chattyfig.figleaf.com; target=_blank class=bURLFigleaf?/a/strongbrNullam malesuada leo et turpis tincidunt eleifend. Proin non eros et mauris suscipit fringilla. In hac habitasse platea dictumst. Maecenas varius. Duis ipsum nibh, varius a, aliquet nec, ornare ac, diam. Nam sollicitudin bibendum elit. Sed pellentesque tincidunt mi./pbrbrp class=authorThe Flash Comunity is a tightly knit, very intricate part of the web/p */ var fmt:TextFormat = new TextFormat(); fmt.font = Arial; fmt.color = 0x00; // for base color without style applied import TextField.StyleSheet; this.createTextField(textContent, 0, 0, 20, 240, 320); textContent.multiline = true; textContent.wordWrap = true; textContent.autoSize = true textContent.selectable = false; textContent.html = true; textContent.setTextFormat(fmt); var my_styleSheet:StyleSheet = new StyleSheet(); my_styleSheet.onLoad = function(success:Boolean) { textContent.ignoreWhite = true; if (success) { textContent.styleSheet = my_styleSheet; textContent.htmlText = curText; } else { curText = Text not loading; textContent.htmlText = curText; } }; my_styleSheet.load(flash_css.css); // end Best, Karl DeSaulniers Design Drumm http://designdrumm.com On May 13, 2009, at 10:57 AM, natalia Vikhtinskaya wrote: I found. Solved. here is correct code with font in library id=Arial var my_fmt:TextFormat = new TextFormat(); my_fmt.font = Arial; this.createTextField(textContent, 1, 0, 0, textAreaW, textAreaW); var obj=this.textContent; obj.multiline = true; obj.wordWrap = true; //obj.embedFonts = true; this is wrong obj.html=true; obj.autoSize = true; obj.selectable = false; obj.setTextFormat(my_fmt); obj.styleSheet = flash_css; obj.htmlText=curText; Now it shows bold, italic, normal 2009/5/13 Ruy Adorno r...@lesite.ca: And what about different ids and the same linkage? natalia Vikhtinskaya wrote: Not possible to have them with the same id. 2009/5/13 Ruy Adorno r...@lesite.ca: You have to embed 2 times the same font in your library, I think you can use just the same id, but you should import one as bold and another as a simple font. natalia Vikhtinskaya wrote: I solved problem with hand cursor. Still can not make text bold. If I check properties in library font- bold all text becomes bold. 2009/5/13 natalia Vikhtinskaya natavi.m...@gmail.com: Thank you for help, but that does not help. I added text area with embeded Arial letters- normal and bold on stage. 2009/5/13 Karl DeSaulniers k...@designdrumm.com: Hi Natalia, On May 13, 2009, at 4:26 AM, natalia Vikhtinskaya wrote: font-family: Arial; // I have font Arial in the library with id “Arial”. Try placing a instance of your embeded font off stage where your loading your textBox. Another problem if I have bold tags bsome text/b that text is not Try strongyour text
Re: [Flashcoders] Text field doesn't show hand cursor over links.
Hi, Oops, forgot to post the link to the original Flashcoders post which has some background info: http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/msg43781.html Glen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Text field doesn't show hand cursor over links.
Hi, Don't know if this helps: http://glenpike.co.uk/misc/css_styling_shared_fonts.zip Glen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Text field doesn't show hand cursor over links.
Thank you, in http://www.connectedpixel.com/blog/fonts/embedding #11 explains how to solve problem and I added bold font to the library. Nothing changed. 2009/5/14 Glen Pike g...@engineeredarts.co.uk: Hi, Oops, forgot to post the link to the original Flashcoders post which has some background info: http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/msg43781.html Glen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Text field doesn't show hand cursor over links.
In my previous example, all you do is change the CSS and you should be able to get bold. Or here again as you can see in the text I used. The strong/strong tags in place of bold Sent from losPhone On May 14, 2009, at 10:37 AM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: Thank you, in http://www.connectedpixel.com/blog/fonts/embedding #11 explains how to solve problem and I added bold font to the library. Nothing changed. 2009/5/14 Glen Pike g...@engineeredarts.co.uk: Hi, Oops, forgot to post the link to the original Flashcoders post which has some background info: http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/msg43781.html Glen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Text field doesn't show hand cursor over links.
Did you put Arial2 as a font in your css? Sent from losPhone On May 14, 2009, at 7:56 AM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: Thank you very much for your help I thought that I solved problem but this is not true. Yes I load css file as you show. I just did not show that in my example for less code. You coder works but I see some strange thing. If I change name in library to any other name – Arial2 and try it with my_fmt.font = Arial2 flash show Times. This is a bit strange. It looks I need embedded font because I cannot apply _alpha without embedFonts = true. Here is example: http://www.natavi.co.uk/test/text_test.html http://www.natavi.co.uk/test/text_test.fla Both examples have _alpha=50; Result is different. Why I cannot change alpha for the first example that show text correctly. This is a problem that I can not fix. 2009/5/14 Karl DeSaulniers k...@designdrumm.com: Now this works: // start var curText:String = p class=\headline\Different Color Headers/p + pMauris posuere iaculis lectus. Maecenas fringilla viverra libero. + Aenean adipiscing massa non orci. Etiam quis lacus sed pede porttitor dignissim.br + Do you like stronga href=\mailto:flashcoders@chattyfig.figleaf.com \ target=\_blank\ class=\bURL\Figleaf?/a/strongbr + Nullam malesuada leo et turpis tincidunt eleifend. Proin non eros et mauris suscipit fringilla. In hac habitasse platea dictumst. + Maecenas varius. Duis ipsum nibh, varius a, aliquet nec, ornare ac, diam. Nam sollicitudin bibendum elit. + Sed pellentesque tincidunt mi./pbrbrp class=\author \The Flash Comunity is a tightly knit, very intricate part of the web/p; /* //--- Ooor if you want to import your text via a text file or other var curText:String; loadVariables(curText.txt, this); */ /* // inside curText.txt : curText=p class=headlineDifferent Color Headers/ppMauris posuere iaculis lectus. Maecenas fringilla viverra libero. Aenean adipiscing massa non orci. Etiam quis lacus sed pede porttitor dignissim.brDo you like stronga href=mailto:flashcoders@chattyfig.figleaf.com; target=_blank class=bURLFigleaf?/a/strongbrNullam malesuada leo et turpis tincidunt eleifend. Proin non eros et mauris suscipit fringilla. In hac habitasse platea dictumst. Maecenas varius. Duis ipsum nibh, varius a, aliquet nec, ornare ac, diam. Nam sollicitudin bibendum elit. Sed pellentesque tincidunt mi./pbrbrp class=authorThe Flash Comunity is a tightly knit, very intricate part of the web/p */ var fmt:TextFormat = new TextFormat(); fmt.font = Arial; fmt.color = 0x00; // for base color without style applied import TextField.StyleSheet; this.createTextField(textContent, 0, 0, 20, 240, 320); textContent.multiline = true; textContent.wordWrap = true; textContent.autoSize = true textContent.selectable = false; textContent.html = true; textContent.setTextFormat(fmt); var my_styleSheet:StyleSheet = new StyleSheet(); my_styleSheet.onLoad = function(success:Boolean) { textContent.ignoreWhite = true; if (success) { textContent.styleSheet = my_styleSheet; textContent.htmlText = curText; } else { curText = Text not loading; textContent.htmlText = curText; } }; my_styleSheet.load(flash_css.css); // end Best, Karl DeSaulniers Design Drumm http://designdrumm.com On May 13, 2009, at 10:57 AM, natalia Vikhtinskaya wrote: I found. Solved. here is correct code with font in library id=Arial var my_fmt:TextFormat = new TextFormat(); my_fmt.font = Arial; this.createTextField(textContent, 1, 0, 0, textAreaW, textAreaW); var obj=this.textContent; obj.multiline = true; obj.wordWrap = true; //obj.embedFonts = true; this is wrong obj.html=true; obj.autoSize = true; obj.selectable = false; obj.setTextFormat(my_fmt); obj.styleSheet = flash_css; obj.htmlText=curText; Now it shows bold, italic, normal 2009/5/13 Ruy Adorno r...@lesite.ca: And what about different ids and the same linkage? natalia Vikhtinskaya wrote: Not possible to have them with the same id. 2009/5/13 Ruy Adorno r...@lesite.ca: You have to embed 2 times the same font in your library, I think you can use just the same id, but you should import one as bold and another as a simple font. natalia Vikhtinskaya wrote: I solved problem with hand cursor. Still can not make text bold. If I check properties in library font- bold all text becomes bold. 2009/5/13 natalia Vikhtinskaya natavi.m...@gmail.com: Thank you for help, but that does not help. I added text area with embeded Arial letters- normal and bold on stage. 2009/5/13 Karl DeSaulniers k...@designdrumm.com: Hi Natalia, On May 13, 2009, at 4:26 AM, natalia Vikhtinskaya wrote: font-family: Arial; // I have font Arial in the library with id “Arial”. Try placing a instance of your embeded font off stage where your loading
Re: [Flashcoders] Text field doesn't show hand cursor over links.
I am trying without css now because css works well. Here is the last variant where I try as they recommend in the article. I need use alpha for this html text http://www.natavi.co.uk/test/text_test.fla 2009/5/14 Karl DeSaulniers k...@designdrumm.com: Did you put Arial2 as a font in your css? Sent from losPhone On May 14, 2009, at 7:56 AM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: Thank you very much for your help I thought that I solved problem but this is not true. Yes I load css file as you show. I just did not show that in my example for less code. You coder works but I see some strange thing. If I change name in library to any other name – Arial2 and try it with my_fmt.font = Arial2 flash show Times. This is a bit strange. It looks I need embedded font because I cannot apply _alpha without embedFonts = true. Here is example: http://www.natavi.co.uk/test/text_test.html http://www.natavi.co.uk/test/text_test.fla Both examples have _alpha=50; Result is different. Why I cannot change alpha for the first example that show text correctly. This is a problem that I can not fix. 2009/5/14 Karl DeSaulniers k...@designdrumm.com: Now this works: // start var curText:String = p class=\headline\Different Color Headers/p + pMauris posuere iaculis lectus. Maecenas fringilla viverra libero. + Aenean adipiscing massa non orci. Etiam quis lacus sed pede porttitor dignissim.br + Do you like stronga href=\mailto:flashcod...@chattyfig.figleaf.com\; target=\_blank\ class=\bURL\Figleaf?/a/strongbr + Nullam malesuada leo et turpis tincidunt eleifend. Proin non eros et mauris suscipit fringilla. In hac habitasse platea dictumst. + Maecenas varius. Duis ipsum nibh, varius a, aliquet nec, ornare ac, diam. Nam sollicitudin bibendum elit. + Sed pellentesque tincidunt mi./pbrbrp class=\author\The Flash Comunity is a tightly knit, very intricate part of the web/p; /* //--- Ooor if you want to import your text via a text file or other var curText:String; loadVariables(curText.txt, this); */ /* // inside curText.txt : curText=p class=headlineDifferent Color Headers/ppMauris posuere iaculis lectus. Maecenas fringilla viverra libero. Aenean adipiscing massa non orci. Etiam quis lacus sed pede porttitor dignissim.brDo you like stronga href=mailto:flashcoders@chattyfig.figleaf.com; target=_blank class=bURLFigleaf?/a/strongbrNullam malesuada leo et turpis tincidunt eleifend. Proin non eros et mauris suscipit fringilla. In hac habitasse platea dictumst. Maecenas varius. Duis ipsum nibh, varius a, aliquet nec, ornare ac, diam. Nam sollicitudin bibendum elit. Sed pellentesque tincidunt mi./pbrbrp class=authorThe Flash Comunity is a tightly knit, very intricate part of the web/p */ var fmt:TextFormat = new TextFormat(); fmt.font = Arial; fmt.color = 0x00; // for base color without style applied import TextField.StyleSheet; this.createTextField(textContent, 0, 0, 20, 240, 320); textContent.multiline = true; textContent.wordWrap = true; textContent.autoSize = true textContent.selectable = false; textContent.html = true; textContent.setTextFormat(fmt); var my_styleSheet:StyleSheet = new StyleSheet(); my_styleSheet.onLoad = function(success:Boolean) { textContent.ignoreWhite = true; if (success) { textContent.styleSheet = my_styleSheet; textContent.htmlText = curText; } else { curText = Text not loading; textContent.htmlText = curText; } }; my_styleSheet.load(flash_css.css); // end Best, Karl DeSaulniers Design Drumm http://designdrumm.com On May 13, 2009, at 10:57 AM, natalia Vikhtinskaya wrote: I found. Solved. here is correct code with font in library id=Arial var my_fmt:TextFormat = new TextFormat(); my_fmt.font = Arial; this.createTextField(textContent, 1, 0, 0, textAreaW, textAreaW); var obj=this.textContent; obj.multiline = true; obj.wordWrap = true; //obj.embedFonts = true; this is wrong obj.html=true; obj.autoSize = true; obj.selectable = false; obj.setTextFormat(my_fmt); obj.styleSheet = flash_css; obj.htmlText=curText; Now it shows bold, italic, normal 2009/5/13 Ruy Adorno r...@lesite.ca: And what about different ids and the same linkage? natalia Vikhtinskaya wrote: Not possible to have them with the same id. 2009/5/13 Ruy Adorno r...@lesite.ca: You have to embed 2 times the same font in your library, I think you can use just the same id, but you should import one as bold and another as a simple font. natalia Vikhtinskaya wrote: I solved problem with hand cursor. Still can not make text bold. If I check properties in library font- bold all text becomes bold. 2009/5/13 natalia Vikhtinskaya natavi.m...@gmail.com: Thank you for help, but that does not help. I added text area with embeded Arial letters- normal and bold
Re: [Flashcoders] Text field doesn't show hand cursor over links.
Hi, Did you look at the example in the zip file that I sent the link for - it has CSS, linked fonts bold and link styles too: There are 2 examples I have uploaded - http://glenpike.co.uk/misc/css_styling.zip Simple demonstration of loading a CSS file, some HTML text and using fonts in the library. http://glenpike.co.uk/misc/css_styling_shared_fonts.zip Similar demonstration, but the main SWF loads another SWF with the fonts in without having to share the fonts across the 2 FLA files... Check out the first one - I think it does what you need. The problem maybe with creating a text field at runtime, I am not 100%. Anyway, it was so tricky getting it right from all the articles, I made the demo's to refer back to - just never blogged it... (You might need to install the font for the first demo), you should not for the second... Hope this helps - I made the instructions in the FLA... Glen natalia Vikhtinskaya wrote: I am trying without css now because css works well. Here is the last variant where I try as they recommend in the article. I need use alpha for this html text http://www.natavi.co.uk/test/text_test.fla 2009/5/14 Karl DeSaulniers k...@designdrumm.com: Did you put Arial2 as a font in your css? Sent from losPhone On May 14, 2009, at 7:56 AM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: Thank you very much for your help I thought that I solved problem but this is not true. Yes I load css file as you show. I just did not show that in my example for less code. You coder works but I see some strange thing. If I change name in library to any other name – Arial2 and try it with my_fmt.font = Arial2 flash show Times. This is a bit strange. It looks I need embedded font because I cannot apply _alpha without embedFonts = true. Here is example: http://www.natavi.co.uk/test/text_test.html http://www.natavi.co.uk/test/text_test.fla Both examples have _alpha=50; Result is different. Why I cannot change alpha for the first example that show text correctly. This is a problem that I can not fix. 2009/5/14 Karl DeSaulniers k...@designdrumm.com: Now this works: // start var curText:String = p class=\headline\Different Color Headers/p + pMauris posuere iaculis lectus. Maecenas fringilla viverra libero. + Aenean adipiscing massa non orci. Etiam quis lacus sed pede porttitor dignissim.br + Do you like stronga href=\mailto:flashcod...@chattyfig.figleaf.com\; target=\_blank\ class=\bURL\Figleaf?/a/strongbr + Nullam malesuada leo et turpis tincidunt eleifend. Proin non eros et mauris suscipit fringilla. In hac habitasse platea dictumst. + Maecenas varius. Duis ipsum nibh, varius a, aliquet nec, ornare ac, diam. Nam sollicitudin bibendum elit. + Sed pellentesque tincidunt mi./pbrbrp class=\author\The Flash Comunity is a tightly knit, very intricate part of the web/p; /* //--- Ooor if you want to import your text via a text file or other var curText:String; loadVariables(curText.txt, this); */ /* // inside curText.txt : curText=p class=headlineDifferent Color Headers/ppMauris posuere iaculis lectus. Maecenas fringilla viverra libero. Aenean adipiscing massa non orci. Etiam quis lacus sed pede porttitor dignissim.brDo you like stronga href=mailto:flashcoders@chattyfig.figleaf.com; target=_blank class=bURLFigleaf?/a/strongbrNullam malesuada leo et turpis tincidunt eleifend. Proin non eros et mauris suscipit fringilla. In hac habitasse platea dictumst. Maecenas varius. Duis ipsum nibh, varius a, aliquet nec, ornare ac, diam. Nam sollicitudin bibendum elit. Sed pellentesque tincidunt mi./pbrbrp class=authorThe Flash Comunity is a tightly knit, very intricate part of the web/p */ var fmt:TextFormat = new TextFormat(); fmt.font = Arial; fmt.color = 0x00; // for base color without style applied import TextField.StyleSheet; this.createTextField(textContent, 0, 0, 20, 240, 320); textContent.multiline = true; textContent.wordWrap = true; textContent.autoSize = true textContent.selectable = false; textContent.html = true; textContent.setTextFormat(fmt); var my_styleSheet:StyleSheet = new StyleSheet(); my_styleSheet.onLoad = function(success:Boolean) { textContent.ignoreWhite = true; if (success) { textContent.styleSheet = my_styleSheet; textContent.htmlText = curText; } else { curText = Text not loading; textContent.htmlText = curText; } }; my_styleSheet.load(flash_css.css); // end Best, Karl DeSaulniers Design Drumm http://designdrumm.com On May 13, 2009, at 10:57 AM, natalia Vikhtinskaya wrote: I found. Solved. here is correct code with font in library id=Arial var my_fmt:TextFormat = new TextFormat(); my_fmt.font = Arial; this.createTextField(textContent, 1, 0, 0, textAreaW, textAreaW); var obj=this.textContent; obj.multiline = true; obj.wordWrap = true; //obj.embedFonts = true; this is wrong
Re: [Flashcoders] Text field doesn't show hand cursor over links.
You will need a font instance for each style you want to use in your lib. For instance to have the different Arial fonts embedded: to have normal you would make a font instance using Arial and name it Arial in your lib to have bold you would make a font instance using Arial Bold and name it Arial Bold to have italic you would make a font instance using Arial Italic and name it Arial Italic As long as the name of your instance is exactly the name of your font and you have that style inserted in your lib then you should be good to go. Do not use the bold or italic selector on the properties panel, as this is only best used for static text. This code works: stop(); var curText:String = font color=\#FFCC00\pDifferent Color Headers/p/font + pMauris posuere iaculis lectus. bMaecenas/b fringilla iviverra libero/i. + Aenean adipiscing massa non orci. Etiam quis lacus sed pede porttitor dignissim.br + Do you like ba href=\mailto:flashcoders@chattyfig.figleaf.com \ target=\_blank\Figleaf?/a/bbr + Nullam malesuada leo et turpis tincidunt eleifend. Proin non eros et mauris suscipit fringilla. In hac habitasse platea dictumst. + Maecenas varius. Duis ipsum nibh, varius a, aliquet nec, ornare ac, diam. Nam sollicitudin bibendum elit. + Sed pellentesque tincidunt mi./pbrbrfont color=\#CC\ size=\8\pThe Flash Comunity is a tightly knit, very intricate part of the web/fontp; var fmt:TextFormat = new TextFormat(); fmt.font = Arial; fmt.font = Arial Bold; fmt.font = Arial Italic; fmt.color = 0x00; this.createTextField(textContent, 0, 0, 20, 240, 320); textContent.multiline = true; textContent.wordWrap = true; textContent.autoSize = true textContent.selectable = false; textContent.html = true; textContent.setTextFormat(fmt); textContent.htmlText = curText; I have three font instances in my lib. Arial, Arial Bold and Arial Italic Karl DeSaulniers Design Drumm http://designdrumm.com On May 14, 2009, at 11:49 AM, natalia Vikhtinskaya wrote: I am trying without css now because css works well. Here is the last variant where I try as they recommend in the article. I need use alpha for this html text http://www.natavi.co.uk/test/text_test.fla ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Text field doesn't show hand cursor over links.
Hi to all This is AS2. I have two different results with text area and embedded font.. If I apply this style.css to dynamic text area p { font-family: Arial; // I have font Arial in the library with id “Arial”. font-size: 13px; color: #66; } a:link { font-size: 13px; color: #ff; } a:hover { font-size: 13px; color: #ff; text-decoration: underline; } I have hand cursor over links. If I create text like this: this.createTextField(textContent, 0, 0, 25, 250, 200); var obj=this.textContent; obj.multiline = true; obj.wordWrap = true; obj.embedFonts = true; obj.content.html=true; obj.autoSize = true; obj.selectable = false; obj.styleSheet = flash_css; obj.htmlText=curText; I have underlined links but don’t have hand cursor. What is wrong in this code? Another problem if I have bold tags bsome text/b that text is not visible for text created with createTextField. How can I embed all type of font-wights to my font in the library with id “Arial”? I looked at a lot of examples but can not find answer. Thank you for any help. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Text field doesn't show hand cursor over links.
Hi Natalia, On May 13, 2009, at 4:26 AM, natalia Vikhtinskaya wrote: font-family: Arial; // I have font Arial in the library with id “Arial”. Try placing a instance of your embeded font off stage where your loading your textBox. Another problem if I have bold tags bsome text/b that text is not Try strongyour text here/strong HTH Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Text field doesn't show hand cursor over links.
Thank you for help, but that does not help. I added text area with embeded Arial letters- normal and bold on stage. 2009/5/13 Karl DeSaulniers k...@designdrumm.com: Hi Natalia, On May 13, 2009, at 4:26 AM, natalia Vikhtinskaya wrote: font-family: Arial; // I have font Arial in the library with id “Arial”. Try placing a instance of your embeded font off stage where your loading your textBox. Another problem if I have bold tags bsome text/b that text is not Try strongyour text here/strong HTH Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Text field doesn't show hand cursor over links.
I solved problem with hand cursor. Still can not make text bold. If I check properties in library font- bold all text becomes bold. 2009/5/13 natalia Vikhtinskaya natavi.m...@gmail.com: Thank you for help, but that does not help. I added text area with embeded Arial letters- normal and bold on stage. 2009/5/13 Karl DeSaulniers k...@designdrumm.com: Hi Natalia, On May 13, 2009, at 4:26 AM, natalia Vikhtinskaya wrote: font-family: Arial; // I have font Arial in the library with id “Arial”. Try placing a instance of your embeded font off stage where your loading your textBox. Another problem if I have bold tags bsome text/b that text is not Try strongyour text here/strong HTH Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Text field doesn't show hand cursor over links.
You have to embed 2 times the same font in your library, I think you can use just the same id, but you should import one as bold and another as a simple font. natalia Vikhtinskaya wrote: I solved problem with hand cursor. Still can not make text bold. If I check properties in library font- bold all text becomes bold. 2009/5/13 natalia Vikhtinskaya natavi.m...@gmail.com: Thank you for help, but that does not help. I added text area with embeded Arial letters- normal and bold on stage. 2009/5/13 Karl DeSaulniers k...@designdrumm.com: Hi Natalia, On May 13, 2009, at 4:26 AM, natalia Vikhtinskaya wrote: font-family: Arial; // I have font Arial in the library with id “Arial”. Try placing a instance of your embeded font off stage where your loading your textBox. Another problem if I have bold tags bsome text/b that text is not Try strongyour text here/strong HTH Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Text field doesn't show hand cursor over links.
Not possible to have them with the same id. 2009/5/13 Ruy Adorno r...@lesite.ca: You have to embed 2 times the same font in your library, I think you can use just the same id, but you should import one as bold and another as a simple font. natalia Vikhtinskaya wrote: I solved problem with hand cursor. Still can not make text bold. If I check properties in library font- bold all text becomes bold. 2009/5/13 natalia Vikhtinskaya natavi.m...@gmail.com: Thank you for help, but that does not help. I added text area with embeded Arial letters- normal and bold on stage. 2009/5/13 Karl DeSaulniers k...@designdrumm.com: Hi Natalia, On May 13, 2009, at 4:26 AM, natalia Vikhtinskaya wrote: font-family: Arial; // I have font Arial in the library with id “Arial”. Try placing a instance of your embeded font off stage where your loading your textBox. Another problem if I have bold tags bsome text/b that text is not Try strongyour text here/strong HTH Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Text field doesn't show hand cursor over links.
And what about different ids and the same linkage? natalia Vikhtinskaya wrote: Not possible to have them with the same id. 2009/5/13 Ruy Adorno r...@lesite.ca: You have to embed 2 times the same font in your library, I think you can use just the same id, but you should import one as bold and another as a simple font. natalia Vikhtinskaya wrote: I solved problem with hand cursor. Still can not make text bold. If I check properties in library font- bold all text becomes bold. 2009/5/13 natalia Vikhtinskaya natavi.m...@gmail.com: Thank you for help, but that does not help. I added text area with embeded Arial letters- normal and bold on stage. 2009/5/13 Karl DeSaulniers k...@designdrumm.com: Hi Natalia, On May 13, 2009, at 4:26 AM, natalia Vikhtinskaya wrote: font-family: Arial; // I have font Arial in the library with id “Arial”. Try placing a instance of your embeded font off stage where your loading your textBox. Another problem if I have bold tags bsome text/b that text is not Try strongyour text here/strong HTH Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Text field doesn't show hand cursor over links.
I found. Solved. here is correct code with font in library id=Arial var my_fmt:TextFormat = new TextFormat(); my_fmt.font = Arial; this.createTextField(textContent, 1, 0, 0, textAreaW, textAreaW); var obj=this.textContent; obj.multiline = true; obj.wordWrap = true; //obj.embedFonts = true; this is wrong obj.html=true; obj.autoSize = true; obj.selectable = false; obj.setTextFormat(my_fmt); obj.styleSheet = flash_css; obj.htmlText=curText; Now it shows bold, italic, normal 2009/5/13 Ruy Adorno r...@lesite.ca: And what about different ids and the same linkage? natalia Vikhtinskaya wrote: Not possible to have them with the same id. 2009/5/13 Ruy Adorno r...@lesite.ca: You have to embed 2 times the same font in your library, I think you can use just the same id, but you should import one as bold and another as a simple font. natalia Vikhtinskaya wrote: I solved problem with hand cursor. Still can not make text bold. If I check properties in library font- bold all text becomes bold. 2009/5/13 natalia Vikhtinskaya natavi.m...@gmail.com: Thank you for help, but that does not help. I added text area with embeded Arial letters- normal and bold on stage. 2009/5/13 Karl DeSaulniers k...@designdrumm.com: Hi Natalia, On May 13, 2009, at 4:26 AM, natalia Vikhtinskaya wrote: font-family: Arial; // I have font Arial in the library with id “Arial”. Try placing a instance of your embeded font off stage where your loading your textBox. Another problem if I have bold tags bsome text/b that text is not Try strongyour text here/strong HTH Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders