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 actionscript parsing 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
budha



Joined: 02 Mar 2004
Posts: 1377
Location: Osijek

PostPosted: 17.11.2004 21:45    Post subject: flash actionscript parsing problem Add user to your forum ignore list Reply with quote

pokusavam ja nest u actionscriptu kemijat, al sad sam zapeo, pa ako ima koja dobra dusa da mi pomogne Embarassed

trebam 10 puta duplicirati objekt, i svaki put s razlicitim koordinatama. koordinate ucitavam bez problema, duplikacija radi, ali sam zapeo kod definicije koordinata novog objekta.
znam da mi ne valjaju zadnja dva reda, i sad mi nije jasno sto treba ici umjesto "buton"+'i' u ta zadnja 2 reda Confused

Code:
for(i=0;i<=10;i++){
   //ovdi je ucitavanje coord_x
   //a ovdi coord_y
   
   buton.duplicateMovieClip("buton"+'i', 'i');
   "buton"+'i'._x = coord_x;
   "buton"+'i'._y = coord_y;   
   }


edit: na celu mi pise FLASH NEWBIE, tak da vas molim da mi to objasnite jednostavnim jezikom Wink

_________________
I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me.
Back to top
View user's profile Send private message Visit poster's website
kelso



Joined: 19 Jul 2004
Posts: 507
Location: Zagreb -> Zapruđe

PostPosted: 17.11.2004 22:50    Post subject: Add user to your forum ignore list Reply with quote

hmmm,kad smo već kod ovakvih stvari,šta tu ne ide button? ja sam isto flash newbie Shocked
il je to dio di ti sam stavljaš imena,onda sam ja ispo glup Mad

_________________
Don't drop it!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
budha



Joined: 02 Mar 2004
Posts: 1377
Location: Osijek

PostPosted: 17.11.2004 22:58    Post subject: Add user to your forum ignore list Reply with quote

w!cked wrote:
hmmm,kad smo već kod ovakvih stvari,šta tu ne ide button? ja sam isto flash newbie Shocked
il je to dio di ti sam stavljaš imena,onda sam ja ispo glup Mad

nije button, zato sto mi tu treba graphic Wink
to sto ga ja zovem buton, nema veze s njegovom funkcijom...

_________________
I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me.
Back to top
View user's profile Send private message Visit poster's website
kelso



Joined: 19 Jul 2004
Posts: 507
Location: Zagreb -> Zapruđe

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

znači to pod ono drugo što sam reko,aaaaa Sad

ipak sam glup Mad

_________________
Don't drop it!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
unique



Joined: 29 Mar 2004
Posts: 655

PostPosted: 18.11.2004 00:11    Post subject: Add user to your forum ignore list Reply with quote

mislim da su oni ' ' navodnici suvišni...
ovo dolje bi trebalo radit ... znači _root["ime_mc_string"]. je riješenje...
Code:

for(i=0;i<=10;i++){
   //ovdi je ucitavanje coord_x
   //a ovdi coord_y
   
   buton.duplicateMovieClip("buton"+i, i);
   _root["buton"+i]._x = coord_x;
   _root["buton"+i]._y = coord_y;   
   }

_________________
Activate interlock! Dynotherms connected! Infracells up! Mega thrusters are go! LET'S GO VOLTRON FORCE!
Back to top
View user's profile Send private message
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 18.11.2004 00:21    Post subject: Add user to your forum ignore list Reply with quote

Code:

for(i=0;i<=10;i++){
   //ovdi je ucitavanje coord_x
   //a ovdi coord_y
   
   buton.duplicateMovieClip("buton"+i, i);
   buton["buton"+i]._x = _parent.coord_x;
   buton["buton"+i]._y = _parent.coord_y;   
   }
Back to top
View user's profile Send private message MSN Messenger
unique



Joined: 29 Mar 2004
Posts: 655

PostPosted: 18.11.2004 00:28    Post subject: Add user to your forum ignore list Reply with quote

eh da... umjesto _root , buton kao što je platypus napisao Smile

još dok sam bio veći flash newbie nego što sam sad (Smile) platypus mi je to objasnio Smile

_________________
Activate interlock! Dynotherms connected! Infracells up! Mega thrusters are go! LET'S GO VOLTRON FORCE!
Back to top
View user's profile Send private message
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 18.11.2004 01:16    Post subject: Add user to your forum ignore list Reply with quote

unique wrote:
eh da... umjesto _root , buton kao što je platypus napisao Smile

još dok sam bio veći flash newbie nego što sam sad (Smile) platypus mi je to objasnio Smile


ali si napredovao Wink


btw: ne treba ti '_parent'.. malo sam pretjerao..
Back to top
View user's profile Send private message MSN Messenger
budha



Joined: 02 Mar 2004
Posts: 1377
Location: Osijek

PostPosted: 18.11.2004 11:55    Post subject: Add user to your forum ignore list Reply with quote

e, svaka cast decki! Applause
fala!

_________________
I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me.
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