ActionScript 2.0 :: Create A Graph Of An Exponential Function For Interest In A Bank Account?

Sep 24, 2009

I'm trying to create a graph of an exponential function for interest in a bank account or something. Here's the code I have so far:

Code:
var i:Number=0;
var j:Number=0;
this.createEmptyMovieClip(graph, 1);

[code]....

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Retrieve Bank Account Balance?

Jan 17, 2010

How I would go about pulling my account balance from my bank through actionscript. I assume this would be a HTTP REQUEST, but not sure. I don't want to do transactions or anything, just read the balance.

View 6 Replies

Professional :: Create A Game Bank?

Nov 12, 2010

I want people to be able the input the amount of money they want to transfer from one var to the other, then choose if they want to deposit or withdraw using a button. They will then get a 5% intrest every Saturday 00:00.I have:

var named totrewarded (ur points) (dynamic text)
var banked (amount in blank) (dynamic text)
var transfer (amount to transfer from tot to bank) (input text up to 6 chars)

[code]....

View 11 Replies

Professional :: Make A Login That Allows The User To Create An Account?

Jan 9, 2011

I am trying to make a login that allows the user to create an account and be able to access it at anytime. Like if I was going to go on to facebook I can login. Something like that except I want it in my swift and not like a php or whatever you call it now.

View 9 Replies

Flex :: Graph Data Provider Has Values But Graph Is Not Plotting

Aug 22, 2011

In the below code the traced values are correct its there in the chart data provder but the

input graph is not plotting.there is no error in this code.Can anyone solve it?

