Vorrei sapere come si fa ad assegnare delle azioni ad un movieClip creato durante la riproduzione del filmato....
GRAZIE![]()
Vorrei sapere come si fa ad assegnare delle azioni ad un movieClip creato durante la riproduzione del filmato....
GRAZIE![]()
che tipo di azioni?
![]()
-Nextart.it Graphic Solutions
tipo gotoAndPlay(); e altro...
// hitTest
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
//azioni da svolgere
}
}
link
-Nextart.it Graphic Solutions
Ma io durante la riproduzione faccio createEmptyMovie e a questo devo dare delle azioni...Come faccio...![]()
posta un po' di codice![]()
-Nextart.it Graphic Solutions
Ad esempio
_root.createEmptyMovieClip('mc',1)
mc.onRelease = function(){
trace("Mi hai premuto!")
}
mc.onEnterFrame = function(){
this._x += 5
}
mc.onRollOver = function(){
trace("Mi sei passato sopra!")
}
Ovviamente puoi anche assegnargli dei play, stop e quant'altro
mc.gotoAndPlay(n)
mc.stop()
mc.play()
etc...
hai ragione non ci avevo pensato.....eppure le uso sempre le funzioni...Ciao