As 2 to as 3
hello,,I have a trouble,, I want to make an interactive media simulation,,in as 2 I can, but to change the script in as 3 I don't know,,could you help me please to change this script into as3
Frame 1
var x0:Number;
var v0:Number;
var a:Number;
var t: Number;
var s:Number;
var t_travel:Number;
var t_base:Number;
function inisialitation(){
car._x = 0;
x0=car._x;
s=0;
v0=0;
vt=v0;
a=0;
t=0;
t_travel=0;
delta=0.1;
inisialitation();
stop();
Frame 2
if(t<=t_travel){
car._x = x0+v0*t+(1/2)*a*t*t;
vt=v0+a*t;
s= car._x-x0;
}else{
s= v0*t_travel+(1/2)*a*t_travel*t_travel;
vt = v0+a*t_travel;
stop();
Frame 3
t=t+delta;
gotoAndPlay(2);
thanks for your attention
thank u sir,,this is the picture of my simulatation,,if we input number in (v0),(a) and (t), and then press the play button,,automatically the value of ( x ) will appear and the car will move to right. on the above is the action script in AS 2,,can u change into AS 3 sir ??
Similar Messages
Maybe you are looking for
-
I had/have avg toubble and now firefox will not start. I uploaded a new version but made no difference. If I click on it the time symbol comes up for a few seconds and than nothing. When I restart the computer though a small window comes up alerting
-
How to display multple line text in a single cell in ALV?
Hi all, I have 'Material Detailed Description' field in my ALV report, and it's taken from a multiple line text table. Is there any way so I can get this whole text to fit in a single ALV cell (not in single, but multiple line, as in original text da
-
We have an Identity picker control in User form in FIM which needs to be displayed dynamically based on the role. <my:Control my:Name="Control1" my:TypeName="UocListView" my:ExpandArea="true" my:Caption="Groups" my:RightsLevel="{Binding Source=rights
-
3D Funktion PSD CS5 ist we :(
Hallo, ich bin ganz neu hier im Forum, hatte bis jetzt noch nie das Problem dass ich im Internet nicht gefunden habe was ich suche. Ich finde meine 3D Funktion nicht mehr und ich bin mir ziemlich sicher das diese mal da war, kann mir bitte jemand hel
-
my iphone is stuck on silents, the side switch flicks but nothing happens PLEASE HELP!