Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Telephone Simulator



Curious if anyone has put together an interactive telephone (or the like) and then used scripts to ensure correct phone numbers are being dialed. Part of a training project and just looking for different ways to approach the task.

Any helpful ideas would be much appreciated.



FlashKit > Flash Help > Flash ActionScript
Posted on: 08-14-2003, 11:10 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Pay-for Telephone Help For Flash 5?
Does anyone know of a pay-for telephone helpline for Flash 5? I mean, I love Flashkit and Were-Here, but sometimes it's not the same as talking to someone live.

thanks,
Brig.

Help With Flash Telephone
Hi there

I have created a push button phone in flash 5 and basically when you press each button at the moment I have used dynamic text to show what button has been pressed. What I need to do now is allow the user to press up to 4 buttons and then display that number. For example the users presses button 3 then 5 then 2 then 1

In my dynamic text box I want to display to the user 3521, but at the moment I can only work out the have one dynamic field that replaces the last number with the next number pressed.

Please could someone help me on how to go about doing this? thanks so much for your help.

Caz

Telephone Validation
I have created a Flash Form in Flash MX. The form has various fields: name, address, email, telephone, etc. that pass to an email after the user clicks on the Submit button. I want to do one of two things:

1. I want to add some code so that after the user adds the 9 number telphone number that it automatically formats to (504) 123-4455 or 504-333-3333. So it would be after the user tabbs or moves off of the telephone text field, the number would automatically format.

- OR -
2. Or I just want to add some validation code to my submit button to check that the user has entered the proper format, either (504) 123-4455 or 504-333-3333.

Thanks, any help would be appreciated, I am really just an intermediate newbie.

Validation For Telephone
I have created a Flash Form in Flash MX. The form has various fields: name, address, email, telephone, etc. that pass to an email after the user clicks on the Submit button. I want to do one of two things:

1. I want to add some code so that after the user adds the 9 number telphone number that it automatically formats to (504) 123-4455 or 504-333-3333. So it would be after the user tabbs or moves off of the telephone text field, the number would automatically format.

- OR -
2. Or I just want to add some validation code to my submit button to check that the user has entered the proper format, either (504) 123-4455 or 504-333-3333.

Want To Make A Telephone
I am trying to make a phone type thingy in flash and I want to be able to click on a button, "6" for example and then 6 will appear in a text field. can anyone help?. Also would it be difficult to enable the button to act the same as on a mobile phone whereby "1" clicked once =1, but in a text message situation also = A,B,C dependant on how many times pressed

Cheers Fellas

How Do I Create A Number/telephone Keypad?
Hello, All!

I'm interested in creating number/telephone keypad, but I can get multiple numbers to append to each other. I creating a simple little app where the user "punches in" an amount from an on-screen number keypad. When the user presses 5-0-0, I'd like it to set the variable to "500".


The only method I'v tried (or know how to do) is:
on(press){set("varNumber1",1)} - But this only allows me one number at a time.

Is there any exisiting code out there - or could someone show me how to append the numbers to each other.

Thank you.

How To Format Input Text Like SSN Or Telephone ?
I've been searching the internet and help docs with CS3 and can not find any solution.

How can I have an input text field that accepts text in a given format such as social security number or U.S. based telephone number. Such that the field already displays the dashed or slahes or parenthes and when the user types it fills in the input box correctly?

example: the input box for a U.S. based telephone number would have "(   )   -    "
as the user types, it would fill in "(123)456-7890" without the user having to type the "()" or "-".

I beleive I maybe able to use "restrict" but I'm not sure.

Any thoughts?

Thanks in advance,
Hovercraft

How Can I Make An Interactive Old Telephone Disc?
I want to make a telephone disc(old telephones) to rotate when clicking  on the numbers 1,2,3...9,0. But not just clicking, but drag the number button. For example to put the mouse on the number 1 hole, and when pressed to drag the #1 hole down and make the whole disc rotate. Imagine an old telephone  and you will know What I have in mind. Please help me.
Thanks!

Need URGENT Help Re: Required Telephone & Enquiry Type Fields In Contact Form.
Hi all

Thank you in advance. Help needed urgently. I need to complete the contact form I'm working on at work by the end of today if possible. I'm stuck and can not find the solution anywhere.

