AS3 :: Xml - Doesn't Read Atom
May 10, 2010
I want to read an Atom in Flex.I can see in the debugger that he can read the Atom and that there are entries, I can see each value. So far, so good.But when I want to assign a value from the atom to a variable, he never gives any text. It's always this: "".
My code:
ch.Name = xml.title;
ch.Desc = xml.subtitle;
ch.Updated = xml.updated;
[code]....
But that's strange, because I can see in the debugger that it schould be "Tweakers.net".It becomes even more strange, because it works just fine with RSS.
View 2 Replies
Similar Posts:
May 7, 2010
I have a swf that reads a XML file. Here's the thing. If I have the fla open and I hit cntrl+enter to run it, everything works fine. But if I just open the swf, it doesn't read the xml. The swf is in the same directory as the xml file. I have tried everything. I even slammed my head on the wall on 3 different occasions.
View 2 Replies
Apr 4, 2010
I have everything done to load a text from an XML file in my flash movie, but it shows the text only if it is written in EN i want to type the text in the XML file in Cyrillic but flash doesnt want to read it... I tried to change the Embed Characters of my text field but it still doesn't want to read it. I have added this to my XML: <?xml version="1.0" encoding="utf-8"?> and still the same thing.
View 1 Replies
Jun 3, 2011
In my emptyMC, i'm calling a newsticker, that needs an external .as class to works propertly. But when it opens, it doesn't read my _x and _y coordinates and neither the .as.
My code to it, is in a frame:
Code:
this.createEmptyMovieClip ("noticias", 2);
loadMovie("newsticker.swf", noticias);
noticias._y = -50;
noticias._x = 0;
In my first frame I have locked the root with:
this._lockroot = true and i has been working perfectly.
Also in the root in a frame i'm loading a music.swf.
for further doubts, just ask.
I'm working with Flash CS5 and AS2, Flash Player 8.0. It's a TM template.
View 2 Replies
Jan 6, 2010
I am trying to send a php variable with one field from mysql. When I print the php variable on my php page it outputs the field, but when I try to send it to flash it doesn't output anything.Here is my php script that tries to send a mysql field to flash and there nothing is shown. It works on my php page, it outputs the mysql field.
$product=$result['product'];
$pro=$product;
$pro = "&pro=".$pro."&"; //~ make it a flashable variable
[code].....
View 2 Replies
Aug 30, 2011
I have a TLFTextfield, which I've applied a TextFormat to, using a start and end index so it only applies to a range of text.Something similar to this:
var textfield:TLFTextField = new TLFTextField();
textfield.text = "Some Text";
textfield.textColor = 0x0000FF;
[code].....
View 2 Replies
Mar 8, 2011
I'm trying to load YouTube playlist feed data and I'm having some trouble with the ATOM version, which is the YT default. I'm having no problems with the RSS version, but the RSS takes a few minutes longer to update when making changes to a playlist. I can load both and toXMLString(); both feeds but I'm getting an error when I try and parse the ATOM feed.So if the ATOM feed looks like this:
HTML Code:
<feed ... >
<entry>...</entry>
</feed>
Shouldn't I be able to get the following trace to work after the completed load where playlistXML is my new XML for the feed:
Code:
trace(playlistXML.entry[0].title);
I'm getting a "TypeError: Error #1010: A term is undefined and has no properties." when I try and output that title data.And the RSS is like this:
HTML Code:
<rss ... >
<channel>
<item>...</item>
[code]....
View 2 Replies
Sep 11, 2010
im loading an atom feed from a shopify store and need to access the image, the feed looks like this:
[Code]....
View 1 Replies
Dec 1, 2008
We changed atoms in our newspaper this Monday, but the new .atom feeds no longer parsing using me old .rss code.
View 2 Replies
Nov 8, 2011
I am trying to play on a flash player a video file which has an DREF atom that points to an external movie.
The DREF box has value URL and points to an external video file which has the mdat. However the flash video player (netstream object?) is unable to load the external file. I have been trying to work this out for the last couple of weeks and any tips would be
View 2 Replies
May 4, 2006
I have a reader on my site, but it doesn't reader ATOM feeds?
View 1 Replies
Nov 25, 2009
I have converted the F4V to a single moof atom file and it now plays in Media Player and I can create a SWF player to play the video file but my question is, how do I convert the F4V single moof atom file into a FLV? Media Encoder will not except it
View 1 Replies
Jan 21, 2010
Wanna see something interesting?
var xml:XML = XML(<feed><entry /><entry /><entry /></feed>);
trace(xml.entry.length()) // returns 3
Makes sense, right? Now let's add this attribute. var xml:XML = XML(<feed xmlns="http://www.w3.org/2005/Atom"><entry /><entry /><entry /></feed>); trace(xml.entry.length()) // returns 0
Well that can't be right. Let's try it with a different attribute.
var xml:XML = XML(<feed test="okay"><entry /><entry /><entry /></feed>);trace(xml.entry.length()) // returns 3
Anyone know what would cause this? I used atom as an example, but any 'xmlns' attribute on the root node seems to have this effect. The value returned is straight up false - there are obviously still 3 'entry' child nodes regardless of the attributes their parents possess.
View 1 Replies
May 3, 2010
I want to pull in data from a rss / atom feed into flash and show a movieclip everytime the feed is updated. Most tutorials I find are about displaying the information. I want real time movieclips to display if and when the rss / atom feed is updated without any of the information from the actual feed displayed.
View 0 Replies
Nov 26, 2011
This is because I use movie clips within other movie clips.
I wondered if anyone knew a workaround or trick that I could use to get text into google. I have a couple ideas but they're just ideas.
I would like to create an alternate page that is not flash, but a regular html page with all of the text I want google to read inside it. Somehow I use code to tell it that when a user clicks on the link, to redirect them to the flash webpage, but when a search engine sees it, to send the search engine/google to that regular html page, where it will gather all of the text and then that text will show up on google's page when you do a search and my site on google? Even if this was possible, would google frown upon this and ban me or something?
The other idea I have is to use invisible text at the bottom of my page. This will be regular html text that is the same color as my background. But I heard this can get you banned from search engines like google if you are using lots of keywords, but I wouldn't be using keywords. I'd be using the few sentences of content that their stupid crappy technology doesn't read, forcing me to bust my hump trying to find a workaround for. It sucks that google doesn't even use keywords in my metadata for rankings either. So I can't even use that with them.
View 1 Replies
Nov 26, 2011
This is because I use movie clips within other movie clips.I would like to create an alternate page that is not flash, but a regular html page with all of the text I want google to read inside it. Somehow I use code to tell it that when a user clicks on the link, to redirect them to the flash webpage, but when a search engine sees it, to send the search engine/google to that regular html page, where it will gather all of the text and then that text will show up on google's page when you do a search and my site on google? Even if this was possible, would google frown upon this and ban me or something?
The other idea I have is to use invisible text at the bottom of my page. This will be regular html text that is the same color as my background. But I heard this can get you banned from search engines like google if you are using lots of keywords, but I wouldn't be using keywords. I'd be using the few sentences of content that their stupid crappy technology doesn't read, forcing me to bust my hump trying to find a workaround for. It sucks that google doesn't even use keywords in my metadata for rankings either. So I can't even use that with them.
View 2 Replies
Nov 17, 2010
I made an AS3 animation with Flash. The SWF work perfectly playing directly in the Flash Player.If I read the SWF file in a browser, interactions like "onRollOver" or "onEnterFrame" doesn't work anymore.
View 3 Replies
Aug 4, 2011
As the title says, suppose I have an hypothetical XML containing this:
[Code]....
I can check if a certain speech has a bg change by simply doing this:
if(bgs[i])
{
//true!
}
what should I compare in the case of sounds, I've tried many, like:
[Code]....
View 2 Replies
Mar 31, 2010
A friend of mine has a Flash Action script running on a LAMP server that currently reads an xml config file. He's asked me if it's possible to remove the xml file, and replace it somehow with a system (lets call it an 'auto xml generator') that intercepts the request to read that file and generates an output, so it appears to all intents and purposes as if the file still exists and contains the contents that has actually been returned from our auto xml generator'
View 3 Replies
Feb 19, 2011
So I want to read http streams using flash tcp sockets. I do not really need the http header at all - all I need is body which contains flv. so how to read http response body into byte array using flash sockets?
View 1 Replies
Oct 16, 2009
I decided to try to use setInterval for myanimation, which is just a mouse trail.However, I'm trying to get teh mouse trail to be a dynamic mask.In my previous swf this was achieved by using a holder mc with the animation inside and then using this as the mask. But this time I just canpt seem to hit on the right way to get it to work. The code I am using for the mouse trail is:
Code:
var i:Number = 0;
var myInt:Number;
var t:MovieClip;[code].....
in the function, but now the trail doesn't resize and the mask still doesn't work.
View 1 Replies
Oct 23, 2009
when i have imgs:Array = this.childNodes[1].childNodes; it brings me both imagesSet. Now i want to pick either of the two. I dont want to define each into an array (like imgs1:Array = this.childNodes[1].childNodes(0).childNodes and like wise mgs2:Array=this.childNodes[1].childNodes(1).childNodes) because in the future there could be more sets of images coming up so dont want to keep adding array for each everytime we add a set.
XML Code:-
<data>
<data1 title="Title1" detail="Here goes the text" url="xyz">
[code]....
View 8 Replies
Jul 14, 2009
I used HTTPService for reading xml, but I want only a particular xml field value like the
first node id.The HTTPService object is:
<mx:HTTPService result="getid(event)" id="xml_coupon" url="###" useProxy="false" resultFormat="e4x"/>The getid(event) function is:
public function getid(evt:ResultEvent):void
[code].....
View 1 Replies
Aug 30, 2010
I want to read a fingerprint using asp.net,silverlight, actionscript, i need get the finger and display the capture in the window. I do it in C# with griaule biometrics SDK 2009, only can be possible using a java applet. I dont know if mix java + asp.net can be a good alternative. if yes, how can I to pass the value from asp.net to java applet?
View 1 Replies
Oct 25, 2011
Just wondering if there is a way to read class static constants from a SWF file server side. I have found things like getimagesize() but it doesn't have all these details. I guess that means I need a partial decompiler.Specifically, I have this class in my Flex project:
package
{
public class AppVersion
[code].......
View 1 Replies
Dec 21, 2011
Is it possible (if yes how) to get the URL of the webpage that a swf file is on?If swf file is on [URL] can I get flash to read the url and populate a variable with it (ex. variable films = 123 )
View 1 Replies
Sep 28, 2009
how to read the xml in flash in AS2.
[Code]...
View 1 Replies
Mar 20, 2009
Simple URLLoader to get a textfile into a textfield.[code]Works fine locally, not on the server. I tried replacing it to the full http: URL to no avail.
View 3 Replies
Sep 24, 2010
i'm trying to read an xml from the bottom so as the latest item is showed in the top in the flash.
the code below works if i'm readin the xml from top to bottom:
[Code].....
View 5 Replies
Feb 2, 2011
I currently have the following XML code:
[Code]....
It will trace out my original XML. However, I'm trying to get the gallName. I tried to make the code:
Actionscript Code:
trace(MovieClip(root).program.websiteXML.settings.imagesPage.imagesGallery[MovieClip(root).gallery_category_num].gallName)
That however didn't trace anything. how I can read the galleryname?
View 1 Replies