using syndication lib with js

6 views
Skip to first unread message

teesea

unread,
Apr 9, 2008, 8:01:10 AM4/9/08
to ActionScript 3 Syndication Library
Hi I've been trying to use the syndication lib with js but I'm not
getting anywhere

Heres the code


<script src="xmlsyndication.swc" type="application/x-shockwave-
flash"></script>

<script type="text/javascript">

var feedObj =
window.runtime.com.adobe.xml.syndication.generic.FeedFactory.getFeedByString(aStringContaingXmlFeed);

</script>

This causes the error

TypeError: Object (result of expression
window.runtime.com.adobe.xml.syndication.generic.FeedFactory.getFeedByString)
does not allow calls.

I've not used action script libraries in a html/js app before but
tried to follow airs manual at
http://livedocs.adobe.com/air/1/devappshtml/help.html?content=ProgrammingHTMLAndJavaScript_07.html

Any ideas what I'm doing wrong?

Mike Chambers

unread,
Apr 9, 2008, 2:42:58 PM4/9/08
to as3syndi...@googlegroups.com
Is this in Adobe AIR?

You need to remove the library.swf file from the SWC (rename
xmlsyndication.swc to xmlsyndication.zip and open it), and then link
to the SWF.

Although, XML parsing via e4x might be one of the few ActionScript
things that wont work in JavaScript in AIR.

mike chambers

me...@adobe.com

teesea

unread,
Apr 12, 2008, 3:35:14 AM4/12/08
to ActionScript 3 Syndication Library
Thanks for the help mike :)

On Apr 9, 7:42 pm, Mike Chambers <mcham...@adobe.com> wrote:
> Is this in Adobe AIR?
>
> You need to remove the library.swf file from the SWC (rename
> xmlsyndication.swc to xmlsyndication.zip and open it), and then link
> to the SWF.
>
> Although, XML parsing via e4x might be one of the few ActionScript
> things that wont work in JavaScript in AIR.
>
> mike chambers
>
> m...@adobe.com
>
> On Apr 9, 2008, at 1:01 PM, teesea wrote:
>
>
>
> > Hi I've been trying to use the syndication lib with js but I'm not
> > getting anywhere
>
> > Heres the code
>
> > <script src="xmlsyndication.swc" type="application/x-shockwave-
> > flash"></script>
>
> > <script type="text/javascript">
>
> > var feedObj =
> > window
> > .runtime
> > .com
> > .adobe
> > .xml
> > .syndication
> > .generic.FeedFactory.getFeedByString(aStringContaingXmlFeed);
>
> > </script>
>
> > This causes the error
>
> > TypeError: Object (result of expression
> > window
> > .runtime
> > .com.adobe.xml.syndication.generic.FeedFactory.getFeedByString)
> > does not allow calls.
>
> > I've not used action script libraries in a html/js app before but
> > tried to follow airs manual at
> >http://livedocs.adobe.com/air/1/devappshtml/help.html?content=Program...
Reply all
Reply to author
Forward
0 new messages