Brian Ayers
08-07-2003, 06:27 PM
Most of us are used to using Tell-Target to command a sprite ...
For example, in SWiSH 2.0 ...
Tell-Target /mySprite
---> GoTo Frame 5
or ...
Tell-Target /mySprite
---> GoTo Label "gohere"
SWiSHmax does have the Tell-Target action .... but, it isn't needed to achieve the examples above -- and just adds a bit to the file size if you do use it for that ...
in SWiSHmax ...
mySprite.gotoAndPlay(5)
or ...
mySprite.gotoAndPlay("gohere")
So, instead of first selecting Tell-Target ... then selecting the gotoAndPlay action ... you can simply use gotoAndPlay - and select the appropriate sprite as the target ...
Just a little less code - and saves on file size (although - fairly negligible) ;) .. part of the beauty of 'dot-notation' :D
Cheers,
Brian
For example, in SWiSH 2.0 ...
Tell-Target /mySprite
---> GoTo Frame 5
or ...
Tell-Target /mySprite
---> GoTo Label "gohere"
SWiSHmax does have the Tell-Target action .... but, it isn't needed to achieve the examples above -- and just adds a bit to the file size if you do use it for that ...
in SWiSHmax ...
mySprite.gotoAndPlay(5)
or ...
mySprite.gotoAndPlay("gohere")
So, instead of first selecting Tell-Target ... then selecting the gotoAndPlay action ... you can simply use gotoAndPlay - and select the appropriate sprite as the target ...
Just a little less code - and saves on file size (although - fairly negligible) ;) .. part of the beauty of 'dot-notation' :D
Cheers,
Brian