Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » Textfield, CSS stylesheet external loading

Textfield, CSS stylesheet external loading

 
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 04-03-06, 01:32 PM
Flash_Boi Flash_Boi is offline
Newbie Coder
 
Join Date: Mar 2006
Location: WA state
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Question Textfield, CSS stylesheet external loading

Hi Everyone,

I got this tutorial from the Macromedia FLASH 8 Advanced book at a local library. It has helped me through some stuff. The example of loading external CSS stylesheet into a textfield works lovely, but they don't have an example of loading an external css and external text file into a dynamic text field. I have read numerous tutorials from macromedia's site and a quite a few others from users posting in forums. I seem to still not understand it.

With this actionscript code to load an external css stylesheet. How can I make it so it also loads the external text file dpmoreinfo.txt into the dynamic text field that I render as HTML?

Please incorporate the following ActionScript. Keep in mind to use the dpmoreinfo.txt file in this code.

import TextField.StyleSheet;
var myStyle:StyleSheet = new StyleSheet();
myStyle.load("mystyles.css");
myStyle.onLoad = function(success:Boolean) {
newsLetterTop_txt.styleSheet = myStyle;
newsLetterTop_txt.html = true;
newsLetterTop_txt.text = "<heading>I would like to display my external text file here! How would I do that?</heading>";
};


Thanks for your support!

Flash_Boi
Attached Files
File Type: zip 16externalCSSformat.zip (58.0 KB, 322 views)
File Type: txt dpmoreinfo.txt (1.2 KB, 284 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Css Stylesheet Heidenreich12 Script Requests 3 03-03-09 06:21 PM
Need Your HelP! Loading Multiple External Text into Multiple Dynamic Text Fields Flash_Boi Flash & ActionScript 2 03-30-06 04:27 PM
Loading external image on bcg aLf_bl Script Requests 4 12-11-05 12:06 AM
a dynamic textfield ?? nurqeen JavaScript 1 03-31-04 02:53 AM


All times are GMT -5. The time now is 08:31 AM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.