I need the AS to make users type only numbers in the 'Telephone Field' and users to only have the option of typing 'general' OR 'sales' in the Enquiry Field.

This is what I have currently in the 'Email Field'. I need something similar.

Attached is an image of the contact form I'm working on.


Code:
TextField.prototype.isEmail = function() {
if (this.text.indexOf("@") == -1 || this.text.indexOf(".") == -1) {
return false;
} else {
return true;
}
};
Kindest regards
Ben

Simulator
Hi !! I work in a company, and they assigned me a huge task for a flash beginner! I really really need your help ! I have to make a quizz that calculates a value...and displays what was the result! And also send the inputs and the result by e-mail to my boss so he can evaluate the results... How can i do this? Please be very specific in what knowledges must i have and how to apply them!

Please help me...


I thank u all in advance for helping me...

Ultrasock RULES on Flash....

Web Speed Simulator
Hi everyone,

I just discovered a great tool for us flashers. A web speed simulator:

www.xat.com

I know we have a bandwidth profiler and all in Flash but that is not useful when we are loading other swfs into the one we are testing.

With this tool you can set the connection speed and then browse the page and see how the clip will load.

I like this tool - but there is one - there must be other that I would like to compare to this one.

Do you know of any other tools like this one?

Regards,
Sambo

Simulator.. Is This Possibe? What Do I Need?
Hey everyone... first of all, great forum.

Well this is going to be a bit long, but it would be kewl if some people could help me out.

Basically I have never used Flash MX < Only Swish... don't hate me >, and right now i'm trying to figure out what tool I need to purchase at work, Flash MX, or Director MX.

At work we use a system called AS/400 to view customer information... I guess the best way to describe it is to call it somewhat DOS based. Everything is accessible through one window, and Keyboard function keys. We need to create a simulator for training that would basically look like the actual system.

Four years back our company outsourced this project and it cost over $15, 000 So we're trying to do things a little different The application they created execute in Macromedia Projector, so I'm guessing the file itself is a FLASH file, am I correct ?

I guess I can take you through a couple screens, and it will make a little more sense...

1st screen. Basically a logon screen, you enter you user name, and a password, and press F1 to logon.

2nd screen. Two fields. You enter a customer account number and press F5 to view account information, and lets say F6 for help.

and so on...

What it appears they did when they created the simulation, is they simply took screen shots of all the system screens, and you're basically navigating between them with Function keys. The simulator is not at all connected to a system (obviously), and they assigned specific numbers, and user names for people to log on.

