PDA

View Full Version : Getframe?



aj kwak
May 3rd, 2003, 06:44 AM
I'm making a slots... but i have a prob. If a stop my movie, I can't know on wich frame my movie is stopped. Is there a syntax-code to give me the number of the frame a that moment?

kode
May 3rd, 2003, 06:51 AM
yeah.. there is. =)

http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary514.html


by the way, welcome to kirupa forum!! =)

aj kwak
May 3rd, 2003, 07:07 AM
Originally posted by kax
yeah.. there is. =)

http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary514.html
by the way, welcome to kirupa forum!! =)
thx man... but..

on (release) {
stop();
var j=slot1._currentframe;
if(j>0){
unloadMovie(1);
unloadMovie(2);
unloadMovie(3);
unloadMovie(4);
unloadMovie(5);
}

}

--------------------------------------------------------------------------------
He doesn't unload my movies...
this function is correct, i have try it out
if(j>0){
unloadMovie(1);
unloadMovie(2);
unloadMovie(3);
unloadMovie(4);
unloadMovie(5);
}

But he given't j not a value
var j=slot1._currentframe;
this doesn't work...
the name of the file is slot1.swf

what's wrong :smirk:

kode
May 3rd, 2003, 07:32 AM
if i got it right...

you're not supposed to target the name of the swf... you use an instance of a MovieClip, _root, _level#, _parent or this. :-\


edit. i assume you use the actions panel in normal mode... ?
otherwise those unloadMovie actions are wrong...

aj kwak
May 3rd, 2003, 07:35 AM
Originally posted by kax
if i got it right...

you're not supposed to target the name of the swf... you use an instance of a MovieClip, _root, _level#, _parent or this. :-\


edit. i assume you use the actions panel in normal mode... ?
otherwise those unloadMovie actions are wrong...
thank thank thank thank thank thank you VERY much!!!

kode
May 3rd, 2003, 07:37 AM
:P

no problem. :beam: