calling TIMes from a movie is there a diffrent way to call TIMes events in movies with Lassie AS? i've been hunting around and can't find anything about it other than the Director docs , which doesn't seem to work
bigmac- 04-30-2007
Nope... Director methodologies don't work in LassieAS. The documentation for calling TIMes from within Flash is at the end of the LassieAS TIMe dictionary. There's about 10 pages there of random information... browse the subheads.
As a shorthand, I'll give you the heads up:
_root.TIMe.yourTIMeHere('arg1', 'arg2');
Post what TIMe you're trying to call in this thread. I may have some special notations on the specific command's use... I've never standardized documentation or methodology on calling TIMe's in Flash. There are some small datatype differences between the Flash environment and the LassieAS editor that you may encounter.
NigeC- 04-30-2007
thanks greg..
nothing very complicated.. its for that puzzle you helped me with...
changePhase('dressertop', 'puzzleg', 2)
changeRoom('dressertop', 'top', 4, #null, #null)
bigmac- 04-30-2007
Easy!
Here's the syntax... note my comments below.
_root.TIMe.changePhase('dressertop', 'puzzleg', 2);
_root.TIMe.changeRoom('dressertop', 'top', 4, null, null);
_root.runActions();
1) both commands got a "_root.TIMe." path appended to the front to tell the player where to access the function.
2) both commands have a ";" semicolon on the end to make them compliant with ActionScript line breaks.
3) the second command had the "#" signs stripped from the null identifiers. The Director editor requires the "#" because all Director symbol objects are noted with a pound sign. Flash, however, just takes the key-word. This would also be the case if you are ever specifying #true/true of #false/false.
4) The sequence closes with a "runActions" command. This is needed for the changeRoom TIMe... which only configures an action sequence. It then needs an additional prompt to run those queued actions. If you were just calling "changePhase", you wouldn't need the run prompt since "changePhase" is an instant responder.
NigeC- 04-30-2007
that works great! first time and everything lol
thanks Greg 8)
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.