Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > loadVariables issue

loadVariables issue
Thread Tools
spatterson
Mac Elite
Join Date: Sep 2003
Location: Reno, Nevada
Status: Offline
Reply With Quote
Mar 27, 2006, 11:23 PM
 
hey guys,

I'm racking my brain on how to fix this issue... I want to load text dynamically while also loading from a stylesheet. I have made the css work fine, but the text keeps coming up "undefined"... any flash guys or gals, can you help me out!

Thanks,
Scott

Code:
var format = new TextField.StyleSheet(); var path = "vars/text.css"; var txt = loadVariables("vars/text.txt",""); format.load(path); format.onLoad = function(success) { if (success) { main_txt.styleSheet = format; main_txt.text = txt; } else { main_txt.text = "Error loading CSS file!"; } };
     
spatterson  (op)
Mac Elite
Join Date: Sep 2003
Location: Reno, Nevada
Status: Offline
Reply With Quote
Mar 28, 2006, 08:30 PM
 
any takers out there, anyone what to help a brother out....
     
   
Thread Tools
 
Forum Links
Forum 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 On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 04:24 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,