function fnctn(evt:Event)
{
var tp:int = bulb1 + bulb2 + bulb3 + bulb4;

[Code].....

View 1 Replies

ActionScript 2.0 :: Equation Generate To Graph \ Show A Slope Graph?

Jan 26, 2010

School Project with the following actionscript in Flash 8, I want to show a slope graph? What code to add to make slope graph work?

/*var orig_x:Number;
var orig_y:Number;
orig_x = (plane_mc._x)+(plane_mc._width/2);

[code].....

View 0 Replies

ActionScript 3.0 :: Graph A Simple Function?

Nov 17, 2011

I have been searching the net for a tutorial how to graph functions. I found one from Barbara Kaskosz, very detailed, and too much scripting. Too much for me. Is there another way or place to learn, or I am doomed, and have to face the music and study her stuff. All I want, is to be able to graph a simple function.

View 4 Replies

ActionScript 3.0 :: Interest Compounding Starting At A Certain Date?

Jan 15, 2010

I have an initial dollar figure, and it's growing by x every second. It started a few days ago, and I would like the Flash movie to keep up with it live, so when someone accesses that site, it shows the current amount.I could use getTime, but it shows the actual time, not the time elapsed. And I could use the Date object or setDate, but I'm not sure if it would do any good, either.
 
I guess what I need is the amount of seconds that have elapsed since the original date. Once I have that, I think the interest-compounding might be easier.

View 6 Replies

Actionscript 3 :: Create A Graph From Points In Grid That Contains Holes?

Jul 6, 2010

I've got a continuous plane (2-D) containing polygonal obstacles. I am uniformly sampling the plane at discrete positions to create a uniform grid of points. The grid does not have points where obstacles lie (i.e. holes where ever an obstacle is) as shown in the image below.[url]...

View 1 Replies

ActionScript 3.0 :: Create Scrolling Graph From Input Values?

Oct 27, 2009

I'm trying to build a new concept for an interface inside an operating theatre - What I was trying to do (to start with) was make a line dynamically draw itself from a set of values (which I have in an excel spreadsheet) - gradually revealing itself over time like in the screens you see on medical drama's.

View 2 Replies

ActionScript 3.0 :: Create A Plot Graph With Labels On Plotted Points?

Aug 26, 2009

I want to create a plot graph with labels on plotted points

View 2 Replies

ActionScript 3.0 :: Mathematical Function That Will Return A Number Based On A Graph That Starts At 0?

Sep 23, 2009

I'm completely useless at maths due to paying no attention whatsoever to it in school when I was a kid so forgive my lack of knowledge of basic terminology.I need a mathematical function that will return a number based on a graph that starts at 0, curves to (eg.) 100 and then curves back down to 0. I have a feeling it has something to do with Math.sin or somesuch wizardry but am not sure.Basically, I want to feed it a number between (eg.) 0 - 60 and for it to return a number on aforementioned curve. The purpose of this is to be applied as a lateral force on some basic ball physics. The idea of the 'curve' is that (depending on timing of the shot) there will be a 'sweetspot' in the timing.

View 5 Replies

ActionScript 3.0 :: Maths: Exponential Value Via Loop?

Dec 27, 2010

To create a sort of thick-pixel gradient shadow, I've got a simple loop which creates a new 200x5 pixel Shape (rectangle) with each iteration, assigning an alpha value and y value that changes relative to the loop's iteration.

Code:
var upperShadow:Shape = new Shape();
for (var k:int=0; k<10; k++) {
shadowAlpha = (1-(k/10))*.5;
trace(shadowAlpha); // traces .5, .45, .4, .35, .3, .25, .2, .15, .1, .05

[code]....

This creates a simple linear gradient since the alpha value changes linearly, but how would I go about creating some sort of exponential/logarithmic/cubic/circular value for the alpha, so that it falls off differently?

Are there a set of common equations that people use for this sort of thing, similar to the simple (1-(k/10))*.5 I use for the linear change from .5 to 0 in ten .5 increments?

View 3 Replies

ActionScript 3.0 :: Get Goldshare And Bank Value Separately

Oct 17, 2009

I want to be able to call 2 values from the mysql db Currently I only get the first one.Any order works.Now I tried to change the parameters in the flash file.I get the 2 values but they are the same.How would I get goldshare and the bank value seperately.[code]

View 3 Replies

ActionScript 2.0 :: Math - Give The Slider An Exponential Scale Instead Of A Linear One?

Oct 11, 2005

I've built a slider which also contains an input textfield. the slider can be dragged and it's value will be updated in the textfield. a user can also enter a value in the textfield which will then be reflected in the slider. All is fine thusfar. However, I'd like to figure out how to give the slider an exponential scale instead of a linear one. Say the slider has a minimum value of 0 and a max of 100. When the slider is dragged halfway then using a linear scale it's value would ofcourse be 0.5 * 100 = 50. To calculate the value for the exponential scale I use

[Code]...

View 1 Replies

ActionScript 3.0 :: Creating A Question Bank From Scratch?

Mar 19, 2011

I want to create an online q-bank with questions pertaining to a specific medical board examination. This is similar to the way kaplan and other companies creates Q-banks for standardized exams. The reason: No banks exist for these board examinations

what tools would you use to create a Question bank that has the ability to sort questions by user settings, implement timers, keep track of overall performace, display explanations for each questions, and have the options for video explanations. Is ActionScript up to this task?

View 2 Replies

ActionScript 3.0 :: Program To Gaph Quadratic / Exponential Equations Uisng Flash?

Apr 16, 2011

Possible to program to gaph quadratic or exponential equations uisng flash.

View 1 Replies

Flex :: Login To A Facebook Account From A App?

Sep 7, 2010

I would like to supply an username(mail address) and password to an API method and login to Facebook. Is it possible with the special swc library to access the API in this manner? If not, can you give me some hints on how to do it using ExternalInterface and JS?

View 2 Replies

Flex :: Flash - Converting IDs To Account Name

Nov 23, 2010

I am using Adobe Air to get data from SalesForce, and present it in a datagrid. I am using a query to get the data, and then put it into an arraycollection that is bound to the datagrid, this works correctly and the data is displayed. The problem is that I want to convert the Account Id in the Event to show the account Name. To do this I am using the following code:-

_serviceWrapper.query( "Select * From Event order by StartDateTime asc", new mx.rpc.Responder( eventQueryHandler, faultHandler ))}
protected function eventQueryHandler(qr:ArrayCollection):void {
var acctIdss:String = "";
for each(var contact:DynamicEntity in qr) {
[Code] .....

This works and displays the Account Name, the problem is that when I use this script and then Sync Changes to SalesForce all the records that have been displayed are identified as needing to be syncronised even if they have only been displayed. If I skip the function eventQueryHandler, and link my query to the OnQueryResult function then there is no problem, but only the Account Id can be displayed. How can I stop Air marking these records as having changed, or is there a better way to achieve this?

View 1 Replies

ActionScript 3.0 :: SelectionBeginIndex Not Taking Into Account Linebreaks?

Aug 4, 2009

I've got a TextArea with some text in it. Sometimes there are linebreaks.

I'm using SelectionBeginIndex and SelectionEndIndex, along with substring() to get the current selection.

The only problem I'm running into is that if that selection includes any line breaks, it doesn't understand.

For example, if the text was:

Code:
This is my first line of text.

ABCDEF
Let's say I selected from the first letter all the way to, and including, B.

The output of the substring() with the begin and end selection, because of the linebreaks, would be:

Code:
This is my first line of text.ABCD

Here's the AS Code I used to illustrate the problem.

ActionScript Code:
checkButton.addEventListener(MouseEvent.CLICK, checkSelection);
myText.alwaysShowSelection = true;
myText.textField.alwaysShowSelection = true;

[Code].....

How can I capture those linebreaks? htmltext isn't an option, because there's no selectionBeginIndex and selectionEndIndex for htmltext...

View 1 Replies

ActionScript 2.0 :: PHP Mail Form - Email Account

Mar 11, 2003

[URL]. I can't seem to get an email to go to my account. I have the php form adjusted with my information (and in the same folder as my swf file). I've checked with readyhosting, my site host, and it says that it supports php. Am I placing the script in the wrong place (folder)?

View 3 Replies

ActionScript 2.0 :: Flash - Link To Paypal Account?

Jun 25, 2005

I have an animated flash banner on a small Flash site that I would like to link to the clients Paypal merchant page. What is the best way to go about doing this?

View 1 Replies

Flash :: IDE - Send Emails Using Gmail Account?

May 24, 2009

how to send emails from flash using gmail account?

View 1 Replies

ActionScript 2.0 :: Preloader Doesn't Seem To Take This Audio Into Account

Jun 3, 2011

I am having a pretty irritating problem with the audio I am using for a Flash game which I am making using Flash 8 and Actionscript 2.0. The game itself is near complete and is already hosted online, it is a simple 2d shooter game where enemies go from one side of the screen to the other and you shoot them. I have built a preloader which works well however I have just added audio to the game, and I am finding that the preloader doesn't seem to take this audio into account. The game itself loads up and is ready to play, however it could be another 30 seconds or so before the audio will kick in.

I have a main song loop which plays in the background (triggered once the start game button is pressed). A bullet shot sound when the mouse is clicked (triggered through code), and various sound effects that are played on the timelines of the enemy movie clips characters. Part of my problem is that im implementing the audio in so many different ways and I am confused by the complexities of using audio in Flash. Should I build a separate preloader for the audio? Or am I simply doing something wrong in Flash itself when it comes to including the audio?

View 9 Replies

ActionScript 3.0 :: Random Placement On Stage / With Rotation Taken Into Account?

Jun 19, 2009

It is a simple matter to place your object in a random place on the stage and not have it hanging over the edge, like so:[code]But for some reason I am having great difficulty coming up with a solution to how the random placement might work once the object has been rotated. and the registration point is no longer in the global upper-left corner. This might be easy if the rotation was a fixed # but I am rotating randomly along the whole spectrum.

View 0 Replies

Media Server :: Can't Login To Admin Console With Reverted Account

Oct 26, 2010

I reverted the admin console account on a new setup of Media server 4 and it will not let me connect or login using the "administrator" login?   Does it set the password to some defaut?  This is all new to me as this is my first install of this server. How can create a new admin login? How can I change to login?

View 1 Replies

Flash :: Professional - Player Not Working When Logged Into Facebook Account

Mar 21, 2011

I have tried installing and unistalling the Adobe Flash Player several times to get it to work, but it is not helping. It won't work when I am logged into my facebook account.

View 1 Replies

ActionScript 3.0 :: Twitter XML Path To Pull A Feed Via HASH TAG Instead Of Account?

Nov 2, 2010

I built out a Twitter Application that pulls in a feed. It works. Found out from the client today they want it to display the feed based on a specific HASH TAG .... not just their account.

ActionScript Code:
function loadXML():void {
xmlholder.load(new URLRequest("http://twitter.com/statuses/user_timeline.xml?

[code]....

View 2 Replies

ActionScript 2.0 :: Create Base Url Function And Button Link To Call That Function?

Jun 16, 2010

How create baseurl function in flash and how i call that function in button script

View 1 Replies

ActionScript 3.0 :: Date Class - Flash Automatically Take Into Account Leap Days?

Jan 31, 2010

I'm looking over some info on the Date class in the link below, and have just one simple question:

[url]

For all of those functions -- particularly the one to find the number of days between two dates (pasted below) -- does Flash automatically take into account leap days?

[code]...

View 2 Replies







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