xml flash
- Started
- Last post
- 7 Responses
- fixate
when using loading an xml document in a flash movie. (to display text)...
Can you simply attach a CSS file to the xml document, for the flash text to be styled at runtime??
- unfittoprint0
you can only use css style tags in MX2004.
And it has to be linked separately from the XML file.
You can write CSS class tags in the xml document [within cdata brackets].
- unfittoprint0
'An example of using styles with XML'
http://livedocs.macromedia.com/f…
- fixate0
thanks for the advice unfittoprint.. i was hoping you'd be online.
I've implemented my first xml file into flash and am using it to simply output a list of links... (i know i'm hardcore).heh.
What i want to do is make the links look like html links eg: underline on mouseover and change color on mouseover.
would i do this with styles in xml... or would i be better off maybe doing it in actionscript. ?
any help would be great.
- unfittoprint0
for that you should use MX2004 and the link/tutorial in my 2nd post...
- fixate0
so there is no reasonable way to do this with the original MX.
dang!.. thanks for the advice...
Say i used MX2004, can i still output the file in a lower version (while maintaining styles) for the oldtimers out there?
- Hardcore0
You could do this with FMX.
Set up an MC with a text field and then set the properties using the TextFormat object.
then as you parse the XML duplicate this MC as and when you need it.
Won't be too hard to do...
- sauerbraten0
you could certainly do that in AS, just set an onRollOver function that changed the color via setRGB or something..