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
currentframe + 5 pomoć

 
Post new topic   Reply to topic    mi3dot.org Forum Index -> Flash
View previous topic :: View next topic  
Author Message
kleo



Joined: 27 Nov 2006
Posts: 70
Location: Koprivnica

PostPosted: 19.02.2013 21:56    Post subject: currentframe + 5 pomoć Add user to your forum ignore list Reply with quote

Ovak imam improviziranu kockicu koja odabire broj nasumično i onda se neki mc mora pomaknuti za x frameova...problem je u ovome:

Code:
_root.nekimc.gotoAndPlay(_root.nekimc._currentframe+5)


Ako se nalazi na npr frameu 2 on preskoči na frame 7, ali ja hoću da se vidi animacija 2,3,4,5,6,7 (od 2 do 7) framea ako ste shvatili kaj sam htjela reći Smile

Evo primjer
https://skydrive.live.com/?cid=19B7AC90D0C36D80&id=19B7AC90D0C36D80%21105

_________________
Carpe diem!
Kad ti filozof odgovori na pitanje, više ni sam neznaš što si pitao
Back to top
View user's profile Send private message
untitled



Joined: 09 Oct 2006
Posts: 6
Location: Zagreb

PostPosted: 20.02.2013 13:56    Post subject: Add user to your forum ignore list Reply with quote

Probaj sa

Code:
for (i = 5; i >= 0; i--) {
    _root.nekimc.gotoAndPlay(_root.nekimc._currentframe + 1)
}
Back to top
View user's profile Send private message
kleo



Joined: 27 Nov 2006
Posts: 70
Location: Koprivnica

PostPosted: 20.02.2013 17:56    Post subject: Add user to your forum ignore list Reply with quote

događa se isto Sad

_________________
Carpe diem!
Kad ti filozof odgovori na pitanje, više ni sam neznaš što si pitao
Back to top
View user's profile Send private message
untitled



Joined: 09 Oct 2006
Posts: 6
Location: Zagreb

PostPosted: 20.02.2013 20:57    Post subject: Add user to your forum ignore list Reply with quote

stupid me! petlja se odvrti tako brzo da se ne stignu vidjeti pojedini koraci Embarassed

Code:
var counter = 5;
var a = setInterval( animateKvadrat, 1000 );

function animateKvadrat() {
    _root.nekimc.gotoAndPlay( _root.nekimc._currentframe + 1 )
    if( counter == 0 ) { clearInterval( a ) }
    counter--;
}
Back to top
View user's profile Send private message
kleo



Joined: 27 Nov 2006
Posts: 70
Location: Koprivnica

PostPosted: 21.02.2013 09:38    Post subject: Add user to your forum ignore list Reply with quote

radi savršeno....sad mogu slagati igrice klincima
hvala hvala hvala Smile

_________________
Carpe diem!
Kad ti filozof odgovori na pitanje, više ni sam neznaš što si pitao
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    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