Coder Social home page Coder Social logo

as3-parse-class's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

as3-parse-class's Issues

Relational Queries

Is it possible to perform relational queries (such as this example) using Parse.Get?

For example, in a "Score" class, I have a Pointer to the "_User" class, called "user". If I know the objectId of the user, can I search for rows in the "Score" class that have a specific user.objectId?

So far I have been trying something like {'where': '{"post":{"__type":"Pointer","className":"_User","objectId":"8TOXdXf3tz"}}' for the 'where' parameter.

What would be the proper way to upload a File (Image)

I'm trying to upload an Image to Parse-Server, I wonder what is the proper way to do this?

private function browseAndUploadBrunchPhoto():void {
				fileRef = new FileReference();
				fileRef.browse([fileTypes]);
				fileRef.addEventListener(Event.SELECT, fileSelectHandler);
			}
			
			private function fileSelectHandler(evt:Event):void {
				this.currentState = 'uploading';
				//uploadBtn.label = evt.target.name;
				
				var url_request:URLRequest = new URLRequest();
				url_request.url = FlexGlobals.topLevelApplication.parseFilesURL + "/" + evt.target.name;
				url_request.contentType = "image/jpeg";
				url_request.method = URLRequestMethod.POST;
				url_request.data = fileRef.data; // bytearray
				url_request.requestHeaders.push(
					new URLRequestHeader('X-Parse-Application-Id', FlexGlobals.topLevelApplication.parseAppKey)
				);
				url_request.requestHeaders.push(
					new URLRequestHeader('X-Parse-REST-API-Key', FlexGlobals.topLevelApplication.parseRestAPIKey)
				);
				
				var loader:URLLoader = new URLLoader();
				loader.dataFormat = URLLoaderDataFormat.BINARY;
				// attach complete/error listeners
				loader.addEventListener(Event.COMPLETE, completeHandler);
				loader.addEventListener(Event.OPEN, openHandler);
				loader.addEventListener(ProgressEvent.PROGRESS, progressHandler);
				loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
				loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
				loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
				loader.load(url_request);

I keep getting a webpage in the Complete event with a title of the Page: 405 Method Not Allowed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.