Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Format XML with XSL & import into Flash

Posted on 2010-01-08
4
Medium Priority
?
305 Views
Last Modified: 2013-11-08
Hi there.  Hope someone can help me out.  I successfully imported XML content into my Flash file (actions script 3 / CS4)... imported into a dynamic text box.  Now I just want to be able to format/stylize the text.  I've been searching the web and found that the best practice to go about this is to create an XSL file to format the XML.  I know you have to include the XSL within the XML doc.like this below, but I'm just having trouble overall seeing how to format the text in the XML file and associate it to the XML file.  Can you give me a short piece of code to show me simply how this all works?  Send me small bit of code for XML, XSL and let me know if using XSL will impact my action script in Flash at all.  **This is the best practice, yes?

 <?xml version="1.0" encoding="ISO-8859-1" ?>  
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

Thank you!
0
Comment
Question by:webgirl29
  • 2
3 Comments
 
LVL 40

Expert Comment

by:Richard Quadling
ID: 26289031
XSL is another language completely.

I don't know the specifics of the language and in all my uses of it, it is slow in comparison to processing the file manually (via a DOM let's say).

Also, does Flash support XSL? Don't know.

The W3C school site (http://www.w3schools.com/xsl/) has a fairly gentle introduction to XSLT.

Maybe start with one of their examples to make sure it all works as expected inside Flash.

Then let's take a look at what you want to do.
0
 

Accepted Solution

by:
webgirl29 earned 0 total points
ID: 26289553
Actually, I found out that Flash does NOT support XSL, and I found another option with Flash to import and style my dynamic text.  Thank you for your response however.
0
 
LVL 40

Expert Comment

by:Richard Quadling
ID: 26291260
Another option would be to do the translation server side and then push this to flash.

Is that an option you could use?

If so, what server side environment do you have? Windows/Unix, ASP/PHP/Perl?
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question