
Welcome Guest
|
#1
|
|||
|
|||
|
Dynamic text is not keeping the style sheet
We have developed a pretty extensive flash project that has multiple scenes and such. In each scene, there is a Dynamic text box loading external content and loading an external style sheet and applying that style to the dynamic text. It seems we are having intermittent problems with the dynamic text not following the style sheet if we flip back and forth between the scenes. Sometimes we will come back and it will fine, then we do the same thing again and the dynamic text is showing up again unstyled.
Any ideas on what we are doing wrong? |
|
#2
|
||||
|
||||
|
Hi mb81 welcome to FM
Most developers should/would tell you that it is genrally a bad idea to use scene's. There is a post round here some where about it. Scottea was the thread poster i think.
__________________
.:To me AS is like LEGO, Only for the big Kids :. - Site - Blog - Glasgow Flasher - Activeden - bringmadeleinehome.com |
|
#3
|
|||
|
|||
|
I don't control how it's put together, I am doing the actionscript/functionality portion. Do you have some advice that can actually help me?
|
|
#4
|
||||
|
||||
|
being rude won't get you anywhere.
|
|
#5
|
|||
|
|||
|
You're right, that's why I wasn't rude, if I wanted to be rude I would have called somebody a name or something. I asked a question about how to fix a problem I was having with dynamic text boxes and was told that I should get rid of scenes. I, as a programmer, completely understand, why we shouldn't use scenes, but as I stated, I am not in control of the aspect of the project and I need help on dealing with the text boxes when switching back and forth between scenes. If someone can answer that question that I first stated, that would be helpful.
|
|
#6
|
||||
|
||||
|
Check this thread
__________________
.:To me AS is like LEGO, Only for the big Kids :. - Site - Blog - Glasgow Flasher - Activeden - bringmadeleinehome.com |
|
#7
|
||||
|
||||
|
Quote:
Actionscript:
var dynTextField:TextField;
var css:TextField.StyleSheet;
function setText(pText:String):Void
{
dynTextField.styleSheet = css;
dynTextField.htmlText = pText;
}
__________________
Our greatest glory is not in never falling but in rising everytime we fall. - Confucius Blog | Shared Items |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dynamic Text - change text box variable on click | kenisswell | Flash MX ActionScript |
10 | 11-01-2005 09:20 PM |
| Creting input textfield | denizci2000 | Flash MX |
5 | 12-15-2004 08:58 PM |
| Problems with dynamic style sheet text in flash player 6 | d60eba | Flash MX |
2 | 11-09-2004 10:54 AM |
| HTML text not showing in dynamic text field | Wasaby | Flash MX 2004 |
2 | 09-07-2004 04:34 PM |
| Setting Dynamic Text in Frame Scripts | zorba990 | Flash MX ActionScript |
4 | 04-28-2003 11:32 PM |




