I am following this post which has a very simple code to post tweets from flex application.
http://rjdesignz.com/adobe-flex/twitter-api-in-air-mobile-app/
This is for AIR Mobile App but i am making AIR WindowedApplication in Flex, the above post is dependent on the following external libraries:
1) AS3 oAuth Library http://code.google.com/p/oauth-as3
2) AS3 Crypto https://code.google.com/p/as3crypto/
Here is the code:
import org.istashan.oauth.OAuthConsumer;
import org.istashan.oauth.OAuthRequest;
import org.istashan.oauth.OAuthSignatureMethod_HMAC_SHA1;
import org.istashan.oauth.OAuthToken;
import org.istashan.utils.OAuthUtil;
private var requestToken:OAuthToken;
private var accessToken:OAuthToken;
private var oAuthConsumer:OAuthConsumer;
private var accessRequest:OAuthRequest;
protected var signature:OAuthSignatureMethod_HMAC_SHA1 = new OAuthSignatureMethod_HMAC_SHA1();
for all the variables i am getting the following error and therefore i am unable to compile my code:
1046: Type was not found or was not a compile-time constant: OAuthConsumer.
1046: Type was not found or was not a compile-time constant: OAuthRequest.
1046: Type was not found or was not a compile-time constant: OAuthSignatureMethod_HMAC_SHA1.
1046: Type was not found or was not a compile-time constant: OAuthToken.
1046: Type was not found or was not a compile-time constant: OAuthToken.
How can i resolve this compile-time constant issue?