so here are some questions (if this makes any sense at all :

- Does this sound like it could be done in Flash
- Is it relatively easy to make keyboard function keys work within a flash application? ... like F1, F5, SF5... and so on? Would it have to be launched in projector?
- Do we need to get Flash MX, or Director MX to create something like this?


Sorry for making this long, and I don't know if it makes any sense... so if you have any questions... or possibly example of something similar to this... that would be awsome.

THANKS !!!

Flash ALT Simulator
Hi all,
Can anyone lead me to a component (or fla) that when you rollover a particular area it brings up an "ALT" styled image.
An example can be found at http://www.lsvmultimedia.it
If you rollover the little icons at the top right hand corner you will see what i mean.

Cheers,
suzy

Avatar Simulator
does anybody know any good methods/tutorilas for creating an avatar simulator?

Avatar Simulator
Does anybody know any good reasaurses for creating an avatar simulator?

Windows Simulator
Hey everyone

I have being playing with flash for some while now (bout 3 years). Now I haven't done anything special with it recently and out of boredom or inspiration I came up with an idea.

Why don't I create a Windows PC Simulator. What I mean is an application which runs like a Windows PC. I don't know if I can do this due to legal reasons or if it has been done.

However if none of the two affect this then I shall continue with it. I was also thinking of making it a Public Project so everyone can do their bit for it, if they wanted.

So if you have any comments or wanna help then please post here and I think we could get a good thing going. The purpose I am unsure about but you never know what could turn out. It could become a regular thing with a team building multiple applications for internet usage.

So once again any ideas, comments or wanting to take part, please leave a message.

Thanks
TedTLogan

Creating A Simulator
Hi everyone i Need your expertise to create An animation that resembles this : http://tpe.tournesol.free.fr/menu.swf

For those who do not have any idea what this is or dont understand french, it's pretty simple: the little green circles are sunflower sprites, the request on the top of the first page is the angle in between those two green circles...I do not need the speed or sizes requested on the left of the page I just need to be able to enter an angle...

I beg you For help i really need this animation for a very important project for school . I would be VERY pleased if anyone could help me THX a Bunch!!!

Creating A Simulator
Hi everyone i Need your expertise to create An animation that resembles this : http://tpe.tournesol.free.fr/menu.swf

For those who do not have any idea what this is or dont understand french, it's pretty simple: the little green circles are sunflower sprites, the request on the top of the first page is the angle in between those two green circles...I do not need the speed or sizes requested on the left of the page I just need to be able to enter an angle...

I beg you For help i really need this animation for a very important project for school . I would be VERY pleased if anyone could help me THX a Bunch!!!

Flash Simulator?
just 4 fun & outta curiousity,

is there such thing as a Flash simulator?

say, u r @ work & dont have access 2 Flash,

and u wanna test a code, is there a site u

can go 2 and test ur code? ( like a Flash

environment, but just the AS pannel &

test window ):

!!~~

Gun Shooting Simulator
I am trying to make a simple game (if u can even call it that) where a red dot follows your mouse, and when you left-click (shoot) it puts an image of a bullet hole where you clicked. I can make the red dot follow my mouse but i dont know how to leave graphics when i click. help! lost@thelostcause.net

Driving Simulator
Hi, I was wondering if Flash can respond to a steering wheel and pedals like the ones used for playing. So like with actionscript one can control the speed of a car when a user presses the gas pedal and also how the car moves when the user moves the steering wheel.

Does anyone know if this is possible, and if it is can someone show me where can I look for more info about it?

Thanks.

Buiding An Simulator...
Hi !! I work in a company, and they assigned me a huge task for a flash beginner! I really really need your help ! I have to make a quizz that calculates a value...and displays what was the result! And also send the inputs and the result by e-mail to my boss so he can evaluate the results... How can i do this? Please be very specific in what knowledges must i have and how to apply them!

Please help me...


I thank u all in advance for helping me...

Ultrasock RULES on Flash....

56k Modem Simulator
I really neeed to check some flash I have done on a modem but no one at work has a modem (or access to one)

I know you can simulate any bandwidth when you test the movie but this wont work in my case because the flash is calling a load of ASP pages and also loading all sorts of images/movies dynamically.

I was wondering if anyone has heard of any softwar that can limit the bandwidth when surfing a certain site.

Thanks
-Rob

Hairstyle And Color Simulator
Hi everyone! I'm new here. I really need your help for my thesis. Where can i find editable Hairstyle and Color Simulator? And i hope its for free.. Thank you!

U.S.A.F Rapcon Simulator Project
Hello,

I'm in the Air Force, and a student in Air Traffic Control. I'm working on a "simulator" that simulates air traffic and the controller give headings and altitude changes to the aircraft and what not. This is a free program to other students to help them out with having a visual of the scope instead of practicing on the radar tables here at the squadron with dry erasers, and paper.

This is a bit more advanced than what I know. And I need some great free help. I can not afford to pay anyone.

http://www.zstudiox.com/ARRIVAL.html

That is the ARRIVAL scope. We've been dragging and dropping the aircraft to simulate their flight path, and I was wondering if there would be anyway to be able to program these aircraft so that we can type a heading in for them and they would fly it. That way we can have a more realistic scope, and be able to simulate more aircraft at the same time. Also we'd like to be able to type in their altitude (ALT), and update it in the aircraft data block.

If anyone can help me with this I'd greatly appreciated it!

Thank You,
AMN. Black

Real Time Simulator
I need help in creating a real time simulator (Simulating for outdoor campains)

I work for an outdoor company and we are hoping to create a simulator, where our clients can upload their images onto our website and be able to simulate and view how their campain would look like on a pre designated space of a photo (the photo will have a designated space where the uploaded image from the client will fit in).

Can anyone help?

best regards

ps. please see images attachment.

[need Source] Mac Desktop Simulator
Hey guys and girls

I have to make a flash app that acts more or less like a mac desktop.

I found a mac bottom menu, but i need the whole thing

Do you know any?

Create Keyboard Simulator In Flash
I cant find exactly what I need.

Anybody seen a tutorial for creating a basic keyboard in Flash?

1)Needs text input to var (each time a key is pressed that letter is appended to the value of the var). Var is only max of seven characters.

