I'm tryng to remove xml tags from the data that is imported to the stage. Tryed many different ways but all get me errors. How to it in the right way? Right now everything from the xml file shows up, but i want it to show only text between title and kirjeldus tags.[code]
I am pulling data from an xml file which has HTML tags in it. I need the HTML tags for the on-screen display, but I am also using printJob to print what's on the screen. The problem I'm having is that when I run printjob it prints all the HTML too. Is there a way to remove the HTML tags? Maybe some sort of script? I'm thinking I could search for the beginning "<" and the end ">" and remove them and what's in between, but I'm not really sure how to go about this.
When I'm coding action script in the Actions window of Flash, in line breaks, the paragraph symbol is present, and there are dots in all the spaces, etc., etc.
I accidentally turned this on, and don't know how to turn it off.
It's like the paragraph symbol button in Microsoft Word.
My plan was to avoid trying anything with regex and create an XML object.
However if I create a new XML object containing a root node and then attempt to appendChild the htmlText string so that I have a valid XML object to manipulate I run into a problem with html entities, see example below:
<html><P ALIGN="LEFT"><FONT FACE="...
How can the font tags be stripped from htmlText and how can I create a valid XML object from the htmlText string? My plan was to use the XML replace() method
I am trying to extract xml from a website and print its contents to a textfield by specifying a specific child. The problem is that the XML tags are also printing out.[code]...
I'm importing an rss feed in as3 and the xml is formatted with html tags that are making the feeds that I'm puling in format weird. My main problem is break tags that are entered in by the companies system. i'm not going to be able to take them out so my question is, is there a way to single them out in the xml through as3? and Delete them? Or render them useless?[code]...
I wrote a function to override y FLEX LineChart's datatips because the default datatips were ugly and rather boring.I finally set the style I wanted but am now having some problems removing un-necessary tags from being displayed in the custom datatips.For example, the datatips now display things like this:
"<b>Humidity</b></BR>2010-07-05T00:15:00"
I can always perform a "Replace()" to remove those break and bold HTML tags, but that seems really un-necessary and anti-development.I am using this to set the dataTip's label text:
var hd:HitData = value as HitData; var item:LineSeriesItem = hd.chartItem as LineSeriesItem; _xAxisText = String(hd.displayText + ' ' + item.xValue);
I have been trying to figure out how you could add in custom attribute tags that flash can recover.
EX: <param name = "movie" value = "somefile.swf"> <embed src = "somefile.swf" width = "550" height = "400">
Except, that I would like to add a Custom tag, like "randNum" so that the tag user could input some number, or rather, a flash movie could generate a tag with a number already put in...Basically, heres a really basic version of the idea.There is a Flash Movie.In the movie, you can input text into a textfield.Upon finishing your message, you click a button "save".
The flash movie then:
1. Comes up with a random number unique to the message.
2. Assigns that number to a variable... "randNum".
3. Saves message as a xml file to the server as "filename" + randNum.
4. Outputs into a textfield a generated HTML tag that a user can post on myspace and such so that it will load in the flash movie.
Except... in the tag, there will be a custom attribute. If the random number variable "randNum" was 00112233, the custom attribute will be 00112233.
So when the movie opens, it retrieves that randNum from the tag and can use it inside flash. How can this be done? Sorry this post was so long, but I wanted everyone to understand the concept.
I'm making a game for children where they have to pay money by dragging it on a square. It al works wel only when i pick the first coin of one euro without going over the coin of 2 euro and then pick up a 2 euro coin the one euro disappears. after then it all works fine.i cant remove my duplicate euro's from the stage when i clic on pay here is my code for the euro's the euro's are in a emty movieclip
In flash AS3 Do I need remove childs, if I remove the parent itseft? If I remove childs first, then remove the parent object afterall OR If I just remove parent object Will flash take same memory?
Just wondered if I remove a parent movieclip and then set it to null, will it remove all the child movieclips within it from the Display list and also from memory, or do I need to iterate through the parent movieclip removing all its children before removing the parent?
first, I need to show an <hr/> tag after the description, its an rss widget so need to seperate with each rss post with a border or hr. Its not possible to make it manually because its came from xml. I'll give you the existing script with me.
second, I need to add utm tag after the urls to trace the clicks, this is actually I need to add after the links 'utm_source=rsswidget', you'll get an idea by seeing the script below
var loader:URLLoader = new URLLoader(); loader.addEventListener(Event.COMPLETE, onLoaded); var xml:XML; function onLoaded(e:Event):void
I have a master page that gets all its images from a table on a database, and I am trying to incorporate flash, for banners, but I can't quite seem to figure it out.Right now there is a:
<asp:image id="headerimg" runat="server"> and that generates the appropriate img tag needed to show an image in html. Now I would like to know if there is any way where I can generate an object tag if a .swf file is present and populate the tag with width height and data and also not show the img tag.
I now have made a usercontrol that will create the object tag, but can someone please tell me if it is looking like I am doing it right..
I have an XML document that contains CDATA nodes with <BR> tags. I'm importing the XML and displaying it in a text box, but unfortunately the text box is actually displaying the <BR> tags, rather than inserting line breaks. I've set the text box to "Render text as HTML", and I've applied the XML data through htmlText, but it's still not working. If I insert text into the text box manually it will render as HTML, as in:
I have a MP3 player I built that works fine.But I would like to make it more dynamic for a client. I have it set up now so that Flash reads the XML for the title, url, and artist. would like to have it so that a client can literally just put new songs into a designated folder, the ID# info will be read and displayed, and the song will play.
I have considered setting up the XML with 10 tags just preset with links to MP3 files names 1-10, and have the client just rename them 1-10 before putting them into the folder. But still I am yet to find a tutorial on how to have the XML actually read the ID3. Everything I have found is for the Flash to read it, or you have to enter it manually into the XML.
I have also found a few examples of using PHP instead of XML, but in these examples still, you have to enter the info manually. Basically i just want a dynamic MP3 player that will update whenever new music is added to the folder, and thats it.No PHP, Flash, or XML updating.
I'm trying to create a simple news scroller. The scrollers is no problem, but I'm not good with XML. I am able to display a simple text in an .swf file with some AS code and an XML file. The problem is that I want to be able to display an number of sentences with the same tags. I want to have some AS code that checks if I have more of the same tags and then displays al of the scentences. I don't want to use several dynamic textfields, I just want to use one, cause it's easier and faster to edit the text.
This is the code I use in the .swf:
Code: function loadXMLTB(loaded) { if (loaded) { _root.datum = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
This is a typewriter effect but i need the XML to also read and render HTML. right now it just types out normal text and if you insert HTML it types out the HTML instead of actually rendering it.I need to insert a small image after every item in the XML.
In my project I have some xml I've embedded and am now parsing.
Here's an example of xml I have.
HTML Code: <use> <player> <add var="health">2</add>
[Code].....
I guess I could just change the names of them in my XML but their must be a workaround. I could potentially not have control over the file and then I'd be screwed.