ActionScript 3.0 :: 1095: XML Parser Failure: Unterminated Attribute
May 16, 2009
i have this code:
Code:
var loader:URLLoader = new URLLoader();
loader.load(new URLRequest("http://internetradio.vrt.be/internetradio_master/productiesysteem2/epg/41_epg_huidigeweek.xml"));
loader.addEventListener(Event.COMPLETE, loadXML);
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.
So I'm trying to make a Vertical 3D Carousel using Flash CS3, ActionScript 3, a program called TweenMax, and some XML. The site I got a tutorial from is a dead site, there.
Here's the error I'm getting: TypeError: Error #1090: XML parser failure: element is malformed. at outrageouslycooltitlescreennoerrors_fla::MainTimeline/xmlLoaded() at
I am currently designing a website and creating a simple mp3 player with an on / off function but doesn't appear to be working. I am getting this error: 1095: Syntax error: A string literal must be terminated before the line break.1083: Syntax error: end of program is unexpected.1084: Syntax error: expecting rightparen before end of program.1084: Syntax error: expecting rightparen before end of program.1084: Syntax error: expecting rightparen before end of program.1084: Syntax error: expecting rightparen before end of program.
I have uploaded a zip file containing the images and FLA file. I'm wondering if someone wouldn't mind taking a look for me and telling me how to fix this problem: [URL]
I am having trouble parsing some xml that has a few attribute names with : characters in them. The compiler is not throwing any errors and when I trace my complete xml object out it is all there, however when I try to trace out any element or node it keeps comming up undefined. I removed the attribute names with : characters in them and everything works fine. I cant seem to target the attributes either to delete them.
i've been taking advantage of the new XFL file format recently and it's really opened up a lot of possibilities. i've started a C++ project which parses and builds XFL files as a addon for openFramworks.here is the project on github => https:[url].....im now up to the point where i need to work out how to parse the content of DOMShape so I can draw custom shapes.im finding that online docs on this topic are non-existant.i need to understand how Edge is being encoded - example XFL snippet below,[code]...
This is my first post ever on ActionScript.org. I confess, I suck at ActionScript. Yet I had to put together a website, for which I had to shamelessly borrow code snippets from so many different places. It was working fine, until I got stuck with some colour management issues. I am a 3D artist making a portfolio website. There are some categories under portfolio such as 3D art, 2D art, Photographs, etc. So I wrote down the category names in an XML and used a parser script in case I need to re-use it or create categories of different names later.
The flash XML parser working fine with '>', but when I try '<' or '"' it doesn't read them correctly. Is there a way to get the parser to load in < and "?
I am attempting to create a custom Collada parser. I Think I'm getting something wrong with the uv's. Attached is the class. Also attached is my model class so you can see the exact methods I am using to render.
I am evaluating the possibility of developing a JSFL script to parse a FLA and need to know first if it would be able to do what i want to do. I need the script to parse through all the library's linked assets, recursively go through their children, replace all the children of type "Group" with a bitmap and then save that FLA as a new file. I haven't received an ok to develop this yet at work, but i'm trying to evaluate the possibility for a proposal.
I need to load and apply CSS at runtime in my Flex app. I know that the adobe docs say that you need to compile the CSS before loading it but I would like to find a work around. I know that you can set individual styles like this:
[Code]...
I know that the adobe flex.text.StyleSheet class has a CSS parser but I could not find a way to harness that. (Is there a way to get that source code?)
I've tried to make an XML parser class using ASBroadcaster, that would act as a listener, and then have methods like getNode(n), which when called, would return the value of that node as a string to the dispatcher/caller.
This doesn't really work all that well, since I'm unsure of how to adress the dispatcher/caller in an economic way.
Do I have to supply the caller object as an argument when broadcasting from it, then do another broadcast for setNode inside the XMLParser.getNode method, supplying it as an argument again, and then check with an if statement in the setNode of the caller, whether it is the right one or not. Seems a bit over the top.
I'd want XMLParser to be a centralised class, that all other objects would refer to via some listener or get/set thing, instead of having an instance of it in each of the objects that would use it.
Simulating Validators, how do I programmatically invalidate a TextInput because it doesn't match some external criteria? (even though it passes regexp/other internal validator tests).e.g. on lost focus, point out to the user that "confirm email" doesn't match "email" (even though both are valid email addresses). I've got a regex validator on a cell phone TextInput field that ensures the user enters with the international prefix e.g. 0044 for the UK Then I have a confirm_mobile field but I want to check the mobile TextInput against confirm_mobile TextInput.
The input on confirm_mobile could always be a valid phone number and pass the regexp test but I need to ensure field 2 == field 1 and if not then invalidate field 2 (or at least simulate the Validator behavior) to tell the user the fields don't match. I can catch this at the end via a trigger on the form submit button but still need to know how to throw a red box round "confirm_mobile" using a validator.
Code: Select allprivate function check_mobile2(evt :FocusEvent) { if (strings_match(confirm_mobile.text , mobile.text)) {
When Trying to export a flash graphic out of Flash CS3 to.PNG format, Flash will either export a severely distorted image or it will just crash and shutdown. Admittedly, the graphic is pushing the max limits of allowable export (7900x7900px @ 300dpi). I've never had problems exporting to .PNG before, as I use that feature every day, but rarely at this scale. Could the size be affecting it's ability to export correctly? If not, what could be the issue?
I got a FileRefrence instance for a simple upload and it did work for some time in the past, but now I just can't discover what made it stop woking. Can anyone help me find it out? To simplify, I took only the necessary code (not working as the full version). Here are some details:
1. I'm using Flash Player 9 (this can't change because it is a part of a bigger project). My current host machine is a Windows Vista one. The sandbox is set to network access.
2. The FileReference calls a simple php script hosted at an Apache server (Linux). The script permissions are set to 644 (it works for file uploads coming from plain html pages) and I set the folder permission to 777 just to avoid any other source of errors. Here is the simple code for the php script:
<?php// receiving variables$uid = trim($_POST['uid']); // just to check for a post variable that I must send while uploading (won't work even if I revome it) // a file to check if the script is really called $myfile = fopen("upload.txt", "wb");fputs($myfile, "file upload for uid $uid ");
[code]....
Just for checking I add a Loader instance and used its "load" method with the same "urlSend" variable. It worked and the php script generated the output file...
I've only started using Flash CS4 a short time ago and I'm having a problem being able to run a short flas movie on an iWeb site. Here's what I did to create the movie from scratch through to its failure to run on iWeb
1. A QuickTime movie was encoded in H264.2. This was then encoded with Adobe Media Encoder CS4 to produce the .flv file3. The .flv conversion was opened and processed with Flash CS4 which produced the .swf file along with the html file as well as a "preview.jpeg".4. All the files (.swf, .html, .flv plus the preview were then uploaded to my iDisk.5. Using an html snippet in iWeb, and using the correct coding, I attempted to create the site, which unfortunately refuses to load the movie.
A double click on the .swf file and/or the html file runs the movie along with the skin (but no preview) on my computer here so the encoding' appears to be OK, but uploading all the necessary files to thje server and adding the "correct" code results in a blank panel where the movie should be; no skin and no preview image either. The movie loads and runs perfectly when I used the Longtail Video JW player files and uploaded them to my iDisk (this proves the path to then server's OK).But it's a no-go using either the same .swf or the .html created with CS4. I've even gone through the process bit-by-bit viewing an on-line vbideo tutorial... their's works, mine doesn't.
i made an scrolling image sequence,that is controlled with moving left-right mouse or finger there are 120 images and its wheight is 36 Mb.it runs great on desctop as SWF .BUT when published to .ipa and lounched on iPad 2 - black sreen for aboute 5 sec. and throws back to "home".what does that mean?
basically I have MC with an event listener listening for a mouse click, when clicked an alpha tween on a different MC starts. The MC that im tweening contains only a stoke of a box I created (no fill). when I test my movie this all works fine.If I then give this stoke box a fill colour my tween fails to work/run and nothing is displayed.
Gb HDD (dual core). I've already installed with succeed Photoshop CS5 and Illustrator CS5 and InDesign CS5 with success on my computer with DVD versions on this Windows 7 boot. I precise I already succeed to install Flash CS5 on the same computer but with Windows Vista installed (dual boot), so the installer seems to be OK. But when I'm on my Windows 7 boot, when I try to install Flash CS5 Pro downloadable version, I get some errors as soon as the installer try to copy some files on my HD and the installer stops immediatly with those error messages:
Exit Code: 7
-------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 58 error(s), 62 warning(s) WARNING: PayloadPolicyNode.SetAction: IN payload {03B6AF5B-A024-43DE-8DD2-8FB7B6A4149A} Adobe Media Player is required by {CFC9F871-7C40-40B6-BE4A-B98A5B309716} Adobe Flash CS5 but isn't free.
I have a problem with executing a method called handleXML. At the moment I have the following code:[code]That means that for some reason the calling the handleXML method failed. Does someone know what is wrong with my code?