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
Flash - Kontrola animacije

 
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
raytech



Joined: 17 Mar 2004
Posts: 396
Location: Zagreb

PostPosted: 11.06.2004 23:17    Post subject: Flash - Kontrola animacije Add user to your forum ignore list Reply with quote

Glupo pitanje znam ali....:

Imam glavnu animaciju na kojoj želm da kad mi u frame 2 kad odvrti podanimaciju prijeđe na frame 3 i odvrti podanimaciju sa frame 3 m, i to bez da moram klikat.

HITNO
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 11.06.2004 23:41    Post subject: Re: Flash - Kontrola animacije Add user to your forum ignore list Reply with quote

raytech wrote:
Glupo pitanje znam ali....:

Imam glavnu animaciju na kojoj želm da kad mi u frame 2 kad odvrti podanimaciju prijeđe na frame 3 i odvrti podanimaciju sa frame 3 m, i to bez da moram klikat.

HITNO


u frame 2 glavne animacije stavis:

Code:
stop();


u zadnji frame podanimacije stavis:

Code:
_parent.gotoAndPlay(3);


i u frame 3 glavne animacije stavis:

Code:
stop();
Back to top
View user's profile Send private message MSN Messenger
raytech



Joined: 17 Mar 2004
Posts: 396
Location: Zagreb

PostPosted: 11.06.2004 23:44    Post subject: La la Add user to your forum ignore list Reply with quote

tenk ju
Back to top
View user's profile Send private message Send e-mail MSN Messenger
raytech



Joined: 17 Mar 2004
Posts: 396
Location: Zagreb

PostPosted: 12.06.2004 01:27    Post subject: E sad još jedno Pitanje Add user to your forum ignore list Reply with quote

Sad imam neke mjehuriće koji idu prema gore. Htio bih code koji će reć tim mjehuričima da se randomly pojavljuju po porstoru, a mogli bi mjenjat size. Mislim svaki put kad se počnu vrtit ispočetka da se pojave someware else

JOŠ UVJEK HITNO
Back to top
View user's profile Send private message Send e-mail MSN Messenger
g-style



Joined: 08 Oct 2003
Posts: 89
Location: bG

PostPosted: 12.06.2004 02:46    Post subject: Add user to your forum ignore list Reply with quote

http://www.flashkit.com/movies/Animations/Other/Bubbles-DaZ-5230/index.php
ili mozda neshto ovako:
http://www.flashkit.com/movies/Effects/Eye_Candy/Bubbles-John_Pos-3275/index.php
Back to top
View user's profile Send private message Send e-mail Visit poster's website
raytech



Joined: 17 Mar 2004
Posts: 396
Location: Zagreb

PostPosted: 12.06.2004 08:46    Post subject: La la Add user to your forum ignore list Reply with quote

Ja bih rade, napravio sam.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 12.06.2004 16:47    Post subject: Re: La la Add user to your forum ignore list Reply with quote

recimo da nazoves mjehurice M1, M2, M3, itd... ne znam koliko ih imas.. mozes ih i dinamicki stvarati ako hoces, ali recimo da ih imas 5...


napravis funkciju koja ce ih pomicati prema gore.. nesto ovako...

Code:
function AjmoGore()
{
for(i=1; i<6; i++)
{
_root["M"+i]._y-=3; //pomice sve MCove za 3 prema gore..
if(_root["M"+i]._y<-50)
{
_root["M"+i]._y=400+200*Math.rand(); //ako MCevi odu gore gdje se vise ne vide funkcija ih vrati dolje, tj. postavi ih negdje izmedju 400 i 600 (y)
_root["M"+i]._x=550*Math.rand(); //postavlja ih u random poziciju po X osi..
}
}
updateAfterEvent();
}


sad bi trebalo tu funkciju pokrenuti.. to napravis ovako:

Code:
NESTO = setInterval(AjmoGore,20) //svakih 20ms ce se pozvati ta funkcija.. mozes promijeniti broj ako ti ne odgovara brzina...


ako ju hoces zaustaviti stavis:

Code:
clearInterval(NESTO)



sve sam ovo pisao napamet pa nisam siguran da radi.. provjeri..
Back to top
View user's profile Send private message MSN Messenger
raytech



Joined: 17 Mar 2004
Posts: 396
Location: Zagreb

PostPosted: 12.06.2004 18:26    Post subject: Bla bla. Add user to your forum ignore list Reply with quote

A ja non stop kontam kak, treba funkciju povezati na first frame podfilma. Interval mi nikad nebi pao napamet.

& Tenk ju 2




A što ako ja imam film koji ima svoj mition guide!!!! Već sam napravio taj film s mjehurićima ručno, pa bi samo htio svaki put kad završi pokrene slićnu funkciju koja će mjenjati samo _x property jer je pomak po y već napravljen.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 12.06.2004 19:31    Post subject: Re: Bla bla. Add user to your forum ignore list Reply with quote

function Xpozicija()
{
_root["M"+i]._x=550*Math.rand();
}
Back to top
View user's profile Send private message MSN Messenger
pay1per



Joined: 18 Mar 2004
Posts: 28

PostPosted: 12.06.2004 21:19    Post subject: Add user to your forum ignore list Reply with quote

platy dobro si naučio flash......

svaka čast........
Back to top
View user's profile Send private message MSN Messenger
raytech



Joined: 17 Mar 2004
Posts: 396
Location: Zagreb

PostPosted: 12.06.2004 22:30    Post subject: La LA Add user to your forum ignore list Reply with quote

Thenk ju.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
raytech



Joined: 17 Mar 2004
Posts: 396
Location: Zagreb

PostPosted: 13.06.2004 09:54    Post subject: Re: La la Add user to your forum ignore list Reply with quote

Quote:
Code:
NESTO = setInterval(AjmoGore,20) //svakih 20ms ce se pozvati ta funkcija.. mozes promijeniti broj ako ti ne odgovara brzina...



Što je nešto
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 14.06.2004 00:04    Post subject: Re: La la Add user to your forum ignore list Reply with quote

raytech wrote:
Quote:
Code:
NESTO = setInterval(AjmoGore,20) //svakih 20ms ce se pozvati ta funkcija.. mozes promijeniti broj ako ti ne odgovara brzina...



Što je nešto



varijabla koja ti sluzi da zaustavis pozivanje funkcije tj. da mozes stavit clearInterval(NESTO) .. inace mozes ti stavit samo setInterval(..), ali ga onda neces moci zaustaviti...
Back to top
View user's profile Send private message MSN Messenger
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