ActionScript 1/2 :: Flash Player 10 Removes HTML Encoding In CDATA When Parsing XML

Nov 24, 2010

I have an application that was written with Flash Professional 8/AS2 and it parses XML for rendering dynamic media content. The XML pulls text with HTML markup out of CDATA sections and places them into an html enabled text field. Everything has worked wonderfully until Flash Player 10.
 
Now, if we use html escape characters for greater than or less than symbols, they are being decoded by the xml parser.
 
Here's my example CDATA section:

Here <u>we</u> go: This <node> <works> 

when I grab its value using nodeValue or toString, the results are different from Flash Player 9 to 10. Here's what I'm getting:

[Code]....
 
In Flash 10, if I escape the ampersand, it will work, but this doesn't work in 9. for example, the following works in 10:
 
<![CDATA[Here <u>we</u> go: This &#60;node&#62; &lt;works&gt;]]>
 
This all happens before I assign it to a text field. How do I keep the parser from destroying my escaped characters in Flash 10? Do I just need to drop support for Flash Player 9 and go for what works in 10, or is there a solution for both?

View 2 Replies


Similar Posts:


ActionScript 2.0 :: CDATA To Pass HTML Via XML Into Flash

Dec 13, 2006

trying to convert data into XML and than be readble by flash, why can't macromedia be 'normal' and have some connector that can directly connect to a SQL database

Anyway enough about my rant...

I have a WYSIWYG html editor on my website that generates flash readable HTML code and we use PHP to store the information that is generated as a .xml file to be readable by our flash file. The data is passed via XML but trying to get the HTML tags through without the XML parser thinking its XML and interfering, and I've managed to research find the CDATA tag to pass information in (i dont know much XML, just basics to get it to work) but it doesn;t work!!

When I try to HTML code that is wrapped in the CDATA than it just shows as "null" on my flash file, but if i remove the CDATA tag and put in simple text it seems to work ok! even if i put in

Code:
<b>you better work, damn you!</b> this part is not bold, but doesnt show anyway
than the part in bold shows as bold but anything after that has disappeared

how I can effeciently put HTML into flash and get flash to successfully render it as HTML?!? note I've already used a .txt file unsucessfully and it seems to have LOTS of issues with special characters

View 1 Replies

Media Server :: H264 Live Encoding In Flash Player 11 Slowly?

Oct 21, 2011

I am using the new Flash Player 11 ability to encode H264 video within the Flash Player. I am streaming the webcam via RTMP to a FMS. I am using the following settings:H.264 BaselineLevel 5.1Keyframe freq. 5 seconds25 FPSInput size: 1280 x 720 (720p)Output size: 1280 x 720 (720p)Bit Rate: 1000KbpsWhen I am using these settings with FMLE 3.2, the final stream plays very fluent with a good amount of FPS. If I am using Flash Player 11 for the encoding job instead, the final video is not as fluent as before and achieves less FPS (maybe 5 FPS).So the question is: is Flash Player 11 not as good as FMLE 3.2 or am I missing some configuration?

View 2 Replies

Php :: SimpleXML, CDATA And HTML Entities - Tags Are Interpreted With Their HTML Entity Equivalents?

Nov 18, 2010

trying to work with "simple" XML for the first time. I'm building a small CMS for a Flash based site and the content is held in an XML file. My problem is that many of the copy fields are XML CDATA fields. on the one hand, with:

$xml = simplexml_load_file($file, 'SimpleXMLElement', LIBXML_NOCDATA);

I can pull the data out of that node and the CDATA tags are stripped. My issues come with trying to save the data with:

file_put_contents($file, $xml->asXML());

Problems are: a) tags are interpreted with their HTML entity equivalents. I don't want this to happen.I gather this is coming from the asXML method because even if I do anhtml_entity _decode on the $_POST data it's still being converted.

b) because of the above, there's no way to add the CDATA tags because they also have their charachters converted.

View 2 Replies

AS3 :: Flash - How To Perform Encoding Of A Wave File Into Base64 Encoding

