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 pitanjce

 
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
Tedius



Joined: 22 Dec 2003
Posts: 149
Location: Zagreb

PostPosted: 11.06.2004 12:15    Post subject: Flash pitanjce Add user to your forum ignore list Reply with quote

Bok ljudi,

vec par puta sam se našao u situaciji da trebam dinamički mijenjat dubinu objekata (MCa) i svaki put završio na pisanju podužeg tupavog koda tipa:
if(nesto=="bla1"){
bla1.swapDepths(negdje);}
....
bla2, bla3, itd...

Kako umjesto bla1, bla2 stavit varijablu, identifier, bilo sto tipa:
(imeMCa).swapDepths(negdje);

Ili sam nesto gadno propustio prilikom citanja ili je Flash glup, a siguran sam u oboje Wink
Back to top
View user's profile Send private message Visit poster's website
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 11.06.2004 12:18    Post subject: Re: Flash pitanjce Add user to your forum ignore list Reply with quote

Tedius wrote:
Bok ljudi,

vec par puta sam se našao u situaciji da trebam dinamički mijenjat dubinu objekata (MCa) i svaki put završio na pisanju podužeg tupavog koda tipa:
if(nesto=="bla1"){
bla1.swapDepths(negdje);}
....
bla2, bla3, itd...

Kako umjesto bla1, bla2 stavit varijablu, identifier, bilo sto tipa:
(imeMCa).swapDepths(negdje);

Ili sam nesto gadno propustio prilikom citanja ili je Flash glup, a siguran sam u oboje Wink



_root["bla"+i] = nesto
_root["bla"+i].swapDepths(sgfsdfg)

s tim da ne mora biti '_root' .. ovisi o tome gdje ti se nalazi MC.. npr:

_root.nekiDrugiMC["bla"+i].swapDepths(sgfsdfg)
Back to top
View user's profile Send private message MSN Messenger
Tedius



Joined: 22 Dec 2003
Posts: 149
Location: Zagreb

PostPosted: 11.06.2004 12:35    Post subject: Add user to your forum ignore list Reply with quote

ma radi ko podmazano Very Happy

tnx
Back to top
View user's profile Send private message Visit poster's website
Phiber



Joined: 18 Apr 2004
Posts: 319
Location: Čakovec, Kroejša

PostPosted: 11.06.2004 13:29    Post subject: Add user to your forum ignore list Reply with quote

ako oces bit perverzan mozes i _root.bla[$broj] koristit
ali nisam isprobo, ovo onako odokativno... Very Happy

_________________
- Xatrix Security news portal -- redizajn napravljen, al radim css Smile
- - TIP / Rapid IT : web design & hosting -- za ovog ne, taj je u ladici Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Platypus



Joined: 07 Feb 2004
Posts: 235

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

Phiber wrote:
ako oces bit perverzan mozes i _root.bla[$broj] koristit
ali nisam isprobo, ovo onako odokativno... Very Happy



mozes i to, ali ako hoces da radi onda je bolje ono gore Laughing
Back to top
View user's profile Send private message MSN Messenger
Phiber



Joined: 18 Apr 2004
Posts: 319
Location: Čakovec, Kroejša

PostPosted: 11.06.2004 14:26    Post subject: Add user to your forum ignore list Reply with quote

bolje to nego da se posao radi pom principu 2advanced-a i microsofta.
bez obzira sto je nesto jednako, napravi novi poseban objekt.
jebesh velicinu / brzinu

_________________
- Xatrix Security news portal -- redizajn napravljen, al radim css Smile
- - TIP / Rapid IT : web design & hosting -- za ovog ne, taj je u ladici Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 11.06.2004 14:41    Post subject: Add user to your forum ignore list Reply with quote

Phiber wrote:
bolje to nego da se posao radi pom principu 2advanced-a i microsofta.
bez obzira sto je nesto jednako, napravi novi poseban objekt.
jebesh velicinu / brzinu


Question
Back to top
View user's profile Send private message MSN Messenger
Phiber