2) Needs "clear all" button.

3) Needs backspace button.

I think I can handle #1 and #2. #3 is the difficult one for me. I am creating a kiosk simulator for usability testing. That's what the keyboard is for.

Thanks in advance.

[CS3] [AS3]Creating A Gravity Simulator In Flash
I am trying to create a gravity simulator in flash but have encountered a problem...The formula i'm trying to use is obviously:

F = GmM/ r^2
F = Force on the body
G = gravitational constant
m = mass of body 1
M = mass of body 2
r = distance between the two bodies

This is what i have in the coding so far.


Code:
onClipEvent (enterFrame) {

xdist = Math.round(_root.Ball_MC._x-this._x);
ydist = Math.round(_root.Ball_MC._y-this._y);
distancefromthis = Math.round(Math.sqrt((xdist*xdist)+(ydist*ydist)));

var forceplanet = Math.round((gravity*planetmass*sunmass)/(distancefromthis*distancefromthis))
_root.textbox1.force = _root.Planet.forceplanet;

}
Too see if my coding works i'm trying to make the textbox equal the variable forceplanet, but for some reason is blank when i run the test. Any help is appreciated thx!
Attached is the fla.

Here's the fla

Flash Based Exam Simulator
Hi,

We have been doing web application development using java till now. We have a requirement to develop a standalone exam simulator using flash . However the application would do the authentication over the net. We would want an exe to reduce the chances of someone hacking the source code. How should we bundle the questions with the application? We would want to protect the content of the questions so that no one can copy and paste the same

Thanks in Advance,

David

Credit Card Statement Simulator
Hi there everybody

I'm working on a little project where I have to simulate a credit card statement and show how making minimum payments for 6 months doesn't lower your balance very quickly. They can scroll through a bunch of items to pretend 'purchase'. When they're done shopping, the code is supposed to calculate the interest being charged, and the minimum payment due, until the balance is gone or six months have passed... which ever comes first. If they only spent $20.00, they'll pay it off before 6 months is up. If they spend a ton of money, then at the end of 6 months they'll have a statement that has not decreased significantly.

My calculations aren't working. It's boggling my brain. I've been testing it with $100 as the total for all purchases. Rather than a nested function, maybe I should be using a for loop to count through the 6 months.

I've pasted in sample code with a static $100 as the purchases. I'll attach a file too.

Any help would be absolutely fabulous.


Code:
//initial values for variables and symbols.
statementNumber=1;
mindue_rate=0.025;
PRFC=0.049827;

_root.allPurchases=100.00


//initial calculation for first month (because there is no interest on the first month).
month1=_root.allPurchases;
month1_mindue=month1*mindue_rate;

if(month1<10.00){
tipBox2.tipBoxText.text="Your total purchases were $"+_root.allPurchases+". Your balance is less than $10.00. That means you pay the total amount charged to your credit card on this bill. You have no balance to carry forward to month two. If you want to find out how interest can accumulate, do some more shopping and click again to view this statment. To learn more about this statement, roll your mouse over the terms.";
tipBox2.pointerRight._visible=0;
tipBox2.pointerLeft._visible=0;
//statementStatus._visible=100;
//statementStatus.definition_txt.text="Your balance is less than $10.00. That means you pay the total amount charged to your credit card on this bill. You have no balance to carry forward to month two. If you want to find out how interest can accumulate, do some more shopping and click again to view this statment.";
new_balance_total.text=month1
amount=month1;
}else if((month1>9.99)&&(month1_mindue<10.00)){
//statementStatus._visible=100;
//statementStatus.definition_txt.text="You pay 10.00 bucks";
month1_mindue=10.00;
PRFC_calc=(month1-month1_mindue)*PRFC;
month1_carryForward=(month1-month1_mindue)+PRFC_calc;
amount=int(month1_carryForward*100)/100;
calcAmounts();
}else {
month1_mindue_round=int(month1_mindue*100)/100;
trace("You pay the mindue "+month1_mindue_round);
PRFC_calc=(month1-month1_mindue)*PRFC;
month1_carryForward=(month1-month1_mindue)+PRFC_calc;
amount=int(month1_carryForward*100)/100;
calcAmounts()
}


