How to make sawiro for your game(akshonScript Tutorial)
Moderators: Moderators, Junior Moderators
Forum rules
This General Forum is for general discussions from daily chitchat to more serious discussions among Somalinet Forums members. Please do not use it as your Personal Message center (PM). If you want to contact a particular person or a group of people, please use the PM feature. If you want to contact the moderators, pls PM them. If you insist leaving a public message for the mods or other members, it will be deleted.
This General Forum is for general discussions from daily chitchat to more serious discussions among Somalinet Forums members. Please do not use it as your Personal Message center (PM). If you want to contact a particular person or a group of people, please use the PM feature. If you want to contact the moderators, pls PM them. If you insist leaving a public message for the mods or other members, it will be deleted.
- afisoone
- SomaliNet Super
- Posts: 5509
- Joined: Wed Jul 22, 2009 9:46 pm
- Location: We all want to become president even though Amisom controls Mogadishu
How to make sawiro for your game(akshonScript Tutorial)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.Timer;
import flash.utils.getDefinitionByName;
public class Sawiro extends MovieClip {
var sawirCusub:Timer;
var sawirada:Array= new Array();
const orod:Number = 5.0;
public function Sawiro(){
sawirKale();
addEventListener(Event.ENTER_FRAME, dhaqaajiSawirka);
}
public function sawirKale(){
sawirCusub=new Timer(1000 + Math.random() * 1000, 1);
sawirCusub.addEventListener(TimerEvent.TIMER_COMPLETE, suubiSawirCusub);
sawirCusub.start();
}
public function suubiSawirCusub(suubi:Event){
var sawiradii:Array= ["Banooni", "Banooni1","Banooni2","Banooni3","Banooni4","Banooni5"];
var j:int=Math.floor(Math.random() * sawiradii.length);
var classCusub:Class=getDefinitionByName(sawiradii[j]) as Class;
var suubiSawirCusub:MovieClip= new classCusub();
suubiSawirCusub.y = Math.random() * 10;
addChild(suubiSawirCusub);
sawirada.push(suubiSawirCusub);
sawirKale();
}
public function dhaqaajiSawirka(dhaqaaji:Event) {
for(var i:int=sawirada.length -1; i>=0; i--){
sawirada.x +=orod;
if(sawirada.x>535){
removeChild(sawirada)
sawirada.splice(i,1);
}
}
}
}
}
-
- SomaliNet Super
- Posts: 30687
- Joined: Tue Sep 01, 2009 10:32 am
- Location: Darul Kufr
- Contact:
Re: How to make sawiro for your game(akshonScript Tutorial)
AFISOONE i want to make my own website forum can you teach me adeer
- afisoone
- SomaliNet Super
- Posts: 5509
- Joined: Wed Jul 22, 2009 9:46 pm
- Location: We all want to become president even though Amisom controls Mogadishu
Re: How to make sawiro for your game(akshonScript Tutorial)
Forums sida somalinet aa.... camalaa?... Walaahi anigaa isku dayay dhowr jeer... They forumyadaan free ah ee lagu xiro websiteyada hadii aadan controling waxaa arkee maalinta sex posting everywhere.. wuu ku ceebeenayaa forumyada... I don't recomend forumyada...
-
- Similar Topics
- Replies
- Views
- Last post
-
- 0 Replies
- 469 Views
-
Last post by afisoone
-
- 31 Replies
- 2497 Views
-
Last post by Firefly
-
- 7 Replies
- 918 Views
-
Last post by FBISOMALIA
-
- 1 Replies
- 2320 Views
-
Last post by afisoone
-
- 35 Replies
- 2837 Views
-
Last post by Niya
-
- 31 Replies
- 3297 Views
-
Last post by military-mind
-
- 6 Replies
- 1527 Views
-
Last post by military-mind
-
- 1 Replies
- 1225 Views
-
Last post by afisoone
-
- 0 Replies
- 818 Views
-
Last post by afisoone
-
- 0 Replies
- 702 Views
-
Last post by afisoone