MartynJH / oauth-as3

Automatically exported from code.google.com/p/oauth-as3
0 stars 0 forks source link

suggestion: remove dependency on mx.utils.uidutil #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
suggestion: remove dependency on mx.utils.uidutil

in this way it would be possible to use the library in Flash Authoring Tool.
as a workaround I replaced

var uuid:String = UIDUtil.getUID(curDate);

with

var uuid:String = String(Math.floor(Number(String(curDate.time).substring(0, 
10)) * Math.random()))

Original issue reported on code.google.com by buratin....@gmail.com on 22 Oct 2010 at 3:53

GoogleCodeExporter commented 9 years ago
This is definitely seems to be an un-required dependency! 

Original comment by mic.arch...@gmail.com on 9 Aug 2011 at 6:27

GoogleCodeExporter commented 9 years ago
i'm having trouble importing this class in the Flex 4.5 SDK. i'm not even using 
the Flash Authoring Tool. The library i'm using is TwitterAspirine from 
@DestroyToday. 
When trying to get authenticated at twitter, i'm getting this error:

ReferenceError: Error #1065: Variable mx.utils::UIDUtil is not defined.

Adding the source for the TwitterAspirine .SWC (which includes the oAuth 
source) points me to line 65:

var nonce:String = UIDUtil.createUID().replace(/\-/g, "");

solution, anyone? :(

Original comment by magg...@gmail.com on 20 Aug 2011 at 3:18

GoogleCodeExporter commented 9 years ago
WAIT! i solved my particular problem: i didn't have the AS3 CoreLib included. 
that's where the missing import came from. oAuth works now... my twitter auth 
not yet, but that's due to something else.

Original comment by magg...@gmail.com on 20 Aug 2011 at 3:26

GoogleCodeExporter commented 9 years ago
i just ran into this problem. i created a new class OAuthRequestFixed and 
overwrote the buildRequestMethod with the workaround you posted. I figured it 
was easier than checking out the source and compiling...

Original comment by em...@guinetik.com on 19 Jun 2013 at 1:56