Joined: 18 Apr 2004
Posts: 319
Location: Čakovec, Kroejša

PostPosted: 11.06.2004 14:49    Post subject: Add user to your forum ignore list Reply with quote

znaci, kazem bolje da se komplicira sa programiranjem, (ciji kod je manji), nego da se radi poseban objekt, mada je taj objekt moguce promjeniti sa jednom linijom koda tipa: width.

_________________
- Xatrix Security news portal -- redizajn napravljen, al radim css Smile
- - TIP / Rapid IT : web design & hosting -- za ovog ne, taj je u ladici Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 11.06.2004 15:13    Post subject: Add user to your forum ignore list Reply with quote

_root.bla[$broj]

jel to radi?


ovo su 2 odvojena slucaja:

_root["bla"+i] = nesto
_root["bla"+i].swapDepths(sgfsdfg)


prvi dodjeljuje varijabli [bla+i] neku vrijednost, a drugi mijenja MC koji se zove [bla +i] .. nema veze jedno s drugim... to sam stavio samo kao primjer
Back to top
View user's profile Send private message MSN Messenger
Phiber



Joined: 18 Apr 2004
Posts: 319
Location: Čakovec, Kroejša

PostPosted: 11.06.2004 15:51    Post subject: Add user to your forum ignore list Reply with quote

ako se generira dinamicki, mora radit.

ko normalni array u PHP-u, C-u....

_________________
- Xatrix Security news portal -- redizajn napravljen, al radim css Smile
- - TIP / Rapid IT : web design & hosting -- za ovog ne, taj je u ladici Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 11.06.2004 15:55    Post subject: Add user to your forum ignore list Reply with quote

Phiber wrote:
ako se generira dinamicki, mora radit.

ko normalni array u PHP-u, C-u....


ali to nema veze s poljem...
Back to top
View user's profile Send private message MSN Messenger
Phiber



Joined: 18 Apr 2004
Posts: 319
Location: Čakovec, Kroejša

PostPosted: 11.06.2004 16:12    Post subject: Add user to your forum ignore list Reply with quote

yeah, right.

a ovo?

varijbla[$broj].nekopolje="";

uskoro EOD?

_________________
- Xatrix Security news portal -- redizajn napravljen, al radim css Smile
- - TIP / Rapid IT : web design & hosting -- za ovog ne, taj je u ladici Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 11.06.2004 20:56    Post subject: Add user to your forum ignore list Reply with quote

Phiber wrote:
yeah, right.

a ovo?

varijbla[$broj].nekopolje="";

uskoro EOD?



1. to ne radi
2. nema veze s ovom raspravom

Laughing
Back to top
View user's profile Send private message MSN Messenger
Phiber



Joined: 18 Apr 2004
Posts: 319
Location: Čakovec, Kroejša

PostPosted: 12.06.2004 11:23    Post subject: Add user to your forum ignore list Reply with quote

1. --- edited ---
2. krenuli smo tim smjerom Smile

_________________
- Xatrix Security news portal -- redizajn napravljen, al radim css Smile
- - TIP / Rapid IT : web design & hosting -- za ovog ne, taj je u ladici Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Tedius



Joined: 22 Dec 2003
Posts: 149
Location: Zagreb

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

Evo iz konkretnog primjera copy&pastano

second = parseInt(second);
this[first].swapDepths(second);

MCs su u istom levelu gdje i skripta
first je string, instance name MCa, second je novi nivo dubine, ovu liniju s parseInt se moze ignorirat ili maknut ako se zamijenjuju dva MCa, posto onda second postaje string sa imenom drugog MCa.
Back to top
View user's profile Send private message Visit poster's website
Tedius



Joined: 22 Dec 2003
Posts: 149
Location: Zagreb

PostPosted: 12.06.2004 15:34    Post subject: Add user to your forum ignore list Reply with quote

Hmm, ne znam koga je ovo islo, valjda nekog buduceg citatelja Laughing
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