Re: Upload

6 views
Skip to first unread message

jassa

unread,
Nov 26, 2008, 10:48:05 PM11/26/08
to ActionScript 3 Flickr Library
Hi,

I've tried for a while to get the Upload.upload() function to work but
without much success. I'm not sure if I'm doing something wrong but I
get all the way through the upload() function but the actual
fileReference.upload() function doesn't seem to fire?? (Line 207 of
the flickr.methodgroups.Upload). If someone could shed some light on
using this method that would be great.

Thanks,
Jassa

jassa

unread,
Dec 5, 2008, 1:51:35 AM12/5/08
to ActionScript 3 Flickr Library
Ok, I've managed to work this out and I've got it uploading
successfully. Just had to tweak a few things in the
flickr.methodgroups.Upload class. Let me know if anyone wants more
details....

Jassa

Mike Chambers

unread,
Dec 8, 2008, 11:08:35 AM12/8/08
to as3fli...@googlegroups.com
Yes. Please let us know what you needed to tweak, incase there is a
bug or the API changed.

thanks...

mike chambers

me...@adobe.com

jassa

unread,
Dec 8, 2008, 6:46:25 PM12/8/08
to ActionScript 3 Flickr Library
Well the hardest part was getting an authToken - I tried for ages but
with no luck but I ended up coming across this post which was really
helpful:
http://drupal.org/node/206261

Once i'd set my authToken it was pretty straight forward. I was using
the version of Upload.as that can be found here:
http://code.google.com/p/as3flickrlib/source/browse/trunk/src/com/adobe/webapis/flickr/methodgroups/Upload.as?spec=svn30&r=30
The only thing I changed was to add a ProgressEvent.PROGRESS on the
FileReference object, and then dispatch an event from that which I
could in turn listen for to get load percentages. I also added a
DataEvent.UPLOAD_COMPLETE_DATA to get the the returned PhotoID.

Moral of the story - make sure you sort out your authToken before
getting started ;)

On Dec 9, 2:08 am, Mike Chambers <mcham...@adobe.com> wrote:
> Yes. Please let us know what you needed to tweak, incase there is a  
> bug or the API changed.
>
> thanks...
>
> mike chambers
>
> m...@adobe.com

Mike Chambers

unread,
Dec 12, 2008, 3:57:37 PM12/12/08
to as3fli...@googlegroups.com
Yeah. The authToken is a pain.

fyi, there is a Flex Component in the library that provides an
interface and code for obtaining the token.

mike chambers

me...@adobe.com

Bobby

unread,
Dec 5, 2008, 12:54:42 PM12/5/08
to as3fli...@googlegroups.com
I would love to see the tweaks you did to get it working correctly. Thanks!

Bobby
Reply all
Reply to author
Forward
0 new messages