danriegsecker / as3syndicationlib

Automatically exported from code.google.com/p/as3syndicationlib
0 stars 0 forks source link

issue: called as3syndicationlib but requires flex classes #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Was trying to use this convenient library in flash cs3 but turned out it
requires 2 flex classes, namely mx.formatters.DateBase.

This is a bit unexpected as the library is called as3syndicationlib not
as3flexSyndicationLib. 

Original issue reported on code.google.com by markledf...@gmail.com on 25 May 2007 at 8:33

GoogleCodeExporter commented 9 years ago
Can you list the classes where you are seeing Flex being used.

mx.util.StringUtil is being used in ParsingTools.as

that can be replaced with StringUtils from corelib.

List any others you find here, and we will look into replace them with non-flex 
classes.

mike chambers

Original comment by mikechambers on 30 Jan 2008 at 8:39

GoogleCodeExporter commented 9 years ago
DateUtil imports
import mx.formatters.DateBase;

which must be a Flex thing too, but I couldn't find an equivalent in any of the 
classes that are associated with 
as3syndication or corelib

Original comment by stv.n...@gmail.com on 6 Feb 2008 at 10:33

GoogleCodeExporter commented 9 years ago
same issue. I know you guys love flex, but some of us like Flash and are still 
coders!

;)

Would be awesome if someone came up with a solution, or just gave us that AS 
file
from Flex. 

Original comment by martin.l...@gmail.com on 8 Feb 2008 at 7:42

GoogleCodeExporter commented 9 years ago
ok I decided to patch it. This is probably far from perfect, but it can work 
until
they release an official fix.

I made a class called com.adobe.utils.DateBase which contains just enough to 
the the
syndication API going. You need to replace all instances of 'import
mx.formatters.DateBase;' by 'import com.utils.DateBase;'. 

Somebody might want to test this out.. Just in case I didn't write month names 
or day
names correctly.. ;)

Original comment by martin.l...@gmail.com on 8 Feb 2008 at 8:02

Attachments:

GoogleCodeExporter commented 9 years ago
I'm having this same problem.

Is the fix that martin posted the best way to deal with this right now?

Original comment by abow...@gmail.com on 16 Mar 2008 at 4:16

GoogleCodeExporter commented 9 years ago
Ran into the same Flex DateBase problem. I was able to patch DateUtil to use the
values from martin's patch. I'd definitely like to see this fixed in the 
library so
that it works well in Flash CS3 without editing anything. That's especially 
important
for less experienced users.

Original comment by joshtynj...@gmail.com on 2 Apr 2008 at 6:21

GoogleCodeExporter commented 9 years ago
I am getting really tired of all the good stuff going to Flex.  I am a full time
Flash Developer using Flash CS3, graduated Magna Cum Laude with a Degree in 
Computer
Science from Western Washington State University.  Flash offers greater 
flexibility
when creating immersive interactive environments than Flex and I think only 
those
panzy 'I don't know anything about graphic design', CS only programmers should
realize that Flash CS3 is way better than Flex.  If I have to switch to Flex to 
use
real tools why not just switch to SilverLight! 

Original comment by trinaryl...@gmail.com on 27 Jun 2008 at 9:57

GoogleCodeExporter commented 9 years ago
I think relevant to this issue...

I am using Flex Builder 3, but working on an ActionScript Project. The compiler 
uses the following SWCs...

Flex 3:
- playerglobal.swc
- flex.swc
- utilities.swc
corelib.swc
xmlsyndication.swc

When I have a line addempting to create an RSS20 instance the compiler throws 
errors:...

Unable to resolve resource bundle "formatters" for locale "en_US".
Unable to resolve resource bundle "SharedResources" for locale "en_US".

Original comment by crea...@gmail.com on 28 Jun 2008 at 5:27

GoogleCodeExporter commented 9 years ago
would be sweet to be able to use this in flash... any word on an update? thanks

Original comment by 26daysyn...@gmail.com on 20 Mar 2009 at 2:21

GoogleCodeExporter commented 9 years ago
It appears that Martin's Database class does solve the remaining issues. After 
replacing all of the imports to use corelib classes and Martin's class and 
properly 
wrapping it all together in a document class, the RSS syndication classes do 
work in 
Flash.

I would agree with the others that when authoring utilities like these which 
have no 
inherent dependencies upon Flex libraries, we should endeavor to avoid putting 
in 
those dependencies out of habit. In my experience it has only led to 
frustration for 
the developers I work with when something simple is simply unavailable to them.

Perhaps the biggest and best example of this is the blatant omission of web 
service 
classes for Flash. Upon reviewing the code used by the Flex web service 
classes, it 
is clear that there is no reason they should be Flex-only. In fact, with CS4, 
if you 
were to bundle these web service classes into a SWC, they can indeed be used by 
Flash.

It may be prudent to take another look at the classes that lean on the Flex 
framework 
for important reasons and separate out those that do not so that we can make 
them 
available in a common set of libraries.

Original comment by james.to...@gmail.com on 19 Apr 2009 at 3:31

GoogleCodeExporter commented 9 years ago
Add me to the list of annoyed developers. Fix this, please! I hate having to 
hack 
downloaded source libraries.

Original comment by mdw1...@gmail.com on 15 Jun 2009 at 6:37

GoogleCodeExporter commented 9 years ago
I am unable to use the library with Flex Builder 3 or 4, is this issue being 
ignored?

Original comment by sixo...@me.com on 19 Aug 2009 at 10:32

GoogleCodeExporter commented 9 years ago
I have been working with flash for 6 months now. Every aspect it littered with
snafu's like this. It's incredibly depressing and I'm getting out. CS4 crashes 
20
times a day.
I'm off to C# and Unity3d. Goodbye flash. It was miserable.

Original comment by charles....@gmail.com on 11 Nov 2009 at 8:27

GoogleCodeExporter commented 9 years ago
Thanks to Martin and his com.adobe.utils.DateBase, DateUtil work for me!

Cheers.

J.

Original comment by jacques....@gmail.com on 30 May 2010 at 7:30

GoogleCodeExporter commented 9 years ago
BEWARE - martin's DateBase.as is missing 'August'/'Aug' in 
monthNamesLong/monthNamesShort!

Original comment by schellma...@gmail.com on 9 Aug 2010 at 11:59

GoogleCodeExporter commented 9 years ago
my feed is www.stopmerokok.com/feed/

when you see i have pub date formatted like <pubDate>May 7, 2010</pubDate>

The thing is it seems not possible to parse the pubDate as String
I tried toString method but doesnt work, it says (im using flash develop)
---
[Fault] exception, information=Error: Unable to parse the string [May 7, 2010] 
into a date. The internal error was: TypeError: Error #1010: A term is 
undefined and has no properties.
---

It seems easier to just load as XML than using RSS...
anyone knows how to deal with this? or ill just change the rss?

Original comment by purnawij...@gmail.com on 27 Oct 2010 at 7:01

GoogleCodeExporter commented 9 years ago
Still getting this issue with latest versions of AS3CoreLib & 
as3syndicationlib. Any chance to have a look at it?

+1 to Martin's fix! It solves the problem fully.

Original comment by jens...@gmail.com on 28 Dec 2010 at 9:51

GoogleCodeExporter commented 9 years ago
one more flash user got dinged by this. thanks to comment 4 and 15

Original comment by starpa...@gmail.com on 31 Aug 2011 at 9:12