Javascript :: Define A Custom Selection / Mask On An Image (script Online Just After An Upload)

Mar 12, 2012

I'm looking for a script which allows the creation of a custom selection on a image online. This step is just after an upload. As a picture is worth a thousand words:

View 1 Replies


Similar Posts:


Javascript :: Image Dimensions = Client Side After File Upload Selection

Feb 8, 2011

I have an upload form for an image. The user clicks browse and selects a file. How can I get the image dimensions the moment the user selects the file (before the file is even uploaded to the server). It obviously has to be something client-side with maybe javascript/jquery or flash/flex (prefer js//jquery though), but can either of them do this? This is the code I'm using to tie into zozo's getImgSize() function, but it gives me 0*0 as size.

[Code]...

View 1 Replies

Javascript :: Agile Uploader (resizes Image Before Upload On The Server): Doesn't Work If Image Name Has Cyrillic Letters

Jan 31, 2012

I'm using Agile Uploader in my project to resize image before upload on client side.And it works fine except one thing: if image name contains cyrillic letters it fails with server error 500.

How to avoid this or if needed how to rename file with english letters "on fly" (possibly with javascript).

View 1 Replies

JavaScript :: Upload ByteArray Image On Facebook With SDK

Apr 14, 2012

I'm trying to upload a photo on Facebook using Javascript SDK. In particular I generate a base64 encoded bytearray from my Actionscript3 app, I pass it to Javascript file using ExternalInterface, and from that I decode the bytearray and I try to upload to FB. But it give me this error:
{"error":{"message":"(#324) Requires upload file","type":"OAuthException","code":324}}

I tried to upload an image simply from url, and in that way it goes well! This is my Javascript code:
upPhoto:function(photo) {
var img = F.decode_base64(photo);
FB.api('/me/photos', 'post', {
message:'test',
fileName:'test',
[Code] .....

View 1 Replies

Web Development :: Save Cropped Image From Custom Shape Mask Action Script 3?

Jun 3, 2011

I've managed to draw a custom shape onto a canvas and use that shape as a mask over an image. Is there anyway possible to crop the image and save it out in the custom shape?making whatever is outside the shape transparent? The only image cropping i can find is using rectangles, whereas i need a polygon shape.

View 1 Replies

Javascript :: Passing File Paths From Flash To JavaScript For Upload?

Sep 29, 2010

Is it possible to pass file names from a running Flash application, which only purpose is to enable multiple-file-selection, to a JavaScript application which handles upload of all files to the server?I have examined various Flash upload solutions (like SWFUpload, Uploadify, etc.) and none of them meets my needs. I want an easy to implement solution (like Uploadify) which also lets me specify various parts of the HTTP request.

The reason I need this is because my upload form uses session cookies (for user authentication) and an CSRF token both passed to the server when uploading files.Is it technically possible to pass filenames (+ paths) to a JavaScript application which then handles the upload?

View 1 Replies

Actionscript 3 :: Define A Custom Operator?

Mar 16, 2011

How can I define a custom operator - for example equality operator - for a custom class?

View 1 Replies

Actionscript 3 :: Change Single-image Upload Into Batch Upload?

Feb 28, 2012

EDIT: Reworked my code a bit and decided to throw out URLLoader in favor of the ile.upload() method.Now I'm stuck again >_<Here's the code I currently have, stripped down to bare-bones:When I drag-drop image files onto my app, here is the trace log that gets returned to me:

[object Document] called.
doDragEnter() called.
doDragDrop() called.

[code]......

View 2 Replies

Flex :: Define Custom 'contentGroups' In A Custom Flex 4 Component?

May 12, 2010

The spark panel component for example can be written like this

<Panel title="Skinny">
<child components ... />
<controlBarGroup>
<child control bar components ... />
</controlBarGroup>

[Code]...

The motivation here is that I can now create a couple different skin files to change the look and layout of those subgroups. Reading source of the spark panel, there are some calls within the mx_internal namespace such as getMXMLContent() which is a method of the spark group component, but which I have no access to.

Does the description above make sense? How can I create custom 'contentGroups' in my custom Flex4 component that can use nested mxml child components? Should I approach this a different way?

View 2 Replies

ActionScript 3.0 :: Define A Custom Data Type In Flash?

Sep 16, 2009

How can I define a custom data type in flash? for example in C/C++ I can do something like this:

[Code]...

Is there a way something like this can be done in flash? Basically I want to be able to create my own variable types.

View 3 Replies

Create Own Mask Around A Jpg Image By Drawing Around It On The Mask Layer

Dec 4, 2009

maybe point me towards a better way to mask. png file is way too big. I have been using the mask layer option to create my own mask around a jpg image by drawing around it on the mask layer. There has to be a fetter and faster way to do this. Is it possible to maybe have a specific color range have an alpha value of 0. Similar to green screening whereas If I put the item I want to clip on a green background flash will auto take out the green for me. and by auto I mean action script maybe. I think this can be done but im not finding it.

how are these guys clipping these images [URL] they have the movie clips set up where the black background on the 3 layers of shoes is getting masked out. When I go into the shoe movie clips I see there is a black background but it just disappears when I go back to main timeline.

View 3 Replies

ActionScript 2.0 :: Define A Custom Class To Be An AsBroadcaster In The Classes Constructor?

Feb 22, 2007

Can I define a custom class to be an AsBroadcaster in the classes constructor?

Code:

class myClass{
function myClass(){
AsBroadcaster.initialize(this);
}
}

And if so will that give me the ability to addListeners to an instance of that class?

The reason I want this approach is because I want to broadcast events from inside one of the custom classes methods and I want a textField on the stage to be listening for that broadcast message.

View 3 Replies

JavaScript :: Define Absolute Path Of XML / Images Folder And Main SWF?

Apr 26, 2010

<script type="text/javascript">
var flashvars = {};
var params = {};
var attributes = {};
swfobject.embedSWF("loader.swf", "flash-banner", "920", "320", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>

After loading loader.swf I'm getting this error Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

This is folder structure.
loader.swf
main.swf
main.xml
images
1.jpg
2.jpg
3.jpg

View 1 Replies

Professional :: Custom Selection Box Laggy?

Sep 20, 2011

I've made a little program that enables you to resize a box on the screenIt's made up of 4 squares and when you move one sqaure the others move so that it still forms a box But when i move the square moderately quickly the box's all seem to lagHere is my code for moving one box

var tl:Sprite = new Sprite();
var tr:Sprite = new Sprite();
var bl:Sprite = new Sprite();

[code].....

View 3 Replies

ActionScript 2.0 :: Custom Selection Boxes - Checked At Once

Oct 17, 2002

I am working on a form that is sent to a PHP script and emails the client and company with the results. All is good and well except for the checkboxes I am working on - In some instances I have 4 possible checkboxes and as one is checked the others are cleared. I have done this simply by moving to a frame and reassigning the variable using the code below:

[Code]...

View 1 Replies

Flex :: Flash - Custom List Selection Not Highlighting?

Mar 18, 2010

I want to create a custom list in Flex for an interface prototype. The list is supposed to have an image and 3 text fields. This is what I have done so far, the control displayed is what I want. But, when I click on one of the items, the item does not appear (visually) to be selected. I was not sure how I would implement this.

Here is my code so far:

<s:List width="400" height="220"
dataProvider="{arrColl}"
alternatingItemColors="[#EEEEEE, white]">
<s:itemRenderer>

[Code].....

View 2 Replies

Actionscript 3.0 :: Display Info About A Selection In Custom Panel?

Aug 2, 2009

I watched the very useful Custom Panel Extension tutorial. But the tutorial doesn't show how to get data such as info about my current selection back to my custom panel. MMExecute seems like a one way street.

Specifically, I want to display a selection's X and Y position in the custom panel. How do I call fl.getDocumentDOM().getSelectionRect() in such a way that the results are accessible to the panel?

View 1 Replies

ActionScript 3 :: Flash - Define Custom Behaviors For The Android Phone's Volume Buttons Using Adobe AIR?

Aug 19, 2011

For buttons like the MENU or BACK button you can just add a listener for KeyboardEvent and check if the event keyCode is Keyboard.BACK or Keyboard.MENU.However I don't see anything for knowing if the phone's volume buttons were pressed.Is there a way to listen for volume up and volume down keyUp/keyDown events in AIR (ActionScript 3)?

View 1 Replies

Javascript :: Add Text Into SWF File Online By ASP.NET?

Apr 28, 2011

I have a site that contains some videos that made by graphic designer , he also edit them now and then and add videos. I want to add text to the video that after X seconds at the bottom of the video that will show some text. For example: "Hosted by XXX". I cannot ask this from the designer because the text changes once a month and he will charge me for that work every time. This videos are in swf (flash) format. I need to do it online - while the page loaded or even asynchronously. My site it wrote in asp.net so this must be done(if it can) by asp.net or javascript.

View 3 Replies

Javascript :: Self-hosted Online Photo Editor?

Dec 6, 2009

I am looking for an online photo editor like url...) or picnik.com/info/api (Flash) but I need one that I can host on my own server.. been searching for a while but no results..I also love the idea behind url... but its so expensive.

View 4 Replies

Flex :: Get List Item Selection Working When Using A Png Mask In An Item Renderer In A 4.5 Mobile App?

Jun 10, 2011

I'm creating a mobile app in which I need to show a calendar with months at the top. The months are part of a component that extends from SkinnableDataContainer (and has some custom scrolling/behaviour - which is why I did'nt use a spark list). I need the months to be shown as a 'trapezium' shaped tab and so I'm using a png image as a mask in the item renderer for the component.

When the mask is not applied, it all works well - the months render, the list/data container selection works when I click on a month and so on.When the mask is applied, it renders well, scrolling and everything else seems to work well - but when I click on a month, nothing happens visually. And from the trace statements in my code, it appears list item selection is not changing. Looks like mouse clicks are not working.

Code:

public class TopCalendarMonthRenderer extends LabelItemRenderer {
[Embed(source="/assets/trapezium_alpha.png")]
private static var TrapeziumMask:Class;
private static var trapeziumMaskInstance:BitmapAsset;

[code]...

View 1 Replies

Javascript :: Detecting Audio In Third Party Online Advertisements?

Mar 1, 2011

In an ideal world, I could do this through a browser in real-time and send a notification that would include the DOM information needed to remove the ad. In this type of model, I could theoretically then use all clients (web visitors) as test subjects. I believe that this might be far fetched, and thus will need to rely on a smaller subset of users. I'm looking for any way to do this. I have even thought about using speakers and a microphone to detect when a sound is playing, and then some how capture a screenshot and the DOM information.

View 1 Replies

Javascript :: Splitting A File Before Upload?

Nov 4, 2010

On a webpage, is it possible to split large files into chunks before the file is uploaded to the server? For example, split a 10MB file into 1MB chunks, and upload one chunk at a time while showing a progress bar?

It sounds like JavaScript doesn't have any file manipulation abilities, but what about Flash and Java applets?

This would need to work in IE6+, Firefox and Chrome. Update: forgot to mention that (a) we are using Grails and (b) this needs to run over https.

View 4 Replies

JavaScript :: Flash - Resize / Rotate And Crop Images Then Save Online

Dec 3, 2009

Which is a better approach for this?
ActionScript3 or JavaScript+PHP?
Any open source tool?
After a long search, the only good example I found was this [URL] but I'd rather have a flash alternative.. Also I don't need all the extra functions such as filters.

View 2 Replies

ActionScript 3.0 :: Upload Image From Flash And Generate Xml For Image Gallery?

May 22, 2009

Just wondering if anyone knows about the project I am trying to start, uploading images from flash using php is fine but wondering if anyone knows how to create dynamic xml from php and it takes all the image names from the same folder where those images have been uploaded. So we can load all the images in image gallery through xml into flash.

View 5 Replies

Java - Upload Image Thumbnail To Server Without Uploading Whole Image?

Aug 27, 2009

As far as I know, what I ask here isn't possible, but I thought I'd ask anyway in case I'm missing something.

Suppose you want to let users upload JPG images, and these images are scaled into smaller icons and the original images are always discarded and never required again. Is there any way that would commonly work in most modern browsers that would let the user select a single image on their hard drive, have that LOCALLY turned into a thumbnail and upload the created thumbnail to a server?

In a case where the server just needs a small image, it would be wasteful both in user time and server resources to proceed uploading the whole image, only to immediately discard it. It would be much better to just scale it on the client.

I can imagine three options. Just plain HTML/Javascript, using Flash or using Java. If this were possible with Flash, that would seem like the best option. But reading flash.net.FileReference documentation, it seems that you can upload a file from the HD yes, but you cannot look inside the file you are uploading. On the other hand, if you enable "can access local files" in Flash publishing options, it seems that you can then no longer access the net, so that doesn't work.

With HTML/Javascript, it is possible to load images and display them on a <canvas>, but if you try to access the pixels of these images, you get security violations, so that doesn't seem to work.

Java I hesitate to use, because only 96.52% of my users have it installed, and the file upload dialogs I have seen implemented in Java (at Facebook for example) have not worked well (unresponsive interface). I wonder though if Java is the only thing allowing resizing images from local HD?

View 5 Replies

Javascript :: Searching For A Multiple File Upload?

Sep 23, 2010

I'm looking for a multiple file upload button. the ones I've found areswfuploaduploadifyI want to integrate it in a django app. ATM the only one which is working without any problems and is in widespread use seems to be swfupload.

View 1 Replies

Javascript :: Upload Button For Multiple Files?

Aug 22, 2011

I want my file upload to be very simple, and what could be simpler than just a single button. The requirements are that you should be able to upload multiple files at once. It would definitely be an advantage if I could add file format filters as well, and design the button by myself (including the hover event).

I searched and found Plupload, which seemed to be awesome with the easy setup and functionality, but I can't quite figure out how to create my button; I've only found their Custom upload, which prints out the file names and requires at least one click on another button before it's done (and I can apparently not add any hover-attribute). I tried to edit the JavaScript to make the form be sent after all the files had been added, but failed.

View 1 Replies

Javascript :: Building An Online Slideshow / Presentation That Tracks And Makes Sure Visitor Is Actually Going Through The Whole Thing

Feb 2, 2011

I am trying to build an online teach tool that shows a presentation/slideshow. It needs to have the ability to track and make sure users are staying through the whole process. The client used this example to show me what they were looking for visually:[URL] Now, I let them know that with a flash video, there would really be no way to do any sort of tracking. What I envision is creating a multi page slideshow which has you click next for the next page. This "next" button would use some sort of javascript to enable the next button after a specified amount of time. A person would be logged in during this, so every-time the person moves on to next slide, I would track their process in the database. My question is, is there any better ways to do this tracking. Also, doing simple animations like cursor movements etc, can really only be accomplished well by using flash I assume? They mentioned using voice over etc.

View 1 Replies

ActionScript 3.0 :: Get A Custom Mask To Work On A Project?

Jan 12, 2010

I'm having a hell of a time trying to get a custom mask to work on a project I'm creating.

The mask I'm trying to use is applied as a pixel mask on a layer in the photoshop doc I'm working off, but I can't seem to figure out the proper way to get that layer mask imported into flash, to then compile into my .swc and be called from actionscript. (I'm coding in Flex)

Whats the proper workflow for getting a pixel mask imported from photoshop so that when I call:

container.mask = myMask;

It'll show up as the shape I want, and not just a square box the size of my shape?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved