Flex :: Image Manipulation - Which Prefer For Function's Input?

Jul 22, 2011

I am in this situation where i need to select a Flex's type(image placeholder/image type/image container) for passing parameters in/out of different functions in an image editor. And, those different functions are either another image-manipulation/processing function or a function that display/render the image in a display component.

For example, I will ask other teammates to create a function that processes an image (possibly piped from other image processing functions, too), (let it be fancy or basic image processing from changing colors, to scaling, to segmentation etc.Which of the two would you pick for passing in/out different functions? Display Object or bitmapData,and why(reusability, performance, standard practice etc)?

View 2 Replies


Similar Posts:


Flex :: Undo, Redo Functionality With Image Manipulation?

Jan 21, 2010

Loads an image to an Image component Transform the image (rotate, flip) with the Matrix Apply filter(s)

Now I am thinking about to create some undo redo functionality. Each time I do a transformation / add an filter I want to be able to go back to the previous image (before the action).

My thought is to have an Array and add the previous bitmap to the stack. But I see that there are some differences between transformations and filters I have also seen the ImageSnapshot and whot i can do and it looks like what I am after.

View 1 Replies

ActionScript 2.0 :: String Manipulation In Function

Aug 22, 2006

I'm using a function to call multiple button actions, so I don't have to rewrite code for each button... here's the script:

[Code]...

This is all part of a clip which loads pictures externally... each of the buttons (which are mc's) are named btn0, btn1, etc.

View 14 Replies

ActionScript 3.0 :: Image Manipulation - To Tuck Pants Into Boots ?

Jun 9, 2011

this one seems to be too tough for me. Usually i at least know in which  direction i have to search for but this one is beyond my imagination.I  need to make kind of dress up shop where you can add clothes to a model  to see how the clothes look like. The hard part is, it should be  possible to tuck pants into boots or put one apparel over another. And  since the bottom apparel can be bigger than the top one i have to cut out the pixels around the top apparel.If  you rollover the pants on the left you see that the image is actually  bigger than the boots but is cut and curved "into the boots"And if you rollover over the "Mango top" you see that it is also much bigger than the top jacket.

tstanding but also still keep the parts that are going out of the sleeves and on the bottom.All data and images are loaded  on demand of course and there are no specified masks or tricks for that,  so looks like everything is calculated and processed ynamically.Defining  special masks for each item is not an option either because there might be hundreds of apparels and thousands of combinations.So do anyone have some ideas how to approach this ? How the heck do they do this ? How to detect the areas where one apparel goes into another and cut out the rest ?

View 7 Replies

Actionscript 3 :: Tools For Flash-based Image Manipulation?

Jan 4, 2010

I'm building a Flash app (as3) that allows users to embed photos of themselves in a scene--think carnival-style cutouts (or faceInHole). I like the interface design for image manipulation at FaceInHole, which puts anchor points and a skeleton around the boundaries of the uploaded image and lets users drag the image to change its position, resize it by dragging corners, rotate it, etc, similar to the free transform tool in photoshop.

Originally, I was planning on building the application with an interface that just used buttons in a control console to manipulate things like position, rotation, etc, but I find the FaceInHole approach more intuitive.I have two questions:

a) Will most users find the in-place skeletal manipulation tool more convenient than the button-based tool, or do I just find it easier because I'm used to things like Flash and Photoshop that use a similar interface?

b) Are you aware of any good open source classes / libraries that contain a solid implementation of the photoshop-style free-transform image manipulation interface?

View 1 Replies

Flex :: ByteArray Manipulation - Storing Binary Data In String?

Jul 28, 2011

I have some binary data and I can't store it in a string, as such I'm using a ByteArray. The problem is that I need some functionality that comes with strings, to be specific I need the charAt, substr, indexOf and substring methods.

View 1 Replies

ActionScript 3.0 :: Input Any Number Of Vars Without Having To Change Input Function To Avoid The "Expecting More / Less Arguments"

Jun 19, 2011

I got an input function in witch i set all the variable i want to display. To make it clean i would like to input any number of vars without having to change my input function to avoid the "Expecting more/less arguments". Then i would like to get any type of var (bool num int ....) in the input and then check their type, instead of declaring the first input var being exclusively a number for example. Is that possible and how, don't know if i was clear,

View 5 Replies

Actionscript 3 :: FLEX Data Manipulation Separating Data For Bargraph Display From A PHP Call

May 25, 2011

I want to separate the data from the PHP call to Different CollectionArrays So that I can use the data for a bar-graph;

I created a static version of the bar-graph and separated the Collection array manually I don't want this done manually I need to do it dynamically. So what I am trying to understand is where to put the event-listener how to add to a collectionArray then once the collection array(s) are built. use that information to build the bar graphs...

/*
*
36, > 2 years, Compliance
6, 0-90 Days, Compliance

[Code].....

View 2 Replies

Actionscript 3 :: Make Input Text Control Ready For Input On CreationComplete In Flex/MXML?

Mar 19, 2012

I have the following Application tag code in my widget:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:local="*"
width="100%" height="100%" minWidth="200" minHeight="200" layout="absolute"
creationComplete="init()"
defaultButton="{Send_btn}">

[Code]...

View 1 Replies

Flex :: Get Updated Image In Flex Image Control After Changing Source Not Name Of File (image)?

Jan 25, 2012

I am changing image through flex every time i change it saved into server directory with same name(which i am referring to show). So when i refresh my page my browser didn't send new request to server since it's already in request.so didn't getting new image.Tip:- when i clear browser history it will come with new image

View 2 Replies

Flex 4 :: Change Image On Mouseover / Mouseout Function Fails When Mouseover Quickly?

Mar 6, 2011

I have a basic mouseover in my flex application which changes an image onmouseover and changes it back onmouseout using the code mouse Over "functionToChangeImageSource()" and another one to mouseout.It works fine when you slowly mouse over and out, however if I quickly move the mouse over it, it occasionally stays on the mouseover image and the mouseout function doesnt appear to kick in. Is there anything I can do to fix this, or does anyone have any ideas why its happening?Also, I've tried the rollOver and rollOut instead but it has the same problem.[code]I'd imagine you're correct about the mouseover event not completing before mouseout is but how to I fix this?

View 3 Replies

Flex :: Text Input With Icon Inside Like Mac Os X Search Text Input

Mar 24, 2010

I'm trying to extend the text input that comes in flex to support an icon, just like mac os x search text input has a grey circle aligned to the right, the text input has a addChild method, but it didn't work for me.

View 2 Replies

ActionScript 2.0 :: File Manipulation With PNG's And JPG's?

Oct 3, 2006

Using AS2 or 3, is there a way to create my own file format? I would like to create a game.And when users play the game, they can create a GAME-SAVE-FILE.So, let's say that player 1 is playing... He get's to level 22 and has to sign off.He clicks save my GAME-SAVE-FILE to my computer.He names the file MyGame and saves it to his desktop.So now on his desktop he has MyGame.gsf. Next time he visits, he can click on UpLoad My Saved Game.He selects his previously saved MyGame.gsf And bammo... all the information was stored in his file and now he can play on.

I need to know how I would put together the format for my own file-type / extension.I need to know how I would access, write, and edit my own file-type / extension.Since Flash can do this type of File Manipulation with PNG's and JPG's.So surely it can be done with any desired custom format.

View 2 Replies

ActionScript 3.0 :: Type Function Into Text Input Then Run It?

Aug 27, 2011

I'm wondering if it is possible to be able to type a function name into a Text Input and call the function that was put in. I know you could do it by using if conditions but I'm wondering if there is a way to turn that string into the function caller.

View 5 Replies

ActionScript 3.0 :: How To Handle Database Manipulation

Mar 11, 2010

I have a request to create a "flash-like" app that is connected to a MS Access Database (DB). The customer has built up a product configurator in Access and wants to know if I can do anything with it. Is this what Flex is good for? I still really do not understand what Flex is all about.
 
Anyway, I thought of exporting the DB out to an XML file and importing that to a flash app and then using the data there. The problem with that is that I would have to recreate all of the logic (e.g. if you choose "model A" you can only choose "colors 1, 2, or 3") that manipulates the elements in the DB and also the client would not be able to easily manipulate/edit/update the DB without having to export it to XML, etc...What would be a smart way for me to access/manipulate a MS Access Database through a flash front end?

View 1 Replies

Actionscript :: Website Manipulation With Javascript?

Dec 7, 2011

Using javascript or flash, is it possible to log into websites and than pull content from that page?

I am trying to make a phone app that displays content from a site that requires log in.

View 2 Replies

ActionScript 3.0 :: Object Manipulation W/ Buttons?

Jan 17, 2010

I am curious if anyone knows how to code a button so that when you click it an object resizes, but shows the animation of it resizing. For example I know that

ActionScript Code:
btn1.addEventListener(MouseEvent.onRelease, resize);
function resize(): void {

[code]......

View 4 Replies

ActionScript 2.0 :: How Sophisticated Is The Text Manipulation

Jul 20, 2006

I want to search and replace specific text in a HTML file (about 10k - so quite a lot of text). I was thinking of trying to get Flash to do this for me. I wasn't sure how good Actionscripts text manipulation was! The only reason why I was think of doing this in Flash was because I don't know VB. I would otherwise do it in Perl if Actionscript is no good.

View 1 Replies

IDE :: Local Date Manipulation In Flash?

Oct 14, 2009

I'm currently trying to create an advent calendar I would like the flash movie to somehow recognise the date on the users computer and then gotoAndStop at that particular Frame Label (eg. If it's the 20th December then it jumps to Frame Label 20 in the main timeline.

View 4 Replies

ActionScript 3.0 :: Interactive Video Manipulation?

Apr 24, 2012

I have a project which is about creating interactive videos for users..The main idea is that user will open the app and a predefined video will show-up.Video will show couple of billboards, signs etc. while moving through a highway.. Like from a perspective of a driver..I need to insert users photos to these billboards and some text to signs..

The problem is, these objects which I'll be filling are changing their shapes constantly because of the car movement. I can get all the x,y coordinates and timings of the video from my partners. But I don't know how to use them in this situation.I think about continious tweens with these x,y values but I'm not sure..

View 5 Replies

ActionScript 2.0 :: CS4 AS2.0: Math.random - Does It Have A Max Image Input?

Nov 11, 2009

quick question, i have a loop playing where two MC holers have math.random script applied to them, allowing random images to be generated as it plays from a folder of images. i've gotten everything to work,initially i had about 60 images, i then added an additional 40, changed the coe to reflect this and had no problems.
today i added an additional 196 images, but when i test my movie the numbers generated never surpass #101

is there a limit to the ammount of numbers output by math.random script?

[Code]...

View 1 Replies

Flex :: Flex - Long Image Links Of Facebook Is Not Working In Mx.image.souce

Aug 11, 2010

I am creating one desktop application of facebook.

So here I am getting streams from facebook post. So when any facebook application's long image link I am getting that I can't display in Image container, this is not displaying image.

One also fact is that, When I am giving this link directly then it is working.....

When I have seen this in Charlse Debugging proxy then it is displaying 403,Forbidden error of image.

View 2 Replies

ActionScript 3.0 :: Checking For No Keyboard Input Or A Function Call?

Oct 27, 2009

I'm working on a game that involves some timed animations and I need to fire a kind of 'failed' event.Basically I'm moving a clip from one point to another on the stage, the user has to input a correct key combination before the endpoint. I'm capturing the inputs correctly, but I need a default procedure to fire if the player doesn't input anything at all.So I'm guessing that at the endpoint I could check if my function to capture the key inputs was actually called, and if not, call the 'failed' procedure, or if at the endpoint, no keys were pressed, do the same

View 1 Replies

Get Information From A Flash Input Textfield To A Javascript Function

Aug 25, 2009

I have a web page with a couple of Flash Input TextFields. When I press a button on my web page, I am using javascript (jQuery) to get all the values from the text fields and checkboxes etc on the page.
 
In order to get a value out of my Flash TextField, I understand that I have to use the ExternalInterface API. I am using ActionScript 3.0 and Flash CS4.
 
In the flash IDE, I have a layer with just the textbox instance and another layer 'actions', which has all the actionscript.
 
As soon as I put: import flash.external.ExternalInterface
 
in my code, then the textfields full functionality does not seem to work on the webpage.
 
I assumed what I had to do was something like:
 
import flash.external.ExternalInterface;
ExternalInterface.addCallback("getFlashFieldText", getText);
function getText():String  {
return myTextField.text;
}
 
then I thought that perhaps I had to call a javascript function to return the textfields value like so:
 
function getText():void  {
var word:String = myTextField.text;
ExternalInterface.call("alert", word);
}
 
but nothing is working, and I think it is strange that the textfields functionality (some letters being styled) does not work as soon as I import the ExternalInterface class. I have tried putting the ActionScript 'actions' layer in a package, but it didn't help. As you can probably tell I am new to Flash and Actionscript, and I would be very greatful if someone could point me in the right direction.

View 3 Replies

ActionScript 3.0 :: Function's Input Be Of The TimerEvent Data Type?

Jun 24, 2009

so I'm not just new here, but definitely new to actionscript (though I have a MINOR amount of OOP experience in matLAB). I was wondering if someone could clarify something (though I'm sure this thread will grow out of my own confusion)?

[Code]...

View 4 Replies

ActionScript 2.0 :: Passing Input Text Var To A Javascript Function

Jul 29, 2009

I am creating a flash website with as storefinder.. There is an input text field in flash and a search button which when pressed will load a javascript function that uses the input text var.

i can call the function using this method - getURL("javascriptpenMap()", "", "POST");

but how can i pass it the variable from my input text field?

View 2 Replies

ActionScript 2.0 :: Enable Function Only When Input Text Is Clicked?

Jan 31, 2010

I have a movie clip. Inside that movie clip, I have an input text with an instance name of text. I also have 2 frames of actionscript.

How can I make it that the 2 frames are disabled, and only enabled once you click on the input text?

I want this to happen so you can type in the input text with all capabilities. I already used setFocus, however it doesn't grant me the ability to backspace.[code]...

View 1 Replies

ActionScript 3.0 :: Pass Multievent Input To A Single Function?

Sep 14, 2010

Is it possible to pass multiple progressEvent output into a single function...

then assign each events properties such as bytesLoaded and bytesTotal to a variable?

I'm loading images from an xml file into the URLrequest. LoaderOneURL is the location of the image. I'd like to combine the progressEvents to make one single preloader out put. I've create an example of where i am at below.

How can i differentiate between what event is being passed to the function.

I'm thinking functions are not capable of this but i'm not 100% sure. What other method could i use to accomplish this?[code]...

View 1 Replies

ActionScript 1/2 :: MovieClip Pixel Manipulation With BitmapData

Jan 30, 2010

I have a MovieClip in the library exported for actionscript. How do i convert or attachMovie it to a BitmapData class so that i can manipulate its pixel data? I will need that so that i can distort the MovieClip.

View 3 Replies

Media Server :: Recorded FLVs Manipulation?

Sep 4, 2010

I'm creating a Flex application that enables users to communicate in a kind of video chat room. I only allow to live streams at any given moment. I'm using FMS to record the videos in FLVs. What I need to do is post process those videos and create a single video with all that happened in the video room. That means that I need to combine 2 videos, reduce the size of one of them so it appears over the other one. In other words one video will use the whole space an the other will appear at the upper left corner (over the other video,).
 
I need a server side solution for this. I created another post here and someone suggest a screen capture solution. That would work perfectly, but since this appliction will be used for several people and any time, I want the process to be automaticaly not manual. So, I'm thinking I can do it with FFMPEG, but I need a way to identify in which order I need to compose the videos. Something like adding a time stamp to each FLV in FMS (when they are recorded). How can I add custom metadata to the FLV?

View 1 Replies







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