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
Actionscript problem

 
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
booka



Joined: 06 Oct 2005
Posts: 325
Location: Zagreb

PostPosted: 03.10.2006 18:54    Post subject: Actionscript problem Add user to your forum ignore list Reply with quote

Jel mi može tko objasnit kako da napravim da mi se prebaci na neki frame glavne scene kada neki simbol završi sa animacijom? Znači imam jedan simbol i ja hoću kad završi animacija tog simbola da mi ode na drugi frame u glavnoj sceni. Jel me razumijete?
Unaprijed hvala!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
ska



Joined: 08 Oct 2003
Posts: 402

PostPosted: 03.10.2006 19:01    Post subject: Add user to your forum ignore list Reply with quote

tellTarget(" target ") {
statement(s);
}
umjesto target napišeš koji nivo ili koji MC želiš kontrolirati...
umjesto statement(s) daš mu naredbu gotoAndStop( frame taj i taj )...

_________________
ska
Back to top
View user's profile Send private message
booka



Joined: 06 Oct 2005
Posts: 325
Location: Zagreb

PostPosted: 03.10.2006 19:12    Post subject: Add user to your forum ignore list Reply with quote

Opet problem Crying or Very sad

Movie clip mi se zove zid i stavim mu u zadnji frame ovo:

tellTarget ("zid") {
gotoAndPlay("Scene 1", 2);
}

Odem u preview

Target not found: Target="zid" Base="_level0.instance1"

Kaj sam krivo napravio?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
blackduke
mi3.crew


Joined: 08 Sep 2003
Posts: 2681
Location: Zagreb

PostPosted: 03.10.2006 19:12    Post subject: Add user to your forum ignore list Reply with quote

_root.play();
ili
_root.gotoAndPlay(2);
ili
_root.gotoAndStop(2);

ako je jedan nivo mozes koristiti i parent.
znaci
_parent.gotoAndPlay(2);

root te vraca u najgornji nivo, a parent u jedan nivo gore.
teoretski, mozes koristit i
_parent._parent._parent.play() i slicne stvari.

nadam se da si skuzio
Back to top
View user's profile Send private message Visit poster's website Twitter profile
blackduke
mi3.crew


Joined: 08 Sep 2003
Posts: 2681
Location: Zagreb

PostPosted: 03.10.2006 19:13    Post subject: Add user to your forum ignore list Reply with quote

ime nije isto kao instance name, nemoj to zamijeniti....
Back to top
View user's profile Send private message Visit poster's website Twitter profile
booka



Joined: 06 Oct 2005
Posts: 325
Location: Zagreb

PostPosted: 03.10.2006 19:13    Post subject: Add user to your forum ignore list Reply with quote

Radi mi ovo od blackdukea _parent.gotoAndPlay(2);
Hvala ska i blackduke.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
booka



Joined: 06 Oct 2005
Posts: 325
Location: Zagreb

PostPosted: 03.10.2006 19:15    Post subject: Add user to your forum ignore list Reply with quote

Neznam ti ja ništa od action scripta pa jel mi možeš objasnit šta je instance name?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
blackduke
mi3.crew


Joined: 08 Sep 2003
Posts: 2681
Location: Zagreb

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

uglavnom. u flash helpu ima to super objasnjeno.
slijedece dvije stvari rade ISTO.

Code:
on(release) {
tellTarget("_parent.ball") {
gotoAndPlay(2);
}
}


Code:
on(release) {
_parent.ball.gotoAndPlay(2);
}




instance name je zapravo ime svakog movie clipa i buttona, kada zelis neku naredbu izvrsiti, moras reci tko je izvrsava, tipa
zid.stop() onda movie clip mora imati instance name zid
dodjeljuje se na dnu u propertiesima, pise ti ispod movieclipa 'instance name' i imas inptu oplje.



ovdje je instance name introduction_btn
Back to top
View user's profile Send private message Visit poster's website Twitter profile
booka



Joined: 06 Oct 2005
Posts: 325
Location: Zagreb

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

E puno hvala, već sam se prije mučio s time sad napokon znam. Very Happy
Back to top
View user's profile Send private message Send e-mail 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