function calcAmounts(){
statementNumber+=1;
if (amount<10.00){
//they can't carry a balance for 6 months (and pay only the min due) because they didn't purchase enough items. statementSaus informs them of this and what month they carried a balance to(from 2-6)
//statementStatus._visible=100;
//statementStatus.definition_txt.text="Your balance is less than $10.00. That means you pay the total amount charged to your credit card on this bill. You have no balance to carry forward to month two. If you want to find out how interest can accumulate, do some more shopping and click again to view this statment.";
tipBox2.tipBoxText.text="Your total purchases were $"+_root.allPurchases+". Your current balance is less than $10.00. That means you pay the total amount charged to your credit card on this bill. You have no balance to carry forward to month 2. If you want to find out how interest can accumulate, do some more shopping and click again to view this statment. To learn more about this statment, roll your mouse over the terms.";
tipBox2.pointerRight._visible=0;
tipBox2.pointerLeft._visible=0;
}
else if((amount>10.00)&&(mindue<10.00)){
amountMindue=10.00;
trace("You pay 10.00 bucks for statment number "+statementNumber);
PRFC_calc=(amount-amountMindue)*PRFC;
amount_carryForward=(amount-amountMindue)+PRFC_calc;
amount=int(amount_carryForward*100)/100
calcAmounts();
}
else {
amountMindue=amount*0.025;
trace("this is the calculation for month"+statementNumber+" and the decreasing minimum due is "+amountMindue);
PRFC_calc=(amount-amountMindue)*PRFC;
amount_carryForward=(amount-amountMindue)+PRFC_calc;
amount=int(amount_carryForward*100)/100;

if(statementNumber<7){
calcAmounts();
}else {
new_balance_total.text=amount;
//statementStatus._visible=100;
//statementStatus.definition_txt.text="This is what your statment looks like after paying only the minimum balance for 6 months. The periodic interest rate (4.9287%) is twice that of your minimum payment due (2.5% of your balance), makes it difficult to reduce your balance. "+ month1;
tipBox2.tipBoxText.text="Your total purchases were $"+_root.allPurchases+". This is what your statment looks like after paying only the minimum balance for 6 months. The periodic interest rate (4.9287%) is twice that of your minimum payment due (2.5% of your balance), makes it difficult to reduce your balance. To learn more about this statement, roll your mouse over the terms.";

}
}
}

AS Colour Picker / Eye Dropper Simulator?
Hey

has anyone ever seen / coded a component that simulates how the eye dropper tool works in flash?

ie drag over something (esp images), click and get the hex value / rgb? Thanx

Nick Fracture

Simulator With Slider Bar And Input Text Field
Hey... I'm creating one financial simulator with one slider bar and one input text field for each "field" of this simulator, but I have one doubt, I'm not getting to "attach" the value input in text field with the value input by slider bar.

Does anyone know how to do?

Tks

Digão

Preloader Previews Ok In Simulator But Does Not Work When Uploaded
Have a slight problem with the preloader in my movie.

The percentage text and data size text updates ok but the progress bar doesnt appear.

It works ok when i preview/simulate it but not when I upload it to site

Trying To Develop Robotic Manipulator Simulator In Flash....pls Help
Hi friends,

I am a robotics programmer and am trying to develop a simulator for one of my research work. I have created a C code which will give me joint angles for the 6 joints of an industrial robot. Between every 2 joints is 1 link. Now i am trying to create an application where when i feed those 6 joint angles, the 6 joints should rotate by that specific amount (whihc hsould not be very difficult to achieve). However if joint 1 rotates by 45 degrees, all the links and joints after it should get displaced by 45 degrees. Further each joint would displace the links and joints after it similarly. In this way i would be able to get the robot to move to a desired point and check if my calculations are right. I am wondering how to do this. Any comments would be really appreciated. If someone can prepare a small prototype for 2 joints and 1 link then i can replicate the same for all the other joints.

Please help me out on this one guys.

