How to Controlling Movie Clip by Buttons

Make a box, the select it and press F8 make it a button and press ok.. Give it a instance name “mc”. Create a button and name instance as “btn_right”. Press on the first frame in the timeline and press F9. In the Action panel copy the following code. btn_right.addEventListener(MouseEvent.CLICK, move_right); function move_right (e:Event){ mc.x … More How to Controlling Movie Clip by Buttons

Rate this:

Controlling Movie Clip by Buttons AS3

  Make a box, the select it and press F8 make it a button and press ok.. Give it a instance name “mc”.   Create a button and name instance as “btn_right”. Press on the first frame in the timeline and press F9. In the Action panel copy the following code.   btn_right.addEventListener(MouseEvent.CLICK, move_right);   … More Controlling Movie Clip by Buttons AS3

Rate this:

Action to Object in Array AS3 – Tutorial

    make a movie clip,  drag it from libray. We need at least 4  copies of same movie clip.Now rename each as mc_0, mc_1,mc_2, mc_3. in action script panel past this code. var mc:Array=new Array (mc_0, mc_1,mc_2, mc_3); trace (mc.length); ========================================== //Output 4 ========================================== Now how we have 4 movie clips , how are … More Action to Object in Array AS3 – Tutorial

Rate this:

Array in AS3 (Basic)

array is like a file or like a book in which we can store information about names or numbers. var numbers:Array=new Array (1,2,3,4,5,6,7,8,9,0); var god_names:Array=new Array (krishna, shiva, buddha, christ); var countries:Array=new Array (india, nepal, china, thailand); trace (numbers); trace (god_names); trace (countries); Output// 1,2,3,4,5,6,7,8,9,0. krishna, shiva, buddha, christ. india, nepal, china, thailand. ============================================= trace … More Array in AS3 (Basic)

Rate this: