Flash :: Inputting Equation In Textfield And Processing It?
Apr 3, 2012
I would like to know if theirs a way where you can type in a text field something like "5*5".
And then on enter, the document would take the database and be able to return 25.
I am quite confused due to the fact that content that you input into a textfield must be a String and when you use the Number() converter the system gets confused.
View 2 Replies
Similar Posts:
Mar 6, 2011
I have an input textfield and some keys listeners on the stage. When typing in the input textfield the key listeners of the stage and loaded swfs get triggered. I've tried different things with focus and stopPropagation but nothing's been working, at least the ways I've been implementing it.So my question is, "How can I make it so that when I am typing into the input textfield, none of the keylisteners get triggered?"
View 2 Replies
Mar 23, 2010
There's an variable in my swf I want to receive XML. It's an integer value in the form of an equation. How do I receive the XML value for 'formatcount'?
[Code]...
View 2 Replies
Jul 17, 2010
I want to display a Quadratic equation with format like (4x2). I want to display 2 as superscript automatically after typing x in the textbox.
View 1 Replies
Aug 10, 2011
I have a website url that has a search pane for example: [URL]
and at the end where go+to+and+learn is what I want the string value to be.
on the iPhone I would use (NSString*) value; NSLog @"+" ;(NSString*)value2.... all the way down the line for my values
View 1 Replies
Jun 3, 2009
I am designing a .swf that has an input text box on one frame and a dynamic text box on another frame.I'm trying to find the code that allows you to take the input text and display it on the next frame in a dynamic text box.
View 2 Replies
Sep 2, 2009
I have been using flash AS2 for about 12 months but I'm totally at a loss with something that seems totally straightforwards...How can I input only numeric data so that AS recognises it as numbers not text?in the test below the input field in _root.myNumand I'm using a button (_root.in2) to test. I've tried:
Code:
this.in2.onRelease=function(){
var numVar:Number = parseInt(_root.myNum);
[code].....
View 10 Replies
May 12, 2011
I want to design a component for inputting and handling mail addresses, the EXACTLY SAME way that hotmail does it.which Flex components are most suitable to do this as I am totally lost with this.
View 1 Replies
Nov 22, 2010
how to input a number to the swf file so my presentation can then run faster or slower depending on what I input to the swf file.
View 3 Replies
Jan 31, 2011
I've been using Processing for around two years now, and I really like it. However, I feel like Flash is a bit more useful for coding games, as it's more universal and flexible. I'm starting to feel like I have no idea what I'm doing, and I really don't get any of the concepts like movie clips and the stage and so forth. In Processing, to make, say, a ball, I might make this:
Ball[] ballArray = new Ball[ 0 ]; //Array to store each ball in
void setup()
{
size( 400, 400 );
[code].....
And that would let me create as many instances as I like, anywhere I like.I haven't the faintest clue how to make a comparable applet in Flash.I've tried making a 'ball' class in a separate .as file, but it gives me an error about too many arguments. I also don't know how to draw a shape directly to the screen.
View 2 Replies
Dec 21, 2004
I want the flash movie to allow the users to apply image processing functions on the jpg files that would be loaded by them..
View 4 Replies
Nov 8, 2006
i am building a little widget that allows a user to type in keyword(s) into one input field and then a zip code into another
when the user clicks submit, it plugs them into the search url
i have it working for one input field, but i am not sure how to append the script for the second field...what would i need to change to the below script to add a second field into that query string?
Code:
btn.onRelease = function(){
getURL("http://www.google.com/search?q="+myInputField,"_blank");
}
View 4 Replies
Feb 15, 2010
I'm working on a Flash intro for a site. After the Flash movie plays I want it to wait three seconds and then send them to the index page. Currently I'm using the action script:
[Code]....
I've got that keyed to the last frame. The issue is at the end of the Flash movie it displays the company logo image. Well with that script added to the last frame it just quickly blips up the logo then takes you to the main page so fast you don't even get to really see the logo. I want the viewer to have a couple seconds to take it in, but then move them along to the main site without them having to look for a button to press.
View 3 Replies
Jun 30, 2010
This is not a specific question, instead I'm trying to get an idea of flashes capabilities. I'm building a website that has an Mp3 upload component on it. Serverside I can use the command line audio tool "SOX" for most of my heavy lifting but I'd like to offload some of it onto a flash client. Essentially, client side, needs to be able to do the following: User selects an mp3 file off their harddrive. Render it as a waveform. Display a scaled indication of 30 seconds of the waveform that the user can drag backwards and forwards. This will record a start time. Upload either the full mp3 or just the selected start time plus 30 seconds.
I've never programmed anything in flash before so I'm not really sure what it's capable of.
View 1 Replies
Sep 21, 2010
I want to process the credit card details within a flash/swf based form.
View 2 Replies
Nov 4, 2004
I have an input textbox, say instance is "inptxt".I'd like to "search" the text inputted by user, e.g. search for letter "e", if user enters "hello", replace all "e" with "s".Idk how to process inputted text...example.fla After looking at the example, you will see that I am trying to do the following:
Code:
var user_input:String = "";
//Create var for inputted text.
var changedtext:String = "";
[code]....
I bolded the part I am actually having trouble with (it's 1 line).
View 14 Replies
Oct 30, 2010
Is there a way to process a picture > 4096 x 4096 px in pixel bender? Or any other technique?
View 3 Replies
Jun 1, 2011
I'm working on an interactive company, and for each campaign we create dozens of loaders. A loader is a simple flash file contains the following elements:* few lines of code for eRate (counting how many clicks have been done on a banner)* a loader for the source banner from "http://....host.../..../" + w,h + ".swf"* a button that tells what happens when a banner is clicked (different portals as us for different scripts)Is there a way to automate the process of making such files? it takes a 1 minute to make 1 swf, but the amount of loaders make the work a bit longer.I'd like to see an application that asks for a list for sizes + eRate code for each one and the URL for the source banners.
View 7 Replies
Jul 28, 2011
I have an input textbox, say instance is "inptxt". I'd like to "search" the text inputted by user, e.g. search for letter "e", if user enters "hello", replace all "e" with "s". How to process inputted text. I attached an example, I am trying to do the following:
Code:
var user_input:String = "";
//Create var for inputted text.
var changedtext:String = "";
//Create var for edited text.
user_input = inptxt.text;
[Code] .....
I bolded the part I am actually having trouble with (it's 1 line).
View 6 Replies
Nov 6, 2009
I basically have a form inside of Flash that I need to submit to a server-side processing page, which will then return either json or xml telling if it succeeded or not ( json, xml I suppose ). My version of Flash is CS4 and I'm wondering if there are any libraries or frameworks I can use to accomplish this.
View 2 Replies
Sep 20, 2011
I'm creating some image uploader in Flex with client-side image processing. Processing consists of two steps:
1. Resizing (solved)
2. Converting resized image (represented by ByteArray in PNG32 with alpha-channel) to gray-scale PNG with bit-depth = 2 and no color-palette. Is there any existing library that is capable of second step? Something like libpng for C++, maybe?Edit:It seem I stumbled upon rarely encountered problem. However my descision was to create an AS3 class that is capable of converting bitmapData to 2bit grayscale PNG. I used standart PNGEncoder and PNG format specification (which is not so good as I expected) as basis.
View 1 Replies
Nov 10, 2011
I'm trying to convert a processing sketch to a flash as3 file, and I'm getting hung up on two of processing's commands - pushMatrix() and popMatrix() - how to convert these in flash?
Essentially I just need to store the matrix of lines I've drawn so far and draw a new line, and this gets done recursively. Here's my code:
var theta;
var xpos:Number = 0;
addEventListener(Event.ENTER_FRAME,draw)
function draw(e:Event) {
[Code].....
View 1 Replies
Jan 21, 2010
I am developing a Image uploader using Flash 10. I am using Filereference object to browse images and Loader to show the image:
Sample code:
var tempFileRef:FileReference = FileReference(ev.target);
var oLoader:Loader = new Loader();
oLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImageLoad);
oLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
oLoader.loadBytes(tempFileRef.data);
It works fine with .jpg and .gif files but when I browse .bmp or .tiff file, I am getting the error:
Error #2124: Loaded file is an unknown type.
Is there a way to load and display browsed .bmp images from desktop?
View 2 Replies
Oct 8, 2010
I'm working on a cartoon series in the uk and we use flash, 3d and after effects. I'm building a little pipeline tool to help us compositors do your job (there's hundreds if not thousands of files to be comped for a great number of shows)anyhow, we use flash for the 2d animation and we need to extract pngs. Right now it's a process I can't streamline (ie compers still have to have flash opened to choose which layers to export manually) but I'd like to be able to open flash and launch a specific javascript file ('command')
View 4 Replies
Nov 3, 2010
I built two flash uploaders using actionscript 3 & actionscript 2 that sends files to a java servlet. The java servlet successfully receives that file, but the flash uploader fires an IOerror #2038 instead of a complete event.
There was another question is my exact same problem, but the answer "clear the cache" was very broad, and the question owner was too lazy to give a detailed description.
[URL]
View 2 Replies
Nov 10, 2010
I've seen some example of using a Pixel Bender for mixing two tracks together (per shader passes). However, would it be technically possible to write a Pixel Bender kernel that could do this?
[Code]...
View 1 Replies
Apr 3, 2012
There may be more than one answer to this, but I'd like to know if there's some technology out there that exists to handle Audio Processing / Playback in realtime, so that Flash can:
Interface with the technology / plugin to generate sounds with no delay or lag. Apply DSP effects (Reverb, Delay, Dynamic Range Compression / Expansion, Distortion, etc). Manipulate DSP parameters in realtime (sweeping an EQ filter's band or Q).
The most important thing of all, would be for this technology to be available to most users, as it would likely be used for Gaming environments or online Audio production, even. So far, Flash has a few ways to manipulate Audio Data, such as the SampleDataEvent, Andre Michelle's Popforge library, chiptune libraries like SiON, and possibly some other unheard of libraries.
I'm not really convinced though, that these methods are the optimal ways to create interactive sounds - sounds that change depending on game conditions, sounds that closely responds to the users actions. Nothing (that I've seen so far) easily allows developers to create or communicate with a DSP effect in order to manipulate the sound in this way, in realtime.
I know that Flash has the ability to communicate over sockets / ports, so perhaps there is an existing library that can communicate with an external plugin, and can be easily distributed to users at the same time.
Is there such an audio solution out there?
View 1 Replies
Mar 20, 2010
I'm using the FileReference Class under AS2 to pass images to php/imagick for processing and then back to Flash as JPG. The AS is based largely on the Adobe examples here: Adobe Help.Its all working fine across various platforms except that filenames which include spaces never make it to the server - turns out thats about 10% of the images folk are attempting to upload.
View 3 Replies
Apr 16, 2011
Flash Player 10.2.153.1and Flash Player 10.2.159.1 are crashing my standalone application. Later with version 10.1 the application run ok, never crashes but was taking more than 90% CPU. The new Flash Player solve the problem of resources, and drop down CPU to 30%, but the application crashes always after a while, unespectly, or if I open the window of other application.
In the other hand when I disable the harware acceleration at the swf settings, the application goes crazy and start to make rapid flashes, and frame rate goes down to 8. [URL]. Right click on the Flash logo, Settings,then UNcheck the hardware acceleration in Display Settings.)
I'm on a Mac Mini Core 2 Duo with Mac OS X 10.6.7 (the last Snow Leopard these days). The graphical card is Nvidia GeForce 9400M.
I did test the application at a Mac Book Pro core i5, Mac OS X 10.6.7, graphica card Nvidia GeForce GT 330M and the application is more stable but finally crashes too.
Finally if I export my application with GPU Hardware acceleration at Publish Settings, my application crashes almost inmediatly after I open it in each of the computers.
My guess is that the new Flash Version is using my graphical proccesor in a corrupted way.
View 6 Replies
Mar 3, 2011
I get a working application in Flash made that lets the user click to create blocks which subsequently gravitate towards the mouse. I made the exact same thing in Processing too, just to compare speeds.However, when I run the Flash version and add around 15-20 blocks, the framerate drops to 5-10 FPS.In the Processing version I can add ~60 with no noticeable slowdown. What's the deal, Flash?
Links to each version's source:
Flash version
Processing version
Here is the source for each in case you are a wizard and can help just by glowering at the code sternly and telling it to behave:
Flash version:
blocks.fla
import flash.events.Event;
import flash.display.MovieClip;
[code]....
View 1 Replies