0

Flex Sample Error

D:\SocialProfile\src\YAPProfile.mxml(32): Error: Type was not found or was not a compile-time constant: Profile.

I'm getting an error concerning this code
CODEBOX
import com.yahoo.social.data.Profile;
what am I doing wrong?

by
2 Replies
  • Okay I managed to fix this by changing Profile into Object but I still can't get it to run since my swf is being denied due to a lack of policy file permissions.

    CODEBOX
    Error: Request for resource at http://social.yahooapis.com/v1/user/<trimmed code>&oauth_version=1.0&region=US by requestor from http://<mydomain.com>/YOSSimple.swf is denied due to lack of policy file permissions.


    What am I missing? :(
    0
  • Yeah, the sample code is bad. Your "Object" change was good. Now also make this change in YOSMethodBase.as sendRequest() method:

    Change

    headers.push( new URLRequestHeader("Accept","application/json") );

    to

    // TODO: Uncomment when Yahoo's crossdomain.xml supports this.
    // headers.push( new URLRequestHeader("Accept","application/json") );
    0

Recent Posts

in YAP