Groups | Blog | Home
all groups > flash actionscript > july 2007 >

flash actionscript : FlashVars + CSS


yarkehsiow
7/13/2007 7:46:12 PM
hello,
i am trying to format some text, which comes from a FlashVars, and is put into
a textArea component.
so far i have been able to format it with a stylesheet within flash, but i
need to use an external stylesheet...
question 1: is this possible?
question 2: if question 1 is doable, can a class be applied to html text in a
FlashVars?
thanks.
bigbrain28
7/19/2007 11:06:10 PM
I just posted a Question about how my SWF stopped working, it WAS doing exactly
what you need, loading external css and html. Check out that post for code, I
think its AS2.0 though. I found that example on the web, so its out there!
yarkehsiow
7/20/2007 3:37:35 PM
thank you bigbrain, but the key here is that the text to fill the textArea is
coming from FlashVars, in the html page...
im wondering if there is a way to define classes in an external CSS, then
apply them in the FlashVars ...
thanks for any help.
bigbrain28
7/24/2007 6:28:43 PM
I would think it would work the same, no? If you attach the CSS to the name of
the textfield the flashVars are to appear in (and are tagged with the class)
they should inherit the style. In my case the external HTM was created by a CF
page (tags and all) and called into a Dynamic TF associated with the externally
called CSS sheet. The HTM which was called was a variable as well, depending on
what page you were on in the site.
AddThis Social Bookmark Button