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


Textfield, CSS stylesheet external loading

Reply
  #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, 358 views)
File Type: txt dpmoreinfo.txt (1.2 KB, 473 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-03-09, 07:43 AM
gej03 gej03 is offline
Newbie Coder
 
Join Date: Mar 2009
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Hi. Unfortunately, I can't help you with your problem, but I was hoping you wouldn't mind helping me out a little. You mentioned that the book you got at the library gave an excellent example of linking an external CSS to your file sheet into a text field. I'm having a problem doing exactly that. And after much research and reading many tutorials, I still can't figure it out. If you don't mind, could you please check out my post in the HTML/XHTML section entitled "problems linking to external CSS from my XHTML file." I would really appreciate your help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

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 11:38 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.