Float Simulator... Help With Mouse Control Of Movie Clip
Can someone help with my movie?? I am trying to have the mouse control the movement of a movie clip. Is there a way to limit the amount the mouse can move the clip to prevent it from being pulled off the screen. I want all of the edges of the clip to be the limits that the movie can be moved. Kind of a float simulator.. check out what I mean here:



http://www.folkphotography.com/index...h/rainier.html


Here is the script I used:


onClipEvent (enterFrame) {
//x movement
mx=_root._xmouse;
if (mx<_x) {
dx=_x-mx;
}
else {
dx=mx-_x;
}
moveSpeedx=dx/10;
if (mx<_x) {
_x=_x-moveSpeedx;
}
else {
_x=_x+moveSpeedx;
}
//y movement
my=_root._ymouse;
if (my<_y) {
dy=_y-my;
}
else {
dy=my-_y;
}
moveSpeedy=dy/10;
if (my<_y) {
_y=_y-moveSpeedy;
}
else {
_y=_y+moveSpeedy;
}
}


Any suggestions??

Thanks!

Email Form Need To Add Telephone # To Email
Hi,

I am using this email form and it works just fine, but I am trying to figure out how to add additional input feilds that show up in the email body. For example, when you receive the email the body of the email would look like this:
Name:
E-mail:
Telephone:

Feedback:

Below is the AS and the PHP code. Attached is the FLA. Any help would be appreciated

Code:
/*
AUTHOR : Z Syed
CREATING FEEDBACK FORM IN FLASH USING PHP
*/

/*
create the LoadVars objects. One for sending information to the php file and one for recieving information.
Although this can be done with one loadvars object, it makes for cleaner code to use two
*/

var sendData_lv:LoadVars = new LoadVars();
var receiveData_lv:LoadVars = new LoadVars();
var formValidated:Boolean;
var errorMessages:Array = new Array();

receiveData_lv.onLoad = function():Void{
trace(this.sent);
if(this.sent == "OK"){
message0_txt.text = "Thank you for your feedback";
}else{
message0_txt.text = this.sent;
}
}


submit_btn.onRelease = function() {
//this clears the error text field if they have been populate previously
clearTextFields();
errorMessages.length = 0; //empty the array so next time the submit button is clicked the array is not already populated
formValidated = checkForm();
if (formValidated) {
//the form is valid and so now we can send details to our PHP file
//populate LoadVars object with the field values
sendData_lv.name = name_txt.text;
sendData_lv.email = email_txt.text;
sendData_lv.feedback = feedback_txt.text;
//trace(sendData_lv.email);
//trace("valid");
sendData_lv.sendAndLoad("email.php?ck="+new Date().getTime(), receiveData_lv);
} else {
//populate textfields with the error messages
for (var i = 0; i<errorMessages.length; i++) {
_root["message"+i+"_txt"].text = errorMessages[i];
trace(errorMessages[i]);
}
}
};


function checkForm():Boolean {
//check whether the name field is empty
if (name_txt.text == "") {
errorMessages.push("Please enter your name.");
}
if (email_txt.text == "") {
errorMessages.push("Please enter your email address.");
} else if (email_txt.text.indexOf("@") == -1 || email_txt.text.indexOf(".") == -1) {
errorMessages.push("Please enter a valid email address.");
}
if (feedback_txt.text == "") {
errorMessages.push("Please enter some feedback");
}
//if at this point the array is empty i.e has length 0, then this in effect means the form has passed all checks
if (errorMessages.length == 0) {
return true;
} else {
return false;
}
}


function clearTextFields():Void {
for (var i = 0; i<errorMessages.length; i++) {
_root["message"+i+"_txt"].text = "";
;
}
}

}

PHP Code:



<?php$name = $_POST['name'];$email = $_POST['email'];$feedback = $_POST['feedback'];$subject = 'feedback from your website';$headers = "From: $name <$email>
";$headers .= "Reply-To: $name <$email>
";//ENTER YOUR EMAIL ADDRESS HERE$to = 'email@emailaddress.com';//---------------------------$success = mail($to, $subject, $feedback, $headers);if($success){echo '&sent=OK';}else{echo '&sent=Error';}?>

Copyright © 2005-08 www.BigResource.com, All rights reserved