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
AS Rollover Animation Pitanje

 
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
HaxxoR



Joined: 07 Jun 2006
Posts: 2

PostPosted: 07.06.2006 15:13    Post subject: AS Rollover Animation Pitanje Add user to your forum ignore list Reply with quote

Dosta sam iskusan u Photoshopu i web dizajnu i napravio sam puno layouta. Iskreno, Photoshop mi je sada i nedovoljno da napravim atraktivan sajt. Stoga, okrenuo sam se malo više Flashu prvenstveno zbog animiranih Buttona. Pa bih vas htio pitati:

Kako napraviti button koji kada pređeš mišem preko njega (rollover), on pokrene neku animaciju? Ako ima neki način izrada animacije te samo dodavanje ActionScripta - to bi mi puno pomoglo. Pošto se nikad nisam susreo sa AS-om prije nego u Help meniju flasha, probao sam nešto i sam. Dodao sam instance name animaciji "an" i dodao ovaj kod:

an.onRollOver = gotoAndPlay(5);

(5) se odnosi na frame koji želim da mi pust kada pređem mišem preko njega. Može netko pomoći tko se kuži? Bio bih jako zahvalan. Arrow
Back to top
View user's profile Send private message
astolitu



Joined: 26 Jun 2004
Posts: 547
Location: Zagreb

PostPosted: 07.06.2006 17:36    Post subject: Add user to your forum ignore list Reply with quote

an.onRollOver = function(){
gotoAndPlay(5);
}

_________________
http://www.markobjedov.com/
Back to top
View user's profile Send private message Visit poster's website Twitter profile
HaxxoR



Joined: 07 Jun 2006
Posts: 2

PostPosted: 07.06.2006 18:11    Post subject: Add user to your forum ignore list Reply with quote

Hvala na odgovoru, samo još jedno pitanje u vezi toga:

Jeli se to odnosi na movie clip timeline ili root timeline?
Back to top
View user's profile Send private message
luksy



Joined: 28 Oct 2003
Posts: 440
Location: zaprešić, croatia/brežice, ljubljana, slovenia

PostPosted: 08.06.2006 22:45    Post subject: Add user to your forum ignore list Reply with quote

To bi te sad odvelo na peti frame roota. Ako želiš da te odvede na 5 frame movie clipa dodaš an.gotoAndPlay(5);.
Back to top
View user's profile Send private message Visit poster's website
nomes



Joined: 07 May 2006
Posts: 292
Location: Zagreb

PostPosted: 09.06.2006 11:36    Post subject: Animacija Add user to your forum ignore list Reply with quote

Bolje bi ti bilo da na buttonu na stanju rollover pretvoris u movie clip i onda pravis animaciju unutra rollover stanja. Bar ja tako radim

_________________
Last fm
Back to top
View user's profile Send private message
luksy



Joined: 28 Oct 2003
Posts: 440
Location: zaprešić, croatia/brežice, ljubljana, slovenia

PostPosted: 09.06.2006 14:13    Post subject: Add user to your forum ignore list Reply with quote

Da, ali tako nemožeš radit fancy animacije koje bi išle i unazad kad makneš miš.

Najbolje je da napraviš jedan movieclip, unutra slobodno napraviš animaciju i na njega staviš:

Code:
onClipEvent(enterFrame) {
   if(this.hitTest(_root._xmouse, _root._ymouse)) {
      nextFrame();
   } else {
      prevFrame();
   }
}


I onda staviš funkciju na frame kako je rekao astolitu.
Back to top
View user's profile Send private message Visit poster's website
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