Skip to main content

PDF TEST

How to create PLAY & PAUSE(STOP) buttons in Macromedia Flash 8...

POST - 2


How to create PLAY & PAUSE(STOP) buttons in Macromedia Flash 8


Step-1

Open Macromedia Flash 8 and create New Flash Document.



Step-2

Draw an Oval by clicking Oval in tools section.



Step-3

Now in Layer-1 right click on Frame No. 60 and select Insert Keyframe.



Step-4

Select(with selection tool in tools section) and drag Oval(Object) to your last position.(Where you want to end motion effect)



Step-5

Now right click on Frame No. 30 and select Create Motion Tween.



Step-6

Now add new layer(By right clicking on existing layer and choosing Insert Layer) and draw two buttons using rectangle tool in tools section.(Make sure to make both these buttons of different colours. You can select colour before drawing from tools section)




Step-7

Now right click on button and select Convert to symbol...Give proper name to button and make sure to select Type as Button.(Do this for both buttons. Names must be different)




Step-8(Optional)

You can add text on your buttons from tools section...



Step-9

Now select each button one by one the by using Selection Tool in tools section,(Simply click on button after choosing selection tool and it will be selected), then in the Action Tab(Available in black line downwards the working area) add following code button wise (After selecting button using selection tool)

For Play Button:

on (release) {

play();

}


For Stop Button:

on (release) {

stop();

}



Step-10(Optional)

You can check if there is any error in the code by clicking on Check Syntax icon(✔) in action menu...If it dosen't show any error, your code is perfect! Otherwise check the code...



Step-11

Now press CTRL+Enter and Test.


Your buttons should be working fine!

--->

Comments

Popular posts from this blog

Write a CPP program to swap two integer numbers with the use of reference variable...

 POST -  All the code given below is compiled using turbo CPP and working totally fine but if you are using any new IDE there might be some difference in code... #include<iostream.h> #include<conio.h> void swap (int &x , int &y) {      int temp;     temp=x;     x=y;     y=temp; } main() {      int a, b;      clrscr();      cout<<"Enter The Value Of A : ";      cin>>a;      cout<<"Enter The Value Of B : ";      cin>>b;      swap(a,b);      cout<<"After Swapping..."<<endl;      cout<<"A= "<<a<<endl;      cout<<"B= "<<b<<endl;      getch();      return(0); }  OUTPUT: