[FlashMX] Variable movieclip aanspreken

Pagina: 1
Acties:

  • pim
  • Registratie: Juli 2001
  • Laatst online: 20-07 15:45
Is het mogelijk om variabel een movieclip aan te spreken?

Ik wil bijv naar het 2de frame gaan van _level0.movieclip1

doel = "movieclip1";
_level0.doel.gotoAndPlay(2);

Maar het lukt me dus niet om "doel" als variable behandeld te laten worden..

  • alientje
  • Registratie: Maart 2002
  • Laatst online: 11-01-2008

alientje

Hallo?

code:
1
2
3
with(_level0.movieclip1){
    gotoAndPlay(2);
}

volgens mij is dit de juiste schrijfwijze... Probeer het eens hiermee

[ Voor 48% gewijzigd door alientje op 27-10-2003 16:29 ]

3d-en is leuk


  • BtM909
  • Registratie: Juni 2000
  • Niet online

BtM909

Watch out Guys...

alientje schreef op 27 October 2003 @ 16:27:
code:
1
2
3
with(_level0.movieclip1){
    gotoAndPlay(2);
}

volgens mij is dit de juiste schrijfwijze... Probeer het eens hiermee
Wat is dan variabel?

JavaScript:
1
2
doel = "movieclip1";
_level0[doel].gotoAndPlay(2);


Volgens mij is dit meer in de richting

[ Voor 9% gewijzigd door BtM909 op 27-10-2003 16:31 ]

Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.


  • pim
  • Registratie: Juli 2001
  • Laatst online: 20-07 15:45
Maar ik wil doel als variable behandelen.

Doel kan ook "movieclip2", "movieclip3" of "appel" heten..

[ Voor 6% gewijzigd door pim op 27-10-2003 16:32 ]


  • BtM909
  • Registratie: Juni 2000
  • Niet online

BtM909

Watch out Guys...

pim schreef op 27 October 2003 @ 16:31:
Maar ik wil doel als variable behandelen.

Doel kan ook "movieclip2", "movieclip3" of "appel" heten..
Look at my post ;)

Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.


  • pim
  • Registratie: Juli 2001
  • Laatst online: 20-07 15:45
Thanx BtM909!! het werkt!
Pagina: 1