Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
random()

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash
View previous topic :: View next topic  
Author Message
angeleyes



Joined: 10 Nov 2005
Posts: 13

PostPosted: 15.11.2005 14:01    Post subject: random() Add user to your forum ignore list Reply with quote

kako napisati AS da jedan glavni swf random ucitava ostale swf-ove.
hvala
Back to top
View user's profile Send private message
astolitu



Joined: 26 Jun 2004
Posts: 547
Location: Zagreb

PostPosted: 15.11.2005 15:02    Post subject: Add user to your forum ignore list Reply with quote

napravi prazni MC i nazovi ga "kontejner", u layeru povise upisi ovo u AS:

choice = Math.round(Math.random()*5);
switch (choice) {
case 0 :
kontejner.loadMovie("image0.swf");
break;
case 1 :
kontejner.loadMovie("image1.swf");
break;
case 2 :
kontejner.loadMovie("image2.swf");
break;
case 3 :
kontejner.loadMovie("image3.swf");
break;
case 4 :
kontejner.loadMovie("image4.swf");
break;
case 5 :
kontejner.loadMovie("image5.swf");
break;
}



to bi trebalo bit to
Very Happy

a moze i jednostavnije

kontejner.loadMovie("image"+Math.round(Math.random()*5)+".swf");

Very Happy

_________________
http://www.markobjedov.com/
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group