Aug 1, 2011

I need to perform encoding of a wav file into base64...

View 2 Replies

Html :: Parsing HTML Structure In Order To Obtain Some Links?

Nov 7, 2011

I need to parse an html source in order to obtain some links...Let's assume we have:

<html>
<head>....</head>
<body>[code]...

I only want the link1 which is a child of a div with class class1

View 3 Replies

ActionScript 2.0 :: XML - Cant Extract The [CDATA[57.14]],[CDATA[14.29]] & ![CDATA[28.57]] To Use It?

Jun 29, 2006

I have this XML File

<?xml version="1.0" encoding="ISO-8859-1" ?>[code]....

now, the problem ... I cant extract the [CDATA[57.14]],[CDATA[14.29]] & ![CDATA[28.57]] to use it ... I tried several things with firstChild,ChildNodes, but no luck ... any one has a simple solution to put all this in an Array so i can get the stuff out to use it ..

View 2 Replies

ActionScript 2.0 :: XML CDATA And HTML Formatting

Dec 2, 2009

The CDATA is working for me, but it will not show certain HTML tags, such as
<ul><ul><li>
and
<up>
<ul><li> is fine, but if I do another level, second levels are on the first level.

View 1 Replies

ActionScript 2.0 :: CDATA Not Rendering HTML?

Jul 5, 2009

I have read through most of the numerous posts relating to this topic (and there are quite a few) but I am still unable to solve my problem. I have a simple AS2 script:

[Code]...

</example>Unfortunately (unless I am missing the concept of CDATA in xml) my text is rendered in flash as:see google <a href="http:google.com>here</a>My ultimate goal is to generate text in flash that is generated from xml and that have a link to external urls. I do not have much experience with xml in flash, i have been looking online but can't seem to figure out what to do. Any ideas?

View 4 Replies

ActionScript 2.0 :: Xml CDATA Formating Html?

Nov 7, 2007

there my load of xml goes okay but all html styles as... strong.. colorand image dont work what am I doing wrong

AS:
var mydata:XML = new XML("data.xml")
mydata.ignoreWhite = true;

[code]......

View 5 Replies

ActionScript 2.0 :: Html In XML ... CDATA Not Working

Jan 2, 2009

I'm trying to do a player roster for a sports team. I found on here as a template. However, I'm having a bit of an issue. I want to be able to format the xml using html in the xml file itself...for example I'd like to be able to insert pictures, make text bold, etc. using html tags in my dynamic text field. I enabled the "render as html" button thing. When I put

[Code]...

View 1 Replies

ActionScript 2.0 :: Dynamic TextField With HTML 1 XML CDATA?

May 14, 2007

I am trying to avoid having to unescape URL encoded XML nodes by using a CData node element. It is a hassle to URL encode the html to put into the XML which is then read into Flash.This is what I have so far:

Code:
//Create XML with HTML 1.0 tags
myXML = new XML('<![CDATA[<p>This is a paragraph<br><a href='http://www.amazon.com'><b><u>Link to Amazon</u></b></a></p>]]>');
//
//Create dynamic html textfield

[code]....

I know that Flash does not fully support CData, but I'm sure there has to be some workaround.I did try sending the XML toString() but that didn't change anything.

htmlXML=myXML.toString();//create var for conversion from xml to string

I want the textfield to render the HTML--not just display the tags.

View 8 Replies

ActionScript 2.0 :: CDATA Not Showing HTML In Text Field?

Nov 19, 2009

Simple XML import with text and an html link and an image. For some reason the html tags are rendering as text, not html in the dynamic text field. I have looked at countless posts and tuts From all I've read I am doing things right, but obviously I am not. I must be missing something.ake a look at the attached code and explain where I am going wrong.XML File

Code:
<?xml version="1.0" ?>
<item>

[code].....

View 1 Replies

ActionScript 3.0 :: XML Editor With Buttons To Add HTML Tags Via CDATA

Jan 18, 2010

Does anyone know an XML editor with buttons to add HTML tags via CDATA?
 
<?xml version="1.0" encoding="UTF-8"?>
<content1>
<text1>

[Code]....

View 1 Replies

ActionScript 2.0 :: CDATA Not Showing HTML In Text Field

Nov 19, 2009

Simple XML import with text and an html link and an image. For some reason the html tags are rendering as text, not html in the dynamic text field. I have looked at countless posts and tuts but found nothing that helps. From all I've read I am doing things right, but obviously I am not. I must be missing something..[code]...

View 3 Replies

ActionScript 2.0 :: Don't Want CDATA Node To HTML Escape Characters?

Aug 24, 2007

I need some very urgent help for a project that is on a tight deadline. I have a CDATA node that i'm loading into Flash that has some html in it. Let's just say this is it:

You are <font color='#FFFFFF'>very pretty</font>.<br><br>

When I trace out the xml after it is loaded into flash, it comes out as this:

You are <font color='#FFFFFF'>very pretty</font>.<br><br>

I need it to come through with the tags in tact. How do I go about this?

View 5 Replies

ActionScript 2.0 :: Getting Html Text To Display From Xml File Using CDATA

Oct 14, 2008

I am trying to get a link to work in the body text of a text block. I am using CDATA but can not get this to translate to html in the flash. I have checked that the 'Render text as html' box is checked.

Below is my AS and below that is my XML

========================
xml menu stripped down
======================
function CreateMenu(menu_xml) {
var items = menu_xml.firstChild.firstChild.childNodes;
for (var i = 0; i < items.length; i++)

[Code].....

View 2 Replies

ActionScript 3.0 :: Inline XML With CDATA Error #1091: XML Parser Failure: Unterminated CDATA Section?

Aug 25, 2008

I'm trying to include some JavaScript (JSON 2, to be precise)in with some ActionScript 3 classes. I'm using the inline XML method (E4X) of declaring the data. It looks like this:

public static var JSON_2:XML = <data><![CDATA[
if (!this.JSON) {
JSON = function () {[code]....

Actually, this is only about a quarter of what I need to include but this is where it breaks down. Right after the second slash in the last line, Flash reports: TypeError: Error #1091: XML parser failure: Unterminated CDATA section.

In fact, as you can see this is a perfectly valid CDATA section and isn't being terminated anywhere (there is no instance of "]]>" anywhere in the data). Unfortunately, Flash doesn't think so and seems to think that the backslash is an XML node directive. how to effectively deal with this? The JSON source code has *many* backslashes so not having to convert them would be *very* useful.

View 1 Replies

ActionScript 2.0 :: MX2004: XPathAPI CDATA SelectSingleNode And HTML Formatting?

Oct 11, 2005

my subject is pretty much my problem, i am using MX2004's XPathApi 'selectSingleNode' which is working nicely, i have done a wee bit of fiddling;

Code:
_root.selectedText = "About Us "
centreMe.textContent.htmlText = mx.xpath.XPathAPI.selectSingleNode(this.firstChild,

[code].....

View 2 Replies

ActionScript 3.0 :: Parsing XML With Html Using E4X?

Oct 21, 2009

Ran into some problems when a client asked me to use the xml that is created from an admin where the user can format the text as she or he wants it. With bold, italic, insert link and so on. Doing all that in a frame in the browser that is. As you would guess from a proper admin tool more or less.

[Code]...

View 8 Replies

ActionScript 3.0 :: Parsing Values From The Html?

Oct 26, 2011

I have an instance of FLVPlayback and can easily set the video to play simply by using the instance name:

[Code]...

View 5 Replies

Flex :: Parsing A Web Html To Text Field With Formatting?

Dec 21, 2010

i want to parse the web html to flex text field

to use string function splice etc. to replace tags with the one which text fields can understand but is it too complex and processing over head is there that reduces the efficiency but i have max control to do changes what i needed. parsing the html to xml and then use this as the text input to text field what about the efficiency and control need to know about from this question. regular expressions .

View 1 Replies

ActionScript 2.0 :: Parsing HTML Within Text Loaded Via An XML File?

Apr 25, 2006

I am loading in a bunch of text (and other data) from an XML file into Dynamic Text Fields on my stage via an XML.load call. Below is one example of one entry of my XML file:

PHP Code:
<stillDescriptions><text>Mack Trucks of North America came to us tothem create marketing m

[code].....

View 1 Replies

ActionScript 2.0 :: Dynamic Text Fields 'suddenly' Not Parsing HTML

Feb 1, 2011

I have come across a bizarre Flash problem with dynamic text fields. I built a site in flash for a designer about a million years ago. The content in her portfolio's dynamic text fields loads from plain .txt files. The fields, which were set to parse simple html tags, used to do so perfectly. At least the last time I checked in April of 2006. The designer just contacted me last week: one of the fields is no longer parsing the html. ?! I opened the original .fla and it is definitely set to do so. Why would this suddenly stop working?[code]

View 3 Replies

ActionScript 2.0 :: Showing Text Field As HTML Field With XML/CDATA.?

Aug 26, 2007

Trying to get a text field in my Flash MX movie to pull from and XML file with CDATA tags to show as HTML. I've checked the box to render as HTML for the text data field... but I'm having problems with the Actionscripting.

The field from this line is what I need to recognize as HTML reading CDATA tags:

this.ref["textField"+i].text = subnodes[3].firstChild.toString()

I know I need to do more than just change it to ".html" instead of ".text" and have tried a couple things, but nothing seems to work.

Code:
//Create the XML Object
myXML = new XML ();
myXML.load(newXml);

[Code].....

View 1 Replies

Run Flash Player From Html

Jun 16, 2009

I have an swf file that references an flv file. Within an html page I have used an object tag to reference the swf file. Having googled found snippets of code such as [code]whichever I use, I get the same result in IE or firefox with flash player 10, page displays but there is an empty area. A right mouse click gives about flash player 10 so something is there. This happens whether I run the html file from the directory or serve it up via a local web server.So what am I doing wrong? I have obviously misunderstood some basic stuff here. I doubt it is security settings in the browser as flash from outside websites works. I changed my intranet settings to aloow unsafe activex (to prompt) and no change.

View 9 Replies

Html :: Dynamic Flash FLV Player

Sep 29, 2010

I am attempting to create a custom FLV player in flash that will allow me to link to an external FLV file in the html object code. This is in order to easily change a video that will appear on a client's index page dynamically. Currently I am using an external player that does exactly what I wish to do (URL...). However the client I'm building the site for requires a custom built player. My abilities in Flash (CS3) are limited but I have scripted in ActionScript and worked in Flash many times before.[code]As I stated, this links to a free third-party player, which is great, but I'd really need to build to my own. I have built a basic player in flash already using the FLVPlayback control, but am unsure on the details of making it dynamic.

View 2 Replies

ActionScript 3.0 :: Flash MP3 Player Using Html Links?

Jul 14, 2009

I'm trying to create a flash player similar to the way Amazon's is set up, where the user can click an HTML link and the player would play that specific song.

[URL]

I'm just not sure how I would go about using the onClick event in the anchor to return a value to the flash player.

View 2 Replies

Controlling Flash Player In Html Page

Feb 17, 2010

I have a flashplayer in html page and I want it to stop the auto play function when the page loads and play whenever I click play, and I tried to play with the code and added this: <param name="Autostart" value="0" /> but it's not working. On the other hand, I set the autoplay function for the quicktime player to "false"and it worked.

[Code]...

View 4 Replies

Php :: HTML : Flash Player Detection Technique?

Sep 27, 2010

when we place flash files in our websites, it OFF-COURSE requires flash player on client machines, and prompts to install flash player..is there some php code using which i can check weather there is flash player on the client machine and if not then instead of placingembedding a flash file i place an images over there...cuz in my specific case flash is not that much important... it is just for cosmetics, an animation... which i can replace by a gif or a simple jpeg doesnot matter...

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved