ActionScript 1/2 :: Profit And Loss Calculator
Dec 20, 2011
I'm trying to get a Profit and Loss calculator working in ActionScript 2.The red text in the yellow highlighted cells is what the user can change. They click a calculate button and the number of total value for lemons * Unit cost is supposed to be updated.[code]When the calculate button is pressed
View 2 Replies
Similar Posts:
Jan 28, 2009
is there anyway to convert a WMV movie to a FLV file with out loosing video quality ?
View 1 Replies
Sep 16, 2010
In my game I am making, when the character dies, I call a MC with a 1.5 second fade. It goes from alpha 1 to alpha 0 within the 1.5 seconds. It drops the FPS drastically from 40 FPS to average of 15 FPS. what I could use instead, so I don't lose FPS?
View 1 Replies
Jun 28, 2011
What is the possibility of a singleton reference to be lost. Well I created a swf singletonpara a store containing some sound features of the software that I created and it's one time or another error saying that the reference is null
View 5 Replies
Jun 4, 2011
I'm working on a Flash mobile game. If the app loses focus (a call comes in for example) I need the game timer to stop until focus is restored. Here is my current code but I'm getting a "Argument count mismatch error" onDeactivate(). Expected 0, got 1.
Here is the related code, I think:
addEventListener(Event.ACTIVATE, onActivate);
addEventListener(Event.DEACTIVATE,onDeactivate);
public function onActivate():void {
[Code].....
I'm getting the error when testing in flash and I close the window.
View 1 Replies
Jun 16, 2009
I have 3 .mov files I am trying to import to the stage. Each time I bring them in all goes well. When I test my swf they lose the last 25%~ of the audio no matter what codec I use audiobitrate etc.
View 1 Replies
Feb 3, 2010
We have implement a DVR solution, but a problem remain how can I split DVR f4v file without loss clients from broadcast?
It's possible to split file if reach a limit such as 40Gb and create a new file without cuts in broadcast?
View 1 Replies
Jul 6, 2010
I opened up a file that was created in cs3 flash with cs5 flash and we have some text that is bold in our actionscript code. now when i load that file with cs5 the bold text drop's out of bold and is just plain text. Does anyone know if there is a quick fix for this because what was there before the <b></b> is not working now.
View 1 Replies
Apr 14, 2011
It seems to mee that my app eats too much memory. Is there a way to control memory usage in flash? Amount of movie clips in memory? amount of textfields?
View 3 Replies
Nov 10, 2011
I am using LoaderMax to load an external PNG and display it in many places so I use the following code to duplicate the image:
[Code]....
View 2 Replies
Feb 21, 2012
How I can calculate packet loss from Flex.
View 1 Replies
Feb 21, 2012
How I can calculate packet loss from Flex.
View 1 Replies
Jan 29, 2009
I have a pic that I want to use a simple motion tween for where I scale the pic and move it slightly. My problem is that scaling the pic inside of flash makes the resolution of my pic very crappy. Is there any way to use a motion tween and scale my pic without losing the resolution and without having to import the pic frame by frame from photoshop?
View 1 Replies
Mar 4, 2011
I tried to write a function that inserts values into a Vector. After writing my first function, I started to notice some strange results. Sometimes, the Vector appeared to lose values for no reason. My original code looked like this:
[Code]...
View 0 Replies
Apr 15, 2010
Has anyone noticed how the 3D tween causes a loss in visual quality of the movieclip? For example, if I have text within a movieclip, and then put a 3D tween on that movieclip, the text becomes almost blurry (even when the tween is complete). Then if I take the 3D tween off the movieclip, the text goes back to being perfectly clear. It's not just text though; its any content with a 3D tween on it; text is just the most noticable. Is anyone else dealing with this?
Is there something that I'm missing, like a quality setting on 3D tweens?
P.S. there aren't any blur filters on the movieclip. I checked
View 3 Replies
Jul 11, 2011
i have a mobile application that i am creating in Adobe Flex (Flash Builder 4), and i am trying to create a zoom function. The one i have works, but the point is to be able to more easily read words that are in the image (the images are .jpg files). The images are 2550x3300 originally, but as soon as you zoom, the image quality reduces drastically, and nothing is readable.
[Code]...
View 2 Replies
Aug 5, 2011
So we're trying to come up with a way to automatically assess the "quality" of streams published to an FMS. So far, I've come down to 3 different statistics:
* Round-trip ping time to client (using the Client.ping() method and Client.getStats().ping_rtt.
* A home-grown jitter calculation that compares the deviation between wallclock and media time for an inbound stream, e.g., I get N+/-M seconds of media over a period of N seconds of wallclock time. How big is M on average? (uses Stream.time and Date.getTime()).
* How much packet loss are we getting?
For this third metric, I have the client sending up period reports containing tuples of <media_time, cum_bytes_sent>, where media_time is provided by NetStream.time and cum_bytes_sent is provided by NetStreamInfo.byteCount. I'm then comparing these samples to a similar set of samples obtained on the server via Stream.time and Client.getStats().bytes_in. Unfortunately, these two data sources do not seem to be measuring exactly the same thing. While they are close to each other, the received bandwidth (e.g., measured by the server) always seems to exceed the sent bandwidth (measured by the client) by a small amount (e.g., 0.5% to 2%) on a clean network.
The goal of this whole exercise is to enable to server to automatically detect when a client is having problems (either network or local CPU). Among other things, this will trigger us to tell the client to try sending a lower-bitrate stream.
So, my questions:
* Is there a method for me to reliably calculate (or obtain) a packet loss factor? With something like RTP, I could simply look for holes in sequence numbers, but I don't see any APIs that would give me that sort of information via FMS (our inbound streams are usually RTMFP).
* If there isn't a way for me to get a clean packet loss factor, is there another quality metric I should be looking at?
View 12 Replies
Oct 18, 2010
I'm using Flash CS4. Everything functions as it should when CS4 previews the swf after compiling it. However, after embedding the flash item in a webpage, if the textArea loses focus within the flash piece, the textarea's built-in UIscrollbar resets to the very top. Here's the kicker: if I add a FOCUS_OUT event listener to the textArea to store the current scrollbar value, I find that the scrollbar value has been reset to minimum even before the FOCUS_OUT event is triggered! WTF? I think this is occurring because the textArea's htmlText propery is dynamically populated. Adobe AIR has advanced methods for handing HTML, but not simple AS3, oh no. How obnoxious. What can be done?
View 1 Replies
Mar 1, 2009
I'm trying to put together a simple calculator form, all it needs is the quantity, the price, and a price total.
View 3 Replies
Jul 27, 2009
I need to create a calculator (url...) were you can enter in cost in one box and automaticaly it calculates 30% and displays that figure in a total box.
I know a fair amount of action script 2 but now this has to be done in ac3 and I'm very lost.I've tried doesn't seem to work correctly in AC2 or AC3.
View 5 Replies
Aug 3, 2009
I have a BMI calculator that is currently working well, however when calculated, gives a VERY precise result of:Your BMI is: 24.343121332458201.I'd like it to round up/down so it just displays:[code]
View 2 Replies
Dec 4, 2010
Looking for a readymade flash calculator.I need that as a movie clip.
View 1 Replies
Jul 29, 2009
I am working a calculator with a textfield. It can calculate a if a enter only one number, but when I try to enter two or three doesnt work. I have test several codes but they are not working at all.
var numeroEntrado = "";
var campoUno:int = 125;var campoDos:int = 20;var elResultado1 = 0;var elResultado2 = 0;
proteinas.text = "125 grs.";colesterol.text = "20 mml.";colesterol.backgroundColor = 0x9999FF;textoColesterol.backgroundColor = 0x9999FF;
numeroPorciones.maxChars = 3;numeroPorciones.restrict = "0-9";
btn.addEventListener(MouseEvent.MOUSE_UP, suma);
[Code] .....
View 4 Replies
Aug 4, 2009
I need to use the ComboCox component within a calculator.
I need to combobox data value to be populated by an input text field on the stage.
Basically depending on which of the choices they select from the dropdown menu the calculation made will be made using one of several previously input numbers by the user.
View 3 Replies
Nov 12, 2009
i'm trying to create a roi calculator using two combo boxes. Box 1 how many treatments 5,10,20 Box 2 cost per treatment 90, 100, 120 then button to calculate treatment x cost and a dynamic text field to display result. I am using Flash CS4, am I wasting my time with combo boxes I have searched flsh docs all day.
View 3 Replies
Jul 10, 2011
Make changes to the MakeChange.fla application, such that the user enters in the amount of change. The program calculates the number of coins necessary to make change for an amount less than 100 cents. The program should have variables for the amount, number of quarters, number of dimes, number of nickels, and number of pennies. Display all of the information clearly in the output of the program.
View 4 Replies
May 4, 2010
I need a calculator for a flex app I am making, and was wondering if there was any official widget prebuilt or already in good quality. I could make one myself but it would be nice to use one that already existed and had a nice api to customize it with.
View 1 Replies
Jul 27, 2009
Need pointers from the good folks here. I need to create an interface illustrated in the link below:
Calculator-like interface (GIF)Scenario 1) When the user clicks either the button 30 or 60, it will update dynamic textfield (value1) with the corresponding value 2) When the user clicks either the button 45 or 73, it will update dynamic textfield (value2) with the corresponding value
3) Dynamic textfield (output) will dynamically add the values of 'value1' and 'value2' and generate the total.
How do I go about scripting the interface?
View 1 Replies
Aug 3, 2009
I have a BMI calculator that is currently working well, however when calculated, gives a VERY precise result of:Your BMI is: 24.343121332458201I'd like it to round up/down so it just displays:Your BMI is: 24.3
Code:
var totalHeight:Number;
var totalHeightx2:Number;
[code].....
View 3 Replies
Aug 1, 2010
I am trying to create a script, where the user inputs a maths equation (something simple like 5 + 2 * 10), I have managed to break down the text into an array and have the numbers in one array and the symbols in another, I wanted the computer to then work it out, however I cant seem to think of how to do this and the methods that I have tried have failed.So there is one dynamic box and the value of that is then broken down by an array split(" "), however this leaves the values in an array and it is percieved as a string not a number and so when i try to work it out
